3 # from OpenLDAP: pkg/ldap/configure.in,v 1.313 2000/06/09 15:01:08 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
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-cldap enable connectionless ldap (no)"
44 --enable-ipv6 enable IPv6 support (auto)"
46 --enable-unix enable UNIX domain socket support (auto)"
48 --enable-x-compile enable cross compiling (no)"
50 --with-cyrus-sasl with Cyrus SASL support (auto)"
52 --with-fetch with fetch URL support (auto)"
54 --with-kerberos with support (auto)"
56 --with-readline with readline support (auto)"
58 --with-threads use threads (auto)"
60 --with-tls with TLS/SSL support (auto)"
62 --with-yielding-select with implicitly yielding select (auto)"
64 SLAPD (Standalone LDAP Daemon) Options:"
66 --enable-slapd enable building slapd (yes)"
68 --enable-cleartext enable cleartext passwords (yes)"
70 --enable-crypt enable crypt(3) passwords (auto)"
72 --enable-kpasswd enable kerberos password verification (no)"
74 --enable-spasswd enable (Cyrus) SASL password verification (no)"
76 --enable-modules enable dynamic module support (no)"
78 --enable-multimaster enable multimaster replication (no)"
80 --enable-phonetic enable phonetic/soundex (no)"
82 --enable-quipu build quipu migration tools (no)"
84 --enable-rlookups enable reverse lookups (auto)"
86 --enable-aci enable per-object ACIs (no)"
88 --enable-wrappers enable tcp wrapper support (no)"
90 --enable-dynamic enable linking built binaries with dynamic libs (no)"
92 --enable-dnssrv enable dnssrv backend (no)"
94 --with-dnssrv-module module type (static)"
96 --enable-ldap enable ldap backend (no)"
98 --with-ldap-module module type (static)"
100 --enable-ldbm enable ldbm backend (yes)"
102 --with-ldbm-api use LDBM API (auto)"
104 --with-ldbm-module module type (static)"
106 --with-ldbm-type use LDBM type (auto)"
108 --enable-passwd enable passwd backend (no)"
110 --with-passwd-module module type (static)"
112 --enable-perl enable perl backend (no)"
114 --with-perl-module module type (static)"
116 --enable-shell enable shell backend (no)"
118 --with-shell-module module type (static)"
120 --enable-sql enable sql backend (no)"
122 --with-sql-module module type (static)"
124 --enable-tcl enable tcl backend (no)"
126 --with-tcl-module module type (static)"
128 SLURPD (Replication Daemon) Options:"
130 --enable-slurpd enable building slurpd (auto)"
132 Library Generation & Linking Options"
134 --enable-static[=PKGS] build static libraries [default=yes]"
136 --enable-shared[=PKGS] build shared libraries [default=yes]"
138 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
140 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
142 --disable-libtool-lock avoid locking (might break parallel builds)"
144 # Initialize some variables set by options.
145 # The variables have the same names as the options, with
146 # dashes changed to underlines.
148 cache_file=./config.cache
157 program_transform_name=s,x,x,
165 bindir='${exec_prefix}/bin'
166 sbindir='${exec_prefix}/sbin'
167 libexecdir='${exec_prefix}/libexec'
168 datadir='${prefix}/share'
169 sysconfdir='${prefix}/etc'
170 sharedstatedir='${prefix}/com'
171 localstatedir='${prefix}/var'
172 libdir='${exec_prefix}/lib'
173 includedir='${prefix}/include'
174 oldincludedir='/usr/include'
175 infodir='${prefix}/info'
176 mandir='${prefix}/man'
178 # Initialize some other variables.
181 SHELL=${CONFIG_SHELL-/bin/sh}
182 # Maximum number of lines to put in a shell here document.
189 # If the previous option needs an argument, assign it.
190 if test -n "$ac_prev"; then
191 eval "$ac_prev=\$ac_option"
197 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
201 # Accept the important Cygnus configure options, so we can diagnose typos.
205 -bindir | --bindir | --bindi | --bind | --bin | --bi)
207 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
208 bindir="$ac_optarg" ;;
210 -build | --build | --buil | --bui | --bu)
212 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
213 build="$ac_optarg" ;;
215 -cache-file | --cache-file | --cache-fil | --cache-fi \
216 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
217 ac_prev=cache_file ;;
218 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
219 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
220 cache_file="$ac_optarg" ;;
222 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
224 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
226 datadir="$ac_optarg" ;;
228 -disable-* | --disable-*)
229 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
230 # Reject names that are not valid shell variable names.
231 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
232 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
234 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}=no" ;;
237 -enable-* | --enable-*)
238 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
239 # Reject names that are not valid shell variable names.
240 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
241 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
243 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
248 eval "enable_${ac_feature}='$ac_optarg'" ;;
250 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
251 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
252 | --exec | --exe | --ex)
253 ac_prev=exec_prefix ;;
254 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
255 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
256 | --exec=* | --exe=* | --ex=*)
257 exec_prefix="$ac_optarg" ;;
259 -gas | --gas | --ga | --g)
260 # Obsolete; use --with-gas.
263 -help | --help | --hel | --he)
264 # Omit some internal or obsolete options to make the list less imposing.
265 # This message is too long to be a string in the A/UX 3.1 sh.
267 Usage: configure [options] [host]
268 Options: [defaults in brackets after descriptions]
270 --cache-file=FILE cache test results in FILE
271 --help print this message
272 --no-create do not create output files
273 --quiet, --silent do not print \`checking...' messages
274 --version print the version of autoconf that created configure
275 Directory and file names:
276 --prefix=PREFIX install architecture-independent files in PREFIX
278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
280 --bindir=DIR user executables in DIR [EPREFIX/bin]
281 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
282 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
283 --datadir=DIR read-only architecture-independent data in DIR
285 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
286 --sharedstatedir=DIR modifiable architecture-independent data in DIR
288 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
289 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
290 --includedir=DIR C header files in DIR [PREFIX/include]
291 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
292 --infodir=DIR info documentation in DIR [PREFIX/info]
293 --mandir=DIR man documentation in DIR [PREFIX/man]
294 --srcdir=DIR find the sources in DIR [configure dir or ..]
295 --program-prefix=PREFIX prepend PREFIX to installed program names
296 --program-suffix=SUFFIX append SUFFIX to installed program names
297 --program-transform-name=PROGRAM
298 run sed PROGRAM on installed program names
302 --build=BUILD configure for building on BUILD [BUILD=HOST]
303 --host=HOST configure for HOST [guessed]
304 --target=TARGET configure for TARGET [TARGET=HOST]
305 Features and packages:
306 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
307 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
310 --x-includes=DIR X include files are in DIR
311 --x-libraries=DIR X library files are in DIR
313 if test -n "$ac_help"; then
314 echo "--enable and --with options recognized:$ac_help"
318 -host | --host | --hos | --ho)
320 -host=* | --host=* | --hos=* | --ho=*)
323 -includedir | --includedir | --includedi | --included | --include \
324 | --includ | --inclu | --incl | --inc)
325 ac_prev=includedir ;;
326 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
327 | --includ=* | --inclu=* | --incl=* | --inc=*)
328 includedir="$ac_optarg" ;;
330 -infodir | --infodir | --infodi | --infod | --info | --inf)
332 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
333 infodir="$ac_optarg" ;;
335 -libdir | --libdir | --libdi | --libd)
337 -libdir=* | --libdir=* | --libdi=* | --libd=*)
338 libdir="$ac_optarg" ;;
340 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
341 | --libexe | --libex | --libe)
342 ac_prev=libexecdir ;;
343 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
344 | --libexe=* | --libex=* | --libe=*)
345 libexecdir="$ac_optarg" ;;
347 -localstatedir | --localstatedir | --localstatedi | --localstated \
348 | --localstate | --localstat | --localsta | --localst \
349 | --locals | --local | --loca | --loc | --lo)
350 ac_prev=localstatedir ;;
351 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
352 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
353 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
354 localstatedir="$ac_optarg" ;;
356 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
358 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
359 mandir="$ac_optarg" ;;
362 # Obsolete; use --without-fp.
365 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
369 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
370 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
373 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
374 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
375 | --oldin | --oldi | --old | --ol | --o)
376 ac_prev=oldincludedir ;;
377 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
378 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
379 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
380 oldincludedir="$ac_optarg" ;;
382 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
384 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
385 prefix="$ac_optarg" ;;
387 -program-prefix | --program-prefix | --program-prefi | --program-pref \
388 | --program-pre | --program-pr | --program-p)
389 ac_prev=program_prefix ;;
390 -program-prefix=* | --program-prefix=* | --program-prefi=* \
391 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
392 program_prefix="$ac_optarg" ;;
394 -program-suffix | --program-suffix | --program-suffi | --program-suff \
395 | --program-suf | --program-su | --program-s)
396 ac_prev=program_suffix ;;
397 -program-suffix=* | --program-suffix=* | --program-suffi=* \
398 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
399 program_suffix="$ac_optarg" ;;
401 -program-transform-name | --program-transform-name \
402 | --program-transform-nam | --program-transform-na \
403 | --program-transform-n | --program-transform- \
404 | --program-transform | --program-transfor \
405 | --program-transfo | --program-transf \
406 | --program-trans | --program-tran \
407 | --progr-tra | --program-tr | --program-t)
408 ac_prev=program_transform_name ;;
409 -program-transform-name=* | --program-transform-name=* \
410 | --program-transform-nam=* | --program-transform-na=* \
411 | --program-transform-n=* | --program-transform-=* \
412 | --program-transform=* | --program-transfor=* \
413 | --program-transfo=* | --program-transf=* \
414 | --program-trans=* | --program-tran=* \
415 | --progr-tra=* | --program-tr=* | --program-t=*)
416 program_transform_name="$ac_optarg" ;;
418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
419 | -silent | --silent | --silen | --sile | --sil)
422 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
424 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
426 sbindir="$ac_optarg" ;;
428 -sharedstatedir | --sharedstatedir | --sharedstatedi \
429 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
430 | --sharedst | --shareds | --shared | --share | --shar \
432 ac_prev=sharedstatedir ;;
433 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
434 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
435 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
437 sharedstatedir="$ac_optarg" ;;
439 -site | --site | --sit)
441 -site=* | --site=* | --sit=*)
444 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
446 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
447 srcdir="$ac_optarg" ;;
449 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
450 | --syscon | --sysco | --sysc | --sys | --sy)
451 ac_prev=sysconfdir ;;
452 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
453 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
454 sysconfdir="$ac_optarg" ;;
456 -target | --target | --targe | --targ | --tar | --ta | --t)
458 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
459 target="$ac_optarg" ;;
461 -v | -verbose | --verbose | --verbos | --verbo | --verb)
464 -version | --version | --versio | --versi | --vers)
465 echo "configure generated by autoconf version 2.13.1"
469 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
479 eval "with_${ac_package}='$ac_optarg'" ;;
481 -without-* | --without-*)
482 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
483 # Reject names that are not valid shell variable names.
484 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
485 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
487 ac_package=`echo $ac_package| sed 's/-/_/g'`
488 eval "with_${ac_package}=no" ;;
491 # Obsolete; use --with-x.
494 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
495 | --x-incl | --x-inc | --x-in | --x-i)
496 ac_prev=x_includes ;;
497 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
498 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
499 x_includes="$ac_optarg" ;;
501 -x-libraries | --x-libraries | --x-librarie | --x-librari \
502 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
503 ac_prev=x_libraries ;;
504 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
505 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
506 x_libraries="$ac_optarg" ;;
508 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
512 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
513 echo "configure: warning: $ac_option: invalid host type" 1>&2
515 if test "x$nonopt" != xNONE; then
516 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
524 if test -n "$ac_prev"; then
525 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
528 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
530 # File descriptor usage:
533 # 2 errors and warnings
534 # 3 some systems may open it to /dev/tty
535 # 4 used on the Kubota Titan
536 # 6 checking for... messages and results
537 # 5 compiler messages saved in config.log
538 if test "$silent" = yes; then
546 This file contains any messages produced by compilers while
547 running configure, to aid debugging if configure makes a mistake.
550 # Strip out --no-create and --no-recursion so they do not pile up.
551 # Also quote any args containing shell metacharacters.
556 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
557 | --no-cr | --no-c) ;;
558 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
559 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
560 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
561 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
562 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
567 # Only set these to C if already set. These must not be set unconditionally
568 # because not all systems understand e.g. LANG=C (notably SCO).
569 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
570 # Non-C LC_CTYPE values break the ctype check.
571 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
572 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
573 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
574 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
576 # confdefs.h avoids OS command line length limits that DEFS can exceed.
577 rm -rf conftest* confdefs.h
578 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
581 # A filename unique to this package, relative to the directory that
582 # configure is in, which we can look for to find out if srcdir is correct.
583 ac_unique_file=build/version
585 # Find the source files, if location was not specified.
586 if test -z "$srcdir"; then
587 ac_srcdir_defaulted=yes
588 # Try the directory containing this script, then its parent.
590 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
591 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
593 if test ! -r $srcdir/$ac_unique_file; then
597 ac_srcdir_defaulted=no
599 if test ! -r $srcdir/$ac_unique_file; then
600 if test "$ac_srcdir_defaulted" = yes; then
601 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
603 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
606 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
608 # Prefer explicitly selected file to automatically selected ones.
609 if test -z "$CONFIG_SITE"; then
610 if test "x$prefix" != xNONE; then
611 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
613 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
616 for ac_site_file in $CONFIG_SITE; do
617 if test -r "$ac_site_file"; then
618 echo "loading site script $ac_site_file"
625 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
626 ac_cpp='$CPP $CPPFLAGS'
627 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
628 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
629 cross_compiling=$ac_cv_prog_cc_cross
633 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
634 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
635 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
642 ac_n= ac_c='\c' ac_t=
646 # set unset (borrowed from autoconf 2.14a)
647 if (unset FOO) >/dev/null 2>&1; then
653 $ol_unset CDPATH || test "${CDPATH+set}" != set || CDPATH=: && export CDPATH
656 for ac_dir in build $srcdir/build; do
657 if test -f $ac_dir/install-sh; then
659 ac_install_sh="$ac_aux_dir/install-sh -c"
661 elif test -f $ac_dir/install.sh; then
663 ac_install_sh="$ac_aux_dir/install.sh -c"
665 elif test -f $ac_dir/shtool; then
667 ac_install_sh="$ac_aux_dir/shtool install -c"
671 if test -z "$ac_aux_dir"; then
672 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
674 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
675 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
676 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
678 OL_VERSION=`cat $ac_aux_dir/version`
679 if test -z "$OL_VERSION"; then
680 { echo "configure: error: could not determine version" 1>&2; exit 1; }
683 echo "Configuring OpenLDAP $OL_VERSION ..."
686 echo $ac_n "checking host system type""... $ac_c" 1>&6
687 echo "configure:688: checking host system type" >&5
688 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
690 # Make sure we can run config.sub.
691 if $ac_config_sub sun4 >/dev/null 2>&1; then :
692 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
695 ac_cv_host_alias=$host
696 case "$ac_cv_host_alias" in
700 if ac_cv_host_alias=`$ac_config_guess`; then :
701 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
703 *) ac_cv_host_alias=$nonopt ;;
707 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
708 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
709 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
710 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
712 echo $ac_n "(cached) $ac_c" 1>&6
715 echo "$ac_t""$ac_cv_host" 1>&6
718 host_alias=$ac_cv_host_alias
719 host_cpu=$ac_cv_host_cpu
720 host_vendor=$ac_cv_host_vendor
721 host_os=$ac_cv_host_os
727 echo $ac_n "checking target system type""... $ac_c" 1>&6
728 echo "configure:729: checking target system type" >&5
729 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
731 # Make sure we can run config.sub.
732 if $ac_config_sub sun4 >/dev/null 2>&1; then :
733 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
736 ac_cv_target_alias=$target
737 case "$ac_cv_target_alias" in
741 ac_cv_target_alias=$host_alias ;;
743 *) ac_cv_target_alias=$nonopt ;;
747 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
748 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
749 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
750 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
752 echo $ac_n "(cached) $ac_c" 1>&6
755 echo "$ac_t""$ac_cv_target" 1>&6
758 target_alias=$ac_cv_target_alias
759 target_cpu=$ac_cv_target_cpu
760 target_vendor=$ac_cv_target_vendor
761 target_os=$ac_cv_target_os
767 echo $ac_n "checking build system type""... $ac_c" 1>&6
768 echo "configure:769: checking build system type" >&5
769 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
771 # Make sure we can run config.sub.
772 if $ac_config_sub sun4 >/dev/null 2>&1; then :
773 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
776 ac_cv_build_alias=$build
777 case "$ac_cv_build_alias" in
781 ac_cv_build_alias=$host_alias ;;
783 *) ac_cv_build_alias=$nonopt ;;
787 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
788 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
789 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
790 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
792 echo $ac_n "(cached) $ac_c" 1>&6
795 echo "$ac_t""$ac_cv_build" 1>&6
798 build_alias=$ac_cv_build_alias
799 build_cpu=$ac_cv_build_cpu
800 build_vendor=$ac_cv_build_vendor
801 build_os=$ac_cv_build_os
807 # Do some error checking and defaulting for the host and target type.
809 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
812 # 1. You are not allowed to specify --host, --target, and nonopt at the
814 # 2. Host defaults to nonopt.
815 # 3. If nonopt is not specified, then host defaults to the current host,
816 # as determined by config.guess.
817 # 4. Target and build default to nonopt.
818 # 5. If nonopt is not specified, then target and build default to host.
820 # The aliases save the names the user supplied, while $host etc.
821 # will get canonicalized.
822 case $host---$target---$nonopt in
823 NONE---*---* | *---NONE---* | *---*---NONE) ;;
824 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
827 test "$host_alias" != "$target_alias" &&
828 test "$program_prefix$program_suffix$program_transform_name" = \
830 program_prefix=${target_alias}-
833 # Find a good install program. We prefer a C program (faster),
834 # so one script is as good as another. But avoid the broken or
835 # incompatible versions:
836 # SysV /etc/install, /usr/sbin/install
837 # SunOS /usr/etc/install
840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
843 # ./install, which can be erroneously created by make from ./install.sh.
844 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
845 echo "configure:846: checking for a BSD compatible install" >&5
846 if test -z "$INSTALL"; then
847 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
848 echo $ac_n "(cached) $ac_c" 1>&6
850 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
851 for ac_dir in $PATH; do
852 # Account for people who put trailing slashes in PATH elements.
854 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
856 # OSF1 and SCO ODT 3.0 have their own names for install.
857 # Don't use installbsd from OSF since it installs stuff as root
859 for ac_prog in ginstall scoinst install; do
860 if test -f $ac_dir/$ac_prog; then
861 if test $ac_prog = install &&
862 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
863 # AIX install. It has an incompatible calling convention.
865 elif test $ac_prog = install &&
866 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
867 # program-specific install script used by HP pwplus--don't use.
870 ac_cv_path_install="$ac_dir/$ac_prog -c"
881 if test "${ac_cv_path_install+set}" = set; then
882 INSTALL="$ac_cv_path_install"
884 # As a last resort, use the slow shell script. We don't cache a
885 # path for INSTALL within a source directory, because that will
886 # break other packages using the cache if that directory is
887 # removed, or if the path is relative.
888 INSTALL="$ac_install_sh"
891 echo "$ac_t""$INSTALL" 1>&6
893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
894 # It thinks the first close brace ends the variable substitution.
895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
901 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
902 echo "configure:903: checking whether build environment is sane" >&5
905 echo timestamp > conftestfile
906 # Do `set' in a subshell so we don't clobber the current shell's
907 # arguments. Must try -L first in case configure is actually a
908 # symlink; some systems play weird games with the mod time of symlinks
909 # (eg FreeBSD returns the mod time of the symlink's containing
912 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
913 if test "$*" = "X"; then
915 set X `ls -t $srcdir/configure conftestfile`
917 if test "$*" != "X $srcdir/configure conftestfile" \
918 && test "$*" != "X conftestfile $srcdir/configure"; then
920 # If neither matched, then we have a broken ls. This can happen
921 # if, for instance, CONFIG_SHELL is bash and it inherits a
922 # broken ls alias from the environment. This has actually
923 # happened. Such a system could not be considered "sane".
924 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
925 alias in your environment" 1>&2; exit 1; }
928 test "$2" = conftestfile
934 { echo "configure: error: newly created file is older than distributed files!
935 Check your system clock" 1>&2; exit 1; }
938 echo "$ac_t""yes" 1>&6
939 if test "$program_transform_name" = s,x,x,; then
940 program_transform_name=
942 # Double any \ or $. echo might interpret backslashes.
943 cat <<\EOF_SED > conftestsed
944 s,\\,\\\\,g; s,\$,$$,g
946 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
949 test "$program_prefix" != NONE &&
950 program_transform_name="s,^,${program_prefix},;$program_transform_name"
951 # Use a double $ so make ignores it.
952 test "$program_suffix" != NONE &&
953 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
955 # sed with no file args requires a program.
956 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
958 for ac_prog in mawk gawk nawk awk
960 # Extract the first word of "$ac_prog", so it can be a program name with args.
961 set dummy $ac_prog; ac_word=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$AWK"; then
968 ac_cv_prog_AWK="$AWK" # Let the user override the test.
970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
972 for ac_dir in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir=.
974 if test -f $ac_dir/$ac_word; then
975 ac_cv_prog_AWK="$ac_prog"
982 AWK="$ac_cv_prog_AWK"
983 if test -n "$AWK"; then
984 echo "$ac_t""$AWK" 1>&6
986 echo "$ac_t""no" 1>&6
989 test -n "$AWK" && break
992 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
993 echo "configure:994: checking whether ${MAKE-make} sets \${MAKE}" >&5
994 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
995 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
998 cat > conftestmake <<\EOF
1000 @echo 'ac_maketemp="${MAKE}"'
1002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1003 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1004 if test -n "$ac_maketemp"; then
1005 eval ac_cv_prog_make_${ac_make}_set=yes
1007 eval ac_cv_prog_make_${ac_make}_set=no
1011 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1012 echo "$ac_t""yes" 1>&6
1015 echo "$ac_t""no" 1>&6
1016 SET_MAKE="MAKE=${MAKE-make}"
1025 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1026 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1031 missing_dir=`cd $ac_aux_dir && pwd`
1032 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working aclocal" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 ACLOCAL="$missing_dir/missing aclocal"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working autoconf" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOCONF="$missing_dir/missing autoconf"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working automake" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (automake --version) < /dev/null > /dev/null 2>&1; then
1065 echo "$ac_t""found" 1>&6
1067 AUTOMAKE="$missing_dir/missing automake"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working autoheader" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1077 AUTOHEADER=autoheader
1078 echo "$ac_t""found" 1>&6
1080 AUTOHEADER="$missing_dir/missing autoheader"
1081 echo "$ac_t""missing" 1>&6
1084 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1085 echo "configure:1086: checking for working makeinfo" >&5
1086 # Run test in a subshell; some versions of sh will print an error if
1087 # an executable is not found, even if stderr is redirected.
1088 # Redirect stdin to placate older versions of autoconf. Sigh.
1089 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1091 echo "$ac_t""found" 1>&6
1093 MAKEINFO="$missing_dir/missing makeinfo"
1094 echo "$ac_t""missing" 1>&6
1097 install_sh="$missing_dir/install-sh"
1098 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1100 for ac_prog in gnutar gtar tar
1102 # Extract the first word of "$ac_prog", so it can be a program name with args.
1103 set dummy $ac_prog; ac_word=$2
1104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1105 echo "configure:1106: checking for $ac_word" >&5
1106 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1107 echo $ac_n "(cached) $ac_c" 1>&6
1109 if test -n "$AMTAR"; then
1110 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1112 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1114 for ac_dir in $ac_dummy; do
1115 test -z "$ac_dir" && ac_dir=.
1116 if test -f $ac_dir/$ac_word; then
1117 ac_cv_prog_AMTAR="$ac_prog"
1124 AMTAR="$ac_cv_prog_AMTAR"
1125 if test -n "$AMTAR"; then
1126 echo "$ac_t""$AMTAR" 1>&6
1128 echo "$ac_t""no" 1>&6
1131 test -n "$AMTAR" && break
1136 if test -n "$AMTAR"; then
1137 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1144 cat >> confdefs.h <<EOF
1145 #define OPENLDAP_PACKAGE "$PACKAGE"
1148 cat >> confdefs.h <<EOF
1149 #define OPENLDAP_VERSION "$VERSION"
1155 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1156 echo "configure:1157: checking configure arguments" >&5
1161 ldap_subdir="/openldap"
1163 # Check whether --with-subdir or --without-subdir was given.
1164 if test "${with_subdir+set}" = set; then
1165 withval="$with_subdir"
1172 ldap_subdir="$withval"
1175 ldap_subdir="/$withval"
1182 # OpenLDAP --enable-debug
1183 # Check whether --enable-debug or --disable-debug was given.
1184 if test "${enable_debug+set}" = set; then
1185 enableval="$enable_debug"
1188 for ol_val in auto yes no ; do
1189 if test "$enableval" = "$ol_val" ; then
1193 if test "$ol_arg" = "invalid" ; then
1194 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1196 ol_enable_debug="$ol_arg"
1199 ol_enable_debug="yes"
1201 # end --enable-debug
1202 # OpenLDAP --enable-syslog
1203 # Check whether --enable-syslog or --disable-syslog was given.
1204 if test "${enable_syslog+set}" = set; then
1205 enableval="$enable_syslog"
1208 for ol_val in auto yes no ; do
1209 if test "$enableval" = "$ol_val" ; then
1213 if test "$ol_arg" = "invalid" ; then
1214 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1216 ol_enable_syslog="$ol_arg"
1219 ol_enable_syslog="auto"
1221 # end --enable-syslog
1222 # OpenLDAP --enable-proctitle
1223 # Check whether --enable-proctitle or --disable-proctitle was given.
1224 if test "${enable_proctitle+set}" = set; then
1225 enableval="$enable_proctitle"
1228 for ol_val in auto yes no ; do
1229 if test "$enableval" = "$ol_val" ; then
1233 if test "$ol_arg" = "invalid" ; then
1234 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1236 ol_enable_proctitle="$ol_arg"
1239 ol_enable_proctitle="yes"
1241 # end --enable-proctitle
1242 # OpenLDAP --enable-cache
1243 # Check whether --enable-cache or --disable-cache was given.
1244 if test "${enable_cache+set}" = set; then
1245 enableval="$enable_cache"
1248 for ol_val in auto yes no ; do
1249 if test "$enableval" = "$ol_val" ; then
1253 if test "$ol_arg" = "invalid" ; then
1254 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1256 ol_enable_cache="$ol_arg"
1259 ol_enable_cache="yes"
1261 # end --enable-cache
1262 # OpenLDAP --enable-referrals
1263 # Check whether --enable-referrals or --disable-referrals was given.
1264 if test "${enable_referrals+set}" = set; then
1265 enableval="$enable_referrals"
1268 for ol_val in auto yes no ; do
1269 if test "$enableval" = "$ol_val" ; then
1273 if test "$ol_arg" = "invalid" ; then
1274 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1276 ol_enable_referrals="$ol_arg"
1279 ol_enable_referrals="yes"
1281 # end --enable-referrals
1282 # OpenLDAP --enable-kbind
1283 # Check whether --enable-kbind or --disable-kbind was given.
1284 if test "${enable_kbind+set}" = set; then
1285 enableval="$enable_kbind"
1288 for ol_val in auto yes no ; do
1289 if test "$enableval" = "$ol_val" ; then
1293 if test "$ol_arg" = "invalid" ; then
1294 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1296 ol_enable_kbind="$ol_arg"
1299 ol_enable_kbind="auto"
1301 # end --enable-kbind
1302 # OpenLDAP --enable-cldap
1303 # Check whether --enable-cldap or --disable-cldap was given.
1304 if test "${enable_cldap+set}" = set; then
1305 enableval="$enable_cldap"
1308 for ol_val in auto yes no ; do
1309 if test "$enableval" = "$ol_val" ; then
1313 if test "$ol_arg" = "invalid" ; then
1314 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1316 ol_enable_cldap="$ol_arg"
1319 ol_enable_cldap="no"
1321 # end --enable-cldap
1322 # OpenLDAP --enable-ipv6
1323 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1324 if test "${enable_ipv6+set}" = set; then
1325 enableval="$enable_ipv6"
1328 for ol_val in auto yes no ; do
1329 if test "$enableval" = "$ol_val" ; then
1333 if test "$ol_arg" = "invalid" ; then
1334 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1336 ol_enable_ipv6="$ol_arg"
1339 ol_enable_ipv6="auto"
1342 # OpenLDAP --enable-unix
1343 # Check whether --enable-unix or --disable-unix was given.
1344 if test "${enable_unix+set}" = set; then
1345 enableval="$enable_unix"
1348 for ol_val in auto yes no ; do
1349 if test "$enableval" = "$ol_val" ; then
1353 if test "$ol_arg" = "invalid" ; then
1354 { echo "configure: error: bad value $enableval for --enable-unix" 1>&2; exit 1; }
1356 ol_enable_unix="$ol_arg"
1359 ol_enable_unix="auto"
1362 # OpenLDAP --enable-x_compile
1363 # Check whether --enable-x_compile or --disable-x_compile was given.
1364 if test "${enable_x_compile+set}" = set; then
1365 enableval="$enable_x_compile"
1368 for ol_val in yes no ; do
1369 if test "$enableval" = "$ol_val" ; then
1373 if test "$ol_arg" = "invalid" ; then
1374 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1376 ol_enable_x_compile="$ol_arg"
1379 ol_enable_x_compile="no"
1381 # end --enable-x_compile
1384 # OpenLDAP --with-cyrus_sasl
1385 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1386 if test "${with_cyrus_sasl+set}" = set; then
1387 withval="$with_cyrus_sasl"
1390 for ol_val in auto yes no ; do
1391 if test "$withval" = "$ol_val" ; then
1395 if test "$ol_arg" = "invalid" ; then
1396 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1398 ol_with_cyrus_sasl="$ol_arg"
1401 ol_with_cyrus_sasl="auto"
1403 # end --with-cyrus_sasl
1405 # OpenLDAP --with-fetch
1406 # Check whether --with-fetch or --without-fetch was given.
1407 if test "${with_fetch+set}" = set; then
1408 withval="$with_fetch"
1411 for ol_val in auto yes no ; do
1412 if test "$withval" = "$ol_val" ; then
1416 if test "$ol_arg" = "invalid" ; then
1417 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1419 ol_with_fetch="$ol_arg"
1422 ol_with_fetch="auto"
1426 # OpenLDAP --with-kerberos
1427 # Check whether --with-kerberos or --without-kerberos was given.
1428 if test "${with_kerberos+set}" = set; then
1429 withval="$with_kerberos"
1432 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1433 if test "$withval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1440 ol_with_kerberos="$ol_arg"
1443 ol_with_kerberos="auto"
1445 # end --with-kerberos
1447 # OpenLDAP --with-readline
1448 # Check whether --with-readline or --without-readline was given.
1449 if test "${with_readline+set}" = set; then
1450 withval="$with_readline"
1453 for ol_val in auto yes no ; do
1454 if test "$withval" = "$ol_val" ; then
1458 if test "$ol_arg" = "invalid" ; then
1459 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1461 ol_with_readline="$ol_arg"
1464 ol_with_readline="auto"
1466 # end --with-readline
1468 # OpenLDAP --with-threads
1469 # Check whether --with-threads or --without-threads was given.
1470 if test "${with_threads+set}" = set; then
1471 withval="$with_threads"
1474 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1475 if test "$withval" = "$ol_val" ; then
1479 if test "$ol_arg" = "invalid" ; then
1480 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1482 ol_with_threads="$ol_arg"
1485 ol_with_threads="auto"
1487 # end --with-threads
1489 # OpenLDAP --with-tls
1490 # Check whether --with-tls or --without-tls was given.
1491 if test "${with_tls+set}" = set; then
1495 for ol_val in auto ssleay openssl yes no ; do
1496 if test "$withval" = "$ol_val" ; then
1500 if test "$ol_arg" = "invalid" ; then
1501 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1503 ol_with_tls="$ol_arg"
1510 # OpenLDAP --with-yielding_select
1511 # Check whether --with-yielding_select or --without-yielding_select was given.
1512 if test "${with_yielding_select+set}" = set; then
1513 withval="$with_yielding_select"
1516 for ol_val in auto yes no manual ; do
1517 if test "$withval" = "$ol_val" ; then
1521 if test "$ol_arg" = "invalid" ; then
1522 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1524 ol_with_yielding_select="$ol_arg"
1527 ol_with_yielding_select="auto"
1529 # end --with-yielding_select
1533 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1534 if test "${with_xxslapdoptions+set}" = set; then
1535 withval="$with_xxslapdoptions"
1539 # OpenLDAP --enable-slapd
1540 # Check whether --enable-slapd or --disable-slapd was given.
1541 if test "${enable_slapd+set}" = set; then
1542 enableval="$enable_slapd"
1545 for ol_val in auto yes no ; do
1546 if test "$enableval" = "$ol_val" ; then
1550 if test "$ol_arg" = "invalid" ; then
1551 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1553 ol_enable_slapd="$ol_arg"
1556 ol_enable_slapd="yes"
1558 # end --enable-slapd
1559 # OpenLDAP --enable-cleartext
1560 # Check whether --enable-cleartext or --disable-cleartext was given.
1561 if test "${enable_cleartext+set}" = set; then
1562 enableval="$enable_cleartext"
1565 for ol_val in auto yes no ; do
1566 if test "$enableval" = "$ol_val" ; then
1570 if test "$ol_arg" = "invalid" ; then
1571 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1573 ol_enable_cleartext="$ol_arg"
1576 ol_enable_cleartext="yes"
1578 # end --enable-cleartext
1579 # OpenLDAP --enable-crypt
1580 # Check whether --enable-crypt or --disable-crypt was given.
1581 if test "${enable_crypt+set}" = set; then
1582 enableval="$enable_crypt"
1585 for ol_val in auto yes no ; do
1586 if test "$enableval" = "$ol_val" ; then
1590 if test "$ol_arg" = "invalid" ; then
1591 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1593 ol_enable_crypt="$ol_arg"
1596 ol_enable_crypt="auto"
1598 # end --enable-crypt
1599 # OpenLDAP --enable-kpasswd
1600 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1601 if test "${enable_kpasswd+set}" = set; then
1602 enableval="$enable_kpasswd"
1605 for ol_val in auto yes no ; do
1606 if test "$enableval" = "$ol_val" ; then
1610 if test "$ol_arg" = "invalid" ; then
1611 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1613 ol_enable_kpasswd="$ol_arg"
1616 ol_enable_kpasswd="no"
1618 # end --enable-kpasswd
1619 # OpenLDAP --enable-spasswd
1620 # Check whether --enable-spasswd or --disable-spasswd was given.
1621 if test "${enable_spasswd+set}" = set; then
1622 enableval="$enable_spasswd"
1625 for ol_val in auto yes no ; do
1626 if test "$enableval" = "$ol_val" ; then
1630 if test "$ol_arg" = "invalid" ; then
1631 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1633 ol_enable_spasswd="$ol_arg"
1636 ol_enable_spasswd="no"
1638 # end --enable-spasswd
1639 # OpenLDAP --enable-modules
1640 # Check whether --enable-modules or --disable-modules was given.
1641 if test "${enable_modules+set}" = set; then
1642 enableval="$enable_modules"
1645 for ol_val in auto yes no ; do
1646 if test "$enableval" = "$ol_val" ; then
1650 if test "$ol_arg" = "invalid" ; then
1651 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1653 ol_enable_modules="$ol_arg"
1656 ol_enable_modules="no"
1658 # end --enable-modules
1659 # OpenLDAP --enable-multimaster
1660 # Check whether --enable-multimaster or --disable-multimaster was given.
1661 if test "${enable_multimaster+set}" = set; then
1662 enableval="$enable_multimaster"
1665 for ol_val in auto yes no ; do
1666 if test "$enableval" = "$ol_val" ; then
1670 if test "$ol_arg" = "invalid" ; then
1671 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1673 ol_enable_multimaster="$ol_arg"
1676 ol_enable_multimaster="no"
1678 # end --enable-multimaster
1679 # OpenLDAP --enable-phonetic
1680 # Check whether --enable-phonetic or --disable-phonetic was given.
1681 if test "${enable_phonetic+set}" = set; then
1682 enableval="$enable_phonetic"
1685 for ol_val in auto yes no ; do
1686 if test "$enableval" = "$ol_val" ; then
1690 if test "$ol_arg" = "invalid" ; then
1691 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1693 ol_enable_phonetic="$ol_arg"
1696 ol_enable_phonetic="no"
1698 # end --enable-phonetic
1699 # OpenLDAP --enable-quipu
1700 # Check whether --enable-quipu or --disable-quipu was given.
1701 if test "${enable_quipu+set}" = set; then
1702 enableval="$enable_quipu"
1705 for ol_val in auto yes no ; do
1706 if test "$enableval" = "$ol_val" ; then
1710 if test "$ol_arg" = "invalid" ; then
1711 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1713 ol_enable_quipu="$ol_arg"
1716 ol_enable_quipu="no"
1718 # end --enable-quipu
1719 # OpenLDAP --enable-rlookups
1720 # Check whether --enable-rlookups or --disable-rlookups was given.
1721 if test "${enable_rlookups+set}" = set; then
1722 enableval="$enable_rlookups"
1725 for ol_val in auto yes no ; do
1726 if test "$enableval" = "$ol_val" ; then
1730 if test "$ol_arg" = "invalid" ; then
1731 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1733 ol_enable_rlookups="$ol_arg"
1736 ol_enable_rlookups="auto"
1738 # end --enable-rlookups
1739 # OpenLDAP --enable-aci
1740 # Check whether --enable-aci or --disable-aci was given.
1741 if test "${enable_aci+set}" = set; then
1742 enableval="$enable_aci"
1745 for ol_val in auto yes no ; do
1746 if test "$enableval" = "$ol_val" ; then
1750 if test "$ol_arg" = "invalid" ; then
1751 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1753 ol_enable_aci="$ol_arg"
1759 # OpenLDAP --enable-wrappers
1760 # Check whether --enable-wrappers or --disable-wrappers was given.
1761 if test "${enable_wrappers+set}" = set; then
1762 enableval="$enable_wrappers"
1765 for ol_val in auto yes no ; do
1766 if test "$enableval" = "$ol_val" ; then
1770 if test "$ol_arg" = "invalid" ; then
1771 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1773 ol_enable_wrappers="$ol_arg"
1776 ol_enable_wrappers="no"
1778 # end --enable-wrappers
1779 # OpenLDAP --enable-dynamic
1780 # Check whether --enable-dynamic or --disable-dynamic was given.
1781 if test "${enable_dynamic+set}" = set; then
1782 enableval="$enable_dynamic"
1785 for ol_val in auto yes no ; do
1786 if test "$enableval" = "$ol_val" ; then
1790 if test "$ol_arg" = "invalid" ; then
1791 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1793 ol_enable_dynamic="$ol_arg"
1796 ol_enable_dynamic="no"
1798 # end --enable-dynamic
1800 # OpenLDAP --enable-dnssrv
1801 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1802 if test "${enable_dnssrv+set}" = set; then
1803 enableval="$enable_dnssrv"
1806 for ol_val in auto yes no ; do
1807 if test "$enableval" = "$ol_val" ; then
1811 if test "$ol_arg" = "invalid" ; then
1812 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1814 ol_enable_dnssrv="$ol_arg"
1817 ol_enable_dnssrv="no"
1819 # end --enable-dnssrv
1820 # OpenLDAP --with-dnssrv_module
1821 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1822 if test "${with_dnssrv_module+set}" = set; then
1823 withval="$with_dnssrv_module"
1826 for ol_val in static dynamic ; do
1827 if test "$withval" = "$ol_val" ; then
1831 if test "$ol_arg" = "invalid" ; then
1832 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1834 ol_with_dnssrv_module="$ol_arg"
1837 ol_with_dnssrv_module="static"
1839 # end --with-dnssrv_module
1841 # OpenLDAP --enable-ldap
1842 # Check whether --enable-ldap or --disable-ldap was given.
1843 if test "${enable_ldap+set}" = set; then
1844 enableval="$enable_ldap"
1847 for ol_val in auto yes no ; do
1848 if test "$enableval" = "$ol_val" ; then
1852 if test "$ol_arg" = "invalid" ; then
1853 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1855 ol_enable_ldap="$ol_arg"
1861 # OpenLDAP --with-ldap_module
1862 # Check whether --with-ldap_module or --without-ldap_module was given.
1863 if test "${with_ldap_module+set}" = set; then
1864 withval="$with_ldap_module"
1867 for ol_val in static dynamic ; do
1868 if test "$withval" = "$ol_val" ; then
1872 if test "$ol_arg" = "invalid" ; then
1873 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1875 ol_with_ldap_module="$ol_arg"
1878 ol_with_ldap_module="static"
1880 # end --with-ldap_module
1882 # OpenLDAP --enable-ldbm
1883 # Check whether --enable-ldbm or --disable-ldbm was given.
1884 if test "${enable_ldbm+set}" = set; then
1885 enableval="$enable_ldbm"
1888 for ol_val in auto yes no ; do
1889 if test "$enableval" = "$ol_val" ; then
1893 if test "$ol_arg" = "invalid" ; then
1894 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1896 ol_enable_ldbm="$ol_arg"
1899 ol_enable_ldbm="yes"
1902 # OpenLDAP --with-ldbm_api
1903 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1904 if test "${with_ldbm_api+set}" = set; then
1905 withval="$with_ldbm_api"
1908 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1909 if test "$withval" = "$ol_val" ; then
1913 if test "$ol_arg" = "invalid" ; then
1914 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1916 ol_with_ldbm_api="$ol_arg"
1919 ol_with_ldbm_api="auto"
1921 # end --with-ldbm_api
1923 # OpenLDAP --with-ldbm_module
1924 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1925 if test "${with_ldbm_module+set}" = set; then
1926 withval="$with_ldbm_module"
1929 for ol_val in static dynamic ; do
1930 if test "$withval" = "$ol_val" ; then
1934 if test "$ol_arg" = "invalid" ; then
1935 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1937 ol_with_ldbm_module="$ol_arg"
1940 ol_with_ldbm_module="static"
1942 # end --with-ldbm_module
1944 # OpenLDAP --with-ldbm_type
1945 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1946 if test "${with_ldbm_type+set}" = set; then
1947 withval="$with_ldbm_type"
1950 for ol_val in auto btree hash ; do
1951 if test "$withval" = "$ol_val" ; then
1955 if test "$ol_arg" = "invalid" ; then
1956 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1958 ol_with_ldbm_type="$ol_arg"
1961 ol_with_ldbm_type="auto"
1963 # end --with-ldbm_type
1965 # OpenLDAP --enable-passwd
1966 # Check whether --enable-passwd or --disable-passwd was given.
1967 if test "${enable_passwd+set}" = set; then
1968 enableval="$enable_passwd"
1971 for ol_val in auto yes no ; do
1972 if test "$enableval" = "$ol_val" ; then
1976 if test "$ol_arg" = "invalid" ; then
1977 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1979 ol_enable_passwd="$ol_arg"
1982 ol_enable_passwd="no"
1984 # end --enable-passwd
1985 # OpenLDAP --with-passwd_module
1986 # Check whether --with-passwd_module or --without-passwd_module was given.
1987 if test "${with_passwd_module+set}" = set; then
1988 withval="$with_passwd_module"
1991 for ol_val in static dynamic ; do
1992 if test "$withval" = "$ol_val" ; then
1996 if test "$ol_arg" = "invalid" ; then
1997 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1999 ol_with_passwd_module="$ol_arg"
2002 ol_with_passwd_module="static"
2004 # end --with-passwd_module
2006 # OpenLDAP --enable-perl
2007 # Check whether --enable-perl or --disable-perl was given.
2008 if test "${enable_perl+set}" = set; then
2009 enableval="$enable_perl"
2012 for ol_val in auto yes no ; do
2013 if test "$enableval" = "$ol_val" ; then
2017 if test "$ol_arg" = "invalid" ; then
2018 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2020 ol_enable_perl="$ol_arg"
2026 # OpenLDAP --with-perl_module
2027 # Check whether --with-perl_module or --without-perl_module was given.
2028 if test "${with_perl_module+set}" = set; then
2029 withval="$with_perl_module"
2032 for ol_val in static dynamic ; do
2033 if test "$withval" = "$ol_val" ; then
2037 if test "$ol_arg" = "invalid" ; then
2038 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2040 ol_with_perl_module="$ol_arg"
2043 ol_with_perl_module="static"
2045 # end --with-perl_module
2047 # OpenLDAP --enable-shell
2048 # Check whether --enable-shell or --disable-shell was given.
2049 if test "${enable_shell+set}" = set; then
2050 enableval="$enable_shell"
2053 for ol_val in auto yes no ; do
2054 if test "$enableval" = "$ol_val" ; then
2058 if test "$ol_arg" = "invalid" ; then
2059 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2061 ol_enable_shell="$ol_arg"
2064 ol_enable_shell="no"
2066 # end --enable-shell
2067 # OpenLDAP --with-shell_module
2068 # Check whether --with-shell_module or --without-shell_module was given.
2069 if test "${with_shell_module+set}" = set; then
2070 withval="$with_shell_module"
2073 for ol_val in static dynamic ; do
2074 if test "$withval" = "$ol_val" ; then
2078 if test "$ol_arg" = "invalid" ; then
2079 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2081 ol_with_shell_module="$ol_arg"
2084 ol_with_shell_module="static"
2086 # end --with-shell_module
2088 # OpenLDAP --enable-sql
2089 # Check whether --enable-sql or --disable-sql was given.
2090 if test "${enable_sql+set}" = set; then
2091 enableval="$enable_sql"
2094 for ol_val in auto yes no ; do
2095 if test "$enableval" = "$ol_val" ; then
2099 if test "$ol_arg" = "invalid" ; then
2100 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2102 ol_enable_sql="$ol_arg"
2108 # OpenLDAP --with-sql_module
2109 # Check whether --with-sql_module or --without-sql_module was given.
2110 if test "${with_sql_module+set}" = set; then
2111 withval="$with_sql_module"
2114 for ol_val in static dynamic ; do
2115 if test "$withval" = "$ol_val" ; then
2119 if test "$ol_arg" = "invalid" ; then
2120 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2122 ol_with_sql_module="$ol_arg"
2125 ol_with_sql_module="static"
2127 # end --with-sql_module
2129 # OpenLDAP --enable-tcl
2130 # Check whether --enable-tcl or --disable-tcl was given.
2131 if test "${enable_tcl+set}" = set; then
2132 enableval="$enable_tcl"
2135 for ol_val in auto yes no ; do
2136 if test "$enableval" = "$ol_val" ; then
2140 if test "$ol_arg" = "invalid" ; then
2141 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2143 ol_enable_tcl="$ol_arg"
2149 # OpenLDAP --with-tcl_module
2150 # Check whether --with-tcl_module or --without-tcl_module was given.
2151 if test "${with_tcl_module+set}" = set; then
2152 withval="$with_tcl_module"
2155 for ol_val in static dynamic ; do
2156 if test "$withval" = "$ol_val" ; then
2160 if test "$ol_arg" = "invalid" ; then
2161 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2163 ol_with_tcl_module="$ol_arg"
2166 ol_with_tcl_module="static"
2168 # end --with-tcl_module
2171 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2172 if test "${with_xxslurpdoptions+set}" = set; then
2173 withval="$with_xxslurpdoptions"
2177 # OpenLDAP --enable-slurpd
2178 # Check whether --enable-slurpd or --disable-slurpd was given.
2179 if test "${enable_slurpd+set}" = set; then
2180 enableval="$enable_slurpd"
2183 for ol_val in auto yes no ; do
2184 if test "$enableval" = "$ol_val" ; then
2188 if test "$ol_arg" = "invalid" ; then
2189 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2191 ol_enable_slurpd="$ol_arg"
2194 ol_enable_slurpd="auto"
2196 # end --enable-slurpd
2198 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2199 if test "${with_xxliboptions+set}" = set; then
2200 withval="$with_xxliboptions"
2204 # Check whether --enable-static or --disable-static was given.
2205 if test "${enable_static+set}" = set; then
2206 enableval="$enable_static"
2207 p=${PACKAGE-default}
2208 case "$enableval" in
2209 yes) enable_static=yes ;;
2210 no) enable_static=no ;;
2213 # Look at the argument we got. We use all the common list separators.
2214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2215 for pkg in $enableval; do
2216 if test "X$pkg" = "X$p"; then
2227 # Check whether --enable-shared or --disable-shared was given.
2228 if test "${enable_shared+set}" = set; then
2229 enableval="$enable_shared"
2230 p=${PACKAGE-default}
2231 case "$enableval" in
2232 yes) enable_shared=yes ;;
2233 no) enable_shared=no ;;
2236 # Look at the argument we got. We use all the common list separators.
2237 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2238 for pkg in $enableval; do
2239 if test "X$pkg" = "X$p"; then
2253 if test $ol_enable_slapd = no ; then
2254 if test $ol_enable_dnssrv = yes ; then
2255 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2257 if test $ol_enable_ldap = yes ; then
2258 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2260 if test $ol_enable_ldbm = yes ; then
2261 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2263 if test $ol_enable_passwd = yes ; then
2264 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2266 if test $ol_enable_perl = yes ; then
2267 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2269 if test $ol_enable_shell = yes ; then
2270 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2272 if test $ol_enable_tcl = yes ; then
2273 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2275 if test $ol_enable_sql = yes ; then
2276 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2278 if test $ol_enable_modules = yes ; then
2279 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2281 if test $ol_enable_multimaster = yes ; then
2282 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2284 if test $ol_enable_wrappers = yes ; then
2285 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2287 if test $ol_enable_phonetic = yes ; then
2288 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2290 if test $ol_enable_quipu = yes ; then
2291 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2293 if test $ol_enable_rlookups = yes ; then
2294 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2296 if test $ol_enable_aci = yes ; then
2297 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2299 if test $ol_with_ldbm_api != auto ; then
2300 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2302 if test $ol_with_ldbm_type != auto ; then
2303 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2305 if test $ol_with_dnssrv_module != static ; then
2306 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2308 if test $ol_with_ldap_module != static ; then
2309 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2311 if test $ol_with_ldbm_module != static ; then
2312 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2314 if test $ol_with_passwd_module != static ; then
2315 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2317 if test $ol_with_perl_module != static ; then
2318 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2320 if test $ol_with_shell_module != static ; then
2321 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2323 if test $ol_with_tcl_module != static ; then
2324 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2326 if test $ol_with_sql_module != static ; then
2327 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2329 if test $ol_enable_slurpd = yes ; then
2330 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2333 # force settings to no
2343 ol_enable_modules=no
2344 ol_enable_multimaster=no
2345 ol_enable_phonetic=no
2347 ol_enable_rlookups=no
2349 ol_enable_wrappers=no
2350 ol_enable_dynamic=no
2353 ol_with_ldbm_type=no
2355 ol_with_dnssrv_module=static
2356 ol_with_ldap_module=static
2357 ol_with_ldbm_module=static
2358 ol_with_passwd_module=static
2359 ol_with_perl_module=static
2360 ol_with_shell_module=static
2361 ol_with_tcl_module=static
2362 ol_with_sql_module=static
2366 elif test $ol_enable_ldbm = no ; then
2368 if test $ol_with_ldbm_api != auto ; then
2369 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2372 if test $ol_with_ldbm_type != auto ; then
2373 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2376 if test $ol_with_ldbm_module != static ; then
2377 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2380 if test $ol_enable_modules != yes -a \
2381 $ol_enable_dnssrv = no -a \
2382 $ol_enable_ldap = no -a \
2383 $ol_enable_passwd = no -a \
2384 $ol_enable_perl = no -a \
2385 $ol_enable_shell = no -a \
2386 $ol_enable_sql = no -a \
2387 $ol_enable_tcl = no ; then
2388 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2392 ol_with_ldbm_type=no
2393 ol_with_ldbm_module=static
2396 if test $ol_with_ldbm_api = gdbm -a \
2397 $ol_with_ldbm_type = btree ; then
2398 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2400 if test $ol_with_ldbm_api = mdbm -a \
2401 $ol_with_ldbm_type = btree ; then
2402 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2404 if test $ol_with_ldbm_api = ndbm -a \
2405 $ol_with_ldbm_type = btree ; then
2406 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2410 if test $ol_enable_slurpd = yes ; then
2411 if test $ol_with_threads = no ; then
2412 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2416 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2417 if test $ol_with_kerberos = no ; then
2418 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2420 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2421 if test $ol_with_kerberos != auto ; then
2422 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2428 if test $ol_enable_spasswd = yes ; then
2429 if test $ol_with_cyrus_sasl = no ; then
2430 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2435 echo "$ac_t""done" 1>&6
2462 BUILD_DNSSRV_DYNAMIC=static
2463 BUILD_LDAP_DYNAMIC=static
2464 BUILD_LDBM_DYNAMIC=static
2465 BUILD_PASSWD_DYNAMIC=static
2466 BUILD_PERL_DYNAMIC=static
2467 BUILD_SHELL_DYNAMIC=static
2468 BUILD_TCL_DYNAMIC=static
2469 BUILD_SQL_DYNAMIC=static
2471 SLAPD_MODULES_LDFLAGS=
2472 SLAPD_MODULES_CPPFLAGS=
2495 cat >> confdefs.h <<\EOF
2496 #define HAVE_MKVERSION 1
2504 *-*-aix*) if test -z "$CC" ; then
2505 case "$ol_with_threads" in
2506 auto | yes | posix) ol_aix_threads=yes ;;
2512 if test $ol_aix_threads = yes ; then
2513 if test -z "${CC}" ; then
2514 for ac_prog in cc_r xlc_r cc
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2519 echo "configure:2520: checking for $ac_word" >&5
2520 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2521 echo $ac_n "(cached) $ac_c" 1>&6
2523 if test -n "$CC"; then
2524 ac_cv_prog_CC="$CC" # Let the user override the test.
2526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2528 for ac_dir in $ac_dummy; do
2529 test -z "$ac_dir" && ac_dir=.
2530 if test -f $ac_dir/$ac_word; then
2531 ac_cv_prog_CC="$ac_prog"
2539 if test -n "$CC"; then
2540 echo "$ac_t""$CC" 1>&6
2542 echo "$ac_t""no" 1>&6
2545 test -n "$CC" && break
2549 if test "$CC" = cc ; then
2550 if test $ol_with_threads != auto ; then
2551 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2553 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2559 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2560 ol_with_threads=posix
2561 ol_cv_pthread_create=yes
2565 if test -z "${CC}"; then
2568 # Extract the first word of "$ac_prog", so it can be a program name with args.
2569 set dummy $ac_prog; ac_word=$2
2570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_word" >&5
2572 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2580 for ac_dir in $ac_dummy; do
2581 test -z "$ac_dir" && ac_dir=.
2582 if test -f $ac_dir/$ac_word; then
2583 ac_cv_prog_CC="$ac_prog"
2591 if test -n "$CC"; then
2592 echo "$ac_t""$CC" 1>&6
2594 echo "$ac_t""no" 1>&6
2597 test -n "$CC" && break
2605 # Check whether --enable-fast-install or --disable-fast-install was given.
2606 if test "${enable_fast_install+set}" = set; then
2607 enableval="$enable_fast_install"
2608 p=${PACKAGE-default}
2609 case "$enableval" in
2610 yes) enable_fast_install=yes ;;
2611 no) enable_fast_install=no ;;
2613 enable_fast_install=no
2614 # Look at the argument we got. We use all the common list separators.
2615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2616 for pkg in $enableval; do
2617 if test "X$pkg" = "X$p"; then
2618 enable_fast_install=yes
2625 enable_fast_install=yes
2628 # Extract the first word of "ranlib", so it can be a program name with args.
2629 set dummy ranlib; ac_word=$2
2630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2631 echo "configure:2632: checking for $ac_word" >&5
2632 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 if test -n "$RANLIB"; then
2636 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2640 for ac_dir in $ac_dummy; do
2641 test -z "$ac_dir" && ac_dir=.
2642 if test -f $ac_dir/$ac_word; then
2643 ac_cv_prog_RANLIB="ranlib"
2648 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2651 RANLIB="$ac_cv_prog_RANLIB"
2652 if test -n "$RANLIB"; then
2653 echo "$ac_t""$RANLIB" 1>&6
2655 echo "$ac_t""no" 1>&6
2658 # Extract the first word of "gcc", so it can be a program name with args.
2659 set dummy gcc; ac_word=$2
2660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2661 echo "configure:2662: checking for $ac_word" >&5
2662 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2663 echo $ac_n "(cached) $ac_c" 1>&6
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2670 for ac_dir in $ac_dummy; do
2671 test -z "$ac_dir" && ac_dir=.
2672 if test -f $ac_dir/$ac_word; then
2681 if test -n "$CC"; then
2682 echo "$ac_t""$CC" 1>&6
2684 echo "$ac_t""no" 1>&6
2687 if test -z "$CC"; then
2688 # Extract the first word of "cc", so it can be a program name with args.
2689 set dummy cc; ac_word=$2
2690 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2691 echo "configure:2692: checking for $ac_word" >&5
2692 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2693 echo $ac_n "(cached) $ac_c" 1>&6
2695 if test -n "$CC"; then
2696 ac_cv_prog_CC="$CC" # Let the user override the test.
2698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2701 for ac_dir in $ac_dummy; do
2702 test -z "$ac_dir" && ac_dir=.
2703 if test -f $ac_dir/$ac_word; then
2704 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2705 ac_prog_rejected=yes
2713 if test $ac_prog_rejected = yes; then
2714 # We found a bogon in the path, so make sure we never use it.
2715 set dummy $ac_cv_prog_CC
2717 if test $# -gt 0; then
2718 # We chose a different compiler from the bogus one.
2719 # However, it has the same basename, so the bogon will be chosen
2720 # first if we set CC to just the basename; use the full file name.
2722 set dummy "$ac_dir/$ac_word" "$@"
2730 if test -n "$CC"; then
2731 echo "$ac_t""$CC" 1>&6
2733 echo "$ac_t""no" 1>&6
2736 if test -z "$CC"; then
2737 case "`uname -s`" in
2738 *win32* | *WIN32* | *CYGWIN*)
2739 # Extract the first word of "cl", so it can be a program name with args.
2740 set dummy cl; ac_word=$2
2741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2742 echo "configure:2743: checking for $ac_word" >&5
2743 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2751 for ac_dir in $ac_dummy; do
2752 test -z "$ac_dir" && ac_dir=.
2753 if test -f $ac_dir/$ac_word; then
2762 if test -n "$CC"; then
2763 echo "$ac_t""$CC" 1>&6
2765 echo "$ac_t""no" 1>&6
2770 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2773 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2774 echo "configure:2775: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2777 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2778 ac_cpp='$CPP $CPPFLAGS'
2779 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2780 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2781 cross_compiling=$ac_cv_prog_cc_cross
2783 cat > conftest.$ac_ext << EOF
2785 #line 2786 "configure"
2786 #include "confdefs.h"
2790 if { (eval echo configure:2791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2791 ac_cv_prog_cc_works=yes
2792 # If we can't run a trivial program, we are probably using a cross compiler.
2793 if (./conftest; exit) 2>/dev/null; then
2794 ac_cv_prog_cc_cross=no
2796 ac_cv_prog_cc_cross=yes
2799 echo "configure: failed program was:" >&5
2800 cat conftest.$ac_ext >&5
2801 ac_cv_prog_cc_works=no
2805 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2806 ac_cpp='$CPP $CPPFLAGS'
2807 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2808 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2809 cross_compiling=$ac_cv_prog_cc_cross
2811 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2812 if test $ac_cv_prog_cc_works = no; then
2813 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2816 echo "configure:2817: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2817 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2818 cross_compiling=$ac_cv_prog_cc_cross
2820 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2821 echo "configure:2822: checking whether we are using GNU C" >&5
2822 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2823 echo $ac_n "(cached) $ac_c" 1>&6
2825 cat > conftest.c <<EOF
2830 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2837 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2839 if test $ac_cv_prog_gcc = yes; then
2845 ac_test_CFLAGS="${CFLAGS+set}"
2846 ac_save_CFLAGS="$CFLAGS"
2848 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2849 echo "configure:2850: checking whether ${CC-cc} accepts -g" >&5
2850 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2851 echo $ac_n "(cached) $ac_c" 1>&6
2853 echo 'void f(){}' > conftest.c
2854 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2863 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2864 if test "$ac_test_CFLAGS" = set; then
2865 CFLAGS="$ac_save_CFLAGS"
2866 elif test $ac_cv_prog_cc_g = yes; then
2867 if test "$GCC" = yes; then
2873 if test "$GCC" = yes; then
2880 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2881 if test "${with_gnu_ld+set}" = set; then
2882 withval="$with_gnu_ld"
2883 test "$withval" = no || with_gnu_ld=yes
2889 if test "$ac_cv_prog_gcc" = yes; then
2890 # Check if gcc -print-prog-name=ld gives a path.
2891 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2892 echo "configure:2893: checking for ld used by GCC" >&5
2893 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2895 # Accept absolute paths.
2896 [\\/]* | [A-Za-z]:[\\/]*)
2897 re_direlt='/[^/][^/]*/\.\./'
2898 # Canonicalize the path of ld
2899 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2900 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2901 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2903 test -z "$LD" && LD="$ac_prog"
2906 # If it fails, then pretend we aren't using GCC.
2910 # If it is relative, then search for the first ld in PATH.
2914 elif test "$with_gnu_ld" = yes; then
2915 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2916 echo "configure:2917: checking for GNU ld" >&5
2918 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2919 echo "configure:2920: checking for non-GNU ld" >&5
2921 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2924 if test -z "$LD"; then
2925 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2926 for ac_dir in $PATH; do
2927 test -z "$ac_dir" && ac_dir=.
2928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2929 ac_cv_path_LD="$ac_dir/$ac_prog"
2930 # Check to see if the program is GNU ld. I'd rather use --version,
2931 # but apparently some GNU ld's only accept -v.
2932 # Break only if it was the GNU/non-GNU ld that we prefer.
2933 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2934 test "$with_gnu_ld" != no && break
2936 test "$with_gnu_ld" != yes && break
2942 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2947 if test -n "$LD"; then
2948 echo "$ac_t""$LD" 1>&6
2950 echo "$ac_t""no" 1>&6
2952 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2953 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2954 echo "configure:2955: checking if the linker ($LD) is GNU ld" >&5
2955 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2959 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2960 ac_cv_prog_gnu_ld=yes
2962 ac_cv_prog_gnu_ld=no
2966 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2969 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2970 echo "configure:2971: checking for BSD-compatible nm" >&5
2971 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2974 if test -n "$NM"; then
2975 # Let the user override the test.
2978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2979 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2980 test -z "$ac_dir" && ac_dir=.
2981 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2982 # Check to see if the nm accepts a BSD-compat flag.
2983 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2984 # nm: unknown option "B" ignored
2985 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2986 ac_cv_path_NM="$ac_dir/nm -B"
2988 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2989 ac_cv_path_NM="$ac_dir/nm -p"
2992 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2993 continue # so that we can try to find one that supports BSD flags
2998 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3003 echo "$ac_t""$NM" 1>&6
3005 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3006 echo "configure:3007: checking whether ln -s works" >&5
3007 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3011 if ln -s X conftestdata 2>/dev/null
3014 ac_cv_prog_LN_S="ln -s"
3019 LN_S="$ac_cv_prog_LN_S"
3020 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3021 echo "$ac_t""yes" 1>&6
3023 echo "$ac_t""no" 1>&6
3026 if test $host != $build; then
3027 ac_tool_prefix=${host_alias}-
3034 NONE) lt_target="$host" ;;
3035 *) lt_target="$target" ;;
3038 # Check for any special flags to pass to ltconfig.
3039 libtool_flags="--cache-file=$cache_file"
3040 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3041 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3042 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3043 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3044 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3045 libtool_flags="$libtool_flags --enable-dlopen"
3046 libtool_flags="$libtool_flags --enable-win32-dll"
3047 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3048 if test "${enable_libtool_lock+set}" = set; then
3049 enableval="$enable_libtool_lock"
3053 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3054 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3056 # Some flags need to be propagated to the compiler or linker for good
3058 case "$lt_target" in
3060 # Find out which ABI we are using.
3061 echo '#line 3062 "configure"' > conftest.$ac_ext
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063 case "`/usr/bin/file conftest.o`" in
3079 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3080 SAVE_CFLAGS="$CFLAGS"
3081 CFLAGS="$CFLAGS -belf"
3082 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3083 echo "configure:3084: checking whether the C compiler needs -belf" >&5
3084 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3095 if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3097 lt_cv_cc_needs_belf=yes
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3102 lt_cv_cc_needs_belf=no
3107 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3108 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3109 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3110 CFLAGS="$SAVE_CFLAGS"
3114 *-*-cygwin* | *-*-mingw*)
3115 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3116 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3118 echo "configure:3119: checking for $ac_word" >&5
3119 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3122 if test -n "$DLLTOOL"; then
3123 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3127 for ac_dir in $ac_dummy; do
3128 test -z "$ac_dir" && ac_dir=.
3129 if test -f $ac_dir/$ac_word; then
3130 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3137 DLLTOOL="$ac_cv_prog_DLLTOOL"
3138 if test -n "$DLLTOOL"; then
3139 echo "$ac_t""$DLLTOOL" 1>&6
3141 echo "$ac_t""no" 1>&6
3145 if test -z "$ac_cv_prog_DLLTOOL"; then
3146 if test -n "$ac_tool_prefix"; then
3147 # Extract the first word of "dlltool", so it can be a program name with args.
3148 set dummy dlltool; ac_word=$2
3149 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3150 echo "configure:3151: checking for $ac_word" >&5
3151 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3154 if test -n "$DLLTOOL"; then
3155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3159 for ac_dir in $ac_dummy; do
3160 test -z "$ac_dir" && ac_dir=.
3161 if test -f $ac_dir/$ac_word; then
3162 ac_cv_prog_DLLTOOL="dlltool"
3167 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3170 DLLTOOL="$ac_cv_prog_DLLTOOL"
3171 if test -n "$DLLTOOL"; then
3172 echo "$ac_t""$DLLTOOL" 1>&6
3174 echo "$ac_t""no" 1>&6
3182 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}as; 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_AS+set}\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3189 if test -n "$AS"; then
3190 ac_cv_prog_AS="$AS" # 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_AS="${ac_tool_prefix}as"
3205 if test -n "$AS"; then
3206 echo "$ac_t""$AS" 1>&6
3208 echo "$ac_t""no" 1>&6
3212 if test -z "$ac_cv_prog_AS"; then
3213 if test -n "$ac_tool_prefix"; then
3214 # Extract the first word of "as", so it can be a program name with args.
3215 set dummy as; ac_word=$2
3216 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3217 echo "configure:3218: checking for $ac_word" >&5
3218 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3219 echo $ac_n "(cached) $ac_c" 1>&6
3221 if test -n "$AS"; then
3222 ac_cv_prog_AS="$AS" # Let the user override the test.
3224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3226 for ac_dir in $ac_dummy; do
3227 test -z "$ac_dir" && ac_dir=.
3228 if test -f $ac_dir/$ac_word; then
3234 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3238 if test -n "$AS"; then
3239 echo "$ac_t""$AS" 1>&6
3241 echo "$ac_t""no" 1>&6
3249 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3250 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3251 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3252 echo "configure:3253: checking for $ac_word" >&5
3253 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3256 if test -n "$OBJDUMP"; then
3257 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3259 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3261 for ac_dir in $ac_dummy; do
3262 test -z "$ac_dir" && ac_dir=.
3263 if test -f $ac_dir/$ac_word; then
3264 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3271 OBJDUMP="$ac_cv_prog_OBJDUMP"
3272 if test -n "$OBJDUMP"; then
3273 echo "$ac_t""$OBJDUMP" 1>&6
3275 echo "$ac_t""no" 1>&6
3279 if test -z "$ac_cv_prog_OBJDUMP"; then
3280 if test -n "$ac_tool_prefix"; then
3281 # Extract the first word of "objdump", so it can be a program name with args.
3282 set dummy objdump; ac_word=$2
3283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3284 echo "configure:3285: checking for $ac_word" >&5
3285 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 if test -n "$OBJDUMP"; then
3289 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3293 for ac_dir in $ac_dummy; do
3294 test -z "$ac_dir" && ac_dir=.
3295 if test -f $ac_dir/$ac_word; then
3296 ac_cv_prog_OBJDUMP="objdump"
3301 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3304 OBJDUMP="$ac_cv_prog_OBJDUMP"
3305 if test -n "$OBJDUMP"; then
3306 echo "$ac_t""$OBJDUMP" 1>&6
3308 echo "$ac_t""no" 1>&6
3321 # Save cache, so that ltconfig can load it
3324 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3325 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3326 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3327 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3328 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3329 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3330 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3331 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3333 # Reload cache, that may have been modified by ltconfig
3336 # This can be used to rebuild libtool when needed
3337 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3339 # Always use our own libtool.
3340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3342 # Redirect the config.log output again, so that the ltconfig log is not
3343 # clobbered by the next message.
3344 exec 5>>./config.log
3347 for ac_prog in mawk gawk nawk awk
3349 # Extract the first word of "$ac_prog", so it can be a program name with args.
3350 set dummy $ac_prog; ac_word=$2
3351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3352 echo "configure:3353: checking for $ac_word" >&5
3353 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 if test -n "$AWK"; then
3357 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3359 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3361 for ac_dir in $ac_dummy; do
3362 test -z "$ac_dir" && ac_dir=.
3363 if test -f $ac_dir/$ac_word; then
3364 ac_cv_prog_AWK="$ac_prog"
3371 AWK="$ac_cv_prog_AWK"
3372 if test -n "$AWK"; then
3373 echo "$ac_t""$AWK" 1>&6
3375 echo "$ac_t""no" 1>&6
3378 test -n "$AWK" && break
3381 # test for ln hardlink support
3382 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3383 echo "configure:3384: checking whether ln works" >&5
3384 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 rm -f conftest.src conftest.dst
3388 echo "conftest" > conftest.src
3389 if ln conftest.src conftest.dst 2>/dev/null
3391 ol_cv_prog_LN_H="ln"
3393 ol_cv_prog_LN_H="cp"
3395 rm -f conftest.src conftest.dst
3398 LN_H="$ol_cv_prog_LN_H"
3399 if test "$ol_cv_prog_LN_H" = "ln"; then
3400 echo "$ac_t""yes" 1>&6
3402 echo "$ac_t""no" 1>&6
3405 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3406 echo "configure:3407: checking whether ln -s works" >&5
3407 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3411 if ln -s X conftestdata 2>/dev/null
3414 ac_cv_prog_LN_S="ln -s"
3419 LN_S="$ac_cv_prog_LN_S"
3420 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3421 echo "$ac_t""yes" 1>&6
3423 echo "$ac_t""no" 1>&6
3427 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3431 # Extract the first word of "sendmail", so it can be a program name with args.
3432 set dummy sendmail; ac_word=$2
3433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3434 echo "configure:3435: checking for $ac_word" >&5
3435 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3440 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3443 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3447 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3448 for ac_dir in $ac_dummy; do
3449 test -z "$ac_dir" && ac_dir=.
3450 if test -f $ac_dir/$ac_word; then
3451 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3456 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3460 SENDMAIL="$ac_cv_path_SENDMAIL"
3461 if test -n "$SENDMAIL"; then
3462 echo "$ac_t""$SENDMAIL" 1>&6
3464 echo "$ac_t""no" 1>&6
3467 # Extract the first word of "vi", so it can be a program name with args.
3468 set dummy vi; ac_word=$2
3469 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3470 echo "configure:3471: checking for $ac_word" >&5
3471 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3472 echo $ac_n "(cached) $ac_c" 1>&6
3476 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3479 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3483 ac_dummy="$PATH:/usr/ucb"
3484 for ac_dir in $ac_dummy; do
3485 test -z "$ac_dir" && ac_dir=.
3486 if test -f $ac_dir/$ac_word; then
3487 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3492 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3496 EDITOR="$ac_cv_path_EDITOR"
3497 if test -n "$EDITOR"; then
3498 echo "$ac_t""$EDITOR" 1>&6
3500 echo "$ac_t""no" 1>&6
3503 # Extract the first word of "finger", so it can be a program name with args.
3504 set dummy finger; ac_word=$2
3505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3506 echo "configure:3507: checking for $ac_word" >&5
3507 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3512 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3515 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3519 ac_dummy="$PATH:/usr/ucb"
3520 for ac_dir in $ac_dummy; do
3521 test -z "$ac_dir" && ac_dir=.
3522 if test -f $ac_dir/$ac_word; then
3523 ac_cv_path_FINGER="$ac_dir/$ac_word"
3528 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3532 FINGER="$ac_cv_path_FINGER"
3533 if test -n "$FINGER"; then
3534 echo "$ac_t""$FINGER" 1>&6
3536 echo "$ac_t""no" 1>&6
3541 if test $ol_enable_perl != no ; then
3542 # Extract the first word of "perl", so it can be a program name with args.
3543 set dummy perl; ac_word=$2
3544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3545 echo "configure:3546: checking for $ac_word" >&5
3546 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3551 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3554 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3559 for ac_dir in $ac_dummy; do
3560 test -z "$ac_dir" && ac_dir=.
3561 if test -f $ac_dir/$ac_word; then
3562 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3567 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3571 PERLBIN="$ac_cv_path_PERLBIN"
3572 if test -n "$PERLBIN"; then
3573 echo "$ac_t""$PERLBIN" 1>&6
3575 echo "$ac_t""no" 1>&6
3579 if test "no$PERLBIN" = "no" ; then
3580 if test $ol_enable_perl = yes ; then
3581 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3585 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3586 if test x"$ol_with_perl_module" = "xstatic" ; then
3587 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3589 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3595 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3596 echo "configure:3597: checking how to run the C preprocessor" >&5
3597 # On Suns, sometimes $CPP names a directory.
3598 if test -n "$CPP" && test -d "$CPP"; then
3601 if test -z "$CPP"; then
3602 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3603 echo $ac_n "(cached) $ac_c" 1>&6
3605 # This must be in double quotes, not single quotes, because CPP may get
3606 # substituted into the Makefile and "${CC-cc}" will confuse make.
3608 # On the NeXT, cc -E runs the code through the compiler's parser,
3609 # not just through cpp.
3610 cat > conftest.$ac_ext <<EOF
3611 #line 3612 "configure"
3612 #include "confdefs.h"
3616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3617 { (eval echo configure:3618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3619 if test -z "$ac_err"; then
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3626 CPP="${CC-cc} -E -traditional-cpp"
3627 cat > conftest.$ac_ext <<EOF
3628 #line 3629 "configure"
3629 #include "confdefs.h"
3633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3634 { (eval echo configure:3635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3636 if test -z "$ac_err"; then
3640 echo "configure: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3643 CPP="${CC-cc} -nologo -E"
3644 cat > conftest.$ac_ext <<EOF
3645 #line 3646 "configure"
3646 #include "confdefs.h"
3650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3651 { (eval echo configure:3652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3653 if test -z "$ac_err"; then
3657 echo "configure: failed program was:" >&5
3658 cat conftest.$ac_ext >&5
3667 ac_cv_prog_CPP="$CPP"
3669 CPP="$ac_cv_prog_CPP"
3671 ac_cv_prog_CPP="$CPP"
3673 echo "$ac_t""$CPP" 1>&6
3676 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3677 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3679 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3680 echo "configure: warning: programs compiled here do run here..." 1>&2
3681 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3683 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3684 echo "configure: warning: programs compiled here do not run here..." 1>&2
3685 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3688 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3689 echo "configure:3690: checking for AIX" >&5
3690 cat > conftest.$ac_ext <<EOF
3691 #line 3692 "configure"
3692 #include "confdefs.h"
3698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3699 egrep "yes" >/dev/null 2>&1; then
3701 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3702 #define _ALL_SOURCE 1
3707 echo "$ac_t""no" 1>&6
3712 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3713 echo "configure:3714: checking for POSIXized ISC" >&5
3714 if test -d /etc/conf/kconfig.d &&
3715 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3717 echo "$ac_t""yes" 1>&6
3718 ISC=yes # If later tests want to check for ISC.
3719 cat >> confdefs.h <<\EOF
3720 #define _POSIX_SOURCE 1
3723 if test "$GCC" = yes; then
3729 echo "$ac_t""no" 1>&6
3733 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3734 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3735 echo "configure:3736: checking for minix/config.h" >&5
3736 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <minix/config.h>
3744 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3745 { (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3746 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3747 if test -z "$ac_err"; then
3749 eval "ac_cv_header_$ac_safe=yes"
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3755 eval "ac_cv_header_$ac_safe=no"
3759 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3763 echo "$ac_t""no" 1>&6
3767 if test "$MINIX" = yes; then
3768 cat >> confdefs.h <<\EOF
3769 #define _POSIX_SOURCE 1
3772 cat >> confdefs.h <<\EOF
3773 #define _POSIX_1_SOURCE 2
3776 cat >> confdefs.h <<\EOF
3783 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3784 echo "configure:3785: checking for Cygwin environment" >&5
3785 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3795 #define __CYGWIN__ __CYGWIN32__
3800 if { (eval echo configure:3801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3812 echo "$ac_t""$ac_cv_cygwin" 1>&6
3814 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3815 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3816 echo "configure:3817: checking for mingw32 environment" >&5
3817 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3818 echo $ac_n "(cached) $ac_c" 1>&6
3820 cat > conftest.$ac_ext <<EOF
3821 #line 3822 "configure"
3822 #include "confdefs.h"
3828 if { (eval echo configure:3829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3832 echo "configure: failed program was:" >&5
3833 cat conftest.$ac_ext >&5
3840 echo "$ac_t""$ac_cv_mingw32" 1>&6
3842 test "$ac_cv_mingw32" = yes && MINGW32=yes
3843 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3844 echo "configure:3845: checking for EMX OS/2 environment" >&5
3845 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3846 echo $ac_n "(cached) $ac_c" 1>&6
3848 cat > conftest.$ac_ext <<EOF
3849 #line 3850 "configure"
3850 #include "confdefs.h"
3856 if { (eval echo configure:3857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3868 echo "$ac_t""$ac_cv_emxos2" 1>&6
3870 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3874 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3875 echo "configure:3876: checking for executable suffix" >&5
3876 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3877 echo $ac_n "(cached) $ac_c" 1>&6
3879 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3883 echo 'int main () { return 0; }' > conftest.$ac_ext
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3886 for file in conftest.*; do
3888 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3889 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3893 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3896 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3901 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3902 echo "$ac_t""${ac_cv_exeext}" 1>&6
3905 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3906 echo "configure:3907: checking for object suffix" >&5
3907 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3911 echo 'int i = 1;' > conftest.$ac_ext
3912 if { (eval echo configure:3913: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3913 for ac_file in conftest.*; do
3916 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3920 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3925 echo "$ac_t""$ac_cv_objext" 1>&6
3926 OBJEXT=$ac_cv_objext
3927 ac_objext=$ac_cv_objext
3930 cat >> confdefs.h <<EOF
3931 #define EXEEXT "${EXEEXT}"
3935 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3936 echo "configure:3937: checking for be_app in -lbe" >&5
3937 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 ac_save_LIBS="$LIBS"
3942 LIBS="-lbe -lroot -lnet $LIBS"
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* Override any gcc2 internal prototype to avoid an error. */
3947 /* We use char because int might match the return type of a gcc2
3948 builtin and then its argument prototype would still apply. */
3955 if { (eval echo configure:3956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3957 eval "ac_cv_lib_$ac_lib_var=yes"
3959 echo "configure: failed program was:" >&5
3960 cat conftest.$ac_ext >&5
3962 eval "ac_cv_lib_$ac_lib_var=no"
3965 LIBS="$ac_save_LIBS"
3968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3969 echo "$ac_t""yes" 1>&6
3970 LIBS="$LIBS -lbe -lroot -lnet"
3972 echo "$ac_t""no" 1>&6
3980 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3981 echo "configure:3982: checking for ${CC-cc} option to accept ANSI C" >&5
3982 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3985 am_cv_prog_cc_stdc=no
3987 # Don't try gcc -ansi; that turns off useful extensions and
3988 # breaks some systems' header files.
3989 # AIX -qlanglvl=ansi
3990 # Ultrix and OSF/1 -std1
3991 # HP-UX 10.20 and later -Ae
3992 # HP-UX older versions -Aa -D_HPUX_SOURCE
3993 # SVR4 -Xc -D__EXTENSIONS__
3994 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3996 CC="$ac_save_CC $ac_arg"
3997 cat > conftest.$ac_ext <<EOF
3998 #line 3999 "configure"
3999 #include "confdefs.h"
4002 #include <sys/types.h>
4003 #include <sys/stat.h>
4004 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4005 struct buf { int x; };
4006 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4007 static char *e (p, i)
4013 static char *f (char * (*g) (char **, int), char **p, ...)
4018 s = g (p, va_arg (v,int));
4022 int test (int i, double x);
4023 struct s1 {int (*f) (int a);};
4024 struct s2 {int (*f) (double a);};
4025 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4031 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4035 if { (eval echo configure:4036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4037 am_cv_prog_cc_stdc="$ac_arg"; break
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4048 if test -z "$am_cv_prog_cc_stdc"; then
4049 echo "$ac_t""none needed" 1>&6
4051 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4053 case "x$am_cv_prog_cc_stdc" in
4055 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4058 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4059 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4062 # test for make depend flag
4065 if test -z "${MKDEP}"; then
4067 if test -z "${MKDEP_FLAGS}"; then
4068 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4069 echo "configure:4070: checking for ${OL_MKDEP} depend flag" >&5
4070 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4075 for flag in "-M" "-xM"; do
4076 cat > conftest.c <<EOF
4079 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4080 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4082 if test ! -f conftest."${ac_object}" ; then
4084 OL_MKDEP_FLAGS="$flag"
4093 echo "$ac_t""$ol_cv_mkdep" 1>&6
4096 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4101 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4106 if test "${ol_cv_mkdep}" = no ; then
4107 # this will soon become an error
4108 echo "configure: warning: do not know how to generate dependencies" 1>&2
4111 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4112 echo "configure:4113: checking for afopen in -ls" >&5
4113 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 ac_save_LIBS="$LIBS"
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 /* Override any gcc2 internal prototype to avoid an error. */
4123 /* We use char because int might match the return type of a gcc2
4124 builtin and then its argument prototype would still apply. */
4131 if { (eval echo configure:4132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4133 eval "ac_cv_lib_$ac_lib_var=yes"
4135 echo "configure: failed program was:" >&5
4136 cat conftest.$ac_ext >&5
4138 eval "ac_cv_lib_$ac_lib_var=no"
4141 LIBS="$ac_save_LIBS"
4144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4145 echo "$ac_t""yes" 1>&6
4148 cat >> confdefs.h <<\EOF
4149 #define HAVE_AIX_SECURITY 1
4154 echo "$ac_t""no" 1>&6
4159 for ac_func in getaddrinfo
4161 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4162 echo "configure:4163: checking for $ac_func" >&5
4163 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
4166 cat > conftest.$ac_ext <<EOF
4167 #line 4168 "configure"
4168 #include "confdefs.h"
4169 /* System header to define __stub macros and hopefully few prototypes,
4170 which can conflict with char $ac_func(); below. */
4172 /* Override any gcc2 internal prototype to avoid an error. */
4173 /* We use char because int might match the return type of a gcc2
4174 builtin and then its argument prototype would still apply. */
4180 /* The GNU C library defines this for functions which it implements
4181 to always fail with ENOSYS. Some functions are actually named
4182 something starting with __ and the normal name is an alias. */
4183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4191 if { (eval echo configure:4192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 eval "ac_cv_func_$ac_func=yes"
4195 echo "configure: failed program was:" >&5
4196 cat conftest.$ac_ext >&5
4198 eval "ac_cv_func_$ac_func=no"
4203 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4204 echo "$ac_t""yes" 1>&6
4205 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4206 cat >> confdefs.h <<EOF
4207 #define $ac_tr_func 1
4211 echo "$ac_t""no" 1>&6
4216 if test $ac_cv_func_getaddrinfo = no ; then
4217 if test $ol_enable_ipv6 = yes ; then
4218 { echo "configure: error: IPv6 support requires getaddrinfo()" 1>&2; exit 1; }
4223 if test $ol_enable_unix != no ; then
4224 for ac_hdr in sys/un.h
4226 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4227 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4228 echo "configure:4229: checking for $ac_hdr" >&5
4229 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4230 echo $ac_n "(cached) $ac_c" 1>&6
4232 cat > conftest.$ac_ext <<EOF
4233 #line 4234 "configure"
4234 #include "confdefs.h"
4237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4238 { (eval echo configure:4239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4240 if test -z "$ac_err"; then
4242 eval "ac_cv_header_$ac_safe=yes"
4245 echo "configure: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 eval "ac_cv_header_$ac_safe=no"
4252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4253 echo "$ac_t""yes" 1>&6
4254 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4255 cat >> confdefs.h <<EOF
4256 #define $ac_tr_hdr 1
4260 echo "$ac_t""no" 1>&6
4265 if test $ol_enable_unix = auto ; then
4266 ol_enable_unix=$ac_cv_header_sys_un_h
4267 elif test $ac_cv_header_sys_un_h = no ; then
4268 { echo "configure: error: UNIX domain support requires sys/un.h" 1>&2; exit 1; }
4273 if test $ol_enable_modules != no ; then
4274 for ac_hdr in ltdl.h
4276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4278 echo "configure:4279: checking for $ac_hdr" >&5
4279 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4288 { (eval echo configure:4289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4290 if test -z "$ac_err"; then
4292 eval "ac_cv_header_$ac_safe=yes"
4295 echo "configure: failed program was:" >&5
4296 cat conftest.$ac_ext >&5
4298 eval "ac_cv_header_$ac_safe=no"
4302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4305 cat >> confdefs.h <<EOF
4306 #define $ac_tr_hdr 1
4310 echo "$ac_t""no" 1>&6
4315 if test $ac_cv_header_ltdl_h = no ; then
4316 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4319 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4320 echo "configure:4321: checking for lt_dlinit in -lltdl" >&5
4321 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4322 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4323 echo $ac_n "(cached) $ac_c" 1>&6
4325 ac_save_LIBS="$LIBS"
4327 cat > conftest.$ac_ext <<EOF
4328 #line 4329 "configure"
4329 #include "confdefs.h"
4330 /* Override any gcc2 internal prototype to avoid an error. */
4331 /* We use char because int might match the return type of a gcc2
4332 builtin and then its argument prototype would still apply. */
4339 if { (eval echo configure:4340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4341 eval "ac_cv_lib_$ac_lib_var=yes"
4343 echo "configure: failed program was:" >&5
4344 cat conftest.$ac_ext >&5
4346 eval "ac_cv_lib_$ac_lib_var=no"
4349 LIBS="$ac_save_LIBS"
4352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4353 echo "$ac_t""yes" 1>&6
4356 cat >> confdefs.h <<\EOF
4357 #define HAVE_LIBLTDL 1
4362 echo "$ac_t""no" 1>&6
4366 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4367 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4371 ol_with_dnssrv_module=static
4372 ol_with_ldap_module=static
4373 ol_with_ldbm_module=static
4374 ol_with_passwd_module=static
4375 ol_with_perl_module=static
4376 ol_with_shell_module=static
4377 ol_with_tcl_module=static
4378 ol_with_sql_module=static
4382 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4383 echo "configure:4384: checking for EBCDIC" >&5
4384 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4393 #include <__ASCII__/generate_error.h>
4397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4398 { (eval echo configure:4399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4400 if test -z "$ac_err"; then
4402 ol_cv_cpp_ebcdic=yes
4405 echo "configure: failed program was:" >&5
4406 cat conftest.$ac_ext >&5
4413 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4414 if test $ol_cv_cpp_ebcdic = yes ; then
4415 cat >> confdefs.h <<\EOF
4416 #define HAVE_EBCDIC 1
4421 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4422 echo "configure:4423: checking for ANSI C header files" >&5
4423 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4434 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4435 { (eval echo configure:4436: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4436 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4437 if test -z "$ac_err"; then
4439 ol_cv_header_stdc=yes
4442 echo "configure: failed program was:" >&5
4443 cat conftest.$ac_ext >&5
4445 ol_cv_header_stdc=no
4449 if test $ol_cv_header_stdc = yes; then
4450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4451 cat > conftest.$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4457 egrep "memchr" >/dev/null 2>&1; then
4461 ol_cv_header_stdc=no
4467 if test $ol_cv_header_stdc = yes; then
4468 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 egrep "free" >/dev/null 2>&1; then
4479 ol_cv_header_stdc=no
4485 if test $ol_cv_header_stdc = yes; then
4486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487 if test "$cross_compiling" = yes; then
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4495 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4496 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4498 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4499 || ('j' <= (c) && (c) <= 'r') \
4500 || ('s' <= (c) && (c) <= 'z'))
4501 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4503 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4504 int main () { int i; for (i = 0; i < 256; i++)
4505 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4513 echo "configure: failed program was:" >&5
4514 cat conftest.$ac_ext >&5
4516 ol_cv_header_stdc=no
4524 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4525 if test $ol_cv_header_stdc = yes; then
4526 cat >> confdefs.h <<\EOF
4527 #define STDC_HEADERS 1
4531 ac_cv_header_stdc=disable
4534 if test $ol_cv_header_stdc != yes; then
4535 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4539 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4541 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4543 echo "configure:4544: checking for $ac_hdr that defines DIR" >&5
4544 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 #include <sys/types.h>
4556 if { (eval echo configure:4557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4558 eval "ac_cv_header_dirent_$ac_safe=yes"
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4563 eval "ac_cv_header_dirent_$ac_safe=no"
4567 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4569 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4570 cat >> confdefs.h <<EOF
4571 #define $ac_tr_hdr 1
4573 ac_header_dirent=$ac_hdr; break
4575 echo "$ac_t""no" 1>&6
4578 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4579 if test $ac_header_dirent = dirent.h; then
4580 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4581 echo "configure:4582: checking for opendir in -ldir" >&5
4582 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4583 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4584 echo $ac_n "(cached) $ac_c" 1>&6
4586 ac_save_LIBS="$LIBS"
4588 cat > conftest.$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4591 /* Override any gcc2 internal prototype to avoid an error. */
4592 /* We use char because int might match the return type of a gcc2
4593 builtin and then its argument prototype would still apply. */
4600 if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4602 eval "ac_cv_lib_$ac_lib_var=yes"
4604 echo "configure: failed program was:" >&5
4605 cat conftest.$ac_ext >&5
4607 eval "ac_cv_lib_$ac_lib_var=no"
4610 LIBS="$ac_save_LIBS"
4613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4614 echo "$ac_t""yes" 1>&6
4617 echo "$ac_t""no" 1>&6
4621 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4622 echo "configure:4623: checking for opendir in -lx" >&5
4623 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4625 echo $ac_n "(cached) $ac_c" 1>&6
4627 ac_save_LIBS="$LIBS"
4629 cat > conftest.$ac_ext <<EOF
4630 #line 4631 "configure"
4631 #include "confdefs.h"
4632 /* Override any gcc2 internal prototype to avoid an error. */
4633 /* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4641 if { (eval echo configure:4642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4643 eval "ac_cv_lib_$ac_lib_var=yes"
4645 echo "configure: failed program was:" >&5
4646 cat conftest.$ac_ext >&5
4648 eval "ac_cv_lib_$ac_lib_var=no"
4651 LIBS="$ac_save_LIBS"
4654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4655 echo "$ac_t""yes" 1>&6
4658 echo "$ac_t""no" 1>&6
4663 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4664 echo "configure:4665: checking for sys/wait.h that is POSIX.1 compatible" >&5
4665 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 #include <sys/types.h>
4672 #include <sys/wait.h>
4674 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4677 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4682 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4685 if { (eval echo configure:4686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4687 ac_cv_header_sys_wait_h=yes
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4692 ac_cv_header_sys_wait_h=no
4697 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4698 if test $ac_cv_header_sys_wait_h = yes; then
4699 cat >> confdefs.h <<\EOF
4700 #define HAVE_SYS_WAIT_H 1
4705 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4706 echo "configure:4707: checking POSIX termios" >&5
4707 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4713 #include <sys/types.h>
4715 #include <termios.h>
4717 /* SunOS 4.0.3 has termios.h but not the library calls. */
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4723 am_cv_sys_posix_termios=yes
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4728 am_cv_sys_posix_termios=no
4733 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4736 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4737 echo "configure:4738: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4738 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4739 echo $ac_n "(cached) $ac_c" 1>&6
4741 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4743 gwinsz_in_termios_h=no
4744 if test $am_cv_sys_posix_termios = yes; then
4745 cat > conftest.$ac_ext <<EOF
4746 #line 4747 "configure"
4747 #include "confdefs.h"
4748 #include <sys/types.h>
4749 # include <termios.h>
4755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4756 egrep "yes" >/dev/null 2>&1; then
4758 gwinsz_in_termios_h=yes
4764 if test $gwinsz_in_termios_h = no; then
4765 cat > conftest.$ac_ext <<EOF
4766 #line 4767 "configure"
4767 #include "confdefs.h"
4768 #include <sys/types.h>
4769 # include <sys/ioctl.h>
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 egrep "yes" >/dev/null 2>&1; then
4778 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4786 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4787 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4788 cat >> confdefs.h <<\EOF
4789 #define GWINSZ_IN_SYS_IOCTL 1
4794 if test $am_cv_sys_posix_termios = yes ; then
4795 cat >> confdefs.h <<\EOF
4796 #define HAVE_POSIX_TERMIOS 1
4847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4849 echo "configure:4850: checking for $ac_hdr" >&5
4850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4851 echo $ac_n "(cached) $ac_c" 1>&6
4853 cat > conftest.$ac_ext <<EOF
4854 #line 4855 "configure"
4855 #include "confdefs.h"
4858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4859 { (eval echo configure:4860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4861 if test -z "$ac_err"; then
4863 eval "ac_cv_header_$ac_safe=yes"
4866 echo "configure: failed program was:" >&5
4867 cat conftest.$ac_ext >&5
4869 eval "ac_cv_header_$ac_safe=no"
4873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4874 echo "$ac_t""yes" 1>&6
4875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4876 cat >> confdefs.h <<EOF
4877 #define $ac_tr_hdr 1
4881 echo "$ac_t""no" 1>&6
4888 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4889 echo "configure:4890: checking for sigset in -lV3" >&5
4890 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4891 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4892 echo $ac_n "(cached) $ac_c" 1>&6
4894 ac_save_LIBS="$LIBS"
4896 cat > conftest.$ac_ext <<EOF
4897 #line 4898 "configure"
4898 #include "confdefs.h"
4899 /* Override any gcc2 internal prototype to avoid an error. */
4900 /* We use char because int might match the return type of a gcc2
4901 builtin and then its argument prototype would still apply. */
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 V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4924 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4925 cat >> confdefs.h <<EOF
4926 #define $ac_tr_lib 1
4932 echo "$ac_t""no" 1>&6
4936 if test $ac_cv_header_winsock_h = yes; then
4937 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4938 echo "configure:4939: checking for winsock" >&5
4939 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4940 echo $ac_n "(cached) $ac_c" 1>&6
4942 cat > conftest.$ac_ext <<EOF
4943 #line 4944 "configure"
4944 #include "confdefs.h"
4945 #include <winsock.h>
4949 select(0,NULL,NULL,NULL,NULL);
4951 gethostname(NULL,0);
4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4959 echo "configure: failed program was:" >&5
4960 cat conftest.$ac_ext >&5
4967 echo "$ac_t""$ol_cv_winsock" 1>&6
4969 if test $ol_cv_winsock = yes ; then
4970 cat >> confdefs.h <<\EOF
4971 #define HAVE_WINSOCK 1
4974 ac_cv_func_socket=yes
4975 ac_cv_func_select=yes
4976 ac_cv_func_closesocket=yes
4977 ac_cv_func_gethostname=yes
4982 echo $ac_n "checking for socket""... $ac_c" 1>&6
4983 echo "configure:4984: checking for socket" >&5
4984 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4985 echo $ac_n "(cached) $ac_c" 1>&6
4987 cat > conftest.$ac_ext <<EOF
4988 #line 4989 "configure"
4989 #include "confdefs.h"
4990 /* System header to define __stub macros and hopefully few prototypes,
4991 which can conflict with char socket(); below. */
4993 /* Override any gcc2 internal prototype to avoid an error. */
4994 /* We use char because int might match the return type of a gcc2
4995 builtin and then its argument prototype would still apply. */
5001 /* The GNU C library defines this for functions which it implements
5002 to always fail with ENOSYS. Some functions are actually named
5003 something starting with __ and the normal name is an alias. */
5004 #if defined (__stub_socket) || defined (__stub___socket)
5012 if { (eval echo configure:5013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5014 eval "ac_cv_func_socket=yes"
5016 echo "configure: failed program was:" >&5
5017 cat conftest.$ac_ext >&5
5019 eval "ac_cv_func_socket=no"
5024 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5028 echo "$ac_t""no" 1>&6
5030 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5031 echo "configure:5032: checking for main in -lsocket" >&5
5032 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5034 echo $ac_n "(cached) $ac_c" 1>&6
5036 ac_save_LIBS="$LIBS"
5037 LIBS="-lsocket $LIBS"
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5046 if { (eval echo configure:5047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5048 eval "ac_cv_lib_$ac_lib_var=yes"
5050 echo "configure: failed program was:" >&5
5051 cat conftest.$ac_ext >&5
5053 eval "ac_cv_lib_$ac_lib_var=no"
5056 LIBS="$ac_save_LIBS"
5059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5060 echo "$ac_t""yes" 1>&6
5061 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5062 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5063 cat >> confdefs.h <<EOF
5064 #define $ac_tr_lib 1
5067 LIBS="-lsocket $LIBS"
5070 echo "$ac_t""no" 1>&6
5073 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5074 echo "configure:5075: checking for main in -lnet" >&5
5075 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5076 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5077 echo $ac_n "(cached) $ac_c" 1>&6
5079 ac_save_LIBS="$LIBS"
5081 cat > conftest.$ac_ext <<EOF
5082 #line 5083 "configure"
5083 #include "confdefs.h"
5089 if { (eval echo configure:5090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091 eval "ac_cv_lib_$ac_lib_var=yes"
5093 echo "configure: failed program was:" >&5
5094 cat conftest.$ac_ext >&5
5096 eval "ac_cv_lib_$ac_lib_var=no"
5099 LIBS="$ac_save_LIBS"
5102 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5103 echo "$ac_t""yes" 1>&6
5104 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5105 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5106 cat >> confdefs.h <<EOF
5107 #define $ac_tr_lib 1
5113 echo "$ac_t""no" 1>&6
5116 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5117 echo "configure:5118: checking for main in -lnsl_s" >&5
5118 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5120 echo $ac_n "(cached) $ac_c" 1>&6
5122 ac_save_LIBS="$LIBS"
5123 LIBS="-lnsl_s $LIBS"
5124 cat > conftest.$ac_ext <<EOF
5125 #line 5126 "configure"
5126 #include "confdefs.h"
5132 if { (eval echo configure:5133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5134 eval "ac_cv_lib_$ac_lib_var=yes"
5136 echo "configure: failed program was:" >&5
5137 cat conftest.$ac_ext >&5
5139 eval "ac_cv_lib_$ac_lib_var=no"
5142 LIBS="$ac_save_LIBS"
5145 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5146 echo "$ac_t""yes" 1>&6
5147 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5148 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5149 cat >> confdefs.h <<EOF
5150 #define $ac_tr_lib 1
5153 LIBS="-lnsl_s $LIBS"
5156 echo "$ac_t""no" 1>&6
5159 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5160 echo "configure:5161: checking for main in -lnsl" >&5
5161 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5162 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5163 echo $ac_n "(cached) $ac_c" 1>&6
5165 ac_save_LIBS="$LIBS"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 eval "ac_cv_lib_$ac_lib_var=yes"
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5182 eval "ac_cv_lib_$ac_lib_var=no"
5185 LIBS="$ac_save_LIBS"
5188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5189 echo "$ac_t""yes" 1>&6
5190 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5192 cat >> confdefs.h <<EOF
5193 #define $ac_tr_lib 1
5199 echo "$ac_t""no" 1>&6
5202 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5203 echo "configure:5204: checking for socket in -linet" >&5
5204 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5205 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 ac_save_LIBS="$LIBS"
5210 cat > conftest.$ac_ext <<EOF
5211 #line 5212 "configure"
5212 #include "confdefs.h"
5213 /* Override any gcc2 internal prototype to avoid an error. */
5214 /* We use char because int might match the return type of a gcc2
5215 builtin and then its argument prototype would still apply. */
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5224 eval "ac_cv_lib_$ac_lib_var=yes"
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5229 eval "ac_cv_lib_$ac_lib_var=no"
5232 LIBS="$ac_save_LIBS"
5235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5236 echo "$ac_t""yes" 1>&6
5237 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5238 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5239 cat >> confdefs.h <<EOF
5240 #define $ac_tr_lib 1
5246 echo "$ac_t""no" 1>&6
5249 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5250 echo "configure:5251: checking for main in -lgen" >&5
5251 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5253 echo $ac_n "(cached) $ac_c" 1>&6
5255 ac_save_LIBS="$LIBS"
5257 cat > conftest.$ac_ext <<EOF
5258 #line 5259 "configure"
5259 #include "confdefs.h"
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5267 eval "ac_cv_lib_$ac_lib_var=yes"
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5272 eval "ac_cv_lib_$ac_lib_var=no"
5275 LIBS="$ac_save_LIBS"
5278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5279 echo "$ac_t""yes" 1>&6
5280 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5281 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5282 cat >> confdefs.h <<EOF
5283 #define $ac_tr_lib 1
5289 echo "$ac_t""no" 1>&6
5296 echo $ac_n "checking for select""... $ac_c" 1>&6
5297 echo "configure:5298: checking for select" >&5
5298 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5301 cat > conftest.$ac_ext <<EOF
5302 #line 5303 "configure"
5303 #include "confdefs.h"
5304 /* System header to define __stub macros and hopefully few prototypes,
5305 which can conflict with char select(); below. */
5307 /* Override any gcc2 internal prototype to avoid an error. */
5308 /* We use char because int might match the return type of a gcc2
5309 builtin and then its argument prototype would still apply. */
5315 /* The GNU C library defines this for functions which it implements
5316 to always fail with ENOSYS. Some functions are actually named
5317 something starting with __ and the normal name is an alias. */
5318 #if defined (__stub_select) || defined (__stub___select)
5326 if { (eval echo configure:5327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5328 eval "ac_cv_func_select=yes"
5330 echo "configure: failed program was:" >&5
5331 cat conftest.$ac_ext >&5
5333 eval "ac_cv_func_select=no"
5338 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5339 echo "$ac_t""yes" 1>&6
5342 echo "$ac_t""no" 1>&6
5343 { echo "configure: error: select() required." 1>&2; exit 1; }
5347 if test "${ac_cv_header_winsock_h}" != yes; then
5348 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5349 echo "configure:5350: checking types of arguments for select()" >&5
5350 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6
5353 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5354 echo $ac_n "(cached) $ac_c" 1>&6
5356 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5357 echo $ac_n "(cached) $ac_c" 1>&6
5359 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5360 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5361 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5365 #ifdef HAVE_SYS_TYPES_H
5366 #include <sys/types.h>
5368 #ifdef HAVE_SYS_TIME_H
5369 #include <sys/time.h>
5371 #ifdef HAVE_SYS_SELECT_H
5372 #include <sys/select.h>
5374 #ifdef HAVE_SYS_SOCKET_H
5375 #include <sys/socket.h>
5377 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);
5382 if { (eval echo configure:5383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5384 ac_not_found=no ; break 3
5386 echo "configure: failed program was:" >&5
5387 cat conftest.$ac_ext >&5
5401 if test "$ac_not_found" = yes; then
5402 ac_cv_func_select_arg1=int
5403 ac_cv_func_select_arg234='int *'
5404 ac_cv_func_select_arg5='struct timeval *'
5406 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5407 cat >> confdefs.h <<EOF
5408 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5411 cat >> confdefs.h <<EOF
5412 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5415 cat >> confdefs.h <<EOF
5416 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5423 for ac_hdr in regex.h
5425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5427 echo "configure:5428: checking for $ac_hdr" >&5
5428 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5429 echo $ac_n "(cached) $ac_c" 1>&6
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5437 { (eval echo configure:5438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5439 if test -z "$ac_err"; then
5441 eval "ac_cv_header_$ac_safe=yes"
5444 echo "configure: failed program was:" >&5
5445 cat conftest.$ac_ext >&5
5447 eval "ac_cv_header_$ac_safe=no"
5451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5452 echo "$ac_t""yes" 1>&6
5453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5454 cat >> confdefs.h <<EOF
5455 #define $ac_tr_hdr 1
5459 echo "$ac_t""no" 1>&6
5463 if test "$ac_cv_header_regex_h" != yes ; then
5464 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5466 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5467 echo "configure:5468: checking for regfree" >&5
5468 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 cat > conftest.$ac_ext <<EOF
5472 #line 5473 "configure"
5473 #include "confdefs.h"
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char regfree(); below. */
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5485 /* The GNU C library defines this for functions which it implements
5486 to always fail with ENOSYS. Some functions are actually named
5487 something starting with __ and the normal name is an alias. */
5488 #if defined (__stub_regfree) || defined (__stub___regfree)
5496 if { (eval echo configure:5497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5498 eval "ac_cv_func_regfree=yes"
5500 echo "configure: failed program was:" >&5
5501 cat conftest.$ac_ext >&5
5503 eval "ac_cv_func_regfree=no"
5508 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5509 echo "$ac_t""yes" 1>&6
5512 echo "$ac_t""no" 1>&6
5513 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5518 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5519 echo "configure:5520: checking for compatible POSIX regex" >&5
5520 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5524 if test "$cross_compiling" = yes; then
5525 ol_cv_c_posix_regex=cross
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5531 #include <sys/types.h>
5533 static char *pattern, *string;
5541 if(regcomp(&re, pattern, 0)) {
5545 string = "ALL MATCH";
5547 rc = regexec(&re, string, 0, (void*)0, 0);
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5556 ol_cv_c_posix_regex=yes
5558 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5
5561 ol_cv_c_posix_regex=no
5568 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5570 if test "$ol_cv_c_posix_regex" = no ; then
5571 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5575 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5576 echo "configure:5577: checking for res_query" >&5
5577 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 /* System header to define __stub macros and hopefully few prototypes,
5584 which can conflict with char res_query(); below. */
5586 /* Override any gcc2 internal prototype to avoid an error. */
5587 /* We use char because int might match the return type of a gcc2
5588 builtin and then its argument prototype would still apply. */
5594 /* The GNU C library defines this for functions which it implements
5595 to always fail with ENOSYS. Some functions are actually named
5596 something starting with __ and the normal name is an alias. */
5597 #if defined (__stub_res_query) || defined (__stub___res_query)
5605 if { (eval echo configure:5606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5607 eval "ac_cv_func_res_query=yes"
5609 echo "configure: failed program was:" >&5
5610 cat conftest.$ac_ext >&5
5612 eval "ac_cv_func_res_query=no"
5617 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5618 echo "$ac_t""yes" 1>&6
5621 echo "$ac_t""no" 1>&6
5624 if test $ac_cv_func_res_query = no ; then
5625 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5626 echo "configure:5627: checking for res_query in -lbind" >&5
5627 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5629 echo $ac_n "(cached) $ac_c" 1>&6
5631 ac_save_LIBS="$LIBS"
5633 cat > conftest.$ac_ext <<EOF
5634 #line 5635 "configure"
5635 #include "confdefs.h"
5636 /* Override any gcc2 internal prototype to avoid an error. */
5637 /* We use char because int might match the return type of a gcc2
5638 builtin and then its argument prototype would still apply. */
5645 if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5647 eval "ac_cv_lib_$ac_lib_var=yes"
5649 echo "configure: failed program was:" >&5
5650 cat conftest.$ac_ext >&5
5652 eval "ac_cv_lib_$ac_lib_var=no"
5655 LIBS="$ac_save_LIBS"
5658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5659 echo "$ac_t""yes" 1>&6
5660 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5661 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5662 cat >> confdefs.h <<EOF
5663 #define $ac_tr_lib 1
5669 echo "$ac_t""no" 1>&6
5672 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5675 if test $ac_cv_func_res_query = no ; then
5676 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5677 echo "configure:5678: checking for __res_query in -lbind" >&5
5678 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5679 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5680 echo $ac_n "(cached) $ac_c" 1>&6
5682 ac_save_LIBS="$LIBS"
5684 cat > conftest.$ac_ext <<EOF
5685 #line 5686 "configure"
5686 #include "confdefs.h"
5687 /* Override any gcc2 internal prototype to avoid an error. */
5688 /* We use char because int might match the return type of a gcc2
5689 builtin and then its argument prototype would still apply. */
5696 if { (eval echo configure:5697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5698 eval "ac_cv_lib_$ac_lib_var=yes"
5700 echo "configure: failed program was:" >&5
5701 cat conftest.$ac_ext >&5
5703 eval "ac_cv_lib_$ac_lib_var=no"
5706 LIBS="$ac_save_LIBS"
5709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5710 echo "$ac_t""yes" 1>&6
5711 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5712 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5713 cat >> confdefs.h <<EOF
5714 #define $ac_tr_lib 1
5720 echo "$ac_t""no" 1>&6
5723 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5726 if test $ac_cv_func_res_query = no ; then
5727 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5728 echo "configure:5729: checking for res_query in -lresolv" >&5
5729 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5730 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5731 echo $ac_n "(cached) $ac_c" 1>&6
5733 ac_save_LIBS="$LIBS"
5734 LIBS="-lresolv $LIBS"
5735 cat > conftest.$ac_ext <<EOF
5736 #line 5737 "configure"
5737 #include "confdefs.h"
5738 /* Override any gcc2 internal prototype to avoid an error. */
5739 /* We use char because int might match the return type of a gcc2
5740 builtin and then its argument prototype would still apply. */
5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5749 eval "ac_cv_lib_$ac_lib_var=yes"
5751 echo "configure: failed program was:" >&5
5752 cat conftest.$ac_ext >&5
5754 eval "ac_cv_lib_$ac_lib_var=no"
5757 LIBS="$ac_save_LIBS"
5760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5761 echo "$ac_t""yes" 1>&6
5762 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5763 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5764 cat >> confdefs.h <<EOF
5765 #define $ac_tr_lib 1
5768 LIBS="-lresolv $LIBS"
5771 echo "$ac_t""no" 1>&6
5774 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5777 if test "$ac_cv_func_res_query" = yes ; then
5778 cat >> confdefs.h <<\EOF
5779 #define HAVE_RES_QUERY 1
5783 if test $ol_enable_dnssrv != no ; then
5788 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5789 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5792 if test $ol_enable_quipu != no ; then
5793 for ac_hdr in quipu/commonarg.h
5795 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5796 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5797 echo "configure:5798: checking for $ac_hdr" >&5
5798 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5799 echo $ac_n "(cached) $ac_c" 1>&6
5801 cat > conftest.$ac_ext <<EOF
5802 #line 5803 "configure"
5803 #include "confdefs.h"
5806 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5807 { (eval echo configure:5808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5808 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5809 if test -z "$ac_err"; then
5811 eval "ac_cv_header_$ac_safe=yes"
5814 echo "configure: failed program was:" >&5
5815 cat conftest.$ac_ext >&5
5817 eval "ac_cv_header_$ac_safe=no"
5821 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5822 echo "$ac_t""yes" 1>&6
5823 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5824 cat >> confdefs.h <<EOF
5825 #define $ac_tr_hdr 1
5829 echo "$ac_t""no" 1>&6
5834 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5836 elif test $ol_enable_quipu = auto ; then
5837 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5839 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5848 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5849 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5851 for ac_hdr in krb5.h
5853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5855 echo "configure:5856: checking for $ac_hdr" >&5
5856 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5857 echo $ac_n "(cached) $ac_c" 1>&6
5859 cat > conftest.$ac_ext <<EOF
5860 #line 5861 "configure"
5861 #include "confdefs.h"
5864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5865 { (eval echo configure:5866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5867 if test -z "$ac_err"; then
5869 eval "ac_cv_header_$ac_safe=yes"
5872 echo "configure: failed program was:" >&5
5873 cat conftest.$ac_ext >&5
5875 eval "ac_cv_header_$ac_safe=no"
5879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5880 echo "$ac_t""yes" 1>&6
5881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5882 cat >> confdefs.h <<EOF
5883 #define $ac_tr_hdr 1
5887 echo "$ac_t""no" 1>&6
5892 if test $ac_cv_header_krb5_h = yes ; then
5893 for ac_hdr in heim_err.h
5895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5897 echo "configure:5898: checking for $ac_hdr" >&5
5898 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5899 echo $ac_n "(cached) $ac_c" 1>&6
5901 cat > conftest.$ac_ext <<EOF
5902 #line 5903 "configure"
5903 #include "confdefs.h"
5906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5907 { (eval echo configure:5908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5909 if test -z "$ac_err"; then
5911 eval "ac_cv_header_$ac_safe=yes"
5914 echo "configure: failed program was:" >&5
5915 cat conftest.$ac_ext >&5
5917 eval "ac_cv_header_$ac_safe=no"
5921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5922 echo "$ac_t""yes" 1>&6
5923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5924 cat >> confdefs.h <<EOF
5925 #define $ac_tr_hdr 1
5929 echo "$ac_t""no" 1>&6
5933 if test $ac_cv_header_heim_err_h = yes ; then
5939 if test $krb5_impl = mit; then
5940 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5941 echo "configure:5942: checking for main in -lkrb5" >&5
5942 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5943 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5944 echo $ac_n "(cached) $ac_c" 1>&6
5946 ac_save_LIBS="$LIBS"
5947 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5956 if { (eval echo configure:5957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5958 eval "ac_cv_lib_$ac_lib_var=yes"
5960 echo "configure: failed program was:" >&5
5961 cat conftest.$ac_ext >&5
5963 eval "ac_cv_lib_$ac_lib_var=no"
5966 LIBS="$ac_save_LIBS"
5969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5970 echo "$ac_t""yes" 1>&6
5972 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
5974 echo "$ac_t""no" 1>&6
5979 elif test $krb5_impl = heimdal; then
5980 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5981 echo "configure:5982: checking for main in -lkrb5" >&5
5982 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 ac_save_LIBS="$LIBS"
5987 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
5988 cat > conftest.$ac_ext <<EOF
5989 #line 5990 "configure"
5990 #include "confdefs.h"
5996 if { (eval echo configure:5997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5998 eval "ac_cv_lib_$ac_lib_var=yes"
6000 echo "configure: failed program was:" >&5
6001 cat conftest.$ac_ext >&5
6003 eval "ac_cv_lib_$ac_lib_var=no"
6006 LIBS="$ac_save_LIBS"
6009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6010 echo "$ac_t""yes" 1>&6
6012 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6014 echo "$ac_t""no" 1>&6
6019 cat >> confdefs.h <<\EOF
6020 #define HAVE_HEIMDAL_KERBEROS 1
6025 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6028 if test $have_krb5 = yes ; then
6031 cat >> confdefs.h <<\EOF
6036 if test $ol_enable_kpasswd != no ; then
6037 ol_link_kpasswd=yes;
6040 if test $ol_with_kerberos = k5only ; then
6041 ol_with_kerberos=found
6044 elif test $ol_with_kerberos != auto ; then
6045 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6051 if test $ol_link_krb5 = yes -a \
6052 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6054 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6058 echo "configure:6059: checking for $ac_hdr" >&5
6059 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6060 echo $ac_n "(cached) $ac_c" 1>&6
6062 cat > conftest.$ac_ext <<EOF
6063 #line 6064 "configure"
6064 #include "confdefs.h"
6067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6068 { (eval echo configure:6069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6070 if test -z "$ac_err"; then
6072 eval "ac_cv_header_$ac_safe=yes"
6075 echo "configure: failed program was:" >&5
6076 cat conftest.$ac_ext >&5
6078 eval "ac_cv_header_$ac_safe=no"
6082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6083 echo "$ac_t""yes" 1>&6
6084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6085 cat >> confdefs.h <<EOF
6086 #define $ac_tr_hdr 1
6090 echo "$ac_t""no" 1>&6
6095 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6096 if test $krb5_impl = mit; then
6097 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6098 echo "configure:6099: checking for main in -lkrb4" >&5
6099 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6100 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6101 echo $ac_n "(cached) $ac_c" 1>&6
6103 ac_save_LIBS="$LIBS"
6104 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6105 cat > conftest.$ac_ext <<EOF
6106 #line 6107 "configure"
6107 #include "confdefs.h"
6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6115 eval "ac_cv_lib_$ac_lib_var=yes"
6117 echo "configure: failed program was:" >&5
6118 cat conftest.$ac_ext >&5
6120 eval "ac_cv_lib_$ac_lib_var=no"
6123 LIBS="$ac_save_LIBS"
6126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6127 echo "$ac_t""yes" 1>&6
6129 KRB4_LIBS="-lkrb4 -ldes425"
6131 echo "$ac_t""no" 1>&6
6136 elif test $krb5_impl = heimdal; then
6137 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6138 echo "configure:6139: checking for main in -lkrb4" >&5
6139 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6140 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6141 echo $ac_n "(cached) $ac_c" 1>&6
6143 ac_save_LIBS="$LIBS"
6144 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6145 cat > conftest.$ac_ext <<EOF
6146 #line 6147 "configure"
6147 #include "confdefs.h"
6153 if { (eval echo configure:6154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6155 eval "ac_cv_lib_$ac_lib_var=yes"
6157 echo "configure: failed program was:" >&5
6158 cat conftest.$ac_ext >&5
6160 eval "ac_cv_lib_$ac_lib_var=no"
6163 LIBS="$ac_save_LIBS"
6166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6167 echo "$ac_t""yes" 1>&6
6171 echo "$ac_t""no" 1>&6
6178 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6181 if test $have_k425 = yes ; then
6182 ol_with_kerberos=found
6185 cat >> confdefs.h <<\EOF
6186 #define HAVE_KRB425 1
6189 cat >> confdefs.h <<\EOF
6194 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6195 echo "configure:6196: checking for des_debug in Kerberos libraries" >&5
6196 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6197 echo $ac_n "(cached) $ac_c" 1>&6
6201 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6202 cat > conftest.$ac_ext <<EOF
6203 #line 6204 "configure"
6204 #include "confdefs.h"
6206 #include <kerberosIV/krb.h>
6207 #include <kerberosIV/des.h>
6208 extern int des_debug;
6216 if { (eval echo configure:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6218 ol_cv_var_des_debug=yes
6220 echo "configure: failed program was:" >&5
6221 cat conftest.$ac_ext >&5
6223 ol_cv_var_des_debug=no
6230 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6232 if test $ol_cv_var_des_debug = yes ; then
6233 cat >> confdefs.h <<\EOF
6234 #define HAVE_DES_DEBUG 1
6244 if test $ol_link_krb5 = yes ; then
6245 ol_with_kerberos=found
6248 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6249 -o $ol_with_kerberos = kth ; then
6251 for ac_hdr in krb.h des.h krb-archaeology.h
6253 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6254 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6255 echo "configure:6256: checking for $ac_hdr" >&5
6256 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6257 echo $ac_n "(cached) $ac_c" 1>&6
6259 cat > conftest.$ac_ext <<EOF
6260 #line 6261 "configure"
6261 #include "confdefs.h"
6264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6265 { (eval echo configure:6266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6267 if test -z "$ac_err"; then
6269 eval "ac_cv_header_$ac_safe=yes"
6272 echo "configure: failed program was:" >&5
6273 cat conftest.$ac_ext >&5
6275 eval "ac_cv_header_$ac_safe=no"
6279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6280 echo "$ac_t""yes" 1>&6
6281 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6282 cat >> confdefs.h <<EOF
6283 #define $ac_tr_hdr 1
6287 echo "$ac_t""no" 1>&6
6292 if test $ac_cv_header_krb_h = yes ; then
6293 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6294 echo "configure:6295: checking for main in -lkrb" >&5
6295 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6297 echo $ac_n "(cached) $ac_c" 1>&6
6299 ac_save_LIBS="$LIBS"
6300 LIBS="-lkrb -ldes $LIBS"
6301 cat > conftest.$ac_ext <<EOF
6302 #line 6303 "configure"
6303 #include "confdefs.h"
6309 if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6311 eval "ac_cv_lib_$ac_lib_var=yes"
6313 echo "configure: failed program was:" >&5
6314 cat conftest.$ac_ext >&5
6316 eval "ac_cv_lib_$ac_lib_var=no"
6319 LIBS="$ac_save_LIBS"
6322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6323 echo "$ac_t""yes" 1>&6
6326 echo "$ac_t""no" 1>&6
6331 if test $have_k4 = yes ; then
6332 ol_with_kerberos=found
6335 cat >> confdefs.h <<\EOF
6340 KRB4_LIBS="-lkrb -ldes"
6342 if test $ac_cv_header_krb_archaeology_h = yes ; then
6343 cat >> confdefs.h <<\EOF
6344 #define HAVE_KTH_KERBEROS 1
6352 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6353 ol_link_kpasswd=yes;
6356 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6357 cat >> confdefs.h <<\EOF
6358 #define HAVE_KERBEROS 1
6362 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6363 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6367 if test $ol_with_tls != no ; then
6369 for ac_hdr in openssl/ssl.h ssl.h
6371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6373 echo "configure:6374: checking for $ac_hdr" >&5
6374 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 cat > conftest.$ac_ext <<EOF
6378 #line 6379 "configure"
6379 #include "confdefs.h"
6382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6383 { (eval echo configure:6384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6385 if test -z "$ac_err"; then
6387 eval "ac_cv_header_$ac_safe=yes"
6390 echo "configure: failed program was:" >&5
6391 cat conftest.$ac_ext >&5
6393 eval "ac_cv_header_$ac_safe=no"
6397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6398 echo "$ac_t""yes" 1>&6
6399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6400 cat >> confdefs.h <<EOF
6401 #define $ac_tr_hdr 1
6405 echo "$ac_t""no" 1>&6
6410 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6411 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6412 echo "configure:6413: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6413 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6414 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6415 echo $ac_n "(cached) $ac_c" 1>&6
6417 ac_save_LIBS="$LIBS"
6418 LIBS="-lssl -lcrypto $LIBS"
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6422 /* Override any gcc2 internal prototype to avoid an error. */
6423 /* We use char because int might match the return type of a gcc2
6424 builtin and then its argument prototype would still apply. */
6425 char SSLeay_add_ssl_algorithms();
6428 SSLeay_add_ssl_algorithms()
6431 if { (eval echo configure:6432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6433 eval "ac_cv_lib_$ac_lib_var=yes"
6435 echo "configure: failed program was:" >&5
6436 cat conftest.$ac_ext >&5
6438 eval "ac_cv_lib_$ac_lib_var=no"
6441 LIBS="$ac_save_LIBS"
6444 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6445 echo "$ac_t""yes" 1>&6
6449 echo "$ac_t""no" 1>&6
6454 if test $have_ssleay = no ; then
6455 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6456 echo "configure:6457: checking for SSL_library_init in -lssl" >&5
6457 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6458 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 ac_save_LIBS="$LIBS"
6462 LIBS="-lssl -lcrypto $LIBS"
6463 cat > conftest.$ac_ext <<EOF
6464 #line 6465 "configure"
6465 #include "confdefs.h"
6466 /* Override any gcc2 internal prototype to avoid an error. */
6467 /* We use char because int might match the return type of a gcc2
6468 builtin and then its argument prototype would still apply. */
6469 char SSL_library_init();
6475 if { (eval echo configure:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6477 eval "ac_cv_lib_$ac_lib_var=yes"
6479 echo "configure: failed program was:" >&5
6480 cat conftest.$ac_ext >&5
6482 eval "ac_cv_lib_$ac_lib_var=no"
6485 LIBS="$ac_save_LIBS"
6488 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6489 echo "$ac_t""yes" 1>&6
6493 echo "$ac_t""no" 1>&6
6499 if test $have_ssleay = no ; then
6500 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6501 echo "configure:6502: checking for ssl3_accept in -lssl" >&5
6502 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6503 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6504 echo $ac_n "(cached) $ac_c" 1>&6
6506 ac_save_LIBS="$LIBS"
6507 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6508 cat > conftest.$ac_ext <<EOF
6509 #line 6510 "configure"
6510 #include "confdefs.h"
6511 /* Override any gcc2 internal prototype to avoid an error. */
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6520 if { (eval echo configure:6521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522 eval "ac_cv_lib_$ac_lib_var=yes"
6524 echo "configure: failed program was:" >&5
6525 cat conftest.$ac_ext >&5
6527 eval "ac_cv_lib_$ac_lib_var=no"
6530 LIBS="$ac_save_LIBS"
6533 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6534 echo "$ac_t""yes" 1>&6
6538 echo "$ac_t""no" 1>&6
6544 if test $have_ssleay = yes ; then
6548 cat >> confdefs.h <<\EOF
6549 #define HAVE_SSLEAY 1
6553 if test $need_rsaref = yes; then
6554 cat >> confdefs.h <<\EOF
6555 #define HAVE_RSAREF 1
6559 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6561 TLS_LIBS="-lssl -lcrypto"
6567 if test $ol_link_tls = yes ; then
6568 cat >> confdefs.h <<\EOF
6576 gethostbyname_r gethostbyaddr_r \
6579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6580 echo "configure:6581: checking for $ac_func" >&5
6581 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6582 echo $ac_n "(cached) $ac_c" 1>&6
6584 cat > conftest.$ac_ext <<EOF
6585 #line 6586 "configure"
6586 #include "confdefs.h"
6587 /* System header to define __stub macros and hopefully few prototypes,
6588 which can conflict with char $ac_func(); below. */
6590 /* Override any gcc2 internal prototype to avoid an error. */
6591 /* We use char because int might match the return type of a gcc2
6592 builtin and then its argument prototype would still apply. */
6598 /* The GNU C library defines this for functions which it implements
6599 to always fail with ENOSYS. Some functions are actually named
6600 something starting with __ and the normal name is an alias. */
6601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6609 if { (eval echo configure:6610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6611 eval "ac_cv_func_$ac_func=yes"
6613 echo "configure: failed program was:" >&5
6614 cat conftest.$ac_ext >&5
6616 eval "ac_cv_func_$ac_func=no"
6621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6622 echo "$ac_t""yes" 1>&6
6623 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6624 cat >> confdefs.h <<EOF
6625 #define $ac_tr_func 1
6629 echo "$ac_t""no" 1>&6
6634 if test "$ac_cv_func_ctime_r" = no ; then
6635 ol_cv_func_ctime_r_nargs=0
6637 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6638 echo "configure:6639: checking number of arguments of ctime_r" >&5
6639 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6640 echo $ac_n "(cached) $ac_c" 1>&6
6642 cat > conftest.$ac_ext <<EOF
6643 #line 6644 "configure"
6644 #include "confdefs.h"
6647 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6650 if { (eval echo configure:6651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6652 ol_cv_func_ctime_r_nargs3=yes
6654 echo "configure: failed program was:" >&5
6655 cat conftest.$ac_ext >&5
6657 ol_cv_func_ctime_r_nargs3=no
6661 cat > conftest.$ac_ext <<EOF
6662 #line 6663 "configure"
6663 #include "confdefs.h"
6666 time_t ti; char *buffer; ctime_r(&ti,buffer);
6669 if { (eval echo configure:6670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6671 ol_cv_func_ctime_r_nargs2=yes
6673 echo "configure: failed program was:" >&5
6674 cat conftest.$ac_ext >&5
6676 ol_cv_func_ctime_r_nargs2=no
6680 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6681 $ol_cv_func_ctime_r_nargs2 = no ; then
6683 ol_cv_func_ctime_r_nargs=3
6685 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6686 $ol_cv_func_ctime_r_nargs2 = yes ; then
6688 ol_cv_func_ctime_r_nargs=2
6691 ol_cv_func_ctime_r_nargs=0
6696 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6698 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6699 cat >> confdefs.h <<EOF
6700 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6707 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6708 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6709 echo "configure:6710: checking number of arguments of gethostbyname_r" >&5
6710 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6716 #include <sys/types.h>
6717 #include <sys/socket.h>
6718 #include <netinet/in.h>
6720 #define BUFSIZE (sizeof(struct hostent)+10)
6722 struct hostent hent; char buffer[BUFSIZE];
6723 int bufsize=BUFSIZE;int h_errno;
6724 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6725 buffer, bufsize, &h_errno);
6728 if { (eval echo configure:6729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6730 ol_cv_func_gethostbyname_r_nargs5=yes
6732 echo "configure: failed program was:" >&5
6733 cat conftest.$ac_ext >&5
6735 ol_cv_func_gethostbyname_r_nargs5=no
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 #include <sys/types.h>
6743 #include <sys/socket.h>
6744 #include <netinet/in.h>
6746 #define BUFSIZE (sizeof(struct hostent)+10)
6748 struct hostent hent;struct hostent *rhent;
6749 char buffer[BUFSIZE];
6750 int bufsize=BUFSIZE;int h_errno;
6751 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6755 if { (eval echo configure:6756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6757 ol_cv_func_gethostbyname_r_nargs6=yes
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 ol_cv_func_gethostbyname_r_nargs6=no
6766 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6767 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6769 ol_cv_func_gethostbyname_r_nargs=5
6771 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6772 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6774 ol_cv_func_gethostbyname_r_nargs=6
6777 ol_cv_func_gethostbyname_r_nargs=0
6782 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6783 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6784 cat >> confdefs.h <<EOF
6785 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6791 ol_cv_func_gethostbyname_r_nargs=0
6794 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6795 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6796 echo "configure:6797: checking number of arguments of gethostbyaddr_r" >&5
6797 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6798 echo $ac_n "(cached) $ac_c" 1>&6
6800 cat > conftest.$ac_ext <<EOF
6801 #line 6802 "configure"
6802 #include "confdefs.h"
6803 #include <sys/types.h>
6804 #include <sys/socket.h>
6805 #include <netinet/in.h>
6807 #define BUFSIZE (sizeof(struct hostent)+10)
6809 struct hostent hent; char buffer[BUFSIZE];
6811 size_t alen=sizeof(struct in_addr);
6812 int bufsize=BUFSIZE;int h_errno;
6813 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6814 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6817 if { (eval echo configure:6818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6819 ol_cv_func_gethostbyaddr_r_nargs7=yes
6821 echo "configure: failed program was:" >&5
6822 cat conftest.$ac_ext >&5
6824 ol_cv_func_gethostbyaddr_r_nargs7=no
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 #include <sys/types.h>
6832 #include <sys/socket.h>
6833 #include <netinet/in.h>
6835 #define BUFSIZE (sizeof(struct hostent)+10)
6837 struct hostent hent;
6838 struct hostent *rhent; char buffer[BUFSIZE];
6840 size_t alen=sizeof(struct in_addr);
6841 int bufsize=BUFSIZE;int h_errno;
6842 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6843 alen, AF_INET, &hent, buffer, bufsize,
6847 if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6849 ol_cv_func_gethostbyaddr_r_nargs8=yes
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 ol_cv_func_gethostbyaddr_r_nargs8=no
6858 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6859 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6861 ol_cv_func_gethostbyaddr_r_nargs=7
6863 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6864 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6866 ol_cv_func_gethostbyaddr_r_nargs=8
6869 ol_cv_func_gethostbyaddr_r_nargs=0
6874 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6875 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6876 cat >> confdefs.h <<EOF
6877 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6883 ol_cv_func_gethostbyaddr_r_nargs=0
6886 if test "$ac_cv_func_ctime_r" = yes \
6887 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6888 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6889 -a "$ac_cv_func_gethostbyname_r" = yes \
6890 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6891 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6892 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6893 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6894 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6897 cat >> confdefs.h <<\EOF
6898 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6905 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6906 -o $ol_with_threads = nt ; then
6909 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
6910 echo "configure:6911: checking for NT Threads" >&5
6911 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
6912 echo $ac_n "(cached) $ac_c" 1>&6
6915 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6916 echo "configure:6917: checking for _beginthread" >&5
6917 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6918 echo $ac_n "(cached) $ac_c" 1>&6
6920 cat > conftest.$ac_ext <<EOF
6921 #line 6922 "configure"
6922 #include "confdefs.h"
6923 /* System header to define __stub macros and hopefully few prototypes,
6924 which can conflict with char _beginthread(); below. */
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 /* We use char because int might match the return type of a gcc2
6928 builtin and then its argument prototype would still apply. */
6929 char _beginthread();
6934 /* The GNU C library defines this for functions which it implements
6935 to always fail with ENOSYS. Some functions are actually named
6936 something starting with __ and the normal name is an alias. */
6937 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6945 if { (eval echo configure:6946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6947 eval "ac_cv_func__beginthread=yes"
6949 echo "configure: failed program was:" >&5
6950 cat conftest.$ac_ext >&5
6952 eval "ac_cv_func__beginthread=no"
6957 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
6958 echo "$ac_t""yes" 1>&6
6959 ol_cv_nt_threads=yes
6961 echo "$ac_t""no" 1>&6
6968 echo "$ac_t""$ol_cv_nt_threads" 1>&6
6970 if test $ol_cv_nt_threads = yes ; then
6971 cat >> confdefs.h <<\EOF
6972 #define HAVE_NT_THREADS 1
6978 if test "$ol_cv_nt_threads" = yes ; then
6980 ol_with_threads=found
6981 ol_with_yielding_select=yes
6983 cat >> confdefs.h <<\EOF
6984 #define HAVE_NT_SERVICE_MANAGER 1
6987 cat >> confdefs.h <<\EOF
6988 #define HAVE_NT_EVENT_LOG 1
6993 if test $ol_with_threads = nt ; then
6994 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
6998 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6999 -o $ol_with_threads = posix ; then
7001 for ac_hdr in pthread.h
7003 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7004 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7005 echo "configure:7006: checking for $ac_hdr" >&5
7006 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7007 echo $ac_n "(cached) $ac_c" 1>&6
7009 cat > conftest.$ac_ext <<EOF
7010 #line 7011 "configure"
7011 #include "confdefs.h"
7014 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7015 { (eval echo configure:7016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7016 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7017 if test -z "$ac_err"; then
7019 eval "ac_cv_header_$ac_safe=yes"
7022 echo "configure: failed program was:" >&5
7023 cat conftest.$ac_ext >&5
7025 eval "ac_cv_header_$ac_safe=no"
7029 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7030 echo "$ac_t""yes" 1>&6
7031 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7032 cat >> confdefs.h <<EOF
7033 #define $ac_tr_hdr 1
7037 echo "$ac_t""no" 1>&6
7042 if test $ac_cv_header_pthread_h = yes ; then
7043 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7044 echo "configure:7045: checking POSIX thread version" >&5
7045 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7046 echo $ac_n "(cached) $ac_c" 1>&6
7049 cat > conftest.$ac_ext <<EOF
7050 #line 7051 "configure"
7051 #include "confdefs.h"
7053 # include <pthread.h>
7054 /* this check could be improved */
7055 # ifdef PTHREAD_ONCE_INIT
7056 pthread_version_final;
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 egrep "pthread_version_final" >/dev/null 2>&1; then
7063 ol_pthread_final=yes
7071 cat > conftest.$ac_ext <<EOF
7072 #line 7073 "configure"
7073 #include "confdefs.h"
7075 # include <pthread.h>
7076 /* this check could be improved */
7077 # ifdef pthread_once_init
7078 pthread_version_draft4;
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7085 ol_pthread_draft4=yes
7088 ol_pthread_draft4=no
7093 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7094 ol_cv_pthread_version=final
7095 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7096 ol_cv_pthread_version=draft4
7098 ol_cv_pthread_version=unknown
7103 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7106 if test $ol_cv_pthread_version = final ; then
7107 cat >> confdefs.h <<\EOF
7108 #define HAVE_PTHREADS_FINAL 1
7111 elif test $ol_cv_pthread_version = draft4 ; then
7112 cat >> confdefs.h <<\EOF
7113 #define HAVE_PTHREADS_D4 1
7117 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7120 # consider threads found
7121 ol_with_threads=found
7124 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7125 echo "configure:7126: checking for LinuxThreads pthread.h" >&5
7126 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7127 echo $ac_n "(cached) $ac_c" 1>&6
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 #include <pthread.h>
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7137 ol_cv_header_linux_threads=yes
7140 ol_cv_header_linux_threads=no
7147 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7148 if test $ol_cv_header_linux_threads = yes; then
7149 cat >> confdefs.h <<\EOF
7150 #define HAVE_LINUX_THREADS 1
7156 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7157 echo "configure:7158: checking for GNU Pth pthread.h" >&5
7158 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7159 echo $ac_n "(cached) $ac_c" 1>&6
7161 cat > conftest.$ac_ext <<EOF
7162 #line 7163 "configure"
7163 #include "confdefs.h"
7164 #include <pthread.h>
7165 #ifdef _POSIX_THREAD_IS_GNU_PTH
7170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 egrep "__gnu_pth__" >/dev/null 2>&1; then
7173 ol_cv_header_gnu_pth_pthread_h=yes
7176 ol_cv_header_gnu_pth_pthread_h=no
7183 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7186 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7187 for ac_hdr in sched.h
7189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7191 echo "configure:7192: checking for $ac_hdr" >&5
7192 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7195 cat > conftest.$ac_ext <<EOF
7196 #line 7197 "configure"
7197 #include "confdefs.h"
7200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7201 { (eval echo configure:7202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7203 if test -z "$ac_err"; then
7205 eval "ac_cv_header_$ac_safe=yes"
7208 echo "configure: failed program was:" >&5
7209 cat conftest.$ac_ext >&5
7211 eval "ac_cv_header_$ac_safe=no"
7215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7216 echo "$ac_t""yes" 1>&6
7217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7218 cat >> confdefs.h <<EOF
7219 #define $ac_tr_hdr 1
7223 echo "$ac_t""no" 1>&6
7230 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7231 echo "configure:7232: checking for pthread_create in default libraries" >&5
7232 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7233 echo $ac_n "(cached) $ac_c" 1>&6
7236 if test "$cross_compiling" = yes; then
7237 cat > conftest.$ac_ext <<EOF
7238 #line 7239 "configure"
7239 #include "confdefs.h"
7240 /* pthread test headers */
7241 #include <pthread.h>
7243 #define NULL (void*)0
7246 static void *task(p)
7249 return (void *) (p == NULL);
7254 /* pthread test function */
7257 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7258 /* This system (e.g. AIX) defaults detached; must override */
7259 pthread_attr_t attr;
7261 status = pthread_attr_init(&attr);
7262 if( status ) exit( status );
7264 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7265 if( status ) exit( status );
7269 #if HAVE_PTHREADS_D4
7270 #define ATTR pthread_attr_default
7275 /* make sure pthread_create() isn't just a stub */
7276 status = pthread_create(&t, ATTR, task, NULL);
7277 if( status ) exit( status );
7279 /* make sure pthread_detach() isn't just a stub */
7280 #if HAVE_PTHREADS_D4
7281 status = pthread_detach( &t );
7283 status = pthread_detach( t );
7286 #ifdef HAVE_LINUX_THREADS
7287 pthread_kill_other_threads_np();
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7296 ol_cv_pthread_create=yes
7298 echo "configure: failed program was:" >&5
7299 cat conftest.$ac_ext >&5
7301 ol_cv_pthread_create=no
7305 cat > conftest.$ac_ext <<EOF
7306 #line 7307 "configure"
7307 #include "confdefs.h"
7308 /* pthread test headers */
7309 #include <pthread.h>
7311 #define NULL (void*)0
7314 static void *task(p)
7317 return (void *) (p == NULL);
7321 int main(argc, argv)
7326 /* pthread test function */
7329 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7330 /* This system (e.g. AIX) defaults detached; must override */
7331 pthread_attr_t attr;
7333 status = pthread_attr_init(&attr);
7334 if( status ) exit( status );
7336 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7337 if( status ) exit( status );
7341 #if HAVE_PTHREADS_D4
7342 #define ATTR pthread_attr_default
7347 /* make sure pthread_create() isn't just a stub */
7348 status = pthread_create(&t, ATTR, task, NULL);
7349 if( status ) exit( status );
7351 /* make sure pthread_detach() isn't just a stub */
7352 #if HAVE_PTHREADS_D4
7353 status = pthread_detach( &t );
7355 status = pthread_detach( t );
7358 #ifdef HAVE_LINUX_THREADS
7359 pthread_kill_other_threads_np();
7367 if { (eval echo configure:7368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7369 ol_cv_pthread_create=yes
7371 echo "configure: failed program was:" >&5
7372 cat conftest.$ac_ext >&5
7374 ol_cv_pthread_create=no
7381 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7383 if test $ol_cv_pthread_create != no ; then
7384 ol_link_threads=posix
7388 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7389 if test "$ol_link_threads" = no ; then
7391 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7392 echo "configure:7393: checking for pthread link with -kthread" >&5
7393 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7394 echo $ac_n "(cached) $ac_c" 1>&6
7399 LIBS="-kthread $LIBS"
7401 if test "$cross_compiling" = yes; then
7402 cat > conftest.$ac_ext <<EOF
7403 #line 7404 "configure"
7404 #include "confdefs.h"
7405 /* pthread test headers */
7406 #include <pthread.h>
7408 #define NULL (void*)0
7411 static void *task(p)
7414 return (void *) (p == NULL);
7419 /* pthread test function */
7422 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7423 /* This system (e.g. AIX) defaults detached; must override */
7424 pthread_attr_t attr;
7426 status = pthread_attr_init(&attr);
7427 if( status ) exit( status );
7429 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7430 if( status ) exit( status );
7434 #if HAVE_PTHREADS_D4
7435 #define ATTR pthread_attr_default
7440 /* make sure pthread_create() isn't just a stub */
7441 status = pthread_create(&t, ATTR, task, NULL);
7442 if( status ) exit( status );
7444 /* make sure pthread_detach() isn't just a stub */
7445 #if HAVE_PTHREADS_D4
7446 status = pthread_detach( &t );
7448 status = pthread_detach( t );
7451 #ifdef HAVE_LINUX_THREADS
7452 pthread_kill_other_threads_np();
7459 if { (eval echo configure:7460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7461 ol_cv_pthread_kthread=yes
7463 echo "configure: failed program was:" >&5
7464 cat conftest.$ac_ext >&5
7466 ol_cv_pthread_kthread=no
7470 cat > conftest.$ac_ext <<EOF
7471 #line 7472 "configure"
7472 #include "confdefs.h"
7473 /* pthread test headers */
7474 #include <pthread.h>
7476 #define NULL (void*)0
7479 static void *task(p)
7482 return (void *) (p == NULL);
7486 int main(argc, argv)
7491 /* pthread test function */
7494 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7495 /* This system (e.g. AIX) defaults detached; must override */
7496 pthread_attr_t attr;
7498 status = pthread_attr_init(&attr);
7499 if( status ) exit( status );
7501 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7502 if( status ) exit( status );
7506 #if HAVE_PTHREADS_D4
7507 #define ATTR pthread_attr_default
7512 /* make sure pthread_create() isn't just a stub */
7513 status = pthread_create(&t, ATTR, task, NULL);
7514 if( status ) exit( status );
7516 /* make sure pthread_detach() isn't just a stub */
7517 #if HAVE_PTHREADS_D4
7518 status = pthread_detach( &t );
7520 status = pthread_detach( t );
7523 #ifdef HAVE_LINUX_THREADS
7524 pthread_kill_other_threads_np();
7532 if { (eval echo configure:7533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7534 ol_cv_pthread_kthread=yes
7536 echo "configure: failed program was:" >&5
7537 cat conftest.$ac_ext >&5
7539 ol_cv_pthread_kthread=no
7550 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7552 if test $ol_cv_pthread_kthread = yes ; then
7553 ol_link_pthreads="-kthread"
7554 ol_link_threads=posix
7558 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7559 if test "$ol_link_threads" = no ; then
7561 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7562 echo "configure:7563: checking for pthread link with -pthread" >&5
7563 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7569 LIBS="-pthread $LIBS"
7571 if test "$cross_compiling" = yes; then
7572 cat > conftest.$ac_ext <<EOF
7573 #line 7574 "configure"
7574 #include "confdefs.h"
7575 /* pthread test headers */
7576 #include <pthread.h>
7578 #define NULL (void*)0
7581 static void *task(p)
7584 return (void *) (p == NULL);
7589 /* pthread test function */
7592 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7593 /* This system (e.g. AIX) defaults detached; must override */
7594 pthread_attr_t attr;
7596 status = pthread_attr_init(&attr);
7597 if( status ) exit( status );
7599 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7600 if( status ) exit( status );
7604 #if HAVE_PTHREADS_D4
7605 #define ATTR pthread_attr_default
7610 /* make sure pthread_create() isn't just a stub */
7611 status = pthread_create(&t, ATTR, task, NULL);
7612 if( status ) exit( status );
7614 /* make sure pthread_detach() isn't just a stub */
7615 #if HAVE_PTHREADS_D4
7616 status = pthread_detach( &t );
7618 status = pthread_detach( t );
7621 #ifdef HAVE_LINUX_THREADS
7622 pthread_kill_other_threads_np();
7629 if { (eval echo configure:7630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7631 ol_cv_pthread_pthread=yes
7633 echo "configure: failed program was:" >&5
7634 cat conftest.$ac_ext >&5
7636 ol_cv_pthread_pthread=no
7640 cat > conftest.$ac_ext <<EOF
7641 #line 7642 "configure"
7642 #include "confdefs.h"
7643 /* pthread test headers */
7644 #include <pthread.h>
7646 #define NULL (void*)0
7649 static void *task(p)
7652 return (void *) (p == NULL);
7656 int main(argc, argv)
7661 /* pthread test function */
7664 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7665 /* This system (e.g. AIX) defaults detached; must override */
7666 pthread_attr_t attr;
7668 status = pthread_attr_init(&attr);
7669 if( status ) exit( status );
7671 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7672 if( status ) exit( status );
7676 #if HAVE_PTHREADS_D4
7677 #define ATTR pthread_attr_default
7682 /* make sure pthread_create() isn't just a stub */
7683 status = pthread_create(&t, ATTR, task, NULL);
7684 if( status ) exit( status );
7686 /* make sure pthread_detach() isn't just a stub */
7687 #if HAVE_PTHREADS_D4
7688 status = pthread_detach( &t );
7690 status = pthread_detach( t );
7693 #ifdef HAVE_LINUX_THREADS
7694 pthread_kill_other_threads_np();
7702 if { (eval echo configure:7703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7704 ol_cv_pthread_pthread=yes
7706 echo "configure: failed program was:" >&5
7707 cat conftest.$ac_ext >&5
7709 ol_cv_pthread_pthread=no
7720 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7722 if test $ol_cv_pthread_pthread = yes ; then
7723 ol_link_pthreads="-pthread"
7724 ol_link_threads=posix
7728 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7729 if test "$ol_link_threads" = no ; then
7731 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7732 echo "configure:7733: checking for pthread link with -pthreads" >&5
7733 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7739 LIBS="-pthreads $LIBS"
7741 if test "$cross_compiling" = yes; then
7742 cat > conftest.$ac_ext <<EOF
7743 #line 7744 "configure"
7744 #include "confdefs.h"
7745 /* pthread test headers */
7746 #include <pthread.h>
7748 #define NULL (void*)0
7751 static void *task(p)
7754 return (void *) (p == NULL);
7759 /* pthread test function */
7762 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7763 /* This system (e.g. AIX) defaults detached; must override */
7764 pthread_attr_t attr;
7766 status = pthread_attr_init(&attr);
7767 if( status ) exit( status );
7769 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7770 if( status ) exit( status );
7774 #if HAVE_PTHREADS_D4
7775 #define ATTR pthread_attr_default
7780 /* make sure pthread_create() isn't just a stub */
7781 status = pthread_create(&t, ATTR, task, NULL);
7782 if( status ) exit( status );
7784 /* make sure pthread_detach() isn't just a stub */
7785 #if HAVE_PTHREADS_D4
7786 status = pthread_detach( &t );
7788 status = pthread_detach( t );
7791 #ifdef HAVE_LINUX_THREADS
7792 pthread_kill_other_threads_np();
7799 if { (eval echo configure:7800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7801 ol_cv_pthread_pthreads=yes
7803 echo "configure: failed program was:" >&5
7804 cat conftest.$ac_ext >&5
7806 ol_cv_pthread_pthreads=no
7810 cat > conftest.$ac_ext <<EOF
7811 #line 7812 "configure"
7812 #include "confdefs.h"
7813 /* pthread test headers */
7814 #include <pthread.h>
7816 #define NULL (void*)0
7819 static void *task(p)
7822 return (void *) (p == NULL);
7826 int main(argc, argv)
7831 /* pthread test function */
7834 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7835 /* This system (e.g. AIX) defaults detached; must override */
7836 pthread_attr_t attr;
7838 status = pthread_attr_init(&attr);
7839 if( status ) exit( status );
7841 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7842 if( status ) exit( status );
7846 #if HAVE_PTHREADS_D4
7847 #define ATTR pthread_attr_default
7852 /* make sure pthread_create() isn't just a stub */
7853 status = pthread_create(&t, ATTR, task, NULL);
7854 if( status ) exit( status );
7856 /* make sure pthread_detach() isn't just a stub */
7857 #if HAVE_PTHREADS_D4
7858 status = pthread_detach( &t );
7860 status = pthread_detach( t );
7863 #ifdef HAVE_LINUX_THREADS
7864 pthread_kill_other_threads_np();
7872 if { (eval echo configure:7873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7874 ol_cv_pthread_pthreads=yes
7876 echo "configure: failed program was:" >&5
7877 cat conftest.$ac_ext >&5
7879 ol_cv_pthread_pthreads=no
7890 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7892 if test $ol_cv_pthread_pthreads = yes ; then
7893 ol_link_pthreads="-pthreads"
7894 ol_link_threads=posix
7898 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7899 if test "$ol_link_threads" = no ; then
7901 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7902 echo "configure:7903: checking for pthread link with -mthreads" >&5
7903 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7904 echo $ac_n "(cached) $ac_c" 1>&6
7909 LIBS="-mthreads $LIBS"
7911 if test "$cross_compiling" = yes; then
7912 cat > conftest.$ac_ext <<EOF
7913 #line 7914 "configure"
7914 #include "confdefs.h"
7915 /* pthread test headers */
7916 #include <pthread.h>
7918 #define NULL (void*)0
7921 static void *task(p)
7924 return (void *) (p == NULL);
7929 /* pthread test function */
7932 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7933 /* This system (e.g. AIX) defaults detached; must override */
7934 pthread_attr_t attr;
7936 status = pthread_attr_init(&attr);
7937 if( status ) exit( status );
7939 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7940 if( status ) exit( status );
7944 #if HAVE_PTHREADS_D4
7945 #define ATTR pthread_attr_default
7950 /* make sure pthread_create() isn't just a stub */
7951 status = pthread_create(&t, ATTR, task, NULL);
7952 if( status ) exit( status );
7954 /* make sure pthread_detach() isn't just a stub */
7955 #if HAVE_PTHREADS_D4
7956 status = pthread_detach( &t );
7958 status = pthread_detach( t );
7961 #ifdef HAVE_LINUX_THREADS
7962 pthread_kill_other_threads_np();
7969 if { (eval echo configure:7970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7971 ol_cv_pthread_mthreads=yes
7973 echo "configure: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7976 ol_cv_pthread_mthreads=no
7980 cat > conftest.$ac_ext <<EOF
7981 #line 7982 "configure"
7982 #include "confdefs.h"
7983 /* pthread test headers */
7984 #include <pthread.h>
7986 #define NULL (void*)0
7989 static void *task(p)
7992 return (void *) (p == NULL);
7996 int main(argc, argv)
8001 /* pthread test function */
8004 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8005 /* This system (e.g. AIX) defaults detached; must override */
8006 pthread_attr_t attr;
8008 status = pthread_attr_init(&attr);
8009 if( status ) exit( status );
8011 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8012 if( status ) exit( status );
8016 #if HAVE_PTHREADS_D4
8017 #define ATTR pthread_attr_default
8022 /* make sure pthread_create() isn't just a stub */
8023 status = pthread_create(&t, ATTR, task, NULL);
8024 if( status ) exit( status );
8026 /* make sure pthread_detach() isn't just a stub */
8027 #if HAVE_PTHREADS_D4
8028 status = pthread_detach( &t );
8030 status = pthread_detach( t );
8033 #ifdef HAVE_LINUX_THREADS
8034 pthread_kill_other_threads_np();
8042 if { (eval echo configure:8043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8044 ol_cv_pthread_mthreads=yes
8046 echo "configure: failed program was:" >&5
8047 cat conftest.$ac_ext >&5
8049 ol_cv_pthread_mthreads=no
8060 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8062 if test $ol_cv_pthread_mthreads = yes ; then
8063 ol_link_pthreads="-mthreads"
8064 ol_link_threads=posix
8068 # Pthread try link: -thread (ol_cv_pthread_thread)
8069 if test "$ol_link_threads" = no ; then
8071 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8072 echo "configure:8073: checking for pthread link with -thread" >&5
8073 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8074 echo $ac_n "(cached) $ac_c" 1>&6
8079 LIBS="-thread $LIBS"
8081 if test "$cross_compiling" = yes; then
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8085 /* pthread test headers */
8086 #include <pthread.h>
8088 #define NULL (void*)0
8091 static void *task(p)
8094 return (void *) (p == NULL);
8099 /* pthread test function */
8102 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8103 /* This system (e.g. AIX) defaults detached; must override */
8104 pthread_attr_t attr;
8106 status = pthread_attr_init(&attr);
8107 if( status ) exit( status );
8109 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8110 if( status ) exit( status );
8114 #if HAVE_PTHREADS_D4
8115 #define ATTR pthread_attr_default
8120 /* make sure pthread_create() isn't just a stub */
8121 status = pthread_create(&t, ATTR, task, NULL);
8122 if( status ) exit( status );
8124 /* make sure pthread_detach() isn't just a stub */
8125 #if HAVE_PTHREADS_D4
8126 status = pthread_detach( &t );
8128 status = pthread_detach( t );
8131 #ifdef HAVE_LINUX_THREADS
8132 pthread_kill_other_threads_np();
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8141 ol_cv_pthread_thread=yes
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 ol_cv_pthread_thread=no
8150 cat > conftest.$ac_ext <<EOF
8151 #line 8152 "configure"
8152 #include "confdefs.h"
8153 /* pthread test headers */
8154 #include <pthread.h>
8156 #define NULL (void*)0
8159 static void *task(p)
8162 return (void *) (p == NULL);
8166 int main(argc, argv)
8171 /* pthread test function */
8174 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8175 /* This system (e.g. AIX) defaults detached; must override */
8176 pthread_attr_t attr;
8178 status = pthread_attr_init(&attr);
8179 if( status ) exit( status );
8181 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8182 if( status ) exit( status );
8186 #if HAVE_PTHREADS_D4
8187 #define ATTR pthread_attr_default
8192 /* make sure pthread_create() isn't just a stub */
8193 status = pthread_create(&t, ATTR, task, NULL);
8194 if( status ) exit( status );
8196 /* make sure pthread_detach() isn't just a stub */
8197 #if HAVE_PTHREADS_D4
8198 status = pthread_detach( &t );
8200 status = pthread_detach( t );
8203 #ifdef HAVE_LINUX_THREADS
8204 pthread_kill_other_threads_np();
8212 if { (eval echo configure:8213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8214 ol_cv_pthread_thread=yes
8216 echo "configure: failed program was:" >&5
8217 cat conftest.$ac_ext >&5
8219 ol_cv_pthread_thread=no
8230 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8232 if test $ol_cv_pthread_thread = yes ; then
8233 ol_link_pthreads="-thread"
8234 ol_link_threads=posix
8239 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8240 if test "$ol_link_threads" = no ; then
8241 # try -lpthread -lmach -lexc -lc_r
8242 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8243 echo "configure:8244: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8244 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8250 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8252 if test "$cross_compiling" = yes; then
8253 cat > conftest.$ac_ext <<EOF
8254 #line 8255 "configure"
8255 #include "confdefs.h"
8256 /* pthread test headers */
8257 #include <pthread.h>
8259 #define NULL (void*)0
8262 static void *task(p)
8265 return (void *) (p == NULL);
8270 /* pthread test function */
8273 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8274 /* This system (e.g. AIX) defaults detached; must override */
8275 pthread_attr_t attr;
8277 status = pthread_attr_init(&attr);
8278 if( status ) exit( status );
8280 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8281 if( status ) exit( status );
8285 #if HAVE_PTHREADS_D4
8286 #define ATTR pthread_attr_default
8291 /* make sure pthread_create() isn't just a stub */
8292 status = pthread_create(&t, ATTR, task, NULL);
8293 if( status ) exit( status );
8295 /* make sure pthread_detach() isn't just a stub */
8296 #if HAVE_PTHREADS_D4
8297 status = pthread_detach( &t );
8299 status = pthread_detach( t );
8302 #ifdef HAVE_LINUX_THREADS
8303 pthread_kill_other_threads_np();
8310 if { (eval echo configure:8311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8312 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8314 echo "configure: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8317 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8324 /* pthread test headers */
8325 #include <pthread.h>
8327 #define NULL (void*)0
8330 static void *task(p)
8333 return (void *) (p == NULL);
8337 int main(argc, argv)
8342 /* pthread test function */
8345 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8346 /* This system (e.g. AIX) defaults detached; must override */
8347 pthread_attr_t attr;
8349 status = pthread_attr_init(&attr);
8350 if( status ) exit( status );
8352 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8353 if( status ) exit( status );
8357 #if HAVE_PTHREADS_D4
8358 #define ATTR pthread_attr_default
8363 /* make sure pthread_create() isn't just a stub */
8364 status = pthread_create(&t, ATTR, task, NULL);
8365 if( status ) exit( status );
8367 /* make sure pthread_detach() isn't just a stub */
8368 #if HAVE_PTHREADS_D4
8369 status = pthread_detach( &t );
8371 status = pthread_detach( t );
8374 #ifdef HAVE_LINUX_THREADS
8375 pthread_kill_other_threads_np();
8383 if { (eval echo configure:8384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8385 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8387 echo "configure: failed program was:" >&5
8388 cat conftest.$ac_ext >&5
8390 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8401 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8403 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8404 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8405 ol_link_threads=posix
8409 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8410 if test "$ol_link_threads" = no ; then
8411 # try -lpthread -lmach -lexc
8412 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8413 echo "configure:8414: checking for pthread link with -lpthread -lmach -lexc" >&5
8414 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8415 echo $ac_n "(cached) $ac_c" 1>&6
8420 LIBS="-lpthread -lmach -lexc $LIBS"
8422 if test "$cross_compiling" = yes; then
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8426 /* pthread test headers */
8427 #include <pthread.h>
8429 #define NULL (void*)0
8432 static void *task(p)
8435 return (void *) (p == NULL);
8440 /* pthread test function */
8443 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8444 /* This system (e.g. AIX) defaults detached; must override */
8445 pthread_attr_t attr;
8447 status = pthread_attr_init(&attr);
8448 if( status ) exit( status );
8450 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8451 if( status ) exit( status );
8455 #if HAVE_PTHREADS_D4
8456 #define ATTR pthread_attr_default
8461 /* make sure pthread_create() isn't just a stub */
8462 status = pthread_create(&t, ATTR, task, NULL);
8463 if( status ) exit( status );
8465 /* make sure pthread_detach() isn't just a stub */
8466 #if HAVE_PTHREADS_D4
8467 status = pthread_detach( &t );
8469 status = pthread_detach( t );
8472 #ifdef HAVE_LINUX_THREADS
8473 pthread_kill_other_threads_np();
8480 if { (eval echo configure:8481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8482 ol_cv_pthread_lpthread_lmach_lexc=yes
8484 echo "configure: failed program was:" >&5
8485 cat conftest.$ac_ext >&5
8487 ol_cv_pthread_lpthread_lmach_lexc=no
8491 cat > conftest.$ac_ext <<EOF
8492 #line 8493 "configure"
8493 #include "confdefs.h"
8494 /* pthread test headers */
8495 #include <pthread.h>
8497 #define NULL (void*)0
8500 static void *task(p)
8503 return (void *) (p == NULL);
8507 int main(argc, argv)
8512 /* pthread test function */
8515 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8516 /* This system (e.g. AIX) defaults detached; must override */
8517 pthread_attr_t attr;
8519 status = pthread_attr_init(&attr);
8520 if( status ) exit( status );
8522 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8523 if( status ) exit( status );
8527 #if HAVE_PTHREADS_D4
8528 #define ATTR pthread_attr_default
8533 /* make sure pthread_create() isn't just a stub */
8534 status = pthread_create(&t, ATTR, task, NULL);
8535 if( status ) exit( status );
8537 /* make sure pthread_detach() isn't just a stub */
8538 #if HAVE_PTHREADS_D4
8539 status = pthread_detach( &t );
8541 status = pthread_detach( t );
8544 #ifdef HAVE_LINUX_THREADS
8545 pthread_kill_other_threads_np();
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8555 ol_cv_pthread_lpthread_lmach_lexc=yes
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 ol_cv_pthread_lpthread_lmach_lexc=no
8571 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8573 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8574 ol_link_pthreads="-lpthread -lmach -lexc"
8575 ol_link_threads=posix
8580 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8581 if test "$ol_link_threads" = no ; then
8582 # try -lpthread -Wl,-woff,85
8583 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8584 echo "configure:8585: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8585 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8591 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8593 if test "$cross_compiling" = yes; then
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 /* pthread test headers */
8598 #include <pthread.h>
8600 #define NULL (void*)0
8603 static void *task(p)
8606 return (void *) (p == NULL);
8611 /* pthread test function */
8614 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8615 /* This system (e.g. AIX) defaults detached; must override */
8616 pthread_attr_t attr;
8618 status = pthread_attr_init(&attr);
8619 if( status ) exit( status );
8621 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8622 if( status ) exit( status );
8626 #if HAVE_PTHREADS_D4
8627 #define ATTR pthread_attr_default
8632 /* make sure pthread_create() isn't just a stub */
8633 status = pthread_create(&t, ATTR, task, NULL);
8634 if( status ) exit( status );
8636 /* make sure pthread_detach() isn't just a stub */
8637 #if HAVE_PTHREADS_D4
8638 status = pthread_detach( &t );
8640 status = pthread_detach( t );
8643 #ifdef HAVE_LINUX_THREADS
8644 pthread_kill_other_threads_np();
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8653 ol_cv_pthread_lib_lpthread_woff=yes
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8658 ol_cv_pthread_lib_lpthread_woff=no
8662 cat > conftest.$ac_ext <<EOF
8663 #line 8664 "configure"
8664 #include "confdefs.h"
8665 /* pthread test headers */
8666 #include <pthread.h>
8668 #define NULL (void*)0
8671 static void *task(p)
8674 return (void *) (p == NULL);
8678 int main(argc, argv)
8683 /* pthread test function */
8686 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8687 /* This system (e.g. AIX) defaults detached; must override */
8688 pthread_attr_t attr;
8690 status = pthread_attr_init(&attr);
8691 if( status ) exit( status );
8693 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8694 if( status ) exit( status );
8698 #if HAVE_PTHREADS_D4
8699 #define ATTR pthread_attr_default
8704 /* make sure pthread_create() isn't just a stub */
8705 status = pthread_create(&t, ATTR, task, NULL);
8706 if( status ) exit( status );
8708 /* make sure pthread_detach() isn't just a stub */
8709 #if HAVE_PTHREADS_D4
8710 status = pthread_detach( &t );
8712 status = pthread_detach( t );
8715 #ifdef HAVE_LINUX_THREADS
8716 pthread_kill_other_threads_np();
8724 if { (eval echo configure:8725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8726 ol_cv_pthread_lib_lpthread_woff=yes
8728 echo "configure: failed program was:" >&5
8729 cat conftest.$ac_ext >&5
8731 ol_cv_pthread_lib_lpthread_woff=no
8742 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8744 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8745 ol_link_pthreads="-lpthread -Wl,-woff,85"
8746 ol_link_threads=posix
8751 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8752 if test "$ol_link_threads" = no ; then
8754 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8755 echo "configure:8756: checking for pthread link with -lpthread" >&5
8756 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8757 echo $ac_n "(cached) $ac_c" 1>&6
8762 LIBS="-lpthread $LIBS"
8764 if test "$cross_compiling" = yes; then
8765 cat > conftest.$ac_ext <<EOF
8766 #line 8767 "configure"
8767 #include "confdefs.h"
8768 /* pthread test headers */
8769 #include <pthread.h>
8771 #define NULL (void*)0
8774 static void *task(p)
8777 return (void *) (p == NULL);
8782 /* pthread test function */
8785 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8786 /* This system (e.g. AIX) defaults detached; must override */
8787 pthread_attr_t attr;
8789 status = pthread_attr_init(&attr);
8790 if( status ) exit( status );
8792 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8793 if( status ) exit( status );
8797 #if HAVE_PTHREADS_D4
8798 #define ATTR pthread_attr_default
8803 /* make sure pthread_create() isn't just a stub */
8804 status = pthread_create(&t, ATTR, task, NULL);
8805 if( status ) exit( status );
8807 /* make sure pthread_detach() isn't just a stub */
8808 #if HAVE_PTHREADS_D4
8809 status = pthread_detach( &t );
8811 status = pthread_detach( t );
8814 #ifdef HAVE_LINUX_THREADS
8815 pthread_kill_other_threads_np();
8822 if { (eval echo configure:8823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8824 ol_cv_pthread_lpthread=yes
8826 echo "configure: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8829 ol_cv_pthread_lpthread=no
8833 cat > conftest.$ac_ext <<EOF
8834 #line 8835 "configure"
8835 #include "confdefs.h"
8836 /* pthread test headers */
8837 #include <pthread.h>
8839 #define NULL (void*)0
8842 static void *task(p)
8845 return (void *) (p == NULL);
8849 int main(argc, argv)
8854 /* pthread test function */
8857 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8858 /* This system (e.g. AIX) defaults detached; must override */
8859 pthread_attr_t attr;
8861 status = pthread_attr_init(&attr);
8862 if( status ) exit( status );
8864 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8865 if( status ) exit( status );
8869 #if HAVE_PTHREADS_D4
8870 #define ATTR pthread_attr_default
8875 /* make sure pthread_create() isn't just a stub */
8876 status = pthread_create(&t, ATTR, task, NULL);
8877 if( status ) exit( status );
8879 /* make sure pthread_detach() isn't just a stub */
8880 #if HAVE_PTHREADS_D4
8881 status = pthread_detach( &t );
8883 status = pthread_detach( t );
8886 #ifdef HAVE_LINUX_THREADS
8887 pthread_kill_other_threads_np();
8895 if { (eval echo configure:8896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8897 ol_cv_pthread_lpthread=yes
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8902 ol_cv_pthread_lpthread=no
8913 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8915 if test $ol_cv_pthread_lpthread = yes ; then
8916 ol_link_pthreads="-lpthread"
8917 ol_link_threads=posix
8921 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8922 if test "$ol_link_threads" = no ; then
8924 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8925 echo "configure:8926: checking for pthread link with -lc_r" >&5
8926 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8927 echo $ac_n "(cached) $ac_c" 1>&6
8934 if test "$cross_compiling" = yes; then
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 /* pthread test headers */
8939 #include <pthread.h>
8941 #define NULL (void*)0
8944 static void *task(p)
8947 return (void *) (p == NULL);
8952 /* pthread test function */
8955 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8956 /* This system (e.g. AIX) defaults detached; must override */
8957 pthread_attr_t attr;
8959 status = pthread_attr_init(&attr);
8960 if( status ) exit( status );
8962 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8963 if( status ) exit( status );
8967 #if HAVE_PTHREADS_D4
8968 #define ATTR pthread_attr_default
8973 /* make sure pthread_create() isn't just a stub */
8974 status = pthread_create(&t, ATTR, task, NULL);
8975 if( status ) exit( status );
8977 /* make sure pthread_detach() isn't just a stub */
8978 #if HAVE_PTHREADS_D4
8979 status = pthread_detach( &t );
8981 status = pthread_detach( t );
8984 #ifdef HAVE_LINUX_THREADS
8985 pthread_kill_other_threads_np();
8992 if { (eval echo configure:8993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8994 ol_cv_pthread_lc_r=yes
8996 echo "configure: failed program was:" >&5
8997 cat conftest.$ac_ext >&5
8999 ol_cv_pthread_lc_r=no
9003 cat > conftest.$ac_ext <<EOF
9004 #line 9005 "configure"
9005 #include "confdefs.h"
9006 /* pthread test headers */
9007 #include <pthread.h>
9009 #define NULL (void*)0
9012 static void *task(p)
9015 return (void *) (p == NULL);
9019 int main(argc, argv)
9024 /* pthread test function */
9027 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9028 /* This system (e.g. AIX) defaults detached; must override */
9029 pthread_attr_t attr;
9031 status = pthread_attr_init(&attr);
9032 if( status ) exit( status );
9034 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9035 if( status ) exit( status );
9039 #if HAVE_PTHREADS_D4
9040 #define ATTR pthread_attr_default
9045 /* make sure pthread_create() isn't just a stub */
9046 status = pthread_create(&t, ATTR, task, NULL);
9047 if( status ) exit( status );
9049 /* make sure pthread_detach() isn't just a stub */
9050 #if HAVE_PTHREADS_D4
9051 status = pthread_detach( &t );
9053 status = pthread_detach( t );
9056 #ifdef HAVE_LINUX_THREADS
9057 pthread_kill_other_threads_np();
9065 if { (eval echo configure:9066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9067 ol_cv_pthread_lc_r=yes
9069 echo "configure: failed program was:" >&5
9070 cat conftest.$ac_ext >&5
9072 ol_cv_pthread_lc_r=no
9083 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9085 if test $ol_cv_pthread_lc_r = yes ; then
9086 ol_link_pthreads="-lc_r"
9087 ol_link_threads=posix
9092 # Pthread try link: -threads (ol_cv_pthread_threads)
9093 if test "$ol_link_threads" = no ; then
9095 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9096 echo "configure:9097: checking for pthread link with -threads" >&5
9097 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9098 echo $ac_n "(cached) $ac_c" 1>&6
9103 LIBS="-threads $LIBS"
9105 if test "$cross_compiling" = yes; then
9106 cat > conftest.$ac_ext <<EOF
9107 #line 9108 "configure"
9108 #include "confdefs.h"
9109 /* pthread test headers */
9110 #include <pthread.h>
9112 #define NULL (void*)0
9115 static void *task(p)
9118 return (void *) (p == NULL);
9123 /* pthread test function */
9126 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9127 /* This system (e.g. AIX) defaults detached; must override */
9128 pthread_attr_t attr;
9130 status = pthread_attr_init(&attr);
9131 if( status ) exit( status );
9133 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9134 if( status ) exit( status );
9138 #if HAVE_PTHREADS_D4
9139 #define ATTR pthread_attr_default
9144 /* make sure pthread_create() isn't just a stub */
9145 status = pthread_create(&t, ATTR, task, NULL);
9146 if( status ) exit( status );
9148 /* make sure pthread_detach() isn't just a stub */
9149 #if HAVE_PTHREADS_D4
9150 status = pthread_detach( &t );
9152 status = pthread_detach( t );
9155 #ifdef HAVE_LINUX_THREADS
9156 pthread_kill_other_threads_np();
9163 if { (eval echo configure:9164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9165 ol_cv_pthread_threads=yes
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9170 ol_cv_pthread_threads=no
9174 cat > conftest.$ac_ext <<EOF
9175 #line 9176 "configure"
9176 #include "confdefs.h"
9177 /* pthread test headers */
9178 #include <pthread.h>
9180 #define NULL (void*)0
9183 static void *task(p)
9186 return (void *) (p == NULL);
9190 int main(argc, argv)
9195 /* pthread test function */
9198 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9199 /* This system (e.g. AIX) defaults detached; must override */
9200 pthread_attr_t attr;
9202 status = pthread_attr_init(&attr);
9203 if( status ) exit( status );
9205 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9206 if( status ) exit( status );
9210 #if HAVE_PTHREADS_D4
9211 #define ATTR pthread_attr_default
9216 /* make sure pthread_create() isn't just a stub */
9217 status = pthread_create(&t, ATTR, task, NULL);
9218 if( status ) exit( status );
9220 /* make sure pthread_detach() isn't just a stub */
9221 #if HAVE_PTHREADS_D4
9222 status = pthread_detach( &t );
9224 status = pthread_detach( t );
9227 #ifdef HAVE_LINUX_THREADS
9228 pthread_kill_other_threads_np();
9236 if { (eval echo configure:9237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9238 ol_cv_pthread_threads=yes
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 ol_cv_pthread_threads=no
9254 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9256 if test $ol_cv_pthread_threads = yes ; then
9257 ol_link_pthreads="-threads"
9258 ol_link_threads=posix
9263 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9264 if test "$ol_link_threads" = no ; then
9265 # try -lpthreads -lmach -lexc -lc_r
9266 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9267 echo "configure:9268: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9268 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9269 echo $ac_n "(cached) $ac_c" 1>&6
9274 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9276 if test "$cross_compiling" = yes; then
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 /* pthread test headers */
9281 #include <pthread.h>
9283 #define NULL (void*)0
9286 static void *task(p)
9289 return (void *) (p == NULL);
9294 /* pthread test function */
9297 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9298 /* This system (e.g. AIX) defaults detached; must override */
9299 pthread_attr_t attr;
9301 status = pthread_attr_init(&attr);
9302 if( status ) exit( status );
9304 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9305 if( status ) exit( status );
9309 #if HAVE_PTHREADS_D4
9310 #define ATTR pthread_attr_default
9315 /* make sure pthread_create() isn't just a stub */
9316 status = pthread_create(&t, ATTR, task, NULL);
9317 if( status ) exit( status );
9319 /* make sure pthread_detach() isn't just a stub */
9320 #if HAVE_PTHREADS_D4
9321 status = pthread_detach( &t );
9323 status = pthread_detach( t );
9326 #ifdef HAVE_LINUX_THREADS
9327 pthread_kill_other_threads_np();
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9345 cat > conftest.$ac_ext <<EOF
9346 #line 9347 "configure"
9347 #include "confdefs.h"
9348 /* pthread test headers */
9349 #include <pthread.h>
9351 #define NULL (void*)0
9354 static void *task(p)
9357 return (void *) (p == NULL);
9361 int main(argc, argv)
9366 /* pthread test function */
9369 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9370 /* This system (e.g. AIX) defaults detached; must override */
9371 pthread_attr_t attr;
9373 status = pthread_attr_init(&attr);
9374 if( status ) exit( status );
9376 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9377 if( status ) exit( status );
9381 #if HAVE_PTHREADS_D4
9382 #define ATTR pthread_attr_default
9387 /* make sure pthread_create() isn't just a stub */
9388 status = pthread_create(&t, ATTR, task, NULL);
9389 if( status ) exit( status );
9391 /* make sure pthread_detach() isn't just a stub */
9392 #if HAVE_PTHREADS_D4
9393 status = pthread_detach( &t );
9395 status = pthread_detach( t );
9398 #ifdef HAVE_LINUX_THREADS
9399 pthread_kill_other_threads_np();
9407 if { (eval echo configure:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9409 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9414 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9425 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9427 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9428 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9429 ol_link_threads=posix
9433 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9434 if test "$ol_link_threads" = no ; then
9435 # try -lpthreads -lmach -lexc
9436 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9437 echo "configure:9438: checking for pthread link with -lpthreads -lmach -lexc" >&5
9438 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9444 LIBS="-lpthreads -lmach -lexc $LIBS"
9446 if test "$cross_compiling" = yes; then
9447 cat > conftest.$ac_ext <<EOF
9448 #line 9449 "configure"
9449 #include "confdefs.h"
9450 /* pthread test headers */
9451 #include <pthread.h>
9453 #define NULL (void*)0
9456 static void *task(p)
9459 return (void *) (p == NULL);
9464 /* pthread test function */
9467 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9468 /* This system (e.g. AIX) defaults detached; must override */
9469 pthread_attr_t attr;
9471 status = pthread_attr_init(&attr);
9472 if( status ) exit( status );
9474 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9475 if( status ) exit( status );
9479 #if HAVE_PTHREADS_D4
9480 #define ATTR pthread_attr_default
9485 /* make sure pthread_create() isn't just a stub */
9486 status = pthread_create(&t, ATTR, task, NULL);
9487 if( status ) exit( status );
9489 /* make sure pthread_detach() isn't just a stub */
9490 #if HAVE_PTHREADS_D4
9491 status = pthread_detach( &t );
9493 status = pthread_detach( t );
9496 #ifdef HAVE_LINUX_THREADS
9497 pthread_kill_other_threads_np();
9504 if { (eval echo configure:9505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9506 ol_cv_pthread_lpthreads_lmach_lexc=yes
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 ol_cv_pthread_lpthreads_lmach_lexc=no
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 /* pthread test headers */
9519 #include <pthread.h>
9521 #define NULL (void*)0
9524 static void *task(p)
9527 return (void *) (p == NULL);
9531 int main(argc, argv)
9536 /* pthread test function */
9539 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9540 /* This system (e.g. AIX) defaults detached; must override */
9541 pthread_attr_t attr;
9543 status = pthread_attr_init(&attr);
9544 if( status ) exit( status );
9546 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9547 if( status ) exit( status );
9551 #if HAVE_PTHREADS_D4
9552 #define ATTR pthread_attr_default
9557 /* make sure pthread_create() isn't just a stub */
9558 status = pthread_create(&t, ATTR, task, NULL);
9559 if( status ) exit( status );
9561 /* make sure pthread_detach() isn't just a stub */
9562 #if HAVE_PTHREADS_D4
9563 status = pthread_detach( &t );
9565 status = pthread_detach( t );
9568 #ifdef HAVE_LINUX_THREADS
9569 pthread_kill_other_threads_np();
9577 if { (eval echo configure:9578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9579 ol_cv_pthread_lpthreads_lmach_lexc=yes
9581 echo "configure: failed program was:" >&5
9582 cat conftest.$ac_ext >&5
9584 ol_cv_pthread_lpthreads_lmach_lexc=no
9595 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9597 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9598 ol_link_pthreads="-lpthreads -lmach -lexc"
9599 ol_link_threads=posix
9603 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9604 if test "$ol_link_threads" = no ; then
9605 # try -lpthreads -lexc
9606 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9607 echo "configure:9608: checking for pthread link with -lpthreads -lexc" >&5
9608 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9609 echo $ac_n "(cached) $ac_c" 1>&6
9614 LIBS="-lpthreads -lexc $LIBS"
9616 if test "$cross_compiling" = yes; then
9617 cat > conftest.$ac_ext <<EOF
9618 #line 9619 "configure"
9619 #include "confdefs.h"
9620 /* pthread test headers */
9621 #include <pthread.h>
9623 #define NULL (void*)0
9626 static void *task(p)
9629 return (void *) (p == NULL);
9634 /* pthread test function */
9637 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9638 /* This system (e.g. AIX) defaults detached; must override */
9639 pthread_attr_t attr;
9641 status = pthread_attr_init(&attr);
9642 if( status ) exit( status );
9644 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9645 if( status ) exit( status );
9649 #if HAVE_PTHREADS_D4
9650 #define ATTR pthread_attr_default
9655 /* make sure pthread_create() isn't just a stub */
9656 status = pthread_create(&t, ATTR, task, NULL);
9657 if( status ) exit( status );
9659 /* make sure pthread_detach() isn't just a stub */
9660 #if HAVE_PTHREADS_D4
9661 status = pthread_detach( &t );
9663 status = pthread_detach( t );
9666 #ifdef HAVE_LINUX_THREADS
9667 pthread_kill_other_threads_np();
9674 if { (eval echo configure:9675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9676 ol_cv_pthread_lpthreads_lexc=yes
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9681 ol_cv_pthread_lpthreads_lexc=no
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9688 /* pthread test headers */
9689 #include <pthread.h>
9691 #define NULL (void*)0
9694 static void *task(p)
9697 return (void *) (p == NULL);
9701 int main(argc, argv)
9706 /* pthread test function */
9709 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9710 /* This system (e.g. AIX) defaults detached; must override */
9711 pthread_attr_t attr;
9713 status = pthread_attr_init(&attr);
9714 if( status ) exit( status );
9716 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9717 if( status ) exit( status );
9721 #if HAVE_PTHREADS_D4
9722 #define ATTR pthread_attr_default
9727 /* make sure pthread_create() isn't just a stub */
9728 status = pthread_create(&t, ATTR, task, NULL);
9729 if( status ) exit( status );
9731 /* make sure pthread_detach() isn't just a stub */
9732 #if HAVE_PTHREADS_D4
9733 status = pthread_detach( &t );
9735 status = pthread_detach( t );
9738 #ifdef HAVE_LINUX_THREADS
9739 pthread_kill_other_threads_np();
9747 if { (eval echo configure:9748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9749 ol_cv_pthread_lpthreads_lexc=yes
9751 echo "configure: failed program was:" >&5
9752 cat conftest.$ac_ext >&5
9754 ol_cv_pthread_lpthreads_lexc=no
9765 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9767 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9768 ol_link_pthreads="-lpthreads -lexc"
9769 ol_link_threads=posix
9774 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9775 if test "$ol_link_threads" = no ; then
9777 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9778 echo "configure:9779: checking for pthread link with -lpthreads" >&5
9779 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9785 LIBS="-lpthreads $LIBS"
9787 if test "$cross_compiling" = yes; then
9788 cat > conftest.$ac_ext <<EOF
9789 #line 9790 "configure"
9790 #include "confdefs.h"
9791 /* pthread test headers */
9792 #include <pthread.h>
9794 #define NULL (void*)0
9797 static void *task(p)
9800 return (void *) (p == NULL);
9805 /* pthread test function */
9808 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9809 /* This system (e.g. AIX) defaults detached; must override */
9810 pthread_attr_t attr;
9812 status = pthread_attr_init(&attr);
9813 if( status ) exit( status );
9815 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9816 if( status ) exit( status );
9820 #if HAVE_PTHREADS_D4
9821 #define ATTR pthread_attr_default
9826 /* make sure pthread_create() isn't just a stub */
9827 status = pthread_create(&t, ATTR, task, NULL);
9828 if( status ) exit( status );
9830 /* make sure pthread_detach() isn't just a stub */
9831 #if HAVE_PTHREADS_D4
9832 status = pthread_detach( &t );
9834 status = pthread_detach( t );
9837 #ifdef HAVE_LINUX_THREADS
9838 pthread_kill_other_threads_np();
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9847 ol_cv_pthread_lib_lpthreads=yes
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9852 ol_cv_pthread_lib_lpthreads=no
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 /* pthread test headers */
9860 #include <pthread.h>
9862 #define NULL (void*)0
9865 static void *task(p)
9868 return (void *) (p == NULL);
9872 int main(argc, argv)
9877 /* pthread test function */
9880 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9881 /* This system (e.g. AIX) defaults detached; must override */
9882 pthread_attr_t attr;
9884 status = pthread_attr_init(&attr);
9885 if( status ) exit( status );
9887 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9888 if( status ) exit( status );
9892 #if HAVE_PTHREADS_D4
9893 #define ATTR pthread_attr_default
9898 /* make sure pthread_create() isn't just a stub */
9899 status = pthread_create(&t, ATTR, task, NULL);
9900 if( status ) exit( status );
9902 /* make sure pthread_detach() isn't just a stub */
9903 #if HAVE_PTHREADS_D4
9904 status = pthread_detach( &t );
9906 status = pthread_detach( t );
9909 #ifdef HAVE_LINUX_THREADS
9910 pthread_kill_other_threads_np();
9918 if { (eval echo configure:9919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9920 ol_cv_pthread_lib_lpthreads=yes
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 ol_cv_pthread_lib_lpthreads=no
9936 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9938 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9939 ol_link_pthreads="-lpthreads"
9940 ol_link_threads=posix
9945 if test $ol_link_threads != no ; then
9946 cat >> confdefs.h <<\EOF
9947 #define HAVE_PTHREADS 1
9951 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9953 save_CPPFLAGS="$CPPFLAGS"
9955 LIBS="$LTHREAD_LIBS $LIBS"
9957 for ac_func in sched_yield pthread_yield
9959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9960 echo "configure:9961: checking for $ac_func" >&5
9961 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9962 echo $ac_n "(cached) $ac_c" 1>&6
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9966 "configure"
9966 #include "confdefs.h"
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char $ac_func(); below. */
9970 /* Override any gcc2 internal prototype to avoid an error. */
9971 /* We use char because int might match the return type of a gcc2
9972 builtin and then its argument prototype would still apply. */
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9989 if { (eval echo configure:9990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9991 eval "ac_cv_func_$ac_func=yes"
9993 echo "configure: failed program was:" >&5
9994 cat conftest.$ac_ext >&5
9996 eval "ac_cv_func_$ac_func=no"
10001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10002 echo "$ac_t""yes" 1>&6
10003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10004 cat >> confdefs.h <<EOF
10005 #define $ac_tr_func 1
10009 echo "$ac_t""no" 1>&6
10014 if test $ac_cv_func_sched_yield = no -a \
10015 $ac_cv_func_pthread_yield = no ; then
10016 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10017 echo "configure:10018: checking for sched_yield in -lrt" >&5
10018 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10019 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10022 ac_save_LIBS="$LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char sched_yield();
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10043 eval "ac_cv_lib_$ac_lib_var=no"
10046 LIBS="$ac_save_LIBS"
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10052 cat >> confdefs.h <<\EOF
10053 #define HAVE_SCHED_YIELD 1
10056 ac_cv_func_sched_yield=yes
10058 echo "$ac_t""no" 1>&6
10059 ac_cv_func_sched_yield=no
10063 if test $ac_cv_func_sched_yield = no -a \
10064 $ac_cv_func_pthread_yield = no ; then
10065 for ac_func in thr_yield
10067 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10068 echo "configure:10069: checking for $ac_func" >&5
10069 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10070 echo $ac_n "(cached) $ac_c" 1>&6
10072 cat > conftest.$ac_ext <<EOF
10073 #line 10074 "configure"
10074 #include "confdefs.h"
10075 /* System header to define __stub macros and hopefully few prototypes,
10076 which can conflict with char $ac_func(); below. */
10077 #include <assert.h>
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 /* We use char because int might match the return type of a gcc2
10080 builtin and then its argument prototype would still apply. */
10086 /* The GNU C library defines this for functions which it implements
10087 to always fail with ENOSYS. Some functions are actually named
10088 something starting with __ and the normal name is an alias. */
10089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10097 if { (eval echo configure:10098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10099 eval "ac_cv_func_$ac_func=yes"
10101 echo "configure: failed program was:" >&5
10102 cat conftest.$ac_ext >&5
10104 eval "ac_cv_func_$ac_func=no"
10109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10110 echo "$ac_t""yes" 1>&6
10111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10112 cat >> confdefs.h <<EOF
10113 #define $ac_tr_func 1
10117 echo "$ac_t""no" 1>&6
10122 if test $ac_cv_func_sched_yield = no -a \
10123 $ac_cv_func_pthread_yield = no -a \
10124 "$ac_cv_func_thr_yield" = no ; then
10125 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10128 for ac_func in pthread_kill pthread_rwlock_destroy
10130 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10131 echo "configure:10132: checking for $ac_func" >&5
10132 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10133 echo $ac_n "(cached) $ac_c" 1>&6
10135 cat > conftest.$ac_ext <<EOF
10136 #line 10137 "configure"
10137 #include "confdefs.h"
10138 /* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char $ac_func(); below. */
10140 #include <assert.h>
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10149 /* The GNU C library defines this for functions which it implements
10150 to always fail with ENOSYS. Some functions are actually named
10151 something starting with __ and the normal name is an alias. */
10152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10160 if { (eval echo configure:10161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10162 eval "ac_cv_func_$ac_func=yes"
10164 echo "configure: failed program was:" >&5
10165 cat conftest.$ac_ext >&5
10167 eval "ac_cv_func_$ac_func=no"
10172 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10173 echo "$ac_t""yes" 1>&6
10174 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10175 cat >> confdefs.h <<EOF
10176 #define $ac_tr_func 1
10180 echo "$ac_t""no" 1>&6
10185 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10186 echo "configure:10187: checking for pthread_detach with <pthread.h>" >&5
10187 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10188 echo $ac_n "(cached) $ac_c" 1>&6
10191 cat > conftest.$ac_ext <<EOF
10192 #line 10193 "configure"
10193 #include "confdefs.h"
10195 #include <pthread.h>
10197 #define NULL (void*)0
10201 pthread_detach(NULL);
10204 if { (eval echo configure:10205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10206 ol_cv_func_pthread_detach=yes
10208 echo "configure: failed program was:" >&5
10209 cat conftest.$ac_ext >&5
10211 ol_cv_func_pthread_detach=no
10217 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10219 if test $ol_cv_func_pthread_detach = no ; then
10220 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10223 cat >> confdefs.h <<\EOF
10224 #define HAVE_PTHREAD_DETACH 1
10229 pthread_setconcurrency \
10230 pthread_getconcurrency \
10231 thr_setconcurrency \
10232 thr_getconcurrency \
10235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10236 echo "configure:10237: checking for $ac_func" >&5
10237 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10238 echo $ac_n "(cached) $ac_c" 1>&6
10240 cat > conftest.$ac_ext <<EOF
10241 #line 10242 "configure"
10242 #include "confdefs.h"
10243 /* System header to define __stub macros and hopefully few prototypes,
10244 which can conflict with char $ac_func(); below. */
10245 #include <assert.h>
10246 /* Override any gcc2 internal prototype to avoid an error. */
10247 /* We use char because int might match the return type of a gcc2
10248 builtin and then its argument prototype would still apply. */
10254 /* The GNU C library defines this for functions which it implements
10255 to always fail with ENOSYS. Some functions are actually named
10256 something starting with __ and the normal name is an alias. */
10257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10267 eval "ac_cv_func_$ac_func=yes"
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 eval "ac_cv_func_$ac_func=no"
10277 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10278 echo "$ac_t""yes" 1>&6
10279 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10280 cat >> confdefs.h <<EOF
10281 #define $ac_tr_func 1
10285 echo "$ac_t""no" 1>&6
10291 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10292 echo "configure:10293: checking for pthread_kill_other_threads_np" >&5
10293 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10294 echo $ac_n "(cached) $ac_c" 1>&6
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299 /* System header to define __stub macros and hopefully few prototypes,
10300 which can conflict with char pthread_kill_other_threads_np(); below. */
10301 #include <assert.h>
10302 /* Override any gcc2 internal prototype to avoid an error. */
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10305 char pthread_kill_other_threads_np();
10310 /* The GNU C library defines this for functions which it implements
10311 to always fail with ENOSYS. Some functions are actually named
10312 something starting with __ and the normal name is an alias. */
10313 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10316 f = pthread_kill_other_threads_np;
10321 if { (eval echo configure:10322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10323 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10325 echo "configure: failed program was:" >&5
10326 cat conftest.$ac_ext >&5
10328 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10333 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10334 echo "$ac_t""yes" 1>&6
10337 echo "$ac_t""no" 1>&6
10340 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10341 echo "configure:10342: checking for LinuxThreads implementation" >&5
10342 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10343 echo $ac_n "(cached) $ac_c" 1>&6
10345 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10348 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10353 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10354 echo "configure:10355: checking for LinuxThreads consistency" >&5
10355 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10356 echo $ac_n "(cached) $ac_c" 1>&6
10359 if test $ol_cv_header_linux_threads = yes -a \
10360 $ol_cv_sys_linux_threads = yes; then
10361 ol_cv_linux_threads=yes
10362 elif test $ol_cv_header_linux_threads = no -a \
10363 $ol_cv_sys_linux_threads = no; then
10364 ol_cv_linux_threads=no
10366 ol_cv_linux_threads=error
10371 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10374 if test $ol_cv_linux_threads = error; then
10375 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10378 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10379 echo "configure:10380: checking if pthread_create() works" >&5
10380 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10381 echo $ac_n "(cached) $ac_c" 1>&6
10384 if test "$cross_compiling" = yes; then
10385 ol_cv_pthread_create_works=yes
10387 cat > conftest.$ac_ext <<EOF
10388 #line 10389 "configure"
10389 #include "confdefs.h"
10390 /* pthread test headers */
10391 #include <pthread.h>
10393 #define NULL (void*)0
10396 static void *task(p)
10399 return (void *) (p == NULL);
10403 int main(argc, argv)
10408 /* pthread test function */
10411 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10412 /* This system (e.g. AIX) defaults detached; must override */
10413 pthread_attr_t attr;
10415 status = pthread_attr_init(&attr);
10416 if( status ) exit( status );
10418 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10419 if( status ) exit( status );
10423 #if HAVE_PTHREADS_D4
10424 #define ATTR pthread_attr_default
10429 /* make sure pthread_create() isn't just a stub */
10430 status = pthread_create(&t, ATTR, task, NULL);
10431 if( status ) exit( status );
10433 /* make sure pthread_detach() isn't just a stub */
10434 #if HAVE_PTHREADS_D4
10435 status = pthread_detach( &t );
10437 status = pthread_detach( t );
10440 #ifdef HAVE_LINUX_THREADS
10441 pthread_kill_other_threads_np();
10449 if { (eval echo configure:10450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10451 ol_cv_pthread_create_works=yes
10453 echo "configure: failed program was:" >&5
10454 cat conftest.$ac_ext >&5
10456 ol_cv_pthread_create_works=no
10463 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10465 if test $ol_cv_pthread_create_works = no ; then
10466 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10469 if test $ol_with_yielding_select = auto ; then
10470 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10471 echo "configure:10472: checking if select yields when using pthreads" >&5
10472 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10473 echo $ac_n "(cached) $ac_c" 1>&6
10476 if test "$cross_compiling" = yes; then
10477 ol_cv_pthread_select_yields=cross
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10483 #include <sys/types.h>
10484 #include <sys/time.h>
10485 #include <unistd.h>
10486 #include <pthread.h>
10488 #define NULL (void*) 0
10491 static int fildes[2];
10493 static void *task(p)
10505 FD_SET(fildes[0], &rfds);
10507 /* we're not interested in any fds */
10508 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10515 exit(0); /* if we exit here, the select blocked the whole process */
10518 int main(argc, argv)
10524 /* create a pipe to select */
10525 if(pipe(&fildes[0])) {
10530 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10531 (void) pthread_setconcurrency(2);
10533 #ifdef HAVE_THR_SETCONCURRENCY
10534 /* Set Solaris LWP concurrency to 2 */
10535 thr_setconcurrency(2);
10539 #if HAVE_PTHREADS_D4
10540 pthread_create(&t, pthread_attr_default, task, NULL);
10542 pthread_create(&t, NULL, task, NULL);
10545 #if HAVE_SCHED_YIELD
10546 sched_yield(); /* make sure task runs first */
10548 #ifdef HAVE_PTHREAD_YIELD
10549 pthread_yield(); /* make sure task runs first */
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10558 ol_cv_pthread_select_yields=no
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10563 ol_cv_pthread_select_yields=yes
10570 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10572 if test $ol_cv_pthread_select_yields = cross ; then
10573 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10576 if test $ol_cv_pthread_select_yields = yes ; then
10577 ol_with_yielding_select=yes
10581 CPPFLAGS="$save_CPPFLAGS"
10584 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10588 if test $ol_with_threads = posix ; then
10589 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10593 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10594 -o $ol_with_threads = mach ; then
10596 for ac_hdr in mach/cthreads.h
10598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10600 echo "configure:10601: checking for $ac_hdr" >&5
10601 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10602 echo $ac_n "(cached) $ac_c" 1>&6
10604 cat > conftest.$ac_ext <<EOF
10605 #line 10606 "configure"
10606 #include "confdefs.h"
10609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10610 { (eval echo configure:10611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10612 if test -z "$ac_err"; then
10614 eval "ac_cv_header_$ac_safe=yes"
10617 echo "configure: failed program was:" >&5
10618 cat conftest.$ac_ext >&5
10620 eval "ac_cv_header_$ac_safe=no"
10624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10625 echo "$ac_t""yes" 1>&6
10626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10627 cat >> confdefs.h <<EOF
10628 #define $ac_tr_hdr 1
10632 echo "$ac_t""no" 1>&6
10636 if test $ac_cv_header_mach_cthreads_h = yes ; then
10637 ol_with_threads=found
10639 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10640 echo "configure:10641: checking for cthread_fork" >&5
10641 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10642 echo $ac_n "(cached) $ac_c" 1>&6
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10647 /* System header to define __stub macros and hopefully few prototypes,
10648 which can conflict with char cthread_fork(); below. */
10649 #include <assert.h>
10650 /* Override any gcc2 internal prototype to avoid an error. */
10651 /* We use char because int might match the return type of a gcc2
10652 builtin and then its argument prototype would still apply. */
10653 char cthread_fork();
10658 /* The GNU C library defines this for functions which it implements
10659 to always fail with ENOSYS. Some functions are actually named
10660 something starting with __ and the normal name is an alias. */
10661 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_func_cthread_fork=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_func_cthread_fork=no"
10681 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10682 echo "$ac_t""yes" 1>&6
10683 ol_link_threads=yes
10685 echo "$ac_t""no" 1>&6
10689 if test $ol_link_threads = no ; then
10690 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10691 echo "configure:10692: checking for cthread_fork with -all_load" >&5
10692 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10693 echo $ac_n "(cached) $ac_c" 1>&6
10697 LIBS="-all_load $LIBS"
10698 cat > conftest.$ac_ext <<EOF
10699 #line 10700 "configure"
10700 #include "confdefs.h"
10701 #include <mach/cthreads.h>
10704 cthread_fork((void *)0, (void *)0);
10708 if { (eval echo configure:10709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10710 ol_cv_cthread_all_load=yes
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 ol_cv_cthread_all_load=no
10722 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10724 if test $ol_cv_cthread_all_load = yes ; then
10725 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10726 ol_link_threads=mach
10730 if test $ol_link_threads != no ; then
10731 : check for cthread specific functionality here
10732 cat >> confdefs.h <<\EOF
10733 #define HAVE_MACH_CTHREADS 1
10737 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10741 if test $ol_with_threads = mach ; then
10742 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10746 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10747 -o $ol_with_threads = pth ; then
10749 for ac_hdr in pth.h
10751 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10752 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10753 echo "configure:10754: checking for $ac_hdr" >&5
10754 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10755 echo $ac_n "(cached) $ac_c" 1>&6
10757 cat > conftest.$ac_ext <<EOF
10758 #line 10759 "configure"
10759 #include "confdefs.h"
10762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10763 { (eval echo configure:10764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10765 if test -z "$ac_err"; then
10767 eval "ac_cv_header_$ac_safe=yes"
10770 echo "configure: failed program was:" >&5
10771 cat conftest.$ac_ext >&5
10773 eval "ac_cv_header_$ac_safe=no"
10777 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10778 echo "$ac_t""yes" 1>&6
10779 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10780 cat >> confdefs.h <<EOF
10781 #define $ac_tr_hdr 1
10785 echo "$ac_t""no" 1>&6
10790 if test $ac_cv_header_pth_h = yes ; then
10791 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10792 echo "configure:10793: checking for pth_version in -lpth" >&5
10793 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10795 echo $ac_n "(cached) $ac_c" 1>&6
10797 ac_save_LIBS="$LIBS"
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10802 /* Override any gcc2 internal prototype to avoid an error. */
10803 /* We use char because int might match the return type of a gcc2
10804 builtin and then its argument prototype would still apply. */
10805 char pth_version();
10811 if { (eval echo configure:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10813 eval "ac_cv_lib_$ac_lib_var=yes"
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10818 eval "ac_cv_lib_$ac_lib_var=no"
10821 LIBS="$ac_save_LIBS"
10824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
10828 echo "$ac_t""no" 1>&6
10833 if test $have_pth = yes ; then
10834 cat >> confdefs.h <<\EOF
10835 #define HAVE_GNU_PTH 1
10838 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10839 ol_link_threads=pth
10841 if test $ol_with_yielding_select = auto ; then
10842 ol_with_yielding_select=yes
10848 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10849 -o $ol_with_threads = lwp ; then
10851 for ac_hdr in thread.h synch.h
10853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10855 echo "configure:10856: checking for $ac_hdr" >&5
10856 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10859 cat > conftest.$ac_ext <<EOF
10860 #line 10861 "configure"
10861 #include "confdefs.h"
10864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10865 { (eval echo configure:10866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10867 if test -z "$ac_err"; then
10869 eval "ac_cv_header_$ac_safe=yes"
10872 echo "configure: failed program was:" >&5
10873 cat conftest.$ac_ext >&5
10875 eval "ac_cv_header_$ac_safe=no"
10879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10880 echo "$ac_t""yes" 1>&6
10881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10882 cat >> confdefs.h <<EOF
10883 #define $ac_tr_hdr 1
10887 echo "$ac_t""no" 1>&6
10891 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10892 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10893 echo "configure:10894: checking for thr_create in -lthread" >&5
10894 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10895 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10898 ac_save_LIBS="$LIBS"
10899 LIBS="-lthread $LIBS"
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10903 /* Override any gcc2 internal prototype to avoid an error. */
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10912 if { (eval echo configure:10913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10914 eval "ac_cv_lib_$ac_lib_var=yes"
10916 echo "configure: failed program was:" >&5
10917 cat conftest.$ac_ext >&5
10919 eval "ac_cv_lib_$ac_lib_var=no"
10922 LIBS="$ac_save_LIBS"
10925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10926 echo "$ac_t""yes" 1>&6
10929 echo "$ac_t""no" 1>&6
10934 if test $have_thr = yes ; then
10935 cat >> confdefs.h <<\EOF
10939 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10940 ol_link_threads=thr
10942 if test $ol_with_yielding_select = auto ; then
10943 ol_with_yielding_select=yes
10947 thr_setconcurrency \
10948 thr_getconcurrency \
10951 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10952 echo "configure:10953: checking for $ac_func" >&5
10953 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10954 echo $ac_n "(cached) $ac_c" 1>&6
10956 cat > conftest.$ac_ext <<EOF
10957 #line 10958 "configure"
10958 #include "confdefs.h"
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func(); below. */
10961 #include <assert.h>
10962 /* Override any gcc2 internal prototype to avoid an error. */
10963 /* We use char because int might match the return type of a gcc2
10964 builtin and then its argument prototype would still apply. */
10970 /* The GNU C library defines this for functions which it implements
10971 to always fail with ENOSYS. Some functions are actually named
10972 something starting with __ and the normal name is an alias. */
10973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10981 if { (eval echo configure:10982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10983 eval "ac_cv_func_$ac_func=yes"
10985 echo "configure: failed program was:" >&5
10986 cat conftest.$ac_ext >&5
10988 eval "ac_cv_func_$ac_func=no"
10993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10994 echo "$ac_t""yes" 1>&6
10995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10996 cat >> confdefs.h <<EOF
10997 #define $ac_tr_func 1
11001 echo "$ac_t""no" 1>&6
11008 for ac_hdr in lwp/lwp.h
11010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11012 echo "configure:11013: checking for $ac_hdr" >&5
11013 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11014 echo $ac_n "(cached) $ac_c" 1>&6
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11022 { (eval echo configure:11023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11024 if test -z "$ac_err"; then
11026 eval "ac_cv_header_$ac_safe=yes"
11029 echo "configure: failed program was:" >&5
11030 cat conftest.$ac_ext >&5
11032 eval "ac_cv_header_$ac_safe=no"
11036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11037 echo "$ac_t""yes" 1>&6
11038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11039 cat >> confdefs.h <<EOF
11040 #define $ac_tr_hdr 1
11044 echo "$ac_t""no" 1>&6
11048 if test $ac_cv_header_lwp_lwp_h = yes ; then
11049 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11050 echo "configure:11051: checking for lwp_create in -llwp" >&5
11051 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11053 echo $ac_n "(cached) $ac_c" 1>&6
11055 ac_save_LIBS="$LIBS"
11057 cat > conftest.$ac_ext <<EOF
11058 #line 11059 "configure"
11059 #include "confdefs.h"
11060 /* Override any gcc2 internal prototype to avoid an error. */
11061 /* We use char because int might match the return type of a gcc2
11062 builtin and then its argument prototype would still apply. */
11069 if { (eval echo configure:11070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11071 eval "ac_cv_lib_$ac_lib_var=yes"
11073 echo "configure: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11076 eval "ac_cv_lib_$ac_lib_var=no"
11079 LIBS="$ac_save_LIBS"
11082 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11083 echo "$ac_t""yes" 1>&6
11086 echo "$ac_t""no" 1>&6
11091 if test $have_lwp = yes ; then
11092 cat >> confdefs.h <<\EOF
11096 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11097 ol_link_threads=lwp
11099 if test $ol_with_yielding_select = auto ; then
11100 ol_with_yielding_select=no
11106 if test $ol_with_yielding_select = yes ; then
11107 cat >> confdefs.h <<\EOF
11108 #define HAVE_YIELDING_SELECT 1
11113 if test $ol_with_threads = manual ; then
11114 ol_link_threads=yes
11116 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11118 for ac_hdr in pthread.h sched.h
11120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11122 echo "configure:11123: checking for $ac_hdr" >&5
11123 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11124 echo $ac_n "(cached) $ac_c" 1>&6
11126 cat > conftest.$ac_ext <<EOF
11127 #line 11128 "configure"
11128 #include "confdefs.h"
11131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11132 { (eval echo configure:11133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11134 if test -z "$ac_err"; then
11136 eval "ac_cv_header_$ac_safe=yes"
11139 echo "configure: failed program was:" >&5
11140 cat conftest.$ac_ext >&5
11142 eval "ac_cv_header_$ac_safe=no"
11146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11147 echo "$ac_t""yes" 1>&6
11148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11149 cat >> confdefs.h <<EOF
11150 #define $ac_tr_hdr 1
11154 echo "$ac_t""no" 1>&6
11158 for ac_func in sched_yield pthread_yield
11160 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11161 echo "configure:11162: checking for $ac_func" >&5
11162 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11163 echo $ac_n "(cached) $ac_c" 1>&6
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11167 "configure"
11167 #include "confdefs.h"
11168 /* System header to define __stub macros and hopefully few prototypes,
11169 which can conflict with char $ac_func(); below. */
11170 #include <assert.h>
11171 /* Override any gcc2 internal prototype to avoid an error. */
11172 /* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11179 /* The GNU C library defines this for functions which it implements
11180 to always fail with ENOSYS. Some functions are actually named
11181 something starting with __ and the normal name is an alias. */
11182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11192 eval "ac_cv_func_$ac_func=yes"
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11197 eval "ac_cv_func_$ac_func=no"
11202 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11203 echo "$ac_t""yes" 1>&6
11204 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11205 cat >> confdefs.h <<EOF
11206 #define $ac_tr_func 1
11210 echo "$ac_t""no" 1>&6
11215 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11216 echo "configure:11217: checking for LinuxThreads pthread.h" >&5
11217 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11220 cat > conftest.$ac_ext <<EOF
11221 #line 11222 "configure"
11222 #include "confdefs.h"
11223 #include <pthread.h>
11225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11226 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11228 ol_cv_header_linux_threads=yes
11231 ol_cv_header_linux_threads=no
11238 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11239 if test $ol_cv_header_linux_threads = yes; then
11240 cat >> confdefs.h <<\EOF
11241 #define HAVE_LINUX_THREADS 1
11247 for ac_hdr in mach/cthreads.h
11249 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11250 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11251 echo "configure:11252: checking for $ac_hdr" >&5
11252 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 cat > conftest.$ac_ext <<EOF
11256 #line 11257 "configure"
11257 #include "confdefs.h"
11260 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11261 { (eval echo configure:11262: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11262 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11263 if test -z "$ac_err"; then
11265 eval "ac_cv_header_$ac_safe=yes"
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11271 eval "ac_cv_header_$ac_safe=no"
11275 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11276 echo "$ac_t""yes" 1>&6
11277 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11278 cat >> confdefs.h <<EOF
11279 #define $ac_tr_hdr 1
11283 echo "$ac_t""no" 1>&6
11287 for ac_hdr in lwp/lwp.h
11289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11291 echo "configure:11292: checking for $ac_hdr" >&5
11292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 cat > conftest.$ac_ext <<EOF
11296 #line 11297 "configure"
11297 #include "confdefs.h"
11300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11301 { (eval echo configure:11302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11303 if test -z "$ac_err"; then
11305 eval "ac_cv_header_$ac_safe=yes"
11308 echo "configure: failed program was:" >&5
11309 cat conftest.$ac_ext >&5
11311 eval "ac_cv_header_$ac_safe=no"
11315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11316 echo "$ac_t""yes" 1>&6
11317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11318 cat >> confdefs.h <<EOF
11319 #define $ac_tr_hdr 1
11323 echo "$ac_t""no" 1>&6
11327 for ac_hdr in thread.h synch.h
11329 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11330 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11331 echo "configure:11332: checking for $ac_hdr" >&5
11332 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11333 echo $ac_n "(cached) $ac_c" 1>&6
11335 cat > conftest.$ac_ext <<EOF
11336 #line 11337 "configure"
11337 #include "confdefs.h"
11340 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11341 { (eval echo configure:11342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11342 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11343 if test -z "$ac_err"; then
11345 eval "ac_cv_header_$ac_safe=yes"
11348 echo "configure: failed program was:" >&5
11349 cat conftest.$ac_ext >&5
11351 eval "ac_cv_header_$ac_safe=no"
11355 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11356 echo "$ac_t""yes" 1>&6
11357 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11358 cat >> confdefs.h <<EOF
11359 #define $ac_tr_hdr 1
11363 echo "$ac_t""no" 1>&6
11369 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11370 cat >> confdefs.h <<\EOF
11371 #define REENTRANT 1
11374 cat >> confdefs.h <<\EOF
11375 #define _REENTRANT 1
11378 cat >> confdefs.h <<\EOF
11379 #define THREAD_SAFE 1
11382 cat >> confdefs.h <<\EOF
11383 #define _THREAD_SAFE 1
11386 cat >> confdefs.h <<\EOF
11387 #define THREADSAFE 1
11390 cat >> confdefs.h <<\EOF
11391 #define _THREADSAFE 1
11394 cat >> confdefs.h <<\EOF
11395 #define _SGI_MP_SOURCE 1
11399 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11400 echo "configure:11401: checking for thread specific errno" >&5
11401 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11413 if { (eval echo configure:11414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11415 ol_cv_errno_thread_specific=yes
11417 echo "configure: failed program was:" >&5
11418 cat conftest.$ac_ext >&5
11420 ol_cv_errno_thread_specific=no
11426 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11428 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11429 echo "configure:11430: checking for thread specific h_errno" >&5
11430 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11431 echo $ac_n "(cached) $ac_c" 1>&6
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11442 if { (eval echo configure:11443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11444 ol_cv_h_errno_thread_specific=yes
11446 echo "configure: failed program was:" >&5
11447 cat conftest.$ac_ext >&5
11449 ol_cv_h_errno_thread_specific=no
11455 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11457 if test $ol_cv_errno_thread_specific != yes \
11458 -o $ol_cv_h_errno_thread_specific != yes ; then
11459 LIBS="$LTHREAD_LIBS $LIBS"
11465 if test $ol_link_threads = no ; then
11466 if test $ol_with_threads = yes ; then
11467 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11470 if test $ol_with_threads = auto ; then
11471 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11475 cat >> confdefs.h <<\EOF
11476 #define NO_THREADS 1
11482 if test $ol_link_threads != no ; then
11483 cat >> confdefs.h <<\EOF
11484 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11491 if test $ol_with_ldbm_api = auto \
11492 -o $ol_with_ldbm_api = berkeley \
11493 -o $ol_with_ldbm_api = bcompat ; then
11495 if test $ol_with_ldbm_api = bcompat; then \
11496 ol_cv_berkeley_db=no
11497 for ac_hdr in db_185.h db.h
11499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11501 echo "configure:11502: checking for $ac_hdr" >&5
11502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11503 echo $ac_n "(cached) $ac_c" 1>&6
11505 cat > conftest.$ac_ext <<EOF
11506 #line 11507 "configure"
11507 #include "confdefs.h"
11510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11511 { (eval echo configure:11512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11513 if test -z "$ac_err"; then
11515 eval "ac_cv_header_$ac_safe=yes"
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11521 eval "ac_cv_header_$ac_safe=no"
11525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11526 echo "$ac_t""yes" 1>&6
11527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11528 cat >> confdefs.h <<EOF
11529 #define $ac_tr_hdr 1
11533 echo "$ac_t""no" 1>&6
11537 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11538 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11539 echo "configure:11540: checking if Berkeley DB header compatibility" >&5
11540 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11541 echo $ac_n "(cached) $ac_c" 1>&6
11544 cat > conftest.$ac_ext <<EOF
11545 #line 11546 "configure"
11546 #include "confdefs.h"
11549 # include <db_185.h>
11554 /* this check could be improved */
11555 #ifndef DB_VERSION_MAJOR
11556 # define DB_VERSION_MAJOR 1
11559 #if DB_VERSION_MAJOR == 1
11564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11565 egrep "__db_version_1" >/dev/null 2>&1; then
11567 ol_cv_header_db1=yes
11570 ol_cv_header_db1=no
11576 echo "$ac_t""$ol_cv_header_db1" 1>&6
11578 if test ol_cv_header_db1=yes ; then
11580 if test $ol_cv_lib_db = no ; then
11581 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11582 echo "configure:11583: checking for Berkeley DB link (default)" >&5
11583 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11589 LIBS="$ol_DB_LIB $LIBS"
11591 cat > conftest.$ac_ext <<EOF
11592 #line 11593 "configure"
11593 #include "confdefs.h"
11595 #ifdef HAVE_DB_185_H
11596 # include <db_185.h>
11601 #ifndef DB_VERSION_MAJOR
11602 # define DB_VERSION_MAJOR 1
11606 #define NULL ((void*)0)
11611 #if DB_VERSION_MAJOR > 2
11612 db_env_create( NULL, 0 );
11613 #elif DB_VERSION_MAJOR > 1
11614 db_appexit( NULL );
11616 (void) dbopen( NULL, 0, 0, 0, NULL);
11621 if { (eval echo configure:11622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11625 echo "configure: failed program was:" >&5
11626 cat conftest.$ac_ext >&5
11636 echo "$ac_t""$ol_cv_db_none" 1>&6
11638 if test $ol_cv_db_none = yes ; then
11643 if test $ol_cv_lib_db = no ; then
11644 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11645 echo "configure:11646: checking for Berkeley DB link (-ldb)" >&5
11646 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11652 LIBS="$ol_DB_LIB $LIBS"
11654 cat > conftest.$ac_ext <<EOF
11655 #line 11656 "configure"
11656 #include "confdefs.h"
11658 #ifdef HAVE_DB_185_H
11659 # include <db_185.h>
11664 #ifndef DB_VERSION_MAJOR
11665 # define DB_VERSION_MAJOR 1
11669 #define NULL ((void*)0)
11674 #if DB_VERSION_MAJOR > 2
11675 db_env_create( NULL, 0 );
11676 #elif DB_VERSION_MAJOR > 1
11677 db_appexit( NULL );
11679 (void) dbopen( NULL, 0, 0, 0, NULL);
11684 if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11699 echo "$ac_t""$ol_cv_db_db" 1>&6
11701 if test $ol_cv_db_db = yes ; then
11706 if test $ol_cv_lib_db = no ; then
11707 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11708 echo "configure:11709: checking for Berkeley DB link (-ldb3)" >&5
11709 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11710 echo $ac_n "(cached) $ac_c" 1>&6
11715 LIBS="$ol_DB_LIB $LIBS"
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11721 #ifdef HAVE_DB_185_H
11722 # include <db_185.h>
11727 #ifndef DB_VERSION_MAJOR
11728 # define DB_VERSION_MAJOR 1
11732 #define NULL ((void*)0)
11737 #if DB_VERSION_MAJOR > 2
11738 db_env_create( NULL, 0 );
11739 #elif DB_VERSION_MAJOR > 1
11740 db_appexit( NULL );
11742 (void) dbopen( NULL, 0, 0, 0, NULL);
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11762 echo "$ac_t""$ol_cv_db_db3" 1>&6
11764 if test $ol_cv_db_db3 = yes ; then
11769 if test $ol_cv_lib_db = no ; then
11770 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11771 echo "configure:11772: checking for Berkeley DB link (-ldb2)" >&5
11772 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11773 echo $ac_n "(cached) $ac_c" 1>&6
11778 LIBS="$ol_DB_LIB $LIBS"
11780 cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11784 #ifdef HAVE_DB_185_H
11785 # include <db_185.h>
11790 #ifndef DB_VERSION_MAJOR
11791 # define DB_VERSION_MAJOR 1
11795 #define NULL ((void*)0)
11800 #if DB_VERSION_MAJOR > 2
11801 db_env_create( NULL, 0 );
11802 #elif DB_VERSION_MAJOR > 1
11803 db_appexit( NULL );
11805 (void) dbopen( NULL, 0, 0, 0, NULL);
11810 if { (eval echo configure:11811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11814 echo "configure: failed program was:" >&5
11815 cat conftest.$ac_ext >&5
11825 echo "$ac_t""$ol_cv_db_db2" 1>&6
11827 if test $ol_cv_db_db2 = yes ; then
11832 if test $ol_cv_lib_db = no ; then
11833 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11834 echo "configure:11835: checking for Berkeley DB link (-ldb1)" >&5
11835 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11836 echo $ac_n "(cached) $ac_c" 1>&6
11841 LIBS="$ol_DB_LIB $LIBS"
11843 cat > conftest.$ac_ext <<EOF
11844 #line 11845 "configure"
11845 #include "confdefs.h"
11847 #ifdef HAVE_DB_185_H
11848 # include <db_185.h>
11853 #ifndef DB_VERSION_MAJOR
11854 # define DB_VERSION_MAJOR 1
11858 #define NULL ((void*)0)
11863 #if DB_VERSION_MAJOR > 2
11864 db_env_create( NULL, 0 );
11865 #elif DB_VERSION_MAJOR > 1
11866 db_appexit( NULL );
11868 (void) dbopen( NULL, 0, 0, 0, NULL);
11873 if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11888 echo "$ac_t""$ol_cv_db_db1" 1>&6
11890 if test $ol_cv_db_db1 = yes ; then
11896 if test "$ol_cv_lib_db" != no ; then
11897 ol_cv_berkeley_db=yes
11903 ol_cv_berkeley_db=no
11906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11908 echo "configure:11909: checking for $ac_hdr" >&5
11909 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11910 echo $ac_n "(cached) $ac_c" 1>&6
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11918 { (eval echo configure:11919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11920 if test -z "$ac_err"; then
11922 eval "ac_cv_header_$ac_safe=yes"
11925 echo "configure: failed program was:" >&5
11926 cat conftest.$ac_ext >&5
11928 eval "ac_cv_header_$ac_safe=no"
11932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11933 echo "$ac_t""yes" 1>&6
11934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11935 cat >> confdefs.h <<EOF
11936 #define $ac_tr_hdr 1
11940 echo "$ac_t""no" 1>&6
11944 if test $ac_cv_header_db_h = yes; then
11946 if test $ol_cv_lib_db = no ; then
11947 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11948 echo "configure:11949: checking for Berkeley DB link (default)" >&5
11949 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11950 echo $ac_n "(cached) $ac_c" 1>&6
11955 LIBS="$ol_DB_LIB $LIBS"
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11961 #ifdef HAVE_DB_185_H
11962 # include <db_185.h>
11967 #ifndef DB_VERSION_MAJOR
11968 # define DB_VERSION_MAJOR 1
11972 #define NULL ((void*)0)
11977 #if DB_VERSION_MAJOR > 2
11978 db_env_create( NULL, 0 );
11979 #elif DB_VERSION_MAJOR > 1
11980 db_appexit( NULL );
11982 (void) dbopen( NULL, 0, 0, 0, NULL);
11987 if { (eval echo configure:11988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11991 echo "configure: failed program was:" >&5
11992 cat conftest.$ac_ext >&5
12002 echo "$ac_t""$ol_cv_db_none" 1>&6
12004 if test $ol_cv_db_none = yes ; then
12009 if test $ol_cv_lib_db = no ; then
12010 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12011 echo "configure:12012: checking for Berkeley DB link (-ldb)" >&5
12012 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12018 LIBS="$ol_DB_LIB $LIBS"
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12024 #ifdef HAVE_DB_185_H
12025 # include <db_185.h>
12030 #ifndef DB_VERSION_MAJOR
12031 # define DB_VERSION_MAJOR 1
12035 #define NULL ((void*)0)
12040 #if DB_VERSION_MAJOR > 2
12041 db_env_create( NULL, 0 );
12042 #elif DB_VERSION_MAJOR > 1
12043 db_appexit( NULL );
12045 (void) dbopen( NULL, 0, 0, 0, NULL);
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12065 echo "$ac_t""$ol_cv_db_db" 1>&6
12067 if test $ol_cv_db_db = yes ; then
12072 if test $ol_cv_lib_db = no ; then
12073 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12074 echo "configure:12075: checking for Berkeley DB link (-ldb3)" >&5
12075 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12081 LIBS="$ol_DB_LIB $LIBS"
12083 cat > conftest.$ac_ext <<EOF
12084 #line 12085 "configure"
12085 #include "confdefs.h"
12087 #ifdef HAVE_DB_185_H
12088 # include <db_185.h>
12093 #ifndef DB_VERSION_MAJOR
12094 # define DB_VERSION_MAJOR 1
12098 #define NULL ((void*)0)
12103 #if DB_VERSION_MAJOR > 2
12104 db_env_create( NULL, 0 );
12105 #elif DB_VERSION_MAJOR > 1
12106 db_appexit( NULL );
12108 (void) dbopen( NULL, 0, 0, 0, NULL);
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12128 echo "$ac_t""$ol_cv_db_db3" 1>&6
12130 if test $ol_cv_db_db3 = yes ; then
12135 if test $ol_cv_lib_db = no ; then
12136 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12137 echo "configure:12138: checking for Berkeley DB link (-ldb2)" >&5
12138 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12144 LIBS="$ol_DB_LIB $LIBS"
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12150 #ifdef HAVE_DB_185_H
12151 # include <db_185.h>
12156 #ifndef DB_VERSION_MAJOR
12157 # define DB_VERSION_MAJOR 1
12161 #define NULL ((void*)0)
12166 #if DB_VERSION_MAJOR > 2
12167 db_env_create( NULL, 0 );
12168 #elif DB_VERSION_MAJOR > 1
12169 db_appexit( NULL );
12171 (void) dbopen( NULL, 0, 0, 0, NULL);
12176 if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12191 echo "$ac_t""$ol_cv_db_db2" 1>&6
12193 if test $ol_cv_db_db2 = yes ; then
12198 if test $ol_cv_lib_db = no ; then
12199 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12200 echo "configure:12201: checking for Berkeley DB link (-ldb1)" >&5
12201 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12207 LIBS="$ol_DB_LIB $LIBS"
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12213 #ifdef HAVE_DB_185_H
12214 # include <db_185.h>
12219 #ifndef DB_VERSION_MAJOR
12220 # define DB_VERSION_MAJOR 1
12224 #define NULL ((void*)0)
12229 #if DB_VERSION_MAJOR > 2
12230 db_env_create( NULL, 0 );
12231 #elif DB_VERSION_MAJOR > 1
12232 db_appexit( NULL );
12234 (void) dbopen( NULL, 0, 0, 0, NULL);
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12254 echo "$ac_t""$ol_cv_db_db1" 1>&6
12256 if test $ol_cv_db_db1 = yes ; then
12262 if test "$ol_cv_lib_db" != no ; then
12263 ol_cv_berkeley_db=yes
12264 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12265 echo "configure:12266: checking for Berkeley DB thread support" >&5
12266 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12267 echo $ac_n "(cached) $ac_c" 1>&6
12271 if test $ol_cv_lib_db != yes ; then
12272 LIBS="$ol_cv_lib_db"
12275 if test "$cross_compiling" = yes; then
12276 ol_cv_berkeley_db_thread=cross
12278 cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12282 #ifdef HAVE_DB_185_H
12288 #define NULL ((void *)0)
12293 u_int32_t flags = DB_CREATE | DB_THREAD;
12296 #if DB_VERSION_MAJOR > 2
12297 DB_ENV *env = NULL;
12299 rc = db_env_create( &env, 0 );
12302 rc = env->open( env, NULL, NULL, flags, 0 );
12307 memset( &env, '\0', sizeof(env) );
12309 rc = db_appinit( NULL, NULL, &env, flags );
12312 db_appexit( &env );
12319 if { (eval echo configure:12320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12321 ol_cv_berkeley_db_thread=yes
12323 echo "configure: failed program was:" >&5
12324 cat conftest.$ac_ext >&5
12326 ol_cv_berkeley_db_thread=no
12334 if test $ol_cv_berkeley_db_thread != no ; then
12335 cat >> confdefs.h <<\EOF
12336 #define HAVE_BERKELEY_DB_THREAD 1
12343 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12349 if test $ol_cv_berkeley_db != no ; then
12350 cat >> confdefs.h <<\EOF
12351 #define HAVE_BERKELEY_DB 1
12355 ol_link_ldbm=berkeley
12356 ol_with_ldbm_api=db
12358 if test $ol_with_ldbm_type = hash ; then
12359 cat >> confdefs.h <<\EOF
12360 #define LDBM_USE_DBHASH 1
12364 cat >> confdefs.h <<\EOF
12365 #define LDBM_USE_DBBTREE 1
12370 if test $ol_cv_lib_db != yes ; then
12371 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12376 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12377 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12378 ol_with_ldbm_api=none
12381 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12382 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12383 echo "configure:12384: checking for MDBM library" >&5
12384 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12385 echo $ac_n "(cached) $ac_c" 1>&6
12388 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12389 echo "configure:12390: checking for mdbm_set_chain" >&5
12390 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12391 echo $ac_n "(cached) $ac_c" 1>&6
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* System header to define __stub macros and hopefully few prototypes,
12397 which can conflict with char mdbm_set_chain(); below. */
12398 #include <assert.h>
12399 /* Override any gcc2 internal prototype to avoid an error. */
12400 /* We use char because int might match the return type of a gcc2
12401 builtin and then its argument prototype would still apply. */
12402 char mdbm_set_chain();
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12413 f = mdbm_set_chain;
12418 if { (eval echo configure:12419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12420 eval "ac_cv_func_mdbm_set_chain=yes"
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12425 eval "ac_cv_func_mdbm_set_chain=no"
12430 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12431 echo "$ac_t""yes" 1>&6
12434 echo "$ac_t""no" 1>&6
12436 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12437 echo "configure:12438: checking for mdbm_set_chain in -lmdbm" >&5
12438 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12439 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12440 echo $ac_n "(cached) $ac_c" 1>&6
12442 ac_save_LIBS="$LIBS"
12443 LIBS="-lmdbm $LIBS"
12444 cat > conftest.$ac_ext <<EOF
12445 #line 12446 "configure"
12446 #include "confdefs.h"
12447 /* Override any gcc2 internal prototype to avoid an error. */
12448 /* We use char because int might match the return type of a gcc2
12449 builtin and then its argument prototype would still apply. */
12450 char mdbm_set_chain();
12456 if { (eval echo configure:12457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12458 eval "ac_cv_lib_$ac_lib_var=yes"
12460 echo "configure: failed program was:" >&5
12461 cat conftest.$ac_ext >&5
12463 eval "ac_cv_lib_$ac_lib_var=no"
12466 LIBS="$ac_save_LIBS"
12469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12470 echo "$ac_t""yes" 1>&6
12471 ol_cv_lib_mdbm=-lmdbm
12473 echo "$ac_t""no" 1>&6
12484 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12487 for ac_hdr in mdbm.h
12489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12491 echo "configure:12492: checking for $ac_hdr" >&5
12492 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12493 echo $ac_n "(cached) $ac_c" 1>&6
12495 cat > conftest.$ac_ext <<EOF
12496 #line 12497 "configure"
12497 #include "confdefs.h"
12500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12501 { (eval echo configure:12502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12503 if test -z "$ac_err"; then
12505 eval "ac_cv_header_$ac_safe=yes"
12508 echo "configure: failed program was:" >&5
12509 cat conftest.$ac_ext >&5
12511 eval "ac_cv_header_$ac_safe=no"
12515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12516 echo "$ac_t""yes" 1>&6
12517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12518 cat >> confdefs.h <<EOF
12519 #define $ac_tr_hdr 1
12523 echo "$ac_t""no" 1>&6
12527 echo $ac_n "checking for db""... $ac_c" 1>&6
12528 echo "configure:12529: checking for db" >&5
12529 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12530 echo $ac_n "(cached) $ac_c" 1>&6
12533 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12541 echo "$ac_t""$ol_cv_mdbm" 1>&6
12542 if test $ol_cv_mdbm = yes ; then
12543 cat >> confdefs.h <<\EOF
12544 #define HAVE_MDBM 1
12550 if test $ol_cv_mdbm = yes ; then
12552 ol_with_ldbm_api=mdbm
12553 if test $ol_cv_lib_mdbm != yes ; then
12554 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12559 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12560 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12561 echo "configure:12562: checking for GDBM library" >&5
12562 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12563 echo $ac_n "(cached) $ac_c" 1>&6
12566 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12567 echo "configure:12568: checking for gdbm_open" >&5
12568 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12569 echo $ac_n "(cached) $ac_c" 1>&6
12571 cat > conftest.$ac_ext <<EOF
12572 #line 12573 "configure"
12573 #include "confdefs.h"
12574 /* System header to define __stub macros and hopefully few prototypes,
12575 which can conflict with char gdbm_open(); below. */
12576 #include <assert.h>
12577 /* Override any gcc2 internal prototype to avoid an error. */
12578 /* We use char because int might match the return type of a gcc2
12579 builtin and then its argument prototype would still apply. */
12585 /* The GNU C library defines this for functions which it implements
12586 to always fail with ENOSYS. Some functions are actually named
12587 something starting with __ and the normal name is an alias. */
12588 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12596 if { (eval echo configure:12597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12598 eval "ac_cv_func_gdbm_open=yes"
12600 echo "configure: failed program was:" >&5
12601 cat conftest.$ac_ext >&5
12603 eval "ac_cv_func_gdbm_open=no"
12608 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12609 echo "$ac_t""yes" 1>&6
12612 echo "$ac_t""no" 1>&6
12614 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12615 echo "configure:12616: checking for gdbm_open in -lgdbm" >&5
12616 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12617 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12618 echo $ac_n "(cached) $ac_c" 1>&6
12620 ac_save_LIBS="$LIBS"
12621 LIBS="-lgdbm $LIBS"
12622 cat > conftest.$ac_ext <<EOF
12623 #line 12624 "configure"
12624 #include "confdefs.h"
12625 /* Override any gcc2 internal prototype to avoid an error. */
12626 /* We use char because int might match the return type of a gcc2
12627 builtin and then its argument prototype would still apply. */
12634 if { (eval echo configure:12635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12636 eval "ac_cv_lib_$ac_lib_var=yes"
12638 echo "configure: failed program was:" >&5
12639 cat conftest.$ac_ext >&5
12641 eval "ac_cv_lib_$ac_lib_var=no"
12644 LIBS="$ac_save_LIBS"
12647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12648 echo "$ac_t""yes" 1>&6
12649 ol_cv_lib_gdbm=-lgdbm
12651 echo "$ac_t""no" 1>&6
12662 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12665 for ac_hdr in gdbm.h
12667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12669 echo "configure:12670: checking for $ac_hdr" >&5
12670 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12671 echo $ac_n "(cached) $ac_c" 1>&6
12673 cat > conftest.$ac_ext <<EOF
12674 #line 12675 "configure"
12675 #include "confdefs.h"
12678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12679 { (eval echo configure:12680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12681 if test -z "$ac_err"; then
12683 eval "ac_cv_header_$ac_safe=yes"
12686 echo "configure: failed program was:" >&5
12687 cat conftest.$ac_ext >&5
12689 eval "ac_cv_header_$ac_safe=no"
12693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12694 echo "$ac_t""yes" 1>&6
12695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12696 cat >> confdefs.h <<EOF
12697 #define $ac_tr_hdr 1
12701 echo "$ac_t""no" 1>&6
12705 echo $ac_n "checking for db""... $ac_c" 1>&6
12706 echo "configure:12707: checking for db" >&5
12707 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12708 echo $ac_n "(cached) $ac_c" 1>&6
12711 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12719 echo "$ac_t""$ol_cv_gdbm" 1>&6
12720 if test $ol_cv_gdbm = yes ; then
12721 cat >> confdefs.h <<\EOF
12722 #define HAVE_GDBM 1
12728 if test $ol_cv_gdbm = yes ; then
12730 ol_with_ldbm_api=gdbm
12732 if test $ol_cv_lib_gdbm != yes ; then
12733 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12738 if test $ol_with_ldbm_api = ndbm ; then
12739 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12740 echo "configure:12741: checking for NDBM library" >&5
12741 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12742 echo $ac_n "(cached) $ac_c" 1>&6
12745 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12746 echo "configure:12747: checking for dbm_open" >&5
12747 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12753 /* System header to define __stub macros and hopefully few prototypes,
12754 which can conflict with char dbm_open(); below. */
12755 #include <assert.h>
12756 /* Override any gcc2 internal prototype to avoid an error. */
12757 /* We use char because int might match the return type of a gcc2
12758 builtin and then its argument prototype would still apply. */
12764 /* The GNU C library defines this for functions which it implements
12765 to always fail with ENOSYS. Some functions are actually named
12766 something starting with __ and the normal name is an alias. */
12767 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12775 if { (eval echo configure:12776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12777 eval "ac_cv_func_dbm_open=yes"
12779 echo "configure: failed program was:" >&5
12780 cat conftest.$ac_ext >&5
12782 eval "ac_cv_func_dbm_open=no"
12787 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12788 echo "$ac_t""yes" 1>&6
12791 echo "$ac_t""no" 1>&6
12793 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12794 echo "configure:12795: checking for dbm_open in -lndbm" >&5
12795 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12796 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12797 echo $ac_n "(cached) $ac_c" 1>&6
12799 ac_save_LIBS="$LIBS"
12800 LIBS="-lndbm $LIBS"
12801 cat > conftest.$ac_ext <<EOF
12802 #line 12803 "configure"
12803 #include "confdefs.h"
12804 /* Override any gcc2 internal prototype to avoid an error. */
12805 /* We use char because int might match the return type of a gcc2
12806 builtin and then its argument prototype would still apply. */
12813 if { (eval echo configure:12814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12815 eval "ac_cv_lib_$ac_lib_var=yes"
12817 echo "configure: failed program was:" >&5
12818 cat conftest.$ac_ext >&5
12820 eval "ac_cv_lib_$ac_lib_var=no"
12823 LIBS="$ac_save_LIBS"
12826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12827 echo "$ac_t""yes" 1>&6
12828 ol_cv_lib_ndbm=-lndbm
12830 echo "$ac_t""no" 1>&6
12832 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12833 echo "configure:12834: checking for dbm_open in -ldbm" >&5
12834 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12835 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12836 echo $ac_n "(cached) $ac_c" 1>&6
12838 ac_save_LIBS="$LIBS"
12840 cat > conftest.$ac_ext <<EOF
12841 #line 12842 "configure"
12842 #include "confdefs.h"
12843 /* Override any gcc2 internal prototype to avoid an error. */
12844 /* We use char because int might match the return type of a gcc2
12845 builtin and then its argument prototype would still apply. */
12852 if { (eval echo configure:12853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12854 eval "ac_cv_lib_$ac_lib_var=yes"
12856 echo "configure: failed program was:" >&5
12857 cat conftest.$ac_ext >&5
12859 eval "ac_cv_lib_$ac_lib_var=no"
12862 LIBS="$ac_save_LIBS"
12865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12866 echo "$ac_t""yes" 1>&6
12867 ol_cv_lib_ndbm=-ldbm
12869 echo "$ac_t""no" 1>&6
12882 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12885 for ac_hdr in ndbm.h
12887 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12888 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12889 echo "configure:12890: checking for $ac_hdr" >&5
12890 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12891 echo $ac_n "(cached) $ac_c" 1>&6
12893 cat > conftest.$ac_ext <<EOF
12894 #line 12895 "configure"
12895 #include "confdefs.h"
12898 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12899 { (eval echo configure:12900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12900 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12901 if test -z "$ac_err"; then
12903 eval "ac_cv_header_$ac_safe=yes"
12906 echo "configure: failed program was:" >&5
12907 cat conftest.$ac_ext >&5
12909 eval "ac_cv_header_$ac_safe=no"
12913 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12914 echo "$ac_t""yes" 1>&6
12915 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12916 cat >> confdefs.h <<EOF
12917 #define $ac_tr_hdr 1
12921 echo "$ac_t""no" 1>&6
12925 echo $ac_n "checking for db""... $ac_c" 1>&6
12926 echo "configure:12927: checking for db" >&5
12927 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12928 echo $ac_n "(cached) $ac_c" 1>&6
12931 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12939 echo "$ac_t""$ol_cv_ndbm" 1>&6
12940 if test $ol_cv_ndbm = yes ; then
12941 cat >> confdefs.h <<\EOF
12942 #define HAVE_NDBM 1
12948 if test $ol_cv_ndbm = yes ; then
12950 ol_with_ldbm_api=ndbm
12952 if test $ol_cv_lib_ndbm != yes ; then
12953 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12958 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12959 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12960 if test $ol_enable_ldbm = yes ; then
12961 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12964 echo "configure: warning: disabling LDBM" 1>&2
12968 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12969 LINK_BINS_DYNAMIC="yes"
12971 LINK_BINS_DYNAMIC="no"
12974 if test $ol_enable_wrappers != no ; then
12975 for ac_hdr in tcpd.h
12977 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12978 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12979 echo "configure:12980: checking for $ac_hdr" >&5
12980 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12981 echo $ac_n "(cached) $ac_c" 1>&6
12983 cat > conftest.$ac_ext <<EOF
12984 #line 12985 "configure"
12985 #include "confdefs.h"
12988 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12989 { (eval echo configure:12990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12990 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12991 if test -z "$ac_err"; then
12993 eval "ac_cv_header_$ac_safe=yes"
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 eval "ac_cv_header_$ac_safe=no"
13003 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13004 echo "$ac_t""yes" 1>&6
13005 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13006 cat >> confdefs.h <<EOF
13007 #define $ac_tr_hdr 1
13011 echo "$ac_t""no" 1>&6
13016 if test $ac_cv_header_tcpd_h != yes ; then
13019 cat > conftest.$ac_ext <<EOF
13020 #line 13021 "configure"
13021 #include "confdefs.h"
13023 int allow_severity = 0;
13024 int deny_severity = 0;
13030 if { (eval echo configure:13031: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13034 echo "configure: failed program was:" >&5
13035 cat conftest.$ac_ext >&5
13042 if test $have_wrappers = yes ; then
13043 cat >> confdefs.h <<\EOF
13044 #define HAVE_TCPD 1
13049 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13050 echo "configure:13051: checking for main in -lnsl" >&5
13051 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13052 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13053 echo $ac_n "(cached) $ac_c" 1>&6
13055 ac_save_LIBS="$LIBS"
13057 cat > conftest.$ac_ext <<EOF
13058 #line 13059 "configure"
13059 #include "confdefs.h"
13065 if { (eval echo configure:13066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13067 eval "ac_cv_lib_$ac_lib_var=yes"
13069 echo "configure: failed program was:" >&5
13070 cat conftest.$ac_ext >&5
13072 eval "ac_cv_lib_$ac_lib_var=no"
13075 LIBS="$ac_save_LIBS"
13078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13079 echo "$ac_t""yes" 1>&6
13080 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13081 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13082 cat >> confdefs.h <<EOF
13083 #define $ac_tr_lib 1
13089 echo "$ac_t""no" 1>&6
13093 echo "configure: warning: could not find -lwrap" 1>&2
13094 if test $ol_enable_wrappers = yes ; then
13095 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13098 echo "configure: warning: disabling wrappers support" 1>&2
13099 ol_enable_wrappers=no
13104 if test $ol_enable_syslog != no ; then
13105 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13106 echo "configure:13107: checking for openlog" >&5
13107 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13108 echo $ac_n "(cached) $ac_c" 1>&6
13110 cat > conftest.$ac_ext <<EOF
13111 #line 13112 "configure"
13112 #include "confdefs.h"
13113 /* System header to define __stub macros and hopefully few prototypes,
13114 which can conflict with char openlog(); below. */
13115 #include <assert.h>
13116 /* Override any gcc2 internal prototype to avoid an error. */
13117 /* We use char because int might match the return type of a gcc2
13118 builtin and then its argument prototype would still apply. */
13124 /* The GNU C library defines this for functions which it implements
13125 to always fail with ENOSYS. Some functions are actually named
13126 something starting with __ and the normal name is an alias. */
13127 #if defined (__stub_openlog) || defined (__stub___openlog)
13135 if { (eval echo configure:13136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13137 eval "ac_cv_func_openlog=yes"
13139 echo "configure: failed program was:" >&5
13140 cat conftest.$ac_ext >&5
13142 eval "ac_cv_func_openlog=no"
13147 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13148 echo "$ac_t""yes" 1>&6
13151 echo "$ac_t""no" 1>&6
13154 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13155 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13157 ol_enable_syslog=$ac_cv_func_openlog
13160 if test $ol_enable_tcl != no ; then
13161 for ac_hdr in tcl.h
13163 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13164 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13165 echo "configure:13166: checking for $ac_hdr" >&5
13166 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13167 echo $ac_n "(cached) $ac_c" 1>&6
13169 cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13174 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13175 { (eval echo configure:13176: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13176 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13177 if test -z "$ac_err"; then
13179 eval "ac_cv_header_$ac_safe=yes"
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13185 eval "ac_cv_header_$ac_safe=no"
13189 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13190 echo "$ac_t""yes" 1>&6
13191 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13192 cat >> confdefs.h <<EOF
13193 #define $ac_tr_hdr 1
13197 echo "$ac_t""no" 1>&6
13202 if test $ac_cv_header_tcl_h != yes ; then
13205 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13206 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13207 echo "configure:13208: checking for main in -l$lib" >&5
13208 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13209 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13210 echo $ac_n "(cached) $ac_c" 1>&6
13212 ac_save_LIBS="$LIBS"
13213 LIBS="-l$lib $LIBS"
13214 cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure"
13216 #include "confdefs.h"
13222 if { (eval echo configure:13223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13224 eval "ac_cv_lib_$ac_lib_var=yes"
13226 echo "configure: failed program was:" >&5
13227 cat conftest.$ac_ext >&5
13229 eval "ac_cv_lib_$ac_lib_var=no"
13232 LIBS="$ac_save_LIBS"
13235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13236 echo "$ac_t""yes" 1>&6
13238 if test x"$ol_with_tcl_module" = "xstatic" ; then
13239 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13241 MOD_TCL_LIB="-l${lib}"
13244 echo "$ac_t""no" 1>&6
13251 if test $have_tcl != yes ; then
13252 echo "configure: warning: could not find -ltcl" 1>&2
13253 if test $ol_enable_tcl = yes ; then
13254 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13262 for ac_hdr in termcap.h ncurses.h
13264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13266 echo "configure:13267: checking for $ac_hdr" >&5
13267 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13268 echo $ac_n "(cached) $ac_c" 1>&6
13270 cat > conftest.$ac_ext <<EOF
13271 #line 13272 "configure"
13272 #include "confdefs.h"
13275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13276 { (eval echo configure:13277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13278 if test -z "$ac_err"; then
13280 eval "ac_cv_header_$ac_safe=yes"
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13286 eval "ac_cv_header_$ac_safe=no"
13290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13291 echo "$ac_t""yes" 1>&6
13292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13293 cat >> confdefs.h <<EOF
13294 #define $ac_tr_hdr 1
13298 echo "$ac_t""no" 1>&6
13303 if test $ol_link_termcap = no ; then
13304 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13305 echo "configure:13306: checking for tputs in -ltermcap" >&5
13306 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13308 echo $ac_n "(cached) $ac_c" 1>&6
13310 ac_save_LIBS="$LIBS"
13311 LIBS="-ltermcap $LIBS"
13312 cat > conftest.$ac_ext <<EOF
13313 #line 13314 "configure"
13314 #include "confdefs.h"
13315 /* Override any gcc2 internal prototype to avoid an error. */
13316 /* We use char because int might match the return type of a gcc2
13317 builtin and then its argument prototype would still apply. */
13324 if { (eval echo configure:13325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13326 eval "ac_cv_lib_$ac_lib_var=yes"
13328 echo "configure: failed program was:" >&5
13329 cat conftest.$ac_ext >&5
13331 eval "ac_cv_lib_$ac_lib_var=no"
13334 LIBS="$ac_save_LIBS"
13337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13338 echo "$ac_t""yes" 1>&6
13341 echo "$ac_t""no" 1>&6
13345 if test $have_termcap = yes ; then
13346 cat >> confdefs.h <<\EOF
13347 #define HAVE_TERMCAP 1
13350 ol_link_termcap=yes
13351 TERMCAP_LIBS=-ltermcap
13355 if test $ol_link_termcap = no ; then
13356 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13357 echo "configure:13358: checking for initscr in -lncurses" >&5
13358 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13359 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13360 echo $ac_n "(cached) $ac_c" 1>&6
13362 ac_save_LIBS="$LIBS"
13363 LIBS="-lncurses $LIBS"
13364 cat > conftest.$ac_ext <<EOF
13365 #line 13366 "configure"
13366 #include "confdefs.h"
13367 /* Override any gcc2 internal prototype to avoid an error. */
13368 /* We use char because int might match the return type of a gcc2
13369 builtin and then its argument prototype would still apply. */
13376 if { (eval echo configure:13377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13378 eval "ac_cv_lib_$ac_lib_var=yes"
13380 echo "configure: failed program was:" >&5
13381 cat conftest.$ac_ext >&5
13383 eval "ac_cv_lib_$ac_lib_var=no"
13386 LIBS="$ac_save_LIBS"
13389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13390 echo "$ac_t""yes" 1>&6
13393 echo "$ac_t""no" 1>&6
13397 if test $have_ncurses = yes ; then
13398 cat >> confdefs.h <<\EOF
13399 #define HAVE_NCURSES 1
13402 ol_link_termcap=yes
13403 TERMCAP_LIBS=-lncurses
13407 if test $ol_link_termcap = no ; then
13408 cat >> confdefs.h <<\EOF
13409 #define NO_TERMCAP 1
13417 if test $ol_with_cyrus_sasl != no ; then
13418 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13419 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13420 echo "configure:13421: checking for sasl.h" >&5
13421 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13422 echo $ac_n "(cached) $ac_c" 1>&6
13424 cat > conftest.$ac_ext <<EOF
13425 #line 13426 "configure"
13426 #include "confdefs.h"
13429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13430 { (eval echo configure:13431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13432 if test -z "$ac_err"; then
13434 eval "ac_cv_header_$ac_safe=yes"
13437 echo "configure: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13440 eval "ac_cv_header_$ac_safe=no"
13444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13445 echo "$ac_t""yes" 1>&6
13448 echo "$ac_t""no" 1>&6
13452 if test $ac_cv_header_sasl_h = yes ; then
13453 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13454 echo "configure:13455: checking for sasl_client_init in -lsasl" >&5
13455 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13456 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13457 echo $ac_n "(cached) $ac_c" 1>&6
13459 ac_save_LIBS="$LIBS"
13460 LIBS="-lsasl $LIBS"
13461 cat > conftest.$ac_ext <<EOF
13462 #line 13463 "configure"
13463 #include "confdefs.h"
13464 /* Override any gcc2 internal prototype to avoid an error. */
13465 /* We use char because int might match the return type of a gcc2
13466 builtin and then its argument prototype would still apply. */
13467 char sasl_client_init();
13473 if { (eval echo configure:13474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13475 eval "ac_cv_lib_$ac_lib_var=yes"
13477 echo "configure: failed program was:" >&5
13478 cat conftest.$ac_ext >&5
13480 eval "ac_cv_lib_$ac_lib_var=no"
13483 LIBS="$ac_save_LIBS"
13486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13487 echo "$ac_t""yes" 1>&6
13488 have_cyrus_sasl=yes
13490 echo "$ac_t""no" 1>&6
13495 if test $have_cyrus_sasl != no ; then
13497 cat >> confdefs.h <<\EOF
13498 #define HAVE_CYRUS_SASL 1
13505 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13506 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13510 if test $cross_compiling != yes ; then
13512 if test -r /dev/urandom ; then
13513 dev="/dev/urandom";
13514 elif test -r /idev/urandom ; then
13515 dev="/idev/urandom";
13516 elif test -r /dev/srandom ; then
13517 dev="/dev/srandom";
13518 elif test -r /dev/random ; then
13520 elif test -r /idev/random ; then
13521 dev="/idev/random";
13524 if test $dev != no ; then
13525 cat >> confdefs.h <<EOF
13526 #define URANDOM_DEVICE "$dev"
13533 if test $ol_with_fetch != no ; then
13535 LIBS="-lfetch -lcom_err $LIBS"
13536 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13537 echo "configure:13538: checking fetch(3) library" >&5
13538 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13539 echo $ac_n "(cached) $ac_c" 1>&6
13542 cat > conftest.$ac_ext <<EOF
13543 #line 13544 "configure"
13544 #include "confdefs.h"
13546 #include <sys/param.h>
13550 struct url *u = fetchParseURL("file:///");
13553 if { (eval echo configure:13554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13555 ol_cv_lib_fetch=yes
13557 echo "configure: failed program was:" >&5
13558 cat conftest.$ac_ext >&5
13565 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13567 if test $ol_cv_lib_fetch != no ; then
13568 ol_link_fetch="-lfetch -lcom_err"
13569 cat >> confdefs.h <<\EOF
13570 #define HAVE_FETCH 1
13576 if test $ol_cv_lib_fetch != no ; then
13577 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13578 ol_link_fetch=freebsd
13580 elif test $ol_with_fetch != auto ; then
13581 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13585 ol_link_readline=no
13586 if test $ol_with_readline != no ; then
13587 for ac_hdr in readline/readline.h readline/history.h
13589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13591 echo "configure:13592: checking for $ac_hdr" >&5
13592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13593 echo $ac_n "(cached) $ac_c" 1>&6
13595 cat > conftest.$ac_ext <<EOF
13596 #line 13597 "configure"
13597 #include "confdefs.h"
13600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13601 { (eval echo configure:13602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13603 if test -z "$ac_err"; then
13605 eval "ac_cv_header_$ac_safe=yes"
13608 echo "configure: failed program was:" >&5
13609 cat conftest.$ac_ext >&5
13611 eval "ac_cv_header_$ac_safe=no"
13615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13616 echo "$ac_t""yes" 1>&6
13617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13618 cat >> confdefs.h <<EOF
13619 #define $ac_tr_hdr 1
13623 echo "$ac_t""no" 1>&6
13628 if test $ac_cv_header_readline_readline_h = yes ; then
13630 LIBS="$TERMCAP_LIBS $LIBS"
13631 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13632 echo "configure:13633: checking for readline in -lreadline" >&5
13633 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13634 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13635 echo $ac_n "(cached) $ac_c" 1>&6
13637 ac_save_LIBS="$LIBS"
13638 LIBS="-lreadline $LIBS"
13639 cat > conftest.$ac_ext <<EOF
13640 #line 13641 "configure"
13641 #include "confdefs.h"
13642 /* Override any gcc2 internal prototype to avoid an error. */
13643 /* We use char because int might match the return type of a gcc2
13644 builtin and then its argument prototype would still apply. */
13651 if { (eval echo configure:13652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13653 eval "ac_cv_lib_$ac_lib_var=yes"
13655 echo "configure: failed program was:" >&5
13656 cat conftest.$ac_ext >&5
13658 eval "ac_cv_lib_$ac_lib_var=no"
13661 LIBS="$ac_save_LIBS"
13664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13665 echo "$ac_t""yes" 1>&6
13668 echo "$ac_t""no" 1>&6
13674 if test $have_readline = yes ; then
13675 ol_with_readline=found
13676 ol_link_readline=yes
13678 READLINE_LIBS="-lreadline"
13683 if test $ol_link_readline = yes ; then
13684 cat >> confdefs.h <<\EOF
13685 #define HAVE_READLINE 1
13691 if test $ol_enable_crypt != no ; then
13692 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13693 echo "configure:13694: checking for crypt" >&5
13694 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13695 echo $ac_n "(cached) $ac_c" 1>&6
13697 cat > conftest.$ac_ext <<EOF
13698 #line 13699 "configure"
13699 #include "confdefs.h"
13700 /* System header to define __stub macros and hopefully few prototypes,
13701 which can conflict with char crypt(); below. */
13702 #include <assert.h>
13703 /* Override any gcc2 internal prototype to avoid an error. */
13704 /* We use char because int might match the return type of a gcc2
13705 builtin and then its argument prototype would still apply. */
13711 /* The GNU C library defines this for functions which it implements
13712 to always fail with ENOSYS. Some functions are actually named
13713 something starting with __ and the normal name is an alias. */
13714 #if defined (__stub_crypt) || defined (__stub___crypt)
13722 if { (eval echo configure:13723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13724 eval "ac_cv_func_crypt=yes"
13726 echo "configure: failed program was:" >&5
13727 cat conftest.$ac_ext >&5
13729 eval "ac_cv_func_crypt=no"
13734 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13735 echo "$ac_t""yes" 1>&6
13738 echo "$ac_t""no" 1>&6
13740 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13741 echo "configure:13742: checking for crypt in -lcrypt" >&5
13742 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13743 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13744 echo $ac_n "(cached) $ac_c" 1>&6
13746 ac_save_LIBS="$LIBS"
13747 LIBS="-lcrypt $LIBS"
13748 cat > conftest.$ac_ext <<EOF
13749 #line 13750 "configure"
13750 #include "confdefs.h"
13751 /* Override any gcc2 internal prototype to avoid an error. */
13752 /* We use char because int might match the return type of a gcc2
13753 builtin and then its argument prototype would still apply. */
13760 if { (eval echo configure:13761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13762 eval "ac_cv_lib_$ac_lib_var=yes"
13764 echo "configure: failed program was:" >&5
13765 cat conftest.$ac_ext >&5
13767 eval "ac_cv_lib_$ac_lib_var=no"
13770 LIBS="$ac_save_LIBS"
13773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13774 echo "$ac_t""yes" 1>&6
13775 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13778 echo "$ac_t""no" 1>&6
13785 if test $have_crypt = yes ; then
13786 cat >> confdefs.h <<\EOF
13787 #define HAVE_CRYPT 1
13791 echo "configure: warning: could not find crypt" 1>&2
13792 if test $ol_enable_crypt = yes ; then
13793 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13796 echo "configure: warning: disabling crypt support" 1>&2
13801 if test $ol_enable_proctitle != no ; then
13802 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13803 echo "configure:13804: checking for setproctitle" >&5
13804 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
13807 cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13810 /* System header to define __stub macros and hopefully few prototypes,
13811 which can conflict with char setproctitle(); below. */
13812 #include <assert.h>
13813 /* Override any gcc2 internal prototype to avoid an error. */
13814 /* We use char because int might match the return type of a gcc2
13815 builtin and then its argument prototype would still apply. */
13816 char setproctitle();
13821 /* The GNU C library defines this for functions which it implements
13822 to always fail with ENOSYS. Some functions are actually named
13823 something starting with __ and the normal name is an alias. */
13824 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13832 if { (eval echo configure:13833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13834 eval "ac_cv_func_setproctitle=yes"
13836 echo "configure: failed program was:" >&5
13837 cat conftest.$ac_ext >&5
13839 eval "ac_cv_func_setproctitle=no"
13844 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13845 echo "$ac_t""yes" 1>&6
13846 have_setproctitle=yes
13848 echo "$ac_t""no" 1>&6
13850 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13851 echo "configure:13852: checking for setproctitle in -lutil" >&5
13852 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13853 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13854 echo $ac_n "(cached) $ac_c" 1>&6
13856 ac_save_LIBS="$LIBS"
13857 LIBS="-lutil $LIBS"
13858 cat > conftest.$ac_ext <<EOF
13859 #line 13860 "configure"
13860 #include "confdefs.h"
13861 /* Override any gcc2 internal prototype to avoid an error. */
13862 /* We use char because int might match the return type of a gcc2
13863 builtin and then its argument prototype would still apply. */
13864 char setproctitle();
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13872 eval "ac_cv_lib_$ac_lib_var=yes"
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13877 eval "ac_cv_lib_$ac_lib_var=no"
13880 LIBS="$ac_save_LIBS"
13883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13884 echo "$ac_t""yes" 1>&6
13885 have_setproctitle=yes
13886 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13888 echo "$ac_t""no" 1>&6
13889 have_setproctitle=no
13890 LIBOBJS="$LIBOBJS setproctitle.o"
13891 LIBSRCS="$LIBSRCS setproctitle.c"
13897 if test $have_setproctitle = yes ; then
13898 cat >> confdefs.h <<\EOF
13899 #define HAVE_SETPROCTITLE 1
13905 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13906 echo "configure:13907: checking for ANSI C header files" >&5
13907 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13910 cat > conftest.$ac_ext <<EOF
13911 #line 13912 "configure"
13912 #include "confdefs.h"
13913 #include <stdlib.h>
13914 #include <stdarg.h>
13915 #include <string.h>
13918 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13919 { (eval echo configure:13920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13920 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13921 if test -z "$ac_err"; then
13923 ac_cv_header_stdc=yes
13926 echo "configure: failed program was:" >&5
13927 cat conftest.$ac_ext >&5
13929 ac_cv_header_stdc=no
13933 if test $ac_cv_header_stdc = yes; then
13934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <string.h>
13940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13941 egrep "memchr" >/dev/null 2>&1; then
13945 ac_cv_header_stdc=no
13951 if test $ac_cv_header_stdc = yes; then
13952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13953 cat > conftest.$ac_ext <<EOF
13954 #line 13955 "configure"
13955 #include "confdefs.h"
13956 #include <stdlib.h>
13958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13959 egrep "free" >/dev/null 2>&1; then
13963 ac_cv_header_stdc=no
13969 if test $ac_cv_header_stdc = yes; then
13970 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13971 if test "$cross_compiling" = yes; then
13974 cat > conftest.$ac_ext <<EOF
13975 #line 13976 "configure"
13976 #include "confdefs.h"
13978 #if ((' ' & 0x0FF) == 0x020)
13979 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13980 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13982 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13983 || ('j' <= (c) && (c) <= 'r') \
13984 || ('s' <= (c) && (c) <= 'z'))
13985 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13988 int main () { int i; for (i = 0; i < 256; i++)
13989 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13993 if { (eval echo configure:13994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13997 echo "configure: failed program was:" >&5
13998 cat conftest.$ac_ext >&5
14000 ac_cv_header_stdc=no
14008 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14009 if test $ac_cv_header_stdc = yes; then
14010 cat >> confdefs.h <<\EOF
14011 #define STDC_HEADERS 1
14016 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14017 echo "configure:14018: checking for mode_t" >&5
14018 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
14021 cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 #include <sys/types.h>
14026 #include <stdlib.h>
14027 #include <stddef.h>
14031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14032 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14034 eval "ac_cv_type_mode_t=yes"
14037 eval "ac_cv_type_mode_t=no"
14042 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14043 echo "$ac_t""yes" 1>&6
14045 echo "$ac_t""no" 1>&6
14046 cat >> confdefs.h <<EOF
14052 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14053 echo "configure:14054: checking for off_t" >&5
14054 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14055 echo $ac_n "(cached) $ac_c" 1>&6
14057 cat > conftest.$ac_ext <<EOF
14058 #line 14059 "configure"
14059 #include "confdefs.h"
14060 #include <sys/types.h>
14062 #include <stdlib.h>
14063 #include <stddef.h>
14067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14068 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14070 eval "ac_cv_type_off_t=yes"
14073 eval "ac_cv_type_off_t=no"
14078 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14079 echo "$ac_t""yes" 1>&6
14081 echo "$ac_t""no" 1>&6
14082 cat >> confdefs.h <<EOF
14088 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14089 echo "configure:14090: checking for pid_t" >&5
14090 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14091 echo $ac_n "(cached) $ac_c" 1>&6
14093 cat > conftest.$ac_ext <<EOF
14094 #line 14095 "configure"
14095 #include "confdefs.h"
14096 #include <sys/types.h>
14098 #include <stdlib.h>
14099 #include <stddef.h>
14103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14104 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14106 eval "ac_cv_type_pid_t=yes"
14109 eval "ac_cv_type_pid_t=no"
14114 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14115 echo "$ac_t""yes" 1>&6
14117 echo "$ac_t""no" 1>&6
14118 cat >> confdefs.h <<EOF
14124 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14125 echo "configure:14126: checking for ptrdiff_t" >&5
14126 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14127 echo $ac_n "(cached) $ac_c" 1>&6
14129 cat > conftest.$ac_ext <<EOF
14130 #line 14131 "configure"
14131 #include "confdefs.h"
14132 #include <stddef.h>
14137 if { (eval echo configure:14138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14139 am_cv_type_ptrdiff_t=yes
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14144 am_cv_type_ptrdiff_t=no
14149 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14150 if test $am_cv_type_ptrdiff_t = yes; then
14151 cat >> confdefs.h <<\EOF
14152 #define HAVE_PTRDIFF_T 1
14157 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14158 echo "configure:14159: checking return type of signal handlers" >&5
14159 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14160 echo $ac_n "(cached) $ac_c" 1>&6
14162 cat > conftest.$ac_ext <<EOF
14163 #line 14164 "configure"
14164 #include "confdefs.h"
14165 #include <sys/types.h>
14166 #include <signal.h>
14171 extern "C" void (*signal (int, void (*)(int)))(int);
14173 void (*signal ()) ();
14180 if { (eval echo configure:14181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14182 ac_cv_type_signal=void
14184 echo "configure: failed program was:" >&5
14185 cat conftest.$ac_ext >&5
14187 ac_cv_type_signal=int
14192 echo "$ac_t""$ac_cv_type_signal" 1>&6
14193 cat >> confdefs.h <<EOF
14194 #define RETSIGTYPE $ac_cv_type_signal
14198 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14199 echo "configure:14200: checking for size_t" >&5
14200 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14201 echo $ac_n "(cached) $ac_c" 1>&6
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 #include <sys/types.h>
14208 #include <stdlib.h>
14209 #include <stddef.h>
14213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14214 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14216 eval "ac_cv_type_size_t=yes"
14219 eval "ac_cv_type_size_t=no"
14224 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14225 echo "$ac_t""yes" 1>&6
14227 echo "$ac_t""no" 1>&6
14228 cat >> confdefs.h <<EOF
14229 #define size_t unsigned
14235 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14236 echo "configure:14237: checking for ssize_t" >&5
14237 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14238 echo $ac_n "(cached) $ac_c" 1>&6
14240 cat > conftest.$ac_ext <<EOF
14241 #line 14242 "configure"
14242 #include "confdefs.h"
14243 #include <sys/types.h>
14245 #include <stdlib.h>
14246 #include <stddef.h>
14250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14251 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14253 eval "ac_cv_type_ssize_t=yes"
14256 eval "ac_cv_type_ssize_t=no"
14261 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14262 echo "$ac_t""yes" 1>&6
14264 echo "$ac_t""no" 1>&6
14265 cat >> confdefs.h <<EOF
14266 #define ssize_t signed int
14271 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14272 echo "configure:14273: checking for caddr_t" >&5
14273 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14274 echo $ac_n "(cached) $ac_c" 1>&6
14276 cat > conftest.$ac_ext <<EOF
14277 #line 14278 "configure"
14278 #include "confdefs.h"
14279 #include <sys/types.h>
14281 #include <stdlib.h>
14282 #include <stddef.h>
14286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14287 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14289 eval "ac_cv_type_caddr_t=yes"
14292 eval "ac_cv_type_caddr_t=no"
14297 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14298 echo "$ac_t""yes" 1>&6
14300 echo "$ac_t""no" 1>&6
14301 cat >> confdefs.h <<EOF
14302 #define caddr_t char *
14308 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14309 echo "configure:14310: checking for socklen_t" >&5
14310 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14317 #ifdef HAVE_SYS_TYPES_H
14318 #include <sys/types.h>
14320 #ifdef HAVE_SYS_SOCKET_H
14321 #include <sys/socket.h>
14328 if { (eval echo configure:14329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14330 ol_cv_type_socklen_t=yes
14332 echo "configure: failed program was:" >&5
14333 cat conftest.$ac_ext >&5
14335 ol_cv_type_socklen_t=no
14340 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14341 if test $ol_cv_type_socklen_t = no; then
14342 cat >> confdefs.h <<\EOF
14343 #define socklen_t int
14348 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14349 echo "configure:14350: checking for member st_blksize in aggregate type struct stat" >&5
14350 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14351 echo $ac_n "(cached) $ac_c" 1>&6
14353 cat > conftest.$ac_ext <<EOF
14354 #line 14355 "configure"
14355 #include "confdefs.h"
14356 #include <sys/types.h>
14357 #include <sys/stat.h>
14359 struct stat foo; foo.st_blksize;
14362 if { (eval echo configure:14363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14364 ac_cv_c_struct_member_st_blksize=yes
14366 echo "configure: failed program was:" >&5
14367 cat conftest.$ac_ext >&5
14369 ac_cv_c_struct_member_st_blksize=no
14374 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14375 st_blksize="$ac_cv_c_struct_member_st_blksize"
14376 if test $ac_cv_c_struct_member_st_blksize = yes; then
14377 cat >> confdefs.h <<\EOF
14378 #define HAVE_ST_BLKSIZE 1
14383 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14384 echo "configure:14385: checking whether time.h and sys/time.h may both be included" >&5
14385 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14386 echo $ac_n "(cached) $ac_c" 1>&6
14388 cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 #include <sys/types.h>
14392 #include <sys/time.h>
14398 if { (eval echo configure:14399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14400 ac_cv_header_time=yes
14402 echo "configure: failed program was:" >&5
14403 cat conftest.$ac_ext >&5
14405 ac_cv_header_time=no
14410 echo "$ac_t""$ac_cv_header_time" 1>&6
14411 if test $ac_cv_header_time = yes; then
14412 cat >> confdefs.h <<\EOF
14413 #define TIME_WITH_SYS_TIME 1
14418 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14419 echo "configure:14420: checking whether struct tm is in sys/time.h or time.h" >&5
14420 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14421 echo $ac_n "(cached) $ac_c" 1>&6
14423 cat > conftest.$ac_ext <<EOF
14424 #line 14425 "configure"
14425 #include "confdefs.h"
14426 #include <sys/types.h>
14429 struct tm *tp; tp->tm_sec;
14432 if { (eval echo configure:14433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14434 ac_cv_struct_tm=time.h
14436 echo "configure: failed program was:" >&5
14437 cat conftest.$ac_ext >&5
14439 ac_cv_struct_tm=sys/time.h
14444 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14445 if test $ac_cv_struct_tm = sys/time.h; then
14446 cat >> confdefs.h <<\EOF
14447 #define TM_IN_SYS_TIME 1
14452 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14453 echo "configure:14454: checking for uid_t in sys/types.h" >&5
14454 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14455 echo $ac_n "(cached) $ac_c" 1>&6
14457 cat > conftest.$ac_ext <<EOF
14458 #line 14459 "configure"
14459 #include "confdefs.h"
14460 #include <sys/types.h>
14462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14463 egrep "uid_t" >/dev/null 2>&1; then
14465 ac_cv_type_uid_t=yes
14468 ac_cv_type_uid_t=no
14474 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14475 if test $ac_cv_type_uid_t = no; then
14476 cat >> confdefs.h <<\EOF
14480 cat >> confdefs.h <<\EOF
14486 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14487 echo "configure:14488: checking for sig_atomic_t" >&5
14488 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14489 echo $ac_n "(cached) $ac_c" 1>&6
14491 cat > conftest.$ac_ext <<EOF
14492 #line 14493 "configure"
14493 #include "confdefs.h"
14494 #include <signal.h>
14496 sig_atomic_t atomic;
14499 if { (eval echo configure:14500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14501 ol_cv_type_sig_atomic_t=yes
14503 echo "configure: failed program was:" >&5
14504 cat conftest.$ac_ext >&5
14506 ol_cv_type_sig_atomic_t=no
14511 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14512 if test $ol_cv_type_sig_atomic_t = no; then
14513 cat >> confdefs.h <<\EOF
14514 #define sig_atomic_t int
14521 # test for pw_gecos in struct passwd
14522 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14523 echo "configure:14524: checking struct passwd for pw_gecos" >&5
14524 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14525 echo $ac_n "(cached) $ac_c" 1>&6
14528 cat > conftest.$ac_ext <<EOF
14529 #line 14530 "configure"
14530 #include "confdefs.h"
14535 pwd.pw_gecos = pwd.pw_name;
14539 if { (eval echo configure:14540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14541 ol_cv_struct_passwd_pw_gecos=yes
14543 echo "configure: failed program was:" >&5
14544 cat conftest.$ac_ext >&5
14546 ol_cv_struct_passwd_pw_gecos=no
14551 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14552 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14553 cat >> confdefs.h <<\EOF
14554 #define HAVE_PW_GECOS 1
14559 # test for pw_passwd in struct passwd
14560 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14561 echo "configure:14562: checking struct passwd for pw_passwd" >&5
14562 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14563 echo $ac_n "(cached) $ac_c" 1>&6
14566 cat > conftest.$ac_ext <<EOF
14567 #line 14568 "configure"
14568 #include "confdefs.h"
14573 pwd.pw_passwd = pwd.pw_name;
14577 if { (eval echo configure:14578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14579 ol_cv_struct_passwd_pw_passwd=yes
14581 echo "configure: failed program was:" >&5
14582 cat conftest.$ac_ext >&5
14584 ol_cv_struct_passwd_pw_passwd=no
14589 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14590 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14591 cat >> confdefs.h <<\EOF
14592 #define HAVE_PW_PASSWD 1
14598 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14599 echo "configure:14600: checking if toupper() requires islower()" >&5
14600 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14601 echo $ac_n "(cached) $ac_c" 1>&6
14604 if test "$cross_compiling" = yes; then
14605 ol_cv_c_upper_lower=safe
14607 cat > conftest.$ac_ext <<EOF
14608 #line 14609 "configure"
14609 #include "confdefs.h"
14614 if ('C' == toupper('C'))
14620 if { (eval echo configure:14621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14622 ol_cv_c_upper_lower=no
14624 echo "configure: failed program was:" >&5
14625 cat conftest.$ac_ext >&5
14627 ol_cv_c_upper_lower=yes
14634 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14635 if test $ol_cv_c_upper_lower != no ; then
14636 cat >> confdefs.h <<\EOF
14637 #define C_UPPER_LOWER 1
14642 echo $ac_n "checking for working const""... $ac_c" 1>&6
14643 echo "configure:14644: checking for working const" >&5
14644 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14645 echo $ac_n "(cached) $ac_c" 1>&6
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14653 /* Ultrix mips cc rejects this. */
14654 typedef int charset[2]; const charset x;
14655 /* SunOS 4.1.1 cc rejects this. */
14656 char const *const *ccp;
14658 /* NEC SVR4.0.2 mips cc rejects this. */
14659 struct point {int x, y;};
14660 static struct point const zero = {0,0};
14661 /* AIX XL C 1.02.0.0 rejects this.
14662 It does not let you subtract one const X* pointer from another in an arm
14663 of an if-expression whose if-part is not a constant expression */
14664 const char *g = "string";
14665 ccp = &g + (g ? g-g : 0);
14666 /* HPUX 7.0 cc rejects these. */
14669 ccp = (char const *const *) p;
14670 { /* SCO 3.2v4 cc rejects this. */
14672 char const *s = 0 ? (char *) 0 : (char const *) 0;
14676 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14677 int x[] = {25, 17};
14678 const int *foo = &x[0];
14681 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14682 typedef const int *iptr;
14686 { /* AIX XL C 1.02.0.0 rejects this saying
14687 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14688 struct s { int j; const int *ap[3]; };
14689 struct s *b; b->j = 5;
14691 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14692 const int foo = 10;
14697 if { (eval echo configure:14698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14709 echo "$ac_t""$ac_cv_c_const" 1>&6
14710 if test $ac_cv_c_const = no; then
14711 cat >> confdefs.h <<\EOF
14717 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14718 echo "configure:14719: checking if compiler understands volatile" >&5
14719 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14720 echo $ac_n "(cached) $ac_c" 1>&6
14722 cat > conftest.$ac_ext <<EOF
14723 #line 14724 "configure"
14724 #include "confdefs.h"
14727 volatile int a; int * volatile b = x ? &y : &z;
14728 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14732 if { (eval echo configure:14733: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14734 ol_cv_c_volatile=yes
14736 echo "configure: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14739 ol_cv_c_volatile=no
14744 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14745 if test $ol_cv_c_volatile = yes; then
14748 cat >> confdefs.h <<\EOF
14755 if test $cross_compiling = yes ; then
14756 cat >> confdefs.h <<\EOF
14757 #define CROSS_COMPILING 1
14761 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14762 echo "configure:14763: checking whether byte ordering is bigendian" >&5
14763 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14764 echo $ac_n "(cached) $ac_c" 1>&6
14766 ac_cv_c_bigendian=unknown
14767 # See if sys/param.h defines the BYTE_ORDER macro.
14768 cat > conftest.$ac_ext <<EOF
14769 #line 14770 "configure"
14770 #include "confdefs.h"
14771 #include <sys/types.h>
14772 #include <sys/param.h>
14775 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14776 bogus endian macros
14780 if { (eval echo configure:14781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14782 # It does; now see whether it defined to BIG_ENDIAN or not.
14783 cat > conftest.$ac_ext <<EOF
14784 #line 14785 "configure"
14785 #include "confdefs.h"
14786 #include <sys/types.h>
14787 #include <sys/param.h>
14790 #if BYTE_ORDER != BIG_ENDIAN
14795 if { (eval echo configure:14796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14797 ac_cv_c_bigendian=yes
14799 echo "configure: failed program was:" >&5
14800 cat conftest.$ac_ext >&5
14802 ac_cv_c_bigendian=no
14806 echo "configure: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14810 if test $ac_cv_c_bigendian = unknown; then
14811 if test "$cross_compiling" = yes; then
14812 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14814 cat > conftest.$ac_ext <<EOF
14815 #line 14816 "configure"
14816 #include "confdefs.h"
14818 /* Are we little or big endian? From Harbison&Steele. */
14822 char c[sizeof (long)];
14825 exit (u.c[sizeof (long) - 1] == 1);
14828 if { (eval echo configure:14829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14830 ac_cv_c_bigendian=no
14832 echo "configure: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14835 ac_cv_c_bigendian=yes
14843 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14844 if test $ac_cv_c_bigendian = yes; then
14845 cat >> confdefs.h <<\EOF
14846 #define WORDS_BIGENDIAN 1
14853 echo $ac_n "checking size of short""... $ac_c" 1>&6
14854 echo "configure:14855: checking size of short" >&5
14855 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14856 echo $ac_n "(cached) $ac_c" 1>&6
14858 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14859 cat > conftest.$ac_ext <<EOF
14860 #line 14861 "configure"
14861 #include "confdefs.h"
14862 #include "confdefs.h"
14863 #include <sys/types.h>
14867 switch (0) case 0: case (sizeof (short) == $ac_size):;
14870 if { (eval echo configure:14871: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14872 ac_cv_sizeof_short=$ac_size
14874 echo "configure: failed program was:" >&5
14875 cat conftest.$ac_ext >&5
14878 if test x$ac_cv_sizeof_short != x ; then break; fi
14883 if test x$ac_cv_sizeof_short = x ; then
14884 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14886 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14887 cat >> confdefs.h <<EOF
14888 #define SIZEOF_SHORT $ac_cv_sizeof_short
14892 echo $ac_n "checking size of int""... $ac_c" 1>&6
14893 echo "configure:14894: checking size of int" >&5
14894 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14895 echo $ac_n "(cached) $ac_c" 1>&6
14897 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14898 cat > conftest.$ac_ext <<EOF
14899 #line 14900 "configure"
14900 #include "confdefs.h"
14901 #include "confdefs.h"
14902 #include <sys/types.h>
14906 switch (0) case 0: case (sizeof (int) == $ac_size):;
14909 if { (eval echo configure:14910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14911 ac_cv_sizeof_int=$ac_size
14913 echo "configure: failed program was:" >&5
14914 cat conftest.$ac_ext >&5
14917 if test x$ac_cv_sizeof_int != x ; then break; fi
14922 if test x$ac_cv_sizeof_int = x ; then
14923 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14925 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14926 cat >> confdefs.h <<EOF
14927 #define SIZEOF_INT $ac_cv_sizeof_int
14931 echo $ac_n "checking size of long""... $ac_c" 1>&6
14932 echo "configure:14933: checking size of long" >&5
14933 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14934 echo $ac_n "(cached) $ac_c" 1>&6
14936 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 #include "confdefs.h"
14941 #include <sys/types.h>
14945 switch (0) case 0: case (sizeof (long) == $ac_size):;
14948 if { (eval echo configure:14949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14950 ac_cv_sizeof_long=$ac_size
14952 echo "configure: failed program was:" >&5
14953 cat conftest.$ac_ext >&5
14956 if test x$ac_cv_sizeof_long != x ; then break; fi
14961 if test x$ac_cv_sizeof_long = x ; then
14962 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14964 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14965 cat >> confdefs.h <<EOF
14966 #define SIZEOF_LONG $ac_cv_sizeof_long
14971 if test "$ac_cv_sizeof_int" -lt 4 ; then
14972 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14974 cat >> confdefs.h <<\EOF
14975 #define LBER_INT_T long
14979 cat >> confdefs.h <<\EOF
14980 #define LBER_INT_T int
14985 cat >> confdefs.h <<\EOF
14986 #define LBER_LEN_T long
14989 cat >> confdefs.h <<\EOF
14990 #define LBER_SOCKET_T int
14993 cat >> confdefs.h <<\EOF
14994 #define LBER_TAG_T long
14998 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14999 echo "configure:15000: checking for 8-bit clean memcmp" >&5
15000 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15001 echo $ac_n "(cached) $ac_c" 1>&6
15003 if test "$cross_compiling" = yes; then
15004 ac_cv_func_memcmp_clean=no
15006 cat > conftest.$ac_ext <<EOF
15007 #line 15008 "configure"
15008 #include "confdefs.h"
15012 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15013 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15017 if { (eval echo configure:15018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15019 ac_cv_func_memcmp_clean=yes
15021 echo "configure: failed program was:" >&5
15022 cat conftest.$ac_ext >&5
15024 ac_cv_func_memcmp_clean=no
15031 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15032 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15034 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15035 echo "configure:15036: checking for strftime" >&5
15036 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15037 echo $ac_n "(cached) $ac_c" 1>&6
15039 cat > conftest.$ac_ext <<EOF
15040 #line 15041 "configure"
15041 #include "confdefs.h"
15042 /* System header to define __stub macros and hopefully few prototypes,
15043 which can conflict with char strftime(); below. */
15044 #include <assert.h>
15045 /* Override any gcc2 internal prototype to avoid an error. */
15046 /* We use char because int might match the return type of a gcc2
15047 builtin and then its argument prototype would still apply. */
15053 /* The GNU C library defines this for functions which it implements
15054 to always fail with ENOSYS. Some functions are actually named
15055 something starting with __ and the normal name is an alias. */
15056 #if defined (__stub_strftime) || defined (__stub___strftime)
15064 if { (eval echo configure:15065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15066 eval "ac_cv_func_strftime=yes"
15068 echo "configure: failed program was:" >&5
15069 cat conftest.$ac_ext >&5
15071 eval "ac_cv_func_strftime=no"
15076 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15077 echo "$ac_t""yes" 1>&6
15078 cat >> confdefs.h <<\EOF
15079 #define HAVE_STRFTIME 1
15083 echo "$ac_t""no" 1>&6
15084 # strftime is in -lintl on SCO UNIX.
15085 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15086 echo "configure:15087: checking for strftime in -lintl" >&5
15087 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15088 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15089 echo $ac_n "(cached) $ac_c" 1>&6
15091 ac_save_LIBS="$LIBS"
15092 LIBS="-lintl $LIBS"
15093 cat > conftest.$ac_ext <<EOF
15094 #line 15095 "configure"
15095 #include "confdefs.h"
15096 /* Override any gcc2 internal prototype to avoid an error. */
15097 /* We use char because int might match the return type of a gcc2
15098 builtin and then its argument prototype would still apply. */
15105 if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15107 eval "ac_cv_lib_$ac_lib_var=yes"
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15112 eval "ac_cv_lib_$ac_lib_var=no"
15115 LIBS="$ac_save_LIBS"
15118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15119 echo "$ac_t""yes" 1>&6
15120 cat >> confdefs.h <<\EOF
15121 #define HAVE_STRFTIME 1
15124 LIBS="-lintl $LIBS"
15126 echo "$ac_t""no" 1>&6
15132 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15133 echo "configure:15134: checking for inet_aton()" >&5
15134 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15135 echo $ac_n "(cached) $ac_c" 1>&6
15137 cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15141 #ifdef HAVE_SYS_TYPES_H
15142 # include <sys/types.h>
15144 #ifdef HAVE_SYS_SOCKET_H
15145 # include <sys/socket.h>
15146 # ifdef HAVE_SYS_SELECT_H
15147 # include <sys/select.h>
15149 # include <netinet/in.h>
15150 # ifdef HAVE_ARPA_INET_H
15151 # include <arpa/inet.h>
15157 int rc = inet_aton( "255.255.255.255", &in );
15160 if { (eval echo configure:15161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15162 ol_cv_func_inet_aton=yes
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15167 ol_cv_func_inet_aton=no
15172 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15173 if test $ol_cv_func_inet_aton != no; then
15174 cat >> confdefs.h <<\EOF
15175 #define HAVE_INET_ATON 1
15181 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15182 echo "configure:15183: checking for _spawnlp" >&5
15183 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15184 echo $ac_n "(cached) $ac_c" 1>&6
15186 cat > conftest.$ac_ext <<EOF
15187 #line 15188 "configure"
15188 #include "confdefs.h"
15189 /* System header to define __stub macros and hopefully few prototypes,
15190 which can conflict with char _spawnlp(); below. */
15191 #include <assert.h>
15192 /* Override any gcc2 internal prototype to avoid an error. */
15193 /* We use char because int might match the return type of a gcc2
15194 builtin and then its argument prototype would still apply. */
15200 /* The GNU C library defines this for functions which it implements
15201 to always fail with ENOSYS. Some functions are actually named
15202 something starting with __ and the normal name is an alias. */
15203 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15211 if { (eval echo configure:15212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15213 eval "ac_cv_func__spawnlp=yes"
15215 echo "configure: failed program was:" >&5
15216 cat conftest.$ac_ext >&5
15218 eval "ac_cv_func__spawnlp=no"
15223 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15224 echo "$ac_t""yes" 1>&6
15225 cat >> confdefs.h <<\EOF
15226 #define HAVE_SPAWNLP 1
15230 echo "$ac_t""no" 1>&6
15234 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15235 echo "configure:15236: checking for _snprintf" >&5
15236 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15237 echo $ac_n "(cached) $ac_c" 1>&6
15239 cat > conftest.$ac_ext <<EOF
15240 #line 15241 "configure"
15241 #include "confdefs.h"
15242 /* System header to define __stub macros and hopefully few prototypes,
15243 which can conflict with char _snprintf(); below. */
15244 #include <assert.h>
15245 /* Override any gcc2 internal prototype to avoid an error. */
15246 /* We use char because int might match the return type of a gcc2
15247 builtin and then its argument prototype would still apply. */
15253 /* The GNU C library defines this for functions which it implements
15254 to always fail with ENOSYS. Some functions are actually named
15255 something starting with __ and the normal name is an alias. */
15256 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15264 if { (eval echo configure:15265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15266 eval "ac_cv_func__snprintf=yes"
15268 echo "configure: failed program was:" >&5
15269 cat conftest.$ac_ext >&5
15271 eval "ac_cv_func__snprintf=no"
15276 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15277 echo "$ac_t""yes" 1>&6
15278 ac_cv_func_snprintf=yes
15279 cat >> confdefs.h <<\EOF
15280 #define snprintf _snprintf
15285 echo "$ac_t""no" 1>&6
15289 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15290 echo "configure:15291: checking for _vsnprintf" >&5
15291 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15292 echo $ac_n "(cached) $ac_c" 1>&6
15294 cat > conftest.$ac_ext <<EOF
15295 #line 15296 "configure"
15296 #include "confdefs.h"
15297 /* System header to define __stub macros and hopefully few prototypes,
15298 which can conflict with char _vsnprintf(); below. */
15299 #include <assert.h>
15300 /* Override any gcc2 internal prototype to avoid an error. */
15301 /* We use char because int might match the return type of a gcc2
15302 builtin and then its argument prototype would still apply. */
15308 /* The GNU C library defines this for functions which it implements
15309 to always fail with ENOSYS. Some functions are actually named
15310 something starting with __ and the normal name is an alias. */
15311 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15319 if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15321 eval "ac_cv_func__vsnprintf=yes"
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15326 eval "ac_cv_func__vsnprintf=no"
15331 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15332 echo "$ac_t""yes" 1>&6
15333 ac_cv_func_vsnprintf=yes
15334 cat >> confdefs.h <<\EOF
15335 #define vsnprintf _vsnprintf
15340 echo "$ac_t""no" 1>&6
15344 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15345 echo "configure:15346: checking for vprintf" >&5
15346 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15347 echo $ac_n "(cached) $ac_c" 1>&6
15349 cat > conftest.$ac_ext <<EOF
15350 #line 15351 "configure"
15351 #include "confdefs.h"
15352 /* System header to define __stub macros and hopefully few prototypes,
15353 which can conflict with char vprintf(); below. */
15354 #include <assert.h>
15355 /* Override any gcc2 internal prototype to avoid an error. */
15356 /* We use char because int might match the return type of a gcc2
15357 builtin and then its argument prototype would still apply. */
15363 /* The GNU C library defines this for functions which it implements
15364 to always fail with ENOSYS. Some functions are actually named
15365 something starting with __ and the normal name is an alias. */
15366 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15374 if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15376 eval "ac_cv_func_vprintf=yes"
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15381 eval "ac_cv_func_vprintf=no"
15386 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15387 echo "$ac_t""yes" 1>&6
15388 cat >> confdefs.h <<\EOF
15389 #define HAVE_VPRINTF 1
15393 echo "$ac_t""no" 1>&6
15396 if test "$ac_cv_func_vprintf" != yes; then
15397 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15398 echo "configure:15399: checking for _doprnt" >&5
15399 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15400 echo $ac_n "(cached) $ac_c" 1>&6
15402 cat > conftest.$ac_ext <<EOF
15403 #line 15404 "configure"
15404 #include "confdefs.h"
15405 /* System header to define __stub macros and hopefully few prototypes,
15406 which can conflict with char _doprnt(); below. */
15407 #include <assert.h>
15408 /* Override any gcc2 internal prototype to avoid an error. */
15409 /* We use char because int might match the return type of a gcc2
15410 builtin and then its argument prototype would still apply. */
15416 /* The GNU C library defines this for functions which it implements
15417 to always fail with ENOSYS. Some functions are actually named
15418 something starting with __ and the normal name is an alias. */
15419 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15427 if { (eval echo configure:15428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15429 eval "ac_cv_func__doprnt=yes"
15431 echo "configure: failed program was:" >&5
15432 cat conftest.$ac_ext >&5
15434 eval "ac_cv_func__doprnt=no"
15439 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15440 echo "$ac_t""yes" 1>&6
15441 cat >> confdefs.h <<\EOF
15442 #define HAVE_DOPRNT 1
15446 echo "$ac_t""no" 1>&6
15452 if test $ac_cv_func_vprintf = yes ; then
15453 for ac_func in vsnprintf vsprintf
15455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15456 echo "configure:15457: checking for $ac_func" >&5
15457 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15460 cat > conftest.$ac_ext <<EOF
15461 #line 15462 "configure"
15462 #include "confdefs.h"
15463 /* System header to define __stub macros and hopefully few prototypes,
15464 which can conflict with char $ac_func(); below. */
15465 #include <assert.h>
15466 /* Override any gcc2 internal prototype to avoid an error. */
15467 /* We use char because int might match the return type of a gcc2
15468 builtin and then its argument prototype would still apply. */
15474 /* The GNU C library defines this for functions which it implements
15475 to always fail with ENOSYS. Some functions are actually named
15476 something starting with __ and the normal name is an alias. */
15477 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15485 if { (eval echo configure:15486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15487 eval "ac_cv_func_$ac_func=yes"
15489 echo "configure: failed program was:" >&5
15490 cat conftest.$ac_ext >&5
15492 eval "ac_cv_func_$ac_func=no"
15497 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15498 echo "$ac_t""yes" 1>&6
15499 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15500 cat >> confdefs.h <<EOF
15501 #define $ac_tr_func 1
15505 echo "$ac_t""no" 1>&6
15563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15564 echo "configure:15565: checking for $ac_func" >&5
15565 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15566 echo $ac_n "(cached) $ac_c" 1>&6
15568 cat > conftest.$ac_ext <<EOF
15569 #line 15570 "configure"
15570 #include "confdefs.h"
15571 /* System header to define __stub macros and hopefully few prototypes,
15572 which can conflict with char $ac_func(); below. */
15573 #include <assert.h>
15574 /* Override any gcc2 internal prototype to avoid an error. */
15575 /* We use char because int might match the return type of a gcc2
15576 builtin and then its argument prototype would still apply. */
15582 /* The GNU C library defines this for functions which it implements
15583 to always fail with ENOSYS. Some functions are actually named
15584 something starting with __ and the normal name is an alias. */
15585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15593 if { (eval echo configure:15594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15595 eval "ac_cv_func_$ac_func=yes"
15597 echo "configure: failed program was:" >&5
15598 cat conftest.$ac_ext >&5
15600 eval "ac_cv_func_$ac_func=no"
15605 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15606 echo "$ac_t""yes" 1>&6
15607 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15608 cat >> confdefs.h <<EOF
15609 #define $ac_tr_func 1
15613 echo "$ac_t""no" 1>&6
15618 for ac_func in getopt tempnam
15620 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15621 echo "configure:15622: checking for $ac_func" >&5
15622 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15623 echo $ac_n "(cached) $ac_c" 1>&6
15625 cat > conftest.$ac_ext <<EOF
15626 #line 15627 "configure"
15627 #include "confdefs.h"
15628 /* System header to define __stub macros and hopefully few prototypes,
15629 which can conflict with char $ac_func(); below. */
15630 #include <assert.h>
15631 /* Override any gcc2 internal prototype to avoid an error. */
15632 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */
15639 /* The GNU C library defines this for functions which it implements
15640 to always fail with ENOSYS. Some functions are actually named
15641 something starting with __ and the normal name is an alias. */
15642 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15650 if { (eval echo configure:15651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15652 eval "ac_cv_func_$ac_func=yes"
15654 echo "configure: failed program was:" >&5
15655 cat conftest.$ac_ext >&5
15657 eval "ac_cv_func_$ac_func=no"
15662 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15663 echo "$ac_t""yes" 1>&6
15664 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15665 cat >> confdefs.h <<EOF
15666 #define $ac_tr_func 1
15670 echo "$ac_t""no" 1>&6
15671 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15677 if test "$ac_cv_func_getopt" != yes; then
15678 LIBSRCS="$LIBSRCS getopt.c"
15681 if test "$ac_cv_func_tempnam" != yes; then
15682 LIBSRCS="$LIBSRCS tempnam.c"
15685 # Check Configuration
15686 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15687 echo "configure:15688: checking declaration of sys_errlist" >&5
15688 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15689 echo $ac_n "(cached) $ac_c" 1>&6
15692 cat > conftest.$ac_ext <<EOF
15693 #line 15694 "configure"
15694 #include "confdefs.h"
15697 #include <sys/types.h>
15700 #include <stdlib.h>
15703 char *c = (char *) *sys_errlist
15706 if { (eval echo configure:15707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15708 ol_cv_dcl_sys_errlist=yes
15709 ol_cv_have_sys_errlist=yes
15711 echo "configure: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15714 ol_cv_dcl_sys_errlist=no
15719 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15721 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15722 if test $ol_cv_dcl_sys_errlist = no ; then
15723 cat >> confdefs.h <<\EOF
15724 #define DECL_SYS_ERRLIST 1
15728 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15729 echo "configure:15730: checking existence of sys_errlist" >&5
15730 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15734 cat > conftest.$ac_ext <<EOF
15735 #line 15736 "configure"
15736 #include "confdefs.h"
15739 char *c = (char *) *sys_errlist
15742 if { (eval echo configure:15743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15744 ol_cv_have_sys_errlist=yes
15746 echo "configure: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15749 ol_cv_have_sys_errlist=no
15754 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15756 if test $ol_cv_have_sys_errlist = yes ; then
15757 cat >> confdefs.h <<\EOF
15758 #define HAVE_SYS_ERRLIST 1
15765 if test "$ol_enable_debug" != no ; then
15766 cat >> confdefs.h <<\EOF
15767 #define LDAP_DEBUG 1
15771 if test "$ol_enable_syslog" = yes ; then
15772 cat >> confdefs.h <<\EOF
15773 #define LDAP_SYSLOG 1
15777 if test "$ol_enable_libui" = yes ; then
15778 cat >> confdefs.h <<\EOF
15779 #define LDAP_LIBUI 1
15783 if test "$ol_enable_cache" = no ; then
15784 cat >> confdefs.h <<\EOF
15785 #define LDAP_NOCACHE 1
15789 if test "$ol_link_kbind" != no ; then
15790 cat >> confdefs.h <<\EOF
15791 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15795 if test "$ol_enable_proctitle" != no ; then
15796 cat >> confdefs.h <<\EOF
15797 #define LDAP_PROCTITLE 1
15801 if test "$ol_enable_referrals" != no ; then
15802 cat >> confdefs.h <<\EOF
15803 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15807 if test "$ol_enable_cldap" != no ; then
15808 cat >> confdefs.h <<\EOF
15809 #define LDAP_CONNECTIONLESS 1
15813 if test "$ol_enable_unix" != no; then
15814 cat >> confdefs.h <<\EOF
15815 #define LDAP_PF_UNIX 1
15819 if test "$ol_enable_ipv6" != no; then
15820 cat >> confdefs.h <<\EOF
15821 #define LDAP_PF_INET6 1
15825 if test "$ol_enable_cleartext" != no ; then
15826 cat >> confdefs.h <<\EOF
15827 #define SLAPD_CLEARTEXT 1
15831 if test "$ol_enable_crypt" != no ; then
15832 cat >> confdefs.h <<\EOF
15833 #define SLAPD_CRYPT 1
15837 if test "$ol_link_kpasswd" != no ; then
15838 cat >> confdefs.h <<\EOF
15839 #define SLAPD_KPASSWD 1
15843 if test "$ol_link_spasswd" != no ; then
15844 cat >> confdefs.h <<\EOF
15845 #define SLAPD_SPASSWD 1
15849 if test "$ol_enable_multimaster" != no ; then
15850 cat >> confdefs.h <<\EOF
15851 #define SLAPD_MULTIMASTER 1
15855 if test "$ol_enable_phonetic" != no ; then
15856 cat >> confdefs.h <<\EOF
15857 #define SLAPD_PHONETIC 1
15861 if test "$ol_enable_rlookups" != no ; then
15862 cat >> confdefs.h <<\EOF
15863 #define SLAPD_RLOOKUPS 1
15867 if test "$ol_enable_aci" != no ; then
15868 cat >> confdefs.h <<\EOF
15869 #define SLAPD_ACI_ENABLED 1
15874 if test "$ol_link_modules" != no ; then
15875 cat >> confdefs.h <<\EOF
15876 #define SLAPD_MODULES 1
15880 SLAPD_MODULES_LDFLAGS="-dlopen self"
15883 if test "$ol_link_dnssrv" != no ; then
15884 cat >> confdefs.h <<\EOF
15885 #define SLAPD_DNSSRV 1
15890 if test "$ol_with_dnssrv_module" != static ; then
15891 cat >> confdefs.h <<\EOF
15892 #define SLAPD_DNSSRV_DYNAMIC 1
15896 BUILD_DNSSRV_DYNAMIC=shared
15897 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15901 if test "$ol_enable_ldap" != no ; then
15902 cat >> confdefs.h <<\EOF
15903 #define SLAPD_LDAP 1
15908 if test "$ol_with_ldap_module" != static ; then
15909 cat >> confdefs.h <<\EOF
15910 #define SLAPD_LDAP_DYNAMIC 1
15914 BUILD_LDAP_DYNAMIC=shared
15915 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15919 if test "$ol_link_ldbm" != no ; then
15920 cat >> confdefs.h <<\EOF
15921 #define SLAPD_LDBM 1
15926 if test "$ol_with_ldbm_module" != static ; then
15927 cat >> confdefs.h <<\EOF
15928 #define SLAPD_LDBM_DYNAMIC 1
15932 BUILD_LDBM_DYNAMIC=shared
15933 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15937 if test "$ol_enable_passwd" != no ; then
15938 cat >> confdefs.h <<\EOF
15939 #define SLAPD_PASSWD 1
15944 if test "$ol_with_passwd_module" != static ; then
15945 cat >> confdefs.h <<\EOF
15946 #define SLAPD_PASSWD_DYNAMIC 1
15950 BUILD_PASSWD_DYNAMIC=shared
15951 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15955 if test "$ol_link_perl" != no ; then
15956 cat >> confdefs.h <<\EOF
15957 #define SLAPD_PERL 1
15962 if test "$ol_with_perl_module" != static ; then
15963 cat >> confdefs.h <<\EOF
15964 #define SLAPD_PERL_DYNAMIC 1
15968 BUILD_PERL_DYNAMIC=shared
15969 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15973 if test "$ol_enable_shell" != no ; then
15974 cat >> confdefs.h <<\EOF
15975 #define SLAPD_SHELL 1
15980 if test "$ol_with_shell_module" != static ; then
15981 cat >> confdefs.h <<\EOF
15982 #define SLAPD_SHELL_DYNAMIC 1
15986 BUILD_SHELL_DYNAMIC=shared
15987 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15991 if test "$ol_enable_tcl" != no ; then
15992 cat >> confdefs.h <<\EOF
15993 #define SLAPD_TCL 1
15998 if test "$ol_with_tcl_module" != static; then
15999 cat >> confdefs.h <<\EOF
16000 #define SLAPD_TCL_DYNAMIC 1
16004 BUILD_TCL_DYNAMIC=shared
16005 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16009 if test "$ol_enable_sql" != no ; then
16010 cat >> confdefs.h <<\EOF
16011 #define SLAPD_SQL 1
16016 SLAPD_SQL_LIBS=-liodbc
16017 if test "$ol_with_sql_module" != static; then
16018 cat >> confdefs.h <<\EOF
16019 #define SLAPD_SQL_DYNAMIC 1
16023 BUILD_SQL_DYNAMIC=shared
16024 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16028 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16029 $BUILD_SLAPD = yes ; then
16034 if test "$LINK_BINS_DYNAMIC" = yes; then
16036 LT_LIB_LINKAGE=shared
16039 LT_LIB_LINKAGE=static
16042 if test "$ac_cv_mingw32" = yes ; then
16113 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16115 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16116 # Let make expand exec_prefix.
16117 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16119 # Any assignment to VPATH causes Sun make to only execute
16120 # the first set of double-colon rules, so remove it if not needed.
16121 # If there is a colon in the path, we need to keep it.
16122 if test "x$srcdir" = x.; then
16123 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16126 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16128 DEFS=-DHAVE_CONFIG_H
16130 # Without the "./", some shells look in PATH for config.status.
16131 : ${CONFIG_STATUS=./config.status}
16133 echo creating $CONFIG_STATUS
16134 rm -f $CONFIG_STATUS
16135 cat > $CONFIG_STATUS <<EOF
16137 # Generated automatically by configure.
16138 # Run this file to recreate the current configuration.
16139 # This directory was configured as follows,
16140 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16142 # $0 $ac_configure_args
16144 # Compiler output produced by configure, useful for debugging
16145 # configure, is in ./config.log if it exists.
16147 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16150 case "\$ac_option" in
16151 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16152 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16153 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16154 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16155 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16157 -help | --help | --hel | --he | --h)
16158 echo "\$ac_cs_usage"; exit 0 ;;
16159 *) echo "\$ac_cs_usage"; exit 1 ;;
16163 ac_given_srcdir=$srcdir
16164 ac_given_INSTALL="$INSTALL"
16166 trap 'rm -fr `echo "\
16167 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16168 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16169 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16170 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16171 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16172 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16173 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16174 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16175 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16176 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16177 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16178 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16179 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16180 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16181 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16182 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16183 include/Makefile:build/top.mk:include/Makefile.in \
16184 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16185 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16186 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16187 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16188 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16189 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16190 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16191 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16192 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16193 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16194 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16195 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16196 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16197 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16198 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16199 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16200 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16201 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16202 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16203 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16204 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16205 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16206 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16207 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16208 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16209 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16210 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16211 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16213 cat >> $CONFIG_STATUS <<EOF
16215 # Protect against being on the right side of a sed subst in config.status.
16216 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16217 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16221 s%@CFLAGS@%$CFLAGS%g
16222 s%@CPPFLAGS@%$CPPFLAGS%g
16223 s%@CXXFLAGS@%$CXXFLAGS%g
16224 s%@FFLAGS@%$FFLAGS%g
16226 s%@LDFLAGS@%$LDFLAGS%g
16228 s%@exec_prefix@%$exec_prefix%g
16229 s%@prefix@%$prefix%g
16230 s%@program_transform_name@%$program_transform_name%g
16231 s%@bindir@%$bindir%g
16232 s%@sbindir@%$sbindir%g
16233 s%@libexecdir@%$libexecdir%g
16234 s%@datadir@%$datadir%g
16235 s%@sysconfdir@%$sysconfdir%g
16236 s%@sharedstatedir@%$sharedstatedir%g
16237 s%@localstatedir@%$localstatedir%g
16238 s%@libdir@%$libdir%g
16239 s%@includedir@%$includedir%g
16240 s%@oldincludedir@%$oldincludedir%g
16241 s%@infodir@%$infodir%g
16242 s%@mandir@%$mandir%g
16244 s%@host_alias@%$host_alias%g
16245 s%@host_cpu@%$host_cpu%g
16246 s%@host_vendor@%$host_vendor%g
16247 s%@host_os@%$host_os%g
16248 s%@target@%$target%g
16249 s%@target_alias@%$target_alias%g
16250 s%@target_cpu@%$target_cpu%g
16251 s%@target_vendor@%$target_vendor%g
16252 s%@target_os@%$target_os%g
16254 s%@build_alias@%$build_alias%g
16255 s%@build_cpu@%$build_cpu%g
16256 s%@build_vendor@%$build_vendor%g
16257 s%@build_os@%$build_os%g
16258 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16259 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16260 s%@INSTALL_DATA@%$INSTALL_DATA%g
16261 s%@PACKAGE@%$PACKAGE%g
16262 s%@VERSION@%$VERSION%g
16263 s%@ACLOCAL@%$ACLOCAL%g
16264 s%@AUTOCONF@%$AUTOCONF%g
16265 s%@AUTOMAKE@%$AUTOMAKE%g
16266 s%@AUTOHEADER@%$AUTOHEADER%g
16267 s%@MAKEINFO@%$MAKEINFO%g
16268 s%@install_sh@%$install_sh%g
16271 s%@AMTARFLAGS@%$AMTARFLAGS%g
16272 s%@SET_MAKE@%$SET_MAKE%g
16273 s%@top_builddir@%$top_builddir%g
16274 s%@ldap_subdir@%$ldap_subdir%g
16276 s%@RANLIB@%$RANLIB%g
16278 s%@DLLTOOL@%$DLLTOOL%g
16280 s%@OBJDUMP@%$OBJDUMP%g
16281 s%@LIBTOOL@%$LIBTOOL%g
16283 s%@SENDMAIL@%$SENDMAIL%g
16284 s%@EDITOR@%$EDITOR%g
16285 s%@FINGER@%$FINGER%g
16286 s%@PERLBIN@%$PERLBIN%g
16288 s%@EXEEXT@%$EXEEXT%g
16289 s%@OBJEXT@%$OBJEXT%g
16290 s%@OL_MKDEP@%$OL_MKDEP%g
16291 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16292 s%@LIBOBJS@%$LIBOBJS%g
16293 s%@LIBSRCS@%$LIBSRCS%g
16295 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16296 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16297 s%@DYN_EXT@%$DYN_EXT%g
16298 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16299 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16300 s%@BUILD_LDAP@%$BUILD_LDAP%g
16301 s%@BUILD_LDBM@%$BUILD_LDBM%g
16302 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16303 s%@BUILD_PERL@%$BUILD_PERL%g
16304 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16305 s%@BUILD_SHELL@%$BUILD_SHELL%g
16306 s%@BUILD_SQL@%$BUILD_SQL%g
16307 s%@BUILD_TCL@%$BUILD_TCL%g
16308 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16309 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16310 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16311 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16312 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16313 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16314 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16315 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16316 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16317 s%@LDAP_LIBS@%$LDAP_LIBS%g
16318 s%@LDIF_LIBS@%$LDIF_LIBS%g
16319 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16320 s%@QUIPU_LIBS@%$QUIPU_LIBS%g
16321 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16322 s%@LDBM_LIBS@%$LDBM_LIBS%g
16323 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16324 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16325 s%@WRAP_LIBS@%$WRAP_LIBS%g
16326 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16327 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16328 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16329 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16330 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16331 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16332 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16333 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16334 s%@KRB4_LIBS@%$KRB4_LIBS%g
16335 s%@KRB5_LIBS@%$KRB5_LIBS%g
16336 s%@READLINE_LIBS@%$READLINE_LIBS%g
16337 s%@SASL_LIBS@%$SASL_LIBS%g
16338 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16339 s%@TLS_LIBS@%$TLS_LIBS%g
16340 s%@MODULES_LIBS@%$MODULES_LIBS%g
16341 s%@AUTH_LIBS@%$AUTH_LIBS%g
16342 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16343 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16344 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16349 cat >> $CONFIG_STATUS <<\EOF
16351 # Split the substitutions into bite-sized pieces for seds with
16352 # small command number limits, like on Digital OSF/1 and HP-UX.
16353 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16354 ac_file=1 # Number of current file.
16355 ac_beg=1 # First line for current file.
16356 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16359 while $ac_more_lines; do
16360 if test $ac_beg -gt 1; then
16361 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16363 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16365 if test ! -s conftest.s$ac_file; then
16366 ac_more_lines=false
16367 rm -f conftest.s$ac_file
16369 if test -z "$ac_sed_cmds"; then
16370 ac_sed_cmds="sed -f conftest.s$ac_file"
16372 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16374 ac_file=`expr $ac_file + 1`
16376 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16379 if test -z "$ac_sed_cmds"; then
16384 cat >> $CONFIG_STATUS <<EOF
16386 CONFIG_FILES=\${CONFIG_FILES-"\
16387 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16388 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16389 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16390 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16391 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16392 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16393 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16394 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16395 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16396 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16397 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16398 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16399 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16400 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16401 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16402 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16403 include/Makefile:build/top.mk:include/Makefile.in \
16404 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16405 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16406 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16407 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16408 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16409 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16410 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16411 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16412 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16413 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16414 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16415 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16416 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16417 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16418 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16419 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16420 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16421 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16422 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16423 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16424 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16425 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16426 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16427 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16428 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16429 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16430 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16433 cat >> $CONFIG_STATUS <<\EOF
16434 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16435 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16437 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16438 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16439 *) ac_file_in="${ac_file}.in" ;;
16442 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16444 # Remove last slash and all that follows it. Not all systems have dirname.
16445 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16446 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16447 # The file is in a subdirectory.
16448 test ! -d "$ac_dir" && mkdir "$ac_dir"
16449 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16450 # A "../" for each directory in $ac_dir_suffix.
16451 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16453 ac_dir_suffix= ac_dots=
16456 case "$ac_given_srcdir" in
16458 if test -z "$ac_dots"; then top_srcdir=.
16459 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16460 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16461 *) # Relative path.
16462 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16463 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16466 case "$ac_given_INSTALL" in
16467 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16468 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16471 echo creating "$ac_file"
16473 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16475 *[Mm]akefile*) ac_comsub="1i\\
16476 # $configure_input" ;;
16480 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16482 s%@configure_input@%$configure_input%g
16483 s%@srcdir@%$srcdir%g
16484 s%@top_srcdir@%$top_srcdir%g
16485 s%@INSTALL@%$INSTALL%g
16486 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16490 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16491 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16493 # ac_d sets the value in "#define NAME VALUE" lines.
16494 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16495 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16498 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16499 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16500 ac_uB='\([ ]\)%\1#\2define\3'
16503 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16504 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16505 ac_eB='$%\1#\2define\3'
16509 if test "${CONFIG_HEADERS+set}" != set; then
16511 cat >> $CONFIG_STATUS <<EOF
16512 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16514 cat >> $CONFIG_STATUS <<\EOF
16516 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16517 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16519 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16520 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16521 *) ac_file_in="${ac_file}.in" ;;
16524 echo creating $ac_file
16526 rm -f conftest.frag conftest.in conftest.out
16527 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16528 cat $ac_file_inputs > conftest.in
16532 # Transform confdefs.h into a sed script conftest.vals that substitutes
16533 # the proper values into config.h.in to produce config.h. And first:
16534 # Protect against being on the right side of a sed subst in config.status.
16535 # Protect against being in an unquoted here document in config.status.
16536 rm -f conftest.vals
16537 cat > conftest.hdr <<\EOF
16540 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16544 sed -n -f conftest.hdr confdefs.h > conftest.vals
16547 # This sed command replaces #undef with comments. This is necessary, for
16548 # example, in the case of _POSIX_SOURCE, which is predefined and required
16549 # on some systems where configure will not decide to define it.
16550 cat >> conftest.vals <<\EOF
16551 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16554 # Break up conftest.vals because some shells have a limit on
16555 # the size of here documents, and old seds have small limits too.
16557 rm -f conftest.tail
16560 ac_lines=`grep -c . conftest.vals`
16561 # grep -c gives empty output for an empty file on some AIX systems.
16562 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16563 # Write a limited-size here document to conftest.frag.
16564 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16565 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16567 sed -f conftest.frag conftest.in > conftest.out
16569 mv conftest.out conftest.in
16570 ' >> $CONFIG_STATUS
16571 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16572 rm -f conftest.vals
16573 mv conftest.tail conftest.vals
16575 rm -f conftest.vals
16577 cat >> $CONFIG_STATUS <<\EOF
16578 rm -f conftest.frag conftest.h
16579 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16580 cat conftest.in >> conftest.h
16582 if cmp -s $ac_file conftest.h 2>/dev/null; then
16583 echo "$ac_file is unchanged"
16586 # Remove last slash and all that follows it. Not all systems have dirname.
16587 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16588 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16589 # The file is in a subdirectory.
16590 test ! -d "$ac_dir" && mkdir "$ac_dir"
16593 mv conftest.h $ac_file
16598 cat >> $CONFIG_STATUS <<EOF
16601 cat >> $CONFIG_STATUS <<\EOF
16604 echo Please \"make depend\" to build dependencies
16608 chmod +x $CONFIG_STATUS
16609 rm -fr confdefs* $ac_clean_files
16610 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1