5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (auto)"
42 --enable-ipv6 enable IPv6 support (auto)"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support (auto)"
46 --enable-x-compile enable cross compiling (no)"
48 --with-cyrus-sasl with Cyrus SASL support (auto)"
50 --with-fetch with fetch URL support (auto)"
52 --with-kerberos with support (auto)"
54 --with-readline with readline support (auto)"
56 --with-threads with threads (auto)"
58 --with-tls with TLS/SSL support (auto)"
60 --with-yielding-select with implicitly yielding select (auto)"
62 SLAPD (Standalone LDAP Daemon) Options:"
64 --enable-slapd enable building slapd (yes)"
66 --enable-cleartext enable cleartext passwords (yes)"
68 --enable-crypt enable crypt(3) passwords (auto)"
70 --enable-kpasswd enable kerberos password verification (no)"
72 --enable-spasswd enable (Cyrus) SASL password verification (no)"
74 --enable-modules enable dynamic module support (no)"
76 --enable-multimaster enable multimaster replication (no)"
78 --enable-phonetic enable phonetic/soundex (no)"
80 --enable-rlookups enable reverse lookups (auto)"
82 --enable-aci enable per-object ACIs (no)"
84 --enable-wrappers enable tcp wrapper support (no)"
86 --enable-dynamic enable linking built binaries with dynamic libs (no)"
88 --enable-dnssrv enable dnssrv backend (no)"
90 --with-dnssrv-module module type (static)"
92 --enable-ldap enable ldap backend (no)"
94 --with-ldap-module module type (static)"
96 --enable-ldbm enable ldbm backend (yes)"
98 --with-ldbm-api with LDBM API (auto)"
100 --with-ldbm-module module type (static)"
102 --with-ldbm-type use LDBM type (auto)"
104 --enable-passwd enable passwd backend (no)"
106 --with-passwd-module module type (static)"
108 --enable-shell enable shell backend (no)"
110 --with-shell-module module type (static)"
112 --enable-sql enable sql backend (no)"
114 --with-sql-module module type (static)"
116 SLURPD (Replication Daemon) Options:"
118 --enable-slurpd enable building slurpd (auto)"
120 Library Generation & Linking Options"
122 --enable-static[=PKGS] build static libraries [default=yes]"
124 --enable-shared[=PKGS] build shared libraries [default=yes]"
126 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
128 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
130 --disable-libtool-lock avoid locking (might break parallel builds)"
132 # Initialize some variables set by options.
133 # The variables have the same names as the options, with
134 # dashes changed to underlines.
136 cache_file=./config.cache
145 program_transform_name=s,x,x,
153 bindir='${exec_prefix}/bin'
154 sbindir='${exec_prefix}/sbin'
155 libexecdir='${exec_prefix}/libexec'
156 datadir='${prefix}/share'
157 sysconfdir='${prefix}/etc'
158 sharedstatedir='${prefix}/com'
159 localstatedir='${prefix}/var'
160 libdir='${exec_prefix}/lib'
161 includedir='${prefix}/include'
162 oldincludedir='/usr/include'
163 infodir='${prefix}/info'
164 mandir='${prefix}/man'
166 # Initialize some other variables.
169 SHELL=${CONFIG_SHELL-/bin/sh}
170 # Maximum number of lines to put in a shell here document.
177 # If the previous option needs an argument, assign it.
178 if test -n "$ac_prev"; then
179 eval "$ac_prev=\$ac_option"
185 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
189 # Accept the important Cygnus configure options, so we can diagnose typos.
193 -bindir | --bindir | --bindi | --bind | --bin | --bi)
195 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
196 bindir="$ac_optarg" ;;
198 -build | --build | --buil | --bui | --bu)
200 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
201 build="$ac_optarg" ;;
203 -cache-file | --cache-file | --cache-fil | --cache-fi \
204 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
205 ac_prev=cache_file ;;
206 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
207 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
208 cache_file="$ac_optarg" ;;
210 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
212 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
214 datadir="$ac_optarg" ;;
216 -disable-* | --disable-*)
217 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
218 # Reject names that are not valid shell variable names.
219 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
222 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
223 eval "enable_${ac_feature}=no" ;;
225 -enable-* | --enable-*)
226 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
227 # Reject names that are not valid shell variable names.
228 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
229 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
231 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
236 eval "enable_${ac_feature}='$ac_optarg'" ;;
238 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
239 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
240 | --exec | --exe | --ex)
241 ac_prev=exec_prefix ;;
242 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
243 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
244 | --exec=* | --exe=* | --ex=*)
245 exec_prefix="$ac_optarg" ;;
247 -gas | --gas | --ga | --g)
248 # Obsolete; use --with-gas.
251 -help | --help | --hel | --he)
252 # Omit some internal or obsolete options to make the list less imposing.
253 # This message is too long to be a string in the A/UX 3.1 sh.
255 Usage: configure [options] [host]
256 Options: [defaults in brackets after descriptions]
258 --cache-file=FILE cache test results in FILE
259 --help print this message
260 --no-create do not create output files
261 --quiet, --silent do not print \`checking...' messages
262 --version print the version of autoconf that created configure
263 Directory and file names:
264 --prefix=PREFIX install architecture-independent files in PREFIX
266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
268 --bindir=DIR user executables in DIR [EPREFIX/bin]
269 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
270 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
271 --datadir=DIR read-only architecture-independent data in DIR
273 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
274 --sharedstatedir=DIR modifiable architecture-independent data in DIR
276 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
277 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
278 --includedir=DIR C header files in DIR [PREFIX/include]
279 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
280 --infodir=DIR info documentation in DIR [PREFIX/info]
281 --mandir=DIR man documentation in DIR [PREFIX/man]
282 --srcdir=DIR find the sources in DIR [configure dir or ..]
283 --program-prefix=PREFIX prepend PREFIX to installed program names
284 --program-suffix=SUFFIX append SUFFIX to installed program names
285 --program-transform-name=PROGRAM
286 run sed PROGRAM on installed program names
290 --build=BUILD configure for building on BUILD [BUILD=HOST]
291 --host=HOST configure for HOST [guessed]
292 --target=TARGET configure for TARGET [TARGET=HOST]
293 Features and packages:
294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
296 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
297 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
298 --x-includes=DIR X include files are in DIR
299 --x-libraries=DIR X library files are in DIR
301 if test -n "$ac_help"; then
302 echo "--enable and --with options recognized:$ac_help"
306 -host | --host | --hos | --ho)
308 -host=* | --host=* | --hos=* | --ho=*)
311 -includedir | --includedir | --includedi | --included | --include \
312 | --includ | --inclu | --incl | --inc)
313 ac_prev=includedir ;;
314 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
315 | --includ=* | --inclu=* | --incl=* | --inc=*)
316 includedir="$ac_optarg" ;;
318 -infodir | --infodir | --infodi | --infod | --info | --inf)
320 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
321 infodir="$ac_optarg" ;;
323 -libdir | --libdir | --libdi | --libd)
325 -libdir=* | --libdir=* | --libdi=* | --libd=*)
326 libdir="$ac_optarg" ;;
328 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
329 | --libexe | --libex | --libe)
330 ac_prev=libexecdir ;;
331 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
332 | --libexe=* | --libex=* | --libe=*)
333 libexecdir="$ac_optarg" ;;
335 -localstatedir | --localstatedir | --localstatedi | --localstated \
336 | --localstate | --localstat | --localsta | --localst \
337 | --locals | --local | --loca | --loc | --lo)
338 ac_prev=localstatedir ;;
339 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
340 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
341 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
342 localstatedir="$ac_optarg" ;;
344 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
346 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
347 mandir="$ac_optarg" ;;
350 # Obsolete; use --without-fp.
353 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
357 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
358 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
361 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
362 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
363 | --oldin | --oldi | --old | --ol | --o)
364 ac_prev=oldincludedir ;;
365 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
366 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
367 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
368 oldincludedir="$ac_optarg" ;;
370 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
372 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
373 prefix="$ac_optarg" ;;
375 -program-prefix | --program-prefix | --program-prefi | --program-pref \
376 | --program-pre | --program-pr | --program-p)
377 ac_prev=program_prefix ;;
378 -program-prefix=* | --program-prefix=* | --program-prefi=* \
379 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
380 program_prefix="$ac_optarg" ;;
382 -program-suffix | --program-suffix | --program-suffi | --program-suff \
383 | --program-suf | --program-su | --program-s)
384 ac_prev=program_suffix ;;
385 -program-suffix=* | --program-suffix=* | --program-suffi=* \
386 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
387 program_suffix="$ac_optarg" ;;
389 -program-transform-name | --program-transform-name \
390 | --program-transform-nam | --program-transform-na \
391 | --program-transform-n | --program-transform- \
392 | --program-transform | --program-transfor \
393 | --program-transfo | --program-transf \
394 | --program-trans | --program-tran \
395 | --progr-tra | --program-tr | --program-t)
396 ac_prev=program_transform_name ;;
397 -program-transform-name=* | --program-transform-name=* \
398 | --program-transform-nam=* | --program-transform-na=* \
399 | --program-transform-n=* | --program-transform-=* \
400 | --program-transform=* | --program-transfor=* \
401 | --program-transfo=* | --program-transf=* \
402 | --program-trans=* | --program-tran=* \
403 | --progr-tra=* | --program-tr=* | --program-t=*)
404 program_transform_name="$ac_optarg" ;;
406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
407 | -silent | --silent | --silen | --sile | --sil)
410 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
412 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
414 sbindir="$ac_optarg" ;;
416 -sharedstatedir | --sharedstatedir | --sharedstatedi \
417 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
418 | --sharedst | --shareds | --shared | --share | --shar \
420 ac_prev=sharedstatedir ;;
421 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
422 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
423 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
425 sharedstatedir="$ac_optarg" ;;
427 -site | --site | --sit)
429 -site=* | --site=* | --sit=*)
432 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
434 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
435 srcdir="$ac_optarg" ;;
437 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
438 | --syscon | --sysco | --sysc | --sys | --sy)
439 ac_prev=sysconfdir ;;
440 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
441 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
442 sysconfdir="$ac_optarg" ;;
444 -target | --target | --targe | --targ | --tar | --ta | --t)
446 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
447 target="$ac_optarg" ;;
449 -v | -verbose | --verbose | --verbos | --verbo | --verb)
452 -version | --version | --versio | --versi | --vers)
453 echo "configure generated by autoconf version 2.13.1"
457 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
458 # Reject names that are not valid shell variable names.
459 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
460 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
462 ac_package=`echo $ac_package| sed 's/-/_/g'`
467 eval "with_${ac_package}='$ac_optarg'" ;;
469 -without-* | --without-*)
470 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
471 # Reject names that are not valid shell variable names.
472 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
473 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
475 ac_package=`echo $ac_package| sed 's/-/_/g'`
476 eval "with_${ac_package}=no" ;;
479 # Obsolete; use --with-x.
482 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
483 | --x-incl | --x-inc | --x-in | --x-i)
484 ac_prev=x_includes ;;
485 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
486 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
487 x_includes="$ac_optarg" ;;
489 -x-libraries | --x-libraries | --x-librarie | --x-librari \
490 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
491 ac_prev=x_libraries ;;
492 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
493 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
494 x_libraries="$ac_optarg" ;;
496 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
500 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
501 echo "configure: warning: $ac_option: invalid host type" 1>&2
503 if test "x$nonopt" != xNONE; then
504 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
512 if test -n "$ac_prev"; then
513 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
516 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
518 # File descriptor usage:
521 # 2 errors and warnings
522 # 3 some systems may open it to /dev/tty
523 # 4 used on the Kubota Titan
524 # 6 checking for... messages and results
525 # 5 compiler messages saved in config.log
526 if test "$silent" = yes; then
534 This file contains any messages produced by compilers while
535 running configure, to aid debugging if configure makes a mistake.
538 # Strip out --no-create and --no-recursion so they do not pile up.
539 # Also quote any args containing shell metacharacters.
544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
545 | --no-cr | --no-c) ;;
546 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
547 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
548 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
549 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
550 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
555 # Only set these to C if already set. These must not be set unconditionally
556 # because not all systems understand e.g. LANG=C (notably SCO).
557 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
558 # Non-C LC_CTYPE values break the ctype check.
559 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
560 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
561 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
562 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
564 # confdefs.h avoids OS command line length limits that DEFS can exceed.
565 rm -rf conftest* confdefs.h
566 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
569 # A filename unique to this package, relative to the directory that
570 # configure is in, which we can look for to find out if srcdir is correct.
571 ac_unique_file=build/version
573 # Find the source files, if location was not specified.
574 if test -z "$srcdir"; then
575 ac_srcdir_defaulted=yes
576 # Try the directory containing this script, then its parent.
578 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
579 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
581 if test ! -r $srcdir/$ac_unique_file; then
585 ac_srcdir_defaulted=no
587 if test ! -r $srcdir/$ac_unique_file; then
588 if test "$ac_srcdir_defaulted" = yes; then
589 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
591 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
594 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
596 # Prefer explicitly selected file to automatically selected ones.
597 if test -z "$CONFIG_SITE"; then
598 if test "x$prefix" != xNONE; then
599 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
601 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
604 for ac_site_file in $CONFIG_SITE; do
605 if test -r "$ac_site_file"; then
606 echo "loading site script $ac_site_file"
613 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
614 ac_cpp='$CPP $CPPFLAGS'
615 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
616 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
617 cross_compiling=$ac_cv_prog_cc_cross
621 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
622 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
623 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
630 ac_n= ac_c='\c' ac_t=
634 # set unset (borrowed from autoconf 2.14a)
635 if (unset FOO) >/dev/null 2>&1; then
641 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
644 for ac_dir in build $srcdir/build; do
645 if test -f $ac_dir/install-sh; then
647 ac_install_sh="$ac_aux_dir/install-sh -c"
649 elif test -f $ac_dir/install.sh; then
651 ac_install_sh="$ac_aux_dir/install.sh -c"
653 elif test -f $ac_dir/shtool; then
655 ac_install_sh="$ac_aux_dir/shtool install -c"
659 if test -z "$ac_aux_dir"; then
660 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
662 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
663 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
664 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
666 OL_VERSION=`cat $ac_aux_dir/version`
667 if test -z "$OL_VERSION"; then
668 { echo "configure: error: could not determine version" 1>&2; exit 1; }
671 echo "Configuring OpenLDAP $OL_VERSION ..."
674 echo $ac_n "checking host system type""... $ac_c" 1>&6
675 echo "configure:676: checking host system type" >&5
676 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
678 # Make sure we can run config.sub.
679 if $ac_config_sub sun4 >/dev/null 2>&1; then :
680 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
683 ac_cv_host_alias=$host
684 case "$ac_cv_host_alias" in
688 if ac_cv_host_alias=`$ac_config_guess`; then :
689 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
691 *) ac_cv_host_alias=$nonopt ;;
695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
696 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
697 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
698 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo $ac_n "(cached) $ac_c" 1>&6
703 echo "$ac_t""$ac_cv_host" 1>&6
706 host_alias=$ac_cv_host_alias
707 host_cpu=$ac_cv_host_cpu
708 host_vendor=$ac_cv_host_vendor
709 host_os=$ac_cv_host_os
715 echo $ac_n "checking target system type""... $ac_c" 1>&6
716 echo "configure:717: checking target system type" >&5
717 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4 >/dev/null 2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
724 ac_cv_target_alias=$target
725 case "$ac_cv_target_alias" in
729 ac_cv_target_alias=$host_alias ;;
731 *) ac_cv_target_alias=$nonopt ;;
735 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
736 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
737 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
738 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
740 echo $ac_n "(cached) $ac_c" 1>&6
743 echo "$ac_t""$ac_cv_target" 1>&6
746 target_alias=$ac_cv_target_alias
747 target_cpu=$ac_cv_target_cpu
748 target_vendor=$ac_cv_target_vendor
749 target_os=$ac_cv_target_os
755 echo $ac_n "checking build system type""... $ac_c" 1>&6
756 echo "configure:757: checking build system type" >&5
757 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
759 # Make sure we can run config.sub.
760 if $ac_config_sub sun4 >/dev/null 2>&1; then :
761 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
764 ac_cv_build_alias=$build
765 case "$ac_cv_build_alias" in
769 ac_cv_build_alias=$host_alias ;;
771 *) ac_cv_build_alias=$nonopt ;;
775 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
776 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
777 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
778 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
780 echo $ac_n "(cached) $ac_c" 1>&6
783 echo "$ac_t""$ac_cv_build" 1>&6
786 build_alias=$ac_cv_build_alias
787 build_cpu=$ac_cv_build_cpu
788 build_vendor=$ac_cv_build_vendor
789 build_os=$ac_cv_build_os
795 # Do some error checking and defaulting for the host and target type.
797 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
800 # 1. You are not allowed to specify --host, --target, and nonopt at the
802 # 2. Host defaults to nonopt.
803 # 3. If nonopt is not specified, then host defaults to the current host,
804 # as determined by config.guess.
805 # 4. Target and build default to nonopt.
806 # 5. If nonopt is not specified, then target and build default to host.
808 # The aliases save the names the user supplied, while $host etc.
809 # will get canonicalized.
810 case $host---$target---$nonopt in
811 NONE---*---* | *---NONE---* | *---*---NONE) ;;
812 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
815 test "$host_alias" != "$target_alias" &&
816 test "$program_prefix$program_suffix$program_transform_name" = \
818 program_prefix=${target_alias}-
821 # Find a good install program. We prefer a C program (faster),
822 # so one script is as good as another. But avoid the broken or
823 # incompatible versions:
824 # SysV /etc/install, /usr/sbin/install
825 # SunOS /usr/etc/install
828 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
829 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
830 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
831 # ./install, which can be erroneously created by make from ./install.sh.
832 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
833 echo "configure:834: checking for a BSD compatible install" >&5
834 if test -z "$INSTALL"; then
835 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
836 echo $ac_n "(cached) $ac_c" 1>&6
838 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
839 for ac_dir in $PATH; do
840 # Account for people who put trailing slashes in PATH elements.
842 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
844 # OSF1 and SCO ODT 3.0 have their own names for install.
845 # Don't use installbsd from OSF since it installs stuff as root
847 for ac_prog in ginstall scoinst install; do
848 if test -f $ac_dir/$ac_prog; then
849 if test $ac_prog = install &&
850 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
851 # AIX install. It has an incompatible calling convention.
853 elif test $ac_prog = install &&
854 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
855 # program-specific install script used by HP pwplus--don't use.
858 ac_cv_path_install="$ac_dir/$ac_prog -c"
869 if test "${ac_cv_path_install+set}" = set; then
870 INSTALL="$ac_cv_path_install"
872 # As a last resort, use the slow shell script. We don't cache a
873 # path for INSTALL within a source directory, because that will
874 # break other packages using the cache if that directory is
875 # removed, or if the path is relative.
876 INSTALL="$ac_install_sh"
879 echo "$ac_t""$INSTALL" 1>&6
881 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
882 # It thinks the first close brace ends the variable substitution.
883 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
885 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
887 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
889 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
890 echo "configure:891: checking whether build environment is sane" >&5
893 echo timestamp > conftestfile
894 # Do `set' in a subshell so we don't clobber the current shell's
895 # arguments. Must try -L first in case configure is actually a
896 # symlink; some systems play weird games with the mod time of symlinks
897 # (eg FreeBSD returns the mod time of the symlink's containing
900 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
901 if test "$*" = "X"; then
903 set X `ls -t $srcdir/configure conftestfile`
905 if test "$*" != "X $srcdir/configure conftestfile" \
906 && test "$*" != "X conftestfile $srcdir/configure"; then
908 # If neither matched, then we have a broken ls. This can happen
909 # if, for instance, CONFIG_SHELL is bash and it inherits a
910 # broken ls alias from the environment. This has actually
911 # happened. Such a system could not be considered "sane".
912 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
913 alias in your environment" 1>&2; exit 1; }
916 test "$2" = conftestfile
922 { echo "configure: error: newly created file is older than distributed files!
923 Check your system clock" 1>&2; exit 1; }
926 echo "$ac_t""yes" 1>&6
927 if test "$program_transform_name" = s,x,x,; then
928 program_transform_name=
930 # Double any \ or $. echo might interpret backslashes.
931 cat <<\EOF_SED > conftestsed
932 s,\\,\\\\,g; s,\$,$$,g
934 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
937 test "$program_prefix" != NONE &&
938 program_transform_name="s,^,${program_prefix},;$program_transform_name"
939 # Use a double $ so make ignores it.
940 test "$program_suffix" != NONE &&
941 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
943 # sed with no file args requires a program.
944 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
946 for ac_prog in mawk gawk nawk awk
948 # Extract the first word of "$ac_prog", so it can be a program name with args.
949 set dummy $ac_prog; ac_word=$2
950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951 echo "configure:952: checking for $ac_word" >&5
952 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
953 echo $ac_n "(cached) $ac_c" 1>&6
955 if test -n "$AWK"; then
956 ac_cv_prog_AWK="$AWK" # Let the user override the test.
958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 for ac_dir in $ac_dummy; do
961 test -z "$ac_dir" && ac_dir=.
962 if test -f $ac_dir/$ac_word; then
963 ac_cv_prog_AWK="$ac_prog"
970 AWK="$ac_cv_prog_AWK"
971 if test -n "$AWK"; then
972 echo "$ac_t""$AWK" 1>&6
974 echo "$ac_t""no" 1>&6
977 test -n "$AWK" && break
980 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${MAKE-make} sets \${MAKE}" >&5
982 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
983 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 cat > conftestmake <<\EOF
988 @echo 'ac_maketemp="${MAKE}"'
990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
991 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
992 if test -n "$ac_maketemp"; then
993 eval ac_cv_prog_make_${ac_make}_set=yes
995 eval ac_cv_prog_make_${ac_make}_set=no
999 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1000 echo "$ac_t""yes" 1>&6
1003 echo "$ac_t""no" 1>&6
1004 SET_MAKE="MAKE=${MAKE-make}"
1013 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1014 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1019 missing_dir=`cd $ac_aux_dir && pwd`
1020 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1021 echo "configure:1022: checking for working aclocal" >&5
1022 # Run test in a subshell; some versions of sh will print an error if
1023 # an executable is not found, even if stderr is redirected.
1024 # Redirect stdin to placate older versions of autoconf. Sigh.
1025 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1027 echo "$ac_t""found" 1>&6
1029 ACLOCAL="$missing_dir/missing aclocal"
1030 echo "$ac_t""missing" 1>&6
1033 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1034 echo "configure:1035: checking for working autoconf" >&5
1035 # Run test in a subshell; some versions of sh will print an error if
1036 # an executable is not found, even if stderr is redirected.
1037 # Redirect stdin to placate older versions of autoconf. Sigh.
1038 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1040 echo "$ac_t""found" 1>&6
1042 AUTOCONF="$missing_dir/missing autoconf"
1043 echo "$ac_t""missing" 1>&6
1046 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1047 echo "configure:1048: checking for working automake" >&5
1048 # Run test in a subshell; some versions of sh will print an error if
1049 # an executable is not found, even if stderr is redirected.
1050 # Redirect stdin to placate older versions of autoconf. Sigh.
1051 if (automake --version) < /dev/null > /dev/null 2>&1; then
1053 echo "$ac_t""found" 1>&6
1055 AUTOMAKE="$missing_dir/missing automake"
1056 echo "$ac_t""missing" 1>&6
1059 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1060 echo "configure:1061: checking for working autoheader" >&5
1061 # Run test in a subshell; some versions of sh will print an error if
1062 # an executable is not found, even if stderr is redirected.
1063 # Redirect stdin to placate older versions of autoconf. Sigh.
1064 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1065 AUTOHEADER=autoheader
1066 echo "$ac_t""found" 1>&6
1068 AUTOHEADER="$missing_dir/missing autoheader"
1069 echo "$ac_t""missing" 1>&6
1072 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1073 echo "configure:1074: checking for working makeinfo" >&5
1074 # Run test in a subshell; some versions of sh will print an error if
1075 # an executable is not found, even if stderr is redirected.
1076 # Redirect stdin to placate older versions of autoconf. Sigh.
1077 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1079 echo "$ac_t""found" 1>&6
1081 MAKEINFO="$missing_dir/missing makeinfo"
1082 echo "$ac_t""missing" 1>&6
1085 install_sh="$missing_dir/install-sh"
1086 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1088 for ac_prog in gnutar gtar tar
1090 # Extract the first word of "$ac_prog", so it can be a program name with args.
1091 set dummy $ac_prog; ac_word=$2
1092 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1093 echo "configure:1094: checking for $ac_word" >&5
1094 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
1097 if test -n "$AMTAR"; then
1098 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1100 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1102 for ac_dir in $ac_dummy; do
1103 test -z "$ac_dir" && ac_dir=.
1104 if test -f $ac_dir/$ac_word; then
1105 ac_cv_prog_AMTAR="$ac_prog"
1112 AMTAR="$ac_cv_prog_AMTAR"
1113 if test -n "$AMTAR"; then
1114 echo "$ac_t""$AMTAR" 1>&6
1116 echo "$ac_t""no" 1>&6
1119 test -n "$AMTAR" && break
1124 if test -n "$AMTAR"; then
1125 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1132 cat >> confdefs.h <<EOF
1133 #define OPENLDAP_PACKAGE "$PACKAGE"
1136 cat >> confdefs.h <<EOF
1137 #define OPENLDAP_VERSION "$VERSION"
1143 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1144 echo "configure:1145: checking configure arguments" >&5
1149 ldap_subdir="/openldap"
1151 # Check whether --with-subdir or --without-subdir was given.
1152 if test "${with_subdir+set}" = set; then
1153 withval="$with_subdir"
1160 ldap_subdir="$withval"
1163 ldap_subdir="/$withval"
1170 # OpenLDAP --enable-debug
1171 # Check whether --enable-debug or --disable-debug was given.
1172 if test "${enable_debug+set}" = set; then
1173 enableval="$enable_debug"
1176 for ol_val in auto yes no ; do
1177 if test "$enableval" = "$ol_val" ; then
1181 if test "$ol_arg" = "invalid" ; then
1182 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1184 ol_enable_debug="$ol_arg"
1187 ol_enable_debug="yes"
1189 # end --enable-debug
1190 # OpenLDAP --enable-syslog
1191 # Check whether --enable-syslog or --disable-syslog was given.
1192 if test "${enable_syslog+set}" = set; then
1193 enableval="$enable_syslog"
1196 for ol_val in auto yes no ; do
1197 if test "$enableval" = "$ol_val" ; then
1201 if test "$ol_arg" = "invalid" ; then
1202 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1204 ol_enable_syslog="$ol_arg"
1207 ol_enable_syslog="auto"
1209 # end --enable-syslog
1210 # OpenLDAP --enable-proctitle
1211 # Check whether --enable-proctitle or --disable-proctitle was given.
1212 if test "${enable_proctitle+set}" = set; then
1213 enableval="$enable_proctitle"
1216 for ol_val in auto yes no ; do
1217 if test "$enableval" = "$ol_val" ; then
1221 if test "$ol_arg" = "invalid" ; then
1222 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1224 ol_enable_proctitle="$ol_arg"
1227 ol_enable_proctitle="yes"
1229 # end --enable-proctitle
1230 # OpenLDAP --enable-cache
1231 # Check whether --enable-cache or --disable-cache was given.
1232 if test "${enable_cache+set}" = set; then
1233 enableval="$enable_cache"
1236 for ol_val in auto yes no ; do
1237 if test "$enableval" = "$ol_val" ; then
1241 if test "$ol_arg" = "invalid" ; then
1242 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1244 ol_enable_cache="$ol_arg"
1247 ol_enable_cache="yes"
1249 # end --enable-cache
1250 # OpenLDAP --enable-referrals
1251 # Check whether --enable-referrals or --disable-referrals was given.
1252 if test "${enable_referrals+set}" = set; then
1253 enableval="$enable_referrals"
1256 for ol_val in auto yes no ; do
1257 if test "$enableval" = "$ol_val" ; then
1261 if test "$ol_arg" = "invalid" ; then
1262 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1264 ol_enable_referrals="$ol_arg"
1267 ol_enable_referrals="yes"
1269 # end --enable-referrals
1270 # OpenLDAP --enable-kbind
1271 # Check whether --enable-kbind or --disable-kbind was given.
1272 if test "${enable_kbind+set}" = set; then
1273 enableval="$enable_kbind"
1276 for ol_val in auto yes no ; do
1277 if test "$enableval" = "$ol_val" ; then
1281 if test "$ol_arg" = "invalid" ; then
1282 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1284 ol_enable_kbind="$ol_arg"
1287 ol_enable_kbind="auto"
1289 # end --enable-kbind
1290 # OpenLDAP --enable-ipv6
1291 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1292 if test "${enable_ipv6+set}" = set; then
1293 enableval="$enable_ipv6"
1296 for ol_val in auto yes no ; do
1297 if test "$enableval" = "$ol_val" ; then
1301 if test "$ol_arg" = "invalid" ; then
1302 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1304 ol_enable_ipv6="$ol_arg"
1307 ol_enable_ipv6="auto"
1310 # OpenLDAP --enable-local
1311 # Check whether --enable-local or --disable-local was given.
1312 if test "${enable_local+set}" = set; then
1313 enableval="$enable_local"
1316 for ol_val in auto yes no ; do
1317 if test "$enableval" = "$ol_val" ; then
1321 if test "$ol_arg" = "invalid" ; then
1322 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1324 ol_enable_local="$ol_arg"
1327 ol_enable_local="auto"
1329 # end --enable-local
1330 # OpenLDAP --enable-x_compile
1331 # Check whether --enable-x_compile or --disable-x_compile was given.
1332 if test "${enable_x_compile+set}" = set; then
1333 enableval="$enable_x_compile"
1336 for ol_val in yes no ; do
1337 if test "$enableval" = "$ol_val" ; then
1341 if test "$ol_arg" = "invalid" ; then
1342 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1344 ol_enable_x_compile="$ol_arg"
1347 ol_enable_x_compile="no"
1349 # end --enable-x_compile
1352 # OpenLDAP --with-cyrus_sasl
1353 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1354 if test "${with_cyrus_sasl+set}" = set; then
1355 withval="$with_cyrus_sasl"
1358 for ol_val in auto yes no ; do
1359 if test "$withval" = "$ol_val" ; then
1363 if test "$ol_arg" = "invalid" ; then
1364 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1366 ol_with_cyrus_sasl="$ol_arg"
1369 ol_with_cyrus_sasl="auto"
1371 # end --with-cyrus_sasl
1373 # OpenLDAP --with-fetch
1374 # Check whether --with-fetch or --without-fetch was given.
1375 if test "${with_fetch+set}" = set; then
1376 withval="$with_fetch"
1379 for ol_val in auto yes no ; do
1380 if test "$withval" = "$ol_val" ; then
1384 if test "$ol_arg" = "invalid" ; then
1385 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1387 ol_with_fetch="$ol_arg"
1390 ol_with_fetch="auto"
1394 # OpenLDAP --with-kerberos
1395 # Check whether --with-kerberos or --without-kerberos was given.
1396 if test "${with_kerberos+set}" = set; then
1397 withval="$with_kerberos"
1400 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1401 if test "$withval" = "$ol_val" ; then
1405 if test "$ol_arg" = "invalid" ; then
1406 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1408 ol_with_kerberos="$ol_arg"
1411 ol_with_kerberos="auto"
1413 # end --with-kerberos
1415 # OpenLDAP --with-readline
1416 # Check whether --with-readline or --without-readline was given.
1417 if test "${with_readline+set}" = set; then
1418 withval="$with_readline"
1421 for ol_val in auto yes no ; do
1422 if test "$withval" = "$ol_val" ; then
1426 if test "$ol_arg" = "invalid" ; then
1427 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1429 ol_with_readline="$ol_arg"
1432 ol_with_readline="auto"
1434 # end --with-readline
1436 # OpenLDAP --with-threads
1437 # Check whether --with-threads or --without-threads was given.
1438 if test "${with_threads+set}" = set; then
1439 withval="$with_threads"
1442 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1443 if test "$withval" = "$ol_val" ; then
1447 if test "$ol_arg" = "invalid" ; then
1448 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1450 ol_with_threads="$ol_arg"
1453 ol_with_threads="auto"
1455 # end --with-threads
1457 # OpenLDAP --with-tls
1458 # Check whether --with-tls or --without-tls was given.
1459 if test "${with_tls+set}" = set; then
1463 for ol_val in auto ssleay openssl yes no ; do
1464 if test "$withval" = "$ol_val" ; then
1468 if test "$ol_arg" = "invalid" ; then
1469 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1471 ol_with_tls="$ol_arg"
1478 # OpenLDAP --with-yielding_select
1479 # Check whether --with-yielding_select or --without-yielding_select was given.
1480 if test "${with_yielding_select+set}" = set; then
1481 withval="$with_yielding_select"
1484 for ol_val in auto yes no manual ; do
1485 if test "$withval" = "$ol_val" ; then
1489 if test "$ol_arg" = "invalid" ; then
1490 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1492 ol_with_yielding_select="$ol_arg"
1495 ol_with_yielding_select="auto"
1497 # end --with-yielding_select
1501 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1502 if test "${with_xxslapdoptions+set}" = set; then
1503 withval="$with_xxslapdoptions"
1507 # OpenLDAP --enable-slapd
1508 # Check whether --enable-slapd or --disable-slapd was given.
1509 if test "${enable_slapd+set}" = set; then
1510 enableval="$enable_slapd"
1513 for ol_val in auto yes no ; do
1514 if test "$enableval" = "$ol_val" ; then
1518 if test "$ol_arg" = "invalid" ; then
1519 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1521 ol_enable_slapd="$ol_arg"
1524 ol_enable_slapd="yes"
1526 # end --enable-slapd
1527 # OpenLDAP --enable-cleartext
1528 # Check whether --enable-cleartext or --disable-cleartext was given.
1529 if test "${enable_cleartext+set}" = set; then
1530 enableval="$enable_cleartext"
1533 for ol_val in auto yes no ; do
1534 if test "$enableval" = "$ol_val" ; then
1538 if test "$ol_arg" = "invalid" ; then
1539 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1541 ol_enable_cleartext="$ol_arg"
1544 ol_enable_cleartext="yes"
1546 # end --enable-cleartext
1547 # OpenLDAP --enable-crypt
1548 # Check whether --enable-crypt or --disable-crypt was given.
1549 if test "${enable_crypt+set}" = set; then
1550 enableval="$enable_crypt"
1553 for ol_val in auto yes no ; do
1554 if test "$enableval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1561 ol_enable_crypt="$ol_arg"
1564 ol_enable_crypt="auto"
1566 # end --enable-crypt
1567 # OpenLDAP --enable-kpasswd
1568 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1569 if test "${enable_kpasswd+set}" = set; then
1570 enableval="$enable_kpasswd"
1573 for ol_val in auto yes no ; do
1574 if test "$enableval" = "$ol_val" ; then
1578 if test "$ol_arg" = "invalid" ; then
1579 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1581 ol_enable_kpasswd="$ol_arg"
1584 ol_enable_kpasswd="no"
1586 # end --enable-kpasswd
1587 # OpenLDAP --enable-spasswd
1588 # Check whether --enable-spasswd or --disable-spasswd was given.
1589 if test "${enable_spasswd+set}" = set; then
1590 enableval="$enable_spasswd"
1593 for ol_val in auto yes no ; do
1594 if test "$enableval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1601 ol_enable_spasswd="$ol_arg"
1604 ol_enable_spasswd="no"
1606 # end --enable-spasswd
1607 # OpenLDAP --enable-modules
1608 # Check whether --enable-modules or --disable-modules was given.
1609 if test "${enable_modules+set}" = set; then
1610 enableval="$enable_modules"
1613 for ol_val in auto yes no ; do
1614 if test "$enableval" = "$ol_val" ; then
1618 if test "$ol_arg" = "invalid" ; then
1619 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1621 ol_enable_modules="$ol_arg"
1624 ol_enable_modules="no"
1626 # end --enable-modules
1627 # OpenLDAP --enable-multimaster
1628 # Check whether --enable-multimaster or --disable-multimaster was given.
1629 if test "${enable_multimaster+set}" = set; then
1630 enableval="$enable_multimaster"
1633 for ol_val in auto yes no ; do
1634 if test "$enableval" = "$ol_val" ; then
1638 if test "$ol_arg" = "invalid" ; then
1639 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1641 ol_enable_multimaster="$ol_arg"
1644 ol_enable_multimaster="no"
1646 # end --enable-multimaster
1647 # OpenLDAP --enable-phonetic
1648 # Check whether --enable-phonetic or --disable-phonetic was given.
1649 if test "${enable_phonetic+set}" = set; then
1650 enableval="$enable_phonetic"
1653 for ol_val in auto yes no ; do
1654 if test "$enableval" = "$ol_val" ; then
1658 if test "$ol_arg" = "invalid" ; then
1659 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1661 ol_enable_phonetic="$ol_arg"
1664 ol_enable_phonetic="no"
1666 # end --enable-phonetic
1667 # OpenLDAP --enable-rlookups
1668 # Check whether --enable-rlookups or --disable-rlookups was given.
1669 if test "${enable_rlookups+set}" = set; then
1670 enableval="$enable_rlookups"
1673 for ol_val in auto yes no ; do
1674 if test "$enableval" = "$ol_val" ; then
1678 if test "$ol_arg" = "invalid" ; then
1679 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1681 ol_enable_rlookups="$ol_arg"
1684 ol_enable_rlookups="auto"
1686 # end --enable-rlookups
1687 # OpenLDAP --enable-aci
1688 # Check whether --enable-aci or --disable-aci was given.
1689 if test "${enable_aci+set}" = set; then
1690 enableval="$enable_aci"
1693 for ol_val in auto yes no ; do
1694 if test "$enableval" = "$ol_val" ; then
1698 if test "$ol_arg" = "invalid" ; then
1699 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1701 ol_enable_aci="$ol_arg"
1707 # OpenLDAP --enable-wrappers
1708 # Check whether --enable-wrappers or --disable-wrappers was given.
1709 if test "${enable_wrappers+set}" = set; then
1710 enableval="$enable_wrappers"
1713 for ol_val in auto yes no ; do
1714 if test "$enableval" = "$ol_val" ; then
1718 if test "$ol_arg" = "invalid" ; then
1719 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1721 ol_enable_wrappers="$ol_arg"
1724 ol_enable_wrappers="no"
1726 # end --enable-wrappers
1727 # OpenLDAP --enable-dynamic
1728 # Check whether --enable-dynamic or --disable-dynamic was given.
1729 if test "${enable_dynamic+set}" = set; then
1730 enableval="$enable_dynamic"
1733 for ol_val in auto yes no ; do
1734 if test "$enableval" = "$ol_val" ; then
1738 if test "$ol_arg" = "invalid" ; then
1739 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1741 ol_enable_dynamic="$ol_arg"
1744 ol_enable_dynamic="no"
1746 # end --enable-dynamic
1748 # OpenLDAP --enable-dnssrv
1749 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1750 if test "${enable_dnssrv+set}" = set; then
1751 enableval="$enable_dnssrv"
1754 for ol_val in auto yes no ; do
1755 if test "$enableval" = "$ol_val" ; then
1759 if test "$ol_arg" = "invalid" ; then
1760 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1762 ol_enable_dnssrv="$ol_arg"
1765 ol_enable_dnssrv="no"
1767 # end --enable-dnssrv
1768 # OpenLDAP --with-dnssrv_module
1769 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1770 if test "${with_dnssrv_module+set}" = set; then
1771 withval="$with_dnssrv_module"
1774 for ol_val in static dynamic ; do
1775 if test "$withval" = "$ol_val" ; then
1779 if test "$ol_arg" = "invalid" ; then
1780 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1782 ol_with_dnssrv_module="$ol_arg"
1785 ol_with_dnssrv_module="static"
1787 # end --with-dnssrv_module
1789 # OpenLDAP --enable-ldap
1790 # Check whether --enable-ldap or --disable-ldap was given.
1791 if test "${enable_ldap+set}" = set; then
1792 enableval="$enable_ldap"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1803 ol_enable_ldap="$ol_arg"
1809 # OpenLDAP --with-ldap_module
1810 # Check whether --with-ldap_module or --without-ldap_module was given.
1811 if test "${with_ldap_module+set}" = set; then
1812 withval="$with_ldap_module"
1815 for ol_val in static dynamic ; do
1816 if test "$withval" = "$ol_val" ; then
1820 if test "$ol_arg" = "invalid" ; then
1821 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1823 ol_with_ldap_module="$ol_arg"
1826 ol_with_ldap_module="static"
1828 # end --with-ldap_module
1830 # OpenLDAP --enable-ldbm
1831 # Check whether --enable-ldbm or --disable-ldbm was given.
1832 if test "${enable_ldbm+set}" = set; then
1833 enableval="$enable_ldbm"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1844 ol_enable_ldbm="$ol_arg"
1847 ol_enable_ldbm="yes"
1850 # OpenLDAP --with-ldbm_api
1851 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1852 if test "${with_ldbm_api+set}" = set; then
1853 withval="$with_ldbm_api"
1856 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1857 if test "$withval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1864 ol_with_ldbm_api="$ol_arg"
1867 ol_with_ldbm_api="auto"
1869 # end --with-ldbm_api
1871 # OpenLDAP --with-ldbm_module
1872 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1873 if test "${with_ldbm_module+set}" = set; then
1874 withval="$with_ldbm_module"
1877 for ol_val in static dynamic ; do
1878 if test "$withval" = "$ol_val" ; then
1882 if test "$ol_arg" = "invalid" ; then
1883 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1885 ol_with_ldbm_module="$ol_arg"
1888 ol_with_ldbm_module="static"
1890 # end --with-ldbm_module
1892 # OpenLDAP --with-ldbm_type
1893 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1894 if test "${with_ldbm_type+set}" = set; then
1895 withval="$with_ldbm_type"
1898 for ol_val in auto btree hash ; do
1899 if test "$withval" = "$ol_val" ; then
1903 if test "$ol_arg" = "invalid" ; then
1904 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1906 ol_with_ldbm_type="$ol_arg"
1909 ol_with_ldbm_type="auto"
1911 # end --with-ldbm_type
1913 # OpenLDAP --enable-passwd
1914 # Check whether --enable-passwd or --disable-passwd was given.
1915 if test "${enable_passwd+set}" = set; then
1916 enableval="$enable_passwd"
1919 for ol_val in auto yes no ; do
1920 if test "$enableval" = "$ol_val" ; then
1924 if test "$ol_arg" = "invalid" ; then
1925 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1927 ol_enable_passwd="$ol_arg"
1930 ol_enable_passwd="no"
1932 # end --enable-passwd
1933 # OpenLDAP --with-passwd_module
1934 # Check whether --with-passwd_module or --without-passwd_module was given.
1935 if test "${with_passwd_module+set}" = set; then
1936 withval="$with_passwd_module"
1939 for ol_val in static dynamic ; do
1940 if test "$withval" = "$ol_val" ; then
1944 if test "$ol_arg" = "invalid" ; then
1945 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1947 ol_with_passwd_module="$ol_arg"
1950 ol_with_passwd_module="static"
1952 # end --with-passwd_module
1954 # OpenLDAP --enable-shell
1955 # Check whether --enable-shell or --disable-shell was given.
1956 if test "${enable_shell+set}" = set; then
1957 enableval="$enable_shell"
1960 for ol_val in auto yes no ; do
1961 if test "$enableval" = "$ol_val" ; then
1965 if test "$ol_arg" = "invalid" ; then
1966 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1968 ol_enable_shell="$ol_arg"
1971 ol_enable_shell="no"
1973 # end --enable-shell
1974 # OpenLDAP --with-shell_module
1975 # Check whether --with-shell_module or --without-shell_module was given.
1976 if test "${with_shell_module+set}" = set; then
1977 withval="$with_shell_module"
1980 for ol_val in static dynamic ; do
1981 if test "$withval" = "$ol_val" ; then
1985 if test "$ol_arg" = "invalid" ; then
1986 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1988 ol_with_shell_module="$ol_arg"
1991 ol_with_shell_module="static"
1993 # end --with-shell_module
1995 # OpenLDAP --enable-sql
1996 # Check whether --enable-sql or --disable-sql was given.
1997 if test "${enable_sql+set}" = set; then
1998 enableval="$enable_sql"
2001 for ol_val in auto yes no ; do
2002 if test "$enableval" = "$ol_val" ; then
2006 if test "$ol_arg" = "invalid" ; then
2007 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2009 ol_enable_sql="$ol_arg"
2015 # OpenLDAP --with-sql_module
2016 # Check whether --with-sql_module or --without-sql_module was given.
2017 if test "${with_sql_module+set}" = set; then
2018 withval="$with_sql_module"
2021 for ol_val in static dynamic ; do
2022 if test "$withval" = "$ol_val" ; then
2026 if test "$ol_arg" = "invalid" ; then
2027 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2029 ol_with_sql_module="$ol_arg"
2032 ol_with_sql_module="static"
2034 # end --with-sql_module
2037 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2038 if test "${with_xxslurpdoptions+set}" = set; then
2039 withval="$with_xxslurpdoptions"
2043 # OpenLDAP --enable-slurpd
2044 # Check whether --enable-slurpd or --disable-slurpd was given.
2045 if test "${enable_slurpd+set}" = set; then
2046 enableval="$enable_slurpd"
2049 for ol_val in auto yes no ; do
2050 if test "$enableval" = "$ol_val" ; then
2054 if test "$ol_arg" = "invalid" ; then
2055 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2057 ol_enable_slurpd="$ol_arg"
2060 ol_enable_slurpd="auto"
2062 # end --enable-slurpd
2064 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2065 if test "${with_xxliboptions+set}" = set; then
2066 withval="$with_xxliboptions"
2070 # Check whether --enable-static or --disable-static was given.
2071 if test "${enable_static+set}" = set; then
2072 enableval="$enable_static"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_static=yes ;;
2076 no) enable_static=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2093 # Check whether --enable-shared or --disable-shared was given.
2094 if test "${enable_shared+set}" = set; then
2095 enableval="$enable_shared"
2096 p=${PACKAGE-default}
2097 case "$enableval" in
2098 yes) enable_shared=yes ;;
2099 no) enable_shared=no ;;
2102 # Look at the argument we got. We use all the common list separators.
2103 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2104 for pkg in $enableval; do
2105 if test "X$pkg" = "X$p"; then
2119 if test $ol_enable_slapd = no ; then
2120 if test $ol_enable_dnssrv = yes ; then
2121 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2123 if test $ol_enable_ldap = yes ; then
2124 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2126 if test $ol_enable_ldbm = yes ; then
2127 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2129 if test $ol_enable_passwd = yes ; then
2130 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2132 if test $ol_enable_shell = yes ; then
2133 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2135 if test $ol_enable_sql = yes ; then
2136 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2138 if test $ol_enable_modules = yes ; then
2139 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2141 if test $ol_enable_multimaster = yes ; then
2142 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2144 if test $ol_enable_wrappers = yes ; then
2145 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2147 if test $ol_enable_phonetic = yes ; then
2148 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2150 if test $ol_enable_rlookups = yes ; then
2151 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2153 if test $ol_enable_aci = yes ; then
2154 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2156 if test $ol_with_ldbm_api != auto ; then
2157 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2159 if test $ol_with_ldbm_type != auto ; then
2160 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2162 if test $ol_with_dnssrv_module != static ; then
2163 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2165 if test $ol_with_ldap_module != static ; then
2166 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2168 if test $ol_with_ldbm_module != static ; then
2169 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2171 if test $ol_with_passwd_module != static ; then
2172 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2174 if test $ol_with_shell_module != static ; then
2175 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2177 if test $ol_with_sql_module != static ; then
2178 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2180 if test $ol_enable_slurpd = yes ; then
2181 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2184 # force settings to no
2192 ol_enable_modules=no
2193 ol_enable_multimaster=no
2194 ol_enable_phonetic=no
2195 ol_enable_rlookups=no
2197 ol_enable_wrappers=no
2198 ol_enable_dynamic=no
2201 ol_with_ldbm_type=no
2203 ol_with_dnssrv_module=static
2204 ol_with_ldap_module=static
2205 ol_with_ldbm_module=static
2206 ol_with_passwd_module=static
2207 ol_with_shell_module=static
2208 ol_with_sql_module=static
2212 elif test $ol_enable_ldbm = no ; then
2214 if test $ol_with_ldbm_api != auto ; then
2215 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2218 if test $ol_with_ldbm_type != auto ; then
2219 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2222 if test $ol_with_ldbm_module != static ; then
2223 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2226 if test $ol_enable_modules != yes -a \
2227 $ol_enable_dnssrv = no -a \
2228 $ol_enable_ldap = no -a \
2229 $ol_enable_passwd = no -a \
2230 $ol_enable_shell = no -a \
2231 $ol_enable_sql = no ; then
2232 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2236 ol_with_ldbm_type=no
2237 ol_with_ldbm_module=static
2240 if test $ol_with_ldbm_api = gdbm -a \
2241 $ol_with_ldbm_type = btree ; then
2242 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2244 if test $ol_with_ldbm_api = mdbm -a \
2245 $ol_with_ldbm_type = btree ; then
2246 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2248 if test $ol_with_ldbm_api = ndbm -a \
2249 $ol_with_ldbm_type = btree ; then
2250 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2254 if test $ol_enable_slurpd = yes ; then
2255 if test $ol_with_threads = no ; then
2256 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2260 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2261 if test $ol_with_kerberos = no ; then
2262 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2264 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2265 if test $ol_with_kerberos != auto ; then
2266 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2272 if test $ol_enable_spasswd = yes ; then
2273 if test $ol_with_cyrus_sasl = no ; then
2274 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2279 echo "$ac_t""done" 1>&6
2302 BUILD_DNSSRV_DYNAMIC=static
2303 BUILD_LDAP_DYNAMIC=static
2304 BUILD_LDBM_DYNAMIC=static
2305 BUILD_PASSWD_DYNAMIC=static
2306 BUILD_SHELL_DYNAMIC=static
2307 BUILD_SQL_DYNAMIC=static
2309 SLAPD_MODULES_LDFLAGS=
2310 SLAPD_MODULES_CPPFLAGS=
2328 cat >> confdefs.h <<\EOF
2329 #define HAVE_MKVERSION 1
2337 *-*-aix*) if test -z "$CC" ; then
2338 case "$ol_with_threads" in
2339 auto | yes | posix) ol_aix_threads=yes ;;
2345 if test $ol_aix_threads = yes ; then
2346 if test -z "${CC}" ; then
2347 for ac_prog in cc_r xlc_r cc
2349 # Extract the first word of "$ac_prog", so it can be a program name with args.
2350 set dummy $ac_prog; ac_word=$2
2351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_word" >&5
2353 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2354 echo $ac_n "(cached) $ac_c" 1>&6
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2361 for ac_dir in $ac_dummy; do
2362 test -z "$ac_dir" && ac_dir=.
2363 if test -f $ac_dir/$ac_word; then
2364 ac_cv_prog_CC="$ac_prog"
2372 if test -n "$CC"; then
2373 echo "$ac_t""$CC" 1>&6
2375 echo "$ac_t""no" 1>&6
2378 test -n "$CC" && break
2382 if test "$CC" = cc ; then
2383 if test $ol_with_threads != auto ; then
2384 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2386 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2392 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2393 ol_with_threads=posix
2394 ol_cv_pthread_create=yes
2398 if test -z "${CC}"; then
2401 # Extract the first word of "$ac_prog", so it can be a program name with args.
2402 set dummy $ac_prog; ac_word=$2
2403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_word" >&5
2405 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2413 for ac_dir in $ac_dummy; do
2414 test -z "$ac_dir" && ac_dir=.
2415 if test -f $ac_dir/$ac_word; then
2416 ac_cv_prog_CC="$ac_prog"
2424 if test -n "$CC"; then
2425 echo "$ac_t""$CC" 1>&6
2427 echo "$ac_t""no" 1>&6
2430 test -n "$CC" && break
2438 # Check whether --enable-fast-install or --disable-fast-install was given.
2439 if test "${enable_fast_install+set}" = set; then
2440 enableval="$enable_fast_install"
2441 p=${PACKAGE-default}
2442 case "$enableval" in
2443 yes) enable_fast_install=yes ;;
2444 no) enable_fast_install=no ;;
2446 enable_fast_install=no
2447 # Look at the argument we got. We use all the common list separators.
2448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2449 for pkg in $enableval; do
2450 if test "X$pkg" = "X$p"; then
2451 enable_fast_install=yes
2458 enable_fast_install=yes
2461 # Extract the first word of "ranlib", so it can be a program name with args.
2462 set dummy ranlib; ac_word=$2
2463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2464 echo "configure:2465: checking for $ac_word" >&5
2465 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2466 echo $ac_n "(cached) $ac_c" 1>&6
2468 if test -n "$RANLIB"; then
2469 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2473 for ac_dir in $ac_dummy; do
2474 test -z "$ac_dir" && ac_dir=.
2475 if test -f $ac_dir/$ac_word; then
2476 ac_cv_prog_RANLIB="ranlib"
2481 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2484 RANLIB="$ac_cv_prog_RANLIB"
2485 if test -n "$RANLIB"; then
2486 echo "$ac_t""$RANLIB" 1>&6
2488 echo "$ac_t""no" 1>&6
2491 # Extract the first word of "gcc", so it can be a program name with args.
2492 set dummy gcc; ac_word=$2
2493 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2494 echo "configure:2495: checking for $ac_word" >&5
2495 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2496 echo $ac_n "(cached) $ac_c" 1>&6
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503 for ac_dir in $ac_dummy; do
2504 test -z "$ac_dir" && ac_dir=.
2505 if test -f $ac_dir/$ac_word; then
2514 if test -n "$CC"; then
2515 echo "$ac_t""$CC" 1>&6
2517 echo "$ac_t""no" 1>&6
2520 if test -z "$CC"; then
2521 # Extract the first word of "cc", so it can be a program name with args.
2522 set dummy cc; ac_word=$2
2523 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2524 echo "configure:2525: checking for $ac_word" >&5
2525 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2526 echo $ac_n "(cached) $ac_c" 1>&6
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
2531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2534 for ac_dir in $ac_dummy; do
2535 test -z "$ac_dir" && ac_dir=.
2536 if test -f $ac_dir/$ac_word; then
2537 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2538 ac_prog_rejected=yes
2546 if test $ac_prog_rejected = yes; then
2547 # We found a bogon in the path, so make sure we never use it.
2548 set dummy $ac_cv_prog_CC
2550 if test $# -gt 0; then
2551 # We chose a different compiler from the bogus one.
2552 # However, it has the same basename, so the bogon will be chosen
2553 # first if we set CC to just the basename; use the full file name.
2555 set dummy "$ac_dir/$ac_word" "$@"
2563 if test -n "$CC"; then
2564 echo "$ac_t""$CC" 1>&6
2566 echo "$ac_t""no" 1>&6
2569 if test -z "$CC"; then
2570 case "`uname -s`" in
2571 *win32* | *WIN32* | *CYGWIN*)
2572 # Extract the first word of "cl", so it can be a program name with args.
2573 set dummy cl; ac_word=$2
2574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_word" >&5
2576 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 if test -n "$CC"; then
2580 ac_cv_prog_CC="$CC" # Let the user override the test.
2582 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2584 for ac_dir in $ac_dummy; do
2585 test -z "$ac_dir" && ac_dir=.
2586 if test -f $ac_dir/$ac_word; then
2595 if test -n "$CC"; then
2596 echo "$ac_t""$CC" 1>&6
2598 echo "$ac_t""no" 1>&6
2603 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2606 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2607 echo "configure:2608: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
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 cat > conftest.$ac_ext << EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2624 ac_cv_prog_cc_works=yes
2625 # If we can't run a trivial program, we are probably using a cross compiler.
2626 if (./conftest; exit) 2>/dev/null; then
2627 ac_cv_prog_cc_cross=no
2629 ac_cv_prog_cc_cross=yes
2632 echo "configure: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 ac_cv_prog_cc_works=no
2638 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2641 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2642 cross_compiling=$ac_cv_prog_cc_cross
2644 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2645 if test $ac_cv_prog_cc_works = no; then
2646 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2648 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2649 echo "configure:2650: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2650 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2651 cross_compiling=$ac_cv_prog_cc_cross
2653 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2654 echo "configure:2655: checking whether we are using GNU C" >&5
2655 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.c <<EOF
2663 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2670 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2672 if test $ac_cv_prog_gcc = yes; then
2678 ac_test_CFLAGS="${CFLAGS+set}"
2679 ac_save_CFLAGS="$CFLAGS"
2681 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2682 echo "configure:2683: checking whether ${CC-cc} accepts -g" >&5
2683 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2686 echo 'void f(){}' > conftest.c
2687 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2696 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2697 if test "$ac_test_CFLAGS" = set; then
2698 CFLAGS="$ac_save_CFLAGS"
2699 elif test $ac_cv_prog_cc_g = yes; then
2700 if test "$GCC" = yes; then
2706 if test "$GCC" = yes; then
2713 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2714 if test "${with_gnu_ld+set}" = set; then
2715 withval="$with_gnu_ld"
2716 test "$withval" = no || with_gnu_ld=yes
2722 if test "$ac_cv_prog_gcc" = yes; then
2723 # Check if gcc -print-prog-name=ld gives a path.
2724 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2725 echo "configure:2726: checking for ld used by GCC" >&5
2726 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2728 # Accept absolute paths.
2729 [\\/]* | [A-Za-z]:[\\/]*)
2730 re_direlt='/[^/][^/]*/\.\./'
2731 # Canonicalize the path of ld
2732 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2733 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2734 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2736 test -z "$LD" && LD="$ac_prog"
2739 # If it fails, then pretend we aren't using GCC.
2743 # If it is relative, then search for the first ld in PATH.
2747 elif test "$with_gnu_ld" = yes; then
2748 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2749 echo "configure:2750: checking for GNU ld" >&5
2751 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2752 echo "configure:2753: checking for non-GNU ld" >&5
2754 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2757 if test -z "$LD"; then
2758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2759 for ac_dir in $PATH; do
2760 test -z "$ac_dir" && ac_dir=.
2761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2762 ac_cv_path_LD="$ac_dir/$ac_prog"
2763 # Check to see if the program is GNU ld. I'd rather use --version,
2764 # but apparently some GNU ld's only accept -v.
2765 # Break only if it was the GNU/non-GNU ld that we prefer.
2766 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2767 test "$with_gnu_ld" != no && break
2769 test "$with_gnu_ld" != yes && break
2775 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2780 if test -n "$LD"; then
2781 echo "$ac_t""$LD" 1>&6
2783 echo "$ac_t""no" 1>&6
2785 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2786 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2787 echo "configure:2788: checking if the linker ($LD) is GNU ld" >&5
2788 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2789 echo $ac_n "(cached) $ac_c" 1>&6
2791 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2792 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2793 ac_cv_prog_gnu_ld=yes
2795 ac_cv_prog_gnu_ld=no
2799 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2802 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2803 echo "configure:2804: checking for BSD-compatible nm" >&5
2804 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 if test -n "$NM"; then
2808 # Let the user override the test.
2811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2812 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2813 test -z "$ac_dir" && ac_dir=.
2814 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2815 # Check to see if the nm accepts a BSD-compat flag.
2816 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2817 # nm: unknown option "B" ignored
2818 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2819 ac_cv_path_NM="$ac_dir/nm -B"
2821 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2822 ac_cv_path_NM="$ac_dir/nm -p"
2825 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2826 continue # so that we can try to find one that supports BSD flags
2831 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2836 echo "$ac_t""$NM" 1>&6
2838 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2839 echo "configure:2840: checking whether ln -s works" >&5
2840 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2844 if ln -s X conftestdata 2>/dev/null
2847 ac_cv_prog_LN_S="ln -s"
2852 LN_S="$ac_cv_prog_LN_S"
2853 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2854 echo "$ac_t""yes" 1>&6
2856 echo "$ac_t""no" 1>&6
2859 if test $host != $build; then
2860 ac_tool_prefix=${host_alias}-
2867 NONE) lt_target="$host" ;;
2868 *) lt_target="$target" ;;
2871 # Check for any special flags to pass to ltconfig.
2872 libtool_flags="--cache-file=$cache_file"
2873 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2874 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2875 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2876 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2877 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2878 libtool_flags="$libtool_flags --enable-dlopen"
2879 libtool_flags="$libtool_flags --enable-win32-dll"
2880 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2881 if test "${enable_libtool_lock+set}" = set; then
2882 enableval="$enable_libtool_lock"
2886 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2887 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2889 # Some flags need to be propagated to the compiler or linker for good
2891 case "$lt_target" in
2893 # Find out which ABI we are using.
2894 echo '#line 2895 "configure"' > conftest.$ac_ext
2895 if { (eval echo configure:2896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2896 case "`/usr/bin/file conftest.o`" in
2912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2913 SAVE_CFLAGS="$CFLAGS"
2914 CFLAGS="$CFLAGS -belf"
2915 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2916 echo "configure:2917: checking whether the C compiler needs -belf" >&5
2917 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.$ac_ext <<EOF
2921 #line 2922 "configure"
2922 #include "confdefs.h"
2928 if { (eval echo configure:2929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2930 lt_cv_cc_needs_belf=yes
2932 echo "configure: failed program was:" >&5
2933 cat conftest.$ac_ext >&5
2935 lt_cv_cc_needs_belf=no
2940 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2941 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2942 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2943 CFLAGS="$SAVE_CFLAGS"
2947 *-*-cygwin* | *-*-mingw*)
2948 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2949 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2950 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2951 echo "configure:2952: checking for $ac_word" >&5
2952 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2953 echo $ac_n "(cached) $ac_c" 1>&6
2955 if test -n "$DLLTOOL"; then
2956 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2960 for ac_dir in $ac_dummy; do
2961 test -z "$ac_dir" && ac_dir=.
2962 if test -f $ac_dir/$ac_word; then
2963 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2970 DLLTOOL="$ac_cv_prog_DLLTOOL"
2971 if test -n "$DLLTOOL"; then
2972 echo "$ac_t""$DLLTOOL" 1>&6
2974 echo "$ac_t""no" 1>&6
2978 if test -z "$ac_cv_prog_DLLTOOL"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "dlltool", so it can be a program name with args.
2981 set dummy dlltool; ac_word=$2
2982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2983 echo "configure:2984: checking for $ac_word" >&5
2984 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2985 echo $ac_n "(cached) $ac_c" 1>&6
2987 if test -n "$DLLTOOL"; then
2988 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2992 for ac_dir in $ac_dummy; do
2993 test -z "$ac_dir" && ac_dir=.
2994 if test -f $ac_dir/$ac_word; then
2995 ac_cv_prog_DLLTOOL="dlltool"
3000 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3003 DLLTOOL="$ac_cv_prog_DLLTOOL"
3004 if test -n "$DLLTOOL"; then
3005 echo "$ac_t""$DLLTOOL" 1>&6
3007 echo "$ac_t""no" 1>&6
3015 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}as; ac_word=$2
3017 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3018 echo "configure:3019: checking for $ac_word" >&5
3019 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3020 echo $ac_n "(cached) $ac_c" 1>&6
3022 if test -n "$AS"; then
3023 ac_cv_prog_AS="$AS" # Let the user override the test.
3025 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3027 for ac_dir in $ac_dummy; do
3028 test -z "$ac_dir" && ac_dir=.
3029 if test -f $ac_dir/$ac_word; then
3030 ac_cv_prog_AS="${ac_tool_prefix}as"
3038 if test -n "$AS"; then
3039 echo "$ac_t""$AS" 1>&6
3041 echo "$ac_t""no" 1>&6
3045 if test -z "$ac_cv_prog_AS"; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "as", so it can be a program name with args.
3048 set dummy as; ac_word=$2
3049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3050 echo "configure:3051: checking for $ac_word" >&5
3051 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 if test -n "$AS"; then
3055 ac_cv_prog_AS="$AS" # Let the user override the test.
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3059 for ac_dir in $ac_dummy; do
3060 test -z "$ac_dir" && ac_dir=.
3061 if test -f $ac_dir/$ac_word; then
3067 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3071 if test -n "$AS"; then
3072 echo "$ac_t""$AS" 1>&6
3074 echo "$ac_t""no" 1>&6
3082 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3083 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3084 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3085 echo "configure:3086: checking for $ac_word" >&5
3086 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3087 echo $ac_n "(cached) $ac_c" 1>&6
3089 if test -n "$OBJDUMP"; then
3090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3094 for ac_dir in $ac_dummy; do
3095 test -z "$ac_dir" && ac_dir=.
3096 if test -f $ac_dir/$ac_word; then
3097 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3104 OBJDUMP="$ac_cv_prog_OBJDUMP"
3105 if test -n "$OBJDUMP"; then
3106 echo "$ac_t""$OBJDUMP" 1>&6
3108 echo "$ac_t""no" 1>&6
3112 if test -z "$ac_cv_prog_OBJDUMP"; then
3113 if test -n "$ac_tool_prefix"; then
3114 # Extract the first word of "objdump", so it can be a program name with args.
3115 set dummy objdump; ac_word=$2
3116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117 echo "configure:3118: checking for $ac_word" >&5
3118 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 if test -n "$OBJDUMP"; then
3122 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3126 for ac_dir in $ac_dummy; do
3127 test -z "$ac_dir" && ac_dir=.
3128 if test -f $ac_dir/$ac_word; then
3129 ac_cv_prog_OBJDUMP="objdump"
3134 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3137 OBJDUMP="$ac_cv_prog_OBJDUMP"
3138 if test -n "$OBJDUMP"; then
3139 echo "$ac_t""$OBJDUMP" 1>&6
3141 echo "$ac_t""no" 1>&6
3154 # Save cache, so that ltconfig can load it
3157 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3158 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3159 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3160 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3161 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3162 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3163 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3164 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3166 # Reload cache, that may have been modified by ltconfig
3169 # This can be used to rebuild libtool when needed
3170 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3172 # Always use our own libtool.
3173 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3175 # Redirect the config.log output again, so that the ltconfig log is not
3176 # clobbered by the next message.
3177 exec 5>>./config.log
3180 for ac_prog in mawk gawk nawk awk
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3185 echo "configure:3186: checking for $ac_word" >&5
3186 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test -n "$AWK"; then
3190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3194 for ac_dir in $ac_dummy; do
3195 test -z "$ac_dir" && ac_dir=.
3196 if test -f $ac_dir/$ac_word; then
3197 ac_cv_prog_AWK="$ac_prog"
3204 AWK="$ac_cv_prog_AWK"
3205 if test -n "$AWK"; then
3206 echo "$ac_t""$AWK" 1>&6
3208 echo "$ac_t""no" 1>&6
3211 test -n "$AWK" && break
3214 # test for ln hardlink support
3215 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3216 echo "configure:3217: checking whether ln works" >&5
3217 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3220 rm -f conftest.src conftest.dst
3221 echo "conftest" > conftest.src
3222 if ln conftest.src conftest.dst 2>/dev/null
3224 ol_cv_prog_LN_H="ln"
3226 ol_cv_prog_LN_H="cp"
3228 rm -f conftest.src conftest.dst
3231 LN_H="$ol_cv_prog_LN_H"
3232 if test "$ol_cv_prog_LN_H" = "ln"; then
3233 echo "$ac_t""yes" 1>&6
3235 echo "$ac_t""no" 1>&6
3238 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3239 echo "configure:3240: checking whether ln -s works" >&5
3240 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3244 if ln -s X conftestdata 2>/dev/null
3247 ac_cv_prog_LN_S="ln -s"
3252 LN_S="$ac_cv_prog_LN_S"
3253 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3254 echo "$ac_t""yes" 1>&6
3256 echo "$ac_t""no" 1>&6
3260 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3264 # Extract the first word of "sendmail", so it can be a program name with args.
3265 set dummy sendmail; ac_word=$2
3266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3267 echo "configure:3268: checking for $ac_word" >&5
3268 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3273 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3276 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3280 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3281 for ac_dir in $ac_dummy; do
3282 test -z "$ac_dir" && ac_dir=.
3283 if test -f $ac_dir/$ac_word; then
3284 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3289 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3293 SENDMAIL="$ac_cv_path_SENDMAIL"
3294 if test -n "$SENDMAIL"; then
3295 echo "$ac_t""$SENDMAIL" 1>&6
3297 echo "$ac_t""no" 1>&6
3300 # Extract the first word of "vi", so it can be a program name with args.
3301 set dummy vi; ac_word=$2
3302 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_word" >&5
3304 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3309 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3312 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3316 ac_dummy="$PATH:/usr/ucb"
3317 for ac_dir in $ac_dummy; do
3318 test -z "$ac_dir" && ac_dir=.
3319 if test -f $ac_dir/$ac_word; then
3320 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3325 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3329 EDITOR="$ac_cv_path_EDITOR"
3330 if test -n "$EDITOR"; then
3331 echo "$ac_t""$EDITOR" 1>&6
3333 echo "$ac_t""no" 1>&6
3336 # Extract the first word of "finger", so it can be a program name with args.
3337 set dummy finger; ac_word=$2
3338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_word" >&5
3340 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3345 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3348 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3352 ac_dummy="$PATH:/usr/ucb"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3356 ac_cv_path_FINGER="$ac_dir/$ac_word"
3361 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3365 FINGER="$ac_cv_path_FINGER"
3366 if test -n "$FINGER"; then
3367 echo "$ac_t""$FINGER" 1>&6
3369 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3374 echo "configure:3375: checking how to run the C preprocessor" >&5
3375 # On Suns, sometimes $CPP names a directory.
3376 if test -n "$CPP" && test -d "$CPP"; then
3379 if test -z "$CPP"; then
3380 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 # This must be in double quotes, not single quotes, because CPP may get
3384 # substituted into the Makefile and "${CC-cc}" will confuse make.
3386 # On the NeXT, cc -E runs the code through the compiler's parser,
3387 # not just through cpp.
3388 cat > conftest.$ac_ext <<EOF
3389 #line 3390 "configure"
3390 #include "confdefs.h"
3394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3395 { (eval echo configure:3396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3397 if test -z "$ac_err"; then
3401 echo "configure: failed program was:" >&5
3402 cat conftest.$ac_ext >&5
3404 CPP="${CC-cc} -E -traditional-cpp"
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3412 { (eval echo configure:3413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3414 if test -z "$ac_err"; then
3418 echo "configure: failed program was:" >&5
3419 cat conftest.$ac_ext >&5
3421 CPP="${CC-cc} -nologo -E"
3422 cat > conftest.$ac_ext <<EOF
3423 #line 3424 "configure"
3424 #include "confdefs.h"
3428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3429 { (eval echo configure:3430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3431 if test -z "$ac_err"; then
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3445 ac_cv_prog_CPP="$CPP"
3447 CPP="$ac_cv_prog_CPP"
3449 ac_cv_prog_CPP="$CPP"
3451 echo "$ac_t""$CPP" 1>&6
3454 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3455 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3457 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3458 echo "configure: warning: programs compiled here do run here..." 1>&2
3459 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3461 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3462 echo "configure: warning: programs compiled here do not run here..." 1>&2
3463 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3466 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3467 echo "configure:3468: checking for AIX" >&5
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3477 egrep "yes" >/dev/null 2>&1; then
3479 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3480 #define _ALL_SOURCE 1
3485 echo "$ac_t""no" 1>&6
3490 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3491 echo "configure:3492: checking for POSIXized ISC" >&5
3492 if test -d /etc/conf/kconfig.d &&
3493 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3495 echo "$ac_t""yes" 1>&6
3496 ISC=yes # If later tests want to check for ISC.
3497 cat >> confdefs.h <<\EOF
3498 #define _POSIX_SOURCE 1
3501 if test "$GCC" = yes; then
3507 echo "$ac_t""no" 1>&6
3511 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3512 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3513 echo "configure:3514: checking for minix/config.h" >&5
3514 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 cat > conftest.$ac_ext <<EOF
3518 #line 3519 "configure"
3519 #include "confdefs.h"
3520 #include <minix/config.h>
3522 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3523 { (eval echo configure:3524: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3524 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3525 if test -z "$ac_err"; then
3527 eval "ac_cv_header_$ac_safe=yes"
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3533 eval "ac_cv_header_$ac_safe=no"
3537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3538 echo "$ac_t""yes" 1>&6
3541 echo "$ac_t""no" 1>&6
3545 if test "$MINIX" = yes; then
3546 cat >> confdefs.h <<\EOF
3547 #define _POSIX_SOURCE 1
3550 cat >> confdefs.h <<\EOF
3551 #define _POSIX_1_SOURCE 2
3554 cat >> confdefs.h <<\EOF
3561 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3562 echo "configure:3563: checking for Cygwin environment" >&5
3563 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3573 #define __CYGWIN__ __CYGWIN32__
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_cygwin" 1>&6
3592 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3593 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3594 echo "configure:3595: checking for mingw32 environment" >&5
3595 if eval "test \"\${ac_cv_mingw32+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_mingw32" 1>&6
3620 test "$ac_cv_mingw32" = yes && MINGW32=yes
3621 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3622 echo "configure:3623: checking for EMX OS/2 environment" >&5
3623 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3634 if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3638 echo "configure: failed program was:" >&5
3639 cat conftest.$ac_ext >&5
3646 echo "$ac_t""$ac_cv_emxos2" 1>&6
3648 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3652 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3653 echo "configure:3654: checking for executable suffix" >&5
3654 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3661 echo 'int main () { return 0; }' > conftest.$ac_ext
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3664 for file in conftest.*; do
3666 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3667 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3671 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3674 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3679 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3680 echo "$ac_t""${ac_cv_exeext}" 1>&6
3683 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3684 echo "configure:3685: checking for object suffix" >&5
3685 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3689 echo 'int i = 1;' > conftest.$ac_ext
3690 if { (eval echo configure:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3691 for ac_file in conftest.*; do
3694 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3698 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3703 echo "$ac_t""$ac_cv_objext" 1>&6
3704 OBJEXT=$ac_cv_objext
3705 ac_objext=$ac_cv_objext
3708 cat >> confdefs.h <<EOF
3709 #define EXEEXT "${EXEEXT}"
3713 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3714 echo "configure:3715: checking for be_app in -lbe" >&5
3715 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3716 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3717 echo $ac_n "(cached) $ac_c" 1>&6
3719 ac_save_LIBS="$LIBS"
3720 LIBS="-lbe -lroot -lnet $LIBS"
3721 cat > conftest.$ac_ext <<EOF
3722 #line 3723 "configure"
3723 #include "confdefs.h"
3724 /* Override any gcc2 internal prototype to avoid an error. */
3725 /* We use char because int might match the return type of a gcc2
3726 builtin and then its argument prototype would still apply. */
3733 if { (eval echo configure:3734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3735 eval "ac_cv_lib_$ac_lib_var=yes"
3737 echo "configure: failed program was:" >&5
3738 cat conftest.$ac_ext >&5
3740 eval "ac_cv_lib_$ac_lib_var=no"
3743 LIBS="$ac_save_LIBS"
3746 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3747 echo "$ac_t""yes" 1>&6
3748 LIBS="$LIBS -lbe -lroot -lnet"
3750 echo "$ac_t""no" 1>&6
3758 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3759 echo "configure:3760: checking for ${CC-cc} option to accept ANSI C" >&5
3760 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3761 echo $ac_n "(cached) $ac_c" 1>&6
3763 am_cv_prog_cc_stdc=no
3765 # Don't try gcc -ansi; that turns off useful extensions and
3766 # breaks some systems' header files.
3767 # AIX -qlanglvl=ansi
3768 # Ultrix and OSF/1 -std1
3769 # HP-UX 10.20 and later -Ae
3770 # HP-UX older versions -Aa -D_HPUX_SOURCE
3771 # SVR4 -Xc -D__EXTENSIONS__
3772 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3774 CC="$ac_save_CC $ac_arg"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3780 #include <sys/types.h>
3781 #include <sys/stat.h>
3782 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3783 struct buf { int x; };
3784 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3785 static char *e (p, i)
3791 static char *f (char * (*g) (char **, int), char **p, ...)
3796 s = g (p, va_arg (v,int));
3800 int test (int i, double x);
3801 struct s1 {int (*f) (int a);};
3802 struct s2 {int (*f) (double a);};
3803 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3809 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3813 if { (eval echo configure:3814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3815 am_cv_prog_cc_stdc="$ac_arg"; break
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3826 if test -z "$am_cv_prog_cc_stdc"; then
3827 echo "$ac_t""none needed" 1>&6
3829 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3831 case "x$am_cv_prog_cc_stdc" in
3833 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3836 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3837 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3840 # test for make depend flag
3843 if test -z "${MKDEP}"; then
3845 if test -z "${MKDEP_FLAGS}"; then
3846 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3847 echo "configure:3848: checking for ${OL_MKDEP} depend flag" >&5
3848 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3849 echo $ac_n "(cached) $ac_c" 1>&6
3853 for flag in "-M" "-xM"; do
3854 cat > conftest.c <<EOF
3857 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3858 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3860 if test ! -f conftest."${ac_object}" ; then
3862 OL_MKDEP_FLAGS="$flag"
3871 echo "$ac_t""$ol_cv_mkdep" 1>&6
3874 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3879 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3884 if test "${ol_cv_mkdep}" = no ; then
3885 # this will soon become an error
3886 echo "configure: warning: do not know how to generate dependencies" 1>&2
3889 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3890 echo "configure:3891: checking for afopen in -ls" >&5
3891 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3892 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3893 echo $ac_n "(cached) $ac_c" 1>&6
3895 ac_save_LIBS="$LIBS"
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 /* Override any gcc2 internal prototype to avoid an error. */
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3909 if { (eval echo configure:3910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 eval "ac_cv_lib_$ac_lib_var=yes"
3913 echo "configure: failed program was:" >&5
3914 cat conftest.$ac_ext >&5
3916 eval "ac_cv_lib_$ac_lib_var=no"
3919 LIBS="$ac_save_LIBS"
3922 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3926 cat >> confdefs.h <<\EOF
3927 #define HAVE_AIX_SECURITY 1
3932 echo "$ac_t""no" 1>&6
3937 for ac_func in getaddrinfo
3939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3940 echo "configure:3941: checking for $ac_func" >&5
3941 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
3942 echo $ac_n "(cached) $ac_c" 1>&6
3944 cat > conftest.$ac_ext <<EOF
3945 #line 3946 "configure"
3946 #include "confdefs.h"
3947 /* System header to define __stub macros and hopefully few prototypes,
3948 which can conflict with char $ac_func(); below. */
3950 /* Override any gcc2 internal prototype to avoid an error. */
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3958 /* The GNU C library defines this for functions which it implements
3959 to always fail with ENOSYS. Some functions are actually named
3960 something starting with __ and the normal name is an alias. */
3961 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3969 if { (eval echo configure:3970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3971 eval "ac_cv_func_$ac_func=yes"
3973 echo "configure: failed program was:" >&5
3974 cat conftest.$ac_ext >&5
3976 eval "ac_cv_func_$ac_func=no"
3981 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3982 echo "$ac_t""yes" 1>&6
3983 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3984 cat >> confdefs.h <<EOF
3985 #define $ac_tr_func 1
3989 echo "$ac_t""no" 1>&6
3994 if test $ac_cv_func_getaddrinfo = no ; then
3995 if test $ol_enable_ipv6 = yes ; then
3996 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4001 if test $ol_enable_local != no ; then
4002 for ac_hdr in sys/un.h
4004 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4005 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4006 echo "configure:4007: checking for $ac_hdr" >&5
4007 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 cat > conftest.$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4015 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4016 { (eval echo configure:4017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4017 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4018 if test -z "$ac_err"; then
4020 eval "ac_cv_header_$ac_safe=yes"
4023 echo "configure: failed program was:" >&5
4024 cat conftest.$ac_ext >&5
4026 eval "ac_cv_header_$ac_safe=no"
4030 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4031 echo "$ac_t""yes" 1>&6
4032 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4033 cat >> confdefs.h <<EOF
4034 #define $ac_tr_hdr 1
4038 echo "$ac_t""no" 1>&6
4043 if test $ol_enable_local = auto ; then
4044 ol_enable_local=$ac_cv_header_sys_un_h
4045 elif test $ac_cv_header_sys_un_h = no ; then
4046 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
4051 if test $ol_enable_modules != no ; then
4052 for ac_hdr in ltdl.h
4054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4056 echo "configure:4057: checking for $ac_hdr" >&5
4057 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4058 echo $ac_n "(cached) $ac_c" 1>&6
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4066 { (eval echo configure:4067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4068 if test -z "$ac_err"; then
4070 eval "ac_cv_header_$ac_safe=yes"
4073 echo "configure: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 eval "ac_cv_header_$ac_safe=no"
4080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4081 echo "$ac_t""yes" 1>&6
4082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4083 cat >> confdefs.h <<EOF
4084 #define $ac_tr_hdr 1
4088 echo "$ac_t""no" 1>&6
4093 if test $ac_cv_header_ltdl_h = no ; then
4094 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4097 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4098 echo "configure:4099: checking for lt_dlinit in -lltdl" >&5
4099 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4101 echo $ac_n "(cached) $ac_c" 1>&6
4103 ac_save_LIBS="$LIBS"
4105 cat > conftest.$ac_ext <<EOF
4106 #line 4107 "configure"
4107 #include "confdefs.h"
4108 /* Override any gcc2 internal prototype to avoid an error. */
4109 /* We use char because int might match the return type of a gcc2
4110 builtin and then its argument prototype would still apply. */
4117 if { (eval echo configure:4118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4119 eval "ac_cv_lib_$ac_lib_var=yes"
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 eval "ac_cv_lib_$ac_lib_var=no"
4127 LIBS="$ac_save_LIBS"
4130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4131 echo "$ac_t""yes" 1>&6
4134 cat >> confdefs.h <<\EOF
4135 #define HAVE_LIBLTDL 1
4140 echo "$ac_t""no" 1>&6
4144 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4145 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4149 ol_with_dnssrv_module=static
4150 ol_with_ldap_module=static
4151 ol_with_ldbm_module=static
4152 ol_with_passwd_module=static
4153 ol_with_shell_module=static
4154 ol_with_sql_module=static
4158 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4159 echo "configure:4160: checking for EBCDIC" >&5
4160 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4161 echo $ac_n "(cached) $ac_c" 1>&6
4164 cat > conftest.$ac_ext <<EOF
4165 #line 4166 "configure"
4166 #include "confdefs.h"
4169 #include <__ASCII__/generate_error.h>
4173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4174 { (eval echo configure:4175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4176 if test -z "$ac_err"; then
4178 ol_cv_cpp_ebcdic=yes
4181 echo "configure: failed program was:" >&5
4182 cat conftest.$ac_ext >&5
4189 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4190 if test $ol_cv_cpp_ebcdic = yes ; then
4191 cat >> confdefs.h <<\EOF
4192 #define HAVE_EBCDIC 1
4197 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4198 echo "configure:4199: checking for ANSI C header files" >&5
4199 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4211 { (eval echo configure:4212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4213 if test -z "$ac_err"; then
4215 ol_cv_header_stdc=yes
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 ol_cv_header_stdc=no
4225 if test $ol_cv_header_stdc = yes; then
4226 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4227 cat > conftest.$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 egrep "memchr" >/dev/null 2>&1; then
4237 ol_cv_header_stdc=no
4243 if test $ol_cv_header_stdc = yes; then
4244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251 egrep "free" >/dev/null 2>&1; then
4255 ol_cv_header_stdc=no
4261 if test $ol_cv_header_stdc = yes; then
4262 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4263 if test "$cross_compiling" = yes; then
4266 cat > conftest.$ac_ext <<EOF
4267 #line 4268 "configure"
4268 #include "confdefs.h"
4271 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4272 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4274 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4275 || ('j' <= (c) && (c) <= 'r') \
4276 || ('s' <= (c) && (c) <= 'z'))
4277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4279 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4280 int main () { int i; for (i = 0; i < 256; i++)
4281 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4285 if { (eval echo configure:4286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4289 echo "configure: failed program was:" >&5
4290 cat conftest.$ac_ext >&5
4292 ol_cv_header_stdc=no
4300 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4301 if test $ol_cv_header_stdc = yes; then
4302 cat >> confdefs.h <<\EOF
4303 #define STDC_HEADERS 1
4307 ac_cv_header_stdc=disable
4310 if test $ol_cv_header_stdc != yes; then
4311 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4318 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4319 echo "configure:4320: checking for $ac_hdr that defines DIR" >&5
4320 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4321 echo $ac_n "(cached) $ac_c" 1>&6
4323 cat > conftest.$ac_ext <<EOF
4324 #line 4325 "configure"
4325 #include "confdefs.h"
4326 #include <sys/types.h>
4332 if { (eval echo configure:4333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4334 eval "ac_cv_header_dirent_$ac_safe=yes"
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4339 eval "ac_cv_header_dirent_$ac_safe=no"
4343 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4344 echo "$ac_t""yes" 1>&6
4345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4346 cat >> confdefs.h <<EOF
4347 #define $ac_tr_hdr 1
4349 ac_header_dirent=$ac_hdr; break
4351 echo "$ac_t""no" 1>&6
4354 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4355 if test $ac_header_dirent = dirent.h; then
4356 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4357 echo "configure:4358: checking for opendir in -ldir" >&5
4358 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4359 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4360 echo $ac_n "(cached) $ac_c" 1>&6
4362 ac_save_LIBS="$LIBS"
4364 cat > conftest.$ac_ext <<EOF
4365 #line 4366 "configure"
4366 #include "confdefs.h"
4367 /* Override any gcc2 internal prototype to avoid an error. */
4368 /* We use char because int might match the return type of a gcc2
4369 builtin and then its argument prototype would still apply. */
4376 if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4378 eval "ac_cv_lib_$ac_lib_var=yes"
4380 echo "configure: failed program was:" >&5
4381 cat conftest.$ac_ext >&5
4383 eval "ac_cv_lib_$ac_lib_var=no"
4386 LIBS="$ac_save_LIBS"
4389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4390 echo "$ac_t""yes" 1>&6
4393 echo "$ac_t""no" 1>&6
4397 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4398 echo "configure:4399: checking for opendir in -lx" >&5
4399 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4400 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 ac_save_LIBS="$LIBS"
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4417 if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
4424 eval "ac_cv_lib_$ac_lib_var=no"
4427 LIBS="$ac_save_LIBS"
4430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4434 echo "$ac_t""no" 1>&6
4439 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4440 echo "configure:4441: checking for sys/wait.h that is POSIX.1 compatible" >&5
4441 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4442 echo $ac_n "(cached) $ac_c" 1>&6
4444 cat > conftest.$ac_ext <<EOF
4445 #line 4446 "configure"
4446 #include "confdefs.h"
4447 #include <sys/types.h>
4448 #include <sys/wait.h>
4450 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4453 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4458 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4461 if { (eval echo configure:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4463 ac_cv_header_sys_wait_h=yes
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4468 ac_cv_header_sys_wait_h=no
4473 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4474 if test $ac_cv_header_sys_wait_h = yes; then
4475 cat >> confdefs.h <<\EOF
4476 #define HAVE_SYS_WAIT_H 1
4481 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4482 echo "configure:4483: checking POSIX termios" >&5
4483 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 #include <sys/types.h>
4491 #include <termios.h>
4493 /* SunOS 4.0.3 has termios.h but not the library calls. */
4497 if { (eval echo configure:4498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4499 am_cv_sys_posix_termios=yes
4501 echo "configure: failed program was:" >&5
4502 cat conftest.$ac_ext >&5
4504 am_cv_sys_posix_termios=no
4509 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4512 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4513 echo "configure:4514: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4514 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4519 gwinsz_in_termios_h=no
4520 if test $am_cv_sys_posix_termios = yes; then
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4524 #include <sys/types.h>
4525 # include <termios.h>
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 egrep "yes" >/dev/null 2>&1; then
4534 gwinsz_in_termios_h=yes
4540 if test $gwinsz_in_termios_h = no; then
4541 cat > conftest.$ac_ext <<EOF
4542 #line 4543 "configure"
4543 #include "confdefs.h"
4544 #include <sys/types.h>
4545 # include <sys/ioctl.h>
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552 egrep "yes" >/dev/null 2>&1; then
4554 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4562 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4563 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4564 cat >> confdefs.h <<\EOF
4565 #define GWINSZ_IN_SYS_IOCTL 1
4570 if test $am_cv_sys_posix_termios = yes ; then
4571 cat >> confdefs.h <<\EOF
4572 #define HAVE_POSIX_TERMIOS 1
4623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4625 echo "configure:4626: checking for $ac_hdr" >&5
4626 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4635 { (eval echo configure:4636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4637 if test -z "$ac_err"; then
4639 eval "ac_cv_header_$ac_safe=yes"
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 eval "ac_cv_header_$ac_safe=no"
4649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_hdr 1
4657 echo "$ac_t""no" 1>&6
4664 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4665 echo "configure:4666: checking for sigset in -lV3" >&5
4666 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4670 ac_save_LIBS="$LIBS"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4691 eval "ac_cv_lib_$ac_lib_var=no"
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4700 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4701 cat >> confdefs.h <<EOF
4702 #define $ac_tr_lib 1
4708 echo "$ac_t""no" 1>&6
4712 if test $ac_cv_header_winsock_h = yes; then
4713 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4714 echo "configure:4715: checking for winsock" >&5
4715 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4716 echo $ac_n "(cached) $ac_c" 1>&6
4718 cat > conftest.$ac_ext <<EOF
4719 #line 4720 "configure"
4720 #include "confdefs.h"
4721 #include <winsock.h>
4725 select(0,NULL,NULL,NULL,NULL);
4727 gethostname(NULL,0);
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4743 echo "$ac_t""$ol_cv_winsock" 1>&6
4745 if test $ol_cv_winsock = yes ; then
4746 cat >> confdefs.h <<\EOF
4747 #define HAVE_WINSOCK 1
4750 ac_cv_func_socket=yes
4751 ac_cv_func_select=yes
4752 ac_cv_func_closesocket=yes
4753 ac_cv_func_gethostname=yes
4758 echo $ac_n "checking for socket""... $ac_c" 1>&6
4759 echo "configure:4760: checking for socket" >&5
4760 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4761 echo $ac_n "(cached) $ac_c" 1>&6
4763 cat > conftest.$ac_ext <<EOF
4764 #line 4765 "configure"
4765 #include "confdefs.h"
4766 /* System header to define __stub macros and hopefully few prototypes,
4767 which can conflict with char socket(); below. */
4769 /* Override any gcc2 internal prototype to avoid an error. */
4770 /* We use char because int might match the return type of a gcc2
4771 builtin and then its argument prototype would still apply. */
4777 /* The GNU C library defines this for functions which it implements
4778 to always fail with ENOSYS. Some functions are actually named
4779 something starting with __ and the normal name is an alias. */
4780 #if defined (__stub_socket) || defined (__stub___socket)
4788 if { (eval echo configure:4789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4790 eval "ac_cv_func_socket=yes"
4792 echo "configure: failed program was:" >&5
4793 cat conftest.$ac_ext >&5
4795 eval "ac_cv_func_socket=no"
4800 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4801 echo "$ac_t""yes" 1>&6
4804 echo "$ac_t""no" 1>&6
4806 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4807 echo "configure:4808: checking for main in -lsocket" >&5
4808 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4809 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4810 echo $ac_n "(cached) $ac_c" 1>&6
4812 ac_save_LIBS="$LIBS"
4813 LIBS="-lsocket $LIBS"
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 eval "ac_cv_lib_$ac_lib_var=yes"
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 eval "ac_cv_lib_$ac_lib_var=no"
4832 LIBS="$ac_save_LIBS"
4835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4836 echo "$ac_t""yes" 1>&6
4837 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4838 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4839 cat >> confdefs.h <<EOF
4840 #define $ac_tr_lib 1
4843 LIBS="-lsocket $LIBS"
4846 echo "$ac_t""no" 1>&6
4849 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4850 echo "configure:4851: checking for main in -lnet" >&5
4851 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4852 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4853 echo $ac_n "(cached) $ac_c" 1>&6
4855 ac_save_LIBS="$LIBS"
4857 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure"
4859 #include "confdefs.h"
4865 if { (eval echo configure:4866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4867 eval "ac_cv_lib_$ac_lib_var=yes"
4869 echo "configure: failed program was:" >&5
4870 cat conftest.$ac_ext >&5
4872 eval "ac_cv_lib_$ac_lib_var=no"
4875 LIBS="$ac_save_LIBS"
4878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4879 echo "$ac_t""yes" 1>&6
4880 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4882 cat >> confdefs.h <<EOF
4883 #define $ac_tr_lib 1
4889 echo "$ac_t""no" 1>&6
4892 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4893 echo "configure:4894: checking for main in -lnsl_s" >&5
4894 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4896 echo $ac_n "(cached) $ac_c" 1>&6
4898 ac_save_LIBS="$LIBS"
4899 LIBS="-lnsl_s $LIBS"
4900 cat > conftest.$ac_ext <<EOF
4901 #line 4902 "configure"
4902 #include "confdefs.h"
4908 if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4910 eval "ac_cv_lib_$ac_lib_var=yes"
4912 echo "configure: failed program was:" >&5
4913 cat conftest.$ac_ext >&5
4915 eval "ac_cv_lib_$ac_lib_var=no"
4918 LIBS="$ac_save_LIBS"
4921 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4922 echo "$ac_t""yes" 1>&6
4923 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_lib 1
4929 LIBS="-lnsl_s $LIBS"
4932 echo "$ac_t""no" 1>&6
4935 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4936 echo "configure:4937: checking for main in -lnsl" >&5
4937 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4939 echo $ac_n "(cached) $ac_c" 1>&6
4941 ac_save_LIBS="$LIBS"
4943 cat > conftest.$ac_ext <<EOF
4944 #line 4945 "configure"
4945 #include "confdefs.h"
4951 if { (eval echo configure:4952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4953 eval "ac_cv_lib_$ac_lib_var=yes"
4955 echo "configure: failed program was:" >&5
4956 cat conftest.$ac_ext >&5
4958 eval "ac_cv_lib_$ac_lib_var=no"
4961 LIBS="$ac_save_LIBS"
4964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4965 echo "$ac_t""yes" 1>&6
4966 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4968 cat >> confdefs.h <<EOF
4969 #define $ac_tr_lib 1
4975 echo "$ac_t""no" 1>&6
4978 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4979 echo "configure:4980: checking for socket in -linet" >&5
4980 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4981 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 ac_save_LIBS="$LIBS"
4986 cat > conftest.$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4998 if { (eval echo configure:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.$ac_ext >&5
5005 eval "ac_cv_lib_$ac_lib_var=no"
5008 LIBS="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5013 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5015 cat >> confdefs.h <<EOF
5016 #define $ac_tr_lib 1
5022 echo "$ac_t""no" 1>&6
5025 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5026 echo "configure:5027: checking for main in -lgen" >&5
5027 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5029 echo $ac_n "(cached) $ac_c" 1>&6
5031 ac_save_LIBS="$LIBS"
5033 cat > conftest.$ac_ext <<EOF
5034 #line 5035 "configure"
5035 #include "confdefs.h"
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5048 eval "ac_cv_lib_$ac_lib_var=no"
5051 LIBS="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5058 cat >> confdefs.h <<EOF
5059 #define $ac_tr_lib 1
5065 echo "$ac_t""no" 1>&6
5072 echo $ac_n "checking for select""... $ac_c" 1>&6
5073 echo "configure:5074: checking for select" >&5
5074 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5075 echo $ac_n "(cached) $ac_c" 1>&6
5077 cat > conftest.$ac_ext <<EOF
5078 #line 5079 "configure"
5079 #include "confdefs.h"
5080 /* System header to define __stub macros and hopefully few prototypes,
5081 which can conflict with char select(); below. */
5083 /* Override any gcc2 internal prototype to avoid an error. */
5084 /* We use char because int might match the return type of a gcc2
5085 builtin and then its argument prototype would still apply. */
5091 /* The GNU C library defines this for functions which it implements
5092 to always fail with ENOSYS. Some functions are actually named
5093 something starting with __ and the normal name is an alias. */
5094 #if defined (__stub_select) || defined (__stub___select)
5102 if { (eval echo configure:5103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5104 eval "ac_cv_func_select=yes"
5106 echo "configure: failed program was:" >&5
5107 cat conftest.$ac_ext >&5
5109 eval "ac_cv_func_select=no"
5114 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5115 echo "$ac_t""yes" 1>&6
5118 echo "$ac_t""no" 1>&6
5119 { echo "configure: error: select() required." 1>&2; exit 1; }
5123 if test "${ac_cv_header_winsock_h}" != yes; then
5124 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5125 echo "configure:5126: checking types of arguments for select()" >&5
5126 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5127 echo $ac_n "(cached) $ac_c" 1>&6
5129 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5130 echo $ac_n "(cached) $ac_c" 1>&6
5132 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5133 echo $ac_n "(cached) $ac_c" 1>&6
5135 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5136 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5137 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5138 cat > conftest.$ac_ext <<EOF
5139 #line 5140 "configure"
5140 #include "confdefs.h"
5141 #ifdef HAVE_SYS_TYPES_H
5142 #include <sys/types.h>
5144 #ifdef HAVE_SYS_TIME_H
5145 #include <sys/time.h>
5147 #ifdef HAVE_SYS_SELECT_H
5148 #include <sys/select.h>
5150 #ifdef HAVE_SYS_SOCKET_H
5151 #include <sys/socket.h>
5153 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);
5158 if { (eval echo configure:5159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5160 ac_not_found=no ; break 3
5162 echo "configure: failed program was:" >&5
5163 cat conftest.$ac_ext >&5
5177 if test "$ac_not_found" = yes; then
5178 ac_cv_func_select_arg1=int
5179 ac_cv_func_select_arg234='int *'
5180 ac_cv_func_select_arg5='struct timeval *'
5182 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5183 cat >> confdefs.h <<EOF
5184 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5187 cat >> confdefs.h <<EOF
5188 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5191 cat >> confdefs.h <<EOF
5192 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5199 for ac_hdr in regex.h
5201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5203 echo "configure:5204: checking for $ac_hdr" >&5
5204 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5207 cat > conftest.$ac_ext <<EOF
5208 #line 5209 "configure"
5209 #include "confdefs.h"
5212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5213 { (eval echo configure:5214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5215 if test -z "$ac_err"; then
5217 eval "ac_cv_header_$ac_safe=yes"
5220 echo "configure: failed program was:" >&5
5221 cat conftest.$ac_ext >&5
5223 eval "ac_cv_header_$ac_safe=no"
5227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5228 echo "$ac_t""yes" 1>&6
5229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5230 cat >> confdefs.h <<EOF
5231 #define $ac_tr_hdr 1
5235 echo "$ac_t""no" 1>&6
5239 if test "$ac_cv_header_regex_h" != yes ; then
5240 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5242 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5243 echo "configure:5244: checking for regfree" >&5
5244 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5245 echo $ac_n "(cached) $ac_c" 1>&6
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* System header to define __stub macros and hopefully few prototypes,
5251 which can conflict with char regfree(); below. */
5253 /* Override any gcc2 internal prototype to avoid an error. */
5254 /* We use char because int might match the return type of a gcc2
5255 builtin and then its argument prototype would still apply. */
5261 /* The GNU C library defines this for functions which it implements
5262 to always fail with ENOSYS. Some functions are actually named
5263 something starting with __ and the normal name is an alias. */
5264 #if defined (__stub_regfree) || defined (__stub___regfree)
5272 if { (eval echo configure:5273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5274 eval "ac_cv_func_regfree=yes"
5276 echo "configure: failed program was:" >&5
5277 cat conftest.$ac_ext >&5
5279 eval "ac_cv_func_regfree=no"
5284 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5285 echo "$ac_t""yes" 1>&6
5288 echo "$ac_t""no" 1>&6
5289 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5294 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5295 echo "configure:5296: checking for compatible POSIX regex" >&5
5296 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5297 echo $ac_n "(cached) $ac_c" 1>&6
5300 if test "$cross_compiling" = yes; then
5301 ol_cv_c_posix_regex=cross
5303 cat > conftest.$ac_ext <<EOF
5304 #line 5305 "configure"
5305 #include "confdefs.h"
5307 #include <sys/types.h>
5309 static char *pattern, *string;
5317 if(regcomp(&re, pattern, 0)) {
5321 string = "ALL MATCH";
5323 rc = regexec(&re, string, 0, (void*)0, 0);
5330 if { (eval echo configure:5331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5332 ol_cv_c_posix_regex=yes
5334 echo "configure: failed program was:" >&5
5335 cat conftest.$ac_ext >&5
5337 ol_cv_c_posix_regex=no
5344 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5346 if test "$ol_cv_c_posix_regex" = no ; then
5347 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5351 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5352 echo "configure:5353: checking for res_query" >&5
5353 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 cat > conftest.$ac_ext <<EOF
5357 #line 5358 "configure"
5358 #include "confdefs.h"
5359 /* System header to define __stub macros and hopefully few prototypes,
5360 which can conflict with char res_query(); below. */
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5370 /* The GNU C library defines this for functions which it implements
5371 to always fail with ENOSYS. Some functions are actually named
5372 something starting with __ and the normal name is an alias. */
5373 #if defined (__stub_res_query) || defined (__stub___res_query)
5381 if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5383 eval "ac_cv_func_res_query=yes"
5385 echo "configure: failed program was:" >&5
5386 cat conftest.$ac_ext >&5
5388 eval "ac_cv_func_res_query=no"
5393 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5394 echo "$ac_t""yes" 1>&6
5397 echo "$ac_t""no" 1>&6
5400 if test $ac_cv_func_res_query = no ; then
5401 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5402 echo "configure:5403: checking for res_query in -lbind" >&5
5403 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5404 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 ac_save_LIBS="$LIBS"
5409 cat > conftest.$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5423 eval "ac_cv_lib_$ac_lib_var=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.$ac_ext >&5
5428 eval "ac_cv_lib_$ac_lib_var=no"
5431 LIBS="$ac_save_LIBS"
5434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5435 echo "$ac_t""yes" 1>&6
5436 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5437 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5438 cat >> confdefs.h <<EOF
5439 #define $ac_tr_lib 1
5445 echo "$ac_t""no" 1>&6
5448 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5451 if test $ac_cv_func_res_query = no ; then
5452 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5453 echo "configure:5454: checking for __res_query in -lbind" >&5
5454 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5455 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5456 echo $ac_n "(cached) $ac_c" 1>&6
5458 ac_save_LIBS="$LIBS"
5460 cat > conftest.$ac_ext <<EOF
5461 #line 5462 "configure"
5462 #include "confdefs.h"
5463 /* Override any gcc2 internal prototype to avoid an error. */
5464 /* We use char because int might match the return type of a gcc2
5465 builtin and then its argument prototype would still apply. */
5472 if { (eval echo configure:5473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5474 eval "ac_cv_lib_$ac_lib_var=yes"
5476 echo "configure: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5479 eval "ac_cv_lib_$ac_lib_var=no"
5482 LIBS="$ac_save_LIBS"
5485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5486 echo "$ac_t""yes" 1>&6
5487 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5488 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5489 cat >> confdefs.h <<EOF
5490 #define $ac_tr_lib 1
5496 echo "$ac_t""no" 1>&6
5499 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5502 if test $ac_cv_func_res_query = no ; then
5503 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5504 echo "configure:5505: checking for res_query in -lresolv" >&5
5505 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5506 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5507 echo $ac_n "(cached) $ac_c" 1>&6
5509 ac_save_LIBS="$LIBS"
5510 LIBS="-lresolv $LIBS"
5511 cat > conftest.$ac_ext <<EOF
5512 #line 5513 "configure"
5513 #include "confdefs.h"
5514 /* Override any gcc2 internal prototype to avoid an error. */
5515 /* We use char because int might match the return type of a gcc2
5516 builtin and then its argument prototype would still apply. */
5523 if { (eval echo configure:5524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5525 eval "ac_cv_lib_$ac_lib_var=yes"
5527 echo "configure: failed program was:" >&5
5528 cat conftest.$ac_ext >&5
5530 eval "ac_cv_lib_$ac_lib_var=no"
5533 LIBS="$ac_save_LIBS"
5536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5537 echo "$ac_t""yes" 1>&6
5538 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5539 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5540 cat >> confdefs.h <<EOF
5541 #define $ac_tr_lib 1
5544 LIBS="-lresolv $LIBS"
5547 echo "$ac_t""no" 1>&6
5550 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5553 if test "$ac_cv_func_res_query" = yes ; then
5554 cat >> confdefs.h <<\EOF
5555 #define HAVE_RES_QUERY 1
5559 if test $ol_enable_dnssrv != no ; then
5564 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5565 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5573 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5574 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5576 for ac_hdr in krb5.h
5578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5580 echo "configure:5581: checking for $ac_hdr" >&5
5581 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5582 echo $ac_n "(cached) $ac_c" 1>&6
5584 cat > conftest.$ac_ext <<EOF
5585 #line 5586 "configure"
5586 #include "confdefs.h"
5589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5590 { (eval echo configure:5591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5592 if test -z "$ac_err"; then
5594 eval "ac_cv_header_$ac_safe=yes"
5597 echo "configure: failed program was:" >&5
5598 cat conftest.$ac_ext >&5
5600 eval "ac_cv_header_$ac_safe=no"
5604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5605 echo "$ac_t""yes" 1>&6
5606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5607 cat >> confdefs.h <<EOF
5608 #define $ac_tr_hdr 1
5612 echo "$ac_t""no" 1>&6
5617 if test $ac_cv_header_krb5_h = yes ; then
5618 for ac_hdr in heim_err.h
5620 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5621 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5622 echo "configure:5623: checking for $ac_hdr" >&5
5623 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5624 echo $ac_n "(cached) $ac_c" 1>&6
5626 cat > conftest.$ac_ext <<EOF
5627 #line 5628 "configure"
5628 #include "confdefs.h"
5631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5632 { (eval echo configure:5633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5634 if test -z "$ac_err"; then
5636 eval "ac_cv_header_$ac_safe=yes"
5639 echo "configure: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 eval "ac_cv_header_$ac_safe=no"
5646 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5647 echo "$ac_t""yes" 1>&6
5648 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5649 cat >> confdefs.h <<EOF
5650 #define $ac_tr_hdr 1
5654 echo "$ac_t""no" 1>&6
5658 if test $ac_cv_header_heim_err_h = yes ; then
5664 if test $krb5_impl = mit; then
5665 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5666 echo "configure:5667: checking for main in -lkrb5" >&5
5667 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5668 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5669 echo $ac_n "(cached) $ac_c" 1>&6
5671 ac_save_LIBS="$LIBS"
5672 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5673 cat > conftest.$ac_ext <<EOF
5674 #line 5675 "configure"
5675 #include "confdefs.h"
5681 if { (eval echo configure:5682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5683 eval "ac_cv_lib_$ac_lib_var=yes"
5685 echo "configure: failed program was:" >&5
5686 cat conftest.$ac_ext >&5
5688 eval "ac_cv_lib_$ac_lib_var=no"
5691 LIBS="$ac_save_LIBS"
5694 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5695 echo "$ac_t""yes" 1>&6
5697 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5699 echo "$ac_t""no" 1>&6
5704 elif test $krb5_impl = heimdal; then
5705 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5706 echo "configure:5707: checking for main in -lkrb5" >&5
5707 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5709 echo $ac_n "(cached) $ac_c" 1>&6
5711 ac_save_LIBS="$LIBS"
5712 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5713 cat > conftest.$ac_ext <<EOF
5714 #line 5715 "configure"
5715 #include "confdefs.h"
5721 if { (eval echo configure:5722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5723 eval "ac_cv_lib_$ac_lib_var=yes"
5725 echo "configure: failed program was:" >&5
5726 cat conftest.$ac_ext >&5
5728 eval "ac_cv_lib_$ac_lib_var=no"
5731 LIBS="$ac_save_LIBS"
5734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5735 echo "$ac_t""yes" 1>&6
5737 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
5739 echo "$ac_t""no" 1>&6
5744 cat >> confdefs.h <<\EOF
5745 #define HAVE_HEIMDAL_KERBEROS 1
5750 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5753 if test $have_krb5 = yes ; then
5756 cat >> confdefs.h <<\EOF
5761 if test $ol_enable_kpasswd != no ; then
5762 ol_link_kpasswd=yes;
5765 if test $ol_with_kerberos = k5only ; then
5766 ol_with_kerberos=found
5769 elif test $ol_with_kerberos != auto ; then
5770 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
5776 if test $ol_link_krb5 = yes -a \
5777 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
5779 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
5781 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5782 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5783 echo "configure:5784: checking for $ac_hdr" >&5
5784 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5785 echo $ac_n "(cached) $ac_c" 1>&6
5787 cat > conftest.$ac_ext <<EOF
5788 #line 5789 "configure"
5789 #include "confdefs.h"
5792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5793 { (eval echo configure:5794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5795 if test -z "$ac_err"; then
5797 eval "ac_cv_header_$ac_safe=yes"
5800 echo "configure: failed program was:" >&5
5801 cat conftest.$ac_ext >&5
5803 eval "ac_cv_header_$ac_safe=no"
5807 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5808 echo "$ac_t""yes" 1>&6
5809 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5810 cat >> confdefs.h <<EOF
5811 #define $ac_tr_hdr 1
5815 echo "$ac_t""no" 1>&6
5820 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
5821 if test $krb5_impl = mit; then
5822 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5823 echo "configure:5824: checking for main in -lkrb4" >&5
5824 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5825 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5826 echo $ac_n "(cached) $ac_c" 1>&6
5828 ac_save_LIBS="$LIBS"
5829 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
5830 cat > conftest.$ac_ext <<EOF
5831 #line 5832 "configure"
5832 #include "confdefs.h"
5838 if { (eval echo configure:5839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5840 eval "ac_cv_lib_$ac_lib_var=yes"
5842 echo "configure: failed program was:" >&5
5843 cat conftest.$ac_ext >&5
5845 eval "ac_cv_lib_$ac_lib_var=no"
5848 LIBS="$ac_save_LIBS"
5851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5852 echo "$ac_t""yes" 1>&6
5854 KRB4_LIBS="-lkrb4 -ldes425"
5856 echo "$ac_t""no" 1>&6
5861 elif test $krb5_impl = heimdal; then
5862 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
5863 echo "configure:5864: checking for main in -lkrb4" >&5
5864 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
5865 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5866 echo $ac_n "(cached) $ac_c" 1>&6
5868 ac_save_LIBS="$LIBS"
5869 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5870 cat > conftest.$ac_ext <<EOF
5871 #line 5872 "configure"
5872 #include "confdefs.h"
5878 if { (eval echo configure:5879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5880 eval "ac_cv_lib_$ac_lib_var=yes"
5882 echo "configure: failed program was:" >&5
5883 cat conftest.$ac_ext >&5
5885 eval "ac_cv_lib_$ac_lib_var=no"
5888 LIBS="$ac_save_LIBS"
5891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5892 echo "$ac_t""yes" 1>&6
5896 echo "$ac_t""no" 1>&6
5903 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
5906 if test $have_k425 = yes ; then
5907 ol_with_kerberos=found
5910 cat >> confdefs.h <<\EOF
5911 #define HAVE_KRB425 1
5914 cat >> confdefs.h <<\EOF
5919 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
5920 echo "configure:5921: checking for des_debug in Kerberos libraries" >&5
5921 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
5922 echo $ac_n "(cached) $ac_c" 1>&6
5926 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
5927 cat > conftest.$ac_ext <<EOF
5928 #line 5929 "configure"
5929 #include "confdefs.h"
5931 #include <kerberosIV/krb.h>
5932 #include <kerberosIV/des.h>
5933 extern int des_debug;
5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5943 ol_cv_var_des_debug=yes
5945 echo "configure: failed program was:" >&5
5946 cat conftest.$ac_ext >&5
5948 ol_cv_var_des_debug=no
5955 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
5957 if test $ol_cv_var_des_debug = yes ; then
5958 cat >> confdefs.h <<\EOF
5959 #define HAVE_DES_DEBUG 1
5969 if test $ol_link_krb5 = yes ; then
5970 ol_with_kerberos=found
5973 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
5974 -o $ol_with_kerberos = kth ; then
5976 for ac_hdr in krb.h des.h krb-archaeology.h
5978 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5979 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5980 echo "configure:5981: checking for $ac_hdr" >&5
5981 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5982 echo $ac_n "(cached) $ac_c" 1>&6
5984 cat > conftest.$ac_ext <<EOF
5985 #line 5986 "configure"
5986 #include "confdefs.h"
5989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5990 { (eval echo configure:5991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5992 if test -z "$ac_err"; then
5994 eval "ac_cv_header_$ac_safe=yes"
5997 echo "configure: failed program was:" >&5
5998 cat conftest.$ac_ext >&5
6000 eval "ac_cv_header_$ac_safe=no"
6004 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6005 echo "$ac_t""yes" 1>&6
6006 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6007 cat >> confdefs.h <<EOF
6008 #define $ac_tr_hdr 1
6012 echo "$ac_t""no" 1>&6
6017 if test $ac_cv_header_krb_h = yes ; then
6018 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6019 echo "configure:6020: checking for main in -lkrb" >&5
6020 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6021 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6022 echo $ac_n "(cached) $ac_c" 1>&6
6024 ac_save_LIBS="$LIBS"
6025 LIBS="-lkrb -ldes $LIBS"
6026 cat > conftest.$ac_ext <<EOF
6027 #line 6028 "configure"
6028 #include "confdefs.h"
6034 if { (eval echo configure:6035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6036 eval "ac_cv_lib_$ac_lib_var=yes"
6038 echo "configure: failed program was:" >&5
6039 cat conftest.$ac_ext >&5
6041 eval "ac_cv_lib_$ac_lib_var=no"
6044 LIBS="$ac_save_LIBS"
6047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6048 echo "$ac_t""yes" 1>&6
6051 echo "$ac_t""no" 1>&6
6056 if test $have_k4 = yes ; then
6057 ol_with_kerberos=found
6060 cat >> confdefs.h <<\EOF
6065 KRB4_LIBS="-lkrb -ldes"
6067 if test $ac_cv_header_krb_archaeology_h = yes ; then
6068 cat >> confdefs.h <<\EOF
6069 #define HAVE_KTH_KERBEROS 1
6077 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6078 ol_link_kpasswd=yes;
6081 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6082 cat >> confdefs.h <<\EOF
6083 #define HAVE_KERBEROS 1
6087 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6088 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6092 if test $ol_with_tls != no ; then
6093 for ac_hdr in openssl/ssl.h ssl.h
6095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6097 echo "configure:6098: checking for $ac_hdr" >&5
6098 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6099 echo $ac_n "(cached) $ac_c" 1>&6
6101 cat > conftest.$ac_ext <<EOF
6102 #line 6103 "configure"
6103 #include "confdefs.h"
6106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6107 { (eval echo configure:6108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6109 if test -z "$ac_err"; then
6111 eval "ac_cv_header_$ac_safe=yes"
6114 echo "configure: failed program was:" >&5
6115 cat conftest.$ac_ext >&5
6117 eval "ac_cv_header_$ac_safe=no"
6121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6122 echo "$ac_t""yes" 1>&6
6123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6124 cat >> confdefs.h <<EOF
6125 #define $ac_tr_hdr 1
6129 echo "$ac_t""no" 1>&6
6134 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6135 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6136 echo "configure:6137: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6137 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6138 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6139 echo $ac_n "(cached) $ac_c" 1>&6
6141 ac_save_LIBS="$LIBS"
6142 LIBS="-lssl -lcrypto $LIBS"
6143 cat > conftest.$ac_ext <<EOF
6144 #line 6145 "configure"
6145 #include "confdefs.h"
6146 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6149 char SSLeay_add_ssl_algorithms();
6152 SSLeay_add_ssl_algorithms()
6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6157 eval "ac_cv_lib_$ac_lib_var=yes"
6159 echo "configure: failed program was:" >&5
6160 cat conftest.$ac_ext >&5
6162 eval "ac_cv_lib_$ac_lib_var=no"
6165 LIBS="$ac_save_LIBS"
6168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6169 echo "$ac_t""yes" 1>&6
6173 echo "$ac_t""no" 1>&6
6178 if test $have_ssleay = no ; then
6179 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6180 echo "configure:6181: checking for SSL_library_init in -lssl" >&5
6181 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6182 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6183 echo $ac_n "(cached) $ac_c" 1>&6
6185 ac_save_LIBS="$LIBS"
6186 LIBS="-lssl -lcrypto $LIBS"
6187 cat > conftest.$ac_ext <<EOF
6188 #line 6189 "configure"
6189 #include "confdefs.h"
6190 /* Override any gcc2 internal prototype to avoid an error. */
6191 /* We use char because int might match the return type of a gcc2
6192 builtin and then its argument prototype would still apply. */
6193 char SSL_library_init();
6199 if { (eval echo configure:6200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6201 eval "ac_cv_lib_$ac_lib_var=yes"
6203 echo "configure: failed program was:" >&5
6204 cat conftest.$ac_ext >&5
6206 eval "ac_cv_lib_$ac_lib_var=no"
6209 LIBS="$ac_save_LIBS"
6212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6213 echo "$ac_t""yes" 1>&6
6217 echo "$ac_t""no" 1>&6
6223 if test $have_ssleay = no ; then
6224 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6225 echo "configure:6226: checking for ssl3_accept in -lssl" >&5
6226 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6227 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6
6230 ac_save_LIBS="$LIBS"
6231 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6232 cat > conftest.$ac_ext <<EOF
6233 #line 6234 "configure"
6234 #include "confdefs.h"
6235 /* Override any gcc2 internal prototype to avoid an error. */
6236 /* We use char because int might match the return type of a gcc2
6237 builtin and then its argument prototype would still apply. */
6244 if { (eval echo configure:6245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6246 eval "ac_cv_lib_$ac_lib_var=yes"
6248 echo "configure: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6251 eval "ac_cv_lib_$ac_lib_var=no"
6254 LIBS="$ac_save_LIBS"
6257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6258 echo "$ac_t""yes" 1>&6
6262 echo "$ac_t""no" 1>&6
6268 if test $have_ssleay = yes ; then
6272 cat >> confdefs.h <<\EOF
6273 #define HAVE_SSLEAY 1
6277 if test $need_rsaref = yes; then
6278 cat >> confdefs.h <<\EOF
6279 #define HAVE_RSAREF 1
6283 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6285 TLS_LIBS="-lssl -lcrypto"
6291 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6294 if test $ol_link_tls = yes ; then
6295 cat >> confdefs.h <<\EOF
6300 elif test $ol_with_tls = auto ; then
6301 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6302 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6304 elif test $ol_with_tls != no ; then
6305 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6310 gethostbyname_r gethostbyaddr_r \
6313 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6314 echo "configure:6315: checking for $ac_func" >&5
6315 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6316 echo $ac_n "(cached) $ac_c" 1>&6
6318 cat > conftest.$ac_ext <<EOF
6319 #line 6320 "configure"
6320 #include "confdefs.h"
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char $ac_func(); below. */
6324 /* Override any gcc2 internal prototype to avoid an error. */
6325 /* We use char because int might match the return type of a gcc2
6326 builtin and then its argument prototype would still apply. */
6332 /* The GNU C library defines this for functions which it implements
6333 to always fail with ENOSYS. Some functions are actually named
6334 something starting with __ and the normal name is an alias. */
6335 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6343 if { (eval echo configure:6344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6345 eval "ac_cv_func_$ac_func=yes"
6347 echo "configure: failed program was:" >&5
6348 cat conftest.$ac_ext >&5
6350 eval "ac_cv_func_$ac_func=no"
6355 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6356 echo "$ac_t""yes" 1>&6
6357 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6358 cat >> confdefs.h <<EOF
6359 #define $ac_tr_func 1
6363 echo "$ac_t""no" 1>&6
6368 if test "$ac_cv_func_ctime_r" = no ; then
6369 ol_cv_func_ctime_r_nargs=0
6371 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6372 echo "configure:6373: checking number of arguments of ctime_r" >&5
6373 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6374 echo $ac_n "(cached) $ac_c" 1>&6
6376 cat > conftest.$ac_ext <<EOF
6377 #line 6378 "configure"
6378 #include "confdefs.h"
6381 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6384 if { (eval echo configure:6385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6386 ol_cv_func_ctime_r_nargs3=yes
6388 echo "configure: failed program was:" >&5
6389 cat conftest.$ac_ext >&5
6391 ol_cv_func_ctime_r_nargs3=no
6395 cat > conftest.$ac_ext <<EOF
6396 #line 6397 "configure"
6397 #include "confdefs.h"
6400 time_t ti; char *buffer; ctime_r(&ti,buffer);
6403 if { (eval echo configure:6404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6405 ol_cv_func_ctime_r_nargs2=yes
6407 echo "configure: failed program was:" >&5
6408 cat conftest.$ac_ext >&5
6410 ol_cv_func_ctime_r_nargs2=no
6414 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6415 $ol_cv_func_ctime_r_nargs2 = no ; then
6417 ol_cv_func_ctime_r_nargs=3
6419 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6420 $ol_cv_func_ctime_r_nargs2 = yes ; then
6422 ol_cv_func_ctime_r_nargs=2
6425 ol_cv_func_ctime_r_nargs=0
6430 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6432 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6433 cat >> confdefs.h <<EOF
6434 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6441 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6442 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6443 echo "configure:6444: checking number of arguments of gethostbyname_r" >&5
6444 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6445 echo $ac_n "(cached) $ac_c" 1>&6
6447 cat > conftest.$ac_ext <<EOF
6448 #line 6449 "configure"
6449 #include "confdefs.h"
6450 #include <sys/types.h>
6451 #include <sys/socket.h>
6452 #include <netinet/in.h>
6454 #define BUFSIZE (sizeof(struct hostent)+10)
6456 struct hostent hent; char buffer[BUFSIZE];
6457 int bufsize=BUFSIZE;int h_errno;
6458 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6459 buffer, bufsize, &h_errno);
6462 if { (eval echo configure:6463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6464 ol_cv_func_gethostbyname_r_nargs5=yes
6466 echo "configure: failed program was:" >&5
6467 cat conftest.$ac_ext >&5
6469 ol_cv_func_gethostbyname_r_nargs5=no
6473 cat > conftest.$ac_ext <<EOF
6474 #line 6475 "configure"
6475 #include "confdefs.h"
6476 #include <sys/types.h>
6477 #include <sys/socket.h>
6478 #include <netinet/in.h>
6480 #define BUFSIZE (sizeof(struct hostent)+10)
6482 struct hostent hent;struct hostent *rhent;
6483 char buffer[BUFSIZE];
6484 int bufsize=BUFSIZE;int h_errno;
6485 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6489 if { (eval echo configure:6490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6491 ol_cv_func_gethostbyname_r_nargs6=yes
6493 echo "configure: failed program was:" >&5
6494 cat conftest.$ac_ext >&5
6496 ol_cv_func_gethostbyname_r_nargs6=no
6500 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6501 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6503 ol_cv_func_gethostbyname_r_nargs=5
6505 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6506 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6508 ol_cv_func_gethostbyname_r_nargs=6
6511 ol_cv_func_gethostbyname_r_nargs=0
6516 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6517 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6518 cat >> confdefs.h <<EOF
6519 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6525 ol_cv_func_gethostbyname_r_nargs=0
6528 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6529 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6530 echo "configure:6531: checking number of arguments of gethostbyaddr_r" >&5
6531 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6534 cat > conftest.$ac_ext <<EOF
6535 #line 6536 "configure"
6536 #include "confdefs.h"
6537 #include <sys/types.h>
6538 #include <sys/socket.h>
6539 #include <netinet/in.h>
6541 #define BUFSIZE (sizeof(struct hostent)+10)
6543 struct hostent hent; char buffer[BUFSIZE];
6545 size_t alen=sizeof(struct in_addr);
6546 int bufsize=BUFSIZE;int h_errno;
6547 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6548 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6551 if { (eval echo configure:6552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6553 ol_cv_func_gethostbyaddr_r_nargs7=yes
6555 echo "configure: failed program was:" >&5
6556 cat conftest.$ac_ext >&5
6558 ol_cv_func_gethostbyaddr_r_nargs7=no
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6565 #include <sys/types.h>
6566 #include <sys/socket.h>
6567 #include <netinet/in.h>
6569 #define BUFSIZE (sizeof(struct hostent)+10)
6571 struct hostent hent;
6572 struct hostent *rhent; char buffer[BUFSIZE];
6574 size_t alen=sizeof(struct in_addr);
6575 int bufsize=BUFSIZE;int h_errno;
6576 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6577 alen, AF_INET, &hent, buffer, bufsize,
6581 if { (eval echo configure:6582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6583 ol_cv_func_gethostbyaddr_r_nargs8=yes
6585 echo "configure: failed program was:" >&5
6586 cat conftest.$ac_ext >&5
6588 ol_cv_func_gethostbyaddr_r_nargs8=no
6592 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6593 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6595 ol_cv_func_gethostbyaddr_r_nargs=7
6597 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6598 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6600 ol_cv_func_gethostbyaddr_r_nargs=8
6603 ol_cv_func_gethostbyaddr_r_nargs=0
6608 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6609 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6610 cat >> confdefs.h <<EOF
6611 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6617 ol_cv_func_gethostbyaddr_r_nargs=0
6620 if test "$ac_cv_func_ctime_r" = yes \
6621 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6622 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6623 -a "$ac_cv_func_gethostbyname_r" = yes \
6624 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6625 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6626 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6627 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6628 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6631 cat >> confdefs.h <<\EOF
6632 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6639 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6640 -o $ol_with_threads = nt ; then
6643 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6644 echo "configure:6645: checking for NT Threads" >&5
6645 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6646 echo $ac_n "(cached) $ac_c" 1>&6
6649 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6650 echo "configure:6651: checking for _beginthread" >&5
6651 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6652 echo $ac_n "(cached) $ac_c" 1>&6
6654 cat > conftest.$ac_ext <<EOF
6655 #line 6656 "configure"
6656 #include "confdefs.h"
6657 /* System header to define __stub macros and hopefully few prototypes,
6658 which can conflict with char _beginthread(); below. */
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 /* We use char because int might match the return type of a gcc2
6662 builtin and then its argument prototype would still apply. */
6663 char _beginthread();
6668 /* The GNU C library defines this for functions which it implements
6669 to always fail with ENOSYS. Some functions are actually named
6670 something starting with __ and the normal name is an alias. */
6671 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6681 eval "ac_cv_func__beginthread=yes"
6683 echo "configure: failed program was:" >&5
6684 cat conftest.$ac_ext >&5
6686 eval "ac_cv_func__beginthread=no"
6691 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6692 echo "$ac_t""yes" 1>&6
6693 ol_cv_nt_threads=yes
6695 echo "$ac_t""no" 1>&6
6702 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6704 if test $ol_cv_nt_threads = yes ; then
6705 cat >> confdefs.h <<\EOF
6706 #define HAVE_NT_THREADS 1
6712 if test "$ol_cv_nt_threads" = yes ; then
6714 ol_with_threads=found
6715 ol_with_yielding_select=yes
6717 cat >> confdefs.h <<\EOF
6718 #define HAVE_NT_SERVICE_MANAGER 1
6721 cat >> confdefs.h <<\EOF
6722 #define HAVE_NT_EVENT_LOG 1
6727 if test $ol_with_threads = nt ; then
6728 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6732 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6733 -o $ol_with_threads = posix ; then
6735 for ac_hdr in pthread.h
6737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6739 echo "configure:6740: checking for $ac_hdr" >&5
6740 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6749 { (eval echo configure:6750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6751 if test -z "$ac_err"; then
6753 eval "ac_cv_header_$ac_safe=yes"
6756 echo "configure: failed program was:" >&5
6757 cat conftest.$ac_ext >&5
6759 eval "ac_cv_header_$ac_safe=no"
6763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6764 echo "$ac_t""yes" 1>&6
6765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6766 cat >> confdefs.h <<EOF
6767 #define $ac_tr_hdr 1
6771 echo "$ac_t""no" 1>&6
6776 if test $ac_cv_header_pthread_h = yes ; then
6777 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
6778 echo "configure:6779: checking POSIX thread version" >&5
6779 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
6780 echo $ac_n "(cached) $ac_c" 1>&6
6783 cat > conftest.$ac_ext <<EOF
6784 #line 6785 "configure"
6785 #include "confdefs.h"
6787 # include <pthread.h>
6788 /* this check could be improved */
6789 # ifdef PTHREAD_ONCE_INIT
6790 pthread_version_final;
6794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6795 egrep "pthread_version_final" >/dev/null 2>&1; then
6797 ol_pthread_final=yes
6805 cat > conftest.$ac_ext <<EOF
6806 #line 6807 "configure"
6807 #include "confdefs.h"
6809 # include <pthread.h>
6810 /* this check could be improved */
6811 # ifdef pthread_once_init
6812 pthread_version_draft4;
6816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6817 egrep "pthread_version_draft4" >/dev/null 2>&1; then
6819 ol_pthread_draft4=yes
6822 ol_pthread_draft4=no
6827 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
6828 ol_cv_pthread_version=final
6829 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
6830 ol_cv_pthread_version=draft4
6832 ol_cv_pthread_version=unknown
6837 echo "$ac_t""$ol_cv_pthread_version" 1>&6
6840 if test $ol_cv_pthread_version = final ; then
6841 cat >> confdefs.h <<\EOF
6842 #define HAVE_PTHREADS_FINAL 1
6845 elif test $ol_cv_pthread_version = draft4 ; then
6846 cat >> confdefs.h <<\EOF
6847 #define HAVE_PTHREADS_D4 1
6851 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
6854 # consider threads found
6855 ol_with_threads=found
6858 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
6859 echo "configure:6860: checking for LinuxThreads pthread.h" >&5
6860 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
6861 echo $ac_n "(cached) $ac_c" 1>&6
6863 cat > conftest.$ac_ext <<EOF
6864 #line 6865 "configure"
6865 #include "confdefs.h"
6866 #include <pthread.h>
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
6871 ol_cv_header_linux_threads=yes
6874 ol_cv_header_linux_threads=no
6881 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
6882 if test $ol_cv_header_linux_threads = yes; then
6883 cat >> confdefs.h <<\EOF
6884 #define HAVE_LINUX_THREADS 1
6890 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
6891 echo "configure:6892: checking for GNU Pth pthread.h" >&5
6892 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
6893 echo $ac_n "(cached) $ac_c" 1>&6
6895 cat > conftest.$ac_ext <<EOF
6896 #line 6897 "configure"
6897 #include "confdefs.h"
6898 #include <pthread.h>
6899 #ifdef _POSIX_THREAD_IS_GNU_PTH
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 egrep "__gnu_pth__" >/dev/null 2>&1; then
6907 ol_cv_header_gnu_pth_pthread_h=yes
6910 ol_cv_header_gnu_pth_pthread_h=no
6917 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
6920 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
6921 for ac_hdr in sched.h
6923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6925 echo "configure:6926: checking for $ac_hdr" >&5
6926 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6927 echo $ac_n "(cached) $ac_c" 1>&6
6929 cat > conftest.$ac_ext <<EOF
6930 #line 6931 "configure"
6931 #include "confdefs.h"
6934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6935 { (eval echo configure:6936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6937 if test -z "$ac_err"; then
6939 eval "ac_cv_header_$ac_safe=yes"
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6945 eval "ac_cv_header_$ac_safe=no"
6949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6950 echo "$ac_t""yes" 1>&6
6951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6952 cat >> confdefs.h <<EOF
6953 #define $ac_tr_hdr 1
6957 echo "$ac_t""no" 1>&6
6964 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
6965 echo "configure:6966: checking for pthread_create in default libraries" >&5
6966 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
6967 echo $ac_n "(cached) $ac_c" 1>&6
6970 if test "$cross_compiling" = yes; then
6971 cat > conftest.$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6974 /* pthread test headers */
6975 #include <pthread.h>
6977 #define NULL (void*)0
6980 static void *task(p)
6983 return (void *) (p == NULL);
6988 /* pthread test function */
6991 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
6992 /* This system (e.g. AIX) defaults detached; must override */
6993 pthread_attr_t attr;
6995 status = pthread_attr_init(&attr);
6996 if( status ) exit( status );
6998 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
6999 if( status ) exit( status );
7003 #if HAVE_PTHREADS_D4
7004 #define ATTR pthread_attr_default
7009 /* make sure pthread_create() isn't just a stub */
7010 status = pthread_create(&t, ATTR, task, NULL);
7011 if( status ) exit( status );
7013 /* make sure pthread_detach() isn't just a stub */
7014 #if HAVE_PTHREADS_D4
7015 status = pthread_detach( &t );
7017 status = pthread_detach( t );
7020 #ifdef HAVE_LINUX_THREADS
7021 pthread_kill_other_threads_np();
7028 if { (eval echo configure:7029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7030 ol_cv_pthread_create=yes
7032 echo "configure: failed program was:" >&5
7033 cat conftest.$ac_ext >&5
7035 ol_cv_pthread_create=no
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 /* pthread test headers */
7043 #include <pthread.h>
7045 #define NULL (void*)0
7048 static void *task(p)
7051 return (void *) (p == NULL);
7055 int main(argc, argv)
7060 /* pthread test function */
7063 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7064 /* This system (e.g. AIX) defaults detached; must override */
7065 pthread_attr_t attr;
7067 status = pthread_attr_init(&attr);
7068 if( status ) exit( status );
7070 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7071 if( status ) exit( status );
7075 #if HAVE_PTHREADS_D4
7076 #define ATTR pthread_attr_default
7081 /* make sure pthread_create() isn't just a stub */
7082 status = pthread_create(&t, ATTR, task, NULL);
7083 if( status ) exit( status );
7085 /* make sure pthread_detach() isn't just a stub */
7086 #if HAVE_PTHREADS_D4
7087 status = pthread_detach( &t );
7089 status = pthread_detach( t );
7092 #ifdef HAVE_LINUX_THREADS
7093 pthread_kill_other_threads_np();
7101 if { (eval echo configure:7102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7103 ol_cv_pthread_create=yes
7105 echo "configure: failed program was:" >&5
7106 cat conftest.$ac_ext >&5
7108 ol_cv_pthread_create=no
7115 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7117 if test $ol_cv_pthread_create != no ; then
7118 ol_link_threads=posix
7122 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7123 if test "$ol_link_threads" = no ; then
7125 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7126 echo "configure:7127: checking for pthread link with -kthread" >&5
7127 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7128 echo $ac_n "(cached) $ac_c" 1>&6
7133 LIBS="-kthread $LIBS"
7135 if test "$cross_compiling" = yes; then
7136 cat > conftest.$ac_ext <<EOF
7137 #line 7138 "configure"
7138 #include "confdefs.h"
7139 /* pthread test headers */
7140 #include <pthread.h>
7142 #define NULL (void*)0
7145 static void *task(p)
7148 return (void *) (p == NULL);
7153 /* pthread test function */
7156 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7157 /* This system (e.g. AIX) defaults detached; must override */
7158 pthread_attr_t attr;
7160 status = pthread_attr_init(&attr);
7161 if( status ) exit( status );
7163 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7164 if( status ) exit( status );
7168 #if HAVE_PTHREADS_D4
7169 #define ATTR pthread_attr_default
7174 /* make sure pthread_create() isn't just a stub */
7175 status = pthread_create(&t, ATTR, task, NULL);
7176 if( status ) exit( status );
7178 /* make sure pthread_detach() isn't just a stub */
7179 #if HAVE_PTHREADS_D4
7180 status = pthread_detach( &t );
7182 status = pthread_detach( t );
7185 #ifdef HAVE_LINUX_THREADS
7186 pthread_kill_other_threads_np();
7193 if { (eval echo configure:7194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7195 ol_cv_pthread_kthread=yes
7197 echo "configure: failed program was:" >&5
7198 cat conftest.$ac_ext >&5
7200 ol_cv_pthread_kthread=no
7204 cat > conftest.$ac_ext <<EOF
7205 #line 7206 "configure"
7206 #include "confdefs.h"
7207 /* pthread test headers */
7208 #include <pthread.h>
7210 #define NULL (void*)0
7213 static void *task(p)
7216 return (void *) (p == NULL);
7220 int main(argc, argv)
7225 /* pthread test function */
7228 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7229 /* This system (e.g. AIX) defaults detached; must override */
7230 pthread_attr_t attr;
7232 status = pthread_attr_init(&attr);
7233 if( status ) exit( status );
7235 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7236 if( status ) exit( status );
7240 #if HAVE_PTHREADS_D4
7241 #define ATTR pthread_attr_default
7246 /* make sure pthread_create() isn't just a stub */
7247 status = pthread_create(&t, ATTR, task, NULL);
7248 if( status ) exit( status );
7250 /* make sure pthread_detach() isn't just a stub */
7251 #if HAVE_PTHREADS_D4
7252 status = pthread_detach( &t );
7254 status = pthread_detach( t );
7257 #ifdef HAVE_LINUX_THREADS
7258 pthread_kill_other_threads_np();
7266 if { (eval echo configure:7267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7268 ol_cv_pthread_kthread=yes
7270 echo "configure: failed program was:" >&5
7271 cat conftest.$ac_ext >&5
7273 ol_cv_pthread_kthread=no
7284 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7286 if test $ol_cv_pthread_kthread = yes ; then
7287 ol_link_pthreads="-kthread"
7288 ol_link_threads=posix
7292 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7293 if test "$ol_link_threads" = no ; then
7295 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7296 echo "configure:7297: checking for pthread link with -pthread" >&5
7297 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7298 echo $ac_n "(cached) $ac_c" 1>&6
7303 LIBS="-pthread $LIBS"
7305 if test "$cross_compiling" = yes; then
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 /* pthread test headers */
7310 #include <pthread.h>
7312 #define NULL (void*)0
7315 static void *task(p)
7318 return (void *) (p == NULL);
7323 /* pthread test function */
7326 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7327 /* This system (e.g. AIX) defaults detached; must override */
7328 pthread_attr_t attr;
7330 status = pthread_attr_init(&attr);
7331 if( status ) exit( status );
7333 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7334 if( status ) exit( status );
7338 #if HAVE_PTHREADS_D4
7339 #define ATTR pthread_attr_default
7344 /* make sure pthread_create() isn't just a stub */
7345 status = pthread_create(&t, ATTR, task, NULL);
7346 if( status ) exit( status );
7348 /* make sure pthread_detach() isn't just a stub */
7349 #if HAVE_PTHREADS_D4
7350 status = pthread_detach( &t );
7352 status = pthread_detach( t );
7355 #ifdef HAVE_LINUX_THREADS
7356 pthread_kill_other_threads_np();
7363 if { (eval echo configure:7364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7365 ol_cv_pthread_pthread=yes
7367 echo "configure: failed program was:" >&5
7368 cat conftest.$ac_ext >&5
7370 ol_cv_pthread_pthread=no
7374 cat > conftest.$ac_ext <<EOF
7375 #line 7376 "configure"
7376 #include "confdefs.h"
7377 /* pthread test headers */
7378 #include <pthread.h>
7380 #define NULL (void*)0
7383 static void *task(p)
7386 return (void *) (p == NULL);
7390 int main(argc, argv)
7395 /* pthread test function */
7398 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7399 /* This system (e.g. AIX) defaults detached; must override */
7400 pthread_attr_t attr;
7402 status = pthread_attr_init(&attr);
7403 if( status ) exit( status );
7405 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7406 if( status ) exit( status );
7410 #if 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 /* make sure pthread_detach() isn't just a stub */
7421 #if HAVE_PTHREADS_D4
7422 status = pthread_detach( &t );
7424 status = pthread_detach( t );
7427 #ifdef HAVE_LINUX_THREADS
7428 pthread_kill_other_threads_np();
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7438 ol_cv_pthread_pthread=yes
7440 echo "configure: failed program was:" >&5
7441 cat conftest.$ac_ext >&5
7443 ol_cv_pthread_pthread=no
7454 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7456 if test $ol_cv_pthread_pthread = yes ; then
7457 ol_link_pthreads="-pthread"
7458 ol_link_threads=posix
7462 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7463 if test "$ol_link_threads" = no ; then
7465 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7466 echo "configure:7467: checking for pthread link with -pthreads" >&5
7467 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7468 echo $ac_n "(cached) $ac_c" 1>&6
7473 LIBS="-pthreads $LIBS"
7475 if test "$cross_compiling" = yes; then
7476 cat > conftest.$ac_ext <<EOF
7477 #line 7478 "configure"
7478 #include "confdefs.h"
7479 /* pthread test headers */
7480 #include <pthread.h>
7482 #define NULL (void*)0
7485 static void *task(p)
7488 return (void *) (p == NULL);
7493 /* pthread test function */
7496 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7497 /* This system (e.g. AIX) defaults detached; must override */
7498 pthread_attr_t attr;
7500 status = pthread_attr_init(&attr);
7501 if( status ) exit( status );
7503 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7504 if( status ) exit( status );
7508 #if HAVE_PTHREADS_D4
7509 #define ATTR pthread_attr_default
7514 /* make sure pthread_create() isn't just a stub */
7515 status = pthread_create(&t, ATTR, task, NULL);
7516 if( status ) exit( status );
7518 /* make sure pthread_detach() isn't just a stub */
7519 #if HAVE_PTHREADS_D4
7520 status = pthread_detach( &t );
7522 status = pthread_detach( t );
7525 #ifdef HAVE_LINUX_THREADS
7526 pthread_kill_other_threads_np();
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7535 ol_cv_pthread_pthreads=yes
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 ol_cv_pthread_pthreads=no
7544 cat > conftest.$ac_ext <<EOF
7545 #line 7546 "configure"
7546 #include "confdefs.h"
7547 /* pthread test headers */
7548 #include <pthread.h>
7550 #define NULL (void*)0
7553 static void *task(p)
7556 return (void *) (p == NULL);
7560 int main(argc, argv)
7565 /* pthread test function */
7568 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7569 /* This system (e.g. AIX) defaults detached; must override */
7570 pthread_attr_t attr;
7572 status = pthread_attr_init(&attr);
7573 if( status ) exit( status );
7575 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7576 if( status ) exit( status );
7580 #if HAVE_PTHREADS_D4
7581 #define ATTR pthread_attr_default
7586 /* make sure pthread_create() isn't just a stub */
7587 status = pthread_create(&t, ATTR, task, NULL);
7588 if( status ) exit( status );
7590 /* make sure pthread_detach() isn't just a stub */
7591 #if HAVE_PTHREADS_D4
7592 status = pthread_detach( &t );
7594 status = pthread_detach( t );
7597 #ifdef HAVE_LINUX_THREADS
7598 pthread_kill_other_threads_np();
7606 if { (eval echo configure:7607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7608 ol_cv_pthread_pthreads=yes
7610 echo "configure: failed program was:" >&5
7611 cat conftest.$ac_ext >&5
7613 ol_cv_pthread_pthreads=no
7624 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7626 if test $ol_cv_pthread_pthreads = yes ; then
7627 ol_link_pthreads="-pthreads"
7628 ol_link_threads=posix
7632 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7633 if test "$ol_link_threads" = no ; then
7635 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7636 echo "configure:7637: checking for pthread link with -mthreads" >&5
7637 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7638 echo $ac_n "(cached) $ac_c" 1>&6
7643 LIBS="-mthreads $LIBS"
7645 if test "$cross_compiling" = yes; then
7646 cat > conftest.$ac_ext <<EOF
7647 #line 7648 "configure"
7648 #include "confdefs.h"
7649 /* pthread test headers */
7650 #include <pthread.h>
7652 #define NULL (void*)0
7655 static void *task(p)
7658 return (void *) (p == NULL);
7663 /* pthread test function */
7666 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7667 /* This system (e.g. AIX) defaults detached; must override */
7668 pthread_attr_t attr;
7670 status = pthread_attr_init(&attr);
7671 if( status ) exit( status );
7673 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7674 if( status ) exit( status );
7678 #if HAVE_PTHREADS_D4
7679 #define ATTR pthread_attr_default
7684 /* make sure pthread_create() isn't just a stub */
7685 status = pthread_create(&t, ATTR, task, NULL);
7686 if( status ) exit( status );
7688 /* make sure pthread_detach() isn't just a stub */
7689 #if HAVE_PTHREADS_D4
7690 status = pthread_detach( &t );
7692 status = pthread_detach( t );
7695 #ifdef HAVE_LINUX_THREADS
7696 pthread_kill_other_threads_np();
7703 if { (eval echo configure:7704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7705 ol_cv_pthread_mthreads=yes
7707 echo "configure: failed program was:" >&5
7708 cat conftest.$ac_ext >&5
7710 ol_cv_pthread_mthreads=no
7714 cat > conftest.$ac_ext <<EOF
7715 #line 7716 "configure"
7716 #include "confdefs.h"
7717 /* pthread test headers */
7718 #include <pthread.h>
7720 #define NULL (void*)0
7723 static void *task(p)
7726 return (void *) (p == NULL);
7730 int main(argc, argv)
7735 /* pthread test function */
7738 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7739 /* This system (e.g. AIX) defaults detached; must override */
7740 pthread_attr_t attr;
7742 status = pthread_attr_init(&attr);
7743 if( status ) exit( status );
7745 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7746 if( status ) exit( status );
7750 #if HAVE_PTHREADS_D4
7751 #define ATTR pthread_attr_default
7756 /* make sure pthread_create() isn't just a stub */
7757 status = pthread_create(&t, ATTR, task, NULL);
7758 if( status ) exit( status );
7760 /* make sure pthread_detach() isn't just a stub */
7761 #if HAVE_PTHREADS_D4
7762 status = pthread_detach( &t );
7764 status = pthread_detach( t );
7767 #ifdef HAVE_LINUX_THREADS
7768 pthread_kill_other_threads_np();
7776 if { (eval echo configure:7777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7778 ol_cv_pthread_mthreads=yes
7780 echo "configure: failed program was:" >&5
7781 cat conftest.$ac_ext >&5
7783 ol_cv_pthread_mthreads=no
7794 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
7796 if test $ol_cv_pthread_mthreads = yes ; then
7797 ol_link_pthreads="-mthreads"
7798 ol_link_threads=posix
7802 # Pthread try link: -thread (ol_cv_pthread_thread)
7803 if test "$ol_link_threads" = no ; then
7805 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
7806 echo "configure:7807: checking for pthread link with -thread" >&5
7807 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7813 LIBS="-thread $LIBS"
7815 if test "$cross_compiling" = yes; then
7816 cat > conftest.$ac_ext <<EOF
7817 #line 7818 "configure"
7818 #include "confdefs.h"
7819 /* pthread test headers */
7820 #include <pthread.h>
7822 #define NULL (void*)0
7825 static void *task(p)
7828 return (void *) (p == NULL);
7833 /* pthread test function */
7836 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7837 /* This system (e.g. AIX) defaults detached; must override */
7838 pthread_attr_t attr;
7840 status = pthread_attr_init(&attr);
7841 if( status ) exit( status );
7843 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7844 if( status ) exit( status );
7848 #if HAVE_PTHREADS_D4
7849 #define ATTR pthread_attr_default
7854 /* make sure pthread_create() isn't just a stub */
7855 status = pthread_create(&t, ATTR, task, NULL);
7856 if( status ) exit( status );
7858 /* make sure pthread_detach() isn't just a stub */
7859 #if HAVE_PTHREADS_D4
7860 status = pthread_detach( &t );
7862 status = pthread_detach( t );
7865 #ifdef HAVE_LINUX_THREADS
7866 pthread_kill_other_threads_np();
7873 if { (eval echo configure:7874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7875 ol_cv_pthread_thread=yes
7877 echo "configure: failed program was:" >&5
7878 cat conftest.$ac_ext >&5
7880 ol_cv_pthread_thread=no
7884 cat > conftest.$ac_ext <<EOF
7885 #line 7886 "configure"
7886 #include "confdefs.h"
7887 /* pthread test headers */
7888 #include <pthread.h>
7890 #define NULL (void*)0
7893 static void *task(p)
7896 return (void *) (p == NULL);
7900 int main(argc, argv)
7905 /* pthread test function */
7908 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7909 /* This system (e.g. AIX) defaults detached; must override */
7910 pthread_attr_t attr;
7912 status = pthread_attr_init(&attr);
7913 if( status ) exit( status );
7915 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7916 if( status ) exit( status );
7920 #if HAVE_PTHREADS_D4
7921 #define ATTR pthread_attr_default
7926 /* make sure pthread_create() isn't just a stub */
7927 status = pthread_create(&t, ATTR, task, NULL);
7928 if( status ) exit( status );
7930 /* make sure pthread_detach() isn't just a stub */
7931 #if HAVE_PTHREADS_D4
7932 status = pthread_detach( &t );
7934 status = pthread_detach( t );
7937 #ifdef HAVE_LINUX_THREADS
7938 pthread_kill_other_threads_np();
7946 if { (eval echo configure:7947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7948 ol_cv_pthread_thread=yes
7950 echo "configure: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 ol_cv_pthread_thread=no
7964 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
7966 if test $ol_cv_pthread_thread = yes ; then
7967 ol_link_pthreads="-thread"
7968 ol_link_threads=posix
7973 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
7974 if test "$ol_link_threads" = no ; then
7975 # try -lpthread -lmach -lexc -lc_r
7976 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
7977 echo "configure:7978: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
7978 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
7979 echo $ac_n "(cached) $ac_c" 1>&6
7984 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
7986 if test "$cross_compiling" = yes; then
7987 cat > conftest.$ac_ext <<EOF
7988 #line 7989 "configure"
7989 #include "confdefs.h"
7990 /* pthread test headers */
7991 #include <pthread.h>
7993 #define NULL (void*)0
7996 static void *task(p)
7999 return (void *) (p == NULL);
8004 /* pthread test function */
8007 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8008 /* This system (e.g. AIX) defaults detached; must override */
8009 pthread_attr_t attr;
8011 status = pthread_attr_init(&attr);
8012 if( status ) exit( status );
8014 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8015 if( status ) exit( status );
8019 #if HAVE_PTHREADS_D4
8020 #define ATTR pthread_attr_default
8025 /* make sure pthread_create() isn't just a stub */
8026 status = pthread_create(&t, ATTR, task, NULL);
8027 if( status ) exit( status );
8029 /* make sure pthread_detach() isn't just a stub */
8030 #if HAVE_PTHREADS_D4
8031 status = pthread_detach( &t );
8033 status = pthread_detach( t );
8036 #ifdef HAVE_LINUX_THREADS
8037 pthread_kill_other_threads_np();
8044 if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8046 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8048 echo "configure: failed program was:" >&5
8049 cat conftest.$ac_ext >&5
8051 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8055 cat > conftest.$ac_ext <<EOF
8056 #line 8057 "configure"
8057 #include "confdefs.h"
8058 /* pthread test headers */
8059 #include <pthread.h>
8061 #define NULL (void*)0
8064 static void *task(p)
8067 return (void *) (p == NULL);
8071 int main(argc, argv)
8076 /* pthread test function */
8079 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8080 /* This system (e.g. AIX) defaults detached; must override */
8081 pthread_attr_t attr;
8083 status = pthread_attr_init(&attr);
8084 if( status ) exit( status );
8086 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8087 if( status ) exit( status );
8091 #if HAVE_PTHREADS_D4
8092 #define ATTR pthread_attr_default
8097 /* make sure pthread_create() isn't just a stub */
8098 status = pthread_create(&t, ATTR, task, NULL);
8099 if( status ) exit( status );
8101 /* make sure pthread_detach() isn't just a stub */
8102 #if HAVE_PTHREADS_D4
8103 status = pthread_detach( &t );
8105 status = pthread_detach( t );
8108 #ifdef HAVE_LINUX_THREADS
8109 pthread_kill_other_threads_np();
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8119 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8135 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8137 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8138 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8139 ol_link_threads=posix
8143 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8144 if test "$ol_link_threads" = no ; then
8145 # try -lpthread -lmach -lexc
8146 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8147 echo "configure:8148: checking for pthread link with -lpthread -lmach -lexc" >&5
8148 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8149 echo $ac_n "(cached) $ac_c" 1>&6
8154 LIBS="-lpthread -lmach -lexc $LIBS"
8156 if test "$cross_compiling" = yes; then
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8160 /* pthread test headers */
8161 #include <pthread.h>
8163 #define NULL (void*)0
8166 static void *task(p)
8169 return (void *) (p == NULL);
8174 /* pthread test function */
8177 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8178 /* This system (e.g. AIX) defaults detached; must override */
8179 pthread_attr_t attr;
8181 status = pthread_attr_init(&attr);
8182 if( status ) exit( status );
8184 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8185 if( status ) exit( status );
8189 #if HAVE_PTHREADS_D4
8190 #define ATTR pthread_attr_default
8195 /* make sure pthread_create() isn't just a stub */
8196 status = pthread_create(&t, ATTR, task, NULL);
8197 if( status ) exit( status );
8199 /* make sure pthread_detach() isn't just a stub */
8200 #if HAVE_PTHREADS_D4
8201 status = pthread_detach( &t );
8203 status = pthread_detach( t );
8206 #ifdef HAVE_LINUX_THREADS
8207 pthread_kill_other_threads_np();
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8216 ol_cv_pthread_lpthread_lmach_lexc=yes
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8221 ol_cv_pthread_lpthread_lmach_lexc=no
8225 cat > conftest.$ac_ext <<EOF
8226 #line 8227 "configure"
8227 #include "confdefs.h"
8228 /* pthread test headers */
8229 #include <pthread.h>
8231 #define NULL (void*)0
8234 static void *task(p)
8237 return (void *) (p == NULL);
8241 int main(argc, argv)
8246 /* pthread test function */
8249 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8250 /* This system (e.g. AIX) defaults detached; must override */
8251 pthread_attr_t attr;
8253 status = pthread_attr_init(&attr);
8254 if( status ) exit( status );
8256 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8257 if( status ) exit( status );
8261 #if HAVE_PTHREADS_D4
8262 #define ATTR pthread_attr_default
8267 /* make sure pthread_create() isn't just a stub */
8268 status = pthread_create(&t, ATTR, task, NULL);
8269 if( status ) exit( status );
8271 /* make sure pthread_detach() isn't just a stub */
8272 #if HAVE_PTHREADS_D4
8273 status = pthread_detach( &t );
8275 status = pthread_detach( t );
8278 #ifdef HAVE_LINUX_THREADS
8279 pthread_kill_other_threads_np();
8287 if { (eval echo configure:8288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8289 ol_cv_pthread_lpthread_lmach_lexc=yes
8291 echo "configure: failed program was:" >&5
8292 cat conftest.$ac_ext >&5
8294 ol_cv_pthread_lpthread_lmach_lexc=no
8305 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8307 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8308 ol_link_pthreads="-lpthread -lmach -lexc"
8309 ol_link_threads=posix
8314 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8315 if test "$ol_link_threads" = no ; then
8316 # try -lpthread -Wl,-woff,85
8317 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8318 echo "configure:8319: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8319 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8325 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8327 if test "$cross_compiling" = yes; then
8328 cat > conftest.$ac_ext <<EOF
8329 #line 8330 "configure"
8330 #include "confdefs.h"
8331 /* pthread test headers */
8332 #include <pthread.h>
8334 #define NULL (void*)0
8337 static void *task(p)
8340 return (void *) (p == NULL);
8345 /* pthread test function */
8348 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8349 /* This system (e.g. AIX) defaults detached; must override */
8350 pthread_attr_t attr;
8352 status = pthread_attr_init(&attr);
8353 if( status ) exit( status );
8355 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8356 if( status ) exit( status );
8360 #if HAVE_PTHREADS_D4
8361 #define ATTR pthread_attr_default
8366 /* make sure pthread_create() isn't just a stub */
8367 status = pthread_create(&t, ATTR, task, NULL);
8368 if( status ) exit( status );
8370 /* make sure pthread_detach() isn't just a stub */
8371 #if HAVE_PTHREADS_D4
8372 status = pthread_detach( &t );
8374 status = pthread_detach( t );
8377 #ifdef HAVE_LINUX_THREADS
8378 pthread_kill_other_threads_np();
8385 if { (eval echo configure:8386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387 ol_cv_pthread_lib_lpthread_woff=yes
8389 echo "configure: failed program was:" >&5
8390 cat conftest.$ac_ext >&5
8392 ol_cv_pthread_lib_lpthread_woff=no
8396 cat > conftest.$ac_ext <<EOF
8397 #line 8398 "configure"
8398 #include "confdefs.h"
8399 /* pthread test headers */
8400 #include <pthread.h>
8402 #define NULL (void*)0
8405 static void *task(p)
8408 return (void *) (p == NULL);
8412 int main(argc, argv)
8417 /* pthread test function */
8420 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8421 /* This system (e.g. AIX) defaults detached; must override */
8422 pthread_attr_t attr;
8424 status = pthread_attr_init(&attr);
8425 if( status ) exit( status );
8427 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8428 if( status ) exit( status );
8432 #if HAVE_PTHREADS_D4
8433 #define ATTR pthread_attr_default
8438 /* make sure pthread_create() isn't just a stub */
8439 status = pthread_create(&t, ATTR, task, NULL);
8440 if( status ) exit( status );
8442 /* make sure pthread_detach() isn't just a stub */
8443 #if HAVE_PTHREADS_D4
8444 status = pthread_detach( &t );
8446 status = pthread_detach( t );
8449 #ifdef HAVE_LINUX_THREADS
8450 pthread_kill_other_threads_np();
8458 if { (eval echo configure:8459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8460 ol_cv_pthread_lib_lpthread_woff=yes
8462 echo "configure: failed program was:" >&5
8463 cat conftest.$ac_ext >&5
8465 ol_cv_pthread_lib_lpthread_woff=no
8476 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8478 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8479 ol_link_pthreads="-lpthread -Wl,-woff,85"
8480 ol_link_threads=posix
8485 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8486 if test "$ol_link_threads" = no ; then
8488 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8489 echo "configure:8490: checking for pthread link with -lpthread" >&5
8490 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8491 echo $ac_n "(cached) $ac_c" 1>&6
8496 LIBS="-lpthread $LIBS"
8498 if test "$cross_compiling" = yes; then
8499 cat > conftest.$ac_ext <<EOF
8500 #line 8501 "configure"
8501 #include "confdefs.h"
8502 /* pthread test headers */
8503 #include <pthread.h>
8505 #define NULL (void*)0
8508 static void *task(p)
8511 return (void *) (p == NULL);
8516 /* pthread test function */
8519 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8520 /* This system (e.g. AIX) defaults detached; must override */
8521 pthread_attr_t attr;
8523 status = pthread_attr_init(&attr);
8524 if( status ) exit( status );
8526 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8527 if( status ) exit( status );
8531 #if HAVE_PTHREADS_D4
8532 #define ATTR pthread_attr_default
8537 /* make sure pthread_create() isn't just a stub */
8538 status = pthread_create(&t, ATTR, task, NULL);
8539 if( status ) exit( status );
8541 /* make sure pthread_detach() isn't just a stub */
8542 #if HAVE_PTHREADS_D4
8543 status = pthread_detach( &t );
8545 status = pthread_detach( t );
8548 #ifdef HAVE_LINUX_THREADS
8549 pthread_kill_other_threads_np();
8556 if { (eval echo configure:8557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8558 ol_cv_pthread_lpthread=yes
8560 echo "configure: failed program was:" >&5
8561 cat conftest.$ac_ext >&5
8563 ol_cv_pthread_lpthread=no
8567 cat > conftest.$ac_ext <<EOF
8568 #line 8569 "configure"
8569 #include "confdefs.h"
8570 /* pthread test headers */
8571 #include <pthread.h>
8573 #define NULL (void*)0
8576 static void *task(p)
8579 return (void *) (p == NULL);
8583 int main(argc, argv)
8588 /* pthread test function */
8591 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8592 /* This system (e.g. AIX) defaults detached; must override */
8593 pthread_attr_t attr;
8595 status = pthread_attr_init(&attr);
8596 if( status ) exit( status );
8598 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8599 if( status ) exit( status );
8603 #if HAVE_PTHREADS_D4
8604 #define ATTR pthread_attr_default
8609 /* make sure pthread_create() isn't just a stub */
8610 status = pthread_create(&t, ATTR, task, NULL);
8611 if( status ) exit( status );
8613 /* make sure pthread_detach() isn't just a stub */
8614 #if HAVE_PTHREADS_D4
8615 status = pthread_detach( &t );
8617 status = pthread_detach( t );
8620 #ifdef HAVE_LINUX_THREADS
8621 pthread_kill_other_threads_np();
8629 if { (eval echo configure:8630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8631 ol_cv_pthread_lpthread=yes
8633 echo "configure: failed program was:" >&5
8634 cat conftest.$ac_ext >&5
8636 ol_cv_pthread_lpthread=no
8647 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8649 if test $ol_cv_pthread_lpthread = yes ; then
8650 ol_link_pthreads="-lpthread"
8651 ol_link_threads=posix
8655 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8656 if test "$ol_link_threads" = no ; then
8658 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8659 echo "configure:8660: checking for pthread link with -lc_r" >&5
8660 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8668 if test "$cross_compiling" = yes; then
8669 cat > conftest.$ac_ext <<EOF
8670 #line 8671 "configure"
8671 #include "confdefs.h"
8672 /* pthread test headers */
8673 #include <pthread.h>
8675 #define NULL (void*)0
8678 static void *task(p)
8681 return (void *) (p == NULL);
8686 /* pthread test function */
8689 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8690 /* This system (e.g. AIX) defaults detached; must override */
8691 pthread_attr_t attr;
8693 status = pthread_attr_init(&attr);
8694 if( status ) exit( status );
8696 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8697 if( status ) exit( status );
8701 #if HAVE_PTHREADS_D4
8702 #define ATTR pthread_attr_default
8707 /* make sure pthread_create() isn't just a stub */
8708 status = pthread_create(&t, ATTR, task, NULL);
8709 if( status ) exit( status );
8711 /* make sure pthread_detach() isn't just a stub */
8712 #if HAVE_PTHREADS_D4
8713 status = pthread_detach( &t );
8715 status = pthread_detach( t );
8718 #ifdef HAVE_LINUX_THREADS
8719 pthread_kill_other_threads_np();
8726 if { (eval echo configure:8727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8728 ol_cv_pthread_lc_r=yes
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 ol_cv_pthread_lc_r=no
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 /* pthread test headers */
8741 #include <pthread.h>
8743 #define NULL (void*)0
8746 static void *task(p)
8749 return (void *) (p == NULL);
8753 int main(argc, argv)
8758 /* pthread test function */
8761 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8762 /* This system (e.g. AIX) defaults detached; must override */
8763 pthread_attr_t attr;
8765 status = pthread_attr_init(&attr);
8766 if( status ) exit( status );
8768 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8769 if( status ) exit( status );
8773 #if HAVE_PTHREADS_D4
8774 #define ATTR pthread_attr_default
8779 /* make sure pthread_create() isn't just a stub */
8780 status = pthread_create(&t, ATTR, task, NULL);
8781 if( status ) exit( status );
8783 /* make sure pthread_detach() isn't just a stub */
8784 #if HAVE_PTHREADS_D4
8785 status = pthread_detach( &t );
8787 status = pthread_detach( t );
8790 #ifdef HAVE_LINUX_THREADS
8791 pthread_kill_other_threads_np();
8799 if { (eval echo configure:8800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8801 ol_cv_pthread_lc_r=yes
8803 echo "configure: failed program was:" >&5
8804 cat conftest.$ac_ext >&5
8806 ol_cv_pthread_lc_r=no
8817 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8819 if test $ol_cv_pthread_lc_r = yes ; then
8820 ol_link_pthreads="-lc_r"
8821 ol_link_threads=posix
8826 # Pthread try link: -threads (ol_cv_pthread_threads)
8827 if test "$ol_link_threads" = no ; then
8829 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8830 echo "configure:8831: checking for pthread link with -threads" >&5
8831 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8832 echo $ac_n "(cached) $ac_c" 1>&6
8837 LIBS="-threads $LIBS"
8839 if test "$cross_compiling" = yes; then
8840 cat > conftest.$ac_ext <<EOF
8841 #line 8842 "configure"
8842 #include "confdefs.h"
8843 /* pthread test headers */
8844 #include <pthread.h>
8846 #define NULL (void*)0
8849 static void *task(p)
8852 return (void *) (p == NULL);
8857 /* pthread test function */
8860 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8861 /* This system (e.g. AIX) defaults detached; must override */
8862 pthread_attr_t attr;
8864 status = pthread_attr_init(&attr);
8865 if( status ) exit( status );
8867 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8868 if( status ) exit( status );
8872 #if HAVE_PTHREADS_D4
8873 #define ATTR pthread_attr_default
8878 /* make sure pthread_create() isn't just a stub */
8879 status = pthread_create(&t, ATTR, task, NULL);
8880 if( status ) exit( status );
8882 /* make sure pthread_detach() isn't just a stub */
8883 #if HAVE_PTHREADS_D4
8884 status = pthread_detach( &t );
8886 status = pthread_detach( t );
8889 #ifdef HAVE_LINUX_THREADS
8890 pthread_kill_other_threads_np();
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8899 ol_cv_pthread_threads=yes
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8904 ol_cv_pthread_threads=no
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);
8924 int main(argc, argv)
8929 /* pthread test function */
8932 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8933 /* This system (e.g. AIX) defaults detached; must override */
8934 pthread_attr_t attr;
8936 status = pthread_attr_init(&attr);
8937 if( status ) exit( status );
8939 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8940 if( status ) exit( status );
8944 #if HAVE_PTHREADS_D4
8945 #define ATTR pthread_attr_default
8950 /* make sure pthread_create() isn't just a stub */
8951 status = pthread_create(&t, ATTR, task, NULL);
8952 if( status ) exit( status );
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();
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8972 ol_cv_pthread_threads=yes
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8977 ol_cv_pthread_threads=no
8988 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
8990 if test $ol_cv_pthread_threads = yes ; then
8991 ol_link_pthreads="-threads"
8992 ol_link_threads=posix
8997 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
8998 if test "$ol_link_threads" = no ; then
8999 # try -lpthreads -lmach -lexc -lc_r
9000 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9001 echo "configure:9002: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9002 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9003 echo $ac_n "(cached) $ac_c" 1>&6
9008 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9010 if test "$cross_compiling" = yes; then
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9013 "configure"
9013 #include "confdefs.h"
9014 /* pthread test headers */
9015 #include <pthread.h>
9017 #define NULL (void*)0
9020 static void *task(p)
9023 return (void *) (p == NULL);
9028 /* pthread test function */
9031 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9032 /* This system (e.g. AIX) defaults detached; must override */
9033 pthread_attr_t attr;
9035 status = pthread_attr_init(&attr);
9036 if( status ) exit( status );
9038 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9039 if( status ) exit( status );
9043 #if HAVE_PTHREADS_D4
9044 #define ATTR pthread_attr_default
9049 /* make sure pthread_create() isn't just a stub */
9050 status = pthread_create(&t, ATTR, task, NULL);
9051 if( status ) exit( status );
9053 /* make sure pthread_detach() isn't just a stub */
9054 #if HAVE_PTHREADS_D4
9055 status = pthread_detach( &t );
9057 status = pthread_detach( t );
9060 #ifdef HAVE_LINUX_THREADS
9061 pthread_kill_other_threads_np();
9068 if { (eval echo configure:9069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9070 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9072 echo "configure: failed program was:" >&5
9073 cat conftest.$ac_ext >&5
9075 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9079 cat > conftest.$ac_ext <<EOF
9080 #line 9081 "configure"
9081 #include "confdefs.h"
9082 /* pthread test headers */
9083 #include <pthread.h>
9085 #define NULL (void*)0
9088 static void *task(p)
9091 return (void *) (p == NULL);
9095 int main(argc, argv)
9100 /* pthread test function */
9103 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9104 /* This system (e.g. AIX) defaults detached; must override */
9105 pthread_attr_t attr;
9107 status = pthread_attr_init(&attr);
9108 if( status ) exit( status );
9110 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9111 if( status ) exit( status );
9115 #if HAVE_PTHREADS_D4
9116 #define ATTR pthread_attr_default
9121 /* make sure pthread_create() isn't just a stub */
9122 status = pthread_create(&t, ATTR, task, NULL);
9123 if( status ) exit( status );
9125 /* make sure pthread_detach() isn't just a stub */
9126 #if HAVE_PTHREADS_D4
9127 status = pthread_detach( &t );
9129 status = pthread_detach( t );
9132 #ifdef HAVE_LINUX_THREADS
9133 pthread_kill_other_threads_np();
9141 if { (eval echo configure:9142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9143 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9145 echo "configure: failed program was:" >&5
9146 cat conftest.$ac_ext >&5
9148 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9159 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9161 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9162 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9163 ol_link_threads=posix
9167 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9168 if test "$ol_link_threads" = no ; then
9169 # try -lpthreads -lmach -lexc
9170 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9171 echo "configure:9172: checking for pthread link with -lpthreads -lmach -lexc" >&5
9172 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9173 echo $ac_n "(cached) $ac_c" 1>&6
9178 LIBS="-lpthreads -lmach -lexc $LIBS"
9180 if test "$cross_compiling" = yes; then
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9184 /* pthread test headers */
9185 #include <pthread.h>
9187 #define NULL (void*)0
9190 static void *task(p)
9193 return (void *) (p == NULL);
9198 /* pthread test function */
9201 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9202 /* This system (e.g. AIX) defaults detached; must override */
9203 pthread_attr_t attr;
9205 status = pthread_attr_init(&attr);
9206 if( status ) exit( status );
9208 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9209 if( status ) exit( status );
9213 #if HAVE_PTHREADS_D4
9214 #define ATTR pthread_attr_default
9219 /* make sure pthread_create() isn't just a stub */
9220 status = pthread_create(&t, ATTR, task, NULL);
9221 if( status ) exit( status );
9223 /* make sure pthread_detach() isn't just a stub */
9224 #if HAVE_PTHREADS_D4
9225 status = pthread_detach( &t );
9227 status = pthread_detach( t );
9230 #ifdef HAVE_LINUX_THREADS
9231 pthread_kill_other_threads_np();
9238 if { (eval echo configure:9239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9240 ol_cv_pthread_lpthreads_lmach_lexc=yes
9242 echo "configure: failed program was:" >&5
9243 cat conftest.$ac_ext >&5
9245 ol_cv_pthread_lpthreads_lmach_lexc=no
9249 cat > conftest.$ac_ext <<EOF
9250 #line 9251 "configure"
9251 #include "confdefs.h"
9252 /* pthread test headers */
9253 #include <pthread.h>
9255 #define NULL (void*)0
9258 static void *task(p)
9261 return (void *) (p == NULL);
9265 int main(argc, argv)
9270 /* pthread test function */
9273 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9274 /* This system (e.g. AIX) defaults detached; must override */
9275 pthread_attr_t attr;
9277 status = pthread_attr_init(&attr);
9278 if( status ) exit( status );
9280 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9281 if( status ) exit( status );
9285 #if HAVE_PTHREADS_D4
9286 #define ATTR pthread_attr_default
9291 /* make sure pthread_create() isn't just a stub */
9292 status = pthread_create(&t, ATTR, task, NULL);
9293 if( status ) exit( status );
9295 /* make sure pthread_detach() isn't just a stub */
9296 #if HAVE_PTHREADS_D4
9297 status = pthread_detach( &t );
9299 status = pthread_detach( t );
9302 #ifdef HAVE_LINUX_THREADS
9303 pthread_kill_other_threads_np();
9311 if { (eval echo configure:9312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9313 ol_cv_pthread_lpthreads_lmach_lexc=yes
9315 echo "configure: failed program was:" >&5
9316 cat conftest.$ac_ext >&5
9318 ol_cv_pthread_lpthreads_lmach_lexc=no
9329 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9331 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9332 ol_link_pthreads="-lpthreads -lmach -lexc"
9333 ol_link_threads=posix
9337 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9338 if test "$ol_link_threads" = no ; then
9339 # try -lpthreads -lexc
9340 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9341 echo "configure:9342: checking for pthread link with -lpthreads -lexc" >&5
9342 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9343 echo $ac_n "(cached) $ac_c" 1>&6
9348 LIBS="-lpthreads -lexc $LIBS"
9350 if test "$cross_compiling" = yes; then
9351 cat > conftest.$ac_ext <<EOF
9352 #line 9353 "configure"
9353 #include "confdefs.h"
9354 /* pthread test headers */
9355 #include <pthread.h>
9357 #define NULL (void*)0
9360 static void *task(p)
9363 return (void *) (p == NULL);
9368 /* pthread test function */
9371 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9372 /* This system (e.g. AIX) defaults detached; must override */
9373 pthread_attr_t attr;
9375 status = pthread_attr_init(&attr);
9376 if( status ) exit( status );
9378 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9379 if( status ) exit( status );
9383 #if HAVE_PTHREADS_D4
9384 #define ATTR pthread_attr_default
9389 /* make sure pthread_create() isn't just a stub */
9390 status = pthread_create(&t, ATTR, task, NULL);
9391 if( status ) exit( status );
9393 /* make sure pthread_detach() isn't just a stub */
9394 #if HAVE_PTHREADS_D4
9395 status = pthread_detach( &t );
9397 status = pthread_detach( t );
9400 #ifdef HAVE_LINUX_THREADS
9401 pthread_kill_other_threads_np();
9408 if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9410 ol_cv_pthread_lpthreads_lexc=yes
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9415 ol_cv_pthread_lpthreads_lexc=no
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 /* pthread test headers */
9423 #include <pthread.h>
9425 #define NULL (void*)0
9428 static void *task(p)
9431 return (void *) (p == NULL);
9435 int main(argc, argv)
9440 /* pthread test function */
9443 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9444 /* This system (e.g. AIX) defaults detached; must override */
9445 pthread_attr_t attr;
9447 status = pthread_attr_init(&attr);
9448 if( status ) exit( status );
9450 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9451 if( status ) exit( status );
9455 #if HAVE_PTHREADS_D4
9456 #define ATTR pthread_attr_default
9461 /* make sure pthread_create() isn't just a stub */
9462 status = pthread_create(&t, ATTR, task, NULL);
9463 if( status ) exit( status );
9465 /* make sure pthread_detach() isn't just a stub */
9466 #if HAVE_PTHREADS_D4
9467 status = pthread_detach( &t );
9469 status = pthread_detach( t );
9472 #ifdef HAVE_LINUX_THREADS
9473 pthread_kill_other_threads_np();
9481 if { (eval echo configure:9482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9483 ol_cv_pthread_lpthreads_lexc=yes
9485 echo "configure: failed program was:" >&5
9486 cat conftest.$ac_ext >&5
9488 ol_cv_pthread_lpthreads_lexc=no
9499 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9501 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9502 ol_link_pthreads="-lpthreads -lexc"
9503 ol_link_threads=posix
9508 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9509 if test "$ol_link_threads" = no ; then
9511 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9512 echo "configure:9513: checking for pthread link with -lpthreads" >&5
9513 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9519 LIBS="-lpthreads $LIBS"
9521 if test "$cross_compiling" = yes; then
9522 cat > conftest.$ac_ext <<EOF
9523 #line 9524 "configure"
9524 #include "confdefs.h"
9525 /* pthread test headers */
9526 #include <pthread.h>
9528 #define NULL (void*)0
9531 static void *task(p)
9534 return (void *) (p == NULL);
9539 /* pthread test function */
9542 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9543 /* This system (e.g. AIX) defaults detached; must override */
9544 pthread_attr_t attr;
9546 status = pthread_attr_init(&attr);
9547 if( status ) exit( status );
9549 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9550 if( status ) exit( status );
9554 #if HAVE_PTHREADS_D4
9555 #define ATTR pthread_attr_default
9560 /* make sure pthread_create() isn't just a stub */
9561 status = pthread_create(&t, ATTR, task, NULL);
9562 if( status ) exit( status );
9564 /* make sure pthread_detach() isn't just a stub */
9565 #if HAVE_PTHREADS_D4
9566 status = pthread_detach( &t );
9568 status = pthread_detach( t );
9571 #ifdef HAVE_LINUX_THREADS
9572 pthread_kill_other_threads_np();
9579 if { (eval echo configure:9580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9581 ol_cv_pthread_lib_lpthreads=yes
9583 echo "configure: failed program was:" >&5
9584 cat conftest.$ac_ext >&5
9586 ol_cv_pthread_lib_lpthreads=no
9590 cat > conftest.$ac_ext <<EOF
9591 #line 9592 "configure"
9592 #include "confdefs.h"
9593 /* pthread test headers */
9594 #include <pthread.h>
9596 #define NULL (void*)0
9599 static void *task(p)
9602 return (void *) (p == NULL);
9606 int main(argc, argv)
9611 /* pthread test function */
9614 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9615 /* This system (e.g. AIX) defaults detached; must override */
9616 pthread_attr_t attr;
9618 status = pthread_attr_init(&attr);
9619 if( status ) exit( status );
9621 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9622 if( status ) exit( status );
9626 #if HAVE_PTHREADS_D4
9627 #define ATTR pthread_attr_default
9632 /* make sure pthread_create() isn't just a stub */
9633 status = pthread_create(&t, ATTR, task, NULL);
9634 if( status ) exit( status );
9636 /* make sure pthread_detach() isn't just a stub */
9637 #if HAVE_PTHREADS_D4
9638 status = pthread_detach( &t );
9640 status = pthread_detach( t );
9643 #ifdef HAVE_LINUX_THREADS
9644 pthread_kill_other_threads_np();
9652 if { (eval echo configure:9653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9654 ol_cv_pthread_lib_lpthreads=yes
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9659 ol_cv_pthread_lib_lpthreads=no
9670 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9672 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9673 ol_link_pthreads="-lpthreads"
9674 ol_link_threads=posix
9679 if test $ol_link_threads != no ; then
9680 cat >> confdefs.h <<\EOF
9681 #define HAVE_PTHREADS 1
9685 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9687 save_CPPFLAGS="$CPPFLAGS"
9689 LIBS="$LTHREAD_LIBS $LIBS"
9691 for ac_func in sched_yield pthread_yield
9693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9694 echo "configure:9695: checking for $ac_func" >&5
9695 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 /* System header to define __stub macros and hopefully few prototypes,
9702 which can conflict with char $ac_func(); below. */
9704 /* Override any gcc2 internal prototype to avoid an error. */
9705 /* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9712 /* The GNU C library defines this for functions which it implements
9713 to always fail with ENOSYS. Some functions are actually named
9714 something starting with __ and the normal name is an alias. */
9715 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9723 if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9725 eval "ac_cv_func_$ac_func=yes"
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 eval "ac_cv_func_$ac_func=no"
9735 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9736 echo "$ac_t""yes" 1>&6
9737 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9738 cat >> confdefs.h <<EOF
9739 #define $ac_tr_func 1
9743 echo "$ac_t""no" 1>&6
9748 if test $ac_cv_func_sched_yield = no -a \
9749 $ac_cv_func_pthread_yield = no ; then
9750 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9751 echo "configure:9752: checking for sched_yield in -lrt" >&5
9752 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9753 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9754 echo $ac_n "(cached) $ac_c" 1>&6
9756 ac_save_LIBS="$LIBS"
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9761 /* Override any gcc2 internal prototype to avoid an error. */
9762 /* We use char because int might match the return type of a gcc2
9763 builtin and then its argument prototype would still apply. */
9770 if { (eval echo configure:9771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9772 eval "ac_cv_lib_$ac_lib_var=yes"
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9777 eval "ac_cv_lib_$ac_lib_var=no"
9780 LIBS="$ac_save_LIBS"
9783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9784 echo "$ac_t""yes" 1>&6
9785 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9786 cat >> confdefs.h <<\EOF
9787 #define HAVE_SCHED_YIELD 1
9790 ac_cv_func_sched_yield=yes
9792 echo "$ac_t""no" 1>&6
9793 ac_cv_func_sched_yield=no
9797 if test $ac_cv_func_sched_yield = no -a \
9798 $ac_cv_func_pthread_yield = no ; then
9799 for ac_func in thr_yield
9801 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9802 echo "configure:9803: checking for $ac_func" >&5
9803 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 /* System header to define __stub macros and hopefully few prototypes,
9810 which can conflict with char $ac_func(); below. */
9812 /* Override any gcc2 internal prototype to avoid an error. */
9813 /* We use char because int might match the return type of a gcc2
9814 builtin and then its argument prototype would still apply. */
9820 /* The GNU C library defines this for functions which it implements
9821 to always fail with ENOSYS. Some functions are actually named
9822 something starting with __ and the normal name is an alias. */
9823 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9831 if { (eval echo configure:9832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9833 eval "ac_cv_func_$ac_func=yes"
9835 echo "configure: failed program was:" >&5
9836 cat conftest.$ac_ext >&5
9838 eval "ac_cv_func_$ac_func=no"
9843 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9844 echo "$ac_t""yes" 1>&6
9845 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9846 cat >> confdefs.h <<EOF
9847 #define $ac_tr_func 1
9851 echo "$ac_t""no" 1>&6
9856 if test $ac_cv_func_sched_yield = no -a \
9857 $ac_cv_func_pthread_yield = no -a \
9858 "$ac_cv_func_thr_yield" = no ; then
9859 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9862 for ac_func in pthread_kill pthread_rwlock_destroy
9864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9865 echo "configure:9866: checking for $ac_func" >&5
9866 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9867 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9872 /* System header to define __stub macros and hopefully few prototypes,
9873 which can conflict with char $ac_func(); below. */
9875 /* Override any gcc2 internal prototype to avoid an error. */
9876 /* We use char because int might match the return type of a gcc2
9877 builtin and then its argument prototype would still apply. */
9883 /* The GNU C library defines this for functions which it implements
9884 to always fail with ENOSYS. Some functions are actually named
9885 something starting with __ and the normal name is an alias. */
9886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9894 if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9896 eval "ac_cv_func_$ac_func=yes"
9898 echo "configure: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9901 eval "ac_cv_func_$ac_func=no"
9906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9907 echo "$ac_t""yes" 1>&6
9908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9909 cat >> confdefs.h <<EOF
9910 #define $ac_tr_func 1
9914 echo "$ac_t""no" 1>&6
9919 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9920 echo "configure:9921: checking for pthread_detach with <pthread.h>" >&5
9921 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9922 echo $ac_n "(cached) $ac_c" 1>&6
9925 cat > conftest.$ac_ext <<EOF
9926 #line 9927 "configure"
9927 #include "confdefs.h"
9929 #include <pthread.h>
9931 #define NULL (void*)0
9935 pthread_detach(NULL);
9938 if { (eval echo configure:9939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 ol_cv_func_pthread_detach=yes
9942 echo "configure: failed program was:" >&5
9943 cat conftest.$ac_ext >&5
9945 ol_cv_func_pthread_detach=no
9951 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9953 if test $ol_cv_func_pthread_detach = no ; then
9954 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9957 cat >> confdefs.h <<\EOF
9958 #define HAVE_PTHREAD_DETACH 1
9963 pthread_setconcurrency \
9964 pthread_getconcurrency \
9965 thr_setconcurrency \
9966 thr_getconcurrency \
9969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9970 echo "configure:9971: checking for $ac_func" >&5
9971 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9972 echo $ac_n "(cached) $ac_c" 1>&6
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char $ac_func(); below. */
9980 /* Override any gcc2 internal prototype to avoid an error. */
9981 /* We use char because int might match the return type of a gcc2
9982 builtin and then its argument prototype would still apply. */
9988 /* The GNU C library defines this for functions which it implements
9989 to always fail with ENOSYS. Some functions are actually named
9990 something starting with __ and the normal name is an alias. */
9991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9999 if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10001 eval "ac_cv_func_$ac_func=yes"
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 eval "ac_cv_func_$ac_func=no"
10011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10012 echo "$ac_t""yes" 1>&6
10013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10014 cat >> confdefs.h <<EOF
10015 #define $ac_tr_func 1
10019 echo "$ac_t""no" 1>&6
10025 for ac_func in pthread_kill_other_threads_np
10027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10028 echo "configure:10029: checking for $ac_func" >&5
10029 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10032 cat > conftest.$ac_ext <<EOF
10033 #line 10034 "configure"
10034 #include "confdefs.h"
10035 /* System header to define __stub macros and hopefully few prototypes,
10036 which can conflict with char $ac_func(); below. */
10037 #include <assert.h>
10038 /* Override any gcc2 internal prototype to avoid an error. */
10039 /* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10046 /* The GNU C library defines this for functions which it implements
10047 to always fail with ENOSYS. Some functions are actually named
10048 something starting with __ and the normal name is an alias. */
10049 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
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_func_$ac_func=yes"
10061 echo "configure: failed program was:" >&5
10062 cat conftest.$ac_ext >&5
10064 eval "ac_cv_func_$ac_func=no"
10069 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10070 echo "$ac_t""yes" 1>&6
10071 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10072 cat >> confdefs.h <<EOF
10073 #define $ac_tr_func 1
10077 echo "$ac_t""no" 1>&6
10081 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10082 echo "configure:10083: checking for LinuxThreads implementation" >&5
10083 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10084 echo $ac_n "(cached) $ac_c" 1>&6
10086 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10089 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10094 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10095 echo "configure:10096: checking for LinuxThreads consistency" >&5
10096 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10097 echo $ac_n "(cached) $ac_c" 1>&6
10100 if test $ol_cv_header_linux_threads = yes -a \
10101 $ol_cv_sys_linux_threads = yes; then
10102 ol_cv_linux_threads=yes
10103 elif test $ol_cv_header_linux_threads = no -a \
10104 $ol_cv_sys_linux_threads = no; then
10105 ol_cv_linux_threads=no
10107 ol_cv_linux_threads=error
10112 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10115 if test $ol_cv_linux_threads = error; then
10116 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10119 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10120 echo "configure:10121: checking if pthread_create() works" >&5
10121 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10122 echo $ac_n "(cached) $ac_c" 1>&6
10125 if test "$cross_compiling" = yes; then
10126 ol_cv_pthread_create_works=yes
10128 cat > conftest.$ac_ext <<EOF
10129 #line 10130 "configure"
10130 #include "confdefs.h"
10131 /* pthread test headers */
10132 #include <pthread.h>
10134 #define NULL (void*)0
10137 static void *task(p)
10140 return (void *) (p == NULL);
10144 int main(argc, argv)
10149 /* pthread test function */
10152 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10153 /* This system (e.g. AIX) defaults detached; must override */
10154 pthread_attr_t attr;
10156 status = pthread_attr_init(&attr);
10157 if( status ) exit( status );
10159 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10160 if( status ) exit( status );
10164 #if HAVE_PTHREADS_D4
10165 #define ATTR pthread_attr_default
10170 /* make sure pthread_create() isn't just a stub */
10171 status = pthread_create(&t, ATTR, task, NULL);
10172 if( status ) exit( status );
10174 /* make sure pthread_detach() isn't just a stub */
10175 #if HAVE_PTHREADS_D4
10176 status = pthread_detach( &t );
10178 status = pthread_detach( t );
10181 #ifdef HAVE_LINUX_THREADS
10182 pthread_kill_other_threads_np();
10190 if { (eval echo configure:10191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10192 ol_cv_pthread_create_works=yes
10194 echo "configure: failed program was:" >&5
10195 cat conftest.$ac_ext >&5
10197 ol_cv_pthread_create_works=no
10204 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10206 if test $ol_cv_pthread_create_works = no ; then
10207 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10210 if test $ol_with_yielding_select = auto ; then
10211 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10212 echo "configure:10213: checking if select yields when using pthreads" >&5
10213 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10217 if test "$cross_compiling" = yes; then
10218 ol_cv_pthread_select_yields=cross
10220 cat > conftest.$ac_ext <<EOF
10221 #line 10222 "configure"
10222 #include "confdefs.h"
10224 #include <sys/types.h>
10225 #include <sys/time.h>
10226 #include <unistd.h>
10227 #include <pthread.h>
10229 #define NULL (void*) 0
10232 static int fildes[2];
10234 static void *task(p)
10246 FD_SET(fildes[0], &rfds);
10248 /* we're not interested in any fds */
10249 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10256 exit(0); /* if we exit here, the select blocked the whole process */
10259 int main(argc, argv)
10265 /* create a pipe to select */
10266 if(pipe(&fildes[0])) {
10271 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10272 (void) pthread_setconcurrency(2);
10274 #ifdef HAVE_THR_SETCONCURRENCY
10275 /* Set Solaris LWP concurrency to 2 */
10276 thr_setconcurrency(2);
10280 #if HAVE_PTHREADS_D4
10281 pthread_create(&t, pthread_attr_default, task, NULL);
10283 pthread_create(&t, NULL, task, NULL);
10286 #if HAVE_SCHED_YIELD
10287 sched_yield(); /* make sure task runs first */
10289 #ifdef HAVE_PTHREAD_YIELD
10290 pthread_yield(); /* make sure task runs first */
10297 if { (eval echo configure:10298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10299 ol_cv_pthread_select_yields=no
10301 echo "configure: failed program was:" >&5
10302 cat conftest.$ac_ext >&5
10304 ol_cv_pthread_select_yields=yes
10311 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10313 if test $ol_cv_pthread_select_yields = cross ; then
10314 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10317 if test $ol_cv_pthread_select_yields = yes ; then
10318 ol_with_yielding_select=yes
10322 CPPFLAGS="$save_CPPFLAGS"
10325 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10329 if test $ol_with_threads = posix ; then
10330 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10334 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10335 -o $ol_with_threads = mach ; then
10337 for ac_hdr in mach/cthreads.h
10339 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10340 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10341 echo "configure:10342: checking for $ac_hdr" >&5
10342 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10345 cat > conftest.$ac_ext <<EOF
10346 #line 10347 "configure"
10347 #include "confdefs.h"
10350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10351 { (eval echo configure:10352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10353 if test -z "$ac_err"; then
10355 eval "ac_cv_header_$ac_safe=yes"
10358 echo "configure: failed program was:" >&5
10359 cat conftest.$ac_ext >&5
10361 eval "ac_cv_header_$ac_safe=no"
10365 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10366 echo "$ac_t""yes" 1>&6
10367 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10368 cat >> confdefs.h <<EOF
10369 #define $ac_tr_hdr 1
10373 echo "$ac_t""no" 1>&6
10377 if test $ac_cv_header_mach_cthreads_h = yes ; then
10378 ol_with_threads=found
10380 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10381 echo "configure:10382: checking for cthread_fork" >&5
10382 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10383 echo $ac_n "(cached) $ac_c" 1>&6
10385 cat > conftest.$ac_ext <<EOF
10386 #line 10387 "configure"
10387 #include "confdefs.h"
10388 /* System header to define __stub macros and hopefully few prototypes,
10389 which can conflict with char cthread_fork(); below. */
10390 #include <assert.h>
10391 /* Override any gcc2 internal prototype to avoid an error. */
10392 /* We use char because int might match the return type of a gcc2
10393 builtin and then its argument prototype would still apply. */
10394 char cthread_fork();
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10412 eval "ac_cv_func_cthread_fork=yes"
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10417 eval "ac_cv_func_cthread_fork=no"
10422 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10423 echo "$ac_t""yes" 1>&6
10424 ol_link_threads=yes
10426 echo "$ac_t""no" 1>&6
10430 if test $ol_link_threads = no ; then
10431 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10432 echo "configure:10433: checking for cthread_fork with -all_load" >&5
10433 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10434 echo $ac_n "(cached) $ac_c" 1>&6
10438 LIBS="-all_load $LIBS"
10439 cat > conftest.$ac_ext <<EOF
10440 #line 10441 "configure"
10441 #include "confdefs.h"
10442 #include <mach/cthreads.h>
10445 cthread_fork((void *)0, (void *)0);
10449 if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10451 ol_cv_cthread_all_load=yes
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10456 ol_cv_cthread_all_load=no
10463 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10465 if test $ol_cv_cthread_all_load = yes ; then
10466 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10467 ol_link_threads=mach
10471 if test $ol_link_threads != no ; then
10472 : check for cthread specific functionality here
10473 cat >> confdefs.h <<\EOF
10474 #define HAVE_MACH_CTHREADS 1
10478 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10482 if test $ol_with_threads = mach ; then
10483 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10487 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10488 -o $ol_with_threads = pth ; then
10490 for ac_hdr in pth.h
10492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10494 echo "configure:10495: checking for $ac_hdr" >&5
10495 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10498 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure"
10500 #include "confdefs.h"
10503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10504 { (eval echo configure:10505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10506 if test -z "$ac_err"; then
10508 eval "ac_cv_header_$ac_safe=yes"
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 eval "ac_cv_header_$ac_safe=no"
10518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10521 cat >> confdefs.h <<EOF
10522 #define $ac_tr_hdr 1
10526 echo "$ac_t""no" 1>&6
10531 if test $ac_cv_header_pth_h = yes ; then
10532 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10533 echo "configure:10534: checking for pth_version in -lpth" >&5
10534 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10535 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10536 echo $ac_n "(cached) $ac_c" 1>&6
10538 ac_save_LIBS="$LIBS"
10540 cat > conftest.$ac_ext <<EOF
10541 #line 10542 "configure"
10542 #include "confdefs.h"
10543 /* Override any gcc2 internal prototype to avoid an error. */
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546 char pth_version();
10552 if { (eval echo configure:10553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10554 eval "ac_cv_lib_$ac_lib_var=yes"
10556 echo "configure: failed program was:" >&5
10557 cat conftest.$ac_ext >&5
10559 eval "ac_cv_lib_$ac_lib_var=no"
10562 LIBS="$ac_save_LIBS"
10565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10566 echo "$ac_t""yes" 1>&6
10569 echo "$ac_t""no" 1>&6
10574 if test $have_pth = yes ; then
10575 cat >> confdefs.h <<\EOF
10576 #define HAVE_GNU_PTH 1
10579 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10580 ol_link_threads=pth
10582 if test $ol_with_yielding_select = auto ; then
10583 ol_with_yielding_select=yes
10589 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10590 -o $ol_with_threads = lwp ; then
10592 for ac_hdr in thread.h synch.h
10594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10596 echo "configure:10597: checking for $ac_hdr" >&5
10597 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10606 { (eval echo configure:10607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10608 if test -z "$ac_err"; then
10610 eval "ac_cv_header_$ac_safe=yes"
10613 echo "configure: failed program was:" >&5
10614 cat conftest.$ac_ext >&5
10616 eval "ac_cv_header_$ac_safe=no"
10620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10621 echo "$ac_t""yes" 1>&6
10622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10623 cat >> confdefs.h <<EOF
10624 #define $ac_tr_hdr 1
10628 echo "$ac_t""no" 1>&6
10632 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10633 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10634 echo "configure:10635: checking for thr_create in -lthread" >&5
10635 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10637 echo $ac_n "(cached) $ac_c" 1>&6
10639 ac_save_LIBS="$LIBS"
10640 LIBS="-lthread $LIBS"
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10644 /* Override any gcc2 internal prototype to avoid an error. */
10645 /* We use char because int might match the return type of a gcc2
10646 builtin and then its argument prototype would still apply. */
10653 if { (eval echo configure:10654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10655 eval "ac_cv_lib_$ac_lib_var=yes"
10657 echo "configure: failed program was:" >&5
10658 cat conftest.$ac_ext >&5
10660 eval "ac_cv_lib_$ac_lib_var=no"
10663 LIBS="$ac_save_LIBS"
10666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10667 echo "$ac_t""yes" 1>&6
10670 echo "$ac_t""no" 1>&6
10675 if test $have_thr = yes ; then
10676 cat >> confdefs.h <<\EOF
10680 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10681 ol_link_threads=thr
10683 if test $ol_with_yielding_select = auto ; then
10684 ol_with_yielding_select=yes
10688 thr_setconcurrency \
10689 thr_getconcurrency \
10692 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10693 echo "configure:10694: checking for $ac_func" >&5
10694 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10695 echo $ac_n "(cached) $ac_c" 1>&6
10697 cat > conftest.$ac_ext <<EOF
10698 #line 10699 "configure"
10699 #include "confdefs.h"
10700 /* System header to define __stub macros and hopefully few prototypes,
10701 which can conflict with char $ac_func(); below. */
10702 #include <assert.h>
10703 /* Override any gcc2 internal prototype to avoid an error. */
10704 /* We use char because int might match the return type of a gcc2
10705 builtin and then its argument prototype would still apply. */
10711 /* The GNU C library defines this for functions which it implements
10712 to always fail with ENOSYS. Some functions are actually named
10713 something starting with __ and the normal name is an alias. */
10714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10722 if { (eval echo configure:10723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10724 eval "ac_cv_func_$ac_func=yes"
10726 echo "configure: failed program was:" >&5
10727 cat conftest.$ac_ext >&5
10729 eval "ac_cv_func_$ac_func=no"
10734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10735 echo "$ac_t""yes" 1>&6
10736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10737 cat >> confdefs.h <<EOF
10738 #define $ac_tr_func 1
10742 echo "$ac_t""no" 1>&6
10749 for ac_hdr in lwp/lwp.h
10751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10753 echo "configure:10754: checking for $ac_hdr" >&5
10754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10763 { (eval echo configure:10764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10765 if test -z "$ac_err"; then
10767 eval "ac_cv_header_$ac_safe=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_header_$ac_safe=no"
10777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10778 echo "$ac_t""yes" 1>&6
10779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10780 cat >> confdefs.h <<EOF
10781 #define $ac_tr_hdr 1
10785 echo "$ac_t""no" 1>&6
10789 if test $ac_cv_header_lwp_lwp_h = yes ; then
10790 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10791 echo "configure:10792: checking for lwp_create in -llwp" >&5
10792 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10793 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10794 echo $ac_n "(cached) $ac_c" 1>&6
10796 ac_save_LIBS="$LIBS"
10798 cat > conftest.$ac_ext <<EOF
10799 #line 10800 "configure"
10800 #include "confdefs.h"
10801 /* Override any gcc2 internal prototype to avoid an error. */
10802 /* We use char because int might match the return type of a gcc2
10803 builtin and then its argument prototype would still apply. */
10810 if { (eval echo configure:10811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10812 eval "ac_cv_lib_$ac_lib_var=yes"
10814 echo "configure: failed program was:" >&5
10815 cat conftest.$ac_ext >&5
10817 eval "ac_cv_lib_$ac_lib_var=no"
10820 LIBS="$ac_save_LIBS"
10823 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10824 echo "$ac_t""yes" 1>&6
10827 echo "$ac_t""no" 1>&6
10832 if test $have_lwp = yes ; then
10833 cat >> confdefs.h <<\EOF
10837 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10838 ol_link_threads=lwp
10840 if test $ol_with_yielding_select = auto ; then
10841 ol_with_yielding_select=no
10847 if test $ol_with_yielding_select = yes ; then
10848 cat >> confdefs.h <<\EOF
10849 #define HAVE_YIELDING_SELECT 1
10854 if test $ol_with_threads = manual ; then
10855 ol_link_threads=yes
10857 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10859 for ac_hdr in pthread.h sched.h
10861 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10862 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10863 echo "configure:10864: checking for $ac_hdr" >&5
10864 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10865 echo $ac_n "(cached) $ac_c" 1>&6
10867 cat > conftest.$ac_ext <<EOF
10868 #line 10869 "configure"
10869 #include "confdefs.h"
10872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10873 { (eval echo configure:10874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10875 if test -z "$ac_err"; then
10877 eval "ac_cv_header_$ac_safe=yes"
10880 echo "configure: failed program was:" >&5
10881 cat conftest.$ac_ext >&5
10883 eval "ac_cv_header_$ac_safe=no"
10887 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10888 echo "$ac_t""yes" 1>&6
10889 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10890 cat >> confdefs.h <<EOF
10891 #define $ac_tr_hdr 1
10895 echo "$ac_t""no" 1>&6
10899 for ac_func in sched_yield pthread_yield
10901 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10902 echo "configure:10903: checking for $ac_func" >&5
10903 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10904 echo $ac_n "(cached) $ac_c" 1>&6
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 /* System header to define __stub macros and hopefully few prototypes,
10910 which can conflict with char $ac_func(); below. */
10911 #include <assert.h>
10912 /* Override any gcc2 internal prototype to avoid an error. */
10913 /* We use char because int might match the return type of a gcc2
10914 builtin and then its argument prototype would still apply. */
10920 /* The GNU C library defines this for functions which it implements
10921 to always fail with ENOSYS. Some functions are actually named
10922 something starting with __ and the normal name is an alias. */
10923 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10931 if { (eval echo configure:10932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10933 eval "ac_cv_func_$ac_func=yes"
10935 echo "configure: failed program was:" >&5
10936 cat conftest.$ac_ext >&5
10938 eval "ac_cv_func_$ac_func=no"
10943 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10946 cat >> confdefs.h <<EOF
10947 #define $ac_tr_func 1
10951 echo "$ac_t""no" 1>&6
10956 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10957 echo "configure:10958: checking for LinuxThreads pthread.h" >&5
10958 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10961 cat > conftest.$ac_ext <<EOF
10962 #line 10963 "configure"
10963 #include "confdefs.h"
10964 #include <pthread.h>
10966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10967 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10969 ol_cv_header_linux_threads=yes
10972 ol_cv_header_linux_threads=no
10979 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10980 if test $ol_cv_header_linux_threads = yes; then
10981 cat >> confdefs.h <<\EOF
10982 #define HAVE_LINUX_THREADS 1
10988 for ac_hdr in mach/cthreads.h
10990 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10992 echo "configure:10993: checking for $ac_hdr" >&5
10993 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10994 echo $ac_n "(cached) $ac_c" 1>&6
10996 cat > conftest.$ac_ext <<EOF
10997 #line 10998 "configure"
10998 #include "confdefs.h"
11001 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11002 { (eval echo configure:11003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11003 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11004 if test -z "$ac_err"; then
11006 eval "ac_cv_header_$ac_safe=yes"
11009 echo "configure: failed program was:" >&5
11010 cat conftest.$ac_ext >&5
11012 eval "ac_cv_header_$ac_safe=no"
11016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11017 echo "$ac_t""yes" 1>&6
11018 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11019 cat >> confdefs.h <<EOF
11020 #define $ac_tr_hdr 1
11024 echo "$ac_t""no" 1>&6
11028 for ac_hdr in lwp/lwp.h
11030 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11031 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11032 echo "configure:11033: checking for $ac_hdr" >&5
11033 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11034 echo $ac_n "(cached) $ac_c" 1>&6
11036 cat > conftest.$ac_ext <<EOF
11037 #line 11038 "configure"
11038 #include "confdefs.h"
11041 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11042 { (eval echo configure:11043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11043 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11044 if test -z "$ac_err"; then
11046 eval "ac_cv_header_$ac_safe=yes"
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11052 eval "ac_cv_header_$ac_safe=no"
11056 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11058 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11059 cat >> confdefs.h <<EOF
11060 #define $ac_tr_hdr 1
11064 echo "$ac_t""no" 1>&6
11068 for ac_hdr in thread.h synch.h
11070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11072 echo "configure:11073: checking for $ac_hdr" >&5
11073 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11074 echo $ac_n "(cached) $ac_c" 1>&6
11076 cat > conftest.$ac_ext <<EOF
11077 #line 11078 "configure"
11078 #include "confdefs.h"
11081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11082 { (eval echo configure:11083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11084 if test -z "$ac_err"; then
11086 eval "ac_cv_header_$ac_safe=yes"
11089 echo "configure: failed program was:" >&5
11090 cat conftest.$ac_ext >&5
11092 eval "ac_cv_header_$ac_safe=no"
11096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11097 echo "$ac_t""yes" 1>&6
11098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11099 cat >> confdefs.h <<EOF
11100 #define $ac_tr_hdr 1
11104 echo "$ac_t""no" 1>&6
11110 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11111 cat >> confdefs.h <<\EOF
11112 #define REENTRANT 1
11115 cat >> confdefs.h <<\EOF
11116 #define _REENTRANT 1
11119 cat >> confdefs.h <<\EOF
11120 #define THREAD_SAFE 1
11123 cat >> confdefs.h <<\EOF
11124 #define _THREAD_SAFE 1
11127 cat >> confdefs.h <<\EOF
11128 #define THREADSAFE 1
11131 cat >> confdefs.h <<\EOF
11132 #define _THREADSAFE 1
11135 cat >> confdefs.h <<\EOF
11136 #define _SGI_MP_SOURCE 1
11140 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11141 echo "configure:11142: checking for thread specific errno" >&5
11142 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11143 echo $ac_n "(cached) $ac_c" 1>&6
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11148 "configure"
11148 #include "confdefs.h"
11154 if { (eval echo configure:11155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11156 ol_cv_errno_thread_specific=yes
11158 echo "configure: failed program was:" >&5
11159 cat conftest.$ac_ext >&5
11161 ol_cv_errno_thread_specific=no
11167 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11169 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11170 echo "configure:11171: checking for thread specific h_errno" >&5
11171 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11172 echo $ac_n "(cached) $ac_c" 1>&6
11175 cat > conftest.$ac_ext <<EOF
11176 #line 11177 "configure"
11177 #include "confdefs.h"
11183 if { (eval echo configure:11184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11185 ol_cv_h_errno_thread_specific=yes
11187 echo "configure: failed program was:" >&5
11188 cat conftest.$ac_ext >&5
11190 ol_cv_h_errno_thread_specific=no
11196 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11198 if test $ol_cv_errno_thread_specific != yes \
11199 -o $ol_cv_h_errno_thread_specific != yes ; then
11200 LIBS="$LTHREAD_LIBS $LIBS"
11206 if test $ol_link_threads = no ; then
11207 if test $ol_with_threads = yes ; then
11208 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11211 if test $ol_with_threads = auto ; then
11212 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11216 cat >> confdefs.h <<\EOF
11217 #define NO_THREADS 1
11223 if test $ol_link_threads != no ; then
11224 cat >> confdefs.h <<\EOF
11225 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11232 if test $ol_with_ldbm_api = auto \
11233 -o $ol_with_ldbm_api = berkeley \
11234 -o $ol_with_ldbm_api = bcompat ; then
11236 if test $ol_with_ldbm_api = bcompat; then \
11237 ol_cv_berkeley_db=no
11238 for ac_hdr in db_185.h db.h
11240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11242 echo "configure:11243: checking for $ac_hdr" >&5
11243 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11244 echo $ac_n "(cached) $ac_c" 1>&6
11246 cat > conftest.$ac_ext <<EOF
11247 #line 11248 "configure"
11248 #include "confdefs.h"
11251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11252 { (eval echo configure:11253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11254 if test -z "$ac_err"; then
11256 eval "ac_cv_header_$ac_safe=yes"
11259 echo "configure: failed program was:" >&5
11260 cat conftest.$ac_ext >&5
11262 eval "ac_cv_header_$ac_safe=no"
11266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11267 echo "$ac_t""yes" 1>&6
11268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11269 cat >> confdefs.h <<EOF
11270 #define $ac_tr_hdr 1
11274 echo "$ac_t""no" 1>&6
11278 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11279 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11280 echo "configure:11281: checking if Berkeley DB header compatibility" >&5
11281 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11282 echo $ac_n "(cached) $ac_c" 1>&6
11285 cat > conftest.$ac_ext <<EOF
11286 #line 11287 "configure"
11287 #include "confdefs.h"
11290 # include <db_185.h>
11295 /* this check could be improved */
11296 #ifndef DB_VERSION_MAJOR
11297 # define DB_VERSION_MAJOR 1
11300 #if DB_VERSION_MAJOR == 1
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306 egrep "__db_version_1" >/dev/null 2>&1; then
11308 ol_cv_header_db1=yes
11311 ol_cv_header_db1=no
11317 echo "$ac_t""$ol_cv_header_db1" 1>&6
11319 if test ol_cv_header_db1=yes ; then
11321 if test $ol_cv_lib_db = no ; then
11322 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11323 echo "configure:11324: checking for Berkeley DB link (default)" >&5
11324 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11330 LIBS="$ol_DB_LIB $LIBS"
11332 cat > conftest.$ac_ext <<EOF
11333 #line 11334 "configure"
11334 #include "confdefs.h"
11336 #ifdef HAVE_DB_185_H
11337 # include <db_185.h>
11342 #ifndef DB_VERSION_MAJOR
11343 # define DB_VERSION_MAJOR 1
11347 #define NULL ((void*)0)
11352 #if DB_VERSION_MAJOR > 2
11353 db_env_create( NULL, 0 );
11354 #elif DB_VERSION_MAJOR > 1
11355 db_appexit( NULL );
11357 (void) dbopen( NULL, 0, 0, 0, NULL);
11362 if { (eval echo configure:11363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11366 echo "configure: failed program was:" >&5
11367 cat conftest.$ac_ext >&5
11377 echo "$ac_t""$ol_cv_db_none" 1>&6
11379 if test $ol_cv_db_none = yes ; then
11384 if test $ol_cv_lib_db = no ; then
11385 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11386 echo "configure:11387: checking for Berkeley DB link (-ldb)" >&5
11387 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11388 echo $ac_n "(cached) $ac_c" 1>&6
11393 LIBS="$ol_DB_LIB $LIBS"
11395 cat > conftest.$ac_ext <<EOF
11396 #line 11397 "configure"
11397 #include "confdefs.h"
11399 #ifdef HAVE_DB_185_H
11400 # include <db_185.h>
11405 #ifndef DB_VERSION_MAJOR
11406 # define DB_VERSION_MAJOR 1
11410 #define NULL ((void*)0)
11415 #if DB_VERSION_MAJOR > 2
11416 db_env_create( NULL, 0 );
11417 #elif DB_VERSION_MAJOR > 1
11418 db_appexit( NULL );
11420 (void) dbopen( NULL, 0, 0, 0, NULL);
11425 if { (eval echo configure:11426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11429 echo "configure: failed program was:" >&5
11430 cat conftest.$ac_ext >&5
11440 echo "$ac_t""$ol_cv_db_db" 1>&6
11442 if test $ol_cv_db_db = yes ; then
11447 if test $ol_cv_lib_db = no ; then
11448 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11449 echo "configure:11450: checking for Berkeley DB link (-ldb3)" >&5
11450 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11451 echo $ac_n "(cached) $ac_c" 1>&6
11456 LIBS="$ol_DB_LIB $LIBS"
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11462 #ifdef HAVE_DB_185_H
11463 # include <db_185.h>
11468 #ifndef DB_VERSION_MAJOR
11469 # define DB_VERSION_MAJOR 1
11473 #define NULL ((void*)0)
11478 #if DB_VERSION_MAJOR > 2
11479 db_env_create( NULL, 0 );
11480 #elif DB_VERSION_MAJOR > 1
11481 db_appexit( NULL );
11483 (void) dbopen( NULL, 0, 0, 0, NULL);
11488 if { (eval echo configure:11489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11492 echo "configure: failed program was:" >&5
11493 cat conftest.$ac_ext >&5
11503 echo "$ac_t""$ol_cv_db_db3" 1>&6
11505 if test $ol_cv_db_db3 = yes ; then
11510 if test $ol_cv_lib_db = no ; then
11511 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11512 echo "configure:11513: checking for Berkeley DB link (-ldb2)" >&5
11513 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11514 echo $ac_n "(cached) $ac_c" 1>&6
11519 LIBS="$ol_DB_LIB $LIBS"
11521 cat > conftest.$ac_ext <<EOF
11522 #line 11523 "configure"
11523 #include "confdefs.h"
11525 #ifdef HAVE_DB_185_H
11526 # include <db_185.h>
11531 #ifndef DB_VERSION_MAJOR
11532 # define DB_VERSION_MAJOR 1
11536 #define NULL ((void*)0)
11541 #if DB_VERSION_MAJOR > 2
11542 db_env_create( NULL, 0 );
11543 #elif DB_VERSION_MAJOR > 1
11544 db_appexit( NULL );
11546 (void) dbopen( NULL, 0, 0, 0, NULL);
11551 if { (eval echo configure:11552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11555 echo "configure: failed program was:" >&5
11556 cat conftest.$ac_ext >&5
11566 echo "$ac_t""$ol_cv_db_db2" 1>&6
11568 if test $ol_cv_db_db2 = yes ; then
11573 if test $ol_cv_lib_db = no ; then
11574 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11575 echo "configure:11576: checking for Berkeley DB link (-ldb1)" >&5
11576 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11577 echo $ac_n "(cached) $ac_c" 1>&6
11582 LIBS="$ol_DB_LIB $LIBS"
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11588 #ifdef HAVE_DB_185_H
11589 # include <db_185.h>
11594 #ifndef DB_VERSION_MAJOR
11595 # define DB_VERSION_MAJOR 1
11599 #define NULL ((void*)0)
11604 #if DB_VERSION_MAJOR > 2
11605 db_env_create( NULL, 0 );
11606 #elif DB_VERSION_MAJOR > 1
11607 db_appexit( NULL );
11609 (void) dbopen( NULL, 0, 0, 0, NULL);
11614 if { (eval echo configure:11615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11629 echo "$ac_t""$ol_cv_db_db1" 1>&6
11631 if test $ol_cv_db_db1 = yes ; then
11637 if test "$ol_cv_lib_db" != no ; then
11638 ol_cv_berkeley_db=yes
11644 ol_cv_berkeley_db=no
11647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11649 echo "configure:11650: checking for $ac_hdr" >&5
11650 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11651 echo $ac_n "(cached) $ac_c" 1>&6
11653 cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11659 { (eval echo configure:11660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11661 if test -z "$ac_err"; then
11663 eval "ac_cv_header_$ac_safe=yes"
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11669 eval "ac_cv_header_$ac_safe=no"
11673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11674 echo "$ac_t""yes" 1>&6
11675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11676 cat >> confdefs.h <<EOF
11677 #define $ac_tr_hdr 1
11681 echo "$ac_t""no" 1>&6
11685 if test $ac_cv_header_db_h = yes; then
11687 if test $ol_cv_lib_db = no ; then
11688 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11689 echo "configure:11690: checking for Berkeley DB link (default)" >&5
11690 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11696 LIBS="$ol_DB_LIB $LIBS"
11698 cat > conftest.$ac_ext <<EOF
11699 #line 11700 "configure"
11700 #include "confdefs.h"
11702 #ifdef HAVE_DB_185_H
11703 # include <db_185.h>
11708 #ifndef DB_VERSION_MAJOR
11709 # define DB_VERSION_MAJOR 1
11713 #define NULL ((void*)0)
11718 #if DB_VERSION_MAJOR > 2
11719 db_env_create( NULL, 0 );
11720 #elif DB_VERSION_MAJOR > 1
11721 db_appexit( NULL );
11723 (void) dbopen( NULL, 0, 0, 0, NULL);
11728 if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11743 echo "$ac_t""$ol_cv_db_none" 1>&6
11745 if test $ol_cv_db_none = yes ; then
11750 if test $ol_cv_lib_db = no ; then
11751 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11752 echo "configure:11753: checking for Berkeley DB link (-ldb)" >&5
11753 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11754 echo $ac_n "(cached) $ac_c" 1>&6
11759 LIBS="$ol_DB_LIB $LIBS"
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11763 "configure"
11763 #include "confdefs.h"
11765 #ifdef HAVE_DB_185_H
11766 # include <db_185.h>
11771 #ifndef DB_VERSION_MAJOR
11772 # define DB_VERSION_MAJOR 1
11776 #define NULL ((void*)0)
11781 #if DB_VERSION_MAJOR > 2
11782 db_env_create( NULL, 0 );
11783 #elif DB_VERSION_MAJOR > 1
11784 db_appexit( NULL );
11786 (void) dbopen( NULL, 0, 0, 0, NULL);
11791 if { (eval echo configure:11792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11806 echo "$ac_t""$ol_cv_db_db" 1>&6
11808 if test $ol_cv_db_db = yes ; then
11813 if test $ol_cv_lib_db = no ; then
11814 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11815 echo "configure:11816: checking for Berkeley DB link (-ldb3)" >&5
11816 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11817 echo $ac_n "(cached) $ac_c" 1>&6
11822 LIBS="$ol_DB_LIB $LIBS"
11824 cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure"
11826 #include "confdefs.h"
11828 #ifdef HAVE_DB_185_H
11829 # include <db_185.h>
11834 #ifndef DB_VERSION_MAJOR
11835 # define DB_VERSION_MAJOR 1
11839 #define NULL ((void*)0)
11844 #if DB_VERSION_MAJOR > 2
11845 db_env_create( NULL, 0 );
11846 #elif DB_VERSION_MAJOR > 1
11847 db_appexit( NULL );
11849 (void) dbopen( NULL, 0, 0, 0, NULL);
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11869 echo "$ac_t""$ol_cv_db_db3" 1>&6
11871 if test $ol_cv_db_db3 = yes ; then
11876 if test $ol_cv_lib_db = no ; then
11877 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11878 echo "configure:11879: checking for Berkeley DB link (-ldb2)" >&5
11879 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11880 echo $ac_n "(cached) $ac_c" 1>&6
11885 LIBS="$ol_DB_LIB $LIBS"
11887 cat > conftest.$ac_ext <<EOF
11888 #line 11889 "configure"
11889 #include "confdefs.h"
11891 #ifdef HAVE_DB_185_H
11892 # include <db_185.h>
11897 #ifndef DB_VERSION_MAJOR
11898 # define DB_VERSION_MAJOR 1
11902 #define NULL ((void*)0)
11907 #if DB_VERSION_MAJOR > 2
11908 db_env_create( NULL, 0 );
11909 #elif DB_VERSION_MAJOR > 1
11910 db_appexit( NULL );
11912 (void) dbopen( NULL, 0, 0, 0, NULL);
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11921 echo "configure: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11932 echo "$ac_t""$ol_cv_db_db2" 1>&6
11934 if test $ol_cv_db_db2 = yes ; then
11939 if test $ol_cv_lib_db = no ; then
11940 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11941 echo "configure:11942: checking for Berkeley DB link (-ldb1)" >&5
11942 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11948 LIBS="$ol_DB_LIB $LIBS"
11950 cat > conftest.$ac_ext <<EOF
11951 #line 11952 "configure"
11952 #include "confdefs.h"
11954 #ifdef HAVE_DB_185_H
11955 # include <db_185.h>
11960 #ifndef DB_VERSION_MAJOR
11961 # define DB_VERSION_MAJOR 1
11965 #define NULL ((void*)0)
11970 #if DB_VERSION_MAJOR > 2
11971 db_env_create( NULL, 0 );
11972 #elif DB_VERSION_MAJOR > 1
11973 db_appexit( NULL );
11975 (void) dbopen( NULL, 0, 0, 0, NULL);
11980 if { (eval echo configure:11981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11984 echo "configure: failed program was:" >&5
11985 cat conftest.$ac_ext >&5
11995 echo "$ac_t""$ol_cv_db_db1" 1>&6
11997 if test $ol_cv_db_db1 = yes ; then
12003 if test "$ol_cv_lib_db" != no ; then
12004 ol_cv_berkeley_db=yes
12005 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12006 echo "configure:12007: checking for Berkeley DB thread support" >&5
12007 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12012 if test $ol_cv_lib_db != yes ; then
12013 LIBS="$ol_cv_lib_db"
12016 if test "$cross_compiling" = yes; then
12017 ol_cv_berkeley_db_thread=cross
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12023 #ifdef HAVE_DB_185_H
12029 #define NULL ((void *)0)
12034 u_int32_t flags = DB_CREATE | DB_THREAD;
12036 #if DB_VERSION_MAJOR > 2
12037 DB_ENV *env = NULL;
12039 rc = db_env_create( &env, 0 );
12042 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12043 rc = env->open( env, NULL, flags, 0 );
12045 rc = env->open( env, NULL, NULL, flags, 0 );
12051 memset( &env, '\0', sizeof(env) );
12053 rc = db_appinit( NULL, NULL, &env, flags );
12056 db_appexit( &env );
12059 #if DB_VERSION_MAJOR > 2
12060 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12061 env->remove( env, NULL, DB_FORCE);
12063 env->remove( env, NULL, NULL, DB_FORCE);
12070 if { (eval echo configure:12071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12072 ol_cv_berkeley_db_thread=yes
12074 echo "configure: failed program was:" >&5
12075 cat conftest.$ac_ext >&5
12077 ol_cv_berkeley_db_thread=no
12085 if test $ol_cv_berkeley_db_thread != no ; then
12086 cat >> confdefs.h <<\EOF
12087 #define HAVE_BERKELEY_DB_THREAD 1
12094 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12100 if test $ol_cv_berkeley_db != no ; then
12101 cat >> confdefs.h <<\EOF
12102 #define HAVE_BERKELEY_DB 1
12106 ol_link_ldbm=berkeley
12107 ol_with_ldbm_api=db
12109 if test $ol_with_ldbm_type = hash ; then
12110 cat >> confdefs.h <<\EOF
12111 #define LDBM_USE_DBHASH 1
12115 cat >> confdefs.h <<\EOF
12116 #define LDBM_USE_DBBTREE 1
12121 if test $ol_cv_lib_db != yes ; then
12122 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12127 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12128 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12129 ol_with_ldbm_api=none
12132 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12133 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12134 echo "configure:12135: checking for MDBM library" >&5
12135 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12136 echo $ac_n "(cached) $ac_c" 1>&6
12139 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12140 echo "configure:12141: checking for mdbm_set_chain" >&5
12141 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12142 echo $ac_n "(cached) $ac_c" 1>&6
12144 cat > conftest.$ac_ext <<EOF
12145 #line 12146 "configure"
12146 #include "confdefs.h"
12147 /* System header to define __stub macros and hopefully few prototypes,
12148 which can conflict with char mdbm_set_chain(); below. */
12149 #include <assert.h>
12150 /* Override any gcc2 internal prototype to avoid an error. */
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12153 char mdbm_set_chain();
12158 /* The GNU C library defines this for functions which it implements
12159 to always fail with ENOSYS. Some functions are actually named
12160 something starting with __ and the normal name is an alias. */
12161 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12164 f = mdbm_set_chain;
12169 if { (eval echo configure:12170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12171 eval "ac_cv_func_mdbm_set_chain=yes"
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12176 eval "ac_cv_func_mdbm_set_chain=no"
12181 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12182 echo "$ac_t""yes" 1>&6
12185 echo "$ac_t""no" 1>&6
12187 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12188 echo "configure:12189: checking for mdbm_set_chain in -lmdbm" >&5
12189 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12191 echo $ac_n "(cached) $ac_c" 1>&6
12193 ac_save_LIBS="$LIBS"
12194 LIBS="-lmdbm $LIBS"
12195 cat > conftest.$ac_ext <<EOF
12196 #line 12197 "configure"
12197 #include "confdefs.h"
12198 /* Override any gcc2 internal prototype to avoid an error. */
12199 /* We use char because int might match the return type of a gcc2
12200 builtin and then its argument prototype would still apply. */
12201 char mdbm_set_chain();
12207 if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209 eval "ac_cv_lib_$ac_lib_var=yes"
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12214 eval "ac_cv_lib_$ac_lib_var=no"
12217 LIBS="$ac_save_LIBS"
12220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12221 echo "$ac_t""yes" 1>&6
12222 ol_cv_lib_mdbm=-lmdbm
12224 echo "$ac_t""no" 1>&6
12235 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12238 for ac_hdr in mdbm.h
12240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12242 echo "configure:12243: checking for $ac_hdr" >&5
12243 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12244 echo $ac_n "(cached) $ac_c" 1>&6
12246 cat > conftest.$ac_ext <<EOF
12247 #line 12248 "configure"
12248 #include "confdefs.h"
12251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12252 { (eval echo configure:12253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12254 if test -z "$ac_err"; then
12256 eval "ac_cv_header_$ac_safe=yes"
12259 echo "configure: failed program was:" >&5
12260 cat conftest.$ac_ext >&5
12262 eval "ac_cv_header_$ac_safe=no"
12266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12267 echo "$ac_t""yes" 1>&6
12268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12269 cat >> confdefs.h <<EOF
12270 #define $ac_tr_hdr 1
12274 echo "$ac_t""no" 1>&6
12278 echo $ac_n "checking for db""... $ac_c" 1>&6
12279 echo "configure:12280: checking for db" >&5
12280 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12281 echo $ac_n "(cached) $ac_c" 1>&6
12284 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12292 echo "$ac_t""$ol_cv_mdbm" 1>&6
12293 if test $ol_cv_mdbm = yes ; then
12294 cat >> confdefs.h <<\EOF
12295 #define HAVE_MDBM 1
12301 if test $ol_cv_mdbm = yes ; then
12303 ol_with_ldbm_api=mdbm
12304 if test $ol_cv_lib_mdbm != yes ; then
12305 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12310 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12311 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12312 echo "configure:12313: checking for GDBM library" >&5
12313 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12314 echo $ac_n "(cached) $ac_c" 1>&6
12317 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12318 echo "configure:12319: checking for gdbm_open" >&5
12319 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12320 echo $ac_n "(cached) $ac_c" 1>&6
12322 cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 /* System header to define __stub macros and hopefully few prototypes,
12326 which can conflict with char gdbm_open(); below. */
12327 #include <assert.h>
12328 /* Override any gcc2 internal prototype to avoid an error. */
12329 /* We use char because int might match the return type of a gcc2
12330 builtin and then its argument prototype would still apply. */
12336 /* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12347 if { (eval echo configure:12348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12349 eval "ac_cv_func_gdbm_open=yes"
12351 echo "configure: failed program was:" >&5
12352 cat conftest.$ac_ext >&5
12354 eval "ac_cv_func_gdbm_open=no"
12359 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12360 echo "$ac_t""yes" 1>&6
12363 echo "$ac_t""no" 1>&6
12365 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12366 echo "configure:12367: checking for gdbm_open in -lgdbm" >&5
12367 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12369 echo $ac_n "(cached) $ac_c" 1>&6
12371 ac_save_LIBS="$LIBS"
12372 LIBS="-lgdbm $LIBS"
12373 cat > conftest.$ac_ext <<EOF
12374 #line 12375 "configure"
12375 #include "confdefs.h"
12376 /* Override any gcc2 internal prototype to avoid an error. */
12377 /* We use char because int might match the return type of a gcc2
12378 builtin and then its argument prototype would still apply. */
12385 if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12387 eval "ac_cv_lib_$ac_lib_var=yes"
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12392 eval "ac_cv_lib_$ac_lib_var=no"
12395 LIBS="$ac_save_LIBS"
12398 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12399 echo "$ac_t""yes" 1>&6
12400 ol_cv_lib_gdbm=-lgdbm
12402 echo "$ac_t""no" 1>&6
12413 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12416 for ac_hdr in gdbm.h
12418 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12419 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12420 echo "configure:12421: checking for $ac_hdr" >&5
12421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12422 echo $ac_n "(cached) $ac_c" 1>&6
12424 cat > conftest.$ac_ext <<EOF
12425 #line 12426 "configure"
12426 #include "confdefs.h"
12429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12430 { (eval echo configure:12431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12432 if test -z "$ac_err"; then
12434 eval "ac_cv_header_$ac_safe=yes"
12437 echo "configure: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12440 eval "ac_cv_header_$ac_safe=no"
12444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12445 echo "$ac_t""yes" 1>&6
12446 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12447 cat >> confdefs.h <<EOF
12448 #define $ac_tr_hdr 1
12452 echo "$ac_t""no" 1>&6
12456 echo $ac_n "checking for db""... $ac_c" 1>&6
12457 echo "configure:12458: checking for db" >&5
12458 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12459 echo $ac_n "(cached) $ac_c" 1>&6
12462 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12470 echo "$ac_t""$ol_cv_gdbm" 1>&6
12471 if test $ol_cv_gdbm = yes ; then
12472 cat >> confdefs.h <<\EOF
12473 #define HAVE_GDBM 1
12479 if test $ol_cv_gdbm = yes ; then
12481 ol_with_ldbm_api=gdbm
12483 if test $ol_cv_lib_gdbm != yes ; then
12484 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12489 if test $ol_with_ldbm_api = ndbm ; then
12490 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12491 echo "configure:12492: checking for NDBM library" >&5
12492 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12496 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12497 echo "configure:12498: checking for dbm_open" >&5
12498 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504 /* System header to define __stub macros and hopefully few prototypes,
12505 which can conflict with char dbm_open(); below. */
12506 #include <assert.h>
12507 /* Override any gcc2 internal prototype to avoid an error. */
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12515 /* The GNU C library defines this for functions which it implements
12516 to always fail with ENOSYS. Some functions are actually named
12517 something starting with __ and the normal name is an alias. */
12518 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12526 if { (eval echo configure:12527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12528 eval "ac_cv_func_dbm_open=yes"
12530 echo "configure: failed program was:" >&5
12531 cat conftest.$ac_ext >&5
12533 eval "ac_cv_func_dbm_open=no"
12538 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12539 echo "$ac_t""yes" 1>&6
12542 echo "$ac_t""no" 1>&6
12544 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12545 echo "configure:12546: checking for dbm_open in -lndbm" >&5
12546 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12547 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12548 echo $ac_n "(cached) $ac_c" 1>&6
12550 ac_save_LIBS="$LIBS"
12551 LIBS="-lndbm $LIBS"
12552 cat > conftest.$ac_ext <<EOF
12553 #line 12554 "configure"
12554 #include "confdefs.h"
12555 /* Override any gcc2 internal prototype to avoid an error. */
12556 /* We use char because int might match the return type of a gcc2
12557 builtin and then its argument prototype would still apply. */
12564 if { (eval echo configure:12565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12566 eval "ac_cv_lib_$ac_lib_var=yes"
12568 echo "configure: failed program was:" >&5
12569 cat conftest.$ac_ext >&5
12571 eval "ac_cv_lib_$ac_lib_var=no"
12574 LIBS="$ac_save_LIBS"
12577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12578 echo "$ac_t""yes" 1>&6
12579 ol_cv_lib_ndbm=-lndbm
12581 echo "$ac_t""no" 1>&6
12583 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12584 echo "configure:12585: checking for dbm_open in -ldbm" >&5
12585 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12586 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12587 echo $ac_n "(cached) $ac_c" 1>&6
12589 ac_save_LIBS="$LIBS"
12591 cat > conftest.$ac_ext <<EOF
12592 #line 12593 "configure"
12593 #include "confdefs.h"
12594 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605 eval "ac_cv_lib_$ac_lib_var=yes"
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12610 eval "ac_cv_lib_$ac_lib_var=no"
12613 LIBS="$ac_save_LIBS"
12616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12617 echo "$ac_t""yes" 1>&6
12618 ol_cv_lib_ndbm=-ldbm
12620 echo "$ac_t""no" 1>&6
12633 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12636 for ac_hdr in ndbm.h
12638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12640 echo "configure:12641: checking for $ac_hdr" >&5
12641 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12642 echo $ac_n "(cached) $ac_c" 1>&6
12644 cat > conftest.$ac_ext <<EOF
12645 #line 12646 "configure"
12646 #include "confdefs.h"
12649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12650 { (eval echo configure:12651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12652 if test -z "$ac_err"; then
12654 eval "ac_cv_header_$ac_safe=yes"
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 eval "ac_cv_header_$ac_safe=no"
12664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12665 echo "$ac_t""yes" 1>&6
12666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12667 cat >> confdefs.h <<EOF
12668 #define $ac_tr_hdr 1
12672 echo "$ac_t""no" 1>&6
12676 echo $ac_n "checking for db""... $ac_c" 1>&6
12677 echo "configure:12678: checking for db" >&5
12678 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12679 echo $ac_n "(cached) $ac_c" 1>&6
12682 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12690 echo "$ac_t""$ol_cv_ndbm" 1>&6
12691 if test $ol_cv_ndbm = yes ; then
12692 cat >> confdefs.h <<\EOF
12693 #define HAVE_NDBM 1
12699 if test $ol_cv_ndbm = yes ; then
12701 ol_with_ldbm_api=ndbm
12703 if test $ol_cv_lib_ndbm != yes ; then
12704 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12709 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12710 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12711 if test $ol_enable_ldbm = yes ; then
12712 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12715 echo "configure: warning: disabling LDBM" 1>&2
12719 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12720 LINK_BINS_DYNAMIC="yes"
12722 LINK_BINS_DYNAMIC="no"
12725 if test $ol_enable_wrappers != no ; then
12726 for ac_hdr in tcpd.h
12728 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12729 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12730 echo "configure:12731: checking for $ac_hdr" >&5
12731 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12732 echo $ac_n "(cached) $ac_c" 1>&6
12734 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure"
12736 #include "confdefs.h"
12739 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12740 { (eval echo configure:12741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12741 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12742 if test -z "$ac_err"; then
12744 eval "ac_cv_header_$ac_safe=yes"
12747 echo "configure: failed program was:" >&5
12748 cat conftest.$ac_ext >&5
12750 eval "ac_cv_header_$ac_safe=no"
12754 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12755 echo "$ac_t""yes" 1>&6
12756 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12757 cat >> confdefs.h <<EOF
12758 #define $ac_tr_hdr 1
12762 echo "$ac_t""no" 1>&6
12767 if test $ac_cv_header_tcpd_h != yes ; then
12770 cat > conftest.$ac_ext <<EOF
12771 #line 12772 "configure"
12772 #include "confdefs.h"
12774 int allow_severity = 0;
12775 int deny_severity = 0;
12781 if { (eval echo configure:12782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12793 if test $have_wrappers = yes ; then
12794 cat >> confdefs.h <<\EOF
12795 #define HAVE_TCPD 1
12800 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12801 echo "configure:12802: checking for main in -lnsl" >&5
12802 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12804 echo $ac_n "(cached) $ac_c" 1>&6
12806 ac_save_LIBS="$LIBS"
12808 cat > conftest.$ac_ext <<EOF
12809 #line 12810 "configure"
12810 #include "confdefs.h"
12816 if { (eval echo configure:12817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12818 eval "ac_cv_lib_$ac_lib_var=yes"
12820 echo "configure: failed program was:" >&5
12821 cat conftest.$ac_ext >&5
12823 eval "ac_cv_lib_$ac_lib_var=no"
12826 LIBS="$ac_save_LIBS"
12829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12830 echo "$ac_t""yes" 1>&6
12831 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12833 cat >> confdefs.h <<EOF
12834 #define $ac_tr_lib 1
12840 echo "$ac_t""no" 1>&6
12844 echo "configure: warning: could not find -lwrap" 1>&2
12845 if test $ol_enable_wrappers = yes ; then
12846 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12849 echo "configure: warning: disabling wrappers support" 1>&2
12850 ol_enable_wrappers=no
12855 if test $ol_enable_syslog != no ; then
12856 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12857 echo "configure:12858: checking for openlog" >&5
12858 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12859 echo $ac_n "(cached) $ac_c" 1>&6
12861 cat > conftest.$ac_ext <<EOF
12862 #line 12863 "configure"
12863 #include "confdefs.h"
12864 /* System header to define __stub macros and hopefully few prototypes,
12865 which can conflict with char openlog(); below. */
12866 #include <assert.h>
12867 /* Override any gcc2 internal prototype to avoid an error. */
12868 /* We use char because int might match the return type of a gcc2
12869 builtin and then its argument prototype would still apply. */
12875 /* The GNU C library defines this for functions which it implements
12876 to always fail with ENOSYS. Some functions are actually named
12877 something starting with __ and the normal name is an alias. */
12878 #if defined (__stub_openlog) || defined (__stub___openlog)
12886 if { (eval echo configure:12887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12888 eval "ac_cv_func_openlog=yes"
12890 echo "configure: failed program was:" >&5
12891 cat conftest.$ac_ext >&5
12893 eval "ac_cv_func_openlog=no"
12898 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12899 echo "$ac_t""yes" 1>&6
12902 echo "$ac_t""no" 1>&6
12905 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12906 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12908 ol_enable_syslog=$ac_cv_func_openlog
12912 if test $ol_enable_sql != no ; then
12913 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
12914 echo "configure:12915: checking for SQLDriverConnect in -liodbc" >&5
12915 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
12916 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12917 echo $ac_n "(cached) $ac_c" 1>&6
12919 ac_save_LIBS="$LIBS"
12920 LIBS="-liodbc $LIBS"
12921 cat > conftest.$ac_ext <<EOF
12922 #line 12923 "configure"
12923 #include "confdefs.h"
12924 /* Override any gcc2 internal prototype to avoid an error. */
12925 /* We use char because int might match the return type of a gcc2
12926 builtin and then its argument prototype would still apply. */
12927 char SQLDriverConnect();
12933 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12935 eval "ac_cv_lib_$ac_lib_var=yes"
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12940 eval "ac_cv_lib_$ac_lib_var=no"
12943 LIBS="$ac_save_LIBS"
12946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12947 echo "$ac_t""yes" 1>&6
12950 echo "$ac_t""no" 1>&6
12954 if test $have_iodbc = yes ; then
12955 ol_link_sql="-liodbc"
12957 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
12958 echo "configure:12959: checking for SQLDriverConnect in -lodbc" >&5
12959 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
12960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12961 echo $ac_n "(cached) $ac_c" 1>&6
12963 ac_save_LIBS="$LIBS"
12964 LIBS="-lodbc $LIBS"
12965 cat > conftest.$ac_ext <<EOF
12966 #line 12967 "configure"
12967 #include "confdefs.h"
12968 /* Override any gcc2 internal prototype to avoid an error. */
12969 /* We use char because int might match the return type of a gcc2
12970 builtin and then its argument prototype would still apply. */
12971 char SQLDriverConnect();
12977 if { (eval echo configure:12978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12979 eval "ac_cv_lib_$ac_lib_var=yes"
12981 echo "configure: failed program was:" >&5
12982 cat conftest.$ac_ext >&5
12984 eval "ac_cv_lib_$ac_lib_var=no"
12987 LIBS="$ac_save_LIBS"
12990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12991 echo "$ac_t""yes" 1>&6
12994 echo "$ac_t""no" 1>&6
12998 if test $have_odbc = yes ; then
12999 ol_link_sql="-lodbc"
13003 if test $ol_link_sql != no ; then
13004 SLAPD_SQL_LIBS="$ol_link_sql"
13006 elif test $ol_enable_sql != auto ; then
13007 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13012 for ac_hdr in termcap.h ncurses.h
13014 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13015 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13016 echo "configure:13017: checking for $ac_hdr" >&5
13017 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13018 echo $ac_n "(cached) $ac_c" 1>&6
13020 cat > conftest.$ac_ext <<EOF
13021 #line 13022 "configure"
13022 #include "confdefs.h"
13025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13026 { (eval echo configure:13027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13027 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13028 if test -z "$ac_err"; then
13030 eval "ac_cv_header_$ac_safe=yes"
13033 echo "configure: failed program was:" >&5
13034 cat conftest.$ac_ext >&5
13036 eval "ac_cv_header_$ac_safe=no"
13040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13041 echo "$ac_t""yes" 1>&6
13042 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13043 cat >> confdefs.h <<EOF
13044 #define $ac_tr_hdr 1
13048 echo "$ac_t""no" 1>&6
13053 if test $ol_link_termcap = no ; then
13054 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13055 echo "configure:13056: checking for tputs in -ltermcap" >&5
13056 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13057 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13058 echo $ac_n "(cached) $ac_c" 1>&6
13060 ac_save_LIBS="$LIBS"
13061 LIBS="-ltermcap $LIBS"
13062 cat > conftest.$ac_ext <<EOF
13063 #line 13064 "configure"
13064 #include "confdefs.h"
13065 /* Override any gcc2 internal prototype to avoid an error. */
13066 /* We use char because int might match the return type of a gcc2
13067 builtin and then its argument prototype would still apply. */
13074 if { (eval echo configure:13075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13076 eval "ac_cv_lib_$ac_lib_var=yes"
13078 echo "configure: failed program was:" >&5
13079 cat conftest.$ac_ext >&5
13081 eval "ac_cv_lib_$ac_lib_var=no"
13084 LIBS="$ac_save_LIBS"
13087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13088 echo "$ac_t""yes" 1>&6
13091 echo "$ac_t""no" 1>&6
13095 if test $have_termcap = yes ; then
13096 cat >> confdefs.h <<\EOF
13097 #define HAVE_TERMCAP 1
13100 ol_link_termcap=yes
13101 TERMCAP_LIBS=-ltermcap
13105 if test $ol_link_termcap = no ; then
13106 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13107 echo "configure:13108: checking for initscr in -lncurses" >&5
13108 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13109 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13110 echo $ac_n "(cached) $ac_c" 1>&6
13112 ac_save_LIBS="$LIBS"
13113 LIBS="-lncurses $LIBS"
13114 cat > conftest.$ac_ext <<EOF
13115 #line 13116 "configure"
13116 #include "confdefs.h"
13117 /* Override any gcc2 internal prototype to avoid an error. */
13118 /* We use char because int might match the return type of a gcc2
13119 builtin and then its argument prototype would still apply. */
13126 if { (eval echo configure:13127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13128 eval "ac_cv_lib_$ac_lib_var=yes"
13130 echo "configure: failed program was:" >&5
13131 cat conftest.$ac_ext >&5
13133 eval "ac_cv_lib_$ac_lib_var=no"
13136 LIBS="$ac_save_LIBS"
13139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13140 echo "$ac_t""yes" 1>&6
13143 echo "$ac_t""no" 1>&6
13147 if test $have_ncurses = yes ; then
13148 cat >> confdefs.h <<\EOF
13149 #define HAVE_NCURSES 1
13152 ol_link_termcap=yes
13153 TERMCAP_LIBS=-lncurses
13157 if test $ol_link_termcap = no ; then
13158 cat >> confdefs.h <<\EOF
13159 #define NO_TERMCAP 1
13167 if test $ol_with_cyrus_sasl != no ; then
13168 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13169 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13170 echo "configure:13171: checking for sasl.h" >&5
13171 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13174 cat > conftest.$ac_ext <<EOF
13175 #line 13176 "configure"
13176 #include "confdefs.h"
13179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13180 { (eval echo configure:13181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13182 if test -z "$ac_err"; then
13184 eval "ac_cv_header_$ac_safe=yes"
13187 echo "configure: failed program was:" >&5
13188 cat conftest.$ac_ext >&5
13190 eval "ac_cv_header_$ac_safe=no"
13194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13195 echo "$ac_t""yes" 1>&6
13198 echo "$ac_t""no" 1>&6
13202 if test $ac_cv_header_sasl_h = yes ; then
13203 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13204 echo "configure:13205: checking for sasl_client_init in -lsasl" >&5
13205 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13207 echo $ac_n "(cached) $ac_c" 1>&6
13209 ac_save_LIBS="$LIBS"
13210 LIBS="-lsasl $LIBS"
13211 cat > conftest.$ac_ext <<EOF
13212 #line 13213 "configure"
13213 #include "confdefs.h"
13214 /* Override any gcc2 internal prototype to avoid an error. */
13215 /* We use char because int might match the return type of a gcc2
13216 builtin and then its argument prototype would still apply. */
13217 char sasl_client_init();
13223 if { (eval echo configure:13224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13225 eval "ac_cv_lib_$ac_lib_var=yes"
13227 echo "configure: failed program was:" >&5
13228 cat conftest.$ac_ext >&5
13230 eval "ac_cv_lib_$ac_lib_var=no"
13233 LIBS="$ac_save_LIBS"
13236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13237 echo "$ac_t""yes" 1>&6
13238 have_cyrus_sasl=yes
13240 echo "$ac_t""no" 1>&6
13245 if test $have_cyrus_sasl != no ; then
13247 cat >> confdefs.h <<\EOF
13248 #define HAVE_CYRUS_SASL 1
13255 if test $ol_link_sasl = no ; then
13256 if test $ol_with_cyrus_sasl != auto ; then
13257 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
13259 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
13260 echo "configure: warning: SASL authentication not supported!" 1>&2
13261 if test $ol_link_tls = no ; then
13262 echo "configure: warning: Strong authentication not supported!" 1>&2
13267 echo "configure: warning: SASL authentication not supported!" 1>&2
13268 if test $ol_link_tls = no ; then
13269 echo "configure: warning: Strong authentication not supported!" 1>&2
13273 if test $cross_compiling != yes ; then
13275 if test -r /dev/urandom ; then
13276 dev="/dev/urandom";
13277 elif test -r /idev/urandom ; then
13278 dev="/idev/urandom";
13279 elif test -r /dev/srandom ; then
13280 dev="/dev/srandom";
13281 elif test -r /dev/random ; then
13283 elif test -r /idev/random ; then
13284 dev="/idev/random";
13287 if test $dev != no ; then
13288 cat >> confdefs.h <<EOF
13289 #define URANDOM_DEVICE "$dev"
13296 if test $ol_with_fetch != no ; then
13298 LIBS="-lfetch -lcom_err $LIBS"
13299 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13300 echo "configure:13301: checking fetch(3) library" >&5
13301 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13302 echo $ac_n "(cached) $ac_c" 1>&6
13305 cat > conftest.$ac_ext <<EOF
13306 #line 13307 "configure"
13307 #include "confdefs.h"
13309 #include <sys/param.h>
13313 struct url *u = fetchParseURL("file:///");
13316 if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13318 ol_cv_lib_fetch=yes
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13328 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13330 if test $ol_cv_lib_fetch != no ; then
13331 ol_link_fetch="-lfetch -lcom_err"
13332 cat >> confdefs.h <<\EOF
13333 #define HAVE_FETCH 1
13339 if test $ol_cv_lib_fetch != no ; then
13340 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13341 ol_link_fetch=freebsd
13343 elif test $ol_with_fetch != auto ; then
13344 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13348 ol_link_readline=no
13349 if test $ol_with_readline != no ; then
13350 for ac_hdr in readline/readline.h readline/history.h
13352 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13353 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13354 echo "configure:13355: checking for $ac_hdr" >&5
13355 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13364 { (eval echo configure:13365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13366 if test -z "$ac_err"; then
13368 eval "ac_cv_header_$ac_safe=yes"
13371 echo "configure: failed program was:" >&5
13372 cat conftest.$ac_ext >&5
13374 eval "ac_cv_header_$ac_safe=no"
13378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13379 echo "$ac_t""yes" 1>&6
13380 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13381 cat >> confdefs.h <<EOF
13382 #define $ac_tr_hdr 1
13386 echo "$ac_t""no" 1>&6
13391 if test $ac_cv_header_readline_readline_h = yes ; then
13393 LIBS="$TERMCAP_LIBS $LIBS"
13394 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13395 echo "configure:13396: checking for readline in -lreadline" >&5
13396 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13397 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13400 ac_save_LIBS="$LIBS"
13401 LIBS="-lreadline $LIBS"
13402 cat > conftest.$ac_ext <<EOF
13403 #line 13404 "configure"
13404 #include "confdefs.h"
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13414 if { (eval echo configure:13415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13416 eval "ac_cv_lib_$ac_lib_var=yes"
13418 echo "configure: failed program was:" >&5
13419 cat conftest.$ac_ext >&5
13421 eval "ac_cv_lib_$ac_lib_var=no"
13424 LIBS="$ac_save_LIBS"
13427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13428 echo "$ac_t""yes" 1>&6
13431 echo "$ac_t""no" 1>&6
13437 if test $have_readline = yes ; then
13438 ol_with_readline=found
13439 ol_link_readline=yes
13441 READLINE_LIBS="-lreadline"
13446 if test $ol_link_readline = yes ; then
13447 cat >> confdefs.h <<\EOF
13448 #define HAVE_READLINE 1
13454 if test $ol_enable_crypt != no ; then
13455 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13456 echo "configure:13457: checking for crypt" >&5
13457 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13458 echo $ac_n "(cached) $ac_c" 1>&6
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* System header to define __stub macros and hopefully few prototypes,
13464 which can conflict with char crypt(); below. */
13465 #include <assert.h>
13466 /* Override any gcc2 internal prototype to avoid an error. */
13467 /* We use char because int might match the return type of a gcc2
13468 builtin and then its argument prototype would still apply. */
13474 /* The GNU C library defines this for functions which it implements
13475 to always fail with ENOSYS. Some functions are actually named
13476 something starting with __ and the normal name is an alias. */
13477 #if defined (__stub_crypt) || defined (__stub___crypt)
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13487 eval "ac_cv_func_crypt=yes"
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13492 eval "ac_cv_func_crypt=no"
13497 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13498 echo "$ac_t""yes" 1>&6
13501 echo "$ac_t""no" 1>&6
13503 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13504 echo "configure:13505: checking for crypt in -lcrypt" >&5
13505 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13506 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13507 echo $ac_n "(cached) $ac_c" 1>&6
13509 ac_save_LIBS="$LIBS"
13510 LIBS="-lcrypt $LIBS"
13511 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure"
13513 #include "confdefs.h"
13514 /* Override any gcc2 internal prototype to avoid an error. */
13515 /* We use char because int might match the return type of a gcc2
13516 builtin and then its argument prototype would still apply. */
13523 if { (eval echo configure:13524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13525 eval "ac_cv_lib_$ac_lib_var=yes"
13527 echo "configure: failed program was:" >&5
13528 cat conftest.$ac_ext >&5
13530 eval "ac_cv_lib_$ac_lib_var=no"
13533 LIBS="$ac_save_LIBS"
13536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13537 echo "$ac_t""yes" 1>&6
13538 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13541 echo "$ac_t""no" 1>&6
13548 if test $have_crypt = yes ; then
13549 cat >> confdefs.h <<\EOF
13550 #define HAVE_CRYPT 1
13554 echo "configure: warning: could not find crypt" 1>&2
13555 if test $ol_enable_crypt = yes ; then
13556 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13559 echo "configure: warning: disabling crypt support" 1>&2
13564 if test $ol_enable_proctitle != no ; then
13565 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13566 echo "configure:13567: checking for setproctitle" >&5
13567 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13568 echo $ac_n "(cached) $ac_c" 1>&6
13570 cat > conftest.$ac_ext <<EOF
13571 #line 13572 "configure"
13572 #include "confdefs.h"
13573 /* System header to define __stub macros and hopefully few prototypes,
13574 which can conflict with char setproctitle(); below. */
13575 #include <assert.h>
13576 /* Override any gcc2 internal prototype to avoid an error. */
13577 /* We use char because int might match the return type of a gcc2
13578 builtin and then its argument prototype would still apply. */
13579 char setproctitle();
13584 /* The GNU C library defines this for functions which it implements
13585 to always fail with ENOSYS. Some functions are actually named
13586 something starting with __ and the normal name is an alias. */
13587 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13595 if { (eval echo configure:13596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13597 eval "ac_cv_func_setproctitle=yes"
13599 echo "configure: failed program was:" >&5
13600 cat conftest.$ac_ext >&5
13602 eval "ac_cv_func_setproctitle=no"
13607 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13608 echo "$ac_t""yes" 1>&6
13609 have_setproctitle=yes
13611 echo "$ac_t""no" 1>&6
13613 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13614 echo "configure:13615: checking for setproctitle in -lutil" >&5
13615 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13616 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13617 echo $ac_n "(cached) $ac_c" 1>&6
13619 ac_save_LIBS="$LIBS"
13620 LIBS="-lutil $LIBS"
13621 cat > conftest.$ac_ext <<EOF
13622 #line 13623 "configure"
13623 #include "confdefs.h"
13624 /* Override any gcc2 internal prototype to avoid an error. */
13625 /* We use char because int might match the return type of a gcc2
13626 builtin and then its argument prototype would still apply. */
13627 char setproctitle();
13633 if { (eval echo configure:13634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13635 eval "ac_cv_lib_$ac_lib_var=yes"
13637 echo "configure: failed program was:" >&5
13638 cat conftest.$ac_ext >&5
13640 eval "ac_cv_lib_$ac_lib_var=no"
13643 LIBS="$ac_save_LIBS"
13646 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13647 echo "$ac_t""yes" 1>&6
13648 have_setproctitle=yes
13649 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13651 echo "$ac_t""no" 1>&6
13652 have_setproctitle=no
13653 LIBOBJS="$LIBOBJS setproctitle.o"
13654 LIBSRCS="$LIBSRCS setproctitle.c"
13660 if test $have_setproctitle = yes ; then
13661 cat >> confdefs.h <<\EOF
13662 #define HAVE_SETPROCTITLE 1
13668 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13669 echo "configure:13670: checking for ANSI C header files" >&5
13670 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13671 echo $ac_n "(cached) $ac_c" 1>&6
13673 cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure"
13675 #include "confdefs.h"
13676 #include <stdlib.h>
13677 #include <stdarg.h>
13678 #include <string.h>
13681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13682 { (eval echo configure:13683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13684 if test -z "$ac_err"; then
13686 ac_cv_header_stdc=yes
13689 echo "configure: failed program was:" >&5
13690 cat conftest.$ac_ext >&5
13692 ac_cv_header_stdc=no
13696 if test $ac_cv_header_stdc = yes; then
13697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13698 cat > conftest.$ac_ext <<EOF
13699 #line 13700 "configure"
13700 #include "confdefs.h"
13701 #include <string.h>
13703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13704 egrep "memchr" >/dev/null 2>&1; then
13708 ac_cv_header_stdc=no
13714 if test $ac_cv_header_stdc = yes; then
13715 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13716 cat > conftest.$ac_ext <<EOF
13717 #line 13718 "configure"
13718 #include "confdefs.h"
13719 #include <stdlib.h>
13721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13722 egrep "free" >/dev/null 2>&1; then
13726 ac_cv_header_stdc=no
13732 if test $ac_cv_header_stdc = yes; then
13733 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13734 if test "$cross_compiling" = yes; then
13737 cat > conftest.$ac_ext <<EOF
13738 #line 13739 "configure"
13739 #include "confdefs.h"
13741 #if ((' ' & 0x0FF) == 0x020)
13742 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13743 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13745 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13746 || ('j' <= (c) && (c) <= 'r') \
13747 || ('s' <= (c) && (c) <= 'z'))
13748 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13750 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13751 int main () { int i; for (i = 0; i < 256; i++)
13752 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13756 if { (eval echo configure:13757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13760 echo "configure: failed program was:" >&5
13761 cat conftest.$ac_ext >&5
13763 ac_cv_header_stdc=no
13771 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13772 if test $ac_cv_header_stdc = yes; then
13773 cat >> confdefs.h <<\EOF
13774 #define STDC_HEADERS 1
13779 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13780 echo "configure:13781: checking for mode_t" >&5
13781 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13782 echo $ac_n "(cached) $ac_c" 1>&6
13784 cat > conftest.$ac_ext <<EOF
13785 #line 13786 "configure"
13786 #include "confdefs.h"
13787 #include <sys/types.h>
13789 #include <stdlib.h>
13790 #include <stddef.h>
13794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13795 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13797 eval "ac_cv_type_mode_t=yes"
13800 eval "ac_cv_type_mode_t=no"
13805 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13806 echo "$ac_t""yes" 1>&6
13808 echo "$ac_t""no" 1>&6
13809 cat >> confdefs.h <<EOF
13815 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13816 echo "configure:13817: checking for off_t" >&5
13817 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13818 echo $ac_n "(cached) $ac_c" 1>&6
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13823 #include <sys/types.h>
13825 #include <stdlib.h>
13826 #include <stddef.h>
13830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13831 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13833 eval "ac_cv_type_off_t=yes"
13836 eval "ac_cv_type_off_t=no"
13841 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13842 echo "$ac_t""yes" 1>&6
13844 echo "$ac_t""no" 1>&6
13845 cat >> confdefs.h <<EOF
13851 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13852 echo "configure:13853: checking for pid_t" >&5
13853 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13856 cat > conftest.$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13859 #include <sys/types.h>
13861 #include <stdlib.h>
13862 #include <stddef.h>
13866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13867 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13869 eval "ac_cv_type_pid_t=yes"
13872 eval "ac_cv_type_pid_t=no"
13877 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13880 echo "$ac_t""no" 1>&6
13881 cat >> confdefs.h <<EOF
13887 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13888 echo "configure:13889: checking for ptrdiff_t" >&5
13889 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13892 cat > conftest.$ac_ext <<EOF
13893 #line 13894 "configure"
13894 #include "confdefs.h"
13895 #include <stddef.h>
13900 if { (eval echo configure:13901: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13902 am_cv_type_ptrdiff_t=yes
13904 echo "configure: failed program was:" >&5
13905 cat conftest.$ac_ext >&5
13907 am_cv_type_ptrdiff_t=no
13912 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13913 if test $am_cv_type_ptrdiff_t = yes; then
13914 cat >> confdefs.h <<\EOF
13915 #define HAVE_PTRDIFF_T 1
13920 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13921 echo "configure:13922: checking return type of signal handlers" >&5
13922 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13923 echo $ac_n "(cached) $ac_c" 1>&6
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13928 #include <sys/types.h>
13929 #include <signal.h>
13934 extern "C" void (*signal (int, void (*)(int)))(int);
13936 void (*signal ()) ();
13943 if { (eval echo configure:13944: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13945 ac_cv_type_signal=void
13947 echo "configure: failed program was:" >&5
13948 cat conftest.$ac_ext >&5
13950 ac_cv_type_signal=int
13955 echo "$ac_t""$ac_cv_type_signal" 1>&6
13956 cat >> confdefs.h <<EOF
13957 #define RETSIGTYPE $ac_cv_type_signal
13961 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13962 echo "configure:13963: checking for size_t" >&5
13963 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 #include <sys/types.h>
13971 #include <stdlib.h>
13972 #include <stddef.h>
13976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13977 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13979 eval "ac_cv_type_size_t=yes"
13982 eval "ac_cv_type_size_t=no"
13987 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13988 echo "$ac_t""yes" 1>&6
13990 echo "$ac_t""no" 1>&6
13991 cat >> confdefs.h <<EOF
13992 #define size_t unsigned
13998 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13999 echo "configure:14000: checking for ssize_t" >&5
14000 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14001 echo $ac_n "(cached) $ac_c" 1>&6
14003 cat > conftest.$ac_ext <<EOF
14004 #line 14005 "configure"
14005 #include "confdefs.h"
14006 #include <sys/types.h>
14008 #include <stdlib.h>
14009 #include <stddef.h>
14013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14014 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14016 eval "ac_cv_type_ssize_t=yes"
14019 eval "ac_cv_type_ssize_t=no"
14024 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14025 echo "$ac_t""yes" 1>&6
14027 echo "$ac_t""no" 1>&6
14028 cat >> confdefs.h <<EOF
14029 #define ssize_t signed int
14034 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14035 echo "configure:14036: checking for caddr_t" >&5
14036 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14037 echo $ac_n "(cached) $ac_c" 1>&6
14039 cat > conftest.$ac_ext <<EOF
14040 #line 14041 "configure"
14041 #include "confdefs.h"
14042 #include <sys/types.h>
14044 #include <stdlib.h>
14045 #include <stddef.h>
14049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14050 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14052 eval "ac_cv_type_caddr_t=yes"
14055 eval "ac_cv_type_caddr_t=no"
14060 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14061 echo "$ac_t""yes" 1>&6
14063 echo "$ac_t""no" 1>&6
14064 cat >> confdefs.h <<EOF
14065 #define caddr_t char *
14071 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14072 echo "configure:14073: checking for socklen_t" >&5
14073 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14074 echo $ac_n "(cached) $ac_c" 1>&6
14076 cat > conftest.$ac_ext <<EOF
14077 #line 14078 "configure"
14078 #include "confdefs.h"
14080 #ifdef HAVE_SYS_TYPES_H
14081 #include <sys/types.h>
14083 #ifdef HAVE_SYS_SOCKET_H
14084 #include <sys/socket.h>
14091 if { (eval echo configure:14092: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14093 ol_cv_type_socklen_t=yes
14095 echo "configure: failed program was:" >&5
14096 cat conftest.$ac_ext >&5
14098 ol_cv_type_socklen_t=no
14103 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14104 if test $ol_cv_type_socklen_t = no; then
14105 cat >> confdefs.h <<\EOF
14106 #define socklen_t int
14111 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14112 echo "configure:14113: checking for member st_blksize in aggregate type struct stat" >&5
14113 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14114 echo $ac_n "(cached) $ac_c" 1>&6
14116 cat > conftest.$ac_ext <<EOF
14117 #line 14118 "configure"
14118 #include "confdefs.h"
14119 #include <sys/types.h>
14120 #include <sys/stat.h>
14122 struct stat foo; foo.st_blksize;
14125 if { (eval echo configure:14126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14127 ac_cv_c_struct_member_st_blksize=yes
14129 echo "configure: failed program was:" >&5
14130 cat conftest.$ac_ext >&5
14132 ac_cv_c_struct_member_st_blksize=no
14137 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14138 st_blksize="$ac_cv_c_struct_member_st_blksize"
14139 if test $ac_cv_c_struct_member_st_blksize = yes; then
14140 cat >> confdefs.h <<\EOF
14141 #define HAVE_ST_BLKSIZE 1
14146 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14147 echo "configure:14148: checking whether time.h and sys/time.h may both be included" >&5
14148 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
14151 cat > conftest.$ac_ext <<EOF
14152 #line 14153 "configure"
14153 #include "confdefs.h"
14154 #include <sys/types.h>
14155 #include <sys/time.h>
14161 if { (eval echo configure:14162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14163 ac_cv_header_time=yes
14165 echo "configure: failed program was:" >&5
14166 cat conftest.$ac_ext >&5
14168 ac_cv_header_time=no
14173 echo "$ac_t""$ac_cv_header_time" 1>&6
14174 if test $ac_cv_header_time = yes; then
14175 cat >> confdefs.h <<\EOF
14176 #define TIME_WITH_SYS_TIME 1
14181 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14182 echo "configure:14183: checking whether struct tm is in sys/time.h or time.h" >&5
14183 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14184 echo $ac_n "(cached) $ac_c" 1>&6
14186 cat > conftest.$ac_ext <<EOF
14187 #line 14188 "configure"
14188 #include "confdefs.h"
14189 #include <sys/types.h>
14192 struct tm *tp; tp->tm_sec;
14195 if { (eval echo configure:14196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14197 ac_cv_struct_tm=time.h
14199 echo "configure: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14202 ac_cv_struct_tm=sys/time.h
14207 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14208 if test $ac_cv_struct_tm = sys/time.h; then
14209 cat >> confdefs.h <<\EOF
14210 #define TM_IN_SYS_TIME 1
14215 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14216 echo "configure:14217: checking for uid_t in sys/types.h" >&5
14217 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14218 echo $ac_n "(cached) $ac_c" 1>&6
14220 cat > conftest.$ac_ext <<EOF
14221 #line 14222 "configure"
14222 #include "confdefs.h"
14223 #include <sys/types.h>
14225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14226 egrep "uid_t" >/dev/null 2>&1; then
14228 ac_cv_type_uid_t=yes
14231 ac_cv_type_uid_t=no
14237 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14238 if test $ac_cv_type_uid_t = no; then
14239 cat >> confdefs.h <<\EOF
14243 cat >> confdefs.h <<\EOF
14249 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14250 echo "configure:14251: checking for sig_atomic_t" >&5
14251 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14252 echo $ac_n "(cached) $ac_c" 1>&6
14254 cat > conftest.$ac_ext <<EOF
14255 #line 14256 "configure"
14256 #include "confdefs.h"
14257 #include <signal.h>
14259 sig_atomic_t atomic;
14262 if { (eval echo configure:14263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14264 ol_cv_type_sig_atomic_t=yes
14266 echo "configure: failed program was:" >&5
14267 cat conftest.$ac_ext >&5
14269 ol_cv_type_sig_atomic_t=no
14274 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14275 if test $ol_cv_type_sig_atomic_t = no; then
14276 cat >> confdefs.h <<\EOF
14277 #define sig_atomic_t int
14284 # test for pw_gecos in struct passwd
14285 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14286 echo "configure:14287: checking struct passwd for pw_gecos" >&5
14287 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14288 echo $ac_n "(cached) $ac_c" 1>&6
14291 cat > conftest.$ac_ext <<EOF
14292 #line 14293 "configure"
14293 #include "confdefs.h"
14298 pwd.pw_gecos = pwd.pw_name;
14302 if { (eval echo configure:14303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14304 ol_cv_struct_passwd_pw_gecos=yes
14306 echo "configure: failed program was:" >&5
14307 cat conftest.$ac_ext >&5
14309 ol_cv_struct_passwd_pw_gecos=no
14314 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14315 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14316 cat >> confdefs.h <<\EOF
14317 #define HAVE_PW_GECOS 1
14322 # test for pw_passwd in struct passwd
14323 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14324 echo "configure:14325: checking struct passwd for pw_passwd" >&5
14325 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14326 echo $ac_n "(cached) $ac_c" 1>&6
14329 cat > conftest.$ac_ext <<EOF
14330 #line 14331 "configure"
14331 #include "confdefs.h"
14336 pwd.pw_passwd = pwd.pw_name;
14340 if { (eval echo configure:14341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14342 ol_cv_struct_passwd_pw_passwd=yes
14344 echo "configure: failed program was:" >&5
14345 cat conftest.$ac_ext >&5
14347 ol_cv_struct_passwd_pw_passwd=no
14352 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14353 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14354 cat >> confdefs.h <<\EOF
14355 #define HAVE_PW_PASSWD 1
14361 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14362 echo "configure:14363: checking if toupper() requires islower()" >&5
14363 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14364 echo $ac_n "(cached) $ac_c" 1>&6
14367 if test "$cross_compiling" = yes; then
14368 ol_cv_c_upper_lower=safe
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14377 if ('C' == toupper('C'))
14383 if { (eval echo configure:14384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14385 ol_cv_c_upper_lower=no
14387 echo "configure: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14390 ol_cv_c_upper_lower=yes
14397 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14398 if test $ol_cv_c_upper_lower != no ; then
14399 cat >> confdefs.h <<\EOF
14400 #define C_UPPER_LOWER 1
14405 echo $ac_n "checking for working const""... $ac_c" 1>&6
14406 echo "configure:14407: checking for working const" >&5
14407 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14408 echo $ac_n "(cached) $ac_c" 1>&6
14410 cat > conftest.$ac_ext <<EOF
14411 #line 14412 "configure"
14412 #include "confdefs.h"
14416 /* Ultrix mips cc rejects this. */
14417 typedef int charset[2]; const charset x;
14418 /* SunOS 4.1.1 cc rejects this. */
14419 char const *const *ccp;
14421 /* NEC SVR4.0.2 mips cc rejects this. */
14422 struct point {int x, y;};
14423 static struct point const zero = {0,0};
14424 /* AIX XL C 1.02.0.0 rejects this.
14425 It does not let you subtract one const X* pointer from another in an arm
14426 of an if-expression whose if-part is not a constant expression */
14427 const char *g = "string";
14428 ccp = &g + (g ? g-g : 0);
14429 /* HPUX 7.0 cc rejects these. */
14432 ccp = (char const *const *) p;
14433 { /* SCO 3.2v4 cc rejects this. */
14435 char const *s = 0 ? (char *) 0 : (char const *) 0;
14439 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14440 int x[] = {25, 17};
14441 const int *foo = &x[0];
14444 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14445 typedef const int *iptr;
14449 { /* AIX XL C 1.02.0.0 rejects this saying
14450 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14451 struct s { int j; const int *ap[3]; };
14452 struct s *b; b->j = 5;
14454 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14455 const int foo = 10;
14460 if { (eval echo configure:14461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14464 echo "configure: failed program was:" >&5
14465 cat conftest.$ac_ext >&5
14472 echo "$ac_t""$ac_cv_c_const" 1>&6
14473 if test $ac_cv_c_const = no; then
14474 cat >> confdefs.h <<\EOF
14480 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14481 echo "configure:14482: checking if compiler understands volatile" >&5
14482 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14483 echo $ac_n "(cached) $ac_c" 1>&6
14485 cat > conftest.$ac_ext <<EOF
14486 #line 14487 "configure"
14487 #include "confdefs.h"
14490 volatile int a; int * volatile b = x ? &y : &z;
14491 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14495 if { (eval echo configure:14496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14497 ol_cv_c_volatile=yes
14499 echo "configure: failed program was:" >&5
14500 cat conftest.$ac_ext >&5
14502 ol_cv_c_volatile=no
14507 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14508 if test $ol_cv_c_volatile = yes; then
14511 cat >> confdefs.h <<\EOF
14518 if test $cross_compiling = yes ; then
14519 cat >> confdefs.h <<\EOF
14520 #define CROSS_COMPILING 1
14524 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14525 echo "configure:14526: checking whether byte ordering is bigendian" >&5
14526 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
14529 ac_cv_c_bigendian=unknown
14530 # See if sys/param.h defines the BYTE_ORDER macro.
14531 cat > conftest.$ac_ext <<EOF
14532 #line 14533 "configure"
14533 #include "confdefs.h"
14534 #include <sys/types.h>
14535 #include <sys/param.h>
14538 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14539 bogus endian macros
14543 if { (eval echo configure:14544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14545 # It does; now see whether it defined to BIG_ENDIAN or not.
14546 cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14549 #include <sys/types.h>
14550 #include <sys/param.h>
14553 #if BYTE_ORDER != BIG_ENDIAN
14558 if { (eval echo configure:14559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14560 ac_cv_c_bigendian=yes
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14565 ac_cv_c_bigendian=no
14569 echo "configure: failed program was:" >&5
14570 cat conftest.$ac_ext >&5
14573 if test $ac_cv_c_bigendian = unknown; then
14574 if test "$cross_compiling" = yes; then
14575 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14577 cat > conftest.$ac_ext <<EOF
14578 #line 14579 "configure"
14579 #include "confdefs.h"
14581 /* Are we little or big endian? From Harbison&Steele. */
14585 char c[sizeof (long)];
14588 exit (u.c[sizeof (long) - 1] == 1);
14591 if { (eval echo configure:14592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14593 ac_cv_c_bigendian=no
14595 echo "configure: failed program was:" >&5
14596 cat conftest.$ac_ext >&5
14598 ac_cv_c_bigendian=yes
14606 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14607 if test $ac_cv_c_bigendian = yes; then
14608 cat >> confdefs.h <<\EOF
14609 #define WORDS_BIGENDIAN 1
14616 echo $ac_n "checking size of short""... $ac_c" 1>&6
14617 echo "configure:14618: checking size of short" >&5
14618 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14619 echo $ac_n "(cached) $ac_c" 1>&6
14621 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14622 cat > conftest.$ac_ext <<EOF
14623 #line 14624 "configure"
14624 #include "confdefs.h"
14625 #include "confdefs.h"
14626 #include <sys/types.h>
14630 switch (0) case 0: case (sizeof (short) == $ac_size):;
14633 if { (eval echo configure:14634: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14635 ac_cv_sizeof_short=$ac_size
14637 echo "configure: failed program was:" >&5
14638 cat conftest.$ac_ext >&5
14641 if test x$ac_cv_sizeof_short != x ; then break; fi
14646 if test x$ac_cv_sizeof_short = x ; then
14647 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14649 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14650 cat >> confdefs.h <<EOF
14651 #define SIZEOF_SHORT $ac_cv_sizeof_short
14655 echo $ac_n "checking size of int""... $ac_c" 1>&6
14656 echo "configure:14657: checking size of int" >&5
14657 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14658 echo $ac_n "(cached) $ac_c" 1>&6
14660 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14661 cat > conftest.$ac_ext <<EOF
14662 #line 14663 "configure"
14663 #include "confdefs.h"
14664 #include "confdefs.h"
14665 #include <sys/types.h>
14669 switch (0) case 0: case (sizeof (int) == $ac_size):;
14672 if { (eval echo configure:14673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14674 ac_cv_sizeof_int=$ac_size
14676 echo "configure: failed program was:" >&5
14677 cat conftest.$ac_ext >&5
14680 if test x$ac_cv_sizeof_int != x ; then break; fi
14685 if test x$ac_cv_sizeof_int = x ; then
14686 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14688 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14689 cat >> confdefs.h <<EOF
14690 #define SIZEOF_INT $ac_cv_sizeof_int
14694 echo $ac_n "checking size of long""... $ac_c" 1>&6
14695 echo "configure:14696: checking size of long" >&5
14696 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14697 echo $ac_n "(cached) $ac_c" 1>&6
14699 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14700 cat > conftest.$ac_ext <<EOF
14701 #line 14702 "configure"
14702 #include "confdefs.h"
14703 #include "confdefs.h"
14704 #include <sys/types.h>
14708 switch (0) case 0: case (sizeof (long) == $ac_size):;
14711 if { (eval echo configure:14712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14713 ac_cv_sizeof_long=$ac_size
14715 echo "configure: failed program was:" >&5
14716 cat conftest.$ac_ext >&5
14719 if test x$ac_cv_sizeof_long != x ; then break; fi
14724 if test x$ac_cv_sizeof_long = x ; then
14725 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14727 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14728 cat >> confdefs.h <<EOF
14729 #define SIZEOF_LONG $ac_cv_sizeof_long
14734 if test "$ac_cv_sizeof_int" -lt 4 ; then
14735 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14737 cat >> confdefs.h <<\EOF
14738 #define LBER_INT_T long
14742 cat >> confdefs.h <<\EOF
14743 #define LBER_INT_T int
14748 cat >> confdefs.h <<\EOF
14749 #define LBER_LEN_T long
14752 cat >> confdefs.h <<\EOF
14753 #define LBER_SOCKET_T int
14756 cat >> confdefs.h <<\EOF
14757 #define LBER_TAG_T long
14761 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14762 echo "configure:14763: checking for 8-bit clean memcmp" >&5
14763 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14764 echo $ac_n "(cached) $ac_c" 1>&6
14766 if test "$cross_compiling" = yes; then
14767 ac_cv_func_memcmp_clean=no
14769 cat > conftest.$ac_ext <<EOF
14770 #line 14771 "configure"
14771 #include "confdefs.h"
14775 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14776 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14780 if { (eval echo configure:14781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14782 ac_cv_func_memcmp_clean=yes
14784 echo "configure: failed program was:" >&5
14785 cat conftest.$ac_ext >&5
14787 ac_cv_func_memcmp_clean=no
14794 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14795 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14797 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14798 echo "configure:14799: checking for strftime" >&5
14799 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14800 echo $ac_n "(cached) $ac_c" 1>&6
14802 cat > conftest.$ac_ext <<EOF
14803 #line 14804 "configure"
14804 #include "confdefs.h"
14805 /* System header to define __stub macros and hopefully few prototypes,
14806 which can conflict with char strftime(); below. */
14807 #include <assert.h>
14808 /* Override any gcc2 internal prototype to avoid an error. */
14809 /* We use char because int might match the return type of a gcc2
14810 builtin and then its argument prototype would still apply. */
14816 /* The GNU C library defines this for functions which it implements
14817 to always fail with ENOSYS. Some functions are actually named
14818 something starting with __ and the normal name is an alias. */
14819 #if defined (__stub_strftime) || defined (__stub___strftime)
14827 if { (eval echo configure:14828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14829 eval "ac_cv_func_strftime=yes"
14831 echo "configure: failed program was:" >&5
14832 cat conftest.$ac_ext >&5
14834 eval "ac_cv_func_strftime=no"
14839 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14840 echo "$ac_t""yes" 1>&6
14841 cat >> confdefs.h <<\EOF
14842 #define HAVE_STRFTIME 1
14846 echo "$ac_t""no" 1>&6
14847 # strftime is in -lintl on SCO UNIX.
14848 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14849 echo "configure:14850: checking for strftime in -lintl" >&5
14850 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14851 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14852 echo $ac_n "(cached) $ac_c" 1>&6
14854 ac_save_LIBS="$LIBS"
14855 LIBS="-lintl $LIBS"
14856 cat > conftest.$ac_ext <<EOF
14857 #line 14858 "configure"
14858 #include "confdefs.h"
14859 /* Override any gcc2 internal prototype to avoid an error. */
14860 /* We use char because int might match the return type of a gcc2
14861 builtin and then its argument prototype would still apply. */
14868 if { (eval echo configure:14869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14870 eval "ac_cv_lib_$ac_lib_var=yes"
14872 echo "configure: failed program was:" >&5
14873 cat conftest.$ac_ext >&5
14875 eval "ac_cv_lib_$ac_lib_var=no"
14878 LIBS="$ac_save_LIBS"
14881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14882 echo "$ac_t""yes" 1>&6
14883 cat >> confdefs.h <<\EOF
14884 #define HAVE_STRFTIME 1
14887 LIBS="-lintl $LIBS"
14889 echo "$ac_t""no" 1>&6
14895 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14896 echo "configure:14897: checking for inet_aton()" >&5
14897 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14898 echo $ac_n "(cached) $ac_c" 1>&6
14900 cat > conftest.$ac_ext <<EOF
14901 #line 14902 "configure"
14902 #include "confdefs.h"
14904 #ifdef HAVE_SYS_TYPES_H
14905 # include <sys/types.h>
14907 #ifdef HAVE_SYS_SOCKET_H
14908 # include <sys/socket.h>
14909 # ifdef HAVE_SYS_SELECT_H
14910 # include <sys/select.h>
14912 # include <netinet/in.h>
14913 # ifdef HAVE_ARPA_INET_H
14914 # include <arpa/inet.h>
14920 int rc = inet_aton( "255.255.255.255", &in );
14923 if { (eval echo configure:14924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14925 ol_cv_func_inet_aton=yes
14927 echo "configure: failed program was:" >&5
14928 cat conftest.$ac_ext >&5
14930 ol_cv_func_inet_aton=no
14935 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14936 if test $ol_cv_func_inet_aton != no; then
14937 cat >> confdefs.h <<\EOF
14938 #define HAVE_INET_ATON 1
14944 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14945 echo "configure:14946: checking for _spawnlp" >&5
14946 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14947 echo $ac_n "(cached) $ac_c" 1>&6
14949 cat > conftest.$ac_ext <<EOF
14950 #line 14951 "configure"
14951 #include "confdefs.h"
14952 /* System header to define __stub macros and hopefully few prototypes,
14953 which can conflict with char _spawnlp(); below. */
14954 #include <assert.h>
14955 /* Override any gcc2 internal prototype to avoid an error. */
14956 /* We use char because int might match the return type of a gcc2
14957 builtin and then its argument prototype would still apply. */
14963 /* The GNU C library defines this for functions which it implements
14964 to always fail with ENOSYS. Some functions are actually named
14965 something starting with __ and the normal name is an alias. */
14966 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14974 if { (eval echo configure:14975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14976 eval "ac_cv_func__spawnlp=yes"
14978 echo "configure: failed program was:" >&5
14979 cat conftest.$ac_ext >&5
14981 eval "ac_cv_func__spawnlp=no"
14986 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14987 echo "$ac_t""yes" 1>&6
14988 cat >> confdefs.h <<\EOF
14989 #define HAVE_SPAWNLP 1
14993 echo "$ac_t""no" 1>&6
14997 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14998 echo "configure:14999: checking for _snprintf" >&5
14999 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15000 echo $ac_n "(cached) $ac_c" 1>&6
15002 cat > conftest.$ac_ext <<EOF
15003 #line 15004 "configure"
15004 #include "confdefs.h"
15005 /* System header to define __stub macros and hopefully few prototypes,
15006 which can conflict with char _snprintf(); below. */
15007 #include <assert.h>
15008 /* Override any gcc2 internal prototype to avoid an error. */
15009 /* We use char because int might match the return type of a gcc2
15010 builtin and then its argument prototype would still apply. */
15016 /* The GNU C library defines this for functions which it implements
15017 to always fail with ENOSYS. Some functions are actually named
15018 something starting with __ and the normal name is an alias. */
15019 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15027 if { (eval echo configure:15028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15029 eval "ac_cv_func__snprintf=yes"
15031 echo "configure: failed program was:" >&5
15032 cat conftest.$ac_ext >&5
15034 eval "ac_cv_func__snprintf=no"
15039 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15040 echo "$ac_t""yes" 1>&6
15041 ac_cv_func_snprintf=yes
15042 cat >> confdefs.h <<\EOF
15043 #define snprintf _snprintf
15048 echo "$ac_t""no" 1>&6
15052 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15053 echo "configure:15054: checking for _vsnprintf" >&5
15054 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 /* System header to define __stub macros and hopefully few prototypes,
15061 which can conflict with char _vsnprintf(); below. */
15062 #include <assert.h>
15063 /* Override any gcc2 internal prototype to avoid an error. */
15064 /* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15071 /* The GNU C library defines this for functions which it implements
15072 to always fail with ENOSYS. Some functions are actually named
15073 something starting with __ and the normal name is an alias. */
15074 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15084 eval "ac_cv_func__vsnprintf=yes"
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15089 eval "ac_cv_func__vsnprintf=no"
15094 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15095 echo "$ac_t""yes" 1>&6
15096 ac_cv_func_vsnprintf=yes
15097 cat >> confdefs.h <<\EOF
15098 #define vsnprintf _vsnprintf
15103 echo "$ac_t""no" 1>&6
15107 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15108 echo "configure:15109: checking for vprintf" >&5
15109 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15110 echo $ac_n "(cached) $ac_c" 1>&6
15112 cat > conftest.$ac_ext <<EOF
15113 #line 15114 "configure"
15114 #include "confdefs.h"
15115 /* System header to define __stub macros and hopefully few prototypes,
15116 which can conflict with char vprintf(); below. */
15117 #include <assert.h>
15118 /* Override any gcc2 internal prototype to avoid an error. */
15119 /* We use char because int might match the return type of a gcc2
15120 builtin and then its argument prototype would still apply. */
15126 /* The GNU C library defines this for functions which it implements
15127 to always fail with ENOSYS. Some functions are actually named
15128 something starting with __ and the normal name is an alias. */
15129 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15137 if { (eval echo configure:15138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15139 eval "ac_cv_func_vprintf=yes"
15141 echo "configure: failed program was:" >&5
15142 cat conftest.$ac_ext >&5
15144 eval "ac_cv_func_vprintf=no"
15149 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15150 echo "$ac_t""yes" 1>&6
15151 cat >> confdefs.h <<\EOF
15152 #define HAVE_VPRINTF 1
15156 echo "$ac_t""no" 1>&6
15159 if test "$ac_cv_func_vprintf" != yes; then
15160 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15161 echo "configure:15162: checking for _doprnt" >&5
15162 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15163 echo $ac_n "(cached) $ac_c" 1>&6
15165 cat > conftest.$ac_ext <<EOF
15166 #line 15167 "configure"
15167 #include "confdefs.h"
15168 /* System header to define __stub macros and hopefully few prototypes,
15169 which can conflict with char _doprnt(); below. */
15170 #include <assert.h>
15171 /* Override any gcc2 internal prototype to avoid an error. */
15172 /* We use char because int might match the return type of a gcc2
15173 builtin and then its argument prototype would still apply. */
15179 /* The GNU C library defines this for functions which it implements
15180 to always fail with ENOSYS. Some functions are actually named
15181 something starting with __ and the normal name is an alias. */
15182 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15190 if { (eval echo configure:15191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15192 eval "ac_cv_func__doprnt=yes"
15194 echo "configure: failed program was:" >&5
15195 cat conftest.$ac_ext >&5
15197 eval "ac_cv_func__doprnt=no"
15202 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15203 echo "$ac_t""yes" 1>&6
15204 cat >> confdefs.h <<\EOF
15205 #define HAVE_DOPRNT 1
15209 echo "$ac_t""no" 1>&6
15215 if test $ac_cv_func_vprintf = yes ; then
15216 for ac_func in vsnprintf vsprintf
15218 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15219 echo "configure:15220: checking for $ac_func" >&5
15220 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15221 echo $ac_n "(cached) $ac_c" 1>&6
15223 cat > conftest.$ac_ext <<EOF
15224 #line 15225 "configure"
15225 #include "confdefs.h"
15226 /* System header to define __stub macros and hopefully few prototypes,
15227 which can conflict with char $ac_func(); below. */
15228 #include <assert.h>
15229 /* Override any gcc2 internal prototype to avoid an error. */
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15237 /* The GNU C library defines this for functions which it implements
15238 to always fail with ENOSYS. Some functions are actually named
15239 something starting with __ and the normal name is an alias. */
15240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15248 if { (eval echo configure:15249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15250 eval "ac_cv_func_$ac_func=yes"
15252 echo "configure: failed program was:" >&5
15253 cat conftest.$ac_ext >&5
15255 eval "ac_cv_func_$ac_func=no"
15260 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15261 echo "$ac_t""yes" 1>&6
15262 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15263 cat >> confdefs.h <<EOF
15264 #define $ac_tr_func 1
15268 echo "$ac_t""no" 1>&6
15326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15327 echo "configure:15328: checking for $ac_func" >&5
15328 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
15331 cat > conftest.$ac_ext <<EOF
15332 #line 15333 "configure"
15333 #include "confdefs.h"
15334 /* System header to define __stub macros and hopefully few prototypes,
15335 which can conflict with char $ac_func(); below. */
15336 #include <assert.h>
15337 /* Override any gcc2 internal prototype to avoid an error. */
15338 /* We use char because int might match the return type of a gcc2
15339 builtin and then its argument prototype would still apply. */
15345 /* The GNU C library defines this for functions which it implements
15346 to always fail with ENOSYS. Some functions are actually named
15347 something starting with __ and the normal name is an alias. */
15348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15356 if { (eval echo configure:15357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15358 eval "ac_cv_func_$ac_func=yes"
15360 echo "configure: failed program was:" >&5
15361 cat conftest.$ac_ext >&5
15363 eval "ac_cv_func_$ac_func=no"
15368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15369 echo "$ac_t""yes" 1>&6
15370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15371 cat >> confdefs.h <<EOF
15372 #define $ac_tr_func 1
15376 echo "$ac_t""no" 1>&6
15381 for ac_func in getopt tempnam
15383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15384 echo "configure:15385: checking for $ac_func" >&5
15385 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15386 echo $ac_n "(cached) $ac_c" 1>&6
15388 cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func(); below. */
15393 #include <assert.h>
15394 /* Override any gcc2 internal prototype to avoid an error. */
15395 /* We use char because int might match the return type of a gcc2
15396 builtin and then its argument prototype would still apply. */
15402 /* The GNU C library defines this for functions which it implements
15403 to always fail with ENOSYS. Some functions are actually named
15404 something starting with __ and the normal name is an alias. */
15405 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15413 if { (eval echo configure:15414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15415 eval "ac_cv_func_$ac_func=yes"
15417 echo "configure: failed program was:" >&5
15418 cat conftest.$ac_ext >&5
15420 eval "ac_cv_func_$ac_func=no"
15425 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15426 echo "$ac_t""yes" 1>&6
15427 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15428 cat >> confdefs.h <<EOF
15429 #define $ac_tr_func 1
15433 echo "$ac_t""no" 1>&6
15434 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15440 if test "$ac_cv_func_getopt" != yes; then
15441 LIBSRCS="$LIBSRCS getopt.c"
15444 if test "$ac_cv_func_tempnam" != yes; then
15445 LIBSRCS="$LIBSRCS tempnam.c"
15448 # Check Configuration
15449 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15450 echo "configure:15451: checking declaration of sys_errlist" >&5
15451 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15452 echo $ac_n "(cached) $ac_c" 1>&6
15455 cat > conftest.$ac_ext <<EOF
15456 #line 15457 "configure"
15457 #include "confdefs.h"
15460 #include <sys/types.h>
15463 #include <stdlib.h>
15466 char *c = (char *) *sys_errlist
15469 if { (eval echo configure:15470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15471 ol_cv_dcl_sys_errlist=yes
15472 ol_cv_have_sys_errlist=yes
15474 echo "configure: failed program was:" >&5
15475 cat conftest.$ac_ext >&5
15477 ol_cv_dcl_sys_errlist=no
15482 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15484 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15485 if test $ol_cv_dcl_sys_errlist = no ; then
15486 cat >> confdefs.h <<\EOF
15487 #define DECL_SYS_ERRLIST 1
15491 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15492 echo "configure:15493: checking existence of sys_errlist" >&5
15493 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15494 echo $ac_n "(cached) $ac_c" 1>&6
15497 cat > conftest.$ac_ext <<EOF
15498 #line 15499 "configure"
15499 #include "confdefs.h"
15502 char *c = (char *) *sys_errlist
15505 if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15507 ol_cv_have_sys_errlist=yes
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15512 ol_cv_have_sys_errlist=no
15517 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15519 if test $ol_cv_have_sys_errlist = yes ; then
15520 cat >> confdefs.h <<\EOF
15521 #define HAVE_SYS_ERRLIST 1
15528 if test "$ol_enable_debug" != no ; then
15529 cat >> confdefs.h <<\EOF
15530 #define LDAP_DEBUG 1
15534 if test "$ol_enable_syslog" = yes ; then
15535 cat >> confdefs.h <<\EOF
15536 #define LDAP_SYSLOG 1
15540 if test "$ol_enable_libui" = yes ; then
15541 cat >> confdefs.h <<\EOF
15542 #define LDAP_LIBUI 1
15546 if test "$ol_enable_cache" = no ; then
15547 cat >> confdefs.h <<\EOF
15548 #define LDAP_NOCACHE 1
15552 if test "$ol_link_kbind" != no ; then
15553 cat >> confdefs.h <<\EOF
15554 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15558 if test "$ol_enable_proctitle" != no ; then
15559 cat >> confdefs.h <<\EOF
15560 #define LDAP_PROCTITLE 1
15564 if test "$ol_enable_referrals" != no ; then
15565 cat >> confdefs.h <<\EOF
15566 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15570 if test "$ol_enable_local" != no; then
15571 cat >> confdefs.h <<\EOF
15572 #define LDAP_PF_LOCAL 1
15576 if test "$ol_enable_ipv6" != no; then
15577 cat >> confdefs.h <<\EOF
15578 #define LDAP_PF_INET6 1
15582 if test "$ol_enable_cleartext" != no ; then
15583 cat >> confdefs.h <<\EOF
15584 #define SLAPD_CLEARTEXT 1
15588 if test "$ol_enable_crypt" != no ; then
15589 cat >> confdefs.h <<\EOF
15590 #define SLAPD_CRYPT 1
15594 if test "$ol_link_kpasswd" != no ; then
15595 cat >> confdefs.h <<\EOF
15596 #define SLAPD_KPASSWD 1
15600 if test "$ol_link_spasswd" != no ; then
15601 cat >> confdefs.h <<\EOF
15602 #define SLAPD_SPASSWD 1
15606 if test "$ol_enable_multimaster" != no ; then
15607 cat >> confdefs.h <<\EOF
15608 #define SLAPD_MULTIMASTER 1
15612 if test "$ol_enable_phonetic" != no ; then
15613 cat >> confdefs.h <<\EOF
15614 #define SLAPD_PHONETIC 1
15618 if test "$ol_enable_rlookups" != no ; then
15619 cat >> confdefs.h <<\EOF
15620 #define SLAPD_RLOOKUPS 1
15624 if test "$ol_enable_aci" != no ; then
15625 cat >> confdefs.h <<\EOF
15626 #define SLAPD_ACI_ENABLED 1
15631 if test "$ol_link_modules" != no ; then
15632 cat >> confdefs.h <<\EOF
15633 #define SLAPD_MODULES 1
15637 SLAPD_MODULES_LDFLAGS="-dlopen self"
15640 if test "$ol_link_dnssrv" != no ; then
15641 cat >> confdefs.h <<\EOF
15642 #define SLAPD_DNSSRV 1
15647 if test "$ol_with_dnssrv_module" != static ; then
15648 cat >> confdefs.h <<\EOF
15649 #define SLAPD_DNSSRV_DYNAMIC 1
15653 BUILD_DNSSRV_DYNAMIC=shared
15654 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15658 if test "$ol_enable_ldap" != no ; then
15659 cat >> confdefs.h <<\EOF
15660 #define SLAPD_LDAP 1
15665 if test "$ol_with_ldap_module" != static ; then
15666 cat >> confdefs.h <<\EOF
15667 #define SLAPD_LDAP_DYNAMIC 1
15671 BUILD_LDAP_DYNAMIC=shared
15672 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15676 if test "$ol_link_ldbm" != no ; then
15677 cat >> confdefs.h <<\EOF
15678 #define SLAPD_LDBM 1
15683 if test "$ol_with_ldbm_module" != static ; then
15684 cat >> confdefs.h <<\EOF
15685 #define SLAPD_LDBM_DYNAMIC 1
15689 BUILD_LDBM_DYNAMIC=shared
15690 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15694 if test "$ol_enable_passwd" != no ; then
15695 cat >> confdefs.h <<\EOF
15696 #define SLAPD_PASSWD 1
15701 if test "$ol_with_passwd_module" != static ; then
15702 cat >> confdefs.h <<\EOF
15703 #define SLAPD_PASSWD_DYNAMIC 1
15707 BUILD_PASSWD_DYNAMIC=shared
15708 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15712 if test "$ol_enable_shell" != no ; then
15713 cat >> confdefs.h <<\EOF
15714 #define SLAPD_SHELL 1
15719 if test "$ol_with_shell_module" != static ; then
15720 cat >> confdefs.h <<\EOF
15721 #define SLAPD_SHELL_DYNAMIC 1
15725 BUILD_SHELL_DYNAMIC=shared
15726 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15730 if test "$ol_enable_sql" != no ; then
15731 cat >> confdefs.h <<\EOF
15732 #define SLAPD_SQL 1
15737 if test "$ol_with_sql_module" != static; then
15738 cat >> confdefs.h <<\EOF
15739 #define SLAPD_SQL_DYNAMIC 1
15743 BUILD_SQL_DYNAMIC=shared
15744 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15748 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15749 $BUILD_SLAPD = yes ; then
15754 if test "$LINK_BINS_DYNAMIC" = yes; then
15756 LT_LIB_LINKAGE=shared
15759 LT_LIB_LINKAGE=static
15762 if test "$ac_cv_mingw32" = yes ; then
15822 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15825 # Let make expand exec_prefix.
15826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15828 # Any assignment to VPATH causes Sun make to only execute
15829 # the first set of double-colon rules, so remove it if not needed.
15830 # If there is a colon in the path, we need to keep it.
15831 if test "x$srcdir" = x.; then
15832 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15835 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15837 DEFS=-DHAVE_CONFIG_H
15839 # Without the "./", some shells look in PATH for config.status.
15840 : ${CONFIG_STATUS=./config.status}
15842 echo creating $CONFIG_STATUS
15843 rm -f $CONFIG_STATUS
15844 cat > $CONFIG_STATUS <<EOF
15846 # Generated automatically by configure.
15847 # Run this file to recreate the current configuration.
15848 # This directory was configured as follows,
15849 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15851 # $0 $ac_configure_args
15853 # Compiler output produced by configure, useful for debugging
15854 # configure, is in ./config.log if it exists.
15856 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15859 case "\$ac_option" in
15860 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15861 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15862 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15863 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15864 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15866 -help | --help | --hel | --he | --h)
15867 echo "\$ac_cs_usage"; exit 0 ;;
15868 *) echo "\$ac_cs_usage"; exit 1 ;;
15872 ac_given_srcdir=$srcdir
15873 ac_given_INSTALL="$INSTALL"
15875 trap 'rm -fr `echo "\
15876 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15877 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15878 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15879 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15880 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15881 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15882 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15883 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15884 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15885 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15886 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15887 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15888 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15889 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15890 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
15891 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15892 include/Makefile:build/top.mk:include/Makefile.in \
15893 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15894 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15895 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15896 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15897 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15898 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15899 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15900 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15901 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15902 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15903 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15904 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
15905 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15906 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15907 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15908 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15909 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15910 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15911 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15912 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15913 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15914 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15915 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15916 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15917 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15918 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15920 cat >> $CONFIG_STATUS <<EOF
15922 # Protect against being on the right side of a sed subst in config.status.
15923 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15924 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15928 s%@CFLAGS@%$CFLAGS%g
15929 s%@CPPFLAGS@%$CPPFLAGS%g
15930 s%@CXXFLAGS@%$CXXFLAGS%g
15931 s%@FFLAGS@%$FFLAGS%g
15933 s%@LDFLAGS@%$LDFLAGS%g
15935 s%@exec_prefix@%$exec_prefix%g
15936 s%@prefix@%$prefix%g
15937 s%@program_transform_name@%$program_transform_name%g
15938 s%@bindir@%$bindir%g
15939 s%@sbindir@%$sbindir%g
15940 s%@libexecdir@%$libexecdir%g
15941 s%@datadir@%$datadir%g
15942 s%@sysconfdir@%$sysconfdir%g
15943 s%@sharedstatedir@%$sharedstatedir%g
15944 s%@localstatedir@%$localstatedir%g
15945 s%@libdir@%$libdir%g
15946 s%@includedir@%$includedir%g
15947 s%@oldincludedir@%$oldincludedir%g
15948 s%@infodir@%$infodir%g
15949 s%@mandir@%$mandir%g
15951 s%@host_alias@%$host_alias%g
15952 s%@host_cpu@%$host_cpu%g
15953 s%@host_vendor@%$host_vendor%g
15954 s%@host_os@%$host_os%g
15955 s%@target@%$target%g
15956 s%@target_alias@%$target_alias%g
15957 s%@target_cpu@%$target_cpu%g
15958 s%@target_vendor@%$target_vendor%g
15959 s%@target_os@%$target_os%g
15961 s%@build_alias@%$build_alias%g
15962 s%@build_cpu@%$build_cpu%g
15963 s%@build_vendor@%$build_vendor%g
15964 s%@build_os@%$build_os%g
15965 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15966 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15967 s%@INSTALL_DATA@%$INSTALL_DATA%g
15968 s%@PACKAGE@%$PACKAGE%g
15969 s%@VERSION@%$VERSION%g
15970 s%@ACLOCAL@%$ACLOCAL%g
15971 s%@AUTOCONF@%$AUTOCONF%g
15972 s%@AUTOMAKE@%$AUTOMAKE%g
15973 s%@AUTOHEADER@%$AUTOHEADER%g
15974 s%@MAKEINFO@%$MAKEINFO%g
15975 s%@install_sh@%$install_sh%g
15978 s%@AMTARFLAGS@%$AMTARFLAGS%g
15979 s%@SET_MAKE@%$SET_MAKE%g
15980 s%@top_builddir@%$top_builddir%g
15981 s%@ldap_subdir@%$ldap_subdir%g
15983 s%@RANLIB@%$RANLIB%g
15985 s%@DLLTOOL@%$DLLTOOL%g
15987 s%@OBJDUMP@%$OBJDUMP%g
15988 s%@LIBTOOL@%$LIBTOOL%g
15990 s%@SENDMAIL@%$SENDMAIL%g
15991 s%@EDITOR@%$EDITOR%g
15992 s%@FINGER@%$FINGER%g
15994 s%@EXEEXT@%$EXEEXT%g
15995 s%@OBJEXT@%$OBJEXT%g
15996 s%@OL_MKDEP@%$OL_MKDEP%g
15997 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15998 s%@LIBOBJS@%$LIBOBJS%g
15999 s%@LIBSRCS@%$LIBSRCS%g
16001 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16002 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16003 s%@DYN_EXT@%$DYN_EXT%g
16004 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16005 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16006 s%@BUILD_LDAP@%$BUILD_LDAP%g
16007 s%@BUILD_LDBM@%$BUILD_LDBM%g
16008 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16009 s%@BUILD_SHELL@%$BUILD_SHELL%g
16010 s%@BUILD_SQL@%$BUILD_SQL%g
16011 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16012 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16013 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16014 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16015 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16016 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16017 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16018 s%@LDAP_LIBS@%$LDAP_LIBS%g
16019 s%@LDIF_LIBS@%$LDIF_LIBS%g
16020 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16021 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16022 s%@LDBM_LIBS@%$LDBM_LIBS%g
16023 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16024 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16025 s%@WRAP_LIBS@%$WRAP_LIBS%g
16026 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16027 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16028 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16029 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16030 s%@KRB4_LIBS@%$KRB4_LIBS%g
16031 s%@KRB5_LIBS@%$KRB5_LIBS%g
16032 s%@READLINE_LIBS@%$READLINE_LIBS%g
16033 s%@SASL_LIBS@%$SASL_LIBS%g
16034 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16035 s%@TLS_LIBS@%$TLS_LIBS%g
16036 s%@MODULES_LIBS@%$MODULES_LIBS%g
16037 s%@AUTH_LIBS@%$AUTH_LIBS%g
16038 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16039 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16040 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16045 cat >> $CONFIG_STATUS <<\EOF
16047 # Split the substitutions into bite-sized pieces for seds with
16048 # small command number limits, like on Digital OSF/1 and HP-UX.
16049 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16050 ac_file=1 # Number of current file.
16051 ac_beg=1 # First line for current file.
16052 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16055 while $ac_more_lines; do
16056 if test $ac_beg -gt 1; then
16057 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16059 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16061 if test ! -s conftest.s$ac_file; then
16062 ac_more_lines=false
16063 rm -f conftest.s$ac_file
16065 if test -z "$ac_sed_cmds"; then
16066 ac_sed_cmds="sed -f conftest.s$ac_file"
16068 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16070 ac_file=`expr $ac_file + 1`
16072 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16075 if test -z "$ac_sed_cmds"; then
16080 cat >> $CONFIG_STATUS <<EOF
16082 CONFIG_FILES=\${CONFIG_FILES-"\
16083 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16084 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16085 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16086 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16087 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16088 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16089 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16090 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16091 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16092 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16093 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16094 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16095 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16096 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16097 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16098 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16099 include/Makefile:build/top.mk:include/Makefile.in \
16100 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16101 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16102 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16103 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16104 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16105 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16106 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16107 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16108 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16109 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16110 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16111 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16112 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16113 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16114 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16115 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16116 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16117 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16118 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16119 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16120 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16121 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16122 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16123 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16124 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16127 cat >> $CONFIG_STATUS <<\EOF
16128 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16129 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16131 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16132 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16133 *) ac_file_in="${ac_file}.in" ;;
16136 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16138 # Remove last slash and all that follows it. Not all systems have dirname.
16139 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16140 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16141 # The file is in a subdirectory.
16142 test ! -d "$ac_dir" && mkdir "$ac_dir"
16143 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16144 # A "../" for each directory in $ac_dir_suffix.
16145 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16147 ac_dir_suffix= ac_dots=
16150 case "$ac_given_srcdir" in
16152 if test -z "$ac_dots"; then top_srcdir=.
16153 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16154 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16155 *) # Relative path.
16156 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16157 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16160 case "$ac_given_INSTALL" in
16161 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16162 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16165 echo creating "$ac_file"
16167 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16169 *[Mm]akefile*) ac_comsub="1i\\
16170 # $configure_input" ;;
16174 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16176 s%@configure_input@%$configure_input%g
16177 s%@srcdir@%$srcdir%g
16178 s%@top_srcdir@%$top_srcdir%g
16179 s%@INSTALL@%$INSTALL%g
16180 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16184 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16185 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16187 # ac_d sets the value in "#define NAME VALUE" lines.
16188 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16189 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16192 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16193 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16194 ac_uB='\([ ]\)%\1#\2define\3'
16197 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16198 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16199 ac_eB='$%\1#\2define\3'
16203 if test "${CONFIG_HEADERS+set}" != set; then
16205 cat >> $CONFIG_STATUS <<EOF
16206 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16208 cat >> $CONFIG_STATUS <<\EOF
16210 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16211 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16213 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16214 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16215 *) ac_file_in="${ac_file}.in" ;;
16218 echo creating $ac_file
16220 rm -f conftest.frag conftest.in conftest.out
16221 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16222 cat $ac_file_inputs > conftest.in
16226 # Transform confdefs.h into a sed script conftest.vals that substitutes
16227 # the proper values into config.h.in to produce config.h. And first:
16228 # Protect against being on the right side of a sed subst in config.status.
16229 # Protect against being in an unquoted here document in config.status.
16230 rm -f conftest.vals
16231 cat > conftest.hdr <<\EOF
16234 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16238 sed -n -f conftest.hdr confdefs.h > conftest.vals
16241 # This sed command replaces #undef with comments. This is necessary, for
16242 # example, in the case of _POSIX_SOURCE, which is predefined and required
16243 # on some systems where configure will not decide to define it.
16244 cat >> conftest.vals <<\EOF
16245 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16248 # Break up conftest.vals because some shells have a limit on
16249 # the size of here documents, and old seds have small limits too.
16251 rm -f conftest.tail
16254 ac_lines=`grep -c . conftest.vals`
16255 # grep -c gives empty output for an empty file on some AIX systems.
16256 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16257 # Write a limited-size here document to conftest.frag.
16258 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16259 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16261 sed -f conftest.frag conftest.in > conftest.out
16263 mv conftest.out conftest.in
16264 ' >> $CONFIG_STATUS
16265 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16266 rm -f conftest.vals
16267 mv conftest.tail conftest.vals
16269 rm -f conftest.vals
16271 cat >> $CONFIG_STATUS <<\EOF
16272 rm -f conftest.frag conftest.h
16273 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16274 cat conftest.in >> conftest.h
16276 if cmp -s $ac_file conftest.h 2>/dev/null; then
16277 echo "$ac_file is unchanged"
16280 # Remove last slash and all that follows it. Not all systems have dirname.
16281 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16282 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16283 # The file is in a subdirectory.
16284 test ! -d "$ac_dir" && mkdir "$ac_dir"
16287 mv conftest.h $ac_file
16292 cat >> $CONFIG_STATUS <<EOF
16295 cat >> $CONFIG_STATUS <<\EOF
16298 echo Please \"make depend\" to build dependencies
16302 chmod +x $CONFIG_STATUS
16303 rm -fr confdefs* $ac_clean_files
16304 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1