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_wrappers = yes ; then
2118 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2120 if test $ol_enable_phonetic = yes ; then
2121 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2123 if test $ol_enable_rlookups = yes ; then
2124 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2126 if test $ol_enable_aci = yes ; then
2127 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2129 if test $ol_with_ldbm_api != auto ; then
2130 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2132 if test $ol_with_ldbm_type != auto ; then
2133 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2135 if test $ol_with_dnssrv_module != static ; then
2136 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2138 if test $ol_with_ldap_module != static ; then
2139 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2141 if test $ol_with_ldbm_module != static ; then
2142 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2144 if test $ol_with_passwd_module != static ; then
2145 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2147 if test $ol_with_shell_module != static ; then
2148 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2150 if test $ol_with_sql_module != static ; then
2151 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2153 if test $ol_enable_slurpd = yes ; then
2154 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2157 # force settings to no
2165 ol_enable_modules=no
2166 ol_enable_phonetic=no
2167 ol_enable_rlookups=no
2169 ol_enable_wrappers=no
2170 ol_enable_dynamic=no
2173 ol_with_ldbm_type=no
2175 ol_with_dnssrv_module=static
2176 ol_with_ldap_module=static
2177 ol_with_ldbm_module=static
2178 ol_with_passwd_module=static
2179 ol_with_shell_module=static
2180 ol_with_sql_module=static
2184 elif test $ol_enable_ldbm = no ; then
2186 if test $ol_with_ldbm_api != auto ; then
2187 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2190 if test $ol_with_ldbm_type != auto ; then
2191 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2194 if test $ol_with_ldbm_module != static ; then
2195 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2198 if test $ol_enable_modules != yes -a \
2199 $ol_enable_dnssrv = no -a \
2200 $ol_enable_ldap = no -a \
2201 $ol_enable_passwd = no -a \
2202 $ol_enable_shell = no -a \
2203 $ol_enable_sql = no ; then
2204 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2208 ol_with_ldbm_type=no
2209 ol_with_ldbm_module=static
2212 if test $ol_with_ldbm_api = gdbm -a \
2213 $ol_with_ldbm_type = btree ; then
2214 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2216 if test $ol_with_ldbm_api = mdbm -a \
2217 $ol_with_ldbm_type = btree ; then
2218 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2220 if test $ol_with_ldbm_api = ndbm -a \
2221 $ol_with_ldbm_type = btree ; then
2222 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2226 if test $ol_enable_slurpd = yes ; then
2227 if test $ol_with_threads = no ; then
2228 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2232 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2233 if test $ol_with_kerberos = no ; then
2234 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2236 ol_with_kerberos=yes
2237 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2238 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2239 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2244 if test $ol_enable_spasswd = yes ; then
2245 if test $ol_with_cyrus_sasl = no ; then
2246 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2248 ol_with_cyrus_sasl=yes
2251 echo "$ac_t""done" 1>&6
2274 BUILD_DNSSRV_DYNAMIC=static
2275 BUILD_LDAP_DYNAMIC=static
2276 BUILD_LDBM_DYNAMIC=static
2277 BUILD_PASSWD_DYNAMIC=static
2278 BUILD_SHELL_DYNAMIC=static
2279 BUILD_SQL_DYNAMIC=static
2281 SLAPD_MODULES_LDFLAGS=
2282 SLAPD_MODULES_CPPFLAGS=
2300 cat >> confdefs.h <<\EOF
2301 #define HAVE_MKVERSION 1
2309 *-*-aix*) if test -z "$CC" ; then
2310 case "$ol_with_threads" in
2311 auto | yes | posix) ol_aix_threads=yes ;;
2317 if test $ol_aix_threads = yes ; then
2318 if test -z "${CC}" ; then
2319 for ac_prog in cc_r xlc_r cc
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_word" >&5
2325 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2328 if test -n "$CC"; then
2329 ac_cv_prog_CC="$CC" # Let the user override the test.
2331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2333 for ac_dir in $ac_dummy; do
2334 test -z "$ac_dir" && ac_dir=.
2335 if test -f $ac_dir/$ac_word; then
2336 ac_cv_prog_CC="$ac_prog"
2344 if test -n "$CC"; then
2345 echo "$ac_t""$CC" 1>&6
2347 echo "$ac_t""no" 1>&6
2350 test -n "$CC" && break
2354 if test "$CC" = cc ; then
2355 if test $ol_with_threads != auto ; then
2356 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2358 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2364 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2365 ol_with_threads=posix
2366 ol_cv_pthread_create=yes
2370 if test -z "${CC}"; then
2373 # Extract the first word of "$ac_prog", so it can be a program name with args.
2374 set dummy $ac_prog; ac_word=$2
2375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2376 echo "configure:2377: checking for $ac_word" >&5
2377 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2378 echo $ac_n "(cached) $ac_c" 1>&6
2380 if test -n "$CC"; then
2381 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2385 for ac_dir in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir=.
2387 if test -f $ac_dir/$ac_word; then
2388 ac_cv_prog_CC="$ac_prog"
2396 if test -n "$CC"; then
2397 echo "$ac_t""$CC" 1>&6
2399 echo "$ac_t""no" 1>&6
2402 test -n "$CC" && break
2410 # Check whether --enable-fast-install or --disable-fast-install was given.
2411 if test "${enable_fast_install+set}" = set; then
2412 enableval="$enable_fast_install"
2413 p=${PACKAGE-default}
2414 case "$enableval" in
2415 yes) enable_fast_install=yes ;;
2416 no) enable_fast_install=no ;;
2418 enable_fast_install=no
2419 # Look at the argument we got. We use all the common list separators.
2420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2421 for pkg in $enableval; do
2422 if test "X$pkg" = "X$p"; then
2423 enable_fast_install=yes
2430 enable_fast_install=yes
2433 # Extract the first word of "ranlib", so it can be a program name with args.
2434 set dummy ranlib; ac_word=$2
2435 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2436 echo "configure:2437: checking for $ac_word" >&5
2437 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2440 if test -n "$RANLIB"; then
2441 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2443 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2445 for ac_dir in $ac_dummy; do
2446 test -z "$ac_dir" && ac_dir=.
2447 if test -f $ac_dir/$ac_word; then
2448 ac_cv_prog_RANLIB="ranlib"
2453 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2456 RANLIB="$ac_cv_prog_RANLIB"
2457 if test -n "$RANLIB"; then
2458 echo "$ac_t""$RANLIB" 1>&6
2460 echo "$ac_t""no" 1>&6
2463 # Extract the first word of "gcc", so it can be a program name with args.
2464 set dummy gcc; ac_word=$2
2465 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2466 echo "configure:2467: checking for $ac_word" >&5
2467 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2468 echo $ac_n "(cached) $ac_c" 1>&6
2470 if test -n "$CC"; then
2471 ac_cv_prog_CC="$CC" # Let the user override the test.
2473 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2475 for ac_dir in $ac_dummy; do
2476 test -z "$ac_dir" && ac_dir=.
2477 if test -f $ac_dir/$ac_word; then
2486 if test -n "$CC"; then
2487 echo "$ac_t""$CC" 1>&6
2489 echo "$ac_t""no" 1>&6
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2496 echo "configure:2497: checking for $ac_word" >&5
2497 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2498 echo $ac_n "(cached) $ac_c" 1>&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2506 for ac_dir in $ac_dummy; do
2507 test -z "$ac_dir" && ac_dir=.
2508 if test -f $ac_dir/$ac_word; then
2509 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2510 ac_prog_rejected=yes
2518 if test $ac_prog_rejected = yes; then
2519 # We found a bogon in the path, so make sure we never use it.
2520 set dummy $ac_cv_prog_CC
2522 if test $# -gt 0; then
2523 # We chose a different compiler from the bogus one.
2524 # However, it has the same basename, so the bogon will be chosen
2525 # first if we set CC to just the basename; use the full file name.
2527 set dummy "$ac_dir/$ac_word" "$@"
2535 if test -n "$CC"; then
2536 echo "$ac_t""$CC" 1>&6
2538 echo "$ac_t""no" 1>&6
2541 if test -z "$CC"; then
2542 case "`uname -s`" in
2543 *win32* | *WIN32* | *CYGWIN*)
2544 # Extract the first word of "cl", so it can be a program name with args.
2545 set dummy cl; ac_word=$2
2546 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2547 echo "configure:2548: checking for $ac_word" >&5
2548 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 if test -n "$CC"; then
2552 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2556 for ac_dir in $ac_dummy; do
2557 test -z "$ac_dir" && ac_dir=.
2558 if test -f $ac_dir/$ac_word; then
2567 if test -n "$CC"; then
2568 echo "$ac_t""$CC" 1>&6
2570 echo "$ac_t""no" 1>&6
2575 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2578 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2579 echo "configure:2580: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2582 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2585 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2586 cross_compiling=$ac_cv_prog_cc_cross
2588 cat > conftest.$ac_ext << EOF
2590 #line 2591 "configure"
2591 #include "confdefs.h"
2595 if { (eval echo configure:2596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2596 ac_cv_prog_cc_works=yes
2597 # If we can't run a trivial program, we are probably using a cross compiler.
2598 if (./conftest; exit) 2>/dev/null; then
2599 ac_cv_prog_cc_cross=no
2601 ac_cv_prog_cc_cross=yes
2604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2606 ac_cv_prog_cc_works=no
2610 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2611 ac_cpp='$CPP $CPPFLAGS'
2612 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2613 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2614 cross_compiling=$ac_cv_prog_cc_cross
2616 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2617 if test $ac_cv_prog_cc_works = no; then
2618 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2620 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2621 echo "configure:2622: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2622 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2623 cross_compiling=$ac_cv_prog_cc_cross
2625 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2626 echo "configure:2627: checking whether we are using GNU C" >&5
2627 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2628 echo $ac_n "(cached) $ac_c" 1>&6
2630 cat > conftest.c <<EOF
2635 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2642 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2644 if test $ac_cv_prog_gcc = yes; then
2650 ac_test_CFLAGS="${CFLAGS+set}"
2651 ac_save_CFLAGS="$CFLAGS"
2653 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2654 echo "configure:2655: checking whether ${CC-cc} accepts -g" >&5
2655 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 echo 'void f(){}' > conftest.c
2659 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2668 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2669 if test "$ac_test_CFLAGS" = set; then
2670 CFLAGS="$ac_save_CFLAGS"
2671 elif test $ac_cv_prog_cc_g = yes; then
2672 if test "$GCC" = yes; then
2678 if test "$GCC" = yes; then
2685 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2686 if test "${with_gnu_ld+set}" = set; then
2687 withval="$with_gnu_ld"
2688 test "$withval" = no || with_gnu_ld=yes
2694 if test "$ac_cv_prog_gcc" = yes; then
2695 # Check if gcc -print-prog-name=ld gives a path.
2696 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2697 echo "configure:2698: checking for ld used by GCC" >&5
2698 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2700 # Accept absolute paths.
2701 [\\/]* | [A-Za-z]:[\\/]*)
2702 re_direlt='/[^/][^/]*/\.\./'
2703 # Canonicalize the path of ld
2704 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2705 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2706 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2708 test -z "$LD" && LD="$ac_prog"
2711 # If it fails, then pretend we aren't using GCC.
2715 # If it is relative, then search for the first ld in PATH.
2719 elif test "$with_gnu_ld" = yes; then
2720 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2721 echo "configure:2722: checking for GNU ld" >&5
2723 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2724 echo "configure:2725: checking for non-GNU ld" >&5
2726 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2729 if test -z "$LD"; then
2730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2731 for ac_dir in $PATH; do
2732 test -z "$ac_dir" && ac_dir=.
2733 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2734 ac_cv_path_LD="$ac_dir/$ac_prog"
2735 # Check to see if the program is GNU ld. I'd rather use --version,
2736 # but apparently some GNU ld's only accept -v.
2737 # Break only if it was the GNU/non-GNU ld that we prefer.
2738 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2739 test "$with_gnu_ld" != no && break
2741 test "$with_gnu_ld" != yes && break
2747 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2752 if test -n "$LD"; then
2753 echo "$ac_t""$LD" 1>&6
2755 echo "$ac_t""no" 1>&6
2757 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2758 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2759 echo "configure:2760: checking if the linker ($LD) is GNU ld" >&5
2760 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2763 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2764 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2765 ac_cv_prog_gnu_ld=yes
2767 ac_cv_prog_gnu_ld=no
2771 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2774 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2775 echo "configure:2776: checking for BSD-compatible nm" >&5
2776 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2779 if test -n "$NM"; then
2780 # Let the user override the test.
2783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2784 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2785 test -z "$ac_dir" && ac_dir=.
2786 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2787 # Check to see if the nm accepts a BSD-compat flag.
2788 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2789 # nm: unknown option "B" ignored
2790 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2791 ac_cv_path_NM="$ac_dir/nm -B"
2793 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2794 ac_cv_path_NM="$ac_dir/nm -p"
2797 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2798 continue # so that we can try to find one that supports BSD flags
2803 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2808 echo "$ac_t""$NM" 1>&6
2810 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2811 echo "configure:2812: checking whether ln -s works" >&5
2812 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2813 echo $ac_n "(cached) $ac_c" 1>&6
2816 if ln -s X conftestdata 2>/dev/null
2819 ac_cv_prog_LN_S="ln -s"
2824 LN_S="$ac_cv_prog_LN_S"
2825 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2826 echo "$ac_t""yes" 1>&6
2828 echo "$ac_t""no" 1>&6
2831 if test $host != $build; then
2832 ac_tool_prefix=${host_alias}-
2839 NONE) lt_target="$host" ;;
2840 *) lt_target="$target" ;;
2843 # Check for any special flags to pass to ltconfig.
2844 libtool_flags="--cache-file=$cache_file"
2845 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2846 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2847 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2848 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2849 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2850 libtool_flags="$libtool_flags --enable-dlopen"
2851 libtool_flags="$libtool_flags --enable-win32-dll"
2852 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2853 if test "${enable_libtool_lock+set}" = set; then
2854 enableval="$enable_libtool_lock"
2858 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2859 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2861 # Some flags need to be propagated to the compiler or linker for good
2863 case "$lt_target" in
2865 # Find out which ABI we are using.
2866 echo '#line 2867 "configure"' > conftest.$ac_ext
2867 if { (eval echo configure:2868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2868 case "`/usr/bin/file conftest.o`" in
2884 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2885 SAVE_CFLAGS="$CFLAGS"
2886 CFLAGS="$CFLAGS -belf"
2887 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2888 echo "configure:2889: checking whether the C compiler needs -belf" >&5
2889 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2892 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2902 lt_cv_cc_needs_belf=yes
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2907 lt_cv_cc_needs_belf=no
2912 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2915 CFLAGS="$SAVE_CFLAGS"
2919 *-*-cygwin* | *-*-mingw*)
2920 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2921 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2923 echo "configure:2924: checking for $ac_word" >&5
2924 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 if test -n "$DLLTOOL"; then
2928 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2930 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2932 for ac_dir in $ac_dummy; do
2933 test -z "$ac_dir" && ac_dir=.
2934 if test -f $ac_dir/$ac_word; then
2935 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2942 DLLTOOL="$ac_cv_prog_DLLTOOL"
2943 if test -n "$DLLTOOL"; then
2944 echo "$ac_t""$DLLTOOL" 1>&6
2946 echo "$ac_t""no" 1>&6
2950 if test -z "$ac_cv_prog_DLLTOOL"; then
2951 if test -n "$ac_tool_prefix"; then
2952 # Extract the first word of "dlltool", so it can be a program name with args.
2953 set dummy dlltool; ac_word=$2
2954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2955 echo "configure:2956: checking for $ac_word" >&5
2956 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2959 if test -n "$DLLTOOL"; then
2960 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2964 for ac_dir in $ac_dummy; do
2965 test -z "$ac_dir" && ac_dir=.
2966 if test -f $ac_dir/$ac_word; then
2967 ac_cv_prog_DLLTOOL="dlltool"
2972 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2975 DLLTOOL="$ac_cv_prog_DLLTOOL"
2976 if test -n "$DLLTOOL"; then
2977 echo "$ac_t""$DLLTOOL" 1>&6
2979 echo "$ac_t""no" 1>&6
2987 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}as; ac_word=$2
2989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2990 echo "configure:2991: checking for $ac_word" >&5
2991 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
2992 echo $ac_n "(cached) $ac_c" 1>&6
2994 if test -n "$AS"; then
2995 ac_cv_prog_AS="$AS" # Let the user override the test.
2997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2999 for ac_dir in $ac_dummy; do
3000 test -z "$ac_dir" && ac_dir=.
3001 if test -f $ac_dir/$ac_word; then
3002 ac_cv_prog_AS="${ac_tool_prefix}as"
3010 if test -n "$AS"; then
3011 echo "$ac_t""$AS" 1>&6
3013 echo "$ac_t""no" 1>&6
3017 if test -z "$ac_cv_prog_AS"; then
3018 if test -n "$ac_tool_prefix"; then
3019 # Extract the first word of "as", so it can be a program name with args.
3020 set dummy as; ac_word=$2
3021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3022 echo "configure:3023: checking for $ac_word" >&5
3023 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 if test -n "$AS"; then
3027 ac_cv_prog_AS="$AS" # Let the user override the test.
3029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3031 for ac_dir in $ac_dummy; do
3032 test -z "$ac_dir" && ac_dir=.
3033 if test -f $ac_dir/$ac_word; then
3039 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3043 if test -n "$AS"; then
3044 echo "$ac_t""$AS" 1>&6
3046 echo "$ac_t""no" 1>&6
3054 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3055 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3057 echo "configure:3058: checking for $ac_word" >&5
3058 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 if test -n "$OBJDUMP"; then
3062 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3066 for ac_dir in $ac_dummy; do
3067 test -z "$ac_dir" && ac_dir=.
3068 if test -f $ac_dir/$ac_word; then
3069 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3076 OBJDUMP="$ac_cv_prog_OBJDUMP"
3077 if test -n "$OBJDUMP"; then
3078 echo "$ac_t""$OBJDUMP" 1>&6
3080 echo "$ac_t""no" 1>&6
3084 if test -z "$ac_cv_prog_OBJDUMP"; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "objdump", so it can be a program name with args.
3087 set dummy objdump; ac_word=$2
3088 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3089 echo "configure:3090: checking for $ac_word" >&5
3090 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 if test -n "$OBJDUMP"; then
3094 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3096 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3098 for ac_dir in $ac_dummy; do
3099 test -z "$ac_dir" && ac_dir=.
3100 if test -f $ac_dir/$ac_word; then
3101 ac_cv_prog_OBJDUMP="objdump"
3106 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3109 OBJDUMP="$ac_cv_prog_OBJDUMP"
3110 if test -n "$OBJDUMP"; then
3111 echo "$ac_t""$OBJDUMP" 1>&6
3113 echo "$ac_t""no" 1>&6
3126 # Save cache, so that ltconfig can load it
3129 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3130 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3131 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3132 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3133 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3134 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3135 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3136 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3138 # Reload cache, that may have been modified by ltconfig
3141 # This can be used to rebuild libtool when needed
3142 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3144 # Always use our own libtool.
3145 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3147 # Redirect the config.log output again, so that the ltconfig log is not
3148 # clobbered by the next message.
3149 exec 5>>./config.log
3152 for ac_prog in mawk gawk nawk awk
3154 # Extract the first word of "$ac_prog", so it can be a program name with args.
3155 set dummy $ac_prog; ac_word=$2
3156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3157 echo "configure:3158: checking for $ac_word" >&5
3158 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 if test -n "$AWK"; then
3162 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3166 for ac_dir in $ac_dummy; do
3167 test -z "$ac_dir" && ac_dir=.
3168 if test -f $ac_dir/$ac_word; then
3169 ac_cv_prog_AWK="$ac_prog"
3176 AWK="$ac_cv_prog_AWK"
3177 if test -n "$AWK"; then
3178 echo "$ac_t""$AWK" 1>&6
3180 echo "$ac_t""no" 1>&6
3183 test -n "$AWK" && break
3186 # test for ln hardlink support
3187 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3188 echo "configure:3189: checking whether ln works" >&5
3189 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3190 echo $ac_n "(cached) $ac_c" 1>&6
3192 rm -f conftest.src conftest.dst
3193 echo "conftest" > conftest.src
3194 if ln conftest.src conftest.dst 2>/dev/null
3196 ol_cv_prog_LN_H="ln"
3198 ol_cv_prog_LN_H="cp"
3200 rm -f conftest.src conftest.dst
3203 LN_H="$ol_cv_prog_LN_H"
3204 if test "$ol_cv_prog_LN_H" = "ln"; then
3205 echo "$ac_t""yes" 1>&6
3207 echo "$ac_t""no" 1>&6
3210 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3211 echo "configure:3212: checking whether ln -s works" >&5
3212 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3213 echo $ac_n "(cached) $ac_c" 1>&6
3216 if ln -s X conftestdata 2>/dev/null
3219 ac_cv_prog_LN_S="ln -s"
3224 LN_S="$ac_cv_prog_LN_S"
3225 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3226 echo "$ac_t""yes" 1>&6
3228 echo "$ac_t""no" 1>&6
3232 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3236 # Extract the first word of "sendmail", so it can be a program name with args.
3237 set dummy sendmail; ac_word=$2
3238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_word" >&5
3240 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3245 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3248 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3252 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3253 for ac_dir in $ac_dummy; do
3254 test -z "$ac_dir" && ac_dir=.
3255 if test -f $ac_dir/$ac_word; then
3256 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3261 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3265 SENDMAIL="$ac_cv_path_SENDMAIL"
3266 if test -n "$SENDMAIL"; then
3267 echo "$ac_t""$SENDMAIL" 1>&6
3269 echo "$ac_t""no" 1>&6
3272 # Extract the first word of "vi", so it can be a program name with args.
3273 set dummy vi; ac_word=$2
3274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_word" >&5
3276 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3281 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3284 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3288 ac_dummy="$PATH:/usr/ucb"
3289 for ac_dir in $ac_dummy; do
3290 test -z "$ac_dir" && ac_dir=.
3291 if test -f $ac_dir/$ac_word; then
3292 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3297 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3301 EDITOR="$ac_cv_path_EDITOR"
3302 if test -n "$EDITOR"; then
3303 echo "$ac_t""$EDITOR" 1>&6
3305 echo "$ac_t""no" 1>&6
3308 # Extract the first word of "finger", so it can be a program name with args.
3309 set dummy finger; ac_word=$2
3310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3311 echo "configure:3312: checking for $ac_word" >&5
3312 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3317 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3320 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3324 ac_dummy="$PATH:/usr/ucb"
3325 for ac_dir in $ac_dummy; do
3326 test -z "$ac_dir" && ac_dir=.
3327 if test -f $ac_dir/$ac_word; then
3328 ac_cv_path_FINGER="$ac_dir/$ac_word"
3333 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3337 FINGER="$ac_cv_path_FINGER"
3338 if test -n "$FINGER"; then
3339 echo "$ac_t""$FINGER" 1>&6
3341 echo "$ac_t""no" 1>&6
3345 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3346 echo "configure:3347: checking how to run the C preprocessor" >&5
3347 # On Suns, sometimes $CPP names a directory.
3348 if test -n "$CPP" && test -d "$CPP"; then
3351 if test -z "$CPP"; then
3352 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3353 echo $ac_n "(cached) $ac_c" 1>&6
3355 # This must be in double quotes, not single quotes, because CPP may get
3356 # substituted into the Makefile and "${CC-cc}" will confuse make.
3358 # On the NeXT, cc -E runs the code through the compiler's parser,
3359 # not just through cpp.
3360 cat > conftest.$ac_ext <<EOF
3361 #line 3362 "configure"
3362 #include "confdefs.h"
3366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3367 { (eval echo configure:3368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3369 if test -z "$ac_err"; then
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3376 CPP="${CC-cc} -E -traditional-cpp"
3377 cat > conftest.$ac_ext <<EOF
3378 #line 3379 "configure"
3379 #include "confdefs.h"
3383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3384 { (eval echo configure:3385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3386 if test -z "$ac_err"; then
3390 echo "configure: failed program was:" >&5
3391 cat conftest.$ac_ext >&5
3393 CPP="${CC-cc} -nologo -E"
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3400 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3401 { (eval echo configure:3402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3402 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3403 if test -z "$ac_err"; then
3407 echo "configure: failed program was:" >&5
3408 cat conftest.$ac_ext >&5
3417 ac_cv_prog_CPP="$CPP"
3419 CPP="$ac_cv_prog_CPP"
3421 ac_cv_prog_CPP="$CPP"
3423 echo "$ac_t""$CPP" 1>&6
3426 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3427 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3429 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3430 echo "configure: warning: programs compiled here do run here..." 1>&2
3431 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3433 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3434 echo "configure: warning: programs compiled here do not run here..." 1>&2
3435 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3438 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3439 echo "configure:3440: checking for AIX" >&5
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 egrep "yes" >/dev/null 2>&1; then
3451 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3452 #define _ALL_SOURCE 1
3457 echo "$ac_t""no" 1>&6
3462 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3463 echo "configure:3464: checking for POSIXized ISC" >&5
3464 if test -d /etc/conf/kconfig.d &&
3465 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3467 echo "$ac_t""yes" 1>&6
3468 ISC=yes # If later tests want to check for ISC.
3469 cat >> confdefs.h <<\EOF
3470 #define _POSIX_SOURCE 1
3473 if test "$GCC" = yes; then
3479 echo "$ac_t""no" 1>&6
3483 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3484 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3485 echo "configure:3486: checking for minix/config.h" >&5
3486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 #include <minix/config.h>
3494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3495 { (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3497 if test -z "$ac_err"; then
3499 eval "ac_cv_header_$ac_safe=yes"
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3505 eval "ac_cv_header_$ac_safe=no"
3509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3513 echo "$ac_t""no" 1>&6
3517 if test "$MINIX" = yes; then
3518 cat >> confdefs.h <<\EOF
3519 #define _POSIX_SOURCE 1
3522 cat >> confdefs.h <<\EOF
3523 #define _POSIX_1_SOURCE 2
3526 cat >> confdefs.h <<\EOF
3533 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3534 echo "configure:3535: checking for Cygwin environment" >&5
3535 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3538 cat > conftest.$ac_ext <<EOF
3539 #line 3540 "configure"
3540 #include "confdefs.h"
3545 #define __CYGWIN__ __CYGWIN32__
3550 if { (eval echo configure:3551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3562 echo "$ac_t""$ac_cv_cygwin" 1>&6
3564 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3565 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3566 echo "configure:3567: checking for mingw32 environment" >&5
3567 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3578 if { (eval echo configure:3579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3590 echo "$ac_t""$ac_cv_mingw32" 1>&6
3592 test "$ac_cv_mingw32" = yes && MINGW32=yes
3593 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3594 echo "configure:3595: checking for EMX OS/2 environment" >&5
3595 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3606 if { (eval echo configure:3607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3610 echo "configure: failed program was:" >&5
3611 cat conftest.$ac_ext >&5
3618 echo "$ac_t""$ac_cv_emxos2" 1>&6
3620 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3624 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3625 echo "configure:3626: checking for executable suffix" >&5
3626 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3633 echo 'int main () { return 0; }' > conftest.$ac_ext
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3636 for file in conftest.*; do
3638 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3639 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3643 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3646 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3651 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3652 echo "$ac_t""${ac_cv_exeext}" 1>&6
3655 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3656 echo "configure:3657: checking for object suffix" >&5
3657 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3661 echo 'int i = 1;' > conftest.$ac_ext
3662 if { (eval echo configure:3663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3663 for ac_file in conftest.*; do
3666 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3670 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3675 echo "$ac_t""$ac_cv_objext" 1>&6
3676 OBJEXT=$ac_cv_objext
3677 ac_objext=$ac_cv_objext
3680 cat >> confdefs.h <<EOF
3681 #define EXEEXT "${EXEEXT}"
3685 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3686 echo "configure:3687: checking for be_app in -lbe" >&5
3687 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3688 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 ac_save_LIBS="$LIBS"
3692 LIBS="-lbe -lroot -lnet $LIBS"
3693 cat > conftest.$ac_ext <<EOF
3694 #line 3695 "configure"
3695 #include "confdefs.h"
3696 /* Override any gcc2 internal prototype to avoid an error. */
3697 /* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3705 if { (eval echo configure:3706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3707 eval "ac_cv_lib_$ac_lib_var=yes"
3709 echo "configure: failed program was:" >&5
3710 cat conftest.$ac_ext >&5
3712 eval "ac_cv_lib_$ac_lib_var=no"
3715 LIBS="$ac_save_LIBS"
3718 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 LIBS="$LIBS -lbe -lroot -lnet"
3722 echo "$ac_t""no" 1>&6
3730 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3731 echo "configure:3732: checking for ${CC-cc} option to accept ANSI C" >&5
3732 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 am_cv_prog_cc_stdc=no
3737 # Don't try gcc -ansi; that turns off useful extensions and
3738 # breaks some systems' header files.
3739 # AIX -qlanglvl=ansi
3740 # Ultrix and OSF/1 -std1
3741 # HP-UX 10.20 and later -Ae
3742 # HP-UX older versions -Aa -D_HPUX_SOURCE
3743 # SVR4 -Xc -D__EXTENSIONS__
3744 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3746 CC="$ac_save_CC $ac_arg"
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3752 #include <sys/types.h>
3753 #include <sys/stat.h>
3754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3755 struct buf { int x; };
3756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3757 static char *e (p, i)
3763 static char *f (char * (*g) (char **, int), char **p, ...)
3768 s = g (p, va_arg (v,int));
3772 int test (int i, double x);
3773 struct s1 {int (*f) (int a);};
3774 struct s2 {int (*f) (double a);};
3775 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3781 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3785 if { (eval echo configure:3786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3787 am_cv_prog_cc_stdc="$ac_arg"; break
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3798 if test -z "$am_cv_prog_cc_stdc"; then
3799 echo "$ac_t""none needed" 1>&6
3801 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3803 case "x$am_cv_prog_cc_stdc" in
3805 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3808 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3809 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3812 # test for make depend flag
3815 if test -z "${MKDEP}"; then
3817 if test -z "${MKDEP_FLAGS}"; then
3818 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3819 echo "configure:3820: checking for ${OL_MKDEP} depend flag" >&5
3820 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3825 for flag in "-M" "-xM"; do
3826 cat > conftest.c <<EOF
3829 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3830 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3832 if test ! -f conftest."${ac_object}" ; then
3834 OL_MKDEP_FLAGS="$flag"
3843 echo "$ac_t""$ol_cv_mkdep" 1>&6
3846 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3851 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3856 if test "${ol_cv_mkdep}" = no ; then
3857 # this will soon become an error
3858 echo "configure: warning: do not know how to generate dependencies" 1>&2
3861 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3862 echo "configure:3863: checking for afopen in -ls" >&5
3863 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3864 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3867 ac_save_LIBS="$LIBS"
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* Override any gcc2 internal prototype to avoid an error. */
3873 /* We use char because int might match the return type of a gcc2
3874 builtin and then its argument prototype would still apply. */
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_lib_$ac_lib_var=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_lib_$ac_lib_var=no"
3891 LIBS="$ac_save_LIBS"
3894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3895 echo "$ac_t""yes" 1>&6
3898 cat >> confdefs.h <<\EOF
3899 #define HAVE_AIX_SECURITY 1
3904 echo "$ac_t""no" 1>&6
3910 if test $ol_enable_modules != no ; then
3911 for ac_hdr in ltdl.h
3913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3915 echo "configure:3916: checking for $ac_hdr" >&5
3916 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3917 echo $ac_n "(cached) $ac_c" 1>&6
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3925 { (eval echo configure:3926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3927 if test -z "$ac_err"; then
3929 eval "ac_cv_header_$ac_safe=yes"
3932 echo "configure: failed program was:" >&5
3933 cat conftest.$ac_ext >&5
3935 eval "ac_cv_header_$ac_safe=no"
3939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3940 echo "$ac_t""yes" 1>&6
3941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3942 cat >> confdefs.h <<EOF
3943 #define $ac_tr_hdr 1
3947 echo "$ac_t""no" 1>&6
3952 if test $ac_cv_header_ltdl_h = no ; then
3953 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3956 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3957 echo "configure:3958: checking for lt_dlinit in -lltdl" >&5
3958 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3960 echo $ac_n "(cached) $ac_c" 1>&6
3962 ac_save_LIBS="$LIBS"
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 /* Override any gcc2 internal prototype to avoid an error. */
3968 /* We use char because int might match the return type of a gcc2
3969 builtin and then its argument prototype would still apply. */
3976 if { (eval echo configure:3977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3978 eval "ac_cv_lib_$ac_lib_var=yes"
3980 echo "configure: failed program was:" >&5
3981 cat conftest.$ac_ext >&5
3983 eval "ac_cv_lib_$ac_lib_var=no"
3986 LIBS="$ac_save_LIBS"
3989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3990 echo "$ac_t""yes" 1>&6
3993 cat >> confdefs.h <<\EOF
3994 #define HAVE_LIBLTDL 1
3999 echo "$ac_t""no" 1>&6
4003 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4004 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4008 ol_with_dnssrv_module=static
4009 ol_with_ldap_module=static
4010 ol_with_ldbm_module=static
4011 ol_with_passwd_module=static
4012 ol_with_shell_module=static
4013 ol_with_sql_module=static
4017 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4018 echo "configure:4019: checking for EBCDIC" >&5
4019 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4020 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4028 #include <__ASCII__/generate_error.h>
4032 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4033 { (eval echo configure:4034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4034 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4035 if test -z "$ac_err"; then
4037 ol_cv_cpp_ebcdic=yes
4040 echo "configure: failed program was:" >&5
4041 cat conftest.$ac_ext >&5
4048 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4049 if test $ol_cv_cpp_ebcdic = yes ; then
4050 cat >> confdefs.h <<\EOF
4051 #define HAVE_EBCDIC 1
4056 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4057 echo "configure:4058: checking for ANSI C header files" >&5
4058 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4059 echo $ac_n "(cached) $ac_c" 1>&6
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4069 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4070 { (eval echo configure:4071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4071 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4072 if test -z "$ac_err"; then
4074 ol_cv_header_stdc=yes
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 ol_cv_header_stdc=no
4084 if test $ol_cv_header_stdc = yes; then
4085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086 cat > conftest.$ac_ext <<EOF
4087 #line 4088 "configure"
4088 #include "confdefs.h"
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092 egrep "memchr" >/dev/null 2>&1; then
4096 ol_cv_header_stdc=no
4102 if test $ol_cv_header_stdc = yes; then
4103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4110 egrep "free" >/dev/null 2>&1; then
4114 ol_cv_header_stdc=no
4120 if test $ol_cv_header_stdc = yes; then
4121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4122 if test "$cross_compiling" = yes; then
4125 cat > conftest.$ac_ext <<EOF
4126 #line 4127 "configure"
4127 #include "confdefs.h"
4130 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4131 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4133 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4134 || ('j' <= (c) && (c) <= 'r') \
4135 || ('s' <= (c) && (c) <= 'z'))
4136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4139 int main () { int i; for (i = 0; i < 256; i++)
4140 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 ol_cv_header_stdc=no
4159 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4160 if test $ol_cv_header_stdc = yes; then
4161 cat >> confdefs.h <<\EOF
4162 #define STDC_HEADERS 1
4166 ac_cv_header_stdc=disable
4169 if test $ol_cv_header_stdc != yes; then
4170 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4174 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4177 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_hdr that defines DIR" >&5
4179 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 #include <sys/types.h>
4191 if { (eval echo configure:4192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4193 eval "ac_cv_header_dirent_$ac_safe=yes"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 eval "ac_cv_header_dirent_$ac_safe=no"
4202 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4203 echo "$ac_t""yes" 1>&6
4204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4205 cat >> confdefs.h <<EOF
4206 #define $ac_tr_hdr 1
4208 ac_header_dirent=$ac_hdr; break
4210 echo "$ac_t""no" 1>&6
4213 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4214 if test $ac_header_dirent = dirent.h; then
4215 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4216 echo "configure:4217: checking for opendir in -ldir" >&5
4217 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4218 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4219 echo $ac_n "(cached) $ac_c" 1>&6
4221 ac_save_LIBS="$LIBS"
4223 cat > conftest.$ac_ext <<EOF
4224 #line 4225 "configure"
4225 #include "confdefs.h"
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 /* We use char because int might match the return type of a gcc2
4228 builtin and then its argument prototype would still apply. */
4235 if { (eval echo configure:4236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4237 eval "ac_cv_lib_$ac_lib_var=yes"
4239 echo "configure: failed program was:" >&5
4240 cat conftest.$ac_ext >&5
4242 eval "ac_cv_lib_$ac_lib_var=no"
4245 LIBS="$ac_save_LIBS"
4248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4249 echo "$ac_t""yes" 1>&6
4252 echo "$ac_t""no" 1>&6
4256 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4257 echo "configure:4258: checking for opendir in -lx" >&5
4258 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4259 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 ac_save_LIBS="$LIBS"
4264 cat > conftest.$ac_ext <<EOF
4265 #line 4266 "configure"
4266 #include "confdefs.h"
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 /* We use char because int might match the return type of a gcc2
4269 builtin and then its argument prototype would still apply. */
4276 if { (eval echo configure:4277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4278 eval "ac_cv_lib_$ac_lib_var=yes"
4280 echo "configure: failed program was:" >&5
4281 cat conftest.$ac_ext >&5
4283 eval "ac_cv_lib_$ac_lib_var=no"
4286 LIBS="$ac_save_LIBS"
4289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4290 echo "$ac_t""yes" 1>&6
4293 echo "$ac_t""no" 1>&6
4298 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4299 echo "configure:4300: checking for sys/wait.h that is POSIX.1 compatible" >&5
4300 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4301 echo $ac_n "(cached) $ac_c" 1>&6
4303 cat > conftest.$ac_ext <<EOF
4304 #line 4305 "configure"
4305 #include "confdefs.h"
4306 #include <sys/types.h>
4307 #include <sys/wait.h>
4309 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4312 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4317 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4320 if { (eval echo configure:4321: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322 ac_cv_header_sys_wait_h=yes
4324 echo "configure: failed program was:" >&5
4325 cat conftest.$ac_ext >&5
4327 ac_cv_header_sys_wait_h=no
4332 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4333 if test $ac_cv_header_sys_wait_h = yes; then
4334 cat >> confdefs.h <<\EOF
4335 #define HAVE_SYS_WAIT_H 1
4340 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4341 echo "configure:4342: checking POSIX termios" >&5
4342 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4343 echo $ac_n "(cached) $ac_c" 1>&6
4345 cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #include <sys/types.h>
4350 #include <termios.h>
4352 /* SunOS 4.0.3 has termios.h but not the library calls. */
4356 if { (eval echo configure:4357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4358 am_cv_sys_posix_termios=yes
4360 echo "configure: failed program was:" >&5
4361 cat conftest.$ac_ext >&5
4363 am_cv_sys_posix_termios=no
4368 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4371 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4372 echo "configure:4373: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4373 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4374 echo $ac_n "(cached) $ac_c" 1>&6
4376 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4378 gwinsz_in_termios_h=no
4379 if test $am_cv_sys_posix_termios = yes; then
4380 cat > conftest.$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 #include <sys/types.h>
4384 # include <termios.h>
4390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4391 egrep "yes" >/dev/null 2>&1; then
4393 gwinsz_in_termios_h=yes
4399 if test $gwinsz_in_termios_h = no; then
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4403 #include <sys/types.h>
4404 # include <sys/ioctl.h>
4410 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4411 egrep "yes" >/dev/null 2>&1; then
4413 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4421 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4422 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4423 cat >> confdefs.h <<\EOF
4424 #define GWINSZ_IN_SYS_IOCTL 1
4429 if test $am_cv_sys_posix_termios = yes ; then
4430 cat >> confdefs.h <<\EOF
4431 #define HAVE_POSIX_TERMIOS 1
4482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4484 echo "configure:4485: checking for $ac_hdr" >&5
4485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4486 echo $ac_n "(cached) $ac_c" 1>&6
4488 cat > conftest.$ac_ext <<EOF
4489 #line 4490 "configure"
4490 #include "confdefs.h"
4493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4494 { (eval echo configure:4495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4496 if test -z "$ac_err"; then
4498 eval "ac_cv_header_$ac_safe=yes"
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 eval "ac_cv_header_$ac_safe=no"
4508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4509 echo "$ac_t""yes" 1>&6
4510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4511 cat >> confdefs.h <<EOF
4512 #define $ac_tr_hdr 1
4516 echo "$ac_t""no" 1>&6
4523 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4524 echo "configure:4525: checking for dlopen" >&5
4525 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4528 cat > conftest.$ac_ext <<EOF
4529 #line 4530 "configure"
4530 #include "confdefs.h"
4531 /* System header to define __stub macros and hopefully few prototypes,
4532 which can conflict with char dlopen(); below. */
4534 /* Override any gcc2 internal prototype to avoid an error. */
4535 /* We use char because int might match the return type of a gcc2
4536 builtin and then its argument prototype would still apply. */
4542 /* The GNU C library defines this for functions which it implements
4543 to always fail with ENOSYS. Some functions are actually named
4544 something starting with __ and the normal name is an alias. */
4545 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4553 if { (eval echo configure:4554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4555 eval "ac_cv_func_dlopen=yes"
4557 echo "configure: failed program was:" >&5
4558 cat conftest.$ac_ext >&5
4560 eval "ac_cv_func_dlopen=no"
4565 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4566 echo "$ac_t""yes" 1>&6
4569 echo "$ac_t""no" 1>&6
4570 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4571 echo "configure:4572: checking for dlopen in -ldl" >&5
4572 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4573 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4574 echo $ac_n "(cached) $ac_c" 1>&6
4576 ac_save_LIBS="$LIBS"
4578 cat > conftest.$ac_ext <<EOF
4579 #line 4580 "configure"
4580 #include "confdefs.h"
4581 /* Override any gcc2 internal prototype to avoid an error. */
4582 /* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
4590 if { (eval echo configure:4591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4592 eval "ac_cv_lib_$ac_lib_var=yes"
4594 echo "configure: failed program was:" >&5
4595 cat conftest.$ac_ext >&5
4597 eval "ac_cv_lib_$ac_lib_var=no"
4600 LIBS="$ac_save_LIBS"
4603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4604 echo "$ac_t""yes" 1>&6
4605 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4606 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4607 cat >> confdefs.h <<EOF
4608 #define $ac_tr_lib 1
4614 echo "$ac_t""no" 1>&6
4620 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4621 echo "configure:4622: checking for sigset in -lV3" >&5
4622 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4624 echo $ac_n "(cached) $ac_c" 1>&6
4626 ac_save_LIBS="$LIBS"
4628 cat > conftest.$ac_ext <<EOF
4629 #line 4630 "configure"
4630 #include "confdefs.h"
4631 /* Override any gcc2 internal prototype to avoid an error. */
4632 /* We use char because int might match the return type of a gcc2
4633 builtin and then its argument prototype would still apply. */
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4642 eval "ac_cv_lib_$ac_lib_var=yes"
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 eval "ac_cv_lib_$ac_lib_var=no"
4650 LIBS="$ac_save_LIBS"
4653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4655 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4656 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4657 cat >> confdefs.h <<EOF
4658 #define $ac_tr_lib 1
4664 echo "$ac_t""no" 1>&6
4668 if test $ac_cv_header_winsock_h = yes; then
4669 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4670 echo "configure:4671: checking for winsock" >&5
4671 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 cat > conftest.$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4677 #include <winsock.h>
4681 select(0,NULL,NULL,NULL,NULL);
4683 gethostname(NULL,0);
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4699 echo "$ac_t""$ol_cv_winsock" 1>&6
4701 if test $ol_cv_winsock = yes ; then
4702 cat >> confdefs.h <<\EOF
4703 #define HAVE_WINSOCK 1
4706 ac_cv_func_socket=yes
4707 ac_cv_func_select=yes
4708 ac_cv_func_closesocket=yes
4709 ac_cv_func_gethostname=yes
4714 echo $ac_n "checking for socket""... $ac_c" 1>&6
4715 echo "configure:4716: checking for socket" >&5
4716 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char socket(); below. */
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4733 /* The GNU C library defines this for functions which it implements
4734 to always fail with ENOSYS. Some functions are actually named
4735 something starting with __ and the normal name is an alias. */
4736 #if defined (__stub_socket) || defined (__stub___socket)
4744 if { (eval echo configure:4745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4746 eval "ac_cv_func_socket=yes"
4748 echo "configure: failed program was:" >&5
4749 cat conftest.$ac_ext >&5
4751 eval "ac_cv_func_socket=no"
4756 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4757 echo "$ac_t""yes" 1>&6
4760 echo "$ac_t""no" 1>&6
4762 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4763 echo "configure:4764: checking for main in -lsocket" >&5
4764 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4765 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 ac_save_LIBS="$LIBS"
4769 LIBS="-lsocket $LIBS"
4770 cat > conftest.$ac_ext <<EOF
4771 #line 4772 "configure"
4772 #include "confdefs.h"
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4780 eval "ac_cv_lib_$ac_lib_var=yes"
4782 echo "configure: failed program was:" >&5
4783 cat conftest.$ac_ext >&5
4785 eval "ac_cv_lib_$ac_lib_var=no"
4788 LIBS="$ac_save_LIBS"
4791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4792 echo "$ac_t""yes" 1>&6
4793 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4794 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4795 cat >> confdefs.h <<EOF
4796 #define $ac_tr_lib 1
4799 LIBS="-lsocket $LIBS"
4802 echo "$ac_t""no" 1>&6
4805 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4806 echo "configure:4807: checking for main in -lnet" >&5
4807 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4809 echo $ac_n "(cached) $ac_c" 1>&6
4811 ac_save_LIBS="$LIBS"
4813 cat > conftest.$ac_ext <<EOF
4814 #line 4815 "configure"
4815 #include "confdefs.h"
4821 if { (eval echo configure:4822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4823 eval "ac_cv_lib_$ac_lib_var=yes"
4825 echo "configure: failed program was:" >&5
4826 cat conftest.$ac_ext >&5
4828 eval "ac_cv_lib_$ac_lib_var=no"
4831 LIBS="$ac_save_LIBS"
4834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4835 echo "$ac_t""yes" 1>&6
4836 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4837 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4838 cat >> confdefs.h <<EOF
4839 #define $ac_tr_lib 1
4845 echo "$ac_t""no" 1>&6
4848 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4849 echo "configure:4850: checking for main in -lnsl_s" >&5
4850 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4851 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 ac_save_LIBS="$LIBS"
4855 LIBS="-lnsl_s $LIBS"
4856 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4866 eval "ac_cv_lib_$ac_lib_var=yes"
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4871 eval "ac_cv_lib_$ac_lib_var=no"
4874 LIBS="$ac_save_LIBS"
4877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4881 cat >> confdefs.h <<EOF
4882 #define $ac_tr_lib 1
4885 LIBS="-lnsl_s $LIBS"
4888 echo "$ac_t""no" 1>&6
4891 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4892 echo "configure:4893: checking for main in -lnsl" >&5
4893 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4894 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4897 ac_save_LIBS="$LIBS"
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4907 if { (eval echo configure:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4909 eval "ac_cv_lib_$ac_lib_var=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.$ac_ext >&5
4914 eval "ac_cv_lib_$ac_lib_var=no"
4917 LIBS="$ac_save_LIBS"
4920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4922 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4924 cat >> confdefs.h <<EOF
4925 #define $ac_tr_lib 1
4931 echo "$ac_t""no" 1>&6
4934 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4935 echo "configure:4936: checking for socket in -linet" >&5
4936 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4937 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4938 echo $ac_n "(cached) $ac_c" 1>&6
4940 ac_save_LIBS="$LIBS"
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 /* Override any gcc2 internal prototype to avoid an error. */
4946 /* We use char because int might match the return type of a gcc2
4947 builtin and then its argument prototype would still apply. */
4954 if { (eval echo configure:4955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4956 eval "ac_cv_lib_$ac_lib_var=yes"
4958 echo "configure: failed program was:" >&5
4959 cat conftest.$ac_ext >&5
4961 eval "ac_cv_lib_$ac_lib_var=no"
4964 LIBS="$ac_save_LIBS"
4967 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4968 echo "$ac_t""yes" 1>&6
4969 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4970 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4971 cat >> confdefs.h <<EOF
4972 #define $ac_tr_lib 1
4978 echo "$ac_t""no" 1>&6
4981 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4982 echo "configure:4983: checking for main in -lgen" >&5
4983 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 ac_save_LIBS="$LIBS"
4989 cat > conftest.$ac_ext <<EOF
4990 #line 4991 "configure"
4991 #include "confdefs.h"
4997 if { (eval echo configure:4998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4999 eval "ac_cv_lib_$ac_lib_var=yes"
5001 echo "configure: failed program was:" >&5
5002 cat conftest.$ac_ext >&5
5004 eval "ac_cv_lib_$ac_lib_var=no"
5007 LIBS="$ac_save_LIBS"
5010 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5011 echo "$ac_t""yes" 1>&6
5012 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5013 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5014 cat >> confdefs.h <<EOF
5015 #define $ac_tr_lib 1
5021 echo "$ac_t""no" 1>&6
5028 echo $ac_n "checking for select""... $ac_c" 1>&6
5029 echo "configure:5030: checking for select" >&5
5030 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5031 echo $ac_n "(cached) $ac_c" 1>&6
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5036 /* System header to define __stub macros and hopefully few prototypes,
5037 which can conflict with char select(); below. */
5039 /* Override any gcc2 internal prototype to avoid an error. */
5040 /* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
5047 /* The GNU C library defines this for functions which it implements
5048 to always fail with ENOSYS. Some functions are actually named
5049 something starting with __ and the normal name is an alias. */
5050 #if defined (__stub_select) || defined (__stub___select)
5058 if { (eval echo configure:5059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5060 eval "ac_cv_func_select=yes"
5062 echo "configure: failed program was:" >&5
5063 cat conftest.$ac_ext >&5
5065 eval "ac_cv_func_select=no"
5070 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5071 echo "$ac_t""yes" 1>&6
5074 echo "$ac_t""no" 1>&6
5075 { echo "configure: error: select() required." 1>&2; exit 1; }
5079 if test "${ac_cv_header_winsock_h}" != yes; then
5080 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5081 echo "configure:5082: checking types of arguments for select()" >&5
5082 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5083 echo $ac_n "(cached) $ac_c" 1>&6
5085 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5086 echo $ac_n "(cached) $ac_c" 1>&6
5088 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5089 echo $ac_n "(cached) $ac_c" 1>&6
5091 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5092 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5093 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5094 cat > conftest.$ac_ext <<EOF
5095 #line 5096 "configure"
5096 #include "confdefs.h"
5097 #ifdef HAVE_SYS_TYPES_H
5098 #include <sys/types.h>
5100 #ifdef HAVE_SYS_TIME_H
5101 #include <sys/time.h>
5103 #ifdef HAVE_SYS_SELECT_H
5104 #include <sys/select.h>
5106 #ifdef HAVE_SYS_SOCKET_H
5107 #include <sys/socket.h>
5109 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);
5114 if { (eval echo configure:5115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5116 ac_not_found=no ; break 3
5118 echo "configure: failed program was:" >&5
5119 cat conftest.$ac_ext >&5
5133 if test "$ac_not_found" = yes; then
5134 ac_cv_func_select_arg1=int
5135 ac_cv_func_select_arg234='int *'
5136 ac_cv_func_select_arg5='struct timeval *'
5138 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5139 cat >> confdefs.h <<EOF
5140 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5143 cat >> confdefs.h <<EOF
5144 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5147 cat >> confdefs.h <<EOF
5148 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5155 for ac_hdr in regex.h
5157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5159 echo "configure:5160: checking for $ac_hdr" >&5
5160 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5161 echo $ac_n "(cached) $ac_c" 1>&6
5163 cat > conftest.$ac_ext <<EOF
5164 #line 5165 "configure"
5165 #include "confdefs.h"
5168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5169 { (eval echo configure:5170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5171 if test -z "$ac_err"; then
5173 eval "ac_cv_header_$ac_safe=yes"
5176 echo "configure: failed program was:" >&5
5177 cat conftest.$ac_ext >&5
5179 eval "ac_cv_header_$ac_safe=no"
5183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5184 echo "$ac_t""yes" 1>&6
5185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5186 cat >> confdefs.h <<EOF
5187 #define $ac_tr_hdr 1
5191 echo "$ac_t""no" 1>&6
5195 if test "$ac_cv_header_regex_h" != yes ; then
5196 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5198 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5199 echo "configure:5200: checking for regfree" >&5
5200 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5201 echo $ac_n "(cached) $ac_c" 1>&6
5203 cat > conftest.$ac_ext <<EOF
5204 #line 5205 "configure"
5205 #include "confdefs.h"
5206 /* System header to define __stub macros and hopefully few prototypes,
5207 which can conflict with char regfree(); below. */
5209 /* Override any gcc2 internal prototype to avoid an error. */
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5217 /* The GNU C library defines this for functions which it implements
5218 to always fail with ENOSYS. Some functions are actually named
5219 something starting with __ and the normal name is an alias. */
5220 #if defined (__stub_regfree) || defined (__stub___regfree)
5228 if { (eval echo configure:5229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5230 eval "ac_cv_func_regfree=yes"
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5235 eval "ac_cv_func_regfree=no"
5240 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5241 echo "$ac_t""yes" 1>&6
5244 echo "$ac_t""no" 1>&6
5245 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5250 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5251 echo "configure:5252: checking for compatible POSIX regex" >&5
5252 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5256 if test "$cross_compiling" = yes; then
5257 ol_cv_c_posix_regex=cross
5259 cat > conftest.$ac_ext <<EOF
5260 #line 5261 "configure"
5261 #include "confdefs.h"
5263 #include <sys/types.h>
5265 static char *pattern, *string;
5273 if(regcomp(&re, pattern, 0)) {
5277 string = "ALL MATCH";
5279 rc = regexec(&re, string, 0, (void*)0, 0);
5286 if { (eval echo configure:5287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5288 ol_cv_c_posix_regex=yes
5290 echo "configure: failed program was:" >&5
5291 cat conftest.$ac_ext >&5
5293 ol_cv_c_posix_regex=no
5300 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5302 if test "$ol_cv_c_posix_regex" = no ; then
5303 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5307 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5308 echo "configure:5309: checking for res_query" >&5
5309 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5310 echo $ac_n "(cached) $ac_c" 1>&6
5312 cat > conftest.$ac_ext <<EOF
5313 #line 5314 "configure"
5314 #include "confdefs.h"
5315 /* System header to define __stub macros and hopefully few prototypes,
5316 which can conflict with char res_query(); below. */
5318 /* Override any gcc2 internal prototype to avoid an error. */
5319 /* We use char because int might match the return type of a gcc2
5320 builtin and then its argument prototype would still apply. */
5326 /* The GNU C library defines this for functions which it implements
5327 to always fail with ENOSYS. Some functions are actually named
5328 something starting with __ and the normal name is an alias. */
5329 #if defined (__stub_res_query) || defined (__stub___res_query)
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5339 eval "ac_cv_func_res_query=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.$ac_ext >&5
5344 eval "ac_cv_func_res_query=no"
5349 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5350 echo "$ac_t""yes" 1>&6
5353 echo "$ac_t""no" 1>&6
5356 if test $ac_cv_func_res_query = no ; then
5357 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5358 echo "configure:5359: checking for res_query in -lbind" >&5
5359 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5360 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5361 echo $ac_n "(cached) $ac_c" 1>&6
5363 ac_save_LIBS="$LIBS"
5365 cat > conftest.$ac_ext <<EOF
5366 #line 5367 "configure"
5367 #include "confdefs.h"
5368 /* Override any gcc2 internal prototype to avoid an error. */
5369 /* We use char because int might match the return type of a gcc2
5370 builtin and then its argument prototype would still apply. */
5377 if { (eval echo configure:5378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5379 eval "ac_cv_lib_$ac_lib_var=yes"
5381 echo "configure: failed program was:" >&5
5382 cat conftest.$ac_ext >&5
5384 eval "ac_cv_lib_$ac_lib_var=no"
5387 LIBS="$ac_save_LIBS"
5390 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5391 echo "$ac_t""yes" 1>&6
5392 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5393 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5394 cat >> confdefs.h <<EOF
5395 #define $ac_tr_lib 1
5401 echo "$ac_t""no" 1>&6
5404 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5407 if test $ac_cv_func_res_query = no ; then
5408 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5409 echo "configure:5410: checking for __res_query in -lbind" >&5
5410 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5411 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5412 echo $ac_n "(cached) $ac_c" 1>&6
5414 ac_save_LIBS="$LIBS"
5416 cat > conftest.$ac_ext <<EOF
5417 #line 5418 "configure"
5418 #include "confdefs.h"
5419 /* Override any gcc2 internal prototype to avoid an error. */
5420 /* We use char because int might match the return type of a gcc2
5421 builtin and then its argument prototype would still apply. */
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 eval "ac_cv_lib_$ac_lib_var=yes"
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5435 eval "ac_cv_lib_$ac_lib_var=no"
5438 LIBS="$ac_save_LIBS"
5441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5442 echo "$ac_t""yes" 1>&6
5443 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5444 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5445 cat >> confdefs.h <<EOF
5446 #define $ac_tr_lib 1
5452 echo "$ac_t""no" 1>&6
5455 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5458 if test $ac_cv_func_res_query = no ; then
5459 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5460 echo "configure:5461: checking for res_query in -lresolv" >&5
5461 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5462 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5463 echo $ac_n "(cached) $ac_c" 1>&6
5465 ac_save_LIBS="$LIBS"
5466 LIBS="-lresolv $LIBS"
5467 cat > conftest.$ac_ext <<EOF
5468 #line 5469 "configure"
5469 #include "confdefs.h"
5470 /* Override any gcc2 internal prototype to avoid an error. */
5471 /* We use char because int might match the return type of a gcc2
5472 builtin and then its argument prototype would still apply. */
5479 if { (eval echo configure:5480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5481 eval "ac_cv_lib_$ac_lib_var=yes"
5483 echo "configure: failed program was:" >&5
5484 cat conftest.$ac_ext >&5
5486 eval "ac_cv_lib_$ac_lib_var=no"
5489 LIBS="$ac_save_LIBS"
5492 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5493 echo "$ac_t""yes" 1>&6
5494 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5495 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5496 cat >> confdefs.h <<EOF
5497 #define $ac_tr_lib 1
5500 LIBS="-lresolv $LIBS"
5503 echo "$ac_t""no" 1>&6
5506 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5509 if test "$ac_cv_func_res_query" = yes ; then
5510 cat >> confdefs.h <<\EOF
5511 #define HAVE_RES_QUERY 1
5515 if test $ol_enable_dnssrv != no ; then
5520 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5521 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5524 for ac_func in getaddrinfo inet_ntop
5526 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5527 echo "configure:5528: checking for $ac_func" >&5
5528 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5529 echo $ac_n "(cached) $ac_c" 1>&6
5531 cat > conftest.$ac_ext <<EOF
5532 #line 5533 "configure"
5533 #include "confdefs.h"
5534 /* System header to define __stub macros and hopefully few prototypes,
5535 which can conflict with char $ac_func(); below. */
5537 /* Override any gcc2 internal prototype to avoid an error. */
5538 /* We use char because int might match the return type of a gcc2
5539 builtin and then its argument prototype would still apply. */
5545 /* The GNU C library defines this for functions which it implements
5546 to always fail with ENOSYS. Some functions are actually named
5547 something starting with __ and the normal name is an alias. */
5548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5556 if { (eval echo configure:5557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5558 eval "ac_cv_func_$ac_func=yes"
5560 echo "configure: failed program was:" >&5
5561 cat conftest.$ac_ext >&5
5563 eval "ac_cv_func_$ac_func=no"
5568 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5569 echo "$ac_t""yes" 1>&6
5570 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5571 cat >> confdefs.h <<EOF
5572 #define $ac_tr_func 1
5576 echo "$ac_t""no" 1>&6
5582 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5583 if test $ol_enable_ipv6 = yes ; then
5584 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5587 for ac_func in gai_strerror
5589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5590 echo "configure:5591: checking for $ac_func" >&5
5591 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5592 echo $ac_n "(cached) $ac_c" 1>&6
5594 cat > conftest.$ac_ext <<EOF
5595 #line 5596 "configure"
5596 #include "confdefs.h"
5597 /* System header to define __stub macros and hopefully few prototypes,
5598 which can conflict with char $ac_func(); below. */
5600 /* Override any gcc2 internal prototype to avoid an error. */
5601 /* We use char because int might match the return type of a gcc2
5602 builtin and then its argument prototype would still apply. */
5608 /* The GNU C library defines this for functions which it implements
5609 to always fail with ENOSYS. Some functions are actually named
5610 something starting with __ and the normal name is an alias. */
5611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5619 if { (eval echo configure:5620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5621 eval "ac_cv_func_$ac_func=yes"
5623 echo "configure: failed program was:" >&5
5624 cat conftest.$ac_ext >&5
5626 eval "ac_cv_func_$ac_func=no"
5631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5632 echo "$ac_t""yes" 1>&6
5633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5634 cat >> confdefs.h <<EOF
5635 #define $ac_tr_func 1
5639 echo "$ac_t""no" 1>&6
5644 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5645 echo "configure:5646: checking INET6_ADDRSTRLEN" >&5
5646 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5647 echo $ac_n "(cached) $ac_c" 1>&6
5650 cat > conftest.$ac_ext <<EOF
5651 #line 5652 "configure"
5652 #include "confdefs.h"
5654 # include <netinet/in.h>
5655 # ifdef INET6_ADDRSTRLEN
5656 __has_inet6_addrstrlen__;
5660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5661 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5663 ol_cv_inet6_addrstrlen=yes
5666 ol_cv_inet6_addrstrlen=no
5672 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5674 if test $ol_cv_inet6_addrstrlen = yes ; then
5676 elif test $ol_enable_ipv6 = yes ; then
5677 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5681 if test $ol_enable_local != no ; then
5682 for ac_hdr in sys/un.h
5684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5686 echo "configure:5687: checking for $ac_hdr" >&5
5687 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5688 echo $ac_n "(cached) $ac_c" 1>&6
5690 cat > conftest.$ac_ext <<EOF
5691 #line 5692 "configure"
5692 #include "confdefs.h"
5695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5696 { (eval echo configure:5697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5698 if test -z "$ac_err"; then
5700 eval "ac_cv_header_$ac_safe=yes"
5703 echo "configure: failed program was:" >&5
5704 cat conftest.$ac_ext >&5
5706 eval "ac_cv_header_$ac_safe=no"
5710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5711 echo "$ac_t""yes" 1>&6
5712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5713 cat >> confdefs.h <<EOF
5714 #define $ac_tr_hdr 1
5718 echo "$ac_t""no" 1>&6
5723 if test $ol_enable_local = auto ; then
5724 ol_enable_local=$ac_cv_header_sys_un_h
5725 elif test $ac_cv_header_sys_un_h = no ; then
5726 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5735 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5736 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5737 -o $ol_with_kerberos = k425 ; then
5739 for ac_hdr in krb5.h
5741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5743 echo "configure:5744: checking for $ac_hdr" >&5
5744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5745 echo $ac_n "(cached) $ac_c" 1>&6
5747 cat > conftest.$ac_ext <<EOF
5748 #line 5749 "configure"
5749 #include "confdefs.h"
5752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5753 { (eval echo configure:5754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5755 if test -z "$ac_err"; then
5757 eval "ac_cv_header_$ac_safe=yes"
5760 echo "configure: failed program was:" >&5
5761 cat conftest.$ac_ext >&5
5763 eval "ac_cv_header_$ac_safe=no"
5767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5768 echo "$ac_t""yes" 1>&6
5769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5770 cat >> confdefs.h <<EOF
5771 #define $ac_tr_hdr 1
5775 echo "$ac_t""no" 1>&6
5780 if test $ac_cv_header_krb5_h = yes ; then
5781 for ac_hdr in heim_err.h
5783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5785 echo "configure:5786: checking for $ac_hdr" >&5
5786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5787 echo $ac_n "(cached) $ac_c" 1>&6
5789 cat > conftest.$ac_ext <<EOF
5790 #line 5791 "configure"
5791 #include "confdefs.h"
5794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5795 { (eval echo configure:5796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5797 if test -z "$ac_err"; then
5799 eval "ac_cv_header_$ac_safe=yes"
5802 echo "configure: failed program was:" >&5
5803 cat conftest.$ac_ext >&5
5805 eval "ac_cv_header_$ac_safe=no"
5809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5810 echo "$ac_t""yes" 1>&6
5811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5812 cat >> confdefs.h <<EOF
5813 #define $ac_tr_hdr 1
5817 echo "$ac_t""no" 1>&6
5821 if test $ac_cv_header_heim_err_h = yes ; then
5827 if test $krb5_impl = mit; then
5828 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5829 echo "configure:5830: checking for main in -lkrb5" >&5
5830 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5832 echo $ac_n "(cached) $ac_c" 1>&6
5834 ac_save_LIBS="$LIBS"
5835 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5836 cat > conftest.$ac_ext <<EOF
5837 #line 5838 "configure"
5838 #include "confdefs.h"
5844 if { (eval echo configure:5845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5846 eval "ac_cv_lib_$ac_lib_var=yes"
5848 echo "configure: failed program was:" >&5
5849 cat conftest.$ac_ext >&5
5851 eval "ac_cv_lib_$ac_lib_var=no"
5854 LIBS="$ac_save_LIBS"
5857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5858 echo "$ac_t""yes" 1>&6
5860 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5862 echo "$ac_t""no" 1>&6
5867 elif test $krb5_impl = heimdal; then
5868 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5869 echo "configure:5870: checking for main in -lkrb5" >&5
5870 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5871 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5872 echo $ac_n "(cached) $ac_c" 1>&6
5874 ac_save_LIBS="$LIBS"
5875 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5876 cat > conftest.$ac_ext <<EOF
5877 #line 5878 "configure"
5878 #include "confdefs.h"
5884 if { (eval echo configure:5885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5886 eval "ac_cv_lib_$ac_lib_var=yes"
5888 echo "configure: failed program was:" >&5
5889 cat conftest.$ac_ext >&5
5891 eval "ac_cv_lib_$ac_lib_var=no"
5894 LIBS="$ac_save_LIBS"
5897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5898 echo "$ac_t""yes" 1>&6
5900 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5902 echo "$ac_t""no" 1>&6
5907 cat >> confdefs.h <<\EOF
5908 #define HAVE_HEIMDAL_KERBEROS 1
5913 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
5916 if test $have_krb5 = yes ; then
5919 cat >> confdefs.h <<\EOF
5924 if test $ol_enable_kpasswd != no ; then
5925 ol_link_kpasswd=yes;
5928 if test $ol_with_kerberos = k5only ; then
5929 ol_with_kerberos=found
5932 elif test $ol_with_kerberos != auto ; then
5933 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5939 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
5940 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5942 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5944 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5945 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5946 echo "configure:5947: checking for $ac_hdr" >&5
5947 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5948 echo $ac_n "(cached) $ac_c" 1>&6
5950 cat > conftest.$ac_ext <<EOF
5951 #line 5952 "configure"
5952 #include "confdefs.h"
5955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5956 { (eval echo configure:5957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5958 if test -z "$ac_err"; then
5960 eval "ac_cv_header_$ac_safe=yes"
5963 echo "configure: failed program was:" >&5
5964 cat conftest.$ac_ext >&5
5966 eval "ac_cv_header_$ac_safe=no"
5970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5971 echo "$ac_t""yes" 1>&6
5972 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5973 cat >> confdefs.h <<EOF
5974 #define $ac_tr_hdr 1
5978 echo "$ac_t""no" 1>&6
5983 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5984 if test $krb5_impl = mit; then
5985 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5986 echo "configure:5987: checking for main in -lkrb4" >&5
5987 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5989 echo $ac_n "(cached) $ac_c" 1>&6
5991 ac_save_LIBS="$LIBS"
5992 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
6001 if { (eval echo configure:6002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6003 eval "ac_cv_lib_$ac_lib_var=yes"
6005 echo "configure: failed program was:" >&5
6006 cat conftest.$ac_ext >&5
6008 eval "ac_cv_lib_$ac_lib_var=no"
6011 LIBS="$ac_save_LIBS"
6014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6015 echo "$ac_t""yes" 1>&6
6017 KRB4_LIBS="-lkrb4 -ldes425"
6019 echo "$ac_t""no" 1>&6
6024 elif test $krb5_impl = heimdal; then
6025 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6026 echo "configure:6027: checking for main in -lkrb4" >&5
6027 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6029 echo $ac_n "(cached) $ac_c" 1>&6
6031 ac_save_LIBS="$LIBS"
6032 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6033 cat > conftest.$ac_ext <<EOF
6034 #line 6035 "configure"
6035 #include "confdefs.h"
6041 if { (eval echo configure:6042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6043 eval "ac_cv_lib_$ac_lib_var=yes"
6045 echo "configure: failed program was:" >&5
6046 cat conftest.$ac_ext >&5
6048 eval "ac_cv_lib_$ac_lib_var=no"
6051 LIBS="$ac_save_LIBS"
6054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6055 echo "$ac_t""yes" 1>&6
6059 echo "$ac_t""no" 1>&6
6066 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6069 if test $have_k425 = yes ; then
6070 ol_with_kerberos=found
6073 cat >> confdefs.h <<\EOF
6074 #define HAVE_KRB425 1
6077 cat >> confdefs.h <<\EOF
6082 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6083 echo "configure:6084: checking for des_debug in Kerberos libraries" >&5
6084 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6085 echo $ac_n "(cached) $ac_c" 1>&6
6089 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6090 cat > conftest.$ac_ext <<EOF
6091 #line 6092 "configure"
6092 #include "confdefs.h"
6094 #include <kerberosIV/krb.h>
6095 #include <kerberosIV/des.h>
6096 extern int des_debug;
6104 if { (eval echo configure:6105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6106 ol_cv_var_des_debug=yes
6108 echo "configure: failed program was:" >&5
6109 cat conftest.$ac_ext >&5
6111 ol_cv_var_des_debug=no
6118 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6120 if test $ol_cv_var_des_debug = yes ; then
6121 cat >> confdefs.h <<\EOF
6122 #define HAVE_DES_DEBUG 1
6132 if test $ol_link_krb5 = yes ; then
6133 ol_with_kerberos=found
6136 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6137 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6139 for ac_hdr in krb.h des.h krb-archaeology.h
6141 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6142 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6143 echo "configure:6144: checking for $ac_hdr" >&5
6144 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6145 echo $ac_n "(cached) $ac_c" 1>&6
6147 cat > conftest.$ac_ext <<EOF
6148 #line 6149 "configure"
6149 #include "confdefs.h"
6152 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6153 { (eval echo configure:6154: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6154 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6155 if test -z "$ac_err"; then
6157 eval "ac_cv_header_$ac_safe=yes"
6160 echo "configure: failed program was:" >&5
6161 cat conftest.$ac_ext >&5
6163 eval "ac_cv_header_$ac_safe=no"
6167 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6168 echo "$ac_t""yes" 1>&6
6169 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6170 cat >> confdefs.h <<EOF
6171 #define $ac_tr_hdr 1
6175 echo "$ac_t""no" 1>&6
6180 if test $ac_cv_header_krb_h = yes ; then
6181 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6182 echo "configure:6183: checking for main in -lkrb" >&5
6183 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6184 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6185 echo $ac_n "(cached) $ac_c" 1>&6
6187 ac_save_LIBS="$LIBS"
6188 LIBS="-lkrb -ldes $LIBS"
6189 cat > conftest.$ac_ext <<EOF
6190 #line 6191 "configure"
6191 #include "confdefs.h"
6197 if { (eval echo configure:6198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6199 eval "ac_cv_lib_$ac_lib_var=yes"
6201 echo "configure: failed program was:" >&5
6202 cat conftest.$ac_ext >&5
6204 eval "ac_cv_lib_$ac_lib_var=no"
6207 LIBS="$ac_save_LIBS"
6210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6211 echo "$ac_t""yes" 1>&6
6214 echo "$ac_t""no" 1>&6
6219 if test $have_k4 = yes ; then
6220 ol_with_kerberos=found
6223 cat >> confdefs.h <<\EOF
6228 KRB4_LIBS="-lkrb -ldes"
6230 if test $ac_cv_header_krb_archaeology_h = yes ; then
6231 cat >> confdefs.h <<\EOF
6232 #define HAVE_KTH_KERBEROS 1
6240 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6244 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6247 elif test $ol_enable_kbind = yes ; then
6248 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6251 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6252 cat >> confdefs.h <<\EOF
6253 #define HAVE_KERBEROS 1
6257 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6258 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6262 if test $ol_with_tls != no ; then
6263 for ac_hdr in openssl/ssl.h ssl.h
6265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6267 echo "configure:6268: checking for $ac_hdr" >&5
6268 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6269 echo $ac_n "(cached) $ac_c" 1>&6
6271 cat > conftest.$ac_ext <<EOF
6272 #line 6273 "configure"
6273 #include "confdefs.h"
6276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6277 { (eval echo configure:6278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6279 if test -z "$ac_err"; then
6281 eval "ac_cv_header_$ac_safe=yes"
6284 echo "configure: failed program was:" >&5
6285 cat conftest.$ac_ext >&5
6287 eval "ac_cv_header_$ac_safe=no"
6291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6292 echo "$ac_t""yes" 1>&6
6293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6294 cat >> confdefs.h <<EOF
6295 #define $ac_tr_hdr 1
6299 echo "$ac_t""no" 1>&6
6304 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6305 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6306 echo "configure:6307: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6307 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6308 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6309 echo $ac_n "(cached) $ac_c" 1>&6
6311 ac_save_LIBS="$LIBS"
6312 LIBS="-lssl -lcrypto $LIBS"
6313 cat > conftest.$ac_ext <<EOF
6314 #line 6315 "configure"
6315 #include "confdefs.h"
6316 /* Override any gcc2 internal prototype to avoid an error. */
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char SSLeay_add_ssl_algorithms();
6322 SSLeay_add_ssl_algorithms()
6325 if { (eval echo configure:6326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6327 eval "ac_cv_lib_$ac_lib_var=yes"
6329 echo "configure: failed program was:" >&5
6330 cat conftest.$ac_ext >&5
6332 eval "ac_cv_lib_$ac_lib_var=no"
6335 LIBS="$ac_save_LIBS"
6338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6339 echo "$ac_t""yes" 1>&6
6343 echo "$ac_t""no" 1>&6
6348 if test $have_ssleay = no ; then
6349 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6350 echo "configure:6351: checking for SSL_library_init in -lssl" >&5
6351 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6353 echo $ac_n "(cached) $ac_c" 1>&6
6355 ac_save_LIBS="$LIBS"
6356 LIBS="-lssl -lcrypto $LIBS"
6357 cat > conftest.$ac_ext <<EOF
6358 #line 6359 "configure"
6359 #include "confdefs.h"
6360 /* Override any gcc2 internal prototype to avoid an error. */
6361 /* We use char because int might match the return type of a gcc2
6362 builtin and then its argument prototype would still apply. */
6363 char SSL_library_init();
6369 if { (eval echo configure:6370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6371 eval "ac_cv_lib_$ac_lib_var=yes"
6373 echo "configure: failed program was:" >&5
6374 cat conftest.$ac_ext >&5
6376 eval "ac_cv_lib_$ac_lib_var=no"
6379 LIBS="$ac_save_LIBS"
6382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6383 echo "$ac_t""yes" 1>&6
6387 echo "$ac_t""no" 1>&6
6393 if test $have_ssleay = no ; then
6394 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6395 echo "configure:6396: checking for ssl3_accept in -lssl" >&5
6396 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6398 echo $ac_n "(cached) $ac_c" 1>&6
6400 ac_save_LIBS="$LIBS"
6401 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6402 cat > conftest.$ac_ext <<EOF
6403 #line 6404 "configure"
6404 #include "confdefs.h"
6405 /* Override any gcc2 internal prototype to avoid an error. */
6406 /* We use char because int might match the return type of a gcc2
6407 builtin and then its argument prototype would still apply. */
6414 if { (eval echo configure:6415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6416 eval "ac_cv_lib_$ac_lib_var=yes"
6418 echo "configure: failed program was:" >&5
6419 cat conftest.$ac_ext >&5
6421 eval "ac_cv_lib_$ac_lib_var=no"
6424 LIBS="$ac_save_LIBS"
6427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6428 echo "$ac_t""yes" 1>&6
6432 echo "$ac_t""no" 1>&6
6438 if test $have_ssleay = yes ; then
6442 cat >> confdefs.h <<\EOF
6443 #define HAVE_SSLEAY 1
6447 if test $need_rsaref = yes; then
6448 cat >> confdefs.h <<\EOF
6449 #define HAVE_RSAREF 1
6453 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6455 TLS_LIBS="-lssl -lcrypto"
6461 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6464 if test $ol_link_tls = yes ; then
6465 cat >> confdefs.h <<\EOF
6470 elif test $ol_with_tls = auto ; then
6471 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6472 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6474 elif test $ol_with_tls != no ; then
6475 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6480 gethostbyname_r gethostbyaddr_r \
6483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6484 echo "configure:6485: checking for $ac_func" >&5
6485 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6486 echo $ac_n "(cached) $ac_c" 1>&6
6488 cat > conftest.$ac_ext <<EOF
6489 #line 6490 "configure"
6490 #include "confdefs.h"
6491 /* System header to define __stub macros and hopefully few prototypes,
6492 which can conflict with char $ac_func(); below. */
6494 /* Override any gcc2 internal prototype to avoid an error. */
6495 /* We use char because int might match the return type of a gcc2
6496 builtin and then its argument prototype would still apply. */
6502 /* The GNU C library defines this for functions which it implements
6503 to always fail with ENOSYS. Some functions are actually named
6504 something starting with __ and the normal name is an alias. */
6505 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6513 if { (eval echo configure:6514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6515 eval "ac_cv_func_$ac_func=yes"
6517 echo "configure: failed program was:" >&5
6518 cat conftest.$ac_ext >&5
6520 eval "ac_cv_func_$ac_func=no"
6525 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6526 echo "$ac_t""yes" 1>&6
6527 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6528 cat >> confdefs.h <<EOF
6529 #define $ac_tr_func 1
6533 echo "$ac_t""no" 1>&6
6538 if test "$ac_cv_func_ctime_r" = no ; then
6539 ol_cv_func_ctime_r_nargs=0
6541 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6542 echo "configure:6543: checking number of arguments of ctime_r" >&5
6543 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6544 echo $ac_n "(cached) $ac_c" 1>&6
6546 cat > conftest.$ac_ext <<EOF
6547 #line 6548 "configure"
6548 #include "confdefs.h"
6551 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6554 if { (eval echo configure:6555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6556 ol_cv_func_ctime_r_nargs3=yes
6558 echo "configure: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6561 ol_cv_func_ctime_r_nargs3=no
6565 cat > conftest.$ac_ext <<EOF
6566 #line 6567 "configure"
6567 #include "confdefs.h"
6570 time_t ti; char *buffer; ctime_r(&ti,buffer);
6573 if { (eval echo configure:6574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6575 ol_cv_func_ctime_r_nargs2=yes
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 ol_cv_func_ctime_r_nargs2=no
6584 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6585 $ol_cv_func_ctime_r_nargs2 = no ; then
6587 ol_cv_func_ctime_r_nargs=3
6589 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6590 $ol_cv_func_ctime_r_nargs2 = yes ; then
6592 ol_cv_func_ctime_r_nargs=2
6595 ol_cv_func_ctime_r_nargs=0
6600 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6602 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6603 cat >> confdefs.h <<EOF
6604 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6611 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6612 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6613 echo "configure:6614: checking number of arguments of gethostbyname_r" >&5
6614 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6615 echo $ac_n "(cached) $ac_c" 1>&6
6617 cat > conftest.$ac_ext <<EOF
6618 #line 6619 "configure"
6619 #include "confdefs.h"
6620 #include <sys/types.h>
6621 #include <sys/socket.h>
6622 #include <netinet/in.h>
6624 #define BUFSIZE (sizeof(struct hostent)+10)
6626 struct hostent hent; char buffer[BUFSIZE];
6627 int bufsize=BUFSIZE;int h_errno;
6628 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6629 buffer, bufsize, &h_errno);
6632 if { (eval echo configure:6633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6634 ol_cv_func_gethostbyname_r_nargs5=yes
6636 echo "configure: failed program was:" >&5
6637 cat conftest.$ac_ext >&5
6639 ol_cv_func_gethostbyname_r_nargs5=no
6643 cat > conftest.$ac_ext <<EOF
6644 #line 6645 "configure"
6645 #include "confdefs.h"
6646 #include <sys/types.h>
6647 #include <sys/socket.h>
6648 #include <netinet/in.h>
6650 #define BUFSIZE (sizeof(struct hostent)+10)
6652 struct hostent hent;struct hostent *rhent;
6653 char buffer[BUFSIZE];
6654 int bufsize=BUFSIZE;int h_errno;
6655 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6659 if { (eval echo configure:6660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6661 ol_cv_func_gethostbyname_r_nargs6=yes
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 ol_cv_func_gethostbyname_r_nargs6=no
6670 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6671 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6673 ol_cv_func_gethostbyname_r_nargs=5
6675 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6676 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6678 ol_cv_func_gethostbyname_r_nargs=6
6681 ol_cv_func_gethostbyname_r_nargs=0
6686 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6687 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6688 cat >> confdefs.h <<EOF
6689 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6695 ol_cv_func_gethostbyname_r_nargs=0
6698 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6699 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6700 echo "configure:6701: checking number of arguments of gethostbyaddr_r" >&5
6701 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6702 echo $ac_n "(cached) $ac_c" 1>&6
6704 cat > conftest.$ac_ext <<EOF
6705 #line 6706 "configure"
6706 #include "confdefs.h"
6707 #include <sys/types.h>
6708 #include <sys/socket.h>
6709 #include <netinet/in.h>
6711 #define BUFSIZE (sizeof(struct hostent)+10)
6713 struct hostent hent; char buffer[BUFSIZE];
6715 size_t alen=sizeof(struct in_addr);
6716 int bufsize=BUFSIZE;int h_errno;
6717 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6718 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6721 if { (eval echo configure:6722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6723 ol_cv_func_gethostbyaddr_r_nargs7=yes
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 ol_cv_func_gethostbyaddr_r_nargs7=no
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 #include <sys/types.h>
6736 #include <sys/socket.h>
6737 #include <netinet/in.h>
6739 #define BUFSIZE (sizeof(struct hostent)+10)
6741 struct hostent hent;
6742 struct hostent *rhent; char buffer[BUFSIZE];
6744 size_t alen=sizeof(struct in_addr);
6745 int bufsize=BUFSIZE;int h_errno;
6746 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6747 alen, AF_INET, &hent, buffer, bufsize,
6751 if { (eval echo configure:6752: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6753 ol_cv_func_gethostbyaddr_r_nargs8=yes
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 ol_cv_func_gethostbyaddr_r_nargs8=no
6762 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6763 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6765 ol_cv_func_gethostbyaddr_r_nargs=7
6767 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6768 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6770 ol_cv_func_gethostbyaddr_r_nargs=8
6773 ol_cv_func_gethostbyaddr_r_nargs=0
6778 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6779 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6780 cat >> confdefs.h <<EOF
6781 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6787 ol_cv_func_gethostbyaddr_r_nargs=0
6790 if test "$ac_cv_func_ctime_r" = yes \
6791 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6792 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6793 -a "$ac_cv_func_gethostbyname_r" = yes \
6794 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6795 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6796 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6797 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6798 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6801 cat >> confdefs.h <<\EOF
6802 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6809 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6810 -o $ol_with_threads = nt ; then
6813 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6814 echo "configure:6815: checking for _beginthread" >&5
6815 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6818 cat > conftest.$ac_ext <<EOF
6819 #line 6820 "configure"
6820 #include "confdefs.h"
6821 /* System header to define __stub macros and hopefully few prototypes,
6822 which can conflict with char _beginthread(); below. */
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6827 char _beginthread();
6832 /* The GNU C library defines this for functions which it implements
6833 to always fail with ENOSYS. Some functions are actually named
6834 something starting with __ and the normal name is an alias. */
6835 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6843 if { (eval echo configure:6844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6845 eval "ac_cv_func__beginthread=yes"
6847 echo "configure: failed program was:" >&5
6848 cat conftest.$ac_ext >&5
6850 eval "ac_cv_func__beginthread=no"
6855 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6859 echo "$ac_t""no" 1>&6
6863 if test $ac_cv_func__beginthread = yes ; then
6864 cat >> confdefs.h <<\EOF
6865 #define HAVE_NT_THREADS 1
6871 if test "$ol_cv_nt_threads" = yes ; then
6873 ol_with_threads=found
6874 ol_with_yielding_select=yes
6876 cat >> confdefs.h <<\EOF
6877 #define HAVE_NT_SERVICE_MANAGER 1
6880 cat >> confdefs.h <<\EOF
6881 #define HAVE_NT_EVENT_LOG 1
6886 if test $ol_with_threads = nt ; then
6887 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6891 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6892 -o $ol_with_threads = posix ; then
6894 for ac_hdr in pthread.h
6896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6898 echo "configure:6899: checking for $ac_hdr" >&5
6899 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 cat > conftest.$ac_ext <<EOF
6903 #line 6904 "configure"
6904 #include "confdefs.h"
6907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6908 { (eval echo configure:6909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6910 if test -z "$ac_err"; then
6912 eval "ac_cv_header_$ac_safe=yes"
6915 echo "configure: failed program was:" >&5
6916 cat conftest.$ac_ext >&5
6918 eval "ac_cv_header_$ac_safe=no"
6922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6925 cat >> confdefs.h <<EOF
6926 #define $ac_tr_hdr 1
6930 echo "$ac_t""no" 1>&6
6935 if test $ac_cv_header_pthread_h = yes ; then
6936 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6937 echo "configure:6938: checking POSIX thread version" >&5
6938 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6939 echo $ac_n "(cached) $ac_c" 1>&6
6942 cat > conftest.$ac_ext <<EOF
6943 #line 6944 "configure"
6944 #include "confdefs.h"
6946 # include <pthread.h>
6947 /* this check could be improved */
6948 # ifdef PTHREAD_ONCE_INIT
6949 pthread_version_final;
6953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6954 egrep "pthread_version_final" >/dev/null 2>&1; then
6956 ol_pthread_final=yes
6964 cat > conftest.$ac_ext <<EOF
6965 #line 6966 "configure"
6966 #include "confdefs.h"
6968 # include <pthread.h>
6969 /* this check could be improved */
6970 # ifdef pthread_once_init
6971 pthread_version_draft4;
6975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6976 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6978 ol_pthread_draft4=yes
6981 ol_pthread_draft4=no
6986 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6987 ol_cv_pthread_version=final
6988 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6989 ol_cv_pthread_version=draft4
6991 ol_cv_pthread_version=unknown
6996 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6999 if test $ol_cv_pthread_version = final ; then
7000 cat >> confdefs.h <<\EOF
7001 #define HAVE_PTHREADS_FINAL 1
7004 elif test $ol_cv_pthread_version = draft4 ; then
7005 cat >> confdefs.h <<\EOF
7006 #define HAVE_PTHREADS_D4 1
7010 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7013 # consider threads found
7014 ol_with_threads=found
7017 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7018 echo "configure:7019: checking for LinuxThreads pthread.h" >&5
7019 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7020 echo $ac_n "(cached) $ac_c" 1>&6
7022 cat > conftest.$ac_ext <<EOF
7023 #line 7024 "configure"
7024 #include "confdefs.h"
7025 #include <pthread.h>
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7030 ol_cv_header_linux_threads=yes
7033 ol_cv_header_linux_threads=no
7040 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7041 if test $ol_cv_header_linux_threads = yes; then
7042 cat >> confdefs.h <<\EOF
7043 #define HAVE_LINUX_THREADS 1
7049 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7050 echo "configure:7051: checking for GNU Pth pthread.h" >&5
7051 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7052 echo $ac_n "(cached) $ac_c" 1>&6
7054 cat > conftest.$ac_ext <<EOF
7055 #line 7056 "configure"
7056 #include "confdefs.h"
7057 #include <pthread.h>
7058 #ifdef _POSIX_THREAD_IS_GNU_PTH
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 egrep "__gnu_pth__" >/dev/null 2>&1; then
7066 ol_cv_header_gnu_pth_pthread_h=yes
7069 ol_cv_header_gnu_pth_pthread_h=no
7076 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7079 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7080 for ac_hdr in sched.h
7082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7084 echo "configure:7085: checking for $ac_hdr" >&5
7085 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7086 echo $ac_n "(cached) $ac_c" 1>&6
7088 cat > conftest.$ac_ext <<EOF
7089 #line 7090 "configure"
7090 #include "confdefs.h"
7093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7094 { (eval echo configure:7095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7096 if test -z "$ac_err"; then
7098 eval "ac_cv_header_$ac_safe=yes"
7101 echo "configure: failed program was:" >&5
7102 cat conftest.$ac_ext >&5
7104 eval "ac_cv_header_$ac_safe=no"
7108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7109 echo "$ac_t""yes" 1>&6
7110 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7111 cat >> confdefs.h <<EOF
7112 #define $ac_tr_hdr 1
7116 echo "$ac_t""no" 1>&6
7123 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7124 echo "configure:7125: checking for pthread_create in default libraries" >&5
7125 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7126 echo $ac_n "(cached) $ac_c" 1>&6
7129 if test "$cross_compiling" = yes; then
7130 cat > conftest.$ac_ext <<EOF
7131 #line 7132 "configure"
7132 #include "confdefs.h"
7133 /* pthread test headers */
7134 #include <pthread.h>
7136 #define NULL (void*)0
7139 static void *task(p)
7142 return (void *) (p == NULL);
7147 /* pthread test function */
7150 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7151 /* This system (e.g. AIX) defaults detached; must override */
7152 pthread_attr_t attr;
7154 status = pthread_attr_init(&attr);
7155 if( status ) exit( status );
7157 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7158 if( status ) exit( status );
7161 #elif defined( HAVE_PTHREADS_D4 )
7162 # define ATTR pthread_attr_default
7167 /* make sure pthread_create() isn't just a stub */
7168 status = pthread_create(&t, ATTR, task, NULL);
7169 if( status ) exit( status );
7171 /* give the thread a chance to complete...
7172 * it should remain joinable and hence detachable
7176 /* make sure pthread_detach() isn't just a stub */
7177 #if HAVE_PTHREADS_D4
7178 status = pthread_detach( &t );
7180 status = pthread_detach( t );
7183 #ifdef HAVE_LINUX_THREADS
7184 pthread_kill_other_threads_np();
7191 if { (eval echo configure:7192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7193 ol_cv_pthread_create=yes
7195 echo "configure: failed program was:" >&5
7196 cat conftest.$ac_ext >&5
7198 ol_cv_pthread_create=no
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 /* pthread test headers */
7206 #include <pthread.h>
7208 #define NULL (void*)0
7211 static void *task(p)
7214 return (void *) (p == NULL);
7218 int main(argc, argv)
7223 /* pthread test function */
7226 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7227 /* This system (e.g. AIX) defaults detached; must override */
7228 pthread_attr_t attr;
7230 status = pthread_attr_init(&attr);
7231 if( status ) exit( status );
7233 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7234 if( status ) exit( status );
7237 #elif defined( HAVE_PTHREADS_D4 )
7238 # define ATTR pthread_attr_default
7243 /* make sure pthread_create() isn't just a stub */
7244 status = pthread_create(&t, ATTR, task, NULL);
7245 if( status ) exit( status );
7247 /* give the thread a chance to complete...
7248 * it should remain joinable and hence detachable
7252 /* make sure pthread_detach() isn't just a stub */
7253 #if HAVE_PTHREADS_D4
7254 status = pthread_detach( &t );
7256 status = pthread_detach( t );
7259 #ifdef HAVE_LINUX_THREADS
7260 pthread_kill_other_threads_np();
7268 if { (eval echo configure:7269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7270 ol_cv_pthread_create=yes
7272 echo "configure: failed program was:" >&5
7273 cat conftest.$ac_ext >&5
7275 ol_cv_pthread_create=no
7282 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7284 if test $ol_cv_pthread_create != no ; then
7285 ol_link_threads=posix
7289 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7290 if test "$ol_link_threads" = no ; then
7292 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7293 echo "configure:7294: checking for pthread link with -kthread" >&5
7294 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7295 echo $ac_n "(cached) $ac_c" 1>&6
7300 LIBS="-kthread $LIBS"
7302 if test "$cross_compiling" = yes; then
7303 cat > conftest.$ac_ext <<EOF
7304 #line 7305 "configure"
7305 #include "confdefs.h"
7306 /* pthread test headers */
7307 #include <pthread.h>
7309 #define NULL (void*)0
7312 static void *task(p)
7315 return (void *) (p == NULL);
7320 /* pthread test function */
7323 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7324 /* This system (e.g. AIX) defaults detached; must override */
7325 pthread_attr_t attr;
7327 status = pthread_attr_init(&attr);
7328 if( status ) exit( status );
7330 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7331 if( status ) exit( status );
7334 #elif defined( HAVE_PTHREADS_D4 )
7335 # define ATTR pthread_attr_default
7340 /* make sure pthread_create() isn't just a stub */
7341 status = pthread_create(&t, ATTR, task, NULL);
7342 if( status ) exit( status );
7344 /* give the thread a chance to complete...
7345 * it should remain joinable and hence detachable
7349 /* make sure pthread_detach() isn't just a stub */
7350 #if HAVE_PTHREADS_D4
7351 status = pthread_detach( &t );
7353 status = pthread_detach( t );
7356 #ifdef HAVE_LINUX_THREADS
7357 pthread_kill_other_threads_np();
7364 if { (eval echo configure:7365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7366 ol_cv_pthread_kthread=yes
7368 echo "configure: failed program was:" >&5
7369 cat conftest.$ac_ext >&5
7371 ol_cv_pthread_kthread=no
7375 cat > conftest.$ac_ext <<EOF
7376 #line 7377 "configure"
7377 #include "confdefs.h"
7378 /* pthread test headers */
7379 #include <pthread.h>
7381 #define NULL (void*)0
7384 static void *task(p)
7387 return (void *) (p == NULL);
7391 int main(argc, argv)
7396 /* pthread test function */
7399 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7400 /* This system (e.g. AIX) defaults detached; must override */
7401 pthread_attr_t attr;
7403 status = pthread_attr_init(&attr);
7404 if( status ) exit( status );
7406 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7407 if( status ) exit( status );
7410 #elif defined( HAVE_PTHREADS_D4 )
7411 # define ATTR pthread_attr_default
7416 /* make sure pthread_create() isn't just a stub */
7417 status = pthread_create(&t, ATTR, task, NULL);
7418 if( status ) exit( status );
7420 /* give the thread a chance to complete...
7421 * it should remain joinable and hence detachable
7425 /* make sure pthread_detach() isn't just a stub */
7426 #if HAVE_PTHREADS_D4
7427 status = pthread_detach( &t );
7429 status = pthread_detach( t );
7432 #ifdef HAVE_LINUX_THREADS
7433 pthread_kill_other_threads_np();
7441 if { (eval echo configure:7442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7443 ol_cv_pthread_kthread=yes
7445 echo "configure: failed program was:" >&5
7446 cat conftest.$ac_ext >&5
7448 ol_cv_pthread_kthread=no
7459 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7461 if test $ol_cv_pthread_kthread = yes ; then
7462 ol_link_pthreads="-kthread"
7463 ol_link_threads=posix
7467 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7468 if test "$ol_link_threads" = no ; then
7470 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7471 echo "configure:7472: checking for pthread link with -pthread" >&5
7472 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7473 echo $ac_n "(cached) $ac_c" 1>&6
7478 LIBS="-pthread $LIBS"
7480 if test "$cross_compiling" = yes; then
7481 cat > conftest.$ac_ext <<EOF
7482 #line 7483 "configure"
7483 #include "confdefs.h"
7484 /* pthread test headers */
7485 #include <pthread.h>
7487 #define NULL (void*)0
7490 static void *task(p)
7493 return (void *) (p == NULL);
7498 /* pthread test function */
7501 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7502 /* This system (e.g. AIX) defaults detached; must override */
7503 pthread_attr_t attr;
7505 status = pthread_attr_init(&attr);
7506 if( status ) exit( status );
7508 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7509 if( status ) exit( status );
7512 #elif defined( HAVE_PTHREADS_D4 )
7513 # define ATTR pthread_attr_default
7518 /* make sure pthread_create() isn't just a stub */
7519 status = pthread_create(&t, ATTR, task, NULL);
7520 if( status ) exit( status );
7522 /* give the thread a chance to complete...
7523 * it should remain joinable and hence detachable
7527 /* make sure pthread_detach() isn't just a stub */
7528 #if HAVE_PTHREADS_D4
7529 status = pthread_detach( &t );
7531 status = pthread_detach( t );
7534 #ifdef HAVE_LINUX_THREADS
7535 pthread_kill_other_threads_np();
7542 if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7544 ol_cv_pthread_pthread=yes
7546 echo "configure: failed program was:" >&5
7547 cat conftest.$ac_ext >&5
7549 ol_cv_pthread_pthread=no
7553 cat > conftest.$ac_ext <<EOF
7554 #line 7555 "configure"
7555 #include "confdefs.h"
7556 /* pthread test headers */
7557 #include <pthread.h>
7559 #define NULL (void*)0
7562 static void *task(p)
7565 return (void *) (p == NULL);
7569 int main(argc, argv)
7574 /* pthread test function */
7577 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7578 /* This system (e.g. AIX) defaults detached; must override */
7579 pthread_attr_t attr;
7581 status = pthread_attr_init(&attr);
7582 if( status ) exit( status );
7584 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7585 if( status ) exit( status );
7588 #elif defined( HAVE_PTHREADS_D4 )
7589 # define ATTR pthread_attr_default
7594 /* make sure pthread_create() isn't just a stub */
7595 status = pthread_create(&t, ATTR, task, NULL);
7596 if( status ) exit( status );
7598 /* give the thread a chance to complete...
7599 * it should remain joinable and hence detachable
7603 /* make sure pthread_detach() isn't just a stub */
7604 #if HAVE_PTHREADS_D4
7605 status = pthread_detach( &t );
7607 status = pthread_detach( t );
7610 #ifdef HAVE_LINUX_THREADS
7611 pthread_kill_other_threads_np();
7619 if { (eval echo configure:7620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7621 ol_cv_pthread_pthread=yes
7623 echo "configure: failed program was:" >&5
7624 cat conftest.$ac_ext >&5
7626 ol_cv_pthread_pthread=no
7637 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7639 if test $ol_cv_pthread_pthread = yes ; then
7640 ol_link_pthreads="-pthread"
7641 ol_link_threads=posix
7645 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7646 if test "$ol_link_threads" = no ; then
7648 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7649 echo "configure:7650: checking for pthread link with -pthreads" >&5
7650 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7651 echo $ac_n "(cached) $ac_c" 1>&6
7656 LIBS="-pthreads $LIBS"
7658 if test "$cross_compiling" = yes; then
7659 cat > conftest.$ac_ext <<EOF
7660 #line 7661 "configure"
7661 #include "confdefs.h"
7662 /* pthread test headers */
7663 #include <pthread.h>
7665 #define NULL (void*)0
7668 static void *task(p)
7671 return (void *) (p == NULL);
7676 /* pthread test function */
7679 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7680 /* This system (e.g. AIX) defaults detached; must override */
7681 pthread_attr_t attr;
7683 status = pthread_attr_init(&attr);
7684 if( status ) exit( status );
7686 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7687 if( status ) exit( status );
7690 #elif defined( HAVE_PTHREADS_D4 )
7691 # define ATTR pthread_attr_default
7696 /* make sure pthread_create() isn't just a stub */
7697 status = pthread_create(&t, ATTR, task, NULL);
7698 if( status ) exit( status );
7700 /* give the thread a chance to complete...
7701 * it should remain joinable and hence detachable
7705 /* make sure pthread_detach() isn't just a stub */
7706 #if HAVE_PTHREADS_D4
7707 status = pthread_detach( &t );
7709 status = pthread_detach( t );
7712 #ifdef HAVE_LINUX_THREADS
7713 pthread_kill_other_threads_np();
7720 if { (eval echo configure:7721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7722 ol_cv_pthread_pthreads=yes
7724 echo "configure: failed program was:" >&5
7725 cat conftest.$ac_ext >&5
7727 ol_cv_pthread_pthreads=no
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7734 /* pthread test headers */
7735 #include <pthread.h>
7737 #define NULL (void*)0
7740 static void *task(p)
7743 return (void *) (p == NULL);
7747 int main(argc, argv)
7752 /* pthread test function */
7755 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7756 /* This system (e.g. AIX) defaults detached; must override */
7757 pthread_attr_t attr;
7759 status = pthread_attr_init(&attr);
7760 if( status ) exit( status );
7762 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7763 if( status ) exit( status );
7766 #elif defined( HAVE_PTHREADS_D4 )
7767 # define ATTR pthread_attr_default
7772 /* make sure pthread_create() isn't just a stub */
7773 status = pthread_create(&t, ATTR, task, NULL);
7774 if( status ) exit( status );
7776 /* give the thread a chance to complete...
7777 * it should remain joinable and hence detachable
7781 /* make sure pthread_detach() isn't just a stub */
7782 #if HAVE_PTHREADS_D4
7783 status = pthread_detach( &t );
7785 status = pthread_detach( t );
7788 #ifdef HAVE_LINUX_THREADS
7789 pthread_kill_other_threads_np();
7797 if { (eval echo configure:7798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7799 ol_cv_pthread_pthreads=yes
7801 echo "configure: failed program was:" >&5
7802 cat conftest.$ac_ext >&5
7804 ol_cv_pthread_pthreads=no
7815 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7817 if test $ol_cv_pthread_pthreads = yes ; then
7818 ol_link_pthreads="-pthreads"
7819 ol_link_threads=posix
7823 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7824 if test "$ol_link_threads" = no ; then
7826 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7827 echo "configure:7828: checking for pthread link with -mthreads" >&5
7828 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7829 echo $ac_n "(cached) $ac_c" 1>&6
7834 LIBS="-mthreads $LIBS"
7836 if test "$cross_compiling" = yes; then
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7840 /* pthread test headers */
7841 #include <pthread.h>
7843 #define NULL (void*)0
7846 static void *task(p)
7849 return (void *) (p == NULL);
7854 /* pthread test function */
7857 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7858 /* This system (e.g. AIX) defaults detached; must override */
7859 pthread_attr_t attr;
7861 status = pthread_attr_init(&attr);
7862 if( status ) exit( status );
7864 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7865 if( status ) exit( status );
7868 #elif defined( HAVE_PTHREADS_D4 )
7869 # define ATTR pthread_attr_default
7874 /* make sure pthread_create() isn't just a stub */
7875 status = pthread_create(&t, ATTR, task, NULL);
7876 if( status ) exit( status );
7878 /* give the thread a chance to complete...
7879 * it should remain joinable and hence detachable
7883 /* make sure pthread_detach() isn't just a stub */
7884 #if HAVE_PTHREADS_D4
7885 status = pthread_detach( &t );
7887 status = pthread_detach( t );
7890 #ifdef HAVE_LINUX_THREADS
7891 pthread_kill_other_threads_np();
7898 if { (eval echo configure:7899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7900 ol_cv_pthread_mthreads=yes
7902 echo "configure: failed program was:" >&5
7903 cat conftest.$ac_ext >&5
7905 ol_cv_pthread_mthreads=no
7909 cat > conftest.$ac_ext <<EOF
7910 #line 7911 "configure"
7911 #include "confdefs.h"
7912 /* pthread test headers */
7913 #include <pthread.h>
7915 #define NULL (void*)0
7918 static void *task(p)
7921 return (void *) (p == NULL);
7925 int main(argc, argv)
7930 /* pthread test function */
7933 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7934 /* This system (e.g. AIX) defaults detached; must override */
7935 pthread_attr_t attr;
7937 status = pthread_attr_init(&attr);
7938 if( status ) exit( status );
7940 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7941 if( status ) exit( status );
7944 #elif defined( HAVE_PTHREADS_D4 )
7945 # define ATTR pthread_attr_default
7950 /* make sure pthread_create() isn't just a stub */
7951 status = pthread_create(&t, ATTR, task, NULL);
7952 if( status ) exit( status );
7954 /* give the thread a chance to complete...
7955 * it should remain joinable and hence detachable
7959 /* make sure pthread_detach() isn't just a stub */
7960 #if HAVE_PTHREADS_D4
7961 status = pthread_detach( &t );
7963 status = pthread_detach( t );
7966 #ifdef HAVE_LINUX_THREADS
7967 pthread_kill_other_threads_np();
7975 if { (eval echo configure:7976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7977 ol_cv_pthread_mthreads=yes
7979 echo "configure: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7982 ol_cv_pthread_mthreads=no
7993 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7995 if test $ol_cv_pthread_mthreads = yes ; then
7996 ol_link_pthreads="-mthreads"
7997 ol_link_threads=posix
8001 # Pthread try link: -thread (ol_cv_pthread_thread)
8002 if test "$ol_link_threads" = no ; then
8004 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8005 echo "configure:8006: checking for pthread link with -thread" >&5
8006 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8007 echo $ac_n "(cached) $ac_c" 1>&6
8012 LIBS="-thread $LIBS"
8014 if test "$cross_compiling" = yes; then
8015 cat > conftest.$ac_ext <<EOF
8016 #line 8017 "configure"
8017 #include "confdefs.h"
8018 /* pthread test headers */
8019 #include <pthread.h>
8021 #define NULL (void*)0
8024 static void *task(p)
8027 return (void *) (p == NULL);
8032 /* pthread test function */
8035 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8036 /* This system (e.g. AIX) defaults detached; must override */
8037 pthread_attr_t attr;
8039 status = pthread_attr_init(&attr);
8040 if( status ) exit( status );
8042 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8043 if( status ) exit( status );
8046 #elif defined( HAVE_PTHREADS_D4 )
8047 # define ATTR pthread_attr_default
8052 /* make sure pthread_create() isn't just a stub */
8053 status = pthread_create(&t, ATTR, task, NULL);
8054 if( status ) exit( status );
8056 /* give the thread a chance to complete...
8057 * it should remain joinable and hence detachable
8061 /* make sure pthread_detach() isn't just a stub */
8062 #if HAVE_PTHREADS_D4
8063 status = pthread_detach( &t );
8065 status = pthread_detach( t );
8068 #ifdef HAVE_LINUX_THREADS
8069 pthread_kill_other_threads_np();
8076 if { (eval echo configure:8077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8078 ol_cv_pthread_thread=yes
8080 echo "configure: failed program was:" >&5
8081 cat conftest.$ac_ext >&5
8083 ol_cv_pthread_thread=no
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* pthread test headers */
8091 #include <pthread.h>
8093 #define NULL (void*)0
8096 static void *task(p)
8099 return (void *) (p == NULL);
8103 int main(argc, argv)
8108 /* pthread test function */
8111 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8112 /* This system (e.g. AIX) defaults detached; must override */
8113 pthread_attr_t attr;
8115 status = pthread_attr_init(&attr);
8116 if( status ) exit( status );
8118 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8119 if( status ) exit( status );
8122 #elif defined( HAVE_PTHREADS_D4 )
8123 # define ATTR pthread_attr_default
8128 /* make sure pthread_create() isn't just a stub */
8129 status = pthread_create(&t, ATTR, task, NULL);
8130 if( status ) exit( status );
8132 /* give the thread a chance to complete...
8133 * it should remain joinable and hence detachable
8137 /* make sure pthread_detach() isn't just a stub */
8138 #if HAVE_PTHREADS_D4
8139 status = pthread_detach( &t );
8141 status = pthread_detach( t );
8144 #ifdef HAVE_LINUX_THREADS
8145 pthread_kill_other_threads_np();
8153 if { (eval echo configure:8154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8155 ol_cv_pthread_thread=yes
8157 echo "configure: failed program was:" >&5
8158 cat conftest.$ac_ext >&5
8160 ol_cv_pthread_thread=no
8171 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8173 if test $ol_cv_pthread_thread = yes ; then
8174 ol_link_pthreads="-thread"
8175 ol_link_threads=posix
8180 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8181 if test "$ol_link_threads" = no ; then
8182 # try -lpthread -lmach -lexc -lc_r
8183 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8184 echo "configure:8185: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8185 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8186 echo $ac_n "(cached) $ac_c" 1>&6
8191 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8193 if test "$cross_compiling" = yes; then
8194 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8197 /* pthread test headers */
8198 #include <pthread.h>
8200 #define NULL (void*)0
8203 static void *task(p)
8206 return (void *) (p == NULL);
8211 /* pthread test function */
8214 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8215 /* This system (e.g. AIX) defaults detached; must override */
8216 pthread_attr_t attr;
8218 status = pthread_attr_init(&attr);
8219 if( status ) exit( status );
8221 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8222 if( status ) exit( status );
8225 #elif defined( HAVE_PTHREADS_D4 )
8226 # define ATTR pthread_attr_default
8231 /* make sure pthread_create() isn't just a stub */
8232 status = pthread_create(&t, ATTR, task, NULL);
8233 if( status ) exit( status );
8235 /* give the thread a chance to complete...
8236 * it should remain joinable and hence detachable
8240 /* make sure pthread_detach() isn't just a stub */
8241 #if HAVE_PTHREADS_D4
8242 status = pthread_detach( &t );
8244 status = pthread_detach( t );
8247 #ifdef HAVE_LINUX_THREADS
8248 pthread_kill_other_threads_np();
8255 if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8257 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8259 echo "configure: failed program was:" >&5
8260 cat conftest.$ac_ext >&5
8262 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8266 cat > conftest.$ac_ext <<EOF
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269 /* pthread test headers */
8270 #include <pthread.h>
8272 #define NULL (void*)0
8275 static void *task(p)
8278 return (void *) (p == NULL);
8282 int main(argc, argv)
8287 /* pthread test function */
8290 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8291 /* This system (e.g. AIX) defaults detached; must override */
8292 pthread_attr_t attr;
8294 status = pthread_attr_init(&attr);
8295 if( status ) exit( status );
8297 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8298 if( status ) exit( status );
8301 #elif defined( HAVE_PTHREADS_D4 )
8302 # define ATTR pthread_attr_default
8307 /* make sure pthread_create() isn't just a stub */
8308 status = pthread_create(&t, ATTR, task, NULL);
8309 if( status ) exit( status );
8311 /* give the thread a chance to complete...
8312 * it should remain joinable and hence detachable
8316 /* make sure pthread_detach() isn't just a stub */
8317 #if HAVE_PTHREADS_D4
8318 status = pthread_detach( &t );
8320 status = pthread_detach( t );
8323 #ifdef HAVE_LINUX_THREADS
8324 pthread_kill_other_threads_np();
8332 if { (eval echo configure:8333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8334 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8336 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8339 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8350 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8352 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8353 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8354 ol_link_threads=posix
8358 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8359 if test "$ol_link_threads" = no ; then
8360 # try -lpthread -lmach -lexc
8361 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8362 echo "configure:8363: checking for pthread link with -lpthread -lmach -lexc" >&5
8363 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8369 LIBS="-lpthread -lmach -lexc $LIBS"
8371 if test "$cross_compiling" = yes; then
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8375 /* pthread test headers */
8376 #include <pthread.h>
8378 #define NULL (void*)0
8381 static void *task(p)
8384 return (void *) (p == NULL);
8389 /* pthread test function */
8392 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8393 /* This system (e.g. AIX) defaults detached; must override */
8394 pthread_attr_t attr;
8396 status = pthread_attr_init(&attr);
8397 if( status ) exit( status );
8399 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8400 if( status ) exit( status );
8403 #elif defined( HAVE_PTHREADS_D4 )
8404 # define ATTR pthread_attr_default
8409 /* make sure pthread_create() isn't just a stub */
8410 status = pthread_create(&t, ATTR, task, NULL);
8411 if( status ) exit( status );
8413 /* give the thread a chance to complete...
8414 * it should remain joinable and hence detachable
8418 /* make sure pthread_detach() isn't just a stub */
8419 #if HAVE_PTHREADS_D4
8420 status = pthread_detach( &t );
8422 status = pthread_detach( t );
8425 #ifdef HAVE_LINUX_THREADS
8426 pthread_kill_other_threads_np();
8433 if { (eval echo configure:8434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8435 ol_cv_pthread_lpthread_lmach_lexc=yes
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 ol_cv_pthread_lpthread_lmach_lexc=no
8444 cat > conftest.$ac_ext <<EOF
8445 #line 8446 "configure"
8446 #include "confdefs.h"
8447 /* pthread test headers */
8448 #include <pthread.h>
8450 #define NULL (void*)0
8453 static void *task(p)
8456 return (void *) (p == NULL);
8460 int main(argc, argv)
8465 /* pthread test function */
8468 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8469 /* This system (e.g. AIX) defaults detached; must override */
8470 pthread_attr_t attr;
8472 status = pthread_attr_init(&attr);
8473 if( status ) exit( status );
8475 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8476 if( status ) exit( status );
8479 #elif defined( HAVE_PTHREADS_D4 )
8480 # define ATTR pthread_attr_default
8485 /* make sure pthread_create() isn't just a stub */
8486 status = pthread_create(&t, ATTR, task, NULL);
8487 if( status ) exit( status );
8489 /* give the thread a chance to complete...
8490 * it should remain joinable and hence detachable
8494 /* make sure pthread_detach() isn't just a stub */
8495 #if HAVE_PTHREADS_D4
8496 status = pthread_detach( &t );
8498 status = pthread_detach( t );
8501 #ifdef HAVE_LINUX_THREADS
8502 pthread_kill_other_threads_np();
8510 if { (eval echo configure:8511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8512 ol_cv_pthread_lpthread_lmach_lexc=yes
8514 echo "configure: failed program was:" >&5
8515 cat conftest.$ac_ext >&5
8517 ol_cv_pthread_lpthread_lmach_lexc=no
8528 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8530 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8531 ol_link_pthreads="-lpthread -lmach -lexc"
8532 ol_link_threads=posix
8537 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8538 if test "$ol_link_threads" = no ; then
8539 # try -lpthread -Wl,-woff,85
8540 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8541 echo "configure:8542: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8542 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8543 echo $ac_n "(cached) $ac_c" 1>&6
8548 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8550 if test "$cross_compiling" = yes; then
8551 cat > conftest.$ac_ext <<EOF
8552 #line 8553 "configure"
8553 #include "confdefs.h"
8554 /* pthread test headers */
8555 #include <pthread.h>
8557 #define NULL (void*)0
8560 static void *task(p)
8563 return (void *) (p == NULL);
8568 /* pthread test function */
8571 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8572 /* This system (e.g. AIX) defaults detached; must override */
8573 pthread_attr_t attr;
8575 status = pthread_attr_init(&attr);
8576 if( status ) exit( status );
8578 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8579 if( status ) exit( status );
8582 #elif defined( HAVE_PTHREADS_D4 )
8583 # define ATTR pthread_attr_default
8588 /* make sure pthread_create() isn't just a stub */
8589 status = pthread_create(&t, ATTR, task, NULL);
8590 if( status ) exit( status );
8592 /* give the thread a chance to complete...
8593 * it should remain joinable and hence detachable
8597 /* make sure pthread_detach() isn't just a stub */
8598 #if HAVE_PTHREADS_D4
8599 status = pthread_detach( &t );
8601 status = pthread_detach( t );
8604 #ifdef HAVE_LINUX_THREADS
8605 pthread_kill_other_threads_np();
8612 if { (eval echo configure:8613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8614 ol_cv_pthread_lib_lpthread_woff=yes
8616 echo "configure: failed program was:" >&5
8617 cat conftest.$ac_ext >&5
8619 ol_cv_pthread_lib_lpthread_woff=no
8623 cat > conftest.$ac_ext <<EOF
8624 #line 8625 "configure"
8625 #include "confdefs.h"
8626 /* pthread test headers */
8627 #include <pthread.h>
8629 #define NULL (void*)0
8632 static void *task(p)
8635 return (void *) (p == NULL);
8639 int main(argc, argv)
8644 /* pthread test function */
8647 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8648 /* This system (e.g. AIX) defaults detached; must override */
8649 pthread_attr_t attr;
8651 status = pthread_attr_init(&attr);
8652 if( status ) exit( status );
8654 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8655 if( status ) exit( status );
8658 #elif defined( HAVE_PTHREADS_D4 )
8659 # define ATTR pthread_attr_default
8664 /* make sure pthread_create() isn't just a stub */
8665 status = pthread_create(&t, ATTR, task, NULL);
8666 if( status ) exit( status );
8668 /* give the thread a chance to complete...
8669 * it should remain joinable and hence detachable
8673 /* make sure pthread_detach() isn't just a stub */
8674 #if HAVE_PTHREADS_D4
8675 status = pthread_detach( &t );
8677 status = pthread_detach( t );
8680 #ifdef HAVE_LINUX_THREADS
8681 pthread_kill_other_threads_np();
8689 if { (eval echo configure:8690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8691 ol_cv_pthread_lib_lpthread_woff=yes
8693 echo "configure: failed program was:" >&5
8694 cat conftest.$ac_ext >&5
8696 ol_cv_pthread_lib_lpthread_woff=no
8707 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8709 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8710 ol_link_pthreads="-lpthread -Wl,-woff,85"
8711 ol_link_threads=posix
8716 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8717 if test "$ol_link_threads" = no ; then
8719 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8720 echo "configure:8721: checking for pthread link with -lpthread" >&5
8721 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8722 echo $ac_n "(cached) $ac_c" 1>&6
8727 LIBS="-lpthread $LIBS"
8729 if test "$cross_compiling" = yes; then
8730 cat > conftest.$ac_ext <<EOF
8731 #line 8732 "configure"
8732 #include "confdefs.h"
8733 /* pthread test headers */
8734 #include <pthread.h>
8736 #define NULL (void*)0
8739 static void *task(p)
8742 return (void *) (p == NULL);
8747 /* pthread test function */
8750 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8751 /* This system (e.g. AIX) defaults detached; must override */
8752 pthread_attr_t attr;
8754 status = pthread_attr_init(&attr);
8755 if( status ) exit( status );
8757 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8758 if( status ) exit( status );
8761 #elif defined( HAVE_PTHREADS_D4 )
8762 # define ATTR pthread_attr_default
8767 /* make sure pthread_create() isn't just a stub */
8768 status = pthread_create(&t, ATTR, task, NULL);
8769 if( status ) exit( status );
8771 /* give the thread a chance to complete...
8772 * it should remain joinable and hence detachable
8776 /* make sure pthread_detach() isn't just a stub */
8777 #if HAVE_PTHREADS_D4
8778 status = pthread_detach( &t );
8780 status = pthread_detach( t );
8783 #ifdef HAVE_LINUX_THREADS
8784 pthread_kill_other_threads_np();
8791 if { (eval echo configure:8792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8793 ol_cv_pthread_lpthread=yes
8795 echo "configure: failed program was:" >&5
8796 cat conftest.$ac_ext >&5
8798 ol_cv_pthread_lpthread=no
8802 cat > conftest.$ac_ext <<EOF
8803 #line 8804 "configure"
8804 #include "confdefs.h"
8805 /* pthread test headers */
8806 #include <pthread.h>
8808 #define NULL (void*)0
8811 static void *task(p)
8814 return (void *) (p == NULL);
8818 int main(argc, argv)
8823 /* pthread test function */
8826 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8827 /* This system (e.g. AIX) defaults detached; must override */
8828 pthread_attr_t attr;
8830 status = pthread_attr_init(&attr);
8831 if( status ) exit( status );
8833 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8834 if( status ) exit( status );
8837 #elif defined( HAVE_PTHREADS_D4 )
8838 # define ATTR pthread_attr_default
8843 /* make sure pthread_create() isn't just a stub */
8844 status = pthread_create(&t, ATTR, task, NULL);
8845 if( status ) exit( status );
8847 /* give the thread a chance to complete...
8848 * it should remain joinable and hence detachable
8852 /* make sure pthread_detach() isn't just a stub */
8853 #if HAVE_PTHREADS_D4
8854 status = pthread_detach( &t );
8856 status = pthread_detach( t );
8859 #ifdef HAVE_LINUX_THREADS
8860 pthread_kill_other_threads_np();
8868 if { (eval echo configure:8869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8870 ol_cv_pthread_lpthread=yes
8872 echo "configure: failed program was:" >&5
8873 cat conftest.$ac_ext >&5
8875 ol_cv_pthread_lpthread=no
8886 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8888 if test $ol_cv_pthread_lpthread = yes ; then
8889 ol_link_pthreads="-lpthread"
8890 ol_link_threads=posix
8894 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8895 if test "$ol_link_threads" = no ; then
8897 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8898 echo "configure:8899: checking for pthread link with -lc_r" >&5
8899 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8907 if test "$cross_compiling" = yes; then
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 /* pthread test headers */
8912 #include <pthread.h>
8914 #define NULL (void*)0
8917 static void *task(p)
8920 return (void *) (p == NULL);
8925 /* pthread test function */
8928 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8929 /* This system (e.g. AIX) defaults detached; must override */
8930 pthread_attr_t attr;
8932 status = pthread_attr_init(&attr);
8933 if( status ) exit( status );
8935 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8936 if( status ) exit( status );
8939 #elif defined( HAVE_PTHREADS_D4 )
8940 # define ATTR pthread_attr_default
8945 /* make sure pthread_create() isn't just a stub */
8946 status = pthread_create(&t, ATTR, task, NULL);
8947 if( status ) exit( status );
8949 /* give the thread a chance to complete...
8950 * it should remain joinable and hence detachable
8954 /* make sure pthread_detach() isn't just a stub */
8955 #if HAVE_PTHREADS_D4
8956 status = pthread_detach( &t );
8958 status = pthread_detach( t );
8961 #ifdef HAVE_LINUX_THREADS
8962 pthread_kill_other_threads_np();
8969 if { (eval echo configure:8970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8971 ol_cv_pthread_lc_r=yes
8973 echo "configure: failed program was:" >&5
8974 cat conftest.$ac_ext >&5
8976 ol_cv_pthread_lc_r=no
8980 cat > conftest.$ac_ext <<EOF
8981 #line 8982 "configure"
8982 #include "confdefs.h"
8983 /* pthread test headers */
8984 #include <pthread.h>
8986 #define NULL (void*)0
8989 static void *task(p)
8992 return (void *) (p == NULL);
8996 int main(argc, argv)
9001 /* pthread test function */
9004 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9005 /* This system (e.g. AIX) defaults detached; must override */
9006 pthread_attr_t attr;
9008 status = pthread_attr_init(&attr);
9009 if( status ) exit( status );
9011 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9012 if( status ) exit( status );
9015 #elif defined( HAVE_PTHREADS_D4 )
9016 # define ATTR pthread_attr_default
9021 /* make sure pthread_create() isn't just a stub */
9022 status = pthread_create(&t, ATTR, task, NULL);
9023 if( status ) exit( status );
9025 /* give the thread a chance to complete...
9026 * it should remain joinable and hence detachable
9030 /* make sure pthread_detach() isn't just a stub */
9031 #if HAVE_PTHREADS_D4
9032 status = pthread_detach( &t );
9034 status = pthread_detach( t );
9037 #ifdef HAVE_LINUX_THREADS
9038 pthread_kill_other_threads_np();
9046 if { (eval echo configure:9047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9048 ol_cv_pthread_lc_r=yes
9050 echo "configure: failed program was:" >&5
9051 cat conftest.$ac_ext >&5
9053 ol_cv_pthread_lc_r=no
9064 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9066 if test $ol_cv_pthread_lc_r = yes ; then
9067 ol_link_pthreads="-lc_r"
9068 ol_link_threads=posix
9073 # Pthread try link: -threads (ol_cv_pthread_threads)
9074 if test "$ol_link_threads" = no ; then
9076 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9077 echo "configure:9078: checking for pthread link with -threads" >&5
9078 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9079 echo $ac_n "(cached) $ac_c" 1>&6
9084 LIBS="-threads $LIBS"
9086 if test "$cross_compiling" = yes; then
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9090 /* pthread test headers */
9091 #include <pthread.h>
9093 #define NULL (void*)0
9096 static void *task(p)
9099 return (void *) (p == NULL);
9104 /* pthread test function */
9107 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9108 /* This system (e.g. AIX) defaults detached; must override */
9109 pthread_attr_t attr;
9111 status = pthread_attr_init(&attr);
9112 if( status ) exit( status );
9114 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9115 if( status ) exit( status );
9118 #elif defined( HAVE_PTHREADS_D4 )
9119 # define ATTR pthread_attr_default
9124 /* make sure pthread_create() isn't just a stub */
9125 status = pthread_create(&t, ATTR, task, NULL);
9126 if( status ) exit( status );
9128 /* give the thread a chance to complete...
9129 * it should remain joinable and hence detachable
9133 /* make sure pthread_detach() isn't just a stub */
9134 #if HAVE_PTHREADS_D4
9135 status = pthread_detach( &t );
9137 status = pthread_detach( t );
9140 #ifdef HAVE_LINUX_THREADS
9141 pthread_kill_other_threads_np();
9148 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9150 ol_cv_pthread_threads=yes
9152 echo "configure: failed program was:" >&5
9153 cat conftest.$ac_ext >&5
9155 ol_cv_pthread_threads=no
9159 cat > conftest.$ac_ext <<EOF
9160 #line 9161 "configure"
9161 #include "confdefs.h"
9162 /* pthread test headers */
9163 #include <pthread.h>
9165 #define NULL (void*)0
9168 static void *task(p)
9171 return (void *) (p == NULL);
9175 int main(argc, argv)
9180 /* pthread test function */
9183 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9184 /* This system (e.g. AIX) defaults detached; must override */
9185 pthread_attr_t attr;
9187 status = pthread_attr_init(&attr);
9188 if( status ) exit( status );
9190 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9191 if( status ) exit( status );
9194 #elif defined( HAVE_PTHREADS_D4 )
9195 # define ATTR pthread_attr_default
9200 /* make sure pthread_create() isn't just a stub */
9201 status = pthread_create(&t, ATTR, task, NULL);
9202 if( status ) exit( status );
9204 /* give the thread a chance to complete...
9205 * it should remain joinable and hence detachable
9209 /* make sure pthread_detach() isn't just a stub */
9210 #if HAVE_PTHREADS_D4
9211 status = pthread_detach( &t );
9213 status = pthread_detach( t );
9216 #ifdef HAVE_LINUX_THREADS
9217 pthread_kill_other_threads_np();
9225 if { (eval echo configure:9226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9227 ol_cv_pthread_threads=yes
9229 echo "configure: failed program was:" >&5
9230 cat conftest.$ac_ext >&5
9232 ol_cv_pthread_threads=no
9243 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9245 if test $ol_cv_pthread_threads = yes ; then
9246 ol_link_pthreads="-threads"
9247 ol_link_threads=posix
9252 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9253 if test "$ol_link_threads" = no ; then
9254 # try -lpthreads -lmach -lexc -lc_r
9255 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9256 echo "configure:9257: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9257 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9263 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9265 if test "$cross_compiling" = yes; then
9266 cat > conftest.$ac_ext <<EOF
9267 #line 9268 "configure"
9268 #include "confdefs.h"
9269 /* pthread test headers */
9270 #include <pthread.h>
9272 #define NULL (void*)0
9275 static void *task(p)
9278 return (void *) (p == NULL);
9283 /* pthread test function */
9286 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9287 /* This system (e.g. AIX) defaults detached; must override */
9288 pthread_attr_t attr;
9290 status = pthread_attr_init(&attr);
9291 if( status ) exit( status );
9293 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9294 if( status ) exit( status );
9297 #elif defined( HAVE_PTHREADS_D4 )
9298 # define ATTR pthread_attr_default
9303 /* make sure pthread_create() isn't just a stub */
9304 status = pthread_create(&t, ATTR, task, NULL);
9305 if( status ) exit( status );
9307 /* give the thread a chance to complete...
9308 * it should remain joinable and hence detachable
9312 /* make sure pthread_detach() isn't just a stub */
9313 #if HAVE_PTHREADS_D4
9314 status = pthread_detach( &t );
9316 status = pthread_detach( t );
9319 #ifdef HAVE_LINUX_THREADS
9320 pthread_kill_other_threads_np();
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9329 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9341 /* pthread test headers */
9342 #include <pthread.h>
9344 #define NULL (void*)0
9347 static void *task(p)
9350 return (void *) (p == NULL);
9354 int main(argc, argv)
9359 /* pthread test function */
9362 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9363 /* This system (e.g. AIX) defaults detached; must override */
9364 pthread_attr_t attr;
9366 status = pthread_attr_init(&attr);
9367 if( status ) exit( status );
9369 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9370 if( status ) exit( status );
9373 #elif defined( HAVE_PTHREADS_D4 )
9374 # define ATTR pthread_attr_default
9379 /* make sure pthread_create() isn't just a stub */
9380 status = pthread_create(&t, ATTR, task, NULL);
9381 if( status ) exit( status );
9383 /* give the thread a chance to complete...
9384 * it should remain joinable and hence detachable
9388 /* make sure pthread_detach() isn't just a stub */
9389 #if HAVE_PTHREADS_D4
9390 status = pthread_detach( &t );
9392 status = pthread_detach( t );
9395 #ifdef HAVE_LINUX_THREADS
9396 pthread_kill_other_threads_np();
9404 if { (eval echo configure:9405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9406 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9408 echo "configure: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9411 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9422 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9424 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9425 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9426 ol_link_threads=posix
9430 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9431 if test "$ol_link_threads" = no ; then
9432 # try -lpthreads -lmach -lexc
9433 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9434 echo "configure:9435: checking for pthread link with -lpthreads -lmach -lexc" >&5
9435 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9441 LIBS="-lpthreads -lmach -lexc $LIBS"
9443 if test "$cross_compiling" = yes; then
9444 cat > conftest.$ac_ext <<EOF
9445 #line 9446 "configure"
9446 #include "confdefs.h"
9447 /* pthread test headers */
9448 #include <pthread.h>
9450 #define NULL (void*)0
9453 static void *task(p)
9456 return (void *) (p == NULL);
9461 /* pthread test function */
9464 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9465 /* This system (e.g. AIX) defaults detached; must override */
9466 pthread_attr_t attr;
9468 status = pthread_attr_init(&attr);
9469 if( status ) exit( status );
9471 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9472 if( status ) exit( status );
9475 #elif defined( HAVE_PTHREADS_D4 )
9476 # define ATTR pthread_attr_default
9481 /* make sure pthread_create() isn't just a stub */
9482 status = pthread_create(&t, ATTR, task, NULL);
9483 if( status ) exit( status );
9485 /* give the thread a chance to complete...
9486 * it should remain joinable and hence detachable
9490 /* make sure pthread_detach() isn't just a stub */
9491 #if HAVE_PTHREADS_D4
9492 status = pthread_detach( &t );
9494 status = pthread_detach( t );
9497 #ifdef HAVE_LINUX_THREADS
9498 pthread_kill_other_threads_np();
9505 if { (eval echo configure:9506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9507 ol_cv_pthread_lpthreads_lmach_lexc=yes
9509 echo "configure: failed program was:" >&5
9510 cat conftest.$ac_ext >&5
9512 ol_cv_pthread_lpthreads_lmach_lexc=no
9516 cat > conftest.$ac_ext <<EOF
9517 #line 9518 "configure"
9518 #include "confdefs.h"
9519 /* pthread test headers */
9520 #include <pthread.h>
9522 #define NULL (void*)0
9525 static void *task(p)
9528 return (void *) (p == NULL);
9532 int main(argc, argv)
9537 /* pthread test function */
9540 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9541 /* This system (e.g. AIX) defaults detached; must override */
9542 pthread_attr_t attr;
9544 status = pthread_attr_init(&attr);
9545 if( status ) exit( status );
9547 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9548 if( status ) exit( status );
9551 #elif defined( HAVE_PTHREADS_D4 )
9552 # define ATTR pthread_attr_default
9557 /* make sure pthread_create() isn't just a stub */
9558 status = pthread_create(&t, ATTR, task, NULL);
9559 if( status ) exit( status );
9561 /* give the thread a chance to complete...
9562 * it should remain joinable and hence detachable
9566 /* make sure pthread_detach() isn't just a stub */
9567 #if HAVE_PTHREADS_D4
9568 status = pthread_detach( &t );
9570 status = pthread_detach( t );
9573 #ifdef HAVE_LINUX_THREADS
9574 pthread_kill_other_threads_np();
9582 if { (eval echo configure:9583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9584 ol_cv_pthread_lpthreads_lmach_lexc=yes
9586 echo "configure: failed program was:" >&5
9587 cat conftest.$ac_ext >&5
9589 ol_cv_pthread_lpthreads_lmach_lexc=no
9600 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9602 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9603 ol_link_pthreads="-lpthreads -lmach -lexc"
9604 ol_link_threads=posix
9608 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9609 if test "$ol_link_threads" = no ; then
9610 # try -lpthreads -lexc
9611 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9612 echo "configure:9613: checking for pthread link with -lpthreads -lexc" >&5
9613 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9614 echo $ac_n "(cached) $ac_c" 1>&6
9619 LIBS="-lpthreads -lexc $LIBS"
9621 if test "$cross_compiling" = yes; then
9622 cat > conftest.$ac_ext <<EOF
9623 #line 9624 "configure"
9624 #include "confdefs.h"
9625 /* pthread test headers */
9626 #include <pthread.h>
9628 #define NULL (void*)0
9631 static void *task(p)
9634 return (void *) (p == NULL);
9639 /* pthread test function */
9642 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9643 /* This system (e.g. AIX) defaults detached; must override */
9644 pthread_attr_t attr;
9646 status = pthread_attr_init(&attr);
9647 if( status ) exit( status );
9649 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9650 if( status ) exit( status );
9653 #elif defined( HAVE_PTHREADS_D4 )
9654 # define ATTR pthread_attr_default
9659 /* make sure pthread_create() isn't just a stub */
9660 status = pthread_create(&t, ATTR, task, NULL);
9661 if( status ) exit( status );
9663 /* give the thread a chance to complete...
9664 * it should remain joinable and hence detachable
9668 /* make sure pthread_detach() isn't just a stub */
9669 #if HAVE_PTHREADS_D4
9670 status = pthread_detach( &t );
9672 status = pthread_detach( t );
9675 #ifdef HAVE_LINUX_THREADS
9676 pthread_kill_other_threads_np();
9683 if { (eval echo configure:9684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9685 ol_cv_pthread_lpthreads_lexc=yes
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9690 ol_cv_pthread_lpthreads_lexc=no
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9697 /* pthread test headers */
9698 #include <pthread.h>
9700 #define NULL (void*)0
9703 static void *task(p)
9706 return (void *) (p == NULL);
9710 int main(argc, argv)
9715 /* pthread test function */
9718 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9719 /* This system (e.g. AIX) defaults detached; must override */
9720 pthread_attr_t attr;
9722 status = pthread_attr_init(&attr);
9723 if( status ) exit( status );
9725 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9726 if( status ) exit( status );
9729 #elif defined( HAVE_PTHREADS_D4 )
9730 # define ATTR pthread_attr_default
9735 /* make sure pthread_create() isn't just a stub */
9736 status = pthread_create(&t, ATTR, task, NULL);
9737 if( status ) exit( status );
9739 /* give the thread a chance to complete...
9740 * it should remain joinable and hence detachable
9744 /* make sure pthread_detach() isn't just a stub */
9745 #if HAVE_PTHREADS_D4
9746 status = pthread_detach( &t );
9748 status = pthread_detach( t );
9751 #ifdef HAVE_LINUX_THREADS
9752 pthread_kill_other_threads_np();
9760 if { (eval echo configure:9761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9762 ol_cv_pthread_lpthreads_lexc=yes
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9767 ol_cv_pthread_lpthreads_lexc=no
9778 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9780 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9781 ol_link_pthreads="-lpthreads -lexc"
9782 ol_link_threads=posix
9787 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9788 if test "$ol_link_threads" = no ; then
9790 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9791 echo "configure:9792: checking for pthread link with -lpthreads" >&5
9792 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9793 echo $ac_n "(cached) $ac_c" 1>&6
9798 LIBS="-lpthreads $LIBS"
9800 if test "$cross_compiling" = yes; then
9801 cat > conftest.$ac_ext <<EOF
9802 #line 9803 "configure"
9803 #include "confdefs.h"
9804 /* pthread test headers */
9805 #include <pthread.h>
9807 #define NULL (void*)0
9810 static void *task(p)
9813 return (void *) (p == NULL);
9818 /* pthread test function */
9821 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9822 /* This system (e.g. AIX) defaults detached; must override */
9823 pthread_attr_t attr;
9825 status = pthread_attr_init(&attr);
9826 if( status ) exit( status );
9828 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9829 if( status ) exit( status );
9832 #elif defined( HAVE_PTHREADS_D4 )
9833 # define ATTR pthread_attr_default
9838 /* make sure pthread_create() isn't just a stub */
9839 status = pthread_create(&t, ATTR, task, NULL);
9840 if( status ) exit( status );
9842 /* give the thread a chance to complete...
9843 * it should remain joinable and hence detachable
9847 /* make sure pthread_detach() isn't just a stub */
9848 #if HAVE_PTHREADS_D4
9849 status = pthread_detach( &t );
9851 status = pthread_detach( t );
9854 #ifdef HAVE_LINUX_THREADS
9855 pthread_kill_other_threads_np();
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9864 ol_cv_pthread_lib_lpthreads=yes
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 ol_cv_pthread_lib_lpthreads=no
9873 cat > conftest.$ac_ext <<EOF
9874 #line 9875 "configure"
9875 #include "confdefs.h"
9876 /* pthread test headers */
9877 #include <pthread.h>
9879 #define NULL (void*)0
9882 static void *task(p)
9885 return (void *) (p == NULL);
9889 int main(argc, argv)
9894 /* pthread test function */
9897 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9898 /* This system (e.g. AIX) defaults detached; must override */
9899 pthread_attr_t attr;
9901 status = pthread_attr_init(&attr);
9902 if( status ) exit( status );
9904 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9905 if( status ) exit( status );
9908 #elif defined( HAVE_PTHREADS_D4 )
9909 # define ATTR pthread_attr_default
9914 /* make sure pthread_create() isn't just a stub */
9915 status = pthread_create(&t, ATTR, task, NULL);
9916 if( status ) exit( status );
9918 /* give the thread a chance to complete...
9919 * it should remain joinable and hence detachable
9923 /* make sure pthread_detach() isn't just a stub */
9924 #if HAVE_PTHREADS_D4
9925 status = pthread_detach( &t );
9927 status = pthread_detach( t );
9930 #ifdef HAVE_LINUX_THREADS
9931 pthread_kill_other_threads_np();
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9941 ol_cv_pthread_lib_lpthreads=yes
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 ol_cv_pthread_lib_lpthreads=no
9957 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9959 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9960 ol_link_pthreads="-lpthreads"
9961 ol_link_threads=posix
9966 if test $ol_link_threads != no ; then
9967 cat >> confdefs.h <<\EOF
9968 #define HAVE_PTHREADS 1
9972 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9974 save_CPPFLAGS="$CPPFLAGS"
9976 LIBS="$LTHREAD_LIBS $LIBS"
9978 for ac_func in sched_yield pthread_yield
9980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9981 echo "configure:9982: checking for $ac_func" >&5
9982 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9985 cat > conftest.$ac_ext <<EOF
9986 #line 9987 "configure"
9987 #include "confdefs.h"
9988 /* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func(); below. */
9991 /* Override any gcc2 internal prototype to avoid an error. */
9992 /* We use char because int might match the return type of a gcc2
9993 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10010 if { (eval echo configure:10011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10012 eval "ac_cv_func_$ac_func=yes"
10014 echo "configure: failed program was:" >&5
10015 cat conftest.$ac_ext >&5
10017 eval "ac_cv_func_$ac_func=no"
10022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10023 echo "$ac_t""yes" 1>&6
10024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10025 cat >> confdefs.h <<EOF
10026 #define $ac_tr_func 1
10030 echo "$ac_t""no" 1>&6
10035 if test $ac_cv_func_sched_yield = no -a \
10036 $ac_cv_func_pthread_yield = no ; then
10037 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10038 echo "configure:10039: checking for sched_yield in -lrt" >&5
10039 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10040 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10041 echo $ac_n "(cached) $ac_c" 1>&6
10043 ac_save_LIBS="$LIBS"
10045 cat > conftest.$ac_ext <<EOF
10046 #line 10047 "configure"
10047 #include "confdefs.h"
10048 /* Override any gcc2 internal prototype to avoid an error. */
10049 /* We use char because int might match the return type of a gcc2
10050 builtin and then its argument prototype would still apply. */
10051 char sched_yield();
10057 if { (eval echo configure:10058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10059 eval "ac_cv_lib_$ac_lib_var=yes"
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10064 eval "ac_cv_lib_$ac_lib_var=no"
10067 LIBS="$ac_save_LIBS"
10070 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10071 echo "$ac_t""yes" 1>&6
10072 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10073 cat >> confdefs.h <<\EOF
10074 #define HAVE_SCHED_YIELD 1
10077 ac_cv_func_sched_yield=yes
10079 echo "$ac_t""no" 1>&6
10080 ac_cv_func_sched_yield=no
10084 if test $ac_cv_func_sched_yield = no -a \
10085 $ac_cv_func_pthread_yield = no ; then
10086 for ac_func in thr_yield
10088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10089 echo "configure:10090: checking for $ac_func" >&5
10090 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10091 echo $ac_n "(cached) $ac_c" 1>&6
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure"
10095 #include "confdefs.h"
10096 /* System header to define __stub macros and hopefully few prototypes,
10097 which can conflict with char $ac_func(); below. */
10098 #include <assert.h>
10099 /* Override any gcc2 internal prototype to avoid an error. */
10100 /* We use char because int might match the return type of a gcc2
10101 builtin and then its argument prototype would still apply. */
10107 /* The GNU C library defines this for functions which it implements
10108 to always fail with ENOSYS. Some functions are actually named
10109 something starting with __ and the normal name is an alias. */
10110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118 if { (eval echo configure:10119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10120 eval "ac_cv_func_$ac_func=yes"
10122 echo "configure: failed program was:" >&5
10123 cat conftest.$ac_ext >&5
10125 eval "ac_cv_func_$ac_func=no"
10130 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10131 echo "$ac_t""yes" 1>&6
10132 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10133 cat >> confdefs.h <<EOF
10134 #define $ac_tr_func 1
10138 echo "$ac_t""no" 1>&6
10143 if test $ac_cv_func_sched_yield = no -a \
10144 $ac_cv_func_pthread_yield = no -a \
10145 "$ac_cv_func_thr_yield" = no ; then
10146 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10149 for ac_func in pthread_kill pthread_rwlock_destroy
10151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10152 echo "configure:10153: checking for $ac_func" >&5
10153 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10154 echo $ac_n "(cached) $ac_c" 1>&6
10156 cat > conftest.$ac_ext <<EOF
10157 #line 10158 "configure"
10158 #include "confdefs.h"
10159 /* System header to define __stub macros and hopefully few prototypes,
10160 which can conflict with char $ac_func(); below. */
10161 #include <assert.h>
10162 /* Override any gcc2 internal prototype to avoid an error. */
10163 /* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10170 /* The GNU C library defines this for functions which it implements
10171 to always fail with ENOSYS. Some functions are actually named
10172 something starting with __ and the normal name is an alias. */
10173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10181 if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10183 eval "ac_cv_func_$ac_func=yes"
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10188 eval "ac_cv_func_$ac_func=no"
10193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10194 echo "$ac_t""yes" 1>&6
10195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10196 cat >> confdefs.h <<EOF
10197 #define $ac_tr_func 1
10201 echo "$ac_t""no" 1>&6
10206 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10207 echo "configure:10208: checking for pthread_detach with <pthread.h>" >&5
10208 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10216 #include <pthread.h>
10218 #define NULL (void*)0
10222 pthread_detach(NULL);
10225 if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10227 ol_cv_func_pthread_detach=yes
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10232 ol_cv_func_pthread_detach=no
10238 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10240 if test $ol_cv_func_pthread_detach = no ; then
10241 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10244 cat >> confdefs.h <<\EOF
10245 #define HAVE_PTHREAD_DETACH 1
10250 pthread_setconcurrency \
10251 pthread_getconcurrency \
10252 thr_setconcurrency \
10253 thr_getconcurrency \
10256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10257 echo "configure:10258: checking for $ac_func" >&5
10258 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* System header to define __stub macros and hopefully few prototypes,
10265 which can conflict with char $ac_func(); below. */
10266 #include <assert.h>
10267 /* Override any gcc2 internal prototype to avoid an error. */
10268 /* We use char because int might match the return type of a gcc2
10269 builtin and then its argument prototype would still apply. */
10275 /* The GNU C library defines this for functions which it implements
10276 to always fail with ENOSYS. Some functions are actually named
10277 something starting with __ and the normal name is an alias. */
10278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10286 if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10288 eval "ac_cv_func_$ac_func=yes"
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 eval "ac_cv_func_$ac_func=no"
10298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10299 echo "$ac_t""yes" 1>&6
10300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10301 cat >> confdefs.h <<EOF
10302 #define $ac_tr_func 1
10306 echo "$ac_t""no" 1>&6
10312 for ac_func in pthread_kill_other_threads_np
10314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10315 echo "configure:10316: checking for $ac_func" >&5
10316 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10319 cat > conftest.$ac_ext <<EOF
10320 #line 10321 "configure"
10321 #include "confdefs.h"
10322 /* System header to define __stub macros and hopefully few prototypes,
10323 which can conflict with char $ac_func(); below. */
10324 #include <assert.h>
10325 /* Override any gcc2 internal prototype to avoid an error. */
10326 /* We use char because int might match the return type of a gcc2
10327 builtin and then its argument prototype would still apply. */
10333 /* The GNU C library defines this for functions which it implements
10334 to always fail with ENOSYS. Some functions are actually named
10335 something starting with __ and the normal name is an alias. */
10336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10344 if { (eval echo configure:10345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10346 eval "ac_cv_func_$ac_func=yes"
10348 echo "configure: failed program was:" >&5
10349 cat conftest.$ac_ext >&5
10351 eval "ac_cv_func_$ac_func=no"
10356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10357 echo "$ac_t""yes" 1>&6
10358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10359 cat >> confdefs.h <<EOF
10360 #define $ac_tr_func 1
10364 echo "$ac_t""no" 1>&6
10368 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10369 echo "configure:10370: checking for LinuxThreads implementation" >&5
10370 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10371 echo $ac_n "(cached) $ac_c" 1>&6
10373 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10376 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10381 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10382 echo "configure:10383: checking for LinuxThreads consistency" >&5
10383 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10387 if test $ol_cv_header_linux_threads = yes -a \
10388 $ol_cv_sys_linux_threads = yes; then
10389 ol_cv_linux_threads=yes
10390 elif test $ol_cv_header_linux_threads = no -a \
10391 $ol_cv_sys_linux_threads = no; then
10392 ol_cv_linux_threads=no
10394 ol_cv_linux_threads=error
10399 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10402 if test $ol_cv_linux_threads = error; then
10403 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10406 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10407 echo "configure:10408: checking if pthread_create() works" >&5
10408 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10409 echo $ac_n "(cached) $ac_c" 1>&6
10412 if test "$cross_compiling" = yes; then
10413 ol_cv_pthread_create_works=yes
10415 cat > conftest.$ac_ext <<EOF
10416 #line 10417 "configure"
10417 #include "confdefs.h"
10418 /* pthread test headers */
10419 #include <pthread.h>
10421 #define NULL (void*)0
10424 static void *task(p)
10427 return (void *) (p == NULL);
10431 int main(argc, argv)
10436 /* pthread test function */
10439 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10440 /* This system (e.g. AIX) defaults detached; must override */
10441 pthread_attr_t attr;
10443 status = pthread_attr_init(&attr);
10444 if( status ) exit( status );
10446 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10447 if( status ) exit( status );
10449 # define ATTR &attr
10450 #elif defined( HAVE_PTHREADS_D4 )
10451 # define ATTR pthread_attr_default
10456 /* make sure pthread_create() isn't just a stub */
10457 status = pthread_create(&t, ATTR, task, NULL);
10458 if( status ) exit( status );
10460 /* give the thread a chance to complete...
10461 * it should remain joinable and hence detachable
10465 /* make sure pthread_detach() isn't just a stub */
10466 #if HAVE_PTHREADS_D4
10467 status = pthread_detach( &t );
10469 status = pthread_detach( t );
10472 #ifdef HAVE_LINUX_THREADS
10473 pthread_kill_other_threads_np();
10481 if { (eval echo configure:10482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10483 ol_cv_pthread_create_works=yes
10485 echo "configure: failed program was:" >&5
10486 cat conftest.$ac_ext >&5
10488 ol_cv_pthread_create_works=no
10495 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10497 if test $ol_cv_pthread_create_works = no ; then
10498 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10501 if test $ol_with_yielding_select = auto ; then
10502 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10503 echo "configure:10504: checking if select yields when using pthreads" >&5
10504 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10505 echo $ac_n "(cached) $ac_c" 1>&6
10508 if test "$cross_compiling" = yes; then
10509 ol_cv_pthread_select_yields=cross
10511 cat > conftest.$ac_ext <<EOF
10512 #line 10513 "configure"
10513 #include "confdefs.h"
10515 #include <sys/types.h>
10516 #include <sys/time.h>
10517 #include <unistd.h>
10518 #include <pthread.h>
10520 #define NULL (void*) 0
10523 static int fildes[2];
10525 static void *task(p)
10537 FD_SET(fildes[0], &rfds);
10539 /* we're not interested in any fds */
10540 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10547 exit(0); /* if we exit here, the select blocked the whole process */
10550 int main(argc, argv)
10556 /* create a pipe to select */
10557 if(pipe(&fildes[0])) {
10562 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10563 (void) pthread_setconcurrency(2);
10565 #ifdef HAVE_THR_SETCONCURRENCY
10566 /* Set Solaris LWP concurrency to 2 */
10567 thr_setconcurrency(2);
10571 #if HAVE_PTHREADS_D4
10572 pthread_create(&t, pthread_attr_default, task, NULL);
10574 pthread_create(&t, NULL, task, NULL);
10577 #if HAVE_SCHED_YIELD
10578 sched_yield(); /* make sure task runs first */
10580 #ifdef HAVE_PTHREAD_YIELD
10581 pthread_yield(); /* make sure task runs first */
10588 if { (eval echo configure:10589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10590 ol_cv_pthread_select_yields=no
10592 echo "configure: failed program was:" >&5
10593 cat conftest.$ac_ext >&5
10595 ol_cv_pthread_select_yields=yes
10602 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10604 if test $ol_cv_pthread_select_yields = cross ; then
10605 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10608 if test $ol_cv_pthread_select_yields = yes ; then
10609 ol_with_yielding_select=yes
10613 CPPFLAGS="$save_CPPFLAGS"
10616 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10620 if test $ol_with_threads = posix ; then
10621 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10625 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10626 -o $ol_with_threads = mach ; then
10628 for ac_hdr in mach/cthreads.h
10630 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10631 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10632 echo "configure:10633: checking for $ac_hdr" >&5
10633 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10636 cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure"
10638 #include "confdefs.h"
10641 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10642 { (eval echo configure:10643: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10643 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10644 if test -z "$ac_err"; then
10646 eval "ac_cv_header_$ac_safe=yes"
10649 echo "configure: failed program was:" >&5
10650 cat conftest.$ac_ext >&5
10652 eval "ac_cv_header_$ac_safe=no"
10656 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10657 echo "$ac_t""yes" 1>&6
10658 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10659 cat >> confdefs.h <<EOF
10660 #define $ac_tr_hdr 1
10664 echo "$ac_t""no" 1>&6
10668 if test $ac_cv_header_mach_cthreads_h = yes ; then
10669 ol_with_threads=found
10671 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10672 echo "configure:10673: checking for cthread_fork" >&5
10673 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10674 echo $ac_n "(cached) $ac_c" 1>&6
10676 cat > conftest.$ac_ext <<EOF
10677 #line 10678 "configure"
10678 #include "confdefs.h"
10679 /* System header to define __stub macros and hopefully few prototypes,
10680 which can conflict with char cthread_fork(); below. */
10681 #include <assert.h>
10682 /* Override any gcc2 internal prototype to avoid an error. */
10683 /* We use char because int might match the return type of a gcc2
10684 builtin and then its argument prototype would still apply. */
10685 char cthread_fork();
10690 /* The GNU C library defines this for functions which it implements
10691 to always fail with ENOSYS. Some functions are actually named
10692 something starting with __ and the normal name is an alias. */
10693 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10701 if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10703 eval "ac_cv_func_cthread_fork=yes"
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10708 eval "ac_cv_func_cthread_fork=no"
10713 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10714 echo "$ac_t""yes" 1>&6
10715 ol_link_threads=yes
10717 echo "$ac_t""no" 1>&6
10721 if test $ol_link_threads = no ; then
10722 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10723 echo "configure:10724: checking for cthread_fork with -all_load" >&5
10724 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10725 echo $ac_n "(cached) $ac_c" 1>&6
10729 LIBS="-all_load $LIBS"
10730 cat > conftest.$ac_ext <<EOF
10731 #line 10732 "configure"
10732 #include "confdefs.h"
10733 #include <mach/cthreads.h>
10736 cthread_fork((void *)0, (void *)0);
10740 if { (eval echo configure:10741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10742 ol_cv_cthread_all_load=yes
10744 echo "configure: failed program was:" >&5
10745 cat conftest.$ac_ext >&5
10747 ol_cv_cthread_all_load=no
10754 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10756 if test $ol_cv_cthread_all_load = yes ; then
10757 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10758 ol_link_threads=mach
10762 if test $ol_link_threads != no ; then
10763 : check for cthread specific functionality here
10764 cat >> confdefs.h <<\EOF
10765 #define HAVE_MACH_CTHREADS 1
10769 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10773 if test $ol_with_threads = mach ; then
10774 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10778 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10779 -o $ol_with_threads = pth ; then
10781 for ac_hdr in pth.h
10783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10785 echo "configure:10786: checking for $ac_hdr" >&5
10786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10787 echo $ac_n "(cached) $ac_c" 1>&6
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10791 "configure"
10791 #include "confdefs.h"
10794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10795 { (eval echo configure:10796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10797 if test -z "$ac_err"; then
10799 eval "ac_cv_header_$ac_safe=yes"
10802 echo "configure: failed program was:" >&5
10803 cat conftest.$ac_ext >&5
10805 eval "ac_cv_header_$ac_safe=no"
10809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10812 cat >> confdefs.h <<EOF
10813 #define $ac_tr_hdr 1
10817 echo "$ac_t""no" 1>&6
10822 if test $ac_cv_header_pth_h = yes ; then
10823 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10824 echo "configure:10825: checking for pth_version in -lpth" >&5
10825 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10826 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10827 echo $ac_n "(cached) $ac_c" 1>&6
10829 ac_save_LIBS="$LIBS"
10831 cat > conftest.$ac_ext <<EOF
10832 #line 10833 "configure"
10833 #include "confdefs.h"
10834 /* Override any gcc2 internal prototype to avoid an error. */
10835 /* We use char because int might match the return type of a gcc2
10836 builtin and then its argument prototype would still apply. */
10837 char pth_version();
10843 if { (eval echo configure:10844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10845 eval "ac_cv_lib_$ac_lib_var=yes"
10847 echo "configure: failed program was:" >&5
10848 cat conftest.$ac_ext >&5
10850 eval "ac_cv_lib_$ac_lib_var=no"
10853 LIBS="$ac_save_LIBS"
10856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10857 echo "$ac_t""yes" 1>&6
10860 echo "$ac_t""no" 1>&6
10865 if test $have_pth = yes ; then
10866 cat >> confdefs.h <<\EOF
10867 #define HAVE_GNU_PTH 1
10870 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10871 ol_link_threads=pth
10873 if test $ol_with_yielding_select = auto ; then
10874 ol_with_yielding_select=yes
10880 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10881 -o $ol_with_threads = lwp ; then
10883 for ac_hdr in thread.h synch.h
10885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10887 echo "configure:10888: checking for $ac_hdr" >&5
10888 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10891 cat > conftest.$ac_ext <<EOF
10892 #line 10893 "configure"
10893 #include "confdefs.h"
10896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10897 { (eval echo configure:10898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10899 if test -z "$ac_err"; then
10901 eval "ac_cv_header_$ac_safe=yes"
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10907 eval "ac_cv_header_$ac_safe=no"
10911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10914 cat >> confdefs.h <<EOF
10915 #define $ac_tr_hdr 1
10919 echo "$ac_t""no" 1>&6
10923 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10924 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10925 echo "configure:10926: checking for thr_create in -lthread" >&5
10926 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10927 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10928 echo $ac_n "(cached) $ac_c" 1>&6
10930 ac_save_LIBS="$LIBS"
10931 LIBS="-lthread $LIBS"
10932 cat > conftest.$ac_ext <<EOF
10933 #line 10934 "configure"
10934 #include "confdefs.h"
10935 /* Override any gcc2 internal prototype to avoid an error. */
10936 /* We use char because int might match the return type of a gcc2
10937 builtin and then its argument prototype would still apply. */
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 eval "ac_cv_lib_$ac_lib_var=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_lib_$ac_lib_var=no"
10954 LIBS="$ac_save_LIBS"
10957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10961 echo "$ac_t""no" 1>&6
10966 if test $have_thr = yes ; then
10967 cat >> confdefs.h <<\EOF
10971 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10972 ol_link_threads=thr
10974 if test $ol_with_yielding_select = auto ; then
10975 ol_with_yielding_select=yes
10979 thr_setconcurrency \
10980 thr_getconcurrency \
10983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10984 echo "configure:10985: checking for $ac_func" >&5
10985 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10986 echo $ac_n "(cached) $ac_c" 1>&6
10988 cat > conftest.$ac_ext <<EOF
10989 #line 10990 "configure"
10990 #include "confdefs.h"
10991 /* System header to define __stub macros and hopefully few prototypes,
10992 which can conflict with char $ac_func(); below. */
10993 #include <assert.h>
10994 /* Override any gcc2 internal prototype to avoid an error. */
10995 /* We use char because int might match the return type of a gcc2
10996 builtin and then its argument prototype would still apply. */
11002 /* The GNU C library defines this for functions which it implements
11003 to always fail with ENOSYS. Some functions are actually named
11004 something starting with __ and the normal name is an alias. */
11005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11013 if { (eval echo configure:11014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11015 eval "ac_cv_func_$ac_func=yes"
11017 echo "configure: failed program was:" >&5
11018 cat conftest.$ac_ext >&5
11020 eval "ac_cv_func_$ac_func=no"
11025 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11027 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11028 cat >> confdefs.h <<EOF
11029 #define $ac_tr_func 1
11033 echo "$ac_t""no" 1>&6
11040 for ac_hdr in lwp/lwp.h
11042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11044 echo "configure:11045: checking for $ac_hdr" >&5
11045 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11046 echo $ac_n "(cached) $ac_c" 1>&6
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11050 "configure"
11050 #include "confdefs.h"
11053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11054 { (eval echo configure:11055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11056 if test -z "$ac_err"; then
11058 eval "ac_cv_header_$ac_safe=yes"
11061 echo "configure: failed program was:" >&5
11062 cat conftest.$ac_ext >&5
11064 eval "ac_cv_header_$ac_safe=no"
11068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11069 echo "$ac_t""yes" 1>&6
11070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11071 cat >> confdefs.h <<EOF
11072 #define $ac_tr_hdr 1
11076 echo "$ac_t""no" 1>&6
11080 if test $ac_cv_header_lwp_lwp_h = yes ; then
11081 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11082 echo "configure:11083: checking for lwp_create in -llwp" >&5
11083 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11085 echo $ac_n "(cached) $ac_c" 1>&6
11087 ac_save_LIBS="$LIBS"
11089 cat > conftest.$ac_ext <<EOF
11090 #line 11091 "configure"
11091 #include "confdefs.h"
11092 /* Override any gcc2 internal prototype to avoid an error. */
11093 /* We use char because int might match the return type of a gcc2
11094 builtin and then its argument prototype would still apply. */
11101 if { (eval echo configure:11102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11103 eval "ac_cv_lib_$ac_lib_var=yes"
11105 echo "configure: failed program was:" >&5
11106 cat conftest.$ac_ext >&5
11108 eval "ac_cv_lib_$ac_lib_var=no"
11111 LIBS="$ac_save_LIBS"
11114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11115 echo "$ac_t""yes" 1>&6
11118 echo "$ac_t""no" 1>&6
11123 if test $have_lwp = yes ; then
11124 cat >> confdefs.h <<\EOF
11128 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11129 ol_link_threads=lwp
11131 if test $ol_with_yielding_select = auto ; then
11132 ol_with_yielding_select=no
11138 if test $ol_with_yielding_select = yes ; then
11139 cat >> confdefs.h <<\EOF
11140 #define HAVE_YIELDING_SELECT 1
11145 if test $ol_with_threads = manual ; then
11146 ol_link_threads=yes
11148 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11150 for ac_hdr in pthread.h sched.h
11152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11154 echo "configure:11155: checking for $ac_hdr" >&5
11155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11156 echo $ac_n "(cached) $ac_c" 1>&6
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11164 { (eval echo configure:11165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11166 if test -z "$ac_err"; then
11168 eval "ac_cv_header_$ac_safe=yes"
11171 echo "configure: failed program was:" >&5
11172 cat conftest.$ac_ext >&5
11174 eval "ac_cv_header_$ac_safe=no"
11178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11179 echo "$ac_t""yes" 1>&6
11180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11181 cat >> confdefs.h <<EOF
11182 #define $ac_tr_hdr 1
11186 echo "$ac_t""no" 1>&6
11190 for ac_func in sched_yield pthread_yield
11192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11193 echo "configure:11194: checking for $ac_func" >&5
11194 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11195 echo $ac_n "(cached) $ac_c" 1>&6
11197 cat > conftest.$ac_ext <<EOF
11198 #line 11199 "configure"
11199 #include "confdefs.h"
11200 /* System header to define __stub macros and hopefully few prototypes,
11201 which can conflict with char $ac_func(); below. */
11202 #include <assert.h>
11203 /* Override any gcc2 internal prototype to avoid an error. */
11204 /* We use char because int might match the return type of a gcc2
11205 builtin and then its argument prototype would still apply. */
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11222 if { (eval echo configure:11223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11224 eval "ac_cv_func_$ac_func=yes"
11226 echo "configure: failed program was:" >&5
11227 cat conftest.$ac_ext >&5
11229 eval "ac_cv_func_$ac_func=no"
11234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11235 echo "$ac_t""yes" 1>&6
11236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11237 cat >> confdefs.h <<EOF
11238 #define $ac_tr_func 1
11242 echo "$ac_t""no" 1>&6
11247 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11248 echo "configure:11249: checking for LinuxThreads pthread.h" >&5
11249 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11250 echo $ac_n "(cached) $ac_c" 1>&6
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11255 #include <pthread.h>
11257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11258 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11260 ol_cv_header_linux_threads=yes
11263 ol_cv_header_linux_threads=no
11270 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11271 if test $ol_cv_header_linux_threads = yes; then
11272 cat >> confdefs.h <<\EOF
11273 #define HAVE_LINUX_THREADS 1
11279 for ac_hdr in mach/cthreads.h
11281 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11282 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11283 echo "configure:11284: checking for $ac_hdr" >&5
11284 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11287 cat > conftest.$ac_ext <<EOF
11288 #line 11289 "configure"
11289 #include "confdefs.h"
11292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11293 { (eval echo configure:11294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11295 if test -z "$ac_err"; then
11297 eval "ac_cv_header_$ac_safe=yes"
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11303 eval "ac_cv_header_$ac_safe=no"
11307 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11308 echo "$ac_t""yes" 1>&6
11309 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11310 cat >> confdefs.h <<EOF
11311 #define $ac_tr_hdr 1
11315 echo "$ac_t""no" 1>&6
11319 for ac_hdr in lwp/lwp.h
11321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11323 echo "configure:11324: checking for $ac_hdr" >&5
11324 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11327 cat > conftest.$ac_ext <<EOF
11328 #line 11329 "configure"
11329 #include "confdefs.h"
11332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11333 { (eval echo configure:11334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11335 if test -z "$ac_err"; then
11337 eval "ac_cv_header_$ac_safe=yes"
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11343 eval "ac_cv_header_$ac_safe=no"
11347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11348 echo "$ac_t""yes" 1>&6
11349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11350 cat >> confdefs.h <<EOF
11351 #define $ac_tr_hdr 1
11355 echo "$ac_t""no" 1>&6
11359 for ac_hdr in thread.h synch.h
11361 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11362 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11363 echo "configure:11364: checking for $ac_hdr" >&5
11364 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11365 echo $ac_n "(cached) $ac_c" 1>&6
11367 cat > conftest.$ac_ext <<EOF
11368 #line 11369 "configure"
11369 #include "confdefs.h"
11372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11373 { (eval echo configure:11374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11375 if test -z "$ac_err"; then
11377 eval "ac_cv_header_$ac_safe=yes"
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11383 eval "ac_cv_header_$ac_safe=no"
11387 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11388 echo "$ac_t""yes" 1>&6
11389 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11390 cat >> confdefs.h <<EOF
11391 #define $ac_tr_hdr 1
11395 echo "$ac_t""no" 1>&6
11401 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11402 cat >> confdefs.h <<\EOF
11403 #define REENTRANT 1
11406 cat >> confdefs.h <<\EOF
11407 #define _REENTRANT 1
11410 cat >> confdefs.h <<\EOF
11411 #define THREAD_SAFE 1
11414 cat >> confdefs.h <<\EOF
11415 #define _THREAD_SAFE 1
11418 cat >> confdefs.h <<\EOF
11419 #define THREADSAFE 1
11422 cat >> confdefs.h <<\EOF
11423 #define _THREADSAFE 1
11426 cat >> confdefs.h <<\EOF
11427 #define _SGI_MP_SOURCE 1
11431 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11432 echo "configure:11433: checking for thread specific errno" >&5
11433 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11445 if { (eval echo configure:11446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11447 ol_cv_errno_thread_specific=yes
11449 echo "configure: failed program was:" >&5
11450 cat conftest.$ac_ext >&5
11452 ol_cv_errno_thread_specific=no
11458 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11460 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11461 echo "configure:11462: checking for thread specific h_errno" >&5
11462 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11463 echo $ac_n "(cached) $ac_c" 1>&6
11466 cat > conftest.$ac_ext <<EOF
11467 #line 11468 "configure"
11468 #include "confdefs.h"
11474 if { (eval echo configure:11475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11476 ol_cv_h_errno_thread_specific=yes
11478 echo "configure: failed program was:" >&5
11479 cat conftest.$ac_ext >&5
11481 ol_cv_h_errno_thread_specific=no
11487 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11489 if test $ol_cv_errno_thread_specific != yes \
11490 -o $ol_cv_h_errno_thread_specific != yes ; then
11491 LIBS="$LTHREAD_LIBS $LIBS"
11497 if test $ol_link_threads = no ; then
11498 if test $ol_with_threads = yes ; then
11499 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11502 if test $ol_with_threads = auto ; then
11503 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11507 cat >> confdefs.h <<\EOF
11508 #define NO_THREADS 1
11514 if test $ol_link_threads != no ; then
11515 cat >> confdefs.h <<\EOF
11516 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11523 if test $ol_with_ldbm_api = auto \
11524 -o $ol_with_ldbm_api = berkeley \
11525 -o $ol_with_ldbm_api = bcompat ; then
11527 if test $ol_with_ldbm_api = bcompat; then \
11528 ol_cv_berkeley_db=no
11529 for ac_hdr in db_185.h db.h
11531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11533 echo "configure:11534: checking for $ac_hdr" >&5
11534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11535 echo $ac_n "(cached) $ac_c" 1>&6
11537 cat > conftest.$ac_ext <<EOF
11538 #line 11539 "configure"
11539 #include "confdefs.h"
11542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11543 { (eval echo configure:11544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11545 if test -z "$ac_err"; then
11547 eval "ac_cv_header_$ac_safe=yes"
11550 echo "configure: failed program was:" >&5
11551 cat conftest.$ac_ext >&5
11553 eval "ac_cv_header_$ac_safe=no"
11557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11558 echo "$ac_t""yes" 1>&6
11559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11560 cat >> confdefs.h <<EOF
11561 #define $ac_tr_hdr 1
11565 echo "$ac_t""no" 1>&6
11569 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11570 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11571 echo "configure:11572: checking if Berkeley DB header compatibility" >&5
11572 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11576 cat > conftest.$ac_ext <<EOF
11577 #line 11578 "configure"
11578 #include "confdefs.h"
11581 # include <db_185.h>
11586 /* this check could be improved */
11587 #ifndef DB_VERSION_MAJOR
11588 # define DB_VERSION_MAJOR 1
11591 #if DB_VERSION_MAJOR == 1
11596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11597 egrep "__db_version_1" >/dev/null 2>&1; then
11599 ol_cv_header_db1=yes
11602 ol_cv_header_db1=no
11608 echo "$ac_t""$ol_cv_header_db1" 1>&6
11610 if test ol_cv_header_db1=yes ; then
11612 if test $ol_cv_lib_db = no ; then
11613 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11614 echo "configure:11615: checking for Berkeley DB link (default)" >&5
11615 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11616 echo $ac_n "(cached) $ac_c" 1>&6
11621 LIBS="$ol_DB_LIB $LIBS"
11623 cat > conftest.$ac_ext <<EOF
11624 #line 11625 "configure"
11625 #include "confdefs.h"
11627 #ifdef HAVE_DB_185_H
11628 # include <db_185.h>
11633 #ifndef DB_VERSION_MAJOR
11634 # define DB_VERSION_MAJOR 1
11638 #define NULL ((void*)0)
11643 #if DB_VERSION_MAJOR > 2
11644 db_env_create( NULL, 0 );
11645 #elif DB_VERSION_MAJOR > 1
11646 db_appexit( NULL );
11648 (void) dbopen( NULL, 0, 0, 0, NULL);
11653 if { (eval echo configure:11654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11657 echo "configure: failed program was:" >&5
11658 cat conftest.$ac_ext >&5
11668 echo "$ac_t""$ol_cv_db_none" 1>&6
11670 if test $ol_cv_db_none = yes ; then
11675 if test $ol_cv_lib_db = no ; then
11676 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11677 echo "configure:11678: checking for Berkeley DB link (-ldb)" >&5
11678 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11679 echo $ac_n "(cached) $ac_c" 1>&6
11684 LIBS="$ol_DB_LIB $LIBS"
11686 cat > conftest.$ac_ext <<EOF
11687 #line 11688 "configure"
11688 #include "confdefs.h"
11690 #ifdef HAVE_DB_185_H
11691 # include <db_185.h>
11696 #ifndef DB_VERSION_MAJOR
11697 # define DB_VERSION_MAJOR 1
11701 #define NULL ((void*)0)
11706 #if DB_VERSION_MAJOR > 2
11707 db_env_create( NULL, 0 );
11708 #elif DB_VERSION_MAJOR > 1
11709 db_appexit( NULL );
11711 (void) dbopen( NULL, 0, 0, 0, NULL);
11716 if { (eval echo configure:11717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11720 echo "configure: failed program was:" >&5
11721 cat conftest.$ac_ext >&5
11731 echo "$ac_t""$ol_cv_db_db" 1>&6
11733 if test $ol_cv_db_db = yes ; then
11738 if test $ol_cv_lib_db = no ; then
11739 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11740 echo "configure:11741: checking for Berkeley DB link (-ldb3)" >&5
11741 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11747 LIBS="$ol_DB_LIB $LIBS"
11749 cat > conftest.$ac_ext <<EOF
11750 #line 11751 "configure"
11751 #include "confdefs.h"
11753 #ifdef HAVE_DB_185_H
11754 # include <db_185.h>
11759 #ifndef DB_VERSION_MAJOR
11760 # define DB_VERSION_MAJOR 1
11764 #define NULL ((void*)0)
11769 #if DB_VERSION_MAJOR > 2
11770 db_env_create( NULL, 0 );
11771 #elif DB_VERSION_MAJOR > 1
11772 db_appexit( NULL );
11774 (void) dbopen( NULL, 0, 0, 0, NULL);
11779 if { (eval echo configure:11780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11783 echo "configure: failed program was:" >&5
11784 cat conftest.$ac_ext >&5
11794 echo "$ac_t""$ol_cv_db_db3" 1>&6
11796 if test $ol_cv_db_db3 = yes ; then
11801 if test $ol_cv_lib_db = no ; then
11802 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11803 echo "configure:11804: checking for Berkeley DB link (-ldb2)" >&5
11804 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11805 echo $ac_n "(cached) $ac_c" 1>&6
11810 LIBS="$ol_DB_LIB $LIBS"
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11816 #ifdef HAVE_DB_185_H
11817 # include <db_185.h>
11822 #ifndef DB_VERSION_MAJOR
11823 # define DB_VERSION_MAJOR 1
11827 #define NULL ((void*)0)
11832 #if DB_VERSION_MAJOR > 2
11833 db_env_create( NULL, 0 );
11834 #elif DB_VERSION_MAJOR > 1
11835 db_appexit( NULL );
11837 (void) dbopen( NULL, 0, 0, 0, NULL);
11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11857 echo "$ac_t""$ol_cv_db_db2" 1>&6
11859 if test $ol_cv_db_db2 = yes ; then
11864 if test $ol_cv_lib_db = no ; then
11865 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11866 echo "configure:11867: checking for Berkeley DB link (-ldb1)" >&5
11867 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11873 LIBS="$ol_DB_LIB $LIBS"
11875 cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure"
11877 #include "confdefs.h"
11879 #ifdef HAVE_DB_185_H
11880 # include <db_185.h>
11885 #ifndef DB_VERSION_MAJOR
11886 # define DB_VERSION_MAJOR 1
11890 #define NULL ((void*)0)
11895 #if DB_VERSION_MAJOR > 2
11896 db_env_create( NULL, 0 );
11897 #elif DB_VERSION_MAJOR > 1
11898 db_appexit( NULL );
11900 (void) dbopen( NULL, 0, 0, 0, NULL);
11905 if { (eval echo configure:11906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11909 echo "configure: failed program was:" >&5
11910 cat conftest.$ac_ext >&5
11920 echo "$ac_t""$ol_cv_db_db1" 1>&6
11922 if test $ol_cv_db_db1 = yes ; then
11928 if test "$ol_cv_lib_db" != no ; then
11929 ol_cv_berkeley_db=yes
11935 ol_cv_berkeley_db=no
11938 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11939 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11940 echo "configure:11941: checking for $ac_hdr" >&5
11941 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11942 echo $ac_n "(cached) $ac_c" 1>&6
11944 cat > conftest.$ac_ext <<EOF
11945 #line 11946 "configure"
11946 #include "confdefs.h"
11949 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11950 { (eval echo configure:11951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11951 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11952 if test -z "$ac_err"; then
11954 eval "ac_cv_header_$ac_safe=yes"
11957 echo "configure: failed program was:" >&5
11958 cat conftest.$ac_ext >&5
11960 eval "ac_cv_header_$ac_safe=no"
11964 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11965 echo "$ac_t""yes" 1>&6
11966 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11967 cat >> confdefs.h <<EOF
11968 #define $ac_tr_hdr 1
11972 echo "$ac_t""no" 1>&6
11976 if test $ac_cv_header_db_h = yes; then
11978 if test $ol_cv_lib_db = no ; then
11979 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11980 echo "configure:11981: checking for Berkeley DB link (default)" >&5
11981 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11982 echo $ac_n "(cached) $ac_c" 1>&6
11987 LIBS="$ol_DB_LIB $LIBS"
11989 cat > conftest.$ac_ext <<EOF
11990 #line 11991 "configure"
11991 #include "confdefs.h"
11993 #ifdef HAVE_DB_185_H
11994 # include <db_185.h>
11999 #ifndef DB_VERSION_MAJOR
12000 # define DB_VERSION_MAJOR 1
12004 #define NULL ((void*)0)
12009 #if DB_VERSION_MAJOR > 2
12010 db_env_create( NULL, 0 );
12011 #elif DB_VERSION_MAJOR > 1
12012 db_appexit( NULL );
12014 (void) dbopen( NULL, 0, 0, 0, NULL);
12019 if { (eval echo configure:12020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12023 echo "configure: failed program was:" >&5
12024 cat conftest.$ac_ext >&5
12034 echo "$ac_t""$ol_cv_db_none" 1>&6
12036 if test $ol_cv_db_none = yes ; then
12041 if test $ol_cv_lib_db = no ; then
12042 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12043 echo "configure:12044: checking for Berkeley DB link (-ldb)" >&5
12044 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12045 echo $ac_n "(cached) $ac_c" 1>&6
12050 LIBS="$ol_DB_LIB $LIBS"
12052 cat > conftest.$ac_ext <<EOF
12053 #line 12054 "configure"
12054 #include "confdefs.h"
12056 #ifdef HAVE_DB_185_H
12057 # include <db_185.h>
12062 #ifndef DB_VERSION_MAJOR
12063 # define DB_VERSION_MAJOR 1
12067 #define NULL ((void*)0)
12072 #if DB_VERSION_MAJOR > 2
12073 db_env_create( NULL, 0 );
12074 #elif DB_VERSION_MAJOR > 1
12075 db_appexit( NULL );
12077 (void) dbopen( NULL, 0, 0, 0, NULL);
12082 if { (eval echo configure:12083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12086 echo "configure: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12097 echo "$ac_t""$ol_cv_db_db" 1>&6
12099 if test $ol_cv_db_db = yes ; then
12104 if test $ol_cv_lib_db = no ; then
12105 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12106 echo "configure:12107: checking for Berkeley DB link (-ldb3)" >&5
12107 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12113 LIBS="$ol_DB_LIB $LIBS"
12115 cat > conftest.$ac_ext <<EOF
12116 #line 12117 "configure"
12117 #include "confdefs.h"
12119 #ifdef HAVE_DB_185_H
12120 # include <db_185.h>
12125 #ifndef DB_VERSION_MAJOR
12126 # define DB_VERSION_MAJOR 1
12130 #define NULL ((void*)0)
12135 #if DB_VERSION_MAJOR > 2
12136 db_env_create( NULL, 0 );
12137 #elif DB_VERSION_MAJOR > 1
12138 db_appexit( NULL );
12140 (void) dbopen( NULL, 0, 0, 0, NULL);
12145 if { (eval echo configure:12146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12149 echo "configure: failed program was:" >&5
12150 cat conftest.$ac_ext >&5
12160 echo "$ac_t""$ol_cv_db_db3" 1>&6
12162 if test $ol_cv_db_db3 = yes ; then
12167 if test $ol_cv_lib_db = no ; then
12168 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12169 echo "configure:12170: checking for Berkeley DB link (-ldb2)" >&5
12170 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12171 echo $ac_n "(cached) $ac_c" 1>&6
12176 LIBS="$ol_DB_LIB $LIBS"
12178 cat > conftest.$ac_ext <<EOF
12179 #line 12180 "configure"
12180 #include "confdefs.h"
12182 #ifdef HAVE_DB_185_H
12183 # include <db_185.h>
12188 #ifndef DB_VERSION_MAJOR
12189 # define DB_VERSION_MAJOR 1
12193 #define NULL ((void*)0)
12198 #if DB_VERSION_MAJOR > 2
12199 db_env_create( NULL, 0 );
12200 #elif DB_VERSION_MAJOR > 1
12201 db_appexit( NULL );
12203 (void) dbopen( NULL, 0, 0, 0, NULL);
12208 if { (eval echo configure:12209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12223 echo "$ac_t""$ol_cv_db_db2" 1>&6
12225 if test $ol_cv_db_db2 = yes ; then
12230 if test $ol_cv_lib_db = no ; then
12231 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12232 echo "configure:12233: checking for Berkeley DB link (-ldb1)" >&5
12233 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12234 echo $ac_n "(cached) $ac_c" 1>&6
12239 LIBS="$ol_DB_LIB $LIBS"
12241 cat > conftest.$ac_ext <<EOF
12242 #line 12243 "configure"
12243 #include "confdefs.h"
12245 #ifdef HAVE_DB_185_H
12246 # include <db_185.h>
12251 #ifndef DB_VERSION_MAJOR
12252 # define DB_VERSION_MAJOR 1
12256 #define NULL ((void*)0)
12261 #if DB_VERSION_MAJOR > 2
12262 db_env_create( NULL, 0 );
12263 #elif DB_VERSION_MAJOR > 1
12264 db_appexit( NULL );
12266 (void) dbopen( NULL, 0, 0, 0, NULL);
12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12275 echo "configure: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12286 echo "$ac_t""$ol_cv_db_db1" 1>&6
12288 if test $ol_cv_db_db1 = yes ; then
12294 if test "$ol_cv_lib_db" != no ; then
12295 ol_cv_berkeley_db=yes
12296 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12297 echo "configure:12298: checking for Berkeley DB thread support" >&5
12298 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12299 echo $ac_n "(cached) $ac_c" 1>&6
12303 if test $ol_cv_lib_db != yes ; then
12304 LIBS="$ol_cv_lib_db"
12307 if test "$cross_compiling" = yes; then
12308 ol_cv_berkeley_db_thread=cross
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12314 #ifdef HAVE_DB_185_H
12320 #define NULL ((void *)0)
12325 u_int32_t flags = DB_CREATE | DB_THREAD;
12327 #if DB_VERSION_MAJOR > 2
12328 DB_ENV *env = NULL;
12330 rc = db_env_create( &env, 0 );
12333 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12334 rc = env->open( env, NULL, flags, 0 );
12336 rc = env->open( env, NULL, NULL, flags, 0 );
12342 memset( &env, '\0', sizeof(env) );
12344 rc = db_appinit( NULL, NULL, &env, flags );
12347 db_appexit( &env );
12350 #if DB_VERSION_MAJOR > 2
12351 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12352 env->remove( env, NULL, DB_FORCE);
12354 env->remove( env, NULL, NULL, DB_FORCE);
12361 if { (eval echo configure:12362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12363 ol_cv_berkeley_db_thread=yes
12365 echo "configure: failed program was:" >&5
12366 cat conftest.$ac_ext >&5
12368 ol_cv_berkeley_db_thread=no
12376 if test $ol_cv_berkeley_db_thread != no ; then
12377 cat >> confdefs.h <<\EOF
12378 #define HAVE_BERKELEY_DB_THREAD 1
12385 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12391 if test $ol_cv_berkeley_db != no ; then
12392 cat >> confdefs.h <<\EOF
12393 #define HAVE_BERKELEY_DB 1
12397 ol_link_ldbm=berkeley
12398 ol_with_ldbm_api=db
12400 if test $ol_with_ldbm_type = hash ; then
12401 cat >> confdefs.h <<\EOF
12402 #define LDBM_USE_DBHASH 1
12406 cat >> confdefs.h <<\EOF
12407 #define LDBM_USE_DBBTREE 1
12412 if test $ol_cv_lib_db != yes ; then
12413 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12418 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12419 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12420 ol_with_ldbm_api=none
12423 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12424 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12425 echo "configure:12426: checking for MDBM library" >&5
12426 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12427 echo $ac_n "(cached) $ac_c" 1>&6
12430 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12431 echo "configure:12432: checking for mdbm_set_chain" >&5
12432 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12433 echo $ac_n "(cached) $ac_c" 1>&6
12435 cat > conftest.$ac_ext <<EOF
12436 #line 12437 "configure"
12437 #include "confdefs.h"
12438 /* System header to define __stub macros and hopefully few prototypes,
12439 which can conflict with char mdbm_set_chain(); below. */
12440 #include <assert.h>
12441 /* Override any gcc2 internal prototype to avoid an error. */
12442 /* We use char because int might match the return type of a gcc2
12443 builtin and then its argument prototype would still apply. */
12444 char mdbm_set_chain();
12449 /* The GNU C library defines this for functions which it implements
12450 to always fail with ENOSYS. Some functions are actually named
12451 something starting with __ and the normal name is an alias. */
12452 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12455 f = mdbm_set_chain;
12460 if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12462 eval "ac_cv_func_mdbm_set_chain=yes"
12464 echo "configure: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12467 eval "ac_cv_func_mdbm_set_chain=no"
12472 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12473 echo "$ac_t""yes" 1>&6
12476 echo "$ac_t""no" 1>&6
12478 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12479 echo "configure:12480: checking for mdbm_set_chain in -lmdbm" >&5
12480 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12481 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12484 ac_save_LIBS="$LIBS"
12485 LIBS="-lmdbm $LIBS"
12486 cat > conftest.$ac_ext <<EOF
12487 #line 12488 "configure"
12488 #include "confdefs.h"
12489 /* Override any gcc2 internal prototype to avoid an error. */
12490 /* We use char because int might match the return type of a gcc2
12491 builtin and then its argument prototype would still apply. */
12492 char mdbm_set_chain();
12498 if { (eval echo configure:12499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12500 eval "ac_cv_lib_$ac_lib_var=yes"
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12505 eval "ac_cv_lib_$ac_lib_var=no"
12508 LIBS="$ac_save_LIBS"
12511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12512 echo "$ac_t""yes" 1>&6
12513 ol_cv_lib_mdbm=-lmdbm
12515 echo "$ac_t""no" 1>&6
12526 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12529 for ac_hdr in mdbm.h
12531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12533 echo "configure:12534: checking for $ac_hdr" >&5
12534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12535 echo $ac_n "(cached) $ac_c" 1>&6
12537 cat > conftest.$ac_ext <<EOF
12538 #line 12539 "configure"
12539 #include "confdefs.h"
12542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12543 { (eval echo configure:12544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12545 if test -z "$ac_err"; then
12547 eval "ac_cv_header_$ac_safe=yes"
12550 echo "configure: failed program was:" >&5
12551 cat conftest.$ac_ext >&5
12553 eval "ac_cv_header_$ac_safe=no"
12557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12558 echo "$ac_t""yes" 1>&6
12559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12560 cat >> confdefs.h <<EOF
12561 #define $ac_tr_hdr 1
12565 echo "$ac_t""no" 1>&6
12569 echo $ac_n "checking for db""... $ac_c" 1>&6
12570 echo "configure:12571: checking for db" >&5
12571 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12572 echo $ac_n "(cached) $ac_c" 1>&6
12575 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12583 echo "$ac_t""$ol_cv_mdbm" 1>&6
12584 if test $ol_cv_mdbm = yes ; then
12585 cat >> confdefs.h <<\EOF
12586 #define HAVE_MDBM 1
12592 if test $ol_cv_mdbm = yes ; then
12594 ol_with_ldbm_api=mdbm
12595 if test $ol_cv_lib_mdbm != yes ; then
12596 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12601 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12602 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12603 echo "configure:12604: checking for GDBM library" >&5
12604 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12608 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12609 echo "configure:12610: checking for gdbm_open" >&5
12610 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12611 echo $ac_n "(cached) $ac_c" 1>&6
12613 cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12616 /* System header to define __stub macros and hopefully few prototypes,
12617 which can conflict with char gdbm_open(); below. */
12618 #include <assert.h>
12619 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12627 /* The GNU C library defines this for functions which it implements
12628 to always fail with ENOSYS. Some functions are actually named
12629 something starting with __ and the normal name is an alias. */
12630 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12638 if { (eval echo configure:12639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12640 eval "ac_cv_func_gdbm_open=yes"
12642 echo "configure: failed program was:" >&5
12643 cat conftest.$ac_ext >&5
12645 eval "ac_cv_func_gdbm_open=no"
12650 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12651 echo "$ac_t""yes" 1>&6
12654 echo "$ac_t""no" 1>&6
12656 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12657 echo "configure:12658: checking for gdbm_open in -lgdbm" >&5
12658 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12659 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12660 echo $ac_n "(cached) $ac_c" 1>&6
12662 ac_save_LIBS="$LIBS"
12663 LIBS="-lgdbm $LIBS"
12664 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure"
12666 #include "confdefs.h"
12667 /* Override any gcc2 internal prototype to avoid an error. */
12668 /* We use char because int might match the return type of a gcc2
12669 builtin and then its argument prototype would still apply. */
12676 if { (eval echo configure:12677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12678 eval "ac_cv_lib_$ac_lib_var=yes"
12680 echo "configure: failed program was:" >&5
12681 cat conftest.$ac_ext >&5
12683 eval "ac_cv_lib_$ac_lib_var=no"
12686 LIBS="$ac_save_LIBS"
12689 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12690 echo "$ac_t""yes" 1>&6
12691 ol_cv_lib_gdbm=-lgdbm
12693 echo "$ac_t""no" 1>&6
12704 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12707 for ac_hdr in gdbm.h
12709 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12710 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12711 echo "configure:12712: checking for $ac_hdr" >&5
12712 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12715 cat > conftest.$ac_ext <<EOF
12716 #line 12717 "configure"
12717 #include "confdefs.h"
12720 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12721 { (eval echo configure:12722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12722 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12723 if test -z "$ac_err"; then
12725 eval "ac_cv_header_$ac_safe=yes"
12728 echo "configure: failed program was:" >&5
12729 cat conftest.$ac_ext >&5
12731 eval "ac_cv_header_$ac_safe=no"
12735 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12736 echo "$ac_t""yes" 1>&6
12737 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12738 cat >> confdefs.h <<EOF
12739 #define $ac_tr_hdr 1
12743 echo "$ac_t""no" 1>&6
12747 echo $ac_n "checking for db""... $ac_c" 1>&6
12748 echo "configure:12749: checking for db" >&5
12749 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12750 echo $ac_n "(cached) $ac_c" 1>&6
12753 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12761 echo "$ac_t""$ol_cv_gdbm" 1>&6
12762 if test $ol_cv_gdbm = yes ; then
12763 cat >> confdefs.h <<\EOF
12764 #define HAVE_GDBM 1
12770 if test $ol_cv_gdbm = yes ; then
12772 ol_with_ldbm_api=gdbm
12774 if test $ol_cv_lib_gdbm != yes ; then
12775 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12780 if test $ol_with_ldbm_api = ndbm ; then
12781 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12782 echo "configure:12783: checking for NDBM library" >&5
12783 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12784 echo $ac_n "(cached) $ac_c" 1>&6
12787 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12788 echo "configure:12789: checking for dbm_open" >&5
12789 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12790 echo $ac_n "(cached) $ac_c" 1>&6
12792 cat > conftest.$ac_ext <<EOF
12793 #line 12794 "configure"
12794 #include "confdefs.h"
12795 /* System header to define __stub macros and hopefully few prototypes,
12796 which can conflict with char dbm_open(); below. */
12797 #include <assert.h>
12798 /* Override any gcc2 internal prototype to avoid an error. */
12799 /* We use char because int might match the return type of a gcc2
12800 builtin and then its argument prototype would still apply. */
12806 /* The GNU C library defines this for functions which it implements
12807 to always fail with ENOSYS. Some functions are actually named
12808 something starting with __ and the normal name is an alias. */
12809 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12817 if { (eval echo configure:12818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12819 eval "ac_cv_func_dbm_open=yes"
12821 echo "configure: failed program was:" >&5
12822 cat conftest.$ac_ext >&5
12824 eval "ac_cv_func_dbm_open=no"
12829 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12830 echo "$ac_t""yes" 1>&6
12833 echo "$ac_t""no" 1>&6
12835 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12836 echo "configure:12837: checking for dbm_open in -lndbm" >&5
12837 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12839 echo $ac_n "(cached) $ac_c" 1>&6
12841 ac_save_LIBS="$LIBS"
12842 LIBS="-lndbm $LIBS"
12843 cat > conftest.$ac_ext <<EOF
12844 #line 12845 "configure"
12845 #include "confdefs.h"
12846 /* Override any gcc2 internal prototype to avoid an error. */
12847 /* We use char because int might match the return type of a gcc2
12848 builtin and then its argument prototype would still apply. */
12855 if { (eval echo configure:12856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12857 eval "ac_cv_lib_$ac_lib_var=yes"
12859 echo "configure: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12862 eval "ac_cv_lib_$ac_lib_var=no"
12865 LIBS="$ac_save_LIBS"
12868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12869 echo "$ac_t""yes" 1>&6
12870 ol_cv_lib_ndbm=-lndbm
12872 echo "$ac_t""no" 1>&6
12874 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12875 echo "configure:12876: checking for dbm_open in -ldbm" >&5
12876 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12877 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12878 echo $ac_n "(cached) $ac_c" 1>&6
12880 ac_save_LIBS="$LIBS"
12882 cat > conftest.$ac_ext <<EOF
12883 #line 12884 "configure"
12884 #include "confdefs.h"
12885 /* Override any gcc2 internal prototype to avoid an error. */
12886 /* We use char because int might match the return type of a gcc2
12887 builtin and then its argument prototype would still apply. */
12894 if { (eval echo configure:12895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12896 eval "ac_cv_lib_$ac_lib_var=yes"
12898 echo "configure: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12901 eval "ac_cv_lib_$ac_lib_var=no"
12904 LIBS="$ac_save_LIBS"
12907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12908 echo "$ac_t""yes" 1>&6
12909 ol_cv_lib_ndbm=-ldbm
12911 echo "$ac_t""no" 1>&6
12924 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12927 for ac_hdr in ndbm.h
12929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12931 echo "configure:12932: checking for $ac_hdr" >&5
12932 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12935 cat > conftest.$ac_ext <<EOF
12936 #line 12937 "configure"
12937 #include "confdefs.h"
12940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12941 { (eval echo configure:12942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12943 if test -z "$ac_err"; then
12945 eval "ac_cv_header_$ac_safe=yes"
12948 echo "configure: failed program was:" >&5
12949 cat conftest.$ac_ext >&5
12951 eval "ac_cv_header_$ac_safe=no"
12955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12956 echo "$ac_t""yes" 1>&6
12957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12958 cat >> confdefs.h <<EOF
12959 #define $ac_tr_hdr 1
12963 echo "$ac_t""no" 1>&6
12967 echo $ac_n "checking for db""... $ac_c" 1>&6
12968 echo "configure:12969: checking for db" >&5
12969 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12970 echo $ac_n "(cached) $ac_c" 1>&6
12973 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12981 echo "$ac_t""$ol_cv_ndbm" 1>&6
12982 if test $ol_cv_ndbm = yes ; then
12983 cat >> confdefs.h <<\EOF
12984 #define HAVE_NDBM 1
12990 if test $ol_cv_ndbm = yes ; then
12992 ol_with_ldbm_api=ndbm
12994 if test $ol_cv_lib_ndbm != yes ; then
12995 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13000 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13001 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13002 if test $ol_enable_ldbm = yes ; then
13003 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13006 echo "configure: warning: disabling LDBM" 1>&2
13010 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13011 LINK_BINS_DYNAMIC="yes"
13013 LINK_BINS_DYNAMIC="no"
13016 if test $ol_enable_wrappers != no ; then
13017 for ac_hdr in tcpd.h
13019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13021 echo "configure:13022: checking for $ac_hdr" >&5
13022 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13023 echo $ac_n "(cached) $ac_c" 1>&6
13025 cat > conftest.$ac_ext <<EOF
13026 #line 13027 "configure"
13027 #include "confdefs.h"
13030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13031 { (eval echo configure:13032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13033 if test -z "$ac_err"; then
13035 eval "ac_cv_header_$ac_safe=yes"
13038 echo "configure: failed program was:" >&5
13039 cat conftest.$ac_ext >&5
13041 eval "ac_cv_header_$ac_safe=no"
13045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13046 echo "$ac_t""yes" 1>&6
13047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13048 cat >> confdefs.h <<EOF
13049 #define $ac_tr_hdr 1
13053 echo "$ac_t""no" 1>&6
13058 if test $ac_cv_header_tcpd_h != yes ; then
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13065 int allow_severity = 0;
13066 int deny_severity = 0;
13072 if { (eval echo configure:13073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13084 if test $have_wrappers = yes ; then
13085 cat >> confdefs.h <<\EOF
13086 #define HAVE_TCPD 1
13091 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13092 echo "configure:13093: checking for main in -lnsl" >&5
13093 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13094 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13097 ac_save_LIBS="$LIBS"
13099 cat > conftest.$ac_ext <<EOF
13100 #line 13101 "configure"
13101 #include "confdefs.h"
13107 if { (eval echo configure:13108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13109 eval "ac_cv_lib_$ac_lib_var=yes"
13111 echo "configure: failed program was:" >&5
13112 cat conftest.$ac_ext >&5
13114 eval "ac_cv_lib_$ac_lib_var=no"
13117 LIBS="$ac_save_LIBS"
13120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13121 echo "$ac_t""yes" 1>&6
13122 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13123 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13124 cat >> confdefs.h <<EOF
13125 #define $ac_tr_lib 1
13131 echo "$ac_t""no" 1>&6
13135 echo "configure: warning: could not find -lwrap" 1>&2
13136 if test $ol_enable_wrappers = yes ; then
13137 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13140 echo "configure: warning: disabling wrappers support" 1>&2
13141 ol_enable_wrappers=no
13146 if test $ol_enable_syslog != no ; then
13147 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13148 echo "configure:13149: checking for openlog" >&5
13149 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 /* System header to define __stub macros and hopefully few prototypes,
13156 which can conflict with char openlog(); below. */
13157 #include <assert.h>
13158 /* Override any gcc2 internal prototype to avoid an error. */
13159 /* We use char because int might match the return type of a gcc2
13160 builtin and then its argument prototype would still apply. */
13166 /* The GNU C library defines this for functions which it implements
13167 to always fail with ENOSYS. Some functions are actually named
13168 something starting with __ and the normal name is an alias. */
13169 #if defined (__stub_openlog) || defined (__stub___openlog)
13177 if { (eval echo configure:13178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13179 eval "ac_cv_func_openlog=yes"
13181 echo "configure: failed program was:" >&5
13182 cat conftest.$ac_ext >&5
13184 eval "ac_cv_func_openlog=no"
13189 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13190 echo "$ac_t""yes" 1>&6
13193 echo "$ac_t""no" 1>&6
13196 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13197 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13199 ol_enable_syslog=$ac_cv_func_openlog
13203 if test $ol_enable_sql != no ; then
13204 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13205 echo "configure:13206: checking for SQLDriverConnect in -liodbc" >&5
13206 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13208 echo $ac_n "(cached) $ac_c" 1>&6
13210 ac_save_LIBS="$LIBS"
13211 LIBS="-liodbc $LIBS"
13212 cat > conftest.$ac_ext <<EOF
13213 #line 13214 "configure"
13214 #include "confdefs.h"
13215 /* Override any gcc2 internal prototype to avoid an error. */
13216 /* We use char because int might match the return type of a gcc2
13217 builtin and then its argument prototype would still apply. */
13218 char SQLDriverConnect();
13224 if { (eval echo configure:13225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13226 eval "ac_cv_lib_$ac_lib_var=yes"
13228 echo "configure: failed program was:" >&5
13229 cat conftest.$ac_ext >&5
13231 eval "ac_cv_lib_$ac_lib_var=no"
13234 LIBS="$ac_save_LIBS"
13237 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13238 echo "$ac_t""yes" 1>&6
13241 echo "$ac_t""no" 1>&6
13245 if test $have_iodbc = yes ; then
13246 ol_link_sql="-liodbc"
13248 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13249 echo "configure:13250: checking for SQLDriverConnect in -lodbc" >&5
13250 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13251 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13252 echo $ac_n "(cached) $ac_c" 1>&6
13254 ac_save_LIBS="$LIBS"
13255 LIBS="-lodbc $LIBS"
13256 cat > conftest.$ac_ext <<EOF
13257 #line 13258 "configure"
13258 #include "confdefs.h"
13259 /* Override any gcc2 internal prototype to avoid an error. */
13260 /* We use char because int might match the return type of a gcc2
13261 builtin and then its argument prototype would still apply. */
13262 char SQLDriverConnect();
13268 if { (eval echo configure:13269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13270 eval "ac_cv_lib_$ac_lib_var=yes"
13272 echo "configure: failed program was:" >&5
13273 cat conftest.$ac_ext >&5
13275 eval "ac_cv_lib_$ac_lib_var=no"
13278 LIBS="$ac_save_LIBS"
13281 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13282 echo "$ac_t""yes" 1>&6
13285 echo "$ac_t""no" 1>&6
13289 if test $have_odbc = yes ; then
13290 ol_link_sql="-lodbc"
13294 if test $ol_link_sql != no ; then
13295 SLAPD_SQL_LIBS="$ol_link_sql"
13297 elif test $ol_enable_sql != auto ; then
13298 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13303 for ac_hdr in termcap.h ncurses.h
13305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13307 echo "configure:13308: checking for $ac_hdr" >&5
13308 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13309 echo $ac_n "(cached) $ac_c" 1>&6
13311 cat > conftest.$ac_ext <<EOF
13312 #line 13313 "configure"
13313 #include "confdefs.h"
13316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13317 { (eval echo configure:13318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13319 if test -z "$ac_err"; then
13321 eval "ac_cv_header_$ac_safe=yes"
13324 echo "configure: failed program was:" >&5
13325 cat conftest.$ac_ext >&5
13327 eval "ac_cv_header_$ac_safe=no"
13331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13332 echo "$ac_t""yes" 1>&6
13333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13334 cat >> confdefs.h <<EOF
13335 #define $ac_tr_hdr 1
13339 echo "$ac_t""no" 1>&6
13344 if test $ol_link_termcap = no ; then
13345 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13346 echo "configure:13347: checking for tputs in -ltermcap" >&5
13347 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13348 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13349 echo $ac_n "(cached) $ac_c" 1>&6
13351 ac_save_LIBS="$LIBS"
13352 LIBS="-ltermcap $LIBS"
13353 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure"
13355 #include "confdefs.h"
13356 /* Override any gcc2 internal prototype to avoid an error. */
13357 /* We use char because int might match the return type of a gcc2
13358 builtin and then its argument prototype would still apply. */
13365 if { (eval echo configure:13366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13367 eval "ac_cv_lib_$ac_lib_var=yes"
13369 echo "configure: failed program was:" >&5
13370 cat conftest.$ac_ext >&5
13372 eval "ac_cv_lib_$ac_lib_var=no"
13375 LIBS="$ac_save_LIBS"
13378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13379 echo "$ac_t""yes" 1>&6
13382 echo "$ac_t""no" 1>&6
13386 if test $have_termcap = yes ; then
13387 cat >> confdefs.h <<\EOF
13388 #define HAVE_TERMCAP 1
13391 ol_link_termcap=yes
13392 TERMCAP_LIBS=-ltermcap
13396 if test $ol_link_termcap = no ; then
13397 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13398 echo "configure:13399: checking for initscr in -lncurses" >&5
13399 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13403 ac_save_LIBS="$LIBS"
13404 LIBS="-lncurses $LIBS"
13405 cat > conftest.$ac_ext <<EOF
13406 #line 13407 "configure"
13407 #include "confdefs.h"
13408 /* Override any gcc2 internal prototype to avoid an error. */
13409 /* We use char because int might match the return type of a gcc2
13410 builtin and then its argument prototype would still apply. */
13417 if { (eval echo configure:13418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13419 eval "ac_cv_lib_$ac_lib_var=yes"
13421 echo "configure: failed program was:" >&5
13422 cat conftest.$ac_ext >&5
13424 eval "ac_cv_lib_$ac_lib_var=no"
13427 LIBS="$ac_save_LIBS"
13430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13431 echo "$ac_t""yes" 1>&6
13434 echo "$ac_t""no" 1>&6
13438 if test $have_ncurses = yes ; then
13439 cat >> confdefs.h <<\EOF
13440 #define HAVE_NCURSES 1
13443 ol_link_termcap=yes
13444 TERMCAP_LIBS=-lncurses
13448 if test $ol_link_termcap = no ; then
13449 cat >> confdefs.h <<\EOF
13450 #define NO_TERMCAP 1
13458 if test $ol_with_cyrus_sasl != no ; then
13459 for ac_hdr in sasl.h
13461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13463 echo "configure:13464: checking for $ac_hdr" >&5
13464 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13465 echo $ac_n "(cached) $ac_c" 1>&6
13467 cat > conftest.$ac_ext <<EOF
13468 #line 13469 "configure"
13469 #include "confdefs.h"
13472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13473 { (eval echo configure:13474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13475 if test -z "$ac_err"; then
13477 eval "ac_cv_header_$ac_safe=yes"
13480 echo "configure: failed program was:" >&5
13481 cat conftest.$ac_ext >&5
13483 eval "ac_cv_header_$ac_safe=no"
13487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13488 echo "$ac_t""yes" 1>&6
13489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13490 cat >> confdefs.h <<EOF
13491 #define $ac_tr_hdr 1
13495 echo "$ac_t""no" 1>&6
13500 if test $ac_cv_header_sasl_h = yes ; then
13501 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13502 echo "configure:13503: checking for sasl_client_init in -lsasl" >&5
13503 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13504 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13505 echo $ac_n "(cached) $ac_c" 1>&6
13507 ac_save_LIBS="$LIBS"
13508 LIBS="-lsasl $LIBS"
13509 cat > conftest.$ac_ext <<EOF
13510 #line 13511 "configure"
13511 #include "confdefs.h"
13512 /* Override any gcc2 internal prototype to avoid an error. */
13513 /* We use char because int might match the return type of a gcc2
13514 builtin and then its argument prototype would still apply. */
13515 char sasl_client_init();
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13523 eval "ac_cv_lib_$ac_lib_var=yes"
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13528 eval "ac_cv_lib_$ac_lib_var=no"
13531 LIBS="$ac_save_LIBS"
13534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13535 echo "$ac_t""yes" 1>&6
13536 have_cyrus_sasl=yes
13538 echo "$ac_t""no" 1>&6
13543 if test $have_cyrus_sasl != no ; then
13545 cat >> confdefs.h <<\EOF
13546 #define HAVE_CYRUS_SASL 1
13553 if test $ol_link_sasl = no ; then
13554 if test $ol_with_cyrus_sasl != auto ; then
13555 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13557 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13558 echo "configure: warning: SASL authentication not supported!" 1>&2
13559 if test $ol_link_tls = no ; then
13560 echo "configure: warning: Strong authentication not supported!" 1>&2
13564 elif test $ol_enable_spasswd != no ; then
13565 ol_link_spasswd=yes
13569 echo "configure: warning: SASL authentication not supported!" 1>&2
13570 if test $ol_link_tls = no ; then
13571 echo "configure: warning: Strong authentication not supported!" 1>&2
13575 if test $cross_compiling != yes ; then
13577 if test -r /dev/urandom ; then
13578 dev="/dev/urandom";
13579 elif test -r /idev/urandom ; then
13580 dev="/idev/urandom";
13581 elif test -r /dev/srandom ; then
13582 dev="/dev/srandom";
13583 elif test -r /dev/random ; then
13585 elif test -r /idev/random ; then
13586 dev="/idev/random";
13589 if test $dev != no ; then
13590 cat >> confdefs.h <<EOF
13591 #define URANDOM_DEVICE "$dev"
13598 if test $ol_with_fetch != no ; then
13600 LIBS="-lfetch -lcom_err $LIBS"
13601 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13602 echo "configure:13603: checking fetch(3) library" >&5
13603 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13604 echo $ac_n "(cached) $ac_c" 1>&6
13607 cat > conftest.$ac_ext <<EOF
13608 #line 13609 "configure"
13609 #include "confdefs.h"
13611 #include <sys/param.h>
13615 struct url *u = fetchParseURL("file:///");
13618 if { (eval echo configure:13619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13620 ol_cv_lib_fetch=yes
13622 echo "configure: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13630 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13632 if test $ol_cv_lib_fetch != no ; then
13633 ol_link_fetch="-lfetch -lcom_err"
13634 cat >> confdefs.h <<\EOF
13635 #define HAVE_FETCH 1
13641 if test $ol_cv_lib_fetch != no ; then
13642 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13643 ol_link_fetch=freebsd
13645 elif test $ol_with_fetch != auto ; then
13646 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13650 ol_link_readline=no
13651 if test $ol_with_readline != no ; then
13652 for ac_hdr in readline/readline.h readline/history.h
13654 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13655 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13656 echo "configure:13657: checking for $ac_hdr" >&5
13657 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13658 echo $ac_n "(cached) $ac_c" 1>&6
13660 cat > conftest.$ac_ext <<EOF
13661 #line 13662 "configure"
13662 #include "confdefs.h"
13665 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13666 { (eval echo configure:13667: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13667 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13668 if test -z "$ac_err"; then
13670 eval "ac_cv_header_$ac_safe=yes"
13673 echo "configure: failed program was:" >&5
13674 cat conftest.$ac_ext >&5
13676 eval "ac_cv_header_$ac_safe=no"
13680 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13681 echo "$ac_t""yes" 1>&6
13682 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13683 cat >> confdefs.h <<EOF
13684 #define $ac_tr_hdr 1
13688 echo "$ac_t""no" 1>&6
13693 if test $ac_cv_header_readline_readline_h = yes ; then
13695 LIBS="$TERMCAP_LIBS $LIBS"
13696 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13697 echo "configure:13698: checking for readline in -lreadline" >&5
13698 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13700 echo $ac_n "(cached) $ac_c" 1>&6
13702 ac_save_LIBS="$LIBS"
13703 LIBS="-lreadline $LIBS"
13704 cat > conftest.$ac_ext <<EOF
13705 #line 13706 "configure"
13706 #include "confdefs.h"
13707 /* Override any gcc2 internal prototype to avoid an error. */
13708 /* We use char because int might match the return type of a gcc2
13709 builtin and then its argument prototype would still apply. */
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13718 eval "ac_cv_lib_$ac_lib_var=yes"
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13723 eval "ac_cv_lib_$ac_lib_var=no"
13726 LIBS="$ac_save_LIBS"
13729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13730 echo "$ac_t""yes" 1>&6
13733 echo "$ac_t""no" 1>&6
13739 if test $have_readline = yes ; then
13740 ol_with_readline=found
13741 ol_link_readline=yes
13743 READLINE_LIBS="-lreadline"
13748 if test $ol_link_readline = yes ; then
13749 cat >> confdefs.h <<\EOF
13750 #define HAVE_READLINE 1
13756 if test $ol_enable_crypt != no ; then
13757 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13758 echo "configure:13759: checking for crypt" >&5
13759 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13760 echo $ac_n "(cached) $ac_c" 1>&6
13762 cat > conftest.$ac_ext <<EOF
13763 #line 13764 "configure"
13764 #include "confdefs.h"
13765 /* System header to define __stub macros and hopefully few prototypes,
13766 which can conflict with char crypt(); below. */
13767 #include <assert.h>
13768 /* Override any gcc2 internal prototype to avoid an error. */
13769 /* We use char because int might match the return type of a gcc2
13770 builtin and then its argument prototype would still apply. */
13776 /* The GNU C library defines this for functions which it implements
13777 to always fail with ENOSYS. Some functions are actually named
13778 something starting with __ and the normal name is an alias. */
13779 #if defined (__stub_crypt) || defined (__stub___crypt)
13787 if { (eval echo configure:13788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13789 eval "ac_cv_func_crypt=yes"
13791 echo "configure: failed program was:" >&5
13792 cat conftest.$ac_ext >&5
13794 eval "ac_cv_func_crypt=no"
13799 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13800 echo "$ac_t""yes" 1>&6
13803 echo "$ac_t""no" 1>&6
13805 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13806 echo "configure:13807: checking for crypt in -lcrypt" >&5
13807 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13809 echo $ac_n "(cached) $ac_c" 1>&6
13811 ac_save_LIBS="$LIBS"
13812 LIBS="-lcrypt $LIBS"
13813 cat > conftest.$ac_ext <<EOF
13814 #line 13815 "configure"
13815 #include "confdefs.h"
13816 /* Override any gcc2 internal prototype to avoid an error. */
13817 /* We use char because int might match the return type of a gcc2
13818 builtin and then its argument prototype would still apply. */
13825 if { (eval echo configure:13826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13827 eval "ac_cv_lib_$ac_lib_var=yes"
13829 echo "configure: failed program was:" >&5
13830 cat conftest.$ac_ext >&5
13832 eval "ac_cv_lib_$ac_lib_var=no"
13835 LIBS="$ac_save_LIBS"
13838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13839 echo "$ac_t""yes" 1>&6
13840 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13843 echo "$ac_t""no" 1>&6
13850 if test $have_crypt = yes ; then
13851 cat >> confdefs.h <<\EOF
13852 #define HAVE_CRYPT 1
13856 echo "configure: warning: could not find crypt" 1>&2
13857 if test $ol_enable_crypt = yes ; then
13858 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13861 echo "configure: warning: disabling crypt support" 1>&2
13866 if test $ol_enable_proctitle != no ; then
13867 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13868 echo "configure:13869: checking for setproctitle" >&5
13869 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13870 echo $ac_n "(cached) $ac_c" 1>&6
13872 cat > conftest.$ac_ext <<EOF
13873 #line 13874 "configure"
13874 #include "confdefs.h"
13875 /* System header to define __stub macros and hopefully few prototypes,
13876 which can conflict with char setproctitle(); below. */
13877 #include <assert.h>
13878 /* Override any gcc2 internal prototype to avoid an error. */
13879 /* We use char because int might match the return type of a gcc2
13880 builtin and then its argument prototype would still apply. */
13881 char setproctitle();
13886 /* The GNU C library defines this for functions which it implements
13887 to always fail with ENOSYS. Some functions are actually named
13888 something starting with __ and the normal name is an alias. */
13889 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13897 if { (eval echo configure:13898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13899 eval "ac_cv_func_setproctitle=yes"
13901 echo "configure: failed program was:" >&5
13902 cat conftest.$ac_ext >&5
13904 eval "ac_cv_func_setproctitle=no"
13909 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13910 echo "$ac_t""yes" 1>&6
13911 have_setproctitle=yes
13913 echo "$ac_t""no" 1>&6
13915 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13916 echo "configure:13917: checking for setproctitle in -lutil" >&5
13917 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13918 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13919 echo $ac_n "(cached) $ac_c" 1>&6
13921 ac_save_LIBS="$LIBS"
13922 LIBS="-lutil $LIBS"
13923 cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13926 /* Override any gcc2 internal prototype to avoid an error. */
13927 /* We use char because int might match the return type of a gcc2
13928 builtin and then its argument prototype would still apply. */
13929 char setproctitle();
13935 if { (eval echo configure:13936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13937 eval "ac_cv_lib_$ac_lib_var=yes"
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13942 eval "ac_cv_lib_$ac_lib_var=no"
13945 LIBS="$ac_save_LIBS"
13948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13949 echo "$ac_t""yes" 1>&6
13950 have_setproctitle=yes
13951 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13953 echo "$ac_t""no" 1>&6
13954 have_setproctitle=no
13955 LIBOBJS="$LIBOBJS setproctitle.o"
13956 LIBSRCS="$LIBSRCS setproctitle.c"
13962 if test $have_setproctitle = yes ; then
13963 cat >> confdefs.h <<\EOF
13964 #define HAVE_SETPROCTITLE 1
13970 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13971 echo "configure:13972: checking for ANSI C header files" >&5
13972 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13973 echo $ac_n "(cached) $ac_c" 1>&6
13975 cat > conftest.$ac_ext <<EOF
13976 #line 13977 "configure"
13977 #include "confdefs.h"
13978 #include <stdlib.h>
13979 #include <stdarg.h>
13980 #include <string.h>
13983 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13984 { (eval echo configure:13985: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13985 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13986 if test -z "$ac_err"; then
13988 ac_cv_header_stdc=yes
13991 echo "configure: failed program was:" >&5
13992 cat conftest.$ac_ext >&5
13994 ac_cv_header_stdc=no
13998 if test $ac_cv_header_stdc = yes; then
13999 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14000 cat > conftest.$ac_ext <<EOF
14001 #line 14002 "configure"
14002 #include "confdefs.h"
14003 #include <string.h>
14005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14006 egrep "memchr" >/dev/null 2>&1; then
14010 ac_cv_header_stdc=no
14016 if test $ac_cv_header_stdc = yes; then
14017 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14018 cat > conftest.$ac_ext <<EOF
14019 #line 14020 "configure"
14020 #include "confdefs.h"
14021 #include <stdlib.h>
14023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14024 egrep "free" >/dev/null 2>&1; then
14028 ac_cv_header_stdc=no
14034 if test $ac_cv_header_stdc = yes; then
14035 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14036 if test "$cross_compiling" = yes; then
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14043 #if ((' ' & 0x0FF) == 0x020)
14044 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14045 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14047 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14048 || ('j' <= (c) && (c) <= 'r') \
14049 || ('s' <= (c) && (c) <= 'z'))
14050 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14052 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14053 int main () { int i; for (i = 0; i < 256; i++)
14054 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14058 if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14062 echo "configure: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14065 ac_cv_header_stdc=no
14073 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14074 if test $ac_cv_header_stdc = yes; then
14075 cat >> confdefs.h <<\EOF
14076 #define STDC_HEADERS 1
14081 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14082 echo "configure:14083: checking for mode_t" >&5
14083 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14084 echo $ac_n "(cached) $ac_c" 1>&6
14086 cat > conftest.$ac_ext <<EOF
14087 #line 14088 "configure"
14088 #include "confdefs.h"
14089 #include <sys/types.h>
14091 #include <stdlib.h>
14092 #include <stddef.h>
14096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14097 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14099 eval "ac_cv_type_mode_t=yes"
14102 eval "ac_cv_type_mode_t=no"
14107 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14108 echo "$ac_t""yes" 1>&6
14110 echo "$ac_t""no" 1>&6
14111 cat >> confdefs.h <<EOF
14117 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14118 echo "configure:14119: checking for off_t" >&5
14119 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14120 echo $ac_n "(cached) $ac_c" 1>&6
14122 cat > conftest.$ac_ext <<EOF
14123 #line 14124 "configure"
14124 #include "confdefs.h"
14125 #include <sys/types.h>
14127 #include <stdlib.h>
14128 #include <stddef.h>
14132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14133 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14135 eval "ac_cv_type_off_t=yes"
14138 eval "ac_cv_type_off_t=no"
14143 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14144 echo "$ac_t""yes" 1>&6
14146 echo "$ac_t""no" 1>&6
14147 cat >> confdefs.h <<EOF
14153 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14154 echo "configure:14155: checking for pid_t" >&5
14155 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14156 echo $ac_n "(cached) $ac_c" 1>&6
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 #include <sys/types.h>
14163 #include <stdlib.h>
14164 #include <stddef.h>
14168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14169 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14171 eval "ac_cv_type_pid_t=yes"
14174 eval "ac_cv_type_pid_t=no"
14179 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14182 echo "$ac_t""no" 1>&6
14183 cat >> confdefs.h <<EOF
14189 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14190 echo "configure:14191: checking for ptrdiff_t" >&5
14191 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14192 echo $ac_n "(cached) $ac_c" 1>&6
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14197 #include <stddef.h>
14202 if { (eval echo configure:14203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14204 am_cv_type_ptrdiff_t=yes
14206 echo "configure: failed program was:" >&5
14207 cat conftest.$ac_ext >&5
14209 am_cv_type_ptrdiff_t=no
14214 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14215 if test $am_cv_type_ptrdiff_t = yes; then
14216 cat >> confdefs.h <<\EOF
14217 #define HAVE_PTRDIFF_T 1
14222 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14223 echo "configure:14224: checking return type of signal handlers" >&5
14224 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14225 echo $ac_n "(cached) $ac_c" 1>&6
14227 cat > conftest.$ac_ext <<EOF
14228 #line 14229 "configure"
14229 #include "confdefs.h"
14230 #include <sys/types.h>
14231 #include <signal.h>
14236 extern "C" void (*signal (int, void (*)(int)))(int);
14238 void (*signal ()) ();
14245 if { (eval echo configure:14246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14247 ac_cv_type_signal=void
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14252 ac_cv_type_signal=int
14257 echo "$ac_t""$ac_cv_type_signal" 1>&6
14258 cat >> confdefs.h <<EOF
14259 #define RETSIGTYPE $ac_cv_type_signal
14263 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14264 echo "configure:14265: checking for size_t" >&5
14265 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14266 echo $ac_n "(cached) $ac_c" 1>&6
14268 cat > conftest.$ac_ext <<EOF
14269 #line 14270 "configure"
14270 #include "confdefs.h"
14271 #include <sys/types.h>
14273 #include <stdlib.h>
14274 #include <stddef.h>
14278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14279 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14281 eval "ac_cv_type_size_t=yes"
14284 eval "ac_cv_type_size_t=no"
14289 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14290 echo "$ac_t""yes" 1>&6
14292 echo "$ac_t""no" 1>&6
14293 cat >> confdefs.h <<EOF
14294 #define size_t unsigned
14300 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14301 echo "configure:14302: checking for ssize_t" >&5
14302 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14303 echo $ac_n "(cached) $ac_c" 1>&6
14305 cat > conftest.$ac_ext <<EOF
14306 #line 14307 "configure"
14307 #include "confdefs.h"
14308 #include <sys/types.h>
14310 #include <stdlib.h>
14311 #include <stddef.h>
14315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14316 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14318 eval "ac_cv_type_ssize_t=yes"
14321 eval "ac_cv_type_ssize_t=no"
14326 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14327 echo "$ac_t""yes" 1>&6
14329 echo "$ac_t""no" 1>&6
14330 cat >> confdefs.h <<EOF
14331 #define ssize_t signed int
14336 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14337 echo "configure:14338: checking for caddr_t" >&5
14338 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14339 echo $ac_n "(cached) $ac_c" 1>&6
14341 cat > conftest.$ac_ext <<EOF
14342 #line 14343 "configure"
14343 #include "confdefs.h"
14344 #include <sys/types.h>
14346 #include <stdlib.h>
14347 #include <stddef.h>
14351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14352 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14354 eval "ac_cv_type_caddr_t=yes"
14357 eval "ac_cv_type_caddr_t=no"
14362 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14363 echo "$ac_t""yes" 1>&6
14365 echo "$ac_t""no" 1>&6
14366 cat >> confdefs.h <<EOF
14367 #define caddr_t char *
14373 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14374 echo "configure:14375: checking for socklen_t" >&5
14375 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14376 echo $ac_n "(cached) $ac_c" 1>&6
14378 cat > conftest.$ac_ext <<EOF
14379 #line 14380 "configure"
14380 #include "confdefs.h"
14382 #ifdef HAVE_SYS_TYPES_H
14383 #include <sys/types.h>
14385 #ifdef HAVE_SYS_SOCKET_H
14386 #include <sys/socket.h>
14393 if { (eval echo configure:14394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14395 ol_cv_type_socklen_t=yes
14397 echo "configure: failed program was:" >&5
14398 cat conftest.$ac_ext >&5
14400 ol_cv_type_socklen_t=no
14405 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14406 if test $ol_cv_type_socklen_t = no; then
14407 cat >> confdefs.h <<\EOF
14408 #define socklen_t int
14413 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14414 echo "configure:14415: checking for member st_blksize in aggregate type struct stat" >&5
14415 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14418 cat > conftest.$ac_ext <<EOF
14419 #line 14420 "configure"
14420 #include "confdefs.h"
14421 #include <sys/types.h>
14422 #include <sys/stat.h>
14424 struct stat foo; foo.st_blksize;
14427 if { (eval echo configure:14428: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14429 ac_cv_c_struct_member_st_blksize=yes
14431 echo "configure: failed program was:" >&5
14432 cat conftest.$ac_ext >&5
14434 ac_cv_c_struct_member_st_blksize=no
14439 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14440 st_blksize="$ac_cv_c_struct_member_st_blksize"
14441 if test $ac_cv_c_struct_member_st_blksize = yes; then
14442 cat >> confdefs.h <<\EOF
14443 #define HAVE_ST_BLKSIZE 1
14448 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14449 echo "configure:14450: checking whether time.h and sys/time.h may both be included" >&5
14450 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14451 echo $ac_n "(cached) $ac_c" 1>&6
14453 cat > conftest.$ac_ext <<EOF
14454 #line 14455 "configure"
14455 #include "confdefs.h"
14456 #include <sys/types.h>
14457 #include <sys/time.h>
14463 if { (eval echo configure:14464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14465 ac_cv_header_time=yes
14467 echo "configure: failed program was:" >&5
14468 cat conftest.$ac_ext >&5
14470 ac_cv_header_time=no
14475 echo "$ac_t""$ac_cv_header_time" 1>&6
14476 if test $ac_cv_header_time = yes; then
14477 cat >> confdefs.h <<\EOF
14478 #define TIME_WITH_SYS_TIME 1
14483 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14484 echo "configure:14485: checking whether struct tm is in sys/time.h or time.h" >&5
14485 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14486 echo $ac_n "(cached) $ac_c" 1>&6
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14491 #include <sys/types.h>
14494 struct tm *tp; tp->tm_sec;
14497 if { (eval echo configure:14498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14499 ac_cv_struct_tm=time.h
14501 echo "configure: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14504 ac_cv_struct_tm=sys/time.h
14509 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14510 if test $ac_cv_struct_tm = sys/time.h; then
14511 cat >> confdefs.h <<\EOF
14512 #define TM_IN_SYS_TIME 1
14517 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14518 echo "configure:14519: checking for uid_t in sys/types.h" >&5
14519 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14520 echo $ac_n "(cached) $ac_c" 1>&6
14522 cat > conftest.$ac_ext <<EOF
14523 #line 14524 "configure"
14524 #include "confdefs.h"
14525 #include <sys/types.h>
14527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14528 egrep "uid_t" >/dev/null 2>&1; then
14530 ac_cv_type_uid_t=yes
14533 ac_cv_type_uid_t=no
14539 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14540 if test $ac_cv_type_uid_t = no; then
14541 cat >> confdefs.h <<\EOF
14545 cat >> confdefs.h <<\EOF
14551 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14552 echo "configure:14553: checking for sig_atomic_t" >&5
14553 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
14556 cat > conftest.$ac_ext <<EOF
14557 #line 14558 "configure"
14558 #include "confdefs.h"
14559 #include <signal.h>
14561 sig_atomic_t atomic;
14564 if { (eval echo configure:14565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14566 ol_cv_type_sig_atomic_t=yes
14568 echo "configure: failed program was:" >&5
14569 cat conftest.$ac_ext >&5
14571 ol_cv_type_sig_atomic_t=no
14576 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14577 if test $ol_cv_type_sig_atomic_t = no; then
14578 cat >> confdefs.h <<\EOF
14579 #define sig_atomic_t int
14586 # test for pw_gecos in struct passwd
14587 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14588 echo "configure:14589: checking struct passwd for pw_gecos" >&5
14589 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14590 echo $ac_n "(cached) $ac_c" 1>&6
14593 cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14600 pwd.pw_gecos = pwd.pw_name;
14604 if { (eval echo configure:14605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14606 ol_cv_struct_passwd_pw_gecos=yes
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14611 ol_cv_struct_passwd_pw_gecos=no
14616 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14617 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14618 cat >> confdefs.h <<\EOF
14619 #define HAVE_PW_GECOS 1
14624 # test for pw_passwd in struct passwd
14625 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14626 echo "configure:14627: checking struct passwd for pw_passwd" >&5
14627 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14628 echo $ac_n "(cached) $ac_c" 1>&6
14631 cat > conftest.$ac_ext <<EOF
14632 #line 14633 "configure"
14633 #include "confdefs.h"
14638 pwd.pw_passwd = pwd.pw_name;
14642 if { (eval echo configure:14643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14644 ol_cv_struct_passwd_pw_passwd=yes
14646 echo "configure: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14649 ol_cv_struct_passwd_pw_passwd=no
14654 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14655 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14656 cat >> confdefs.h <<\EOF
14657 #define HAVE_PW_PASSWD 1
14663 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14664 echo "configure:14665: checking if toupper() requires islower()" >&5
14665 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14666 echo $ac_n "(cached) $ac_c" 1>&6
14669 if test "$cross_compiling" = yes; then
14670 ol_cv_c_upper_lower=safe
14672 cat > conftest.$ac_ext <<EOF
14673 #line 14674 "configure"
14674 #include "confdefs.h"
14679 if ('C' == toupper('C'))
14685 if { (eval echo configure:14686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14687 ol_cv_c_upper_lower=no
14689 echo "configure: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14692 ol_cv_c_upper_lower=yes
14699 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14700 if test $ol_cv_c_upper_lower != no ; then
14701 cat >> confdefs.h <<\EOF
14702 #define C_UPPER_LOWER 1
14707 echo $ac_n "checking for working const""... $ac_c" 1>&6
14708 echo "configure:14709: checking for working const" >&5
14709 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14710 echo $ac_n "(cached) $ac_c" 1>&6
14712 cat > conftest.$ac_ext <<EOF
14713 #line 14714 "configure"
14714 #include "confdefs.h"
14718 /* Ultrix mips cc rejects this. */
14719 typedef int charset[2]; const charset x;
14720 /* SunOS 4.1.1 cc rejects this. */
14721 char const *const *ccp;
14723 /* NEC SVR4.0.2 mips cc rejects this. */
14724 struct point {int x, y;};
14725 static struct point const zero = {0,0};
14726 /* AIX XL C 1.02.0.0 rejects this.
14727 It does not let you subtract one const X* pointer from another in an arm
14728 of an if-expression whose if-part is not a constant expression */
14729 const char *g = "string";
14730 ccp = &g + (g ? g-g : 0);
14731 /* HPUX 7.0 cc rejects these. */
14734 ccp = (char const *const *) p;
14735 { /* SCO 3.2v4 cc rejects this. */
14737 char const *s = 0 ? (char *) 0 : (char const *) 0;
14741 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14742 int x[] = {25, 17};
14743 const int *foo = &x[0];
14746 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14747 typedef const int *iptr;
14751 { /* AIX XL C 1.02.0.0 rejects this saying
14752 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14753 struct s { int j; const int *ap[3]; };
14754 struct s *b; b->j = 5;
14756 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14757 const int foo = 10;
14762 if { (eval echo configure:14763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14766 echo "configure: failed program was:" >&5
14767 cat conftest.$ac_ext >&5
14774 echo "$ac_t""$ac_cv_c_const" 1>&6
14775 if test $ac_cv_c_const = no; then
14776 cat >> confdefs.h <<\EOF
14782 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14783 echo "configure:14784: checking if compiler understands volatile" >&5
14784 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14785 echo $ac_n "(cached) $ac_c" 1>&6
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14792 volatile int a; int * volatile b = x ? &y : &z;
14793 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14797 if { (eval echo configure:14798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14799 ol_cv_c_volatile=yes
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14804 ol_cv_c_volatile=no
14809 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14810 if test $ol_cv_c_volatile = yes; then
14813 cat >> confdefs.h <<\EOF
14820 if test $cross_compiling = yes ; then
14821 cat >> confdefs.h <<\EOF
14822 #define CROSS_COMPILING 1
14826 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14827 echo "configure:14828: checking whether byte ordering is bigendian" >&5
14828 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14829 echo $ac_n "(cached) $ac_c" 1>&6
14831 ac_cv_c_bigendian=unknown
14832 # See if sys/param.h defines the BYTE_ORDER macro.
14833 cat > conftest.$ac_ext <<EOF
14834 #line 14835 "configure"
14835 #include "confdefs.h"
14836 #include <sys/types.h>
14837 #include <sys/param.h>
14840 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14841 bogus endian macros
14845 if { (eval echo configure:14846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14847 # It does; now see whether it defined to BIG_ENDIAN or not.
14848 cat > conftest.$ac_ext <<EOF
14849 #line 14850 "configure"
14850 #include "confdefs.h"
14851 #include <sys/types.h>
14852 #include <sys/param.h>
14855 #if BYTE_ORDER != BIG_ENDIAN
14860 if { (eval echo configure:14861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14862 ac_cv_c_bigendian=yes
14864 echo "configure: failed program was:" >&5
14865 cat conftest.$ac_ext >&5
14867 ac_cv_c_bigendian=no
14871 echo "configure: failed program was:" >&5
14872 cat conftest.$ac_ext >&5
14875 if test $ac_cv_c_bigendian = unknown; then
14876 if test "$cross_compiling" = yes; then
14877 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14883 /* Are we little or big endian? From Harbison&Steele. */
14887 char c[sizeof (long)];
14890 exit (u.c[sizeof (long) - 1] == 1);
14893 if { (eval echo configure:14894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14895 ac_cv_c_bigendian=no
14897 echo "configure: failed program was:" >&5
14898 cat conftest.$ac_ext >&5
14900 ac_cv_c_bigendian=yes
14908 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14909 if test $ac_cv_c_bigendian = yes; then
14910 cat >> confdefs.h <<\EOF
14911 #define WORDS_BIGENDIAN 1
14918 echo $ac_n "checking size of short""... $ac_c" 1>&6
14919 echo "configure:14920: checking size of short" >&5
14920 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14921 echo $ac_n "(cached) $ac_c" 1>&6
14923 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14924 cat > conftest.$ac_ext <<EOF
14925 #line 14926 "configure"
14926 #include "confdefs.h"
14927 #include "confdefs.h"
14928 #include <sys/types.h>
14932 switch (0) case 0: case (sizeof (short) == $ac_size):;
14935 if { (eval echo configure:14936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14937 ac_cv_sizeof_short=$ac_size
14939 echo "configure: failed program was:" >&5
14940 cat conftest.$ac_ext >&5
14943 if test x$ac_cv_sizeof_short != x ; then break; fi
14948 if test x$ac_cv_sizeof_short = x ; then
14949 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14951 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14952 cat >> confdefs.h <<EOF
14953 #define SIZEOF_SHORT $ac_cv_sizeof_short
14957 echo $ac_n "checking size of int""... $ac_c" 1>&6
14958 echo "configure:14959: checking size of int" >&5
14959 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14960 echo $ac_n "(cached) $ac_c" 1>&6
14962 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14963 cat > conftest.$ac_ext <<EOF
14964 #line 14965 "configure"
14965 #include "confdefs.h"
14966 #include "confdefs.h"
14967 #include <sys/types.h>
14971 switch (0) case 0: case (sizeof (int) == $ac_size):;
14974 if { (eval echo configure:14975: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14976 ac_cv_sizeof_int=$ac_size
14978 echo "configure: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14982 if test x$ac_cv_sizeof_int != x ; then break; fi
14987 if test x$ac_cv_sizeof_int = x ; then
14988 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14990 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14991 cat >> confdefs.h <<EOF
14992 #define SIZEOF_INT $ac_cv_sizeof_int
14996 echo $ac_n "checking size of long""... $ac_c" 1>&6
14997 echo "configure:14998: checking size of long" >&5
14998 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14999 echo $ac_n "(cached) $ac_c" 1>&6
15001 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15002 cat > conftest.$ac_ext <<EOF
15003 #line 15004 "configure"
15004 #include "confdefs.h"
15005 #include "confdefs.h"
15006 #include <sys/types.h>
15010 switch (0) case 0: case (sizeof (long) == $ac_size):;
15013 if { (eval echo configure:15014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15015 ac_cv_sizeof_long=$ac_size
15017 echo "configure: failed program was:" >&5
15018 cat conftest.$ac_ext >&5
15021 if test x$ac_cv_sizeof_long != x ; then break; fi
15026 if test x$ac_cv_sizeof_long = x ; then
15027 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15029 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15030 cat >> confdefs.h <<EOF
15031 #define SIZEOF_LONG $ac_cv_sizeof_long
15036 if test "$ac_cv_sizeof_int" -lt 4 ; then
15037 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15039 cat >> confdefs.h <<\EOF
15040 #define LBER_INT_T long
15044 cat >> confdefs.h <<\EOF
15045 #define LBER_INT_T int
15050 cat >> confdefs.h <<\EOF
15051 #define LBER_LEN_T long
15054 cat >> confdefs.h <<\EOF
15055 #define LBER_SOCKET_T int
15058 cat >> confdefs.h <<\EOF
15059 #define LBER_TAG_T long
15063 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15064 echo "configure:15065: checking for 8-bit clean memcmp" >&5
15065 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15066 echo $ac_n "(cached) $ac_c" 1>&6
15068 if test "$cross_compiling" = yes; then
15069 ac_cv_func_memcmp_clean=no
15071 cat > conftest.$ac_ext <<EOF
15072 #line 15073 "configure"
15073 #include "confdefs.h"
15077 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15078 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15084 ac_cv_func_memcmp_clean=yes
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15089 ac_cv_func_memcmp_clean=no
15096 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15097 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15099 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15100 echo "configure:15101: checking for strftime" >&5
15101 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15102 echo $ac_n "(cached) $ac_c" 1>&6
15104 cat > conftest.$ac_ext <<EOF
15105 #line 15106 "configure"
15106 #include "confdefs.h"
15107 /* System header to define __stub macros and hopefully few prototypes,
15108 which can conflict with char strftime(); below. */
15109 #include <assert.h>
15110 /* Override any gcc2 internal prototype to avoid an error. */
15111 /* We use char because int might match the return type of a gcc2
15112 builtin and then its argument prototype would still apply. */
15118 /* The GNU C library defines this for functions which it implements
15119 to always fail with ENOSYS. Some functions are actually named
15120 something starting with __ and the normal name is an alias. */
15121 #if defined (__stub_strftime) || defined (__stub___strftime)
15129 if { (eval echo configure:15130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15131 eval "ac_cv_func_strftime=yes"
15133 echo "configure: failed program was:" >&5
15134 cat conftest.$ac_ext >&5
15136 eval "ac_cv_func_strftime=no"
15141 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15142 echo "$ac_t""yes" 1>&6
15143 cat >> confdefs.h <<\EOF
15144 #define HAVE_STRFTIME 1
15148 echo "$ac_t""no" 1>&6
15149 # strftime is in -lintl on SCO UNIX.
15150 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15151 echo "configure:15152: checking for strftime in -lintl" >&5
15152 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15156 ac_save_LIBS="$LIBS"
15157 LIBS="-lintl $LIBS"
15158 cat > conftest.$ac_ext <<EOF
15159 #line 15160 "configure"
15160 #include "confdefs.h"
15161 /* Override any gcc2 internal prototype to avoid an error. */
15162 /* We use char because int might match the return type of a gcc2
15163 builtin and then its argument prototype would still apply. */
15170 if { (eval echo configure:15171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15172 eval "ac_cv_lib_$ac_lib_var=yes"
15174 echo "configure: failed program was:" >&5
15175 cat conftest.$ac_ext >&5
15177 eval "ac_cv_lib_$ac_lib_var=no"
15180 LIBS="$ac_save_LIBS"
15183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15184 echo "$ac_t""yes" 1>&6
15185 cat >> confdefs.h <<\EOF
15186 #define HAVE_STRFTIME 1
15189 LIBS="-lintl $LIBS"
15191 echo "$ac_t""no" 1>&6
15197 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15198 echo "configure:15199: checking for inet_aton()" >&5
15199 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15202 cat > conftest.$ac_ext <<EOF
15203 #line 15204 "configure"
15204 #include "confdefs.h"
15206 #ifdef HAVE_SYS_TYPES_H
15207 # include <sys/types.h>
15209 #ifdef HAVE_SYS_SOCKET_H
15210 # include <sys/socket.h>
15211 # ifdef HAVE_SYS_SELECT_H
15212 # include <sys/select.h>
15214 # include <netinet/in.h>
15215 # ifdef HAVE_ARPA_INET_H
15216 # include <arpa/inet.h>
15222 int rc = inet_aton( "255.255.255.255", &in );
15225 if { (eval echo configure:15226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15227 ol_cv_func_inet_aton=yes
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15232 ol_cv_func_inet_aton=no
15237 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15238 if test $ol_cv_func_inet_aton != no; then
15239 cat >> confdefs.h <<\EOF
15240 #define HAVE_INET_ATON 1
15246 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15247 echo "configure:15248: checking for _spawnlp" >&5
15248 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15249 echo $ac_n "(cached) $ac_c" 1>&6
15251 cat > conftest.$ac_ext <<EOF
15252 #line 15253 "configure"
15253 #include "confdefs.h"
15254 /* System header to define __stub macros and hopefully few prototypes,
15255 which can conflict with char _spawnlp(); below. */
15256 #include <assert.h>
15257 /* Override any gcc2 internal prototype to avoid an error. */
15258 /* We use char because int might match the return type of a gcc2
15259 builtin and then its argument prototype would still apply. */
15265 /* The GNU C library defines this for functions which it implements
15266 to always fail with ENOSYS. Some functions are actually named
15267 something starting with __ and the normal name is an alias. */
15268 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15276 if { (eval echo configure:15277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15278 eval "ac_cv_func__spawnlp=yes"
15280 echo "configure: failed program was:" >&5
15281 cat conftest.$ac_ext >&5
15283 eval "ac_cv_func__spawnlp=no"
15288 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15289 echo "$ac_t""yes" 1>&6
15290 cat >> confdefs.h <<\EOF
15291 #define HAVE_SPAWNLP 1
15295 echo "$ac_t""no" 1>&6
15299 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15300 echo "configure:15301: checking for _snprintf" >&5
15301 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15302 echo $ac_n "(cached) $ac_c" 1>&6
15304 cat > conftest.$ac_ext <<EOF
15305 #line 15306 "configure"
15306 #include "confdefs.h"
15307 /* System header to define __stub macros and hopefully few prototypes,
15308 which can conflict with char _snprintf(); below. */
15309 #include <assert.h>
15310 /* Override any gcc2 internal prototype to avoid an error. */
15311 /* We use char because int might match the return type of a gcc2
15312 builtin and then its argument prototype would still apply. */
15318 /* The GNU C library defines this for functions which it implements
15319 to always fail with ENOSYS. Some functions are actually named
15320 something starting with __ and the normal name is an alias. */
15321 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15329 if { (eval echo configure:15330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15331 eval "ac_cv_func__snprintf=yes"
15333 echo "configure: failed program was:" >&5
15334 cat conftest.$ac_ext >&5
15336 eval "ac_cv_func__snprintf=no"
15341 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15342 echo "$ac_t""yes" 1>&6
15343 ac_cv_func_snprintf=yes
15344 cat >> confdefs.h <<\EOF
15345 #define snprintf _snprintf
15350 echo "$ac_t""no" 1>&6
15354 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15355 echo "configure:15356: checking for _vsnprintf" >&5
15356 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
15359 cat > conftest.$ac_ext <<EOF
15360 #line 15361 "configure"
15361 #include "confdefs.h"
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char _vsnprintf(); below. */
15364 #include <assert.h>
15365 /* Override any gcc2 internal prototype to avoid an error. */
15366 /* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15373 /* The GNU C library defines this for functions which it implements
15374 to always fail with ENOSYS. Some functions are actually named
15375 something starting with __ and the normal name is an alias. */
15376 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15384 if { (eval echo configure:15385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15386 eval "ac_cv_func__vsnprintf=yes"
15388 echo "configure: failed program was:" >&5
15389 cat conftest.$ac_ext >&5
15391 eval "ac_cv_func__vsnprintf=no"
15396 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15397 echo "$ac_t""yes" 1>&6
15398 ac_cv_func_vsnprintf=yes
15399 cat >> confdefs.h <<\EOF
15400 #define vsnprintf _vsnprintf
15405 echo "$ac_t""no" 1>&6
15409 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15410 echo "configure:15411: checking for vprintf" >&5
15411 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15412 echo $ac_n "(cached) $ac_c" 1>&6
15414 cat > conftest.$ac_ext <<EOF
15415 #line 15416 "configure"
15416 #include "confdefs.h"
15417 /* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char vprintf(); below. */
15419 #include <assert.h>
15420 /* Override any gcc2 internal prototype to avoid an error. */
15421 /* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15428 /* The GNU C library defines this for functions which it implements
15429 to always fail with ENOSYS. Some functions are actually named
15430 something starting with __ and the normal name is an alias. */
15431 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15439 if { (eval echo configure:15440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15441 eval "ac_cv_func_vprintf=yes"
15443 echo "configure: failed program was:" >&5
15444 cat conftest.$ac_ext >&5
15446 eval "ac_cv_func_vprintf=no"
15451 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15452 echo "$ac_t""yes" 1>&6
15453 cat >> confdefs.h <<\EOF
15454 #define HAVE_VPRINTF 1
15458 echo "$ac_t""no" 1>&6
15461 if test "$ac_cv_func_vprintf" != yes; then
15462 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15463 echo "configure:15464: checking for _doprnt" >&5
15464 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15467 cat > conftest.$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15470 /* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char _doprnt(); below. */
15472 #include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error. */
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15481 /* The GNU C library defines this for functions which it implements
15482 to always fail with ENOSYS. Some functions are actually named
15483 something starting with __ and the normal name is an alias. */
15484 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15492 if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15494 eval "ac_cv_func__doprnt=yes"
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15499 eval "ac_cv_func__doprnt=no"
15504 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15505 echo "$ac_t""yes" 1>&6
15506 cat >> confdefs.h <<\EOF
15507 #define HAVE_DOPRNT 1
15511 echo "$ac_t""no" 1>&6
15517 if test $ac_cv_func_vprintf = yes ; then
15518 for ac_func in vsnprintf vsprintf
15520 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15521 echo "configure:15522: checking for $ac_func" >&5
15522 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15523 echo $ac_n "(cached) $ac_c" 1>&6
15525 cat > conftest.$ac_ext <<EOF
15526 #line 15527 "configure"
15527 #include "confdefs.h"
15528 /* System header to define __stub macros and hopefully few prototypes,
15529 which can conflict with char $ac_func(); below. */
15530 #include <assert.h>
15531 /* Override any gcc2 internal prototype to avoid an error. */
15532 /* We use char because int might match the return type of a gcc2
15533 builtin and then its argument prototype would still apply. */
15539 /* The GNU C library defines this for functions which it implements
15540 to always fail with ENOSYS. Some functions are actually named
15541 something starting with __ and the normal name is an alias. */
15542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15550 if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15552 eval "ac_cv_func_$ac_func=yes"
15554 echo "configure: failed program was:" >&5
15555 cat conftest.$ac_ext >&5
15557 eval "ac_cv_func_$ac_func=no"
15562 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15563 echo "$ac_t""yes" 1>&6
15564 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15565 cat >> confdefs.h <<EOF
15566 #define $ac_tr_func 1
15570 echo "$ac_t""no" 1>&6
15629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15630 echo "configure:15631: checking for $ac_func" >&5
15631 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15632 echo $ac_n "(cached) $ac_c" 1>&6
15634 cat > conftest.$ac_ext <<EOF
15635 #line 15636 "configure"
15636 #include "confdefs.h"
15637 /* System header to define __stub macros and hopefully few prototypes,
15638 which can conflict with char $ac_func(); below. */
15639 #include <assert.h>
15640 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15648 /* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
15651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15659 if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15661 eval "ac_cv_func_$ac_func=yes"
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15666 eval "ac_cv_func_$ac_func=no"
15671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15672 echo "$ac_t""yes" 1>&6
15673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15674 cat >> confdefs.h <<EOF
15675 #define $ac_tr_func 1
15679 echo "$ac_t""no" 1>&6
15684 for ac_func in getopt tempnam
15686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15687 echo "configure:15688: checking for $ac_func" >&5
15688 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15689 echo $ac_n "(cached) $ac_c" 1>&6
15691 cat > conftest.$ac_ext <<EOF
15692 #line 15693 "configure"
15693 #include "confdefs.h"
15694 /* System header to define __stub macros and hopefully few prototypes,
15695 which can conflict with char $ac_func(); below. */
15696 #include <assert.h>
15697 /* Override any gcc2 internal prototype to avoid an error. */
15698 /* We use char because int might match the return type of a gcc2
15699 builtin and then its argument prototype would still apply. */
15705 /* The GNU C library defines this for functions which it implements
15706 to always fail with ENOSYS. Some functions are actually named
15707 something starting with __ and the normal name is an alias. */
15708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15716 if { (eval echo configure:15717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15718 eval "ac_cv_func_$ac_func=yes"
15720 echo "configure: failed program was:" >&5
15721 cat conftest.$ac_ext >&5
15723 eval "ac_cv_func_$ac_func=no"
15728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15729 echo "$ac_t""yes" 1>&6
15730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15731 cat >> confdefs.h <<EOF
15732 #define $ac_tr_func 1
15736 echo "$ac_t""no" 1>&6
15737 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15743 if test "$ac_cv_func_getopt" != yes; then
15744 LIBSRCS="$LIBSRCS getopt.c"
15747 if test "$ac_cv_func_tempnam" != yes; then
15748 LIBSRCS="$LIBSRCS tempnam.c"
15751 # Check Configuration
15752 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15753 echo "configure:15754: checking declaration of sys_errlist" >&5
15754 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
15758 cat > conftest.$ac_ext <<EOF
15759 #line 15760 "configure"
15760 #include "confdefs.h"
15763 #include <sys/types.h>
15766 #include <stdlib.h>
15769 char *c = (char *) *sys_errlist
15772 if { (eval echo configure:15773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15774 ol_cv_dcl_sys_errlist=yes
15775 ol_cv_have_sys_errlist=yes
15777 echo "configure: failed program was:" >&5
15778 cat conftest.$ac_ext >&5
15780 ol_cv_dcl_sys_errlist=no
15785 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15787 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15788 if test $ol_cv_dcl_sys_errlist = no ; then
15789 cat >> confdefs.h <<\EOF
15790 #define DECL_SYS_ERRLIST 1
15794 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15795 echo "configure:15796: checking existence of sys_errlist" >&5
15796 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15797 echo $ac_n "(cached) $ac_c" 1>&6
15800 cat > conftest.$ac_ext <<EOF
15801 #line 15802 "configure"
15802 #include "confdefs.h"
15805 char *c = (char *) *sys_errlist
15808 if { (eval echo configure:15809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15810 ol_cv_have_sys_errlist=yes
15812 echo "configure: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15815 ol_cv_have_sys_errlist=no
15820 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15822 if test $ol_cv_have_sys_errlist = yes ; then
15823 cat >> confdefs.h <<\EOF
15824 #define HAVE_SYS_ERRLIST 1
15831 if test "$ol_enable_debug" != no ; then
15832 cat >> confdefs.h <<\EOF
15833 #define LDAP_DEBUG 1
15837 if test "$ol_enable_syslog" = yes ; then
15838 cat >> confdefs.h <<\EOF
15839 #define LDAP_SYSLOG 1
15843 if test "$ol_enable_cache" = no ; then
15844 cat >> confdefs.h <<\EOF
15845 #define LDAP_NOCACHE 1
15849 if test "$ol_link_kbind" != no ; then
15850 cat >> confdefs.h <<\EOF
15851 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15855 if test "$ol_enable_proctitle" != no ; then
15856 cat >> confdefs.h <<\EOF
15857 #define LDAP_PROCTITLE 1
15861 if test "$ol_enable_referrals" != no ; then
15862 cat >> confdefs.h <<\EOF
15863 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15867 if test "$ol_enable_local" != no; then
15868 cat >> confdefs.h <<\EOF
15869 #define LDAP_PF_LOCAL 1
15873 if test "$ol_link_ipv6" != no; then
15874 cat >> confdefs.h <<\EOF
15875 #define LDAP_PF_INET6 1
15879 if test "$ol_enable_cleartext" != no ; then
15880 cat >> confdefs.h <<\EOF
15881 #define SLAPD_CLEARTEXT 1
15885 if test "$ol_enable_crypt" != no ; then
15886 cat >> confdefs.h <<\EOF
15887 #define SLAPD_CRYPT 1
15891 if test "$ol_link_kpasswd" != no ; then
15892 cat >> confdefs.h <<\EOF
15893 #define SLAPD_KPASSWD 1
15897 if test "$ol_link_spasswd" != no ; then
15898 cat >> confdefs.h <<\EOF
15899 #define SLAPD_SPASSWD 1
15903 if test "$ol_enable_phonetic" != no ; then
15904 cat >> confdefs.h <<\EOF
15905 #define SLAPD_PHONETIC 1
15909 if test "$ol_enable_rlookups" != no ; then
15910 cat >> confdefs.h <<\EOF
15911 #define SLAPD_RLOOKUPS 1
15915 if test "$ol_enable_aci" != no ; then
15916 cat >> confdefs.h <<\EOF
15917 #define SLAPD_ACI_ENABLED 1
15922 if test "$ol_link_modules" != no ; then
15923 cat >> confdefs.h <<\EOF
15924 #define SLAPD_MODULES 1
15928 SLAPD_MODULES_LDFLAGS="-dlopen self"
15931 if test "$ol_link_dnssrv" != no ; then
15932 cat >> confdefs.h <<\EOF
15933 #define SLAPD_DNSSRV 1
15938 if test "$ol_with_dnssrv_module" != static ; then
15939 cat >> confdefs.h <<\EOF
15940 #define SLAPD_DNSSRV_DYNAMIC 1
15944 BUILD_DNSSRV_DYNAMIC=shared
15945 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15949 if test "$ol_enable_ldap" != no ; then
15950 cat >> confdefs.h <<\EOF
15951 #define SLAPD_LDAP 1
15956 if test "$ol_with_ldap_module" != static ; then
15957 cat >> confdefs.h <<\EOF
15958 #define SLAPD_LDAP_DYNAMIC 1
15962 BUILD_LDAP_DYNAMIC=shared
15963 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15967 if test "$ol_link_ldbm" != no ; then
15968 cat >> confdefs.h <<\EOF
15969 #define SLAPD_LDBM 1
15974 if test "$ol_with_ldbm_module" != static ; then
15975 cat >> confdefs.h <<\EOF
15976 #define SLAPD_LDBM_DYNAMIC 1
15980 BUILD_LDBM_DYNAMIC=shared
15981 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15985 if test "$ol_enable_passwd" != no ; then
15986 cat >> confdefs.h <<\EOF
15987 #define SLAPD_PASSWD 1
15992 if test "$ol_with_passwd_module" != static ; then
15993 cat >> confdefs.h <<\EOF
15994 #define SLAPD_PASSWD_DYNAMIC 1
15998 BUILD_PASSWD_DYNAMIC=shared
15999 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16003 if test "$ol_enable_shell" != no ; then
16004 cat >> confdefs.h <<\EOF
16005 #define SLAPD_SHELL 1
16010 if test "$ol_with_shell_module" != static ; then
16011 cat >> confdefs.h <<\EOF
16012 #define SLAPD_SHELL_DYNAMIC 1
16016 BUILD_SHELL_DYNAMIC=shared
16017 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16021 if test "$ol_enable_sql" != no ; then
16022 cat >> confdefs.h <<\EOF
16023 #define SLAPD_SQL 1
16028 if test "$ol_with_sql_module" != static; then
16029 cat >> confdefs.h <<\EOF
16030 #define SLAPD_SQL_DYNAMIC 1
16034 BUILD_SQL_DYNAMIC=shared
16035 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16039 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16040 $BUILD_SLAPD = yes ; then
16045 if test "$LINK_BINS_DYNAMIC" = yes; then
16047 LT_LIB_LINKAGE=shared
16050 LT_LIB_LINKAGE=static
16053 if test "$ac_cv_mingw32" = yes ; then
16113 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16116 # Let make expand exec_prefix.
16117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16119 # Any assignment to VPATH causes Sun make to only execute
16120 # the first set of double-colon rules, so remove it if not needed.
16121 # If there is a colon in the path, we need to keep it.
16122 if test "x$srcdir" = x.; then
16123 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16126 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16128 DEFS=-DHAVE_CONFIG_H
16130 # Without the "./", some shells look in PATH for config.status.
16131 : ${CONFIG_STATUS=./config.status}
16133 echo creating $CONFIG_STATUS
16134 rm -f $CONFIG_STATUS
16135 cat > $CONFIG_STATUS <<EOF
16137 # Generated automatically by configure.
16138 # Run this file to recreate the current configuration.
16139 # This directory was configured as follows,
16140 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16142 # $0 $ac_configure_args
16144 # Compiler output produced by configure, useful for debugging
16145 # configure, is in ./config.log if it exists.
16147 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16150 case "\$ac_option" in
16151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16152 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16153 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16154 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16155 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16157 -help | --help | --hel | --he | --h)
16158 echo "\$ac_cs_usage"; exit 0 ;;
16159 *) echo "\$ac_cs_usage"; exit 1 ;;
16163 ac_given_srcdir=$srcdir
16164 ac_given_INSTALL="$INSTALL"
16166 trap 'rm -fr `echo "\
16167 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16168 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16169 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16170 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16171 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16172 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16173 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16174 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16175 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16176 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16177 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16178 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16179 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16180 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16181 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16182 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16183 include/Makefile:build/top.mk:include/Makefile.in \
16184 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16185 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16186 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16187 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16188 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16189 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16190 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16191 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16192 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16193 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16194 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16195 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16196 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16197 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16198 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16199 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16200 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16201 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16202 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16203 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16204 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16205 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16206 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16207 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16208 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16210 cat >> $CONFIG_STATUS <<EOF
16212 # Protect against being on the right side of a sed subst in config.status.
16213 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16214 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16218 s%@CFLAGS@%$CFLAGS%g
16219 s%@CPPFLAGS@%$CPPFLAGS%g
16220 s%@CXXFLAGS@%$CXXFLAGS%g
16221 s%@FFLAGS@%$FFLAGS%g
16223 s%@LDFLAGS@%$LDFLAGS%g
16225 s%@exec_prefix@%$exec_prefix%g
16226 s%@prefix@%$prefix%g
16227 s%@program_transform_name@%$program_transform_name%g
16228 s%@bindir@%$bindir%g
16229 s%@sbindir@%$sbindir%g
16230 s%@libexecdir@%$libexecdir%g
16231 s%@datadir@%$datadir%g
16232 s%@sysconfdir@%$sysconfdir%g
16233 s%@sharedstatedir@%$sharedstatedir%g
16234 s%@localstatedir@%$localstatedir%g
16235 s%@libdir@%$libdir%g
16236 s%@includedir@%$includedir%g
16237 s%@oldincludedir@%$oldincludedir%g
16238 s%@infodir@%$infodir%g
16239 s%@mandir@%$mandir%g
16241 s%@host_alias@%$host_alias%g
16242 s%@host_cpu@%$host_cpu%g
16243 s%@host_vendor@%$host_vendor%g
16244 s%@host_os@%$host_os%g
16245 s%@target@%$target%g
16246 s%@target_alias@%$target_alias%g
16247 s%@target_cpu@%$target_cpu%g
16248 s%@target_vendor@%$target_vendor%g
16249 s%@target_os@%$target_os%g
16251 s%@build_alias@%$build_alias%g
16252 s%@build_cpu@%$build_cpu%g
16253 s%@build_vendor@%$build_vendor%g
16254 s%@build_os@%$build_os%g
16255 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16256 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16257 s%@INSTALL_DATA@%$INSTALL_DATA%g
16258 s%@PACKAGE@%$PACKAGE%g
16259 s%@VERSION@%$VERSION%g
16260 s%@ACLOCAL@%$ACLOCAL%g
16261 s%@AUTOCONF@%$AUTOCONF%g
16262 s%@AUTOMAKE@%$AUTOMAKE%g
16263 s%@AUTOHEADER@%$AUTOHEADER%g
16264 s%@MAKEINFO@%$MAKEINFO%g
16265 s%@install_sh@%$install_sh%g
16268 s%@AMTARFLAGS@%$AMTARFLAGS%g
16269 s%@SET_MAKE@%$SET_MAKE%g
16270 s%@top_builddir@%$top_builddir%g
16271 s%@ldap_subdir@%$ldap_subdir%g
16273 s%@RANLIB@%$RANLIB%g
16275 s%@DLLTOOL@%$DLLTOOL%g
16277 s%@OBJDUMP@%$OBJDUMP%g
16278 s%@LIBTOOL@%$LIBTOOL%g
16280 s%@SENDMAIL@%$SENDMAIL%g
16281 s%@EDITOR@%$EDITOR%g
16282 s%@FINGER@%$FINGER%g
16284 s%@EXEEXT@%$EXEEXT%g
16285 s%@OBJEXT@%$OBJEXT%g
16286 s%@OL_MKDEP@%$OL_MKDEP%g
16287 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16288 s%@LIBOBJS@%$LIBOBJS%g
16289 s%@LIBSRCS@%$LIBSRCS%g
16291 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16292 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16293 s%@DYN_EXT@%$DYN_EXT%g
16294 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16295 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16296 s%@BUILD_LDAP@%$BUILD_LDAP%g
16297 s%@BUILD_LDBM@%$BUILD_LDBM%g
16298 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16299 s%@BUILD_SHELL@%$BUILD_SHELL%g
16300 s%@BUILD_SQL@%$BUILD_SQL%g
16301 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16302 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16303 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16304 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16305 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16306 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16307 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16308 s%@LDAP_LIBS@%$LDAP_LIBS%g
16309 s%@LDIF_LIBS@%$LDIF_LIBS%g
16310 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16311 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16312 s%@LDBM_LIBS@%$LDBM_LIBS%g
16313 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16314 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16315 s%@WRAP_LIBS@%$WRAP_LIBS%g
16316 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16317 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16318 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16319 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16320 s%@KRB4_LIBS@%$KRB4_LIBS%g
16321 s%@KRB5_LIBS@%$KRB5_LIBS%g
16322 s%@READLINE_LIBS@%$READLINE_LIBS%g
16323 s%@SASL_LIBS@%$SASL_LIBS%g
16324 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16325 s%@TLS_LIBS@%$TLS_LIBS%g
16326 s%@MODULES_LIBS@%$MODULES_LIBS%g
16327 s%@AUTH_LIBS@%$AUTH_LIBS%g
16328 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16329 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16330 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16335 cat >> $CONFIG_STATUS <<\EOF
16337 # Split the substitutions into bite-sized pieces for seds with
16338 # small command number limits, like on Digital OSF/1 and HP-UX.
16339 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16340 ac_file=1 # Number of current file.
16341 ac_beg=1 # First line for current file.
16342 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16345 while $ac_more_lines; do
16346 if test $ac_beg -gt 1; then
16347 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16349 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16351 if test ! -s conftest.s$ac_file; then
16352 ac_more_lines=false
16353 rm -f conftest.s$ac_file
16355 if test -z "$ac_sed_cmds"; then
16356 ac_sed_cmds="sed -f conftest.s$ac_file"
16358 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16360 ac_file=`expr $ac_file + 1`
16362 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16365 if test -z "$ac_sed_cmds"; then
16370 cat >> $CONFIG_STATUS <<EOF
16372 CONFIG_FILES=\${CONFIG_FILES-"\
16373 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16374 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16375 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16376 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16377 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16378 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16379 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16380 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16381 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16382 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16383 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16384 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16385 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16386 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16387 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16388 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16389 include/Makefile:build/top.mk:include/Makefile.in \
16390 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16391 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16392 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16393 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16394 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16395 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16396 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16397 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16398 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16399 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16400 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16401 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16402 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16403 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16404 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16405 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16406 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16407 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16408 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16409 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16410 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16411 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16412 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16413 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16416 cat >> $CONFIG_STATUS <<\EOF
16417 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16418 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16420 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16421 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16422 *) ac_file_in="${ac_file}.in" ;;
16425 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16427 # Remove last slash and all that follows it. Not all systems have dirname.
16428 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16429 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16430 # The file is in a subdirectory.
16431 test ! -d "$ac_dir" && mkdir "$ac_dir"
16432 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16433 # A "../" for each directory in $ac_dir_suffix.
16434 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16436 ac_dir_suffix= ac_dots=
16439 case "$ac_given_srcdir" in
16441 if test -z "$ac_dots"; then top_srcdir=.
16442 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16443 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16444 *) # Relative path.
16445 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16446 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16449 case "$ac_given_INSTALL" in
16450 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16451 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16454 echo creating "$ac_file"
16456 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16458 *[Mm]akefile*) ac_comsub="1i\\
16459 # $configure_input" ;;
16463 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16465 s%@configure_input@%$configure_input%g
16466 s%@srcdir@%$srcdir%g
16467 s%@top_srcdir@%$top_srcdir%g
16468 s%@INSTALL@%$INSTALL%g
16469 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16473 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16474 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16476 # ac_d sets the value in "#define NAME VALUE" lines.
16477 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16478 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16481 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16482 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16483 ac_uB='\([ ]\)%\1#\2define\3'
16486 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16487 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16488 ac_eB='$%\1#\2define\3'
16492 if test "${CONFIG_HEADERS+set}" != set; then
16494 cat >> $CONFIG_STATUS <<EOF
16495 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16497 cat >> $CONFIG_STATUS <<\EOF
16499 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16500 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16502 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16503 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16504 *) ac_file_in="${ac_file}.in" ;;
16507 echo creating $ac_file
16509 rm -f conftest.frag conftest.in conftest.out
16510 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16511 cat $ac_file_inputs > conftest.in
16515 # Transform confdefs.h into a sed script conftest.vals that substitutes
16516 # the proper values into config.h.in to produce config.h. And first:
16517 # Protect against being on the right side of a sed subst in config.status.
16518 # Protect against being in an unquoted here document in config.status.
16519 rm -f conftest.vals
16520 cat > conftest.hdr <<\EOF
16523 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16527 sed -n -f conftest.hdr confdefs.h > conftest.vals
16530 # This sed command replaces #undef with comments. This is necessary, for
16531 # example, in the case of _POSIX_SOURCE, which is predefined and required
16532 # on some systems where configure will not decide to define it.
16533 cat >> conftest.vals <<\EOF
16534 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16537 # Break up conftest.vals because some shells have a limit on
16538 # the size of here documents, and old seds have small limits too.
16540 rm -f conftest.tail
16543 ac_lines=`grep -c . conftest.vals`
16544 # grep -c gives empty output for an empty file on some AIX systems.
16545 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16546 # Write a limited-size here document to conftest.frag.
16547 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16548 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16550 sed -f conftest.frag conftest.in > conftest.out
16552 mv conftest.out conftest.in
16553 ' >> $CONFIG_STATUS
16554 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16555 rm -f conftest.vals
16556 mv conftest.tail conftest.vals
16558 rm -f conftest.vals
16560 cat >> $CONFIG_STATUS <<\EOF
16561 rm -f conftest.frag conftest.h
16562 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16563 cat conftest.in >> conftest.h
16565 if cmp -s $ac_file conftest.h 2>/dev/null; then
16566 echo "$ac_file is unchanged"
16569 # Remove last slash and all that follows it. Not all systems have dirname.
16570 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16571 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16572 # The file is in a subdirectory.
16573 test ! -d "$ac_dir" && mkdir "$ac_dir"
16576 mv conftest.h $ac_file
16581 cat >> $CONFIG_STATUS <<EOF
16584 cat >> $CONFIG_STATUS <<\EOF
16587 echo Please \"make depend\" to build dependencies
16591 chmod +x $CONFIG_STATUS
16592 rm -fr confdefs* $ac_clean_files
16593 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1