3 # from OpenLDAP: pkg/ldap/configure.in,v 1.315 2000/06/18 17:36:48 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-referrals enable V2 Referrals extension (yes)"
40 --enable-kbind enable V2 Kerberos IV bind (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 for ac_func in pthread_kill_other_threads_np
10293 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10294 echo "configure:10295: checking for $ac_func" >&5
10295 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10296 echo $ac_n "(cached) $ac_c" 1>&6
10298 cat > conftest.$ac_ext <<EOF
10299 #line 10300 "configure"
10300 #include "confdefs.h"
10301 /* System header to define __stub macros and hopefully few prototypes,
10302 which can conflict with char $ac_func(); below. */
10303 #include <assert.h>
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 /* We use char because int might match the return type of a gcc2
10306 builtin and then its argument prototype would still apply. */
10312 /* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10323 if { (eval echo configure:10324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10325 eval "ac_cv_func_$ac_func=yes"
10327 echo "configure: failed program was:" >&5
10328 cat conftest.$ac_ext >&5
10330 eval "ac_cv_func_$ac_func=no"
10335 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10336 echo "$ac_t""yes" 1>&6
10337 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10338 cat >> confdefs.h <<EOF
10339 #define $ac_tr_func 1
10343 echo "$ac_t""no" 1>&6
10347 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10348 echo "configure:10349: checking for LinuxThreads implementation" >&5
10349 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10352 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10355 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10360 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10361 echo "configure:10362: checking for LinuxThreads consistency" >&5
10362 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10366 if test $ol_cv_header_linux_threads = yes -a \
10367 $ol_cv_sys_linux_threads = yes; then
10368 ol_cv_linux_threads=yes
10369 elif test $ol_cv_header_linux_threads = no -a \
10370 $ol_cv_sys_linux_threads = no; then
10371 ol_cv_linux_threads=no
10373 ol_cv_linux_threads=error
10378 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10381 if test $ol_cv_linux_threads = error; then
10382 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10385 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10386 echo "configure:10387: checking if pthread_create() works" >&5
10387 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10388 echo $ac_n "(cached) $ac_c" 1>&6
10391 if test "$cross_compiling" = yes; then
10392 ol_cv_pthread_create_works=yes
10394 cat > conftest.$ac_ext <<EOF
10395 #line 10396 "configure"
10396 #include "confdefs.h"
10397 /* pthread test headers */
10398 #include <pthread.h>
10400 #define NULL (void*)0
10403 static void *task(p)
10406 return (void *) (p == NULL);
10410 int main(argc, argv)
10415 /* pthread test function */
10418 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10419 /* This system (e.g. AIX) defaults detached; must override */
10420 pthread_attr_t attr;
10422 status = pthread_attr_init(&attr);
10423 if( status ) exit( status );
10425 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10426 if( status ) exit( status );
10430 #if HAVE_PTHREADS_D4
10431 #define ATTR pthread_attr_default
10436 /* make sure pthread_create() isn't just a stub */
10437 status = pthread_create(&t, ATTR, task, NULL);
10438 if( status ) exit( status );
10440 /* make sure pthread_detach() isn't just a stub */
10441 #if HAVE_PTHREADS_D4
10442 status = pthread_detach( &t );
10444 status = pthread_detach( t );
10447 #ifdef HAVE_LINUX_THREADS
10448 pthread_kill_other_threads_np();
10456 if { (eval echo configure:10457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10458 ol_cv_pthread_create_works=yes
10460 echo "configure: failed program was:" >&5
10461 cat conftest.$ac_ext >&5
10463 ol_cv_pthread_create_works=no
10470 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10472 if test $ol_cv_pthread_create_works = no ; then
10473 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10476 if test $ol_with_yielding_select = auto ; then
10477 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10478 echo "configure:10479: checking if select yields when using pthreads" >&5
10479 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10483 if test "$cross_compiling" = yes; then
10484 ol_cv_pthread_select_yields=cross
10486 cat > conftest.$ac_ext <<EOF
10487 #line 10488 "configure"
10488 #include "confdefs.h"
10490 #include <sys/types.h>
10491 #include <sys/time.h>
10492 #include <unistd.h>
10493 #include <pthread.h>
10495 #define NULL (void*) 0
10498 static int fildes[2];
10500 static void *task(p)
10512 FD_SET(fildes[0], &rfds);
10514 /* we're not interested in any fds */
10515 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10522 exit(0); /* if we exit here, the select blocked the whole process */
10525 int main(argc, argv)
10531 /* create a pipe to select */
10532 if(pipe(&fildes[0])) {
10537 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10538 (void) pthread_setconcurrency(2);
10540 #ifdef HAVE_THR_SETCONCURRENCY
10541 /* Set Solaris LWP concurrency to 2 */
10542 thr_setconcurrency(2);
10546 #if HAVE_PTHREADS_D4
10547 pthread_create(&t, pthread_attr_default, task, NULL);
10549 pthread_create(&t, NULL, task, NULL);
10552 #if HAVE_SCHED_YIELD
10553 sched_yield(); /* make sure task runs first */
10555 #ifdef HAVE_PTHREAD_YIELD
10556 pthread_yield(); /* make sure task runs first */
10563 if { (eval echo configure:10564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10565 ol_cv_pthread_select_yields=no
10567 echo "configure: failed program was:" >&5
10568 cat conftest.$ac_ext >&5
10570 ol_cv_pthread_select_yields=yes
10577 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10579 if test $ol_cv_pthread_select_yields = cross ; then
10580 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10583 if test $ol_cv_pthread_select_yields = yes ; then
10584 ol_with_yielding_select=yes
10588 CPPFLAGS="$save_CPPFLAGS"
10591 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10595 if test $ol_with_threads = posix ; then
10596 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10600 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10601 -o $ol_with_threads = mach ; then
10603 for ac_hdr in mach/cthreads.h
10605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10607 echo "configure:10608: checking for $ac_hdr" >&5
10608 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10609 echo $ac_n "(cached) $ac_c" 1>&6
10611 cat > conftest.$ac_ext <<EOF
10612 #line 10613 "configure"
10613 #include "confdefs.h"
10616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10617 { (eval echo configure:10618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10619 if test -z "$ac_err"; then
10621 eval "ac_cv_header_$ac_safe=yes"
10624 echo "configure: failed program was:" >&5
10625 cat conftest.$ac_ext >&5
10627 eval "ac_cv_header_$ac_safe=no"
10631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10632 echo "$ac_t""yes" 1>&6
10633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10634 cat >> confdefs.h <<EOF
10635 #define $ac_tr_hdr 1
10639 echo "$ac_t""no" 1>&6
10643 if test $ac_cv_header_mach_cthreads_h = yes ; then
10644 ol_with_threads=found
10646 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10647 echo "configure:10648: checking for cthread_fork" >&5
10648 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 /* System header to define __stub macros and hopefully few prototypes,
10655 which can conflict with char cthread_fork(); below. */
10656 #include <assert.h>
10657 /* Override any gcc2 internal prototype to avoid an error. */
10658 /* We use char because int might match the return type of a gcc2
10659 builtin and then its argument prototype would still apply. */
10660 char cthread_fork();
10665 /* The GNU C library defines this for functions which it implements
10666 to always fail with ENOSYS. Some functions are actually named
10667 something starting with __ and the normal name is an alias. */
10668 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10676 if { (eval echo configure:10677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10678 eval "ac_cv_func_cthread_fork=yes"
10680 echo "configure: failed program was:" >&5
10681 cat conftest.$ac_ext >&5
10683 eval "ac_cv_func_cthread_fork=no"
10688 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10689 echo "$ac_t""yes" 1>&6
10690 ol_link_threads=yes
10692 echo "$ac_t""no" 1>&6
10696 if test $ol_link_threads = no ; then
10697 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10698 echo "configure:10699: checking for cthread_fork with -all_load" >&5
10699 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10700 echo $ac_n "(cached) $ac_c" 1>&6
10704 LIBS="-all_load $LIBS"
10705 cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10708 #include <mach/cthreads.h>
10711 cthread_fork((void *)0, (void *)0);
10715 if { (eval echo configure:10716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10717 ol_cv_cthread_all_load=yes
10719 echo "configure: failed program was:" >&5
10720 cat conftest.$ac_ext >&5
10722 ol_cv_cthread_all_load=no
10729 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10731 if test $ol_cv_cthread_all_load = yes ; then
10732 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10733 ol_link_threads=mach
10737 if test $ol_link_threads != no ; then
10738 : check for cthread specific functionality here
10739 cat >> confdefs.h <<\EOF
10740 #define HAVE_MACH_CTHREADS 1
10744 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10748 if test $ol_with_threads = mach ; then
10749 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10753 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10754 -o $ol_with_threads = pth ; then
10756 for ac_hdr in pth.h
10758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10760 echo "configure:10761: checking for $ac_hdr" >&5
10761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10762 echo $ac_n "(cached) $ac_c" 1>&6
10764 cat > conftest.$ac_ext <<EOF
10765 #line 10766 "configure"
10766 #include "confdefs.h"
10769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10770 { (eval echo configure:10771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10772 if test -z "$ac_err"; then
10774 eval "ac_cv_header_$ac_safe=yes"
10777 echo "configure: failed program was:" >&5
10778 cat conftest.$ac_ext >&5
10780 eval "ac_cv_header_$ac_safe=no"
10784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10785 echo "$ac_t""yes" 1>&6
10786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10787 cat >> confdefs.h <<EOF
10788 #define $ac_tr_hdr 1
10792 echo "$ac_t""no" 1>&6
10797 if test $ac_cv_header_pth_h = yes ; then
10798 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10799 echo "configure:10800: checking for pth_version in -lpth" >&5
10800 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10801 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10802 echo $ac_n "(cached) $ac_c" 1>&6
10804 ac_save_LIBS="$LIBS"
10806 cat > conftest.$ac_ext <<EOF
10807 #line 10808 "configure"
10808 #include "confdefs.h"
10809 /* Override any gcc2 internal prototype to avoid an error. */
10810 /* We use char because int might match the return type of a gcc2
10811 builtin and then its argument prototype would still apply. */
10812 char pth_version();
10818 if { (eval echo configure:10819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10820 eval "ac_cv_lib_$ac_lib_var=yes"
10822 echo "configure: failed program was:" >&5
10823 cat conftest.$ac_ext >&5
10825 eval "ac_cv_lib_$ac_lib_var=no"
10828 LIBS="$ac_save_LIBS"
10831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10832 echo "$ac_t""yes" 1>&6
10835 echo "$ac_t""no" 1>&6
10840 if test $have_pth = yes ; then
10841 cat >> confdefs.h <<\EOF
10842 #define HAVE_GNU_PTH 1
10845 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10846 ol_link_threads=pth
10848 if test $ol_with_yielding_select = auto ; then
10849 ol_with_yielding_select=yes
10855 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10856 -o $ol_with_threads = lwp ; then
10858 for ac_hdr in thread.h synch.h
10860 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10861 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10862 echo "configure:10863: checking for $ac_hdr" >&5
10863 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10871 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10872 { (eval echo configure:10873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10873 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10874 if test -z "$ac_err"; then
10876 eval "ac_cv_header_$ac_safe=yes"
10879 echo "configure: failed program was:" >&5
10880 cat conftest.$ac_ext >&5
10882 eval "ac_cv_header_$ac_safe=no"
10886 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10888 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10889 cat >> confdefs.h <<EOF
10890 #define $ac_tr_hdr 1
10894 echo "$ac_t""no" 1>&6
10898 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10899 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10900 echo "configure:10901: checking for thr_create in -lthread" >&5
10901 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10903 echo $ac_n "(cached) $ac_c" 1>&6
10905 ac_save_LIBS="$LIBS"
10906 LIBS="-lthread $LIBS"
10907 cat > conftest.$ac_ext <<EOF
10908 #line 10909 "configure"
10909 #include "confdefs.h"
10910 /* Override any gcc2 internal prototype to avoid an error. */
10911 /* We use char because int might match the return type of a gcc2
10912 builtin and then its argument prototype would still apply. */
10919 if { (eval echo configure:10920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10921 eval "ac_cv_lib_$ac_lib_var=yes"
10923 echo "configure: failed program was:" >&5
10924 cat conftest.$ac_ext >&5
10926 eval "ac_cv_lib_$ac_lib_var=no"
10929 LIBS="$ac_save_LIBS"
10932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10933 echo "$ac_t""yes" 1>&6
10936 echo "$ac_t""no" 1>&6
10941 if test $have_thr = yes ; then
10942 cat >> confdefs.h <<\EOF
10946 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10947 ol_link_threads=thr
10949 if test $ol_with_yielding_select = auto ; then
10950 ol_with_yielding_select=yes
10954 thr_setconcurrency \
10955 thr_getconcurrency \
10958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10959 echo "configure:10960: checking for $ac_func" >&5
10960 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10961 echo $ac_n "(cached) $ac_c" 1>&6
10963 cat > conftest.$ac_ext <<EOF
10964 #line 10965 "configure"
10965 #include "confdefs.h"
10966 /* System header to define __stub macros and hopefully few prototypes,
10967 which can conflict with char $ac_func(); below. */
10968 #include <assert.h>
10969 /* Override any gcc2 internal prototype to avoid an error. */
10970 /* We use char because int might match the return type of a gcc2
10971 builtin and then its argument prototype would still apply. */
10977 /* The GNU C library defines this for functions which it implements
10978 to always fail with ENOSYS. Some functions are actually named
10979 something starting with __ and the normal name is an alias. */
10980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10988 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10990 eval "ac_cv_func_$ac_func=yes"
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10995 eval "ac_cv_func_$ac_func=no"
11000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11001 echo "$ac_t""yes" 1>&6
11002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11003 cat >> confdefs.h <<EOF
11004 #define $ac_tr_func 1
11008 echo "$ac_t""no" 1>&6
11015 for ac_hdr in lwp/lwp.h
11017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11019 echo "configure:11020: checking for $ac_hdr" >&5
11020 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11021 echo $ac_n "(cached) $ac_c" 1>&6
11023 cat > conftest.$ac_ext <<EOF
11024 #line 11025 "configure"
11025 #include "confdefs.h"
11028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11029 { (eval echo configure:11030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11031 if test -z "$ac_err"; then
11033 eval "ac_cv_header_$ac_safe=yes"
11036 echo "configure: failed program was:" >&5
11037 cat conftest.$ac_ext >&5
11039 eval "ac_cv_header_$ac_safe=no"
11043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11044 echo "$ac_t""yes" 1>&6
11045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11046 cat >> confdefs.h <<EOF
11047 #define $ac_tr_hdr 1
11051 echo "$ac_t""no" 1>&6
11055 if test $ac_cv_header_lwp_lwp_h = yes ; then
11056 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11057 echo "configure:11058: checking for lwp_create in -llwp" >&5
11058 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11059 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11062 ac_save_LIBS="$LIBS"
11064 cat > conftest.$ac_ext <<EOF
11065 #line 11066 "configure"
11066 #include "confdefs.h"
11067 /* Override any gcc2 internal prototype to avoid an error. */
11068 /* We use char because int might match the return type of a gcc2
11069 builtin and then its argument prototype would still apply. */
11076 if { (eval echo configure:11077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11078 eval "ac_cv_lib_$ac_lib_var=yes"
11080 echo "configure: failed program was:" >&5
11081 cat conftest.$ac_ext >&5
11083 eval "ac_cv_lib_$ac_lib_var=no"
11086 LIBS="$ac_save_LIBS"
11089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11093 echo "$ac_t""no" 1>&6
11098 if test $have_lwp = yes ; then
11099 cat >> confdefs.h <<\EOF
11103 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11104 ol_link_threads=lwp
11106 if test $ol_with_yielding_select = auto ; then
11107 ol_with_yielding_select=no
11113 if test $ol_with_yielding_select = yes ; then
11114 cat >> confdefs.h <<\EOF
11115 #define HAVE_YIELDING_SELECT 1
11120 if test $ol_with_threads = manual ; then
11121 ol_link_threads=yes
11123 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11125 for ac_hdr in pthread.h sched.h
11127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11129 echo "configure:11130: checking for $ac_hdr" >&5
11130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11131 echo $ac_n "(cached) $ac_c" 1>&6
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11139 { (eval echo configure:11140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11141 if test -z "$ac_err"; then
11143 eval "ac_cv_header_$ac_safe=yes"
11146 echo "configure: failed program was:" >&5
11147 cat conftest.$ac_ext >&5
11149 eval "ac_cv_header_$ac_safe=no"
11153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11154 echo "$ac_t""yes" 1>&6
11155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11156 cat >> confdefs.h <<EOF
11157 #define $ac_tr_hdr 1
11161 echo "$ac_t""no" 1>&6
11165 for ac_func in sched_yield pthread_yield
11167 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11168 echo "configure:11169: checking for $ac_func" >&5
11169 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11170 echo $ac_n "(cached) $ac_c" 1>&6
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11175 /* System header to define __stub macros and hopefully few prototypes,
11176 which can conflict with char $ac_func(); below. */
11177 #include <assert.h>
11178 /* Override any gcc2 internal prototype to avoid an error. */
11179 /* We use char because int might match the return type of a gcc2
11180 builtin and then its argument prototype would still apply. */
11186 /* The GNU C library defines this for functions which it implements
11187 to always fail with ENOSYS. Some functions are actually named
11188 something starting with __ and the normal name is an alias. */
11189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11197 if { (eval echo configure:11198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11199 eval "ac_cv_func_$ac_func=yes"
11201 echo "configure: failed program was:" >&5
11202 cat conftest.$ac_ext >&5
11204 eval "ac_cv_func_$ac_func=no"
11209 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11210 echo "$ac_t""yes" 1>&6
11211 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11212 cat >> confdefs.h <<EOF
11213 #define $ac_tr_func 1
11217 echo "$ac_t""no" 1>&6
11222 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11223 echo "configure:11224: checking for LinuxThreads pthread.h" >&5
11224 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11225 echo $ac_n "(cached) $ac_c" 1>&6
11227 cat > conftest.$ac_ext <<EOF
11228 #line 11229 "configure"
11229 #include "confdefs.h"
11230 #include <pthread.h>
11232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11233 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11235 ol_cv_header_linux_threads=yes
11238 ol_cv_header_linux_threads=no
11245 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11246 if test $ol_cv_header_linux_threads = yes; then
11247 cat >> confdefs.h <<\EOF
11248 #define HAVE_LINUX_THREADS 1
11254 for ac_hdr in mach/cthreads.h
11256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11258 echo "configure:11259: checking for $ac_hdr" >&5
11259 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11268 { (eval echo configure:11269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11270 if test -z "$ac_err"; then
11272 eval "ac_cv_header_$ac_safe=yes"
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11278 eval "ac_cv_header_$ac_safe=no"
11282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11285 cat >> confdefs.h <<EOF
11286 #define $ac_tr_hdr 1
11290 echo "$ac_t""no" 1>&6
11294 for ac_hdr in lwp/lwp.h
11296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11298 echo "configure:11299: checking for $ac_hdr" >&5
11299 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11300 echo $ac_n "(cached) $ac_c" 1>&6
11302 cat > conftest.$ac_ext <<EOF
11303 #line 11304 "configure"
11304 #include "confdefs.h"
11307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11308 { (eval echo configure:11309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11310 if test -z "$ac_err"; then
11312 eval "ac_cv_header_$ac_safe=yes"
11315 echo "configure: failed program was:" >&5
11316 cat conftest.$ac_ext >&5
11318 eval "ac_cv_header_$ac_safe=no"
11322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11323 echo "$ac_t""yes" 1>&6
11324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11325 cat >> confdefs.h <<EOF
11326 #define $ac_tr_hdr 1
11330 echo "$ac_t""no" 1>&6
11334 for ac_hdr in thread.h synch.h
11336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11338 echo "configure:11339: checking for $ac_hdr" >&5
11339 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11348 { (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11350 if test -z "$ac_err"; then
11352 eval "ac_cv_header_$ac_safe=yes"
11355 echo "configure: failed program was:" >&5
11356 cat conftest.$ac_ext >&5
11358 eval "ac_cv_header_$ac_safe=no"
11362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11363 echo "$ac_t""yes" 1>&6
11364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11365 cat >> confdefs.h <<EOF
11366 #define $ac_tr_hdr 1
11370 echo "$ac_t""no" 1>&6
11376 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11377 cat >> confdefs.h <<\EOF
11378 #define REENTRANT 1
11381 cat >> confdefs.h <<\EOF
11382 #define _REENTRANT 1
11385 cat >> confdefs.h <<\EOF
11386 #define THREAD_SAFE 1
11389 cat >> confdefs.h <<\EOF
11390 #define _THREAD_SAFE 1
11393 cat >> confdefs.h <<\EOF
11394 #define THREADSAFE 1
11397 cat >> confdefs.h <<\EOF
11398 #define _THREADSAFE 1
11401 cat >> confdefs.h <<\EOF
11402 #define _SGI_MP_SOURCE 1
11406 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11407 echo "configure:11408: checking for thread specific errno" >&5
11408 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11412 cat > conftest.$ac_ext <<EOF
11413 #line 11414 "configure"
11414 #include "confdefs.h"
11420 if { (eval echo configure:11421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11422 ol_cv_errno_thread_specific=yes
11424 echo "configure: failed program was:" >&5
11425 cat conftest.$ac_ext >&5
11427 ol_cv_errno_thread_specific=no
11433 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11435 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11436 echo "configure:11437: checking for thread specific h_errno" >&5
11437 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11438 echo $ac_n "(cached) $ac_c" 1>&6
11441 cat > conftest.$ac_ext <<EOF
11442 #line 11443 "configure"
11443 #include "confdefs.h"
11449 if { (eval echo configure:11450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11451 ol_cv_h_errno_thread_specific=yes
11453 echo "configure: failed program was:" >&5
11454 cat conftest.$ac_ext >&5
11456 ol_cv_h_errno_thread_specific=no
11462 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11464 if test $ol_cv_errno_thread_specific != yes \
11465 -o $ol_cv_h_errno_thread_specific != yes ; then
11466 LIBS="$LTHREAD_LIBS $LIBS"
11472 if test $ol_link_threads = no ; then
11473 if test $ol_with_threads = yes ; then
11474 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11477 if test $ol_with_threads = auto ; then
11478 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11482 cat >> confdefs.h <<\EOF
11483 #define NO_THREADS 1
11489 if test $ol_link_threads != no ; then
11490 cat >> confdefs.h <<\EOF
11491 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11498 if test $ol_with_ldbm_api = auto \
11499 -o $ol_with_ldbm_api = berkeley \
11500 -o $ol_with_ldbm_api = bcompat ; then
11502 if test $ol_with_ldbm_api = bcompat; then \
11503 ol_cv_berkeley_db=no
11504 for ac_hdr in db_185.h db.h
11506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11508 echo "configure:11509: checking for $ac_hdr" >&5
11509 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11510 echo $ac_n "(cached) $ac_c" 1>&6
11512 cat > conftest.$ac_ext <<EOF
11513 #line 11514 "configure"
11514 #include "confdefs.h"
11517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11518 { (eval echo configure:11519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11520 if test -z "$ac_err"; then
11522 eval "ac_cv_header_$ac_safe=yes"
11525 echo "configure: failed program was:" >&5
11526 cat conftest.$ac_ext >&5
11528 eval "ac_cv_header_$ac_safe=no"
11532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11533 echo "$ac_t""yes" 1>&6
11534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11535 cat >> confdefs.h <<EOF
11536 #define $ac_tr_hdr 1
11540 echo "$ac_t""no" 1>&6
11544 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11545 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11546 echo "configure:11547: checking if Berkeley DB header compatibility" >&5
11547 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11548 echo $ac_n "(cached) $ac_c" 1>&6
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11556 # include <db_185.h>
11561 /* this check could be improved */
11562 #ifndef DB_VERSION_MAJOR
11563 # define DB_VERSION_MAJOR 1
11566 #if DB_VERSION_MAJOR == 1
11571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11572 egrep "__db_version_1" >/dev/null 2>&1; then
11574 ol_cv_header_db1=yes
11577 ol_cv_header_db1=no
11583 echo "$ac_t""$ol_cv_header_db1" 1>&6
11585 if test ol_cv_header_db1=yes ; then
11587 if test $ol_cv_lib_db = no ; then
11588 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11589 echo "configure:11590: checking for Berkeley DB link (default)" >&5
11590 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11591 echo $ac_n "(cached) $ac_c" 1>&6
11596 LIBS="$ol_DB_LIB $LIBS"
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11602 #ifdef HAVE_DB_185_H
11603 # include <db_185.h>
11608 #ifndef DB_VERSION_MAJOR
11609 # define DB_VERSION_MAJOR 1
11613 #define NULL ((void*)0)
11618 #if DB_VERSION_MAJOR > 2
11619 db_env_create( NULL, 0 );
11620 #elif DB_VERSION_MAJOR > 1
11621 db_appexit( NULL );
11623 (void) dbopen( NULL, 0, 0, 0, NULL);
11628 if { (eval echo configure:11629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11632 echo "configure: failed program was:" >&5
11633 cat conftest.$ac_ext >&5
11643 echo "$ac_t""$ol_cv_db_none" 1>&6
11645 if test $ol_cv_db_none = yes ; then
11650 if test $ol_cv_lib_db = no ; then
11651 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
11652 echo "configure:11653: checking for Berkeley DB link (-ldb)" >&5
11653 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
11654 echo $ac_n "(cached) $ac_c" 1>&6
11659 LIBS="$ol_DB_LIB $LIBS"
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11665 #ifdef HAVE_DB_185_H
11666 # include <db_185.h>
11671 #ifndef DB_VERSION_MAJOR
11672 # define DB_VERSION_MAJOR 1
11676 #define NULL ((void*)0)
11681 #if DB_VERSION_MAJOR > 2
11682 db_env_create( NULL, 0 );
11683 #elif DB_VERSION_MAJOR > 1
11684 db_appexit( NULL );
11686 (void) dbopen( NULL, 0, 0, 0, NULL);
11691 if { (eval echo configure:11692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11695 echo "configure: failed program was:" >&5
11696 cat conftest.$ac_ext >&5
11706 echo "$ac_t""$ol_cv_db_db" 1>&6
11708 if test $ol_cv_db_db = yes ; then
11713 if test $ol_cv_lib_db = no ; then
11714 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
11715 echo "configure:11716: checking for Berkeley DB link (-ldb3)" >&5
11716 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
11717 echo $ac_n "(cached) $ac_c" 1>&6
11722 LIBS="$ol_DB_LIB $LIBS"
11724 cat > conftest.$ac_ext <<EOF
11725 #line 11726 "configure"
11726 #include "confdefs.h"
11728 #ifdef HAVE_DB_185_H
11729 # include <db_185.h>
11734 #ifndef DB_VERSION_MAJOR
11735 # define DB_VERSION_MAJOR 1
11739 #define NULL ((void*)0)
11744 #if DB_VERSION_MAJOR > 2
11745 db_env_create( NULL, 0 );
11746 #elif DB_VERSION_MAJOR > 1
11747 db_appexit( NULL );
11749 (void) dbopen( NULL, 0, 0, 0, NULL);
11754 if { (eval echo configure:11755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11758 echo "configure: failed program was:" >&5
11759 cat conftest.$ac_ext >&5
11769 echo "$ac_t""$ol_cv_db_db3" 1>&6
11771 if test $ol_cv_db_db3 = yes ; then
11776 if test $ol_cv_lib_db = no ; then
11777 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
11778 echo "configure:11779: checking for Berkeley DB link (-ldb2)" >&5
11779 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
11780 echo $ac_n "(cached) $ac_c" 1>&6
11785 LIBS="$ol_DB_LIB $LIBS"
11787 cat > conftest.$ac_ext <<EOF
11788 #line 11789 "configure"
11789 #include "confdefs.h"
11791 #ifdef HAVE_DB_185_H
11792 # include <db_185.h>
11797 #ifndef DB_VERSION_MAJOR
11798 # define DB_VERSION_MAJOR 1
11802 #define NULL ((void*)0)
11807 #if DB_VERSION_MAJOR > 2
11808 db_env_create( NULL, 0 );
11809 #elif DB_VERSION_MAJOR > 1
11810 db_appexit( NULL );
11812 (void) dbopen( NULL, 0, 0, 0, NULL);
11817 if { (eval echo configure:11818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11832 echo "$ac_t""$ol_cv_db_db2" 1>&6
11834 if test $ol_cv_db_db2 = yes ; then
11839 if test $ol_cv_lib_db = no ; then
11840 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
11841 echo "configure:11842: checking for Berkeley DB link (-ldb1)" >&5
11842 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
11843 echo $ac_n "(cached) $ac_c" 1>&6
11848 LIBS="$ol_DB_LIB $LIBS"
11850 cat > conftest.$ac_ext <<EOF
11851 #line 11852 "configure"
11852 #include "confdefs.h"
11854 #ifdef HAVE_DB_185_H
11855 # include <db_185.h>
11860 #ifndef DB_VERSION_MAJOR
11861 # define DB_VERSION_MAJOR 1
11865 #define NULL ((void*)0)
11870 #if DB_VERSION_MAJOR > 2
11871 db_env_create( NULL, 0 );
11872 #elif DB_VERSION_MAJOR > 1
11873 db_appexit( NULL );
11875 (void) dbopen( NULL, 0, 0, 0, NULL);
11880 if { (eval echo configure:11881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 echo "configure: failed program was:" >&5
11885 cat conftest.$ac_ext >&5
11895 echo "$ac_t""$ol_cv_db_db1" 1>&6
11897 if test $ol_cv_db_db1 = yes ; then
11903 if test "$ol_cv_lib_db" != no ; then
11904 ol_cv_berkeley_db=yes
11910 ol_cv_berkeley_db=no
11913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11915 echo "configure:11916: checking for $ac_hdr" >&5
11916 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11917 echo $ac_n "(cached) $ac_c" 1>&6
11919 cat > conftest.$ac_ext <<EOF
11920 #line 11921 "configure"
11921 #include "confdefs.h"
11924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11925 { (eval echo configure:11926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11927 if test -z "$ac_err"; then
11929 eval "ac_cv_header_$ac_safe=yes"
11932 echo "configure: failed program was:" >&5
11933 cat conftest.$ac_ext >&5
11935 eval "ac_cv_header_$ac_safe=no"
11939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11940 echo "$ac_t""yes" 1>&6
11941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11942 cat >> confdefs.h <<EOF
11943 #define $ac_tr_hdr 1
11947 echo "$ac_t""no" 1>&6
11951 if test $ac_cv_header_db_h = yes; then
11953 if test $ol_cv_lib_db = no ; then
11954 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
11955 echo "configure:11956: checking for Berkeley DB link (default)" >&5
11956 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
11957 echo $ac_n "(cached) $ac_c" 1>&6
11962 LIBS="$ol_DB_LIB $LIBS"
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11968 #ifdef HAVE_DB_185_H
11969 # include <db_185.h>
11974 #ifndef DB_VERSION_MAJOR
11975 # define DB_VERSION_MAJOR 1
11979 #define NULL ((void*)0)
11984 #if DB_VERSION_MAJOR > 2
11985 db_env_create( NULL, 0 );
11986 #elif DB_VERSION_MAJOR > 1
11987 db_appexit( NULL );
11989 (void) dbopen( NULL, 0, 0, 0, NULL);
11994 if { (eval echo configure:11995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11998 echo "configure: failed program was:" >&5
11999 cat conftest.$ac_ext >&5
12009 echo "$ac_t""$ol_cv_db_none" 1>&6
12011 if test $ol_cv_db_none = yes ; then
12016 if test $ol_cv_lib_db = no ; then
12017 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12018 echo "configure:12019: checking for Berkeley DB link (-ldb)" >&5
12019 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12020 echo $ac_n "(cached) $ac_c" 1>&6
12025 LIBS="$ol_DB_LIB $LIBS"
12027 cat > conftest.$ac_ext <<EOF
12028 #line 12029 "configure"
12029 #include "confdefs.h"
12031 #ifdef HAVE_DB_185_H
12032 # include <db_185.h>
12037 #ifndef DB_VERSION_MAJOR
12038 # define DB_VERSION_MAJOR 1
12042 #define NULL ((void*)0)
12047 #if DB_VERSION_MAJOR > 2
12048 db_env_create( NULL, 0 );
12049 #elif DB_VERSION_MAJOR > 1
12050 db_appexit( NULL );
12052 (void) dbopen( NULL, 0, 0, 0, NULL);
12057 if { (eval echo configure:12058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12061 echo "configure: failed program was:" >&5
12062 cat conftest.$ac_ext >&5
12072 echo "$ac_t""$ol_cv_db_db" 1>&6
12074 if test $ol_cv_db_db = yes ; then
12079 if test $ol_cv_lib_db = no ; then
12080 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12081 echo "configure:12082: checking for Berkeley DB link (-ldb3)" >&5
12082 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12083 echo $ac_n "(cached) $ac_c" 1>&6
12088 LIBS="$ol_DB_LIB $LIBS"
12090 cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12094 #ifdef HAVE_DB_185_H
12095 # include <db_185.h>
12100 #ifndef DB_VERSION_MAJOR
12101 # define DB_VERSION_MAJOR 1
12105 #define NULL ((void*)0)
12110 #if DB_VERSION_MAJOR > 2
12111 db_env_create( NULL, 0 );
12112 #elif DB_VERSION_MAJOR > 1
12113 db_appexit( NULL );
12115 (void) dbopen( NULL, 0, 0, 0, NULL);
12120 if { (eval echo configure:12121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12124 echo "configure: failed program was:" >&5
12125 cat conftest.$ac_ext >&5
12135 echo "$ac_t""$ol_cv_db_db3" 1>&6
12137 if test $ol_cv_db_db3 = yes ; then
12142 if test $ol_cv_lib_db = no ; then
12143 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12144 echo "configure:12145: checking for Berkeley DB link (-ldb2)" >&5
12145 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12146 echo $ac_n "(cached) $ac_c" 1>&6
12151 LIBS="$ol_DB_LIB $LIBS"
12153 cat > conftest.$ac_ext <<EOF
12154 #line 12155 "configure"
12155 #include "confdefs.h"
12157 #ifdef HAVE_DB_185_H
12158 # include <db_185.h>
12163 #ifndef DB_VERSION_MAJOR
12164 # define DB_VERSION_MAJOR 1
12168 #define NULL ((void*)0)
12173 #if DB_VERSION_MAJOR > 2
12174 db_env_create( NULL, 0 );
12175 #elif DB_VERSION_MAJOR > 1
12176 db_appexit( NULL );
12178 (void) dbopen( NULL, 0, 0, 0, NULL);
12183 if { (eval echo configure:12184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12187 echo "configure: failed program was:" >&5
12188 cat conftest.$ac_ext >&5
12198 echo "$ac_t""$ol_cv_db_db2" 1>&6
12200 if test $ol_cv_db_db2 = yes ; then
12205 if test $ol_cv_lib_db = no ; then
12206 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12207 echo "configure:12208: checking for Berkeley DB link (-ldb1)" >&5
12208 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12209 echo $ac_n "(cached) $ac_c" 1>&6
12214 LIBS="$ol_DB_LIB $LIBS"
12216 cat > conftest.$ac_ext <<EOF
12217 #line 12218 "configure"
12218 #include "confdefs.h"
12220 #ifdef HAVE_DB_185_H
12221 # include <db_185.h>
12226 #ifndef DB_VERSION_MAJOR
12227 # define DB_VERSION_MAJOR 1
12231 #define NULL ((void*)0)
12236 #if DB_VERSION_MAJOR > 2
12237 db_env_create( NULL, 0 );
12238 #elif DB_VERSION_MAJOR > 1
12239 db_appexit( NULL );
12241 (void) dbopen( NULL, 0, 0, 0, NULL);
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12261 echo "$ac_t""$ol_cv_db_db1" 1>&6
12263 if test $ol_cv_db_db1 = yes ; then
12269 if test "$ol_cv_lib_db" != no ; then
12270 ol_cv_berkeley_db=yes
12271 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12272 echo "configure:12273: checking for Berkeley DB thread support" >&5
12273 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12274 echo $ac_n "(cached) $ac_c" 1>&6
12278 if test $ol_cv_lib_db != yes ; then
12279 LIBS="$ol_cv_lib_db"
12282 if test "$cross_compiling" = yes; then
12283 ol_cv_berkeley_db_thread=cross
12285 cat > conftest.$ac_ext <<EOF
12286 #line 12287 "configure"
12287 #include "confdefs.h"
12289 #ifdef HAVE_DB_185_H
12295 #define NULL ((void *)0)
12300 u_int32_t flags = DB_CREATE | DB_THREAD;
12303 #if DB_VERSION_MAJOR > 2
12304 DB_ENV *env = NULL;
12306 rc = db_env_create( &env, 0 );
12309 rc = env->open( env, NULL, NULL, flags, 0 );
12314 memset( &env, '\0', sizeof(env) );
12316 rc = db_appinit( NULL, NULL, &env, flags );
12319 db_appexit( &env );
12326 if { (eval echo configure:12327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12328 ol_cv_berkeley_db_thread=yes
12330 echo "configure: failed program was:" >&5
12331 cat conftest.$ac_ext >&5
12333 ol_cv_berkeley_db_thread=no
12341 if test $ol_cv_berkeley_db_thread != no ; then
12342 cat >> confdefs.h <<\EOF
12343 #define HAVE_BERKELEY_DB_THREAD 1
12350 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12356 if test $ol_cv_berkeley_db != no ; then
12357 cat >> confdefs.h <<\EOF
12358 #define HAVE_BERKELEY_DB 1
12362 ol_link_ldbm=berkeley
12363 ol_with_ldbm_api=db
12365 if test $ol_with_ldbm_type = hash ; then
12366 cat >> confdefs.h <<\EOF
12367 #define LDBM_USE_DBHASH 1
12371 cat >> confdefs.h <<\EOF
12372 #define LDBM_USE_DBBTREE 1
12377 if test $ol_cv_lib_db != yes ; then
12378 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12383 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12384 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12385 ol_with_ldbm_api=none
12388 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12389 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12390 echo "configure:12391: checking for MDBM library" >&5
12391 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12392 echo $ac_n "(cached) $ac_c" 1>&6
12395 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12396 echo "configure:12397: checking for mdbm_set_chain" >&5
12397 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12398 echo $ac_n "(cached) $ac_c" 1>&6
12400 cat > conftest.$ac_ext <<EOF
12401 #line 12402 "configure"
12402 #include "confdefs.h"
12403 /* System header to define __stub macros and hopefully few prototypes,
12404 which can conflict with char mdbm_set_chain(); below. */
12405 #include <assert.h>
12406 /* Override any gcc2 internal prototype to avoid an error. */
12407 /* We use char because int might match the return type of a gcc2
12408 builtin and then its argument prototype would still apply. */
12409 char mdbm_set_chain();
12414 /* The GNU C library defines this for functions which it implements
12415 to always fail with ENOSYS. Some functions are actually named
12416 something starting with __ and the normal name is an alias. */
12417 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12420 f = mdbm_set_chain;
12425 if { (eval echo configure:12426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12427 eval "ac_cv_func_mdbm_set_chain=yes"
12429 echo "configure: failed program was:" >&5
12430 cat conftest.$ac_ext >&5
12432 eval "ac_cv_func_mdbm_set_chain=no"
12437 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12438 echo "$ac_t""yes" 1>&6
12441 echo "$ac_t""no" 1>&6
12443 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12444 echo "configure:12445: checking for mdbm_set_chain in -lmdbm" >&5
12445 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12446 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12447 echo $ac_n "(cached) $ac_c" 1>&6
12449 ac_save_LIBS="$LIBS"
12450 LIBS="-lmdbm $LIBS"
12451 cat > conftest.$ac_ext <<EOF
12452 #line 12453 "configure"
12453 #include "confdefs.h"
12454 /* Override any gcc2 internal prototype to avoid an error. */
12455 /* We use char because int might match the return type of a gcc2
12456 builtin and then its argument prototype would still apply. */
12457 char mdbm_set_chain();
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12465 eval "ac_cv_lib_$ac_lib_var=yes"
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12470 eval "ac_cv_lib_$ac_lib_var=no"
12473 LIBS="$ac_save_LIBS"
12476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12477 echo "$ac_t""yes" 1>&6
12478 ol_cv_lib_mdbm=-lmdbm
12480 echo "$ac_t""no" 1>&6
12491 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12494 for ac_hdr in mdbm.h
12496 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12497 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12498 echo "configure:12499: checking for $ac_hdr" >&5
12499 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12500 echo $ac_n "(cached) $ac_c" 1>&6
12502 cat > conftest.$ac_ext <<EOF
12503 #line 12504 "configure"
12504 #include "confdefs.h"
12507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12508 { (eval echo configure:12509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12510 if test -z "$ac_err"; then
12512 eval "ac_cv_header_$ac_safe=yes"
12515 echo "configure: failed program was:" >&5
12516 cat conftest.$ac_ext >&5
12518 eval "ac_cv_header_$ac_safe=no"
12522 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12523 echo "$ac_t""yes" 1>&6
12524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12525 cat >> confdefs.h <<EOF
12526 #define $ac_tr_hdr 1
12530 echo "$ac_t""no" 1>&6
12534 echo $ac_n "checking for db""... $ac_c" 1>&6
12535 echo "configure:12536: checking for db" >&5
12536 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12537 echo $ac_n "(cached) $ac_c" 1>&6
12540 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12548 echo "$ac_t""$ol_cv_mdbm" 1>&6
12549 if test $ol_cv_mdbm = yes ; then
12550 cat >> confdefs.h <<\EOF
12551 #define HAVE_MDBM 1
12557 if test $ol_cv_mdbm = yes ; then
12559 ol_with_ldbm_api=mdbm
12560 if test $ol_cv_lib_mdbm != yes ; then
12561 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12566 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12567 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12568 echo "configure:12569: checking for GDBM library" >&5
12569 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12573 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12574 echo "configure:12575: checking for gdbm_open" >&5
12575 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12576 echo $ac_n "(cached) $ac_c" 1>&6
12578 cat > conftest.$ac_ext <<EOF
12579 #line 12580 "configure"
12580 #include "confdefs.h"
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char gdbm_open(); below. */
12583 #include <assert.h>
12584 /* Override any gcc2 internal prototype to avoid an error. */
12585 /* We use char because int might match the return type of a gcc2
12586 builtin and then its argument prototype would still apply. */
12592 /* The GNU C library defines this for functions which it implements
12593 to always fail with ENOSYS. Some functions are actually named
12594 something starting with __ and the normal name is an alias. */
12595 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605 eval "ac_cv_func_gdbm_open=yes"
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12610 eval "ac_cv_func_gdbm_open=no"
12615 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12616 echo "$ac_t""yes" 1>&6
12619 echo "$ac_t""no" 1>&6
12621 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12622 echo "configure:12623: checking for gdbm_open in -lgdbm" >&5
12623 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12624 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12625 echo $ac_n "(cached) $ac_c" 1>&6
12627 ac_save_LIBS="$LIBS"
12628 LIBS="-lgdbm $LIBS"
12629 cat > conftest.$ac_ext <<EOF
12630 #line 12631 "configure"
12631 #include "confdefs.h"
12632 /* Override any gcc2 internal prototype to avoid an error. */
12633 /* We use char because int might match the return type of a gcc2
12634 builtin and then its argument prototype would still apply. */
12641 if { (eval echo configure:12642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12643 eval "ac_cv_lib_$ac_lib_var=yes"
12645 echo "configure: failed program was:" >&5
12646 cat conftest.$ac_ext >&5
12648 eval "ac_cv_lib_$ac_lib_var=no"
12651 LIBS="$ac_save_LIBS"
12654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12655 echo "$ac_t""yes" 1>&6
12656 ol_cv_lib_gdbm=-lgdbm
12658 echo "$ac_t""no" 1>&6
12669 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12672 for ac_hdr in gdbm.h
12674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12676 echo "configure:12677: checking for $ac_hdr" >&5
12677 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12678 echo $ac_n "(cached) $ac_c" 1>&6
12680 cat > conftest.$ac_ext <<EOF
12681 #line 12682 "configure"
12682 #include "confdefs.h"
12685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12686 { (eval echo configure:12687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12688 if test -z "$ac_err"; then
12690 eval "ac_cv_header_$ac_safe=yes"
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12696 eval "ac_cv_header_$ac_safe=no"
12700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12701 echo "$ac_t""yes" 1>&6
12702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12703 cat >> confdefs.h <<EOF
12704 #define $ac_tr_hdr 1
12708 echo "$ac_t""no" 1>&6
12712 echo $ac_n "checking for db""... $ac_c" 1>&6
12713 echo "configure:12714: checking for db" >&5
12714 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
12718 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12726 echo "$ac_t""$ol_cv_gdbm" 1>&6
12727 if test $ol_cv_gdbm = yes ; then
12728 cat >> confdefs.h <<\EOF
12729 #define HAVE_GDBM 1
12735 if test $ol_cv_gdbm = yes ; then
12737 ol_with_ldbm_api=gdbm
12739 if test $ol_cv_lib_gdbm != yes ; then
12740 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12745 if test $ol_with_ldbm_api = ndbm ; then
12746 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12747 echo "configure:12748: checking for NDBM library" >&5
12748 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12749 echo $ac_n "(cached) $ac_c" 1>&6
12752 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12753 echo "configure:12754: checking for dbm_open" >&5
12754 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12755 echo $ac_n "(cached) $ac_c" 1>&6
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12760 /* System header to define __stub macros and hopefully few prototypes,
12761 which can conflict with char dbm_open(); below. */
12762 #include <assert.h>
12763 /* Override any gcc2 internal prototype to avoid an error. */
12764 /* We use char because int might match the return type of a gcc2
12765 builtin and then its argument prototype would still apply. */
12771 /* The GNU C library defines this for functions which it implements
12772 to always fail with ENOSYS. Some functions are actually named
12773 something starting with __ and the normal name is an alias. */
12774 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12782 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12784 eval "ac_cv_func_dbm_open=yes"
12786 echo "configure: failed program was:" >&5
12787 cat conftest.$ac_ext >&5
12789 eval "ac_cv_func_dbm_open=no"
12794 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12795 echo "$ac_t""yes" 1>&6
12798 echo "$ac_t""no" 1>&6
12800 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12801 echo "configure:12802: checking for dbm_open in -lndbm" >&5
12802 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12804 echo $ac_n "(cached) $ac_c" 1>&6
12806 ac_save_LIBS="$LIBS"
12807 LIBS="-lndbm $LIBS"
12808 cat > conftest.$ac_ext <<EOF
12809 #line 12810 "configure"
12810 #include "confdefs.h"
12811 /* Override any gcc2 internal prototype to avoid an error. */
12812 /* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12820 if { (eval echo configure:12821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12822 eval "ac_cv_lib_$ac_lib_var=yes"
12824 echo "configure: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12827 eval "ac_cv_lib_$ac_lib_var=no"
12830 LIBS="$ac_save_LIBS"
12833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12834 echo "$ac_t""yes" 1>&6
12835 ol_cv_lib_ndbm=-lndbm
12837 echo "$ac_t""no" 1>&6
12839 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12840 echo "configure:12841: checking for dbm_open in -ldbm" >&5
12841 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12842 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12843 echo $ac_n "(cached) $ac_c" 1>&6
12845 ac_save_LIBS="$LIBS"
12847 cat > conftest.$ac_ext <<EOF
12848 #line 12849 "configure"
12849 #include "confdefs.h"
12850 /* Override any gcc2 internal prototype to avoid an error. */
12851 /* We use char because int might match the return type of a gcc2
12852 builtin and then its argument prototype would still apply. */
12859 if { (eval echo configure:12860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12861 eval "ac_cv_lib_$ac_lib_var=yes"
12863 echo "configure: failed program was:" >&5
12864 cat conftest.$ac_ext >&5
12866 eval "ac_cv_lib_$ac_lib_var=no"
12869 LIBS="$ac_save_LIBS"
12872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12873 echo "$ac_t""yes" 1>&6
12874 ol_cv_lib_ndbm=-ldbm
12876 echo "$ac_t""no" 1>&6
12889 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12892 for ac_hdr in ndbm.h
12894 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12895 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12896 echo "configure:12897: checking for $ac_hdr" >&5
12897 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12900 cat > conftest.$ac_ext <<EOF
12901 #line 12902 "configure"
12902 #include "confdefs.h"
12905 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12906 { (eval echo configure:12907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12907 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12908 if test -z "$ac_err"; then
12910 eval "ac_cv_header_$ac_safe=yes"
12913 echo "configure: failed program was:" >&5
12914 cat conftest.$ac_ext >&5
12916 eval "ac_cv_header_$ac_safe=no"
12920 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12921 echo "$ac_t""yes" 1>&6
12922 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12923 cat >> confdefs.h <<EOF
12924 #define $ac_tr_hdr 1
12928 echo "$ac_t""no" 1>&6
12932 echo $ac_n "checking for db""... $ac_c" 1>&6
12933 echo "configure:12934: checking for db" >&5
12934 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12935 echo $ac_n "(cached) $ac_c" 1>&6
12938 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12946 echo "$ac_t""$ol_cv_ndbm" 1>&6
12947 if test $ol_cv_ndbm = yes ; then
12948 cat >> confdefs.h <<\EOF
12949 #define HAVE_NDBM 1
12955 if test $ol_cv_ndbm = yes ; then
12957 ol_with_ldbm_api=ndbm
12959 if test $ol_cv_lib_ndbm != yes ; then
12960 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12965 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12966 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12967 if test $ol_enable_ldbm = yes ; then
12968 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12971 echo "configure: warning: disabling LDBM" 1>&2
12975 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12976 LINK_BINS_DYNAMIC="yes"
12978 LINK_BINS_DYNAMIC="no"
12981 if test $ol_enable_wrappers != no ; then
12982 for ac_hdr in tcpd.h
12984 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12985 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12986 echo "configure:12987: checking for $ac_hdr" >&5
12987 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12988 echo $ac_n "(cached) $ac_c" 1>&6
12990 cat > conftest.$ac_ext <<EOF
12991 #line 12992 "configure"
12992 #include "confdefs.h"
12995 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12996 { (eval echo configure:12997: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12997 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12998 if test -z "$ac_err"; then
13000 eval "ac_cv_header_$ac_safe=yes"
13003 echo "configure: failed program was:" >&5
13004 cat conftest.$ac_ext >&5
13006 eval "ac_cv_header_$ac_safe=no"
13010 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13011 echo "$ac_t""yes" 1>&6
13012 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13013 cat >> confdefs.h <<EOF
13014 #define $ac_tr_hdr 1
13018 echo "$ac_t""no" 1>&6
13023 if test $ac_cv_header_tcpd_h != yes ; then
13026 cat > conftest.$ac_ext <<EOF
13027 #line 13028 "configure"
13028 #include "confdefs.h"
13030 int allow_severity = 0;
13031 int deny_severity = 0;
13037 if { (eval echo configure:13038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13041 echo "configure: failed program was:" >&5
13042 cat conftest.$ac_ext >&5
13049 if test $have_wrappers = yes ; then
13050 cat >> confdefs.h <<\EOF
13051 #define HAVE_TCPD 1
13056 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13057 echo "configure:13058: checking for main in -lnsl" >&5
13058 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13059 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13060 echo $ac_n "(cached) $ac_c" 1>&6
13062 ac_save_LIBS="$LIBS"
13064 cat > conftest.$ac_ext <<EOF
13065 #line 13066 "configure"
13066 #include "confdefs.h"
13072 if { (eval echo configure:13073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13074 eval "ac_cv_lib_$ac_lib_var=yes"
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13079 eval "ac_cv_lib_$ac_lib_var=no"
13082 LIBS="$ac_save_LIBS"
13085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13086 echo "$ac_t""yes" 1>&6
13087 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13088 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13089 cat >> confdefs.h <<EOF
13090 #define $ac_tr_lib 1
13096 echo "$ac_t""no" 1>&6
13100 echo "configure: warning: could not find -lwrap" 1>&2
13101 if test $ol_enable_wrappers = yes ; then
13102 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13105 echo "configure: warning: disabling wrappers support" 1>&2
13106 ol_enable_wrappers=no
13111 if test $ol_enable_syslog != no ; then
13112 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13113 echo "configure:13114: checking for openlog" >&5
13114 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 /* System header to define __stub macros and hopefully few prototypes,
13121 which can conflict with char openlog(); below. */
13122 #include <assert.h>
13123 /* Override any gcc2 internal prototype to avoid an error. */
13124 /* We use char because int might match the return type of a gcc2
13125 builtin and then its argument prototype would still apply. */
13131 /* The GNU C library defines this for functions which it implements
13132 to always fail with ENOSYS. Some functions are actually named
13133 something starting with __ and the normal name is an alias. */
13134 #if defined (__stub_openlog) || defined (__stub___openlog)
13142 if { (eval echo configure:13143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13144 eval "ac_cv_func_openlog=yes"
13146 echo "configure: failed program was:" >&5
13147 cat conftest.$ac_ext >&5
13149 eval "ac_cv_func_openlog=no"
13154 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13155 echo "$ac_t""yes" 1>&6
13158 echo "$ac_t""no" 1>&6
13161 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13162 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13164 ol_enable_syslog=$ac_cv_func_openlog
13167 if test $ol_enable_tcl != no ; then
13168 for ac_hdr in tcl.h
13170 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13171 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13172 echo "configure:13173: checking for $ac_hdr" >&5
13173 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13181 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13182 { (eval echo configure:13183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13183 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13184 if test -z "$ac_err"; then
13186 eval "ac_cv_header_$ac_safe=yes"
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13192 eval "ac_cv_header_$ac_safe=no"
13196 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13197 echo "$ac_t""yes" 1>&6
13198 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13199 cat >> confdefs.h <<EOF
13200 #define $ac_tr_hdr 1
13204 echo "$ac_t""no" 1>&6
13209 if test $ac_cv_header_tcl_h != yes ; then
13212 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13213 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13214 echo "configure:13215: checking for main in -l$lib" >&5
13215 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13216 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13217 echo $ac_n "(cached) $ac_c" 1>&6
13219 ac_save_LIBS="$LIBS"
13220 LIBS="-l$lib $LIBS"
13221 cat > conftest.$ac_ext <<EOF
13222 #line 13223 "configure"
13223 #include "confdefs.h"
13229 if { (eval echo configure:13230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13231 eval "ac_cv_lib_$ac_lib_var=yes"
13233 echo "configure: failed program was:" >&5
13234 cat conftest.$ac_ext >&5
13236 eval "ac_cv_lib_$ac_lib_var=no"
13239 LIBS="$ac_save_LIBS"
13242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13243 echo "$ac_t""yes" 1>&6
13245 if test x"$ol_with_tcl_module" = "xstatic" ; then
13246 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13248 MOD_TCL_LIB="-l${lib}"
13251 echo "$ac_t""no" 1>&6
13258 if test $have_tcl != yes ; then
13259 echo "configure: warning: could not find -ltcl" 1>&2
13260 if test $ol_enable_tcl = yes ; then
13261 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13269 for ac_hdr in termcap.h ncurses.h
13271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13273 echo "configure:13274: checking for $ac_hdr" >&5
13274 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13277 cat > conftest.$ac_ext <<EOF
13278 #line 13279 "configure"
13279 #include "confdefs.h"
13282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13283 { (eval echo configure:13284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13285 if test -z "$ac_err"; then
13287 eval "ac_cv_header_$ac_safe=yes"
13290 echo "configure: failed program was:" >&5
13291 cat conftest.$ac_ext >&5
13293 eval "ac_cv_header_$ac_safe=no"
13297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13298 echo "$ac_t""yes" 1>&6
13299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13300 cat >> confdefs.h <<EOF
13301 #define $ac_tr_hdr 1
13305 echo "$ac_t""no" 1>&6
13310 if test $ol_link_termcap = no ; then
13311 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13312 echo "configure:13313: checking for tputs in -ltermcap" >&5
13313 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13315 echo $ac_n "(cached) $ac_c" 1>&6
13317 ac_save_LIBS="$LIBS"
13318 LIBS="-ltermcap $LIBS"
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 /* Override any gcc2 internal prototype to avoid an error. */
13323 /* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13333 eval "ac_cv_lib_$ac_lib_var=yes"
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13338 eval "ac_cv_lib_$ac_lib_var=no"
13341 LIBS="$ac_save_LIBS"
13344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13345 echo "$ac_t""yes" 1>&6
13348 echo "$ac_t""no" 1>&6
13352 if test $have_termcap = yes ; then
13353 cat >> confdefs.h <<\EOF
13354 #define HAVE_TERMCAP 1
13357 ol_link_termcap=yes
13358 TERMCAP_LIBS=-ltermcap
13362 if test $ol_link_termcap = no ; then
13363 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13364 echo "configure:13365: checking for initscr in -lncurses" >&5
13365 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13366 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13369 ac_save_LIBS="$LIBS"
13370 LIBS="-lncurses $LIBS"
13371 cat > conftest.$ac_ext <<EOF
13372 #line 13373 "configure"
13373 #include "confdefs.h"
13374 /* Override any gcc2 internal prototype to avoid an error. */
13375 /* We use char because int might match the return type of a gcc2
13376 builtin and then its argument prototype would still apply. */
13383 if { (eval echo configure:13384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13385 eval "ac_cv_lib_$ac_lib_var=yes"
13387 echo "configure: failed program was:" >&5
13388 cat conftest.$ac_ext >&5
13390 eval "ac_cv_lib_$ac_lib_var=no"
13393 LIBS="$ac_save_LIBS"
13396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13397 echo "$ac_t""yes" 1>&6
13400 echo "$ac_t""no" 1>&6
13404 if test $have_ncurses = yes ; then
13405 cat >> confdefs.h <<\EOF
13406 #define HAVE_NCURSES 1
13409 ol_link_termcap=yes
13410 TERMCAP_LIBS=-lncurses
13414 if test $ol_link_termcap = no ; then
13415 cat >> confdefs.h <<\EOF
13416 #define NO_TERMCAP 1
13424 if test $ol_with_cyrus_sasl != no ; then
13425 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
13426 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
13427 echo "configure:13428: checking for sasl.h" >&5
13428 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13429 echo $ac_n "(cached) $ac_c" 1>&6
13431 cat > conftest.$ac_ext <<EOF
13432 #line 13433 "configure"
13433 #include "confdefs.h"
13436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13437 { (eval echo configure:13438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13439 if test -z "$ac_err"; then
13441 eval "ac_cv_header_$ac_safe=yes"
13444 echo "configure: failed program was:" >&5
13445 cat conftest.$ac_ext >&5
13447 eval "ac_cv_header_$ac_safe=no"
13451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13452 echo "$ac_t""yes" 1>&6
13455 echo "$ac_t""no" 1>&6
13459 if test $ac_cv_header_sasl_h = yes ; then
13460 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
13461 echo "configure:13462: checking for sasl_client_init in -lsasl" >&5
13462 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
13463 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13464 echo $ac_n "(cached) $ac_c" 1>&6
13466 ac_save_LIBS="$LIBS"
13467 LIBS="-lsasl $LIBS"
13468 cat > conftest.$ac_ext <<EOF
13469 #line 13470 "configure"
13470 #include "confdefs.h"
13471 /* Override any gcc2 internal prototype to avoid an error. */
13472 /* We use char because int might match the return type of a gcc2
13473 builtin and then its argument prototype would still apply. */
13474 char sasl_client_init();
13480 if { (eval echo configure:13481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13482 eval "ac_cv_lib_$ac_lib_var=yes"
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13487 eval "ac_cv_lib_$ac_lib_var=no"
13490 LIBS="$ac_save_LIBS"
13493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13494 echo "$ac_t""yes" 1>&6
13495 have_cyrus_sasl=yes
13497 echo "$ac_t""no" 1>&6
13502 if test $have_cyrus_sasl != no ; then
13504 cat >> confdefs.h <<\EOF
13505 #define HAVE_CYRUS_SASL 1
13512 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13513 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13517 if test $cross_compiling != yes ; then
13519 if test -r /dev/urandom ; then
13520 dev="/dev/urandom";
13521 elif test -r /idev/urandom ; then
13522 dev="/idev/urandom";
13523 elif test -r /dev/srandom ; then
13524 dev="/dev/srandom";
13525 elif test -r /dev/random ; then
13527 elif test -r /idev/random ; then
13528 dev="/idev/random";
13531 if test $dev != no ; then
13532 cat >> confdefs.h <<EOF
13533 #define URANDOM_DEVICE "$dev"
13540 if test $ol_with_fetch != no ; then
13542 LIBS="-lfetch -lcom_err $LIBS"
13543 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13544 echo "configure:13545: checking fetch(3) library" >&5
13545 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13546 echo $ac_n "(cached) $ac_c" 1>&6
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13553 #include <sys/param.h>
13557 struct url *u = fetchParseURL("file:///");
13560 if { (eval echo configure:13561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13562 ol_cv_lib_fetch=yes
13564 echo "configure: failed program was:" >&5
13565 cat conftest.$ac_ext >&5
13572 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13574 if test $ol_cv_lib_fetch != no ; then
13575 ol_link_fetch="-lfetch -lcom_err"
13576 cat >> confdefs.h <<\EOF
13577 #define HAVE_FETCH 1
13583 if test $ol_cv_lib_fetch != no ; then
13584 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13585 ol_link_fetch=freebsd
13587 elif test $ol_with_fetch != auto ; then
13588 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13592 ol_link_readline=no
13593 if test $ol_with_readline != no ; then
13594 for ac_hdr in readline/readline.h readline/history.h
13596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13598 echo "configure:13599: checking for $ac_hdr" >&5
13599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13602 cat > conftest.$ac_ext <<EOF
13603 #line 13604 "configure"
13604 #include "confdefs.h"
13607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13608 { (eval echo configure:13609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13610 if test -z "$ac_err"; then
13612 eval "ac_cv_header_$ac_safe=yes"
13615 echo "configure: failed program was:" >&5
13616 cat conftest.$ac_ext >&5
13618 eval "ac_cv_header_$ac_safe=no"
13622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13623 echo "$ac_t""yes" 1>&6
13624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13625 cat >> confdefs.h <<EOF
13626 #define $ac_tr_hdr 1
13630 echo "$ac_t""no" 1>&6
13635 if test $ac_cv_header_readline_readline_h = yes ; then
13637 LIBS="$TERMCAP_LIBS $LIBS"
13638 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13639 echo "configure:13640: checking for readline in -lreadline" >&5
13640 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13641 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13642 echo $ac_n "(cached) $ac_c" 1>&6
13644 ac_save_LIBS="$LIBS"
13645 LIBS="-lreadline $LIBS"
13646 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 /* Override any gcc2 internal prototype to avoid an error. */
13650 /* We use char because int might match the return type of a gcc2
13651 builtin and then its argument prototype would still apply. */
13658 if { (eval echo configure:13659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13660 eval "ac_cv_lib_$ac_lib_var=yes"
13662 echo "configure: failed program was:" >&5
13663 cat conftest.$ac_ext >&5
13665 eval "ac_cv_lib_$ac_lib_var=no"
13668 LIBS="$ac_save_LIBS"
13671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13672 echo "$ac_t""yes" 1>&6
13675 echo "$ac_t""no" 1>&6
13681 if test $have_readline = yes ; then
13682 ol_with_readline=found
13683 ol_link_readline=yes
13685 READLINE_LIBS="-lreadline"
13690 if test $ol_link_readline = yes ; then
13691 cat >> confdefs.h <<\EOF
13692 #define HAVE_READLINE 1
13698 if test $ol_enable_crypt != no ; then
13699 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13700 echo "configure:13701: checking for crypt" >&5
13701 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13702 echo $ac_n "(cached) $ac_c" 1>&6
13704 cat > conftest.$ac_ext <<EOF
13705 #line 13706 "configure"
13706 #include "confdefs.h"
13707 /* System header to define __stub macros and hopefully few prototypes,
13708 which can conflict with char crypt(); below. */
13709 #include <assert.h>
13710 /* Override any gcc2 internal prototype to avoid an error. */
13711 /* We use char because int might match the return type of a gcc2
13712 builtin and then its argument prototype would still apply. */
13718 /* The GNU C library defines this for functions which it implements
13719 to always fail with ENOSYS. Some functions are actually named
13720 something starting with __ and the normal name is an alias. */
13721 #if defined (__stub_crypt) || defined (__stub___crypt)
13729 if { (eval echo configure:13730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13731 eval "ac_cv_func_crypt=yes"
13733 echo "configure: failed program was:" >&5
13734 cat conftest.$ac_ext >&5
13736 eval "ac_cv_func_crypt=no"
13741 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13742 echo "$ac_t""yes" 1>&6
13745 echo "$ac_t""no" 1>&6
13747 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13748 echo "configure:13749: checking for crypt in -lcrypt" >&5
13749 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13750 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
13753 ac_save_LIBS="$LIBS"
13754 LIBS="-lcrypt $LIBS"
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 /* Override any gcc2 internal prototype to avoid an error. */
13759 /* We use char because int might match the return type of a gcc2
13760 builtin and then its argument prototype would still apply. */
13767 if { (eval echo configure:13768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13769 eval "ac_cv_lib_$ac_lib_var=yes"
13771 echo "configure: failed program was:" >&5
13772 cat conftest.$ac_ext >&5
13774 eval "ac_cv_lib_$ac_lib_var=no"
13777 LIBS="$ac_save_LIBS"
13780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13781 echo "$ac_t""yes" 1>&6
13782 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13785 echo "$ac_t""no" 1>&6
13792 if test $have_crypt = yes ; then
13793 cat >> confdefs.h <<\EOF
13794 #define HAVE_CRYPT 1
13798 echo "configure: warning: could not find crypt" 1>&2
13799 if test $ol_enable_crypt = yes ; then
13800 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13803 echo "configure: warning: disabling crypt support" 1>&2
13808 if test $ol_enable_proctitle != no ; then
13809 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13810 echo "configure:13811: checking for setproctitle" >&5
13811 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13812 echo $ac_n "(cached) $ac_c" 1>&6
13814 cat > conftest.$ac_ext <<EOF
13815 #line 13816 "configure"
13816 #include "confdefs.h"
13817 /* System header to define __stub macros and hopefully few prototypes,
13818 which can conflict with char setproctitle(); below. */
13819 #include <assert.h>
13820 /* Override any gcc2 internal prototype to avoid an error. */
13821 /* We use char because int might match the return type of a gcc2
13822 builtin and then its argument prototype would still apply. */
13823 char setproctitle();
13828 /* The GNU C library defines this for functions which it implements
13829 to always fail with ENOSYS. Some functions are actually named
13830 something starting with __ and the normal name is an alias. */
13831 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13839 if { (eval echo configure:13840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13841 eval "ac_cv_func_setproctitle=yes"
13843 echo "configure: failed program was:" >&5
13844 cat conftest.$ac_ext >&5
13846 eval "ac_cv_func_setproctitle=no"
13851 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13852 echo "$ac_t""yes" 1>&6
13853 have_setproctitle=yes
13855 echo "$ac_t""no" 1>&6
13857 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13858 echo "configure:13859: checking for setproctitle in -lutil" >&5
13859 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13860 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13861 echo $ac_n "(cached) $ac_c" 1>&6
13863 ac_save_LIBS="$LIBS"
13864 LIBS="-lutil $LIBS"
13865 cat > conftest.$ac_ext <<EOF
13866 #line 13867 "configure"
13867 #include "confdefs.h"
13868 /* Override any gcc2 internal prototype to avoid an error. */
13869 /* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13871 char setproctitle();
13877 if { (eval echo configure:13878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13879 eval "ac_cv_lib_$ac_lib_var=yes"
13881 echo "configure: failed program was:" >&5
13882 cat conftest.$ac_ext >&5
13884 eval "ac_cv_lib_$ac_lib_var=no"
13887 LIBS="$ac_save_LIBS"
13890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13891 echo "$ac_t""yes" 1>&6
13892 have_setproctitle=yes
13893 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13895 echo "$ac_t""no" 1>&6
13896 have_setproctitle=no
13897 LIBOBJS="$LIBOBJS setproctitle.o"
13898 LIBSRCS="$LIBSRCS setproctitle.c"
13904 if test $have_setproctitle = yes ; then
13905 cat >> confdefs.h <<\EOF
13906 #define HAVE_SETPROCTITLE 1
13912 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13913 echo "configure:13914: checking for ANSI C header files" >&5
13914 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13915 echo $ac_n "(cached) $ac_c" 1>&6
13917 cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 #include <stdlib.h>
13921 #include <stdarg.h>
13922 #include <string.h>
13925 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13926 { (eval echo configure:13927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13927 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13928 if test -z "$ac_err"; then
13930 ac_cv_header_stdc=yes
13933 echo "configure: failed program was:" >&5
13934 cat conftest.$ac_ext >&5
13936 ac_cv_header_stdc=no
13940 if test $ac_cv_header_stdc = yes; then
13941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13942 cat > conftest.$ac_ext <<EOF
13943 #line 13944 "configure"
13944 #include "confdefs.h"
13945 #include <string.h>
13947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13948 egrep "memchr" >/dev/null 2>&1; then
13952 ac_cv_header_stdc=no
13958 if test $ac_cv_header_stdc = yes; then
13959 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 #include <stdlib.h>
13965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13966 egrep "free" >/dev/null 2>&1; then
13970 ac_cv_header_stdc=no
13976 if test $ac_cv_header_stdc = yes; then
13977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13978 if test "$cross_compiling" = yes; then
13981 cat > conftest.$ac_ext <<EOF
13982 #line 13983 "configure"
13983 #include "confdefs.h"
13985 #if ((' ' & 0x0FF) == 0x020)
13986 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13987 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13989 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13990 || ('j' <= (c) && (c) <= 'r') \
13991 || ('s' <= (c) && (c) <= 'z'))
13992 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13995 int main () { int i; for (i = 0; i < 256; i++)
13996 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14000 if { (eval echo configure:14001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14004 echo "configure: failed program was:" >&5
14005 cat conftest.$ac_ext >&5
14007 ac_cv_header_stdc=no
14015 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14016 if test $ac_cv_header_stdc = yes; then
14017 cat >> confdefs.h <<\EOF
14018 #define STDC_HEADERS 1
14023 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14024 echo "configure:14025: checking for mode_t" >&5
14025 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14026 echo $ac_n "(cached) $ac_c" 1>&6
14028 cat > conftest.$ac_ext <<EOF
14029 #line 14030 "configure"
14030 #include "confdefs.h"
14031 #include <sys/types.h>
14033 #include <stdlib.h>
14034 #include <stddef.h>
14038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14039 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14041 eval "ac_cv_type_mode_t=yes"
14044 eval "ac_cv_type_mode_t=no"
14049 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14050 echo "$ac_t""yes" 1>&6
14052 echo "$ac_t""no" 1>&6
14053 cat >> confdefs.h <<EOF
14059 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14060 echo "configure:14061: checking for off_t" >&5
14061 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 #include <sys/types.h>
14069 #include <stdlib.h>
14070 #include <stddef.h>
14074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14075 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14077 eval "ac_cv_type_off_t=yes"
14080 eval "ac_cv_type_off_t=no"
14085 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14086 echo "$ac_t""yes" 1>&6
14088 echo "$ac_t""no" 1>&6
14089 cat >> confdefs.h <<EOF
14095 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14096 echo "configure:14097: checking for pid_t" >&5
14097 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14098 echo $ac_n "(cached) $ac_c" 1>&6
14100 cat > conftest.$ac_ext <<EOF
14101 #line 14102 "configure"
14102 #include "confdefs.h"
14103 #include <sys/types.h>
14105 #include <stdlib.h>
14106 #include <stddef.h>
14110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14111 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14113 eval "ac_cv_type_pid_t=yes"
14116 eval "ac_cv_type_pid_t=no"
14121 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14122 echo "$ac_t""yes" 1>&6
14124 echo "$ac_t""no" 1>&6
14125 cat >> confdefs.h <<EOF
14131 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14132 echo "configure:14133: checking for ptrdiff_t" >&5
14133 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14134 echo $ac_n "(cached) $ac_c" 1>&6
14136 cat > conftest.$ac_ext <<EOF
14137 #line 14138 "configure"
14138 #include "confdefs.h"
14139 #include <stddef.h>
14144 if { (eval echo configure:14145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14146 am_cv_type_ptrdiff_t=yes
14148 echo "configure: failed program was:" >&5
14149 cat conftest.$ac_ext >&5
14151 am_cv_type_ptrdiff_t=no
14156 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14157 if test $am_cv_type_ptrdiff_t = yes; then
14158 cat >> confdefs.h <<\EOF
14159 #define HAVE_PTRDIFF_T 1
14164 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14165 echo "configure:14166: checking return type of signal handlers" >&5
14166 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14167 echo $ac_n "(cached) $ac_c" 1>&6
14169 cat > conftest.$ac_ext <<EOF
14170 #line 14171 "configure"
14171 #include "confdefs.h"
14172 #include <sys/types.h>
14173 #include <signal.h>
14178 extern "C" void (*signal (int, void (*)(int)))(int);
14180 void (*signal ()) ();
14187 if { (eval echo configure:14188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14189 ac_cv_type_signal=void
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14194 ac_cv_type_signal=int
14199 echo "$ac_t""$ac_cv_type_signal" 1>&6
14200 cat >> confdefs.h <<EOF
14201 #define RETSIGTYPE $ac_cv_type_signal
14205 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14206 echo "configure:14207: checking for size_t" >&5
14207 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14208 echo $ac_n "(cached) $ac_c" 1>&6
14210 cat > conftest.$ac_ext <<EOF
14211 #line 14212 "configure"
14212 #include "confdefs.h"
14213 #include <sys/types.h>
14215 #include <stdlib.h>
14216 #include <stddef.h>
14220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14221 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14223 eval "ac_cv_type_size_t=yes"
14226 eval "ac_cv_type_size_t=no"
14231 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14232 echo "$ac_t""yes" 1>&6
14234 echo "$ac_t""no" 1>&6
14235 cat >> confdefs.h <<EOF
14236 #define size_t unsigned
14242 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14243 echo "configure:14244: checking for ssize_t" >&5
14244 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14245 echo $ac_n "(cached) $ac_c" 1>&6
14247 cat > conftest.$ac_ext <<EOF
14248 #line 14249 "configure"
14249 #include "confdefs.h"
14250 #include <sys/types.h>
14252 #include <stdlib.h>
14253 #include <stddef.h>
14257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14258 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14260 eval "ac_cv_type_ssize_t=yes"
14263 eval "ac_cv_type_ssize_t=no"
14268 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14269 echo "$ac_t""yes" 1>&6
14271 echo "$ac_t""no" 1>&6
14272 cat >> confdefs.h <<EOF
14273 #define ssize_t signed int
14278 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14279 echo "configure:14280: checking for caddr_t" >&5
14280 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14281 echo $ac_n "(cached) $ac_c" 1>&6
14283 cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 #include <sys/types.h>
14288 #include <stdlib.h>
14289 #include <stddef.h>
14293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14294 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14296 eval "ac_cv_type_caddr_t=yes"
14299 eval "ac_cv_type_caddr_t=no"
14304 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14305 echo "$ac_t""yes" 1>&6
14307 echo "$ac_t""no" 1>&6
14308 cat >> confdefs.h <<EOF
14309 #define caddr_t char *
14315 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14316 echo "configure:14317: checking for socklen_t" >&5
14317 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14318 echo $ac_n "(cached) $ac_c" 1>&6
14320 cat > conftest.$ac_ext <<EOF
14321 #line 14322 "configure"
14322 #include "confdefs.h"
14324 #ifdef HAVE_SYS_TYPES_H
14325 #include <sys/types.h>
14327 #ifdef HAVE_SYS_SOCKET_H
14328 #include <sys/socket.h>
14335 if { (eval echo configure:14336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14337 ol_cv_type_socklen_t=yes
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14342 ol_cv_type_socklen_t=no
14347 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
14348 if test $ol_cv_type_socklen_t = no; then
14349 cat >> confdefs.h <<\EOF
14350 #define socklen_t int
14355 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
14356 echo "configure:14357: checking for member st_blksize in aggregate type struct stat" >&5
14357 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
14358 echo $ac_n "(cached) $ac_c" 1>&6
14360 cat > conftest.$ac_ext <<EOF
14361 #line 14362 "configure"
14362 #include "confdefs.h"
14363 #include <sys/types.h>
14364 #include <sys/stat.h>
14366 struct stat foo; foo.st_blksize;
14369 if { (eval echo configure:14370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14371 ac_cv_c_struct_member_st_blksize=yes
14373 echo "configure: failed program was:" >&5
14374 cat conftest.$ac_ext >&5
14376 ac_cv_c_struct_member_st_blksize=no
14381 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
14382 st_blksize="$ac_cv_c_struct_member_st_blksize"
14383 if test $ac_cv_c_struct_member_st_blksize = yes; then
14384 cat >> confdefs.h <<\EOF
14385 #define HAVE_ST_BLKSIZE 1
14390 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
14391 echo "configure:14392: checking whether time.h and sys/time.h may both be included" >&5
14392 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14395 cat > conftest.$ac_ext <<EOF
14396 #line 14397 "configure"
14397 #include "confdefs.h"
14398 #include <sys/types.h>
14399 #include <sys/time.h>
14405 if { (eval echo configure:14406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14407 ac_cv_header_time=yes
14409 echo "configure: failed program was:" >&5
14410 cat conftest.$ac_ext >&5
14412 ac_cv_header_time=no
14417 echo "$ac_t""$ac_cv_header_time" 1>&6
14418 if test $ac_cv_header_time = yes; then
14419 cat >> confdefs.h <<\EOF
14420 #define TIME_WITH_SYS_TIME 1
14425 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
14426 echo "configure:14427: checking whether struct tm is in sys/time.h or time.h" >&5
14427 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14433 #include <sys/types.h>
14436 struct tm *tp; tp->tm_sec;
14439 if { (eval echo configure:14440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14441 ac_cv_struct_tm=time.h
14443 echo "configure: failed program was:" >&5
14444 cat conftest.$ac_ext >&5
14446 ac_cv_struct_tm=sys/time.h
14451 echo "$ac_t""$ac_cv_struct_tm" 1>&6
14452 if test $ac_cv_struct_tm = sys/time.h; then
14453 cat >> confdefs.h <<\EOF
14454 #define TM_IN_SYS_TIME 1
14459 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14460 echo "configure:14461: checking for uid_t in sys/types.h" >&5
14461 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
14462 echo $ac_n "(cached) $ac_c" 1>&6
14464 cat > conftest.$ac_ext <<EOF
14465 #line 14466 "configure"
14466 #include "confdefs.h"
14467 #include <sys/types.h>
14469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14470 egrep "uid_t" >/dev/null 2>&1; then
14472 ac_cv_type_uid_t=yes
14475 ac_cv_type_uid_t=no
14481 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14482 if test $ac_cv_type_uid_t = no; then
14483 cat >> confdefs.h <<\EOF
14487 cat >> confdefs.h <<\EOF
14493 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14494 echo "configure:14495: checking for sig_atomic_t" >&5
14495 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14496 echo $ac_n "(cached) $ac_c" 1>&6
14498 cat > conftest.$ac_ext <<EOF
14499 #line 14500 "configure"
14500 #include "confdefs.h"
14501 #include <signal.h>
14503 sig_atomic_t atomic;
14506 if { (eval echo configure:14507: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14508 ol_cv_type_sig_atomic_t=yes
14510 echo "configure: failed program was:" >&5
14511 cat conftest.$ac_ext >&5
14513 ol_cv_type_sig_atomic_t=no
14518 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14519 if test $ol_cv_type_sig_atomic_t = no; then
14520 cat >> confdefs.h <<\EOF
14521 #define sig_atomic_t int
14528 # test for pw_gecos in struct passwd
14529 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14530 echo "configure:14531: checking struct passwd for pw_gecos" >&5
14531 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14532 echo $ac_n "(cached) $ac_c" 1>&6
14535 cat > conftest.$ac_ext <<EOF
14536 #line 14537 "configure"
14537 #include "confdefs.h"
14542 pwd.pw_gecos = pwd.pw_name;
14546 if { (eval echo configure:14547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14548 ol_cv_struct_passwd_pw_gecos=yes
14550 echo "configure: failed program was:" >&5
14551 cat conftest.$ac_ext >&5
14553 ol_cv_struct_passwd_pw_gecos=no
14558 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14559 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14560 cat >> confdefs.h <<\EOF
14561 #define HAVE_PW_GECOS 1
14566 # test for pw_passwd in struct passwd
14567 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14568 echo "configure:14569: checking struct passwd for pw_passwd" >&5
14569 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14570 echo $ac_n "(cached) $ac_c" 1>&6
14573 cat > conftest.$ac_ext <<EOF
14574 #line 14575 "configure"
14575 #include "confdefs.h"
14580 pwd.pw_passwd = pwd.pw_name;
14584 if { (eval echo configure:14585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14586 ol_cv_struct_passwd_pw_passwd=yes
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14591 ol_cv_struct_passwd_pw_passwd=no
14596 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14597 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14598 cat >> confdefs.h <<\EOF
14599 #define HAVE_PW_PASSWD 1
14605 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14606 echo "configure:14607: checking if toupper() requires islower()" >&5
14607 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14608 echo $ac_n "(cached) $ac_c" 1>&6
14611 if test "$cross_compiling" = yes; then
14612 ol_cv_c_upper_lower=safe
14614 cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14621 if ('C' == toupper('C'))
14627 if { (eval echo configure:14628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14629 ol_cv_c_upper_lower=no
14631 echo "configure: failed program was:" >&5
14632 cat conftest.$ac_ext >&5
14634 ol_cv_c_upper_lower=yes
14641 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14642 if test $ol_cv_c_upper_lower != no ; then
14643 cat >> confdefs.h <<\EOF
14644 #define C_UPPER_LOWER 1
14649 echo $ac_n "checking for working const""... $ac_c" 1>&6
14650 echo "configure:14651: checking for working const" >&5
14651 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14652 echo $ac_n "(cached) $ac_c" 1>&6
14654 cat > conftest.$ac_ext <<EOF
14655 #line 14656 "configure"
14656 #include "confdefs.h"
14660 /* Ultrix mips cc rejects this. */
14661 typedef int charset[2]; const charset x;
14662 /* SunOS 4.1.1 cc rejects this. */
14663 char const *const *ccp;
14665 /* NEC SVR4.0.2 mips cc rejects this. */
14666 struct point {int x, y;};
14667 static struct point const zero = {0,0};
14668 /* AIX XL C 1.02.0.0 rejects this.
14669 It does not let you subtract one const X* pointer from another in an arm
14670 of an if-expression whose if-part is not a constant expression */
14671 const char *g = "string";
14672 ccp = &g + (g ? g-g : 0);
14673 /* HPUX 7.0 cc rejects these. */
14676 ccp = (char const *const *) p;
14677 { /* SCO 3.2v4 cc rejects this. */
14679 char const *s = 0 ? (char *) 0 : (char const *) 0;
14683 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14684 int x[] = {25, 17};
14685 const int *foo = &x[0];
14688 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14689 typedef const int *iptr;
14693 { /* AIX XL C 1.02.0.0 rejects this saying
14694 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14695 struct s { int j; const int *ap[3]; };
14696 struct s *b; b->j = 5;
14698 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14699 const int foo = 10;
14704 if { (eval echo configure:14705: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14708 echo "configure: failed program was:" >&5
14709 cat conftest.$ac_ext >&5
14716 echo "$ac_t""$ac_cv_c_const" 1>&6
14717 if test $ac_cv_c_const = no; then
14718 cat >> confdefs.h <<\EOF
14724 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14725 echo "configure:14726: checking if compiler understands volatile" >&5
14726 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14727 echo $ac_n "(cached) $ac_c" 1>&6
14729 cat > conftest.$ac_ext <<EOF
14730 #line 14731 "configure"
14731 #include "confdefs.h"
14734 volatile int a; int * volatile b = x ? &y : &z;
14735 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14739 if { (eval echo configure:14740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14741 ol_cv_c_volatile=yes
14743 echo "configure: failed program was:" >&5
14744 cat conftest.$ac_ext >&5
14746 ol_cv_c_volatile=no
14751 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14752 if test $ol_cv_c_volatile = yes; then
14755 cat >> confdefs.h <<\EOF
14762 if test $cross_compiling = yes ; then
14763 cat >> confdefs.h <<\EOF
14764 #define CROSS_COMPILING 1
14768 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14769 echo "configure:14770: checking whether byte ordering is bigendian" >&5
14770 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14771 echo $ac_n "(cached) $ac_c" 1>&6
14773 ac_cv_c_bigendian=unknown
14774 # See if sys/param.h defines the BYTE_ORDER macro.
14775 cat > conftest.$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14778 #include <sys/types.h>
14779 #include <sys/param.h>
14782 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14783 bogus endian macros
14787 if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14789 # It does; now see whether it defined to BIG_ENDIAN or not.
14790 cat > conftest.$ac_ext <<EOF
14791 #line 14792 "configure"
14792 #include "confdefs.h"
14793 #include <sys/types.h>
14794 #include <sys/param.h>
14797 #if BYTE_ORDER != BIG_ENDIAN
14802 if { (eval echo configure:14803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14804 ac_cv_c_bigendian=yes
14806 echo "configure: failed program was:" >&5
14807 cat conftest.$ac_ext >&5
14809 ac_cv_c_bigendian=no
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14817 if test $ac_cv_c_bigendian = unknown; then
14818 if test "$cross_compiling" = yes; then
14819 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14821 cat > conftest.$ac_ext <<EOF
14822 #line 14823 "configure"
14823 #include "confdefs.h"
14825 /* Are we little or big endian? From Harbison&Steele. */
14829 char c[sizeof (long)];
14832 exit (u.c[sizeof (long) - 1] == 1);
14835 if { (eval echo configure:14836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14837 ac_cv_c_bigendian=no
14839 echo "configure: failed program was:" >&5
14840 cat conftest.$ac_ext >&5
14842 ac_cv_c_bigendian=yes
14850 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14851 if test $ac_cv_c_bigendian = yes; then
14852 cat >> confdefs.h <<\EOF
14853 #define WORDS_BIGENDIAN 1
14860 echo $ac_n "checking size of short""... $ac_c" 1>&6
14861 echo "configure:14862: checking size of short" >&5
14862 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14865 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14866 cat > conftest.$ac_ext <<EOF
14867 #line 14868 "configure"
14868 #include "confdefs.h"
14869 #include "confdefs.h"
14870 #include <sys/types.h>
14874 switch (0) case 0: case (sizeof (short) == $ac_size):;
14877 if { (eval echo configure:14878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14879 ac_cv_sizeof_short=$ac_size
14881 echo "configure: failed program was:" >&5
14882 cat conftest.$ac_ext >&5
14885 if test x$ac_cv_sizeof_short != x ; then break; fi
14890 if test x$ac_cv_sizeof_short = x ; then
14891 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14893 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14894 cat >> confdefs.h <<EOF
14895 #define SIZEOF_SHORT $ac_cv_sizeof_short
14899 echo $ac_n "checking size of int""... $ac_c" 1>&6
14900 echo "configure:14901: checking size of int" >&5
14901 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14904 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14905 cat > conftest.$ac_ext <<EOF
14906 #line 14907 "configure"
14907 #include "confdefs.h"
14908 #include "confdefs.h"
14909 #include <sys/types.h>
14913 switch (0) case 0: case (sizeof (int) == $ac_size):;
14916 if { (eval echo configure:14917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14918 ac_cv_sizeof_int=$ac_size
14920 echo "configure: failed program was:" >&5
14921 cat conftest.$ac_ext >&5
14924 if test x$ac_cv_sizeof_int != x ; then break; fi
14929 if test x$ac_cv_sizeof_int = x ; then
14930 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14932 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14933 cat >> confdefs.h <<EOF
14934 #define SIZEOF_INT $ac_cv_sizeof_int
14938 echo $ac_n "checking size of long""... $ac_c" 1>&6
14939 echo "configure:14940: checking size of long" >&5
14940 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14941 echo $ac_n "(cached) $ac_c" 1>&6
14943 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14944 cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14947 #include "confdefs.h"
14948 #include <sys/types.h>
14952 switch (0) case 0: case (sizeof (long) == $ac_size):;
14955 if { (eval echo configure:14956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14957 ac_cv_sizeof_long=$ac_size
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14963 if test x$ac_cv_sizeof_long != x ; then break; fi
14968 if test x$ac_cv_sizeof_long = x ; then
14969 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14971 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14972 cat >> confdefs.h <<EOF
14973 #define SIZEOF_LONG $ac_cv_sizeof_long
14978 if test "$ac_cv_sizeof_int" -lt 4 ; then
14979 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14981 cat >> confdefs.h <<\EOF
14982 #define LBER_INT_T long
14986 cat >> confdefs.h <<\EOF
14987 #define LBER_INT_T int
14992 cat >> confdefs.h <<\EOF
14993 #define LBER_LEN_T long
14996 cat >> confdefs.h <<\EOF
14997 #define LBER_SOCKET_T int
15000 cat >> confdefs.h <<\EOF
15001 #define LBER_TAG_T long
15005 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15006 echo "configure:15007: checking for 8-bit clean memcmp" >&5
15007 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15008 echo $ac_n "(cached) $ac_c" 1>&6
15010 if test "$cross_compiling" = yes; then
15011 ac_cv_func_memcmp_clean=no
15013 cat > conftest.$ac_ext <<EOF
15014 #line 15015 "configure"
15015 #include "confdefs.h"
15019 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15020 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15024 if { (eval echo configure:15025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15026 ac_cv_func_memcmp_clean=yes
15028 echo "configure: failed program was:" >&5
15029 cat conftest.$ac_ext >&5
15031 ac_cv_func_memcmp_clean=no
15038 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15039 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15041 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15042 echo "configure:15043: checking for strftime" >&5
15043 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15044 echo $ac_n "(cached) $ac_c" 1>&6
15046 cat > conftest.$ac_ext <<EOF
15047 #line 15048 "configure"
15048 #include "confdefs.h"
15049 /* System header to define __stub macros and hopefully few prototypes,
15050 which can conflict with char strftime(); below. */
15051 #include <assert.h>
15052 /* Override any gcc2 internal prototype to avoid an error. */
15053 /* We use char because int might match the return type of a gcc2
15054 builtin and then its argument prototype would still apply. */
15060 /* The GNU C library defines this for functions which it implements
15061 to always fail with ENOSYS. Some functions are actually named
15062 something starting with __ and the normal name is an alias. */
15063 #if defined (__stub_strftime) || defined (__stub___strftime)
15071 if { (eval echo configure:15072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15073 eval "ac_cv_func_strftime=yes"
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15078 eval "ac_cv_func_strftime=no"
15083 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15084 echo "$ac_t""yes" 1>&6
15085 cat >> confdefs.h <<\EOF
15086 #define HAVE_STRFTIME 1
15090 echo "$ac_t""no" 1>&6
15091 # strftime is in -lintl on SCO UNIX.
15092 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15093 echo "configure:15094: checking for strftime in -lintl" >&5
15094 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15095 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15096 echo $ac_n "(cached) $ac_c" 1>&6
15098 ac_save_LIBS="$LIBS"
15099 LIBS="-lintl $LIBS"
15100 cat > conftest.$ac_ext <<EOF
15101 #line 15102 "configure"
15102 #include "confdefs.h"
15103 /* Override any gcc2 internal prototype to avoid an error. */
15104 /* We use char because int might match the return type of a gcc2
15105 builtin and then its argument prototype would still apply. */
15112 if { (eval echo configure:15113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15114 eval "ac_cv_lib_$ac_lib_var=yes"
15116 echo "configure: failed program was:" >&5
15117 cat conftest.$ac_ext >&5
15119 eval "ac_cv_lib_$ac_lib_var=no"
15122 LIBS="$ac_save_LIBS"
15125 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15126 echo "$ac_t""yes" 1>&6
15127 cat >> confdefs.h <<\EOF
15128 #define HAVE_STRFTIME 1
15131 LIBS="-lintl $LIBS"
15133 echo "$ac_t""no" 1>&6
15139 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15140 echo "configure:15141: checking for inet_aton()" >&5
15141 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15142 echo $ac_n "(cached) $ac_c" 1>&6
15144 cat > conftest.$ac_ext <<EOF
15145 #line 15146 "configure"
15146 #include "confdefs.h"
15148 #ifdef HAVE_SYS_TYPES_H
15149 # include <sys/types.h>
15151 #ifdef HAVE_SYS_SOCKET_H
15152 # include <sys/socket.h>
15153 # ifdef HAVE_SYS_SELECT_H
15154 # include <sys/select.h>
15156 # include <netinet/in.h>
15157 # ifdef HAVE_ARPA_INET_H
15158 # include <arpa/inet.h>
15164 int rc = inet_aton( "255.255.255.255", &in );
15167 if { (eval echo configure:15168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15169 ol_cv_func_inet_aton=yes
15171 echo "configure: failed program was:" >&5
15172 cat conftest.$ac_ext >&5
15174 ol_cv_func_inet_aton=no
15179 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15180 if test $ol_cv_func_inet_aton != no; then
15181 cat >> confdefs.h <<\EOF
15182 #define HAVE_INET_ATON 1
15188 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15189 echo "configure:15190: checking for _spawnlp" >&5
15190 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15191 echo $ac_n "(cached) $ac_c" 1>&6
15193 cat > conftest.$ac_ext <<EOF
15194 #line 15195 "configure"
15195 #include "confdefs.h"
15196 /* System header to define __stub macros and hopefully few prototypes,
15197 which can conflict with char _spawnlp(); below. */
15198 #include <assert.h>
15199 /* Override any gcc2 internal prototype to avoid an error. */
15200 /* We use char because int might match the return type of a gcc2
15201 builtin and then its argument prototype would still apply. */
15207 /* The GNU C library defines this for functions which it implements
15208 to always fail with ENOSYS. Some functions are actually named
15209 something starting with __ and the normal name is an alias. */
15210 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15218 if { (eval echo configure:15219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15220 eval "ac_cv_func__spawnlp=yes"
15222 echo "configure: failed program was:" >&5
15223 cat conftest.$ac_ext >&5
15225 eval "ac_cv_func__spawnlp=no"
15230 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15231 echo "$ac_t""yes" 1>&6
15232 cat >> confdefs.h <<\EOF
15233 #define HAVE_SPAWNLP 1
15237 echo "$ac_t""no" 1>&6
15241 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15242 echo "configure:15243: checking for _snprintf" >&5
15243 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15244 echo $ac_n "(cached) $ac_c" 1>&6
15246 cat > conftest.$ac_ext <<EOF
15247 #line 15248 "configure"
15248 #include "confdefs.h"
15249 /* System header to define __stub macros and hopefully few prototypes,
15250 which can conflict with char _snprintf(); below. */
15251 #include <assert.h>
15252 /* Override any gcc2 internal prototype to avoid an error. */
15253 /* We use char because int might match the return type of a gcc2
15254 builtin and then its argument prototype would still apply. */
15260 /* The GNU C library defines this for functions which it implements
15261 to always fail with ENOSYS. Some functions are actually named
15262 something starting with __ and the normal name is an alias. */
15263 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15271 if { (eval echo configure:15272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15273 eval "ac_cv_func__snprintf=yes"
15275 echo "configure: failed program was:" >&5
15276 cat conftest.$ac_ext >&5
15278 eval "ac_cv_func__snprintf=no"
15283 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15284 echo "$ac_t""yes" 1>&6
15285 ac_cv_func_snprintf=yes
15286 cat >> confdefs.h <<\EOF
15287 #define snprintf _snprintf
15292 echo "$ac_t""no" 1>&6
15296 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15297 echo "configure:15298: checking for _vsnprintf" >&5
15298 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15299 echo $ac_n "(cached) $ac_c" 1>&6
15301 cat > conftest.$ac_ext <<EOF
15302 #line 15303 "configure"
15303 #include "confdefs.h"
15304 /* System header to define __stub macros and hopefully few prototypes,
15305 which can conflict with char _vsnprintf(); below. */
15306 #include <assert.h>
15307 /* Override any gcc2 internal prototype to avoid an error. */
15308 /* We use char because int might match the return type of a gcc2
15309 builtin and then its argument prototype would still apply. */
15315 /* The GNU C library defines this for functions which it implements
15316 to always fail with ENOSYS. Some functions are actually named
15317 something starting with __ and the normal name is an alias. */
15318 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15326 if { (eval echo configure:15327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15328 eval "ac_cv_func__vsnprintf=yes"
15330 echo "configure: failed program was:" >&5
15331 cat conftest.$ac_ext >&5
15333 eval "ac_cv_func__vsnprintf=no"
15338 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15339 echo "$ac_t""yes" 1>&6
15340 ac_cv_func_vsnprintf=yes
15341 cat >> confdefs.h <<\EOF
15342 #define vsnprintf _vsnprintf
15347 echo "$ac_t""no" 1>&6
15351 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15352 echo "configure:15353: checking for vprintf" >&5
15353 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
15354 echo $ac_n "(cached) $ac_c" 1>&6
15356 cat > conftest.$ac_ext <<EOF
15357 #line 15358 "configure"
15358 #include "confdefs.h"
15359 /* System header to define __stub macros and hopefully few prototypes,
15360 which can conflict with char vprintf(); below. */
15361 #include <assert.h>
15362 /* Override any gcc2 internal prototype to avoid an error. */
15363 /* We use char because int might match the return type of a gcc2
15364 builtin and then its argument prototype would still apply. */
15370 /* The GNU C library defines this for functions which it implements
15371 to always fail with ENOSYS. Some functions are actually named
15372 something starting with __ and the normal name is an alias. */
15373 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15381 if { (eval echo configure:15382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15383 eval "ac_cv_func_vprintf=yes"
15385 echo "configure: failed program was:" >&5
15386 cat conftest.$ac_ext >&5
15388 eval "ac_cv_func_vprintf=no"
15393 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15394 echo "$ac_t""yes" 1>&6
15395 cat >> confdefs.h <<\EOF
15396 #define HAVE_VPRINTF 1
15400 echo "$ac_t""no" 1>&6
15403 if test "$ac_cv_func_vprintf" != yes; then
15404 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15405 echo "configure:15406: checking for _doprnt" >&5
15406 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
15407 echo $ac_n "(cached) $ac_c" 1>&6
15409 cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 /* System header to define __stub macros and hopefully few prototypes,
15413 which can conflict with char _doprnt(); below. */
15414 #include <assert.h>
15415 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15423 /* The GNU C library defines this for functions which it implements
15424 to always fail with ENOSYS. Some functions are actually named
15425 something starting with __ and the normal name is an alias. */
15426 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15434 if { (eval echo configure:15435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15436 eval "ac_cv_func__doprnt=yes"
15438 echo "configure: failed program was:" >&5
15439 cat conftest.$ac_ext >&5
15441 eval "ac_cv_func__doprnt=no"
15446 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15447 echo "$ac_t""yes" 1>&6
15448 cat >> confdefs.h <<\EOF
15449 #define HAVE_DOPRNT 1
15453 echo "$ac_t""no" 1>&6
15459 if test $ac_cv_func_vprintf = yes ; then
15460 for ac_func in vsnprintf vsprintf
15462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15463 echo "configure:15464: checking for $ac_func" >&5
15464 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15467 cat > conftest.$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15470 /* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char $ac_func(); below. */
15472 #include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error. */
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15481 /* The GNU C library defines this for functions which it implements
15482 to always fail with ENOSYS. Some functions are actually named
15483 something starting with __ and the normal name is an alias. */
15484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15492 if { (eval echo configure:15493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15494 eval "ac_cv_func_$ac_func=yes"
15496 echo "configure: failed program was:" >&5
15497 cat conftest.$ac_ext >&5
15499 eval "ac_cv_func_$ac_func=no"
15504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15505 echo "$ac_t""yes" 1>&6
15506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15507 cat >> confdefs.h <<EOF
15508 #define $ac_tr_func 1
15512 echo "$ac_t""no" 1>&6
15570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15571 echo "configure:15572: checking for $ac_func" >&5
15572 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15573 echo $ac_n "(cached) $ac_c" 1>&6
15575 cat > conftest.$ac_ext <<EOF
15576 #line 15577 "configure"
15577 #include "confdefs.h"
15578 /* System header to define __stub macros and hopefully few prototypes,
15579 which can conflict with char $ac_func(); below. */
15580 #include <assert.h>
15581 /* Override any gcc2 internal prototype to avoid an error. */
15582 /* We use char because int might match the return type of a gcc2
15583 builtin and then its argument prototype would still apply. */
15589 /* The GNU C library defines this for functions which it implements
15590 to always fail with ENOSYS. Some functions are actually named
15591 something starting with __ and the normal name is an alias. */
15592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15600 if { (eval echo configure:15601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15602 eval "ac_cv_func_$ac_func=yes"
15604 echo "configure: failed program was:" >&5
15605 cat conftest.$ac_ext >&5
15607 eval "ac_cv_func_$ac_func=no"
15612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15613 echo "$ac_t""yes" 1>&6
15614 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15615 cat >> confdefs.h <<EOF
15616 #define $ac_tr_func 1
15620 echo "$ac_t""no" 1>&6
15625 for ac_func in getopt tempnam
15627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15628 echo "configure:15629: checking for $ac_func" >&5
15629 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15630 echo $ac_n "(cached) $ac_c" 1>&6
15632 cat > conftest.$ac_ext <<EOF
15633 #line 15634 "configure"
15634 #include "confdefs.h"
15635 /* System header to define __stub macros and hopefully few prototypes,
15636 which can conflict with char $ac_func(); below. */
15637 #include <assert.h>
15638 /* Override any gcc2 internal prototype to avoid an error. */
15639 /* We use char because int might match the return type of a gcc2
15640 builtin and then its argument prototype would still apply. */
15646 /* The GNU C library defines this for functions which it implements
15647 to always fail with ENOSYS. Some functions are actually named
15648 something starting with __ and the normal name is an alias. */
15649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15657 if { (eval echo configure:15658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15659 eval "ac_cv_func_$ac_func=yes"
15661 echo "configure: failed program was:" >&5
15662 cat conftest.$ac_ext >&5
15664 eval "ac_cv_func_$ac_func=no"
15669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15670 echo "$ac_t""yes" 1>&6
15671 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15672 cat >> confdefs.h <<EOF
15673 #define $ac_tr_func 1
15677 echo "$ac_t""no" 1>&6
15678 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15684 if test "$ac_cv_func_getopt" != yes; then
15685 LIBSRCS="$LIBSRCS getopt.c"
15688 if test "$ac_cv_func_tempnam" != yes; then
15689 LIBSRCS="$LIBSRCS tempnam.c"
15692 # Check Configuration
15693 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15694 echo "configure:15695: checking declaration of sys_errlist" >&5
15695 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
15696 echo $ac_n "(cached) $ac_c" 1>&6
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15704 #include <sys/types.h>
15707 #include <stdlib.h>
15710 char *c = (char *) *sys_errlist
15713 if { (eval echo configure:15714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15715 ol_cv_dcl_sys_errlist=yes
15716 ol_cv_have_sys_errlist=yes
15718 echo "configure: failed program was:" >&5
15719 cat conftest.$ac_ext >&5
15721 ol_cv_dcl_sys_errlist=no
15726 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15728 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15729 if test $ol_cv_dcl_sys_errlist = no ; then
15730 cat >> confdefs.h <<\EOF
15731 #define DECL_SYS_ERRLIST 1
15735 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15736 echo "configure:15737: checking existence of sys_errlist" >&5
15737 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15738 echo $ac_n "(cached) $ac_c" 1>&6
15741 cat > conftest.$ac_ext <<EOF
15742 #line 15743 "configure"
15743 #include "confdefs.h"
15746 char *c = (char *) *sys_errlist
15749 if { (eval echo configure:15750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15751 ol_cv_have_sys_errlist=yes
15753 echo "configure: failed program was:" >&5
15754 cat conftest.$ac_ext >&5
15756 ol_cv_have_sys_errlist=no
15761 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15763 if test $ol_cv_have_sys_errlist = yes ; then
15764 cat >> confdefs.h <<\EOF
15765 #define HAVE_SYS_ERRLIST 1
15772 if test "$ol_enable_debug" != no ; then
15773 cat >> confdefs.h <<\EOF
15774 #define LDAP_DEBUG 1
15778 if test "$ol_enable_syslog" = yes ; then
15779 cat >> confdefs.h <<\EOF
15780 #define LDAP_SYSLOG 1
15784 if test "$ol_enable_libui" = yes ; then
15785 cat >> confdefs.h <<\EOF
15786 #define LDAP_LIBUI 1
15790 if test "$ol_enable_cache" = no ; then
15791 cat >> confdefs.h <<\EOF
15792 #define LDAP_NOCACHE 1
15796 if test "$ol_link_kbind" != no ; then
15797 cat >> confdefs.h <<\EOF
15798 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15802 if test "$ol_enable_proctitle" != no ; then
15803 cat >> confdefs.h <<\EOF
15804 #define LDAP_PROCTITLE 1
15808 if test "$ol_enable_referrals" != no ; then
15809 cat >> confdefs.h <<\EOF
15810 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15814 if test "$ol_enable_cldap" != no ; then
15815 cat >> confdefs.h <<\EOF
15816 #define LDAP_CONNECTIONLESS 1
15820 if test "$ol_enable_unix" != no; then
15821 cat >> confdefs.h <<\EOF
15822 #define LDAP_PF_UNIX 1
15826 if test "$ol_enable_ipv6" != no; then
15827 cat >> confdefs.h <<\EOF
15828 #define LDAP_PF_INET6 1
15832 if test "$ol_enable_cleartext" != no ; then
15833 cat >> confdefs.h <<\EOF
15834 #define SLAPD_CLEARTEXT 1
15838 if test "$ol_enable_crypt" != no ; then
15839 cat >> confdefs.h <<\EOF
15840 #define SLAPD_CRYPT 1
15844 if test "$ol_link_kpasswd" != no ; then
15845 cat >> confdefs.h <<\EOF
15846 #define SLAPD_KPASSWD 1
15850 if test "$ol_link_spasswd" != no ; then
15851 cat >> confdefs.h <<\EOF
15852 #define SLAPD_SPASSWD 1
15856 if test "$ol_enable_multimaster" != no ; then
15857 cat >> confdefs.h <<\EOF
15858 #define SLAPD_MULTIMASTER 1
15862 if test "$ol_enable_phonetic" != no ; then
15863 cat >> confdefs.h <<\EOF
15864 #define SLAPD_PHONETIC 1
15868 if test "$ol_enable_rlookups" != no ; then
15869 cat >> confdefs.h <<\EOF
15870 #define SLAPD_RLOOKUPS 1
15874 if test "$ol_enable_aci" != no ; then
15875 cat >> confdefs.h <<\EOF
15876 #define SLAPD_ACI_ENABLED 1
15881 if test "$ol_link_modules" != no ; then
15882 cat >> confdefs.h <<\EOF
15883 #define SLAPD_MODULES 1
15887 SLAPD_MODULES_LDFLAGS="-dlopen self"
15890 if test "$ol_link_dnssrv" != no ; then
15891 cat >> confdefs.h <<\EOF
15892 #define SLAPD_DNSSRV 1
15897 if test "$ol_with_dnssrv_module" != static ; then
15898 cat >> confdefs.h <<\EOF
15899 #define SLAPD_DNSSRV_DYNAMIC 1
15903 BUILD_DNSSRV_DYNAMIC=shared
15904 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
15908 if test "$ol_enable_ldap" != no ; then
15909 cat >> confdefs.h <<\EOF
15910 #define SLAPD_LDAP 1
15915 if test "$ol_with_ldap_module" != static ; then
15916 cat >> confdefs.h <<\EOF
15917 #define SLAPD_LDAP_DYNAMIC 1
15921 BUILD_LDAP_DYNAMIC=shared
15922 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15926 if test "$ol_link_ldbm" != no ; then
15927 cat >> confdefs.h <<\EOF
15928 #define SLAPD_LDBM 1
15933 if test "$ol_with_ldbm_module" != static ; then
15934 cat >> confdefs.h <<\EOF
15935 #define SLAPD_LDBM_DYNAMIC 1
15939 BUILD_LDBM_DYNAMIC=shared
15940 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15944 if test "$ol_enable_passwd" != no ; then
15945 cat >> confdefs.h <<\EOF
15946 #define SLAPD_PASSWD 1
15951 if test "$ol_with_passwd_module" != static ; then
15952 cat >> confdefs.h <<\EOF
15953 #define SLAPD_PASSWD_DYNAMIC 1
15957 BUILD_PASSWD_DYNAMIC=shared
15958 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15962 if test "$ol_link_perl" != no ; then
15963 cat >> confdefs.h <<\EOF
15964 #define SLAPD_PERL 1
15969 if test "$ol_with_perl_module" != static ; then
15970 cat >> confdefs.h <<\EOF
15971 #define SLAPD_PERL_DYNAMIC 1
15975 BUILD_PERL_DYNAMIC=shared
15976 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15980 if test "$ol_enable_shell" != no ; then
15981 cat >> confdefs.h <<\EOF
15982 #define SLAPD_SHELL 1
15987 if test "$ol_with_shell_module" != static ; then
15988 cat >> confdefs.h <<\EOF
15989 #define SLAPD_SHELL_DYNAMIC 1
15993 BUILD_SHELL_DYNAMIC=shared
15994 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15998 if test "$ol_enable_tcl" != no ; then
15999 cat >> confdefs.h <<\EOF
16000 #define SLAPD_TCL 1
16005 if test "$ol_with_tcl_module" != static; then
16006 cat >> confdefs.h <<\EOF
16007 #define SLAPD_TCL_DYNAMIC 1
16011 BUILD_TCL_DYNAMIC=shared
16012 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16016 if test "$ol_enable_sql" != no ; then
16017 cat >> confdefs.h <<\EOF
16018 #define SLAPD_SQL 1
16023 SLAPD_SQL_LIBS=-liodbc
16024 if test "$ol_with_sql_module" != static; then
16025 cat >> confdefs.h <<\EOF
16026 #define SLAPD_SQL_DYNAMIC 1
16030 BUILD_SQL_DYNAMIC=shared
16031 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16035 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16036 $BUILD_SLAPD = yes ; then
16041 if test "$LINK_BINS_DYNAMIC" = yes; then
16043 LT_LIB_LINKAGE=shared
16046 LT_LIB_LINKAGE=static
16049 if test "$ac_cv_mingw32" = yes ; then
16120 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16122 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16123 # Let make expand exec_prefix.
16124 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16126 # Any assignment to VPATH causes Sun make to only execute
16127 # the first set of double-colon rules, so remove it if not needed.
16128 # If there is a colon in the path, we need to keep it.
16129 if test "x$srcdir" = x.; then
16130 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16133 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16135 DEFS=-DHAVE_CONFIG_H
16137 # Without the "./", some shells look in PATH for config.status.
16138 : ${CONFIG_STATUS=./config.status}
16140 echo creating $CONFIG_STATUS
16141 rm -f $CONFIG_STATUS
16142 cat > $CONFIG_STATUS <<EOF
16144 # Generated automatically by configure.
16145 # Run this file to recreate the current configuration.
16146 # This directory was configured as follows,
16147 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16149 # $0 $ac_configure_args
16151 # Compiler output produced by configure, useful for debugging
16152 # configure, is in ./config.log if it exists.
16154 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16157 case "\$ac_option" in
16158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16159 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16160 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16161 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16162 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16164 -help | --help | --hel | --he | --h)
16165 echo "\$ac_cs_usage"; exit 0 ;;
16166 *) echo "\$ac_cs_usage"; exit 1 ;;
16170 ac_given_srcdir=$srcdir
16171 ac_given_INSTALL="$INSTALL"
16173 trap 'rm -fr `echo "\
16174 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16175 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16176 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16177 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16178 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16179 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16180 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16181 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16182 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16183 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16184 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16185 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16186 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16187 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16188 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16189 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16190 include/Makefile:build/top.mk:include/Makefile.in \
16191 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16192 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16193 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16194 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16195 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16196 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16197 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16198 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16199 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16200 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16201 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16202 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16203 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16204 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16205 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16206 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16207 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16208 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16209 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16210 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16211 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16212 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16213 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16214 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16215 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16216 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16217 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16218 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16220 cat >> $CONFIG_STATUS <<EOF
16222 # Protect against being on the right side of a sed subst in config.status.
16223 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16224 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16228 s%@CFLAGS@%$CFLAGS%g
16229 s%@CPPFLAGS@%$CPPFLAGS%g
16230 s%@CXXFLAGS@%$CXXFLAGS%g
16231 s%@FFLAGS@%$FFLAGS%g
16233 s%@LDFLAGS@%$LDFLAGS%g
16235 s%@exec_prefix@%$exec_prefix%g
16236 s%@prefix@%$prefix%g
16237 s%@program_transform_name@%$program_transform_name%g
16238 s%@bindir@%$bindir%g
16239 s%@sbindir@%$sbindir%g
16240 s%@libexecdir@%$libexecdir%g
16241 s%@datadir@%$datadir%g
16242 s%@sysconfdir@%$sysconfdir%g
16243 s%@sharedstatedir@%$sharedstatedir%g
16244 s%@localstatedir@%$localstatedir%g
16245 s%@libdir@%$libdir%g
16246 s%@includedir@%$includedir%g
16247 s%@oldincludedir@%$oldincludedir%g
16248 s%@infodir@%$infodir%g
16249 s%@mandir@%$mandir%g
16251 s%@host_alias@%$host_alias%g
16252 s%@host_cpu@%$host_cpu%g
16253 s%@host_vendor@%$host_vendor%g
16254 s%@host_os@%$host_os%g
16255 s%@target@%$target%g
16256 s%@target_alias@%$target_alias%g
16257 s%@target_cpu@%$target_cpu%g
16258 s%@target_vendor@%$target_vendor%g
16259 s%@target_os@%$target_os%g
16261 s%@build_alias@%$build_alias%g
16262 s%@build_cpu@%$build_cpu%g
16263 s%@build_vendor@%$build_vendor%g
16264 s%@build_os@%$build_os%g
16265 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16266 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16267 s%@INSTALL_DATA@%$INSTALL_DATA%g
16268 s%@PACKAGE@%$PACKAGE%g
16269 s%@VERSION@%$VERSION%g
16270 s%@ACLOCAL@%$ACLOCAL%g
16271 s%@AUTOCONF@%$AUTOCONF%g
16272 s%@AUTOMAKE@%$AUTOMAKE%g
16273 s%@AUTOHEADER@%$AUTOHEADER%g
16274 s%@MAKEINFO@%$MAKEINFO%g
16275 s%@install_sh@%$install_sh%g
16278 s%@AMTARFLAGS@%$AMTARFLAGS%g
16279 s%@SET_MAKE@%$SET_MAKE%g
16280 s%@top_builddir@%$top_builddir%g
16281 s%@ldap_subdir@%$ldap_subdir%g
16283 s%@RANLIB@%$RANLIB%g
16285 s%@DLLTOOL@%$DLLTOOL%g
16287 s%@OBJDUMP@%$OBJDUMP%g
16288 s%@LIBTOOL@%$LIBTOOL%g
16290 s%@SENDMAIL@%$SENDMAIL%g
16291 s%@EDITOR@%$EDITOR%g
16292 s%@FINGER@%$FINGER%g
16293 s%@PERLBIN@%$PERLBIN%g
16295 s%@EXEEXT@%$EXEEXT%g
16296 s%@OBJEXT@%$OBJEXT%g
16297 s%@OL_MKDEP@%$OL_MKDEP%g
16298 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16299 s%@LIBOBJS@%$LIBOBJS%g
16300 s%@LIBSRCS@%$LIBSRCS%g
16302 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16303 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16304 s%@DYN_EXT@%$DYN_EXT%g
16305 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
16306 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
16307 s%@BUILD_LDAP@%$BUILD_LDAP%g
16308 s%@BUILD_LDBM@%$BUILD_LDBM%g
16309 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
16310 s%@BUILD_PERL@%$BUILD_PERL%g
16311 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
16312 s%@BUILD_SHELL@%$BUILD_SHELL%g
16313 s%@BUILD_SQL@%$BUILD_SQL%g
16314 s%@BUILD_TCL@%$BUILD_TCL%g
16315 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
16316 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
16317 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
16318 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
16319 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
16320 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
16321 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
16322 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
16323 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
16324 s%@LDAP_LIBS@%$LDAP_LIBS%g
16325 s%@LDIF_LIBS@%$LDIF_LIBS%g
16326 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
16327 s%@QUIPU_LIBS@%$QUIPU_LIBS%g
16328 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
16329 s%@LDBM_LIBS@%$LDBM_LIBS%g
16330 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
16331 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
16332 s%@WRAP_LIBS@%$WRAP_LIBS%g
16333 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
16334 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
16335 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
16336 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
16337 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
16338 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
16339 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
16340 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
16341 s%@KRB4_LIBS@%$KRB4_LIBS%g
16342 s%@KRB5_LIBS@%$KRB5_LIBS%g
16343 s%@READLINE_LIBS@%$READLINE_LIBS%g
16344 s%@SASL_LIBS@%$SASL_LIBS%g
16345 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
16346 s%@TLS_LIBS@%$TLS_LIBS%g
16347 s%@MODULES_LIBS@%$MODULES_LIBS%g
16348 s%@AUTH_LIBS@%$AUTH_LIBS%g
16349 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
16350 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
16351 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
16356 cat >> $CONFIG_STATUS <<\EOF
16358 # Split the substitutions into bite-sized pieces for seds with
16359 # small command number limits, like on Digital OSF/1 and HP-UX.
16360 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
16361 ac_file=1 # Number of current file.
16362 ac_beg=1 # First line for current file.
16363 ac_end=$ac_max_sed_cmds # Line after last line for current file.
16366 while $ac_more_lines; do
16367 if test $ac_beg -gt 1; then
16368 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
16370 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
16372 if test ! -s conftest.s$ac_file; then
16373 ac_more_lines=false
16374 rm -f conftest.s$ac_file
16376 if test -z "$ac_sed_cmds"; then
16377 ac_sed_cmds="sed -f conftest.s$ac_file"
16379 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
16381 ac_file=`expr $ac_file + 1`
16383 ac_end=`expr $ac_end + $ac_max_sed_cmds`
16386 if test -z "$ac_sed_cmds"; then
16391 cat >> $CONFIG_STATUS <<EOF
16393 CONFIG_FILES=\${CONFIG_FILES-"\
16394 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16395 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16396 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16397 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16398 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16399 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16400 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16401 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16402 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16403 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16404 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16405 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16406 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16407 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16408 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16409 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16410 include/Makefile:build/top.mk:include/Makefile.in \
16411 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16412 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16413 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16414 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16415 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16416 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16417 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16418 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16419 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16420 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16421 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16422 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16423 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16424 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16425 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16426 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16427 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16428 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16429 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16430 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16431 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16432 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16433 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16434 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16435 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16436 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16437 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16440 cat >> $CONFIG_STATUS <<\EOF
16441 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
16442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16444 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16445 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16446 *) ac_file_in="${ac_file}.in" ;;
16449 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
16451 # Remove last slash and all that follows it. Not all systems have dirname.
16452 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16453 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16454 # The file is in a subdirectory.
16455 test ! -d "$ac_dir" && mkdir "$ac_dir"
16456 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
16457 # A "../" for each directory in $ac_dir_suffix.
16458 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
16460 ac_dir_suffix= ac_dots=
16463 case "$ac_given_srcdir" in
16465 if test -z "$ac_dots"; then top_srcdir=.
16466 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16467 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16468 *) # Relative path.
16469 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16470 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16473 case "$ac_given_INSTALL" in
16474 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16475 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16478 echo creating "$ac_file"
16480 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16482 *[Mm]akefile*) ac_comsub="1i\\
16483 # $configure_input" ;;
16487 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16489 s%@configure_input@%$configure_input%g
16490 s%@srcdir@%$srcdir%g
16491 s%@top_srcdir@%$top_srcdir%g
16492 s%@INSTALL@%$INSTALL%g
16493 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16497 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16498 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16500 # ac_d sets the value in "#define NAME VALUE" lines.
16501 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16502 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16505 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16506 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16507 ac_uB='\([ ]\)%\1#\2define\3'
16510 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16511 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16512 ac_eB='$%\1#\2define\3'
16516 if test "${CONFIG_HEADERS+set}" != set; then
16518 cat >> $CONFIG_STATUS <<EOF
16519 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16521 cat >> $CONFIG_STATUS <<\EOF
16523 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16524 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16526 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16527 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16528 *) ac_file_in="${ac_file}.in" ;;
16531 echo creating $ac_file
16533 rm -f conftest.frag conftest.in conftest.out
16534 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16535 cat $ac_file_inputs > conftest.in
16539 # Transform confdefs.h into a sed script conftest.vals that substitutes
16540 # the proper values into config.h.in to produce config.h. And first:
16541 # Protect against being on the right side of a sed subst in config.status.
16542 # Protect against being in an unquoted here document in config.status.
16543 rm -f conftest.vals
16544 cat > conftest.hdr <<\EOF
16547 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16551 sed -n -f conftest.hdr confdefs.h > conftest.vals
16554 # This sed command replaces #undef with comments. This is necessary, for
16555 # example, in the case of _POSIX_SOURCE, which is predefined and required
16556 # on some systems where configure will not decide to define it.
16557 cat >> conftest.vals <<\EOF
16558 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16561 # Break up conftest.vals because some shells have a limit on
16562 # the size of here documents, and old seds have small limits too.
16564 rm -f conftest.tail
16567 ac_lines=`grep -c . conftest.vals`
16568 # grep -c gives empty output for an empty file on some AIX systems.
16569 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16570 # Write a limited-size here document to conftest.frag.
16571 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16572 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16574 sed -f conftest.frag conftest.in > conftest.out
16576 mv conftest.out conftest.in
16577 ' >> $CONFIG_STATUS
16578 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16579 rm -f conftest.vals
16580 mv conftest.tail conftest.vals
16582 rm -f conftest.vals
16584 cat >> $CONFIG_STATUS <<\EOF
16585 rm -f conftest.frag conftest.h
16586 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16587 cat conftest.in >> conftest.h
16589 if cmp -s $ac_file conftest.h 2>/dev/null; then
16590 echo "$ac_file is unchanged"
16593 # Remove last slash and all that follows it. Not all systems have dirname.
16594 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16595 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16596 # The file is in a subdirectory.
16597 test ! -d "$ac_dir" && mkdir "$ac_dir"
16600 mv conftest.h $ac_file
16605 cat >> $CONFIG_STATUS <<EOF
16608 cat >> $CONFIG_STATUS <<\EOF
16611 echo Please \"make depend\" to build dependencies
16615 chmod +x $CONFIG_STATUS
16616 rm -fr confdefs* $ac_clean_files
16617 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1