3 # from OpenLDAP: pkg/ldap/configure.in,v 1.355 2001/05/11 22:51:28 ando Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging [yes]"
32 --enable-syslog enable syslog support [auto]"
34 --enable-proctitle enable proctitle support [yes]"
36 --enable-cache enable caching (experimental) [no]"
38 --enable-referrals enable V2 Referrals (experimental) [no]"
40 --enable-kbind enable V2 Kerberos IV bind (deprecated) [no]"
42 --enable-ipv6 enable IPv6 support [auto]"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
46 --enable-rewrite enable rewrite [no]"
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 with 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-aci enable per-object ACIs (experimental) [no]"
70 --enable-cleartext enable cleartext passwords [yes]"
72 --enable-crypt enable crypt(3) passwords [no]"
74 --enable-dynamic enable linking built binaries with dynamic libs [no]"
76 --enable-kpasswd enable Kerberos password verification [no]"
78 --enable-lmpasswd enable LAN Manager passwords [no]"
80 --enable-spasswd enable (Cyrus) SASL password verification [no]"
82 --enable-modules enable dynamic module support [no]"
84 --enable-phonetic enable phonetic/soundex [no]"
86 --enable-rlookups enable reverse lookups [no]"
88 --enable-slp enable SLPv2 support [no]"
90 --enable-wrappers enable tcp wrapper support [no]"
92 --enable-bdb enable Berkeley DB backend [no]"
94 --with-bdb-module module type [static]"
96 --enable-dnssrv enable dnssrv backend [no]"
98 --with-dnssrv-module module type [static]"
100 --enable-ldap enable ldap backend [no]"
102 --with-ldap-module module type [static]"
104 --enable-ldbm enable ldbm backend [yes]"
106 --with-ldbm-api with LDBM API [auto]"
108 --with-ldbm-module module type [static]"
110 --with-ldbm-type use LDBM type [auto]"
112 --enable-meta enable metadirectory backend [no]"
114 --with-meta-module module type [static]"
116 --enable-passwd enable passwd backend [no]"
118 --with-passwd-module module type [static]"
120 --enable-perl enable perl backend [no]"
122 --with-perl-module module type [static]"
124 --enable-shell enable shell backend [no]"
126 --with-shell-module module type [static]"
128 --enable-sql enable sql backend [no]"
130 --with-sql-module module type [static]"
132 --enable-tcl enable tcl backend [no]"
134 --with-tcl-module module type [static]"
136 SLURPD (Replication Daemon) Options:"
138 --enable-slurpd enable building slurpd [auto]"
140 Library Generation & Linking Options"
142 --enable-static[=PKGS] build static libraries [default=yes]"
144 --enable-shared[=PKGS] build shared libraries [default=yes]"
146 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
148 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
150 --disable-libtool-lock avoid locking (might break parallel builds)"
152 # Initialize some variables set by options.
153 # The variables have the same names as the options, with
154 # dashes changed to underlines.
156 cache_file=./config.cache
165 program_transform_name=s,x,x,
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datadir='${prefix}/share'
177 sysconfdir='${prefix}/etc'
178 sharedstatedir='${prefix}/com'
179 localstatedir='${prefix}/var'
180 libdir='${exec_prefix}/lib'
181 includedir='${prefix}/include'
182 oldincludedir='/usr/include'
183 infodir='${prefix}/info'
184 mandir='${prefix}/man'
186 # Initialize some other variables.
189 SHELL=${CONFIG_SHELL-/bin/sh}
190 # Maximum number of lines to put in a shell here document.
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
205 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
209 # Accept the important Cygnus configure options, so we can diagnose typos.
213 -bindir | --bindir | --bindi | --bind | --bin | --bi)
215 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
216 bindir="$ac_optarg" ;;
218 -build | --build | --buil | --bui | --bu)
220 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
221 build="$ac_optarg" ;;
223 -cache-file | --cache-file | --cache-fil | --cache-fi \
224 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
225 ac_prev=cache_file ;;
226 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
227 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
228 cache_file="$ac_optarg" ;;
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 datadir="$ac_optarg" ;;
236 -disable-* | --disable-*)
237 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
238 # Reject names that are not valid shell variable names.
239 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
240 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
242 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
243 eval "enable_${ac_feature}=no" ;;
245 -enable-* | --enable-*)
246 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
247 # Reject names that are not valid shell variable names.
248 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
249 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
251 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
256 eval "enable_${ac_feature}='$ac_optarg'" ;;
258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
260 | --exec | --exe | --ex)
261 ac_prev=exec_prefix ;;
262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
264 | --exec=* | --exe=* | --ex=*)
265 exec_prefix="$ac_optarg" ;;
267 -gas | --gas | --ga | --g)
268 # Obsolete; use --with-gas.
271 -help | --help | --hel | --he)
272 # Omit some internal or obsolete options to make the list less imposing.
273 # This message is too long to be a string in the A/UX 3.1 sh.
275 Usage: configure [options] [host]
276 Options: [defaults in brackets after descriptions]
278 --cache-file=FILE cache test results in FILE
279 --help print this message
280 --no-create do not create output files
281 --quiet, --silent do not print \`checking...' messages
282 --version print the version of autoconf that created configure
283 Directory and file names:
284 --prefix=PREFIX install architecture-independent files in PREFIX
286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
288 --bindir=DIR user executables in DIR [EPREFIX/bin]
289 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
290 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
291 --datadir=DIR read-only architecture-independent data in DIR
293 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
294 --sharedstatedir=DIR modifiable architecture-independent data in DIR
296 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
297 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
298 --includedir=DIR C header files in DIR [PREFIX/include]
299 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
300 --infodir=DIR info documentation in DIR [PREFIX/info]
301 --mandir=DIR man documentation in DIR [PREFIX/man]
302 --srcdir=DIR find the sources in DIR [configure dir or ..]
303 --program-prefix=PREFIX prepend PREFIX to installed program names
304 --program-suffix=SUFFIX append SUFFIX to installed program names
305 --program-transform-name=PROGRAM
306 run sed PROGRAM on installed program names
310 --build=BUILD configure for building on BUILD [BUILD=HOST]
311 --host=HOST configure for HOST [guessed]
312 --target=TARGET configure for TARGET [TARGET=HOST]
313 Features and packages:
314 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
315 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
316 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
317 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
318 --x-includes=DIR X include files are in DIR
319 --x-libraries=DIR X library files are in DIR
321 if test -n "$ac_help"; then
322 echo "--enable and --with options recognized:$ac_help"
326 -host | --host | --hos | --ho)
328 -host=* | --host=* | --hos=* | --ho=*)
331 -includedir | --includedir | --includedi | --included | --include \
332 | --includ | --inclu | --incl | --inc)
333 ac_prev=includedir ;;
334 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
335 | --includ=* | --inclu=* | --incl=* | --inc=*)
336 includedir="$ac_optarg" ;;
338 -infodir | --infodir | --infodi | --infod | --info | --inf)
340 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
341 infodir="$ac_optarg" ;;
343 -libdir | --libdir | --libdi | --libd)
345 -libdir=* | --libdir=* | --libdi=* | --libd=*)
346 libdir="$ac_optarg" ;;
348 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
349 | --libexe | --libex | --libe)
350 ac_prev=libexecdir ;;
351 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
352 | --libexe=* | --libex=* | --libe=*)
353 libexecdir="$ac_optarg" ;;
355 -localstatedir | --localstatedir | --localstatedi | --localstated \
356 | --localstate | --localstat | --localsta | --localst \
357 | --locals | --local | --loca | --loc | --lo)
358 ac_prev=localstatedir ;;
359 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
360 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
361 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
362 localstatedir="$ac_optarg" ;;
364 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
366 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
367 mandir="$ac_optarg" ;;
370 # Obsolete; use --without-fp.
373 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
377 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
378 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
381 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
382 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
383 | --oldin | --oldi | --old | --ol | --o)
384 ac_prev=oldincludedir ;;
385 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
386 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
387 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
388 oldincludedir="$ac_optarg" ;;
390 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
392 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
393 prefix="$ac_optarg" ;;
395 -program-prefix | --program-prefix | --program-prefi | --program-pref \
396 | --program-pre | --program-pr | --program-p)
397 ac_prev=program_prefix ;;
398 -program-prefix=* | --program-prefix=* | --program-prefi=* \
399 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
400 program_prefix="$ac_optarg" ;;
402 -program-suffix | --program-suffix | --program-suffi | --program-suff \
403 | --program-suf | --program-su | --program-s)
404 ac_prev=program_suffix ;;
405 -program-suffix=* | --program-suffix=* | --program-suffi=* \
406 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
407 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
417 -program-transform-name=* | --program-transform-name=* \
418 | --program-transform-nam=* | --program-transform-na=* \
419 | --program-transform-n=* | --program-transform-=* \
420 | --program-transform=* | --program-transfor=* \
421 | --program-transfo=* | --program-transf=* \
422 | --program-trans=* | --program-tran=* \
423 | --progr-tra=* | --program-tr=* | --program-t=*)
424 program_transform_name="$ac_optarg" ;;
426 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
427 | -silent | --silent | --silen | --sile | --sil)
430 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
432 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
434 sbindir="$ac_optarg" ;;
436 -sharedstatedir | --sharedstatedir | --sharedstatedi \
437 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
438 | --sharedst | --shareds | --shared | --share | --shar \
440 ac_prev=sharedstatedir ;;
441 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
442 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
443 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
445 sharedstatedir="$ac_optarg" ;;
447 -site | --site | --sit)
449 -site=* | --site=* | --sit=*)
452 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
454 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
455 srcdir="$ac_optarg" ;;
457 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
458 | --syscon | --sysco | --sysc | --sys | --sy)
459 ac_prev=sysconfdir ;;
460 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
461 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
462 sysconfdir="$ac_optarg" ;;
464 -target | --target | --targe | --targ | --tar | --ta | --t)
466 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
467 target="$ac_optarg" ;;
469 -v | -verbose | --verbose | --verbos | --verbo | --verb)
472 -version | --version | --versio | --versi | --vers)
473 echo "configure generated by autoconf version 2.13.1"
477 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
478 # Reject names that are not valid shell variable names.
479 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
480 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
482 ac_package=`echo $ac_package| sed 's/-/_/g'`
487 eval "with_${ac_package}='$ac_optarg'" ;;
489 -without-* | --without-*)
490 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
491 # Reject names that are not valid shell variable names.
492 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
493 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
495 ac_package=`echo $ac_package| sed 's/-/_/g'`
496 eval "with_${ac_package}=no" ;;
499 # Obsolete; use --with-x.
502 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
503 | --x-incl | --x-inc | --x-in | --x-i)
504 ac_prev=x_includes ;;
505 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
506 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
507 x_includes="$ac_optarg" ;;
509 -x-libraries | --x-libraries | --x-librarie | --x-librari \
510 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
511 ac_prev=x_libraries ;;
512 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
513 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
514 x_libraries="$ac_optarg" ;;
516 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
520 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
521 echo "configure: warning: $ac_option: invalid host type" 1>&2
523 if test "x$nonopt" != xNONE; then
524 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
532 if test -n "$ac_prev"; then
533 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
536 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
538 # File descriptor usage:
541 # 2 errors and warnings
542 # 3 some systems may open it to /dev/tty
543 # 4 used on the Kubota Titan
544 # 6 checking for... messages and results
545 # 5 compiler messages saved in config.log
546 if test "$silent" = yes; then
554 This file contains any messages produced by compilers while
555 running configure, to aid debugging if configure makes a mistake.
558 # Strip out --no-create and --no-recursion so they do not pile up.
559 # Also quote any args containing shell metacharacters.
564 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
565 | --no-cr | --no-c) ;;
566 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
567 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
568 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
569 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
570 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
575 # Only set these to C if already set. These must not be set unconditionally
576 # because not all systems understand e.g. LANG=C (notably SCO).
577 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
578 # Non-C LC_CTYPE values break the ctype check.
579 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
580 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
581 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
582 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
584 # confdefs.h avoids OS command line length limits that DEFS can exceed.
585 rm -rf conftest* confdefs.h
586 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
589 # A filename unique to this package, relative to the directory that
590 # configure is in, which we can look for to find out if srcdir is correct.
591 ac_unique_file=build/version.sh
593 # Find the source files, if location was not specified.
594 if test -z "$srcdir"; then
595 ac_srcdir_defaulted=yes
596 # Try the directory containing this script, then its parent.
598 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
599 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
601 if test ! -r $srcdir/$ac_unique_file; then
605 ac_srcdir_defaulted=no
607 if test ! -r $srcdir/$ac_unique_file; then
608 if test "$ac_srcdir_defaulted" = yes; then
609 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
611 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
614 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
616 # Prefer explicitly selected file to automatically selected ones.
617 if test -z "$CONFIG_SITE"; then
618 if test "x$prefix" != xNONE; then
619 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
621 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
624 for ac_site_file in $CONFIG_SITE; do
625 if test -r "$ac_site_file"; then
626 echo "loading site script $ac_site_file"
633 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
634 ac_cpp='$CPP $CPPFLAGS'
635 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
636 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
637 cross_compiling=$ac_cv_prog_cc_cross
641 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
642 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
643 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
650 ac_n= ac_c='\c' ac_t=
654 # set unset (borrowed from autoconf 2.49c)
655 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
661 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
664 for ac_dir in build $srcdir/build; do
665 if test -f $ac_dir/install-sh; then
667 ac_install_sh="$ac_aux_dir/install-sh -c"
669 elif test -f $ac_dir/install.sh; then
671 ac_install_sh="$ac_aux_dir/install.sh -c"
673 elif test -f $ac_dir/shtool; then
675 ac_install_sh="$ac_aux_dir/shtool install -c"
679 if test -z "$ac_aux_dir"; then
680 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
682 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
683 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
684 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
686 eval `$ac_aux_dir/version.sh`
687 if test -z "$OL_STRING"; then
688 { echo "configure: error: could not determine version" 1>&2; exit 1; }
691 echo "Configuring $OL_STRING ..."
694 echo $ac_n "checking host system type""... $ac_c" 1>&6
695 echo "configure:696: checking host system type" >&5
696 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
698 # Make sure we can run config.sub.
699 if $ac_config_sub sun4 >/dev/null 2>&1; then :
700 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
703 ac_cv_host_alias=$host
704 case "$ac_cv_host_alias" in
708 if ac_cv_host_alias=`$ac_config_guess`; then :
709 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
711 *) ac_cv_host_alias=$nonopt ;;
715 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
716 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
717 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
718 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
720 echo $ac_n "(cached) $ac_c" 1>&6
723 echo "$ac_t""$ac_cv_host" 1>&6
726 host_alias=$ac_cv_host_alias
727 host_cpu=$ac_cv_host_cpu
728 host_vendor=$ac_cv_host_vendor
729 host_os=$ac_cv_host_os
735 echo $ac_n "checking target system type""... $ac_c" 1>&6
736 echo "configure:737: checking target system type" >&5
737 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
739 # Make sure we can run config.sub.
740 if $ac_config_sub sun4 >/dev/null 2>&1; then :
741 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
744 ac_cv_target_alias=$target
745 case "$ac_cv_target_alias" in
749 ac_cv_target_alias=$host_alias ;;
751 *) ac_cv_target_alias=$nonopt ;;
755 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
756 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
757 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
758 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
760 echo $ac_n "(cached) $ac_c" 1>&6
763 echo "$ac_t""$ac_cv_target" 1>&6
766 target_alias=$ac_cv_target_alias
767 target_cpu=$ac_cv_target_cpu
768 target_vendor=$ac_cv_target_vendor
769 target_os=$ac_cv_target_os
775 echo $ac_n "checking build system type""... $ac_c" 1>&6
776 echo "configure:777: checking build system type" >&5
777 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
779 # Make sure we can run config.sub.
780 if $ac_config_sub sun4 >/dev/null 2>&1; then :
781 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
784 ac_cv_build_alias=$build
785 case "$ac_cv_build_alias" in
789 ac_cv_build_alias=$host_alias ;;
791 *) ac_cv_build_alias=$nonopt ;;
795 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
796 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
797 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
798 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
800 echo $ac_n "(cached) $ac_c" 1>&6
803 echo "$ac_t""$ac_cv_build" 1>&6
806 build_alias=$ac_cv_build_alias
807 build_cpu=$ac_cv_build_cpu
808 build_vendor=$ac_cv_build_vendor
809 build_os=$ac_cv_build_os
815 # Do some error checking and defaulting for the host and target type.
817 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
820 # 1. You are not allowed to specify --host, --target, and nonopt at the
822 # 2. Host defaults to nonopt.
823 # 3. If nonopt is not specified, then host defaults to the current host,
824 # as determined by config.guess.
825 # 4. Target and build default to nonopt.
826 # 5. If nonopt is not specified, then target and build default to host.
828 # The aliases save the names the user supplied, while $host etc.
829 # will get canonicalized.
830 case $host---$target---$nonopt in
831 NONE---*---* | *---NONE---* | *---*---NONE) ;;
832 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
835 test "$host_alias" != "$target_alias" &&
836 test "$program_prefix$program_suffix$program_transform_name" = \
838 program_prefix=${target_alias}-
841 # Find a good install program. We prefer a C program (faster),
842 # so one script is as good as another. But avoid the broken or
843 # incompatible versions:
844 # SysV /etc/install, /usr/sbin/install
845 # SunOS /usr/etc/install
848 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
849 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
850 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
851 # ./install, which can be erroneously created by make from ./install.sh.
852 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
853 echo "configure:854: checking for a BSD compatible install" >&5
854 if test -z "$INSTALL"; then
855 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
859 for ac_dir in $PATH; do
860 # Account for people who put trailing slashes in PATH elements.
862 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
864 # OSF1 and SCO ODT 3.0 have their own names for install.
865 # Don't use installbsd from OSF since it installs stuff as root
867 for ac_prog in ginstall scoinst install; do
868 if test -f $ac_dir/$ac_prog; then
869 if test $ac_prog = install &&
870 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
871 # AIX install. It has an incompatible calling convention.
873 elif test $ac_prog = install &&
874 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
875 # program-specific install script used by HP pwplus--don't use.
878 ac_cv_path_install="$ac_dir/$ac_prog -c"
889 if test "${ac_cv_path_install+set}" = set; then
890 INSTALL="$ac_cv_path_install"
892 # As a last resort, use the slow shell script. We don't cache a
893 # path for INSTALL within a source directory, because that will
894 # break other packages using the cache if that directory is
895 # removed, or if the path is relative.
896 INSTALL="$ac_install_sh"
899 echo "$ac_t""$INSTALL" 1>&6
901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
902 # It thinks the first close brace ends the variable substitution.
903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
909 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
910 echo "configure:911: checking whether build environment is sane" >&5
913 echo timestamp > conftestfile
914 # Do `set' in a subshell so we don't clobber the current shell's
915 # arguments. Must try -L first in case configure is actually a
916 # symlink; some systems play weird games with the mod time of symlinks
917 # (eg FreeBSD returns the mod time of the symlink's containing
920 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
921 if test "$*" = "X"; then
923 set X `ls -t $srcdir/configure conftestfile`
925 if test "$*" != "X $srcdir/configure conftestfile" \
926 && test "$*" != "X conftestfile $srcdir/configure"; then
928 # If neither matched, then we have a broken ls. This can happen
929 # if, for instance, CONFIG_SHELL is bash and it inherits a
930 # broken ls alias from the environment. This has actually
931 # happened. Such a system could not be considered "sane".
932 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
933 alias in your environment" 1>&2; exit 1; }
936 test "$2" = conftestfile
942 { echo "configure: error: newly created file is older than distributed files!
943 Check your system clock" 1>&2; exit 1; }
946 echo "$ac_t""yes" 1>&6
947 if test "$program_transform_name" = s,x,x,; then
948 program_transform_name=
950 # Double any \ or $. echo might interpret backslashes.
951 cat <<\EOF_SED > conftestsed
952 s,\\,\\\\,g; s,\$,$$,g
954 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
957 test "$program_prefix" != NONE &&
958 program_transform_name="s,^,${program_prefix},;$program_transform_name"
959 # Use a double $ so make ignores it.
960 test "$program_suffix" != NONE &&
961 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
963 # sed with no file args requires a program.
964 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
966 for ac_prog in mawk gawk nawk awk
968 # Extract the first word of "$ac_prog", so it can be a program name with args.
969 set dummy $ac_prog; ac_word=$2
970 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
971 echo "configure:972: checking for $ac_word" >&5
972 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
975 if test -n "$AWK"; then
976 ac_cv_prog_AWK="$AWK" # Let the user override the test.
978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
980 for ac_dir in $ac_dummy; do
981 test -z "$ac_dir" && ac_dir=.
982 if test -f $ac_dir/$ac_word; then
983 ac_cv_prog_AWK="$ac_prog"
990 AWK="$ac_cv_prog_AWK"
991 if test -n "$AWK"; then
992 echo "$ac_t""$AWK" 1>&6
994 echo "$ac_t""no" 1>&6
997 test -n "$AWK" && break
1000 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1001 echo "configure:1002: checking whether ${MAKE-make} sets \${MAKE}" >&5
1002 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1003 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1004 echo $ac_n "(cached) $ac_c" 1>&6
1006 cat > conftestmake <<\EOF
1008 @echo 'ac_maketemp="${MAKE}"'
1010 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1011 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1012 if test -n "$ac_maketemp"; then
1013 eval ac_cv_prog_make_${ac_make}_set=yes
1015 eval ac_cv_prog_make_${ac_make}_set=no
1019 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1020 echo "$ac_t""yes" 1>&6
1023 echo "$ac_t""no" 1>&6
1024 SET_MAKE="MAKE=${MAKE-make}"
1033 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1034 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1039 missing_dir=`cd $ac_aux_dir && pwd`
1040 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1041 echo "configure:1042: checking for working aclocal" >&5
1042 # Run test in a subshell; some versions of sh will print an error if
1043 # an executable is not found, even if stderr is redirected.
1044 # Redirect stdin to placate older versions of autoconf. Sigh.
1045 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1047 echo "$ac_t""found" 1>&6
1049 ACLOCAL="$missing_dir/missing aclocal"
1050 echo "$ac_t""missing" 1>&6
1053 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1054 echo "configure:1055: checking for working autoconf" >&5
1055 # Run test in a subshell; some versions of sh will print an error if
1056 # an executable is not found, even if stderr is redirected.
1057 # Redirect stdin to placate older versions of autoconf. Sigh.
1058 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1060 echo "$ac_t""found" 1>&6
1062 AUTOCONF="$missing_dir/missing autoconf"
1063 echo "$ac_t""missing" 1>&6
1066 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1067 echo "configure:1068: checking for working automake" >&5
1068 # Run test in a subshell; some versions of sh will print an error if
1069 # an executable is not found, even if stderr is redirected.
1070 # Redirect stdin to placate older versions of autoconf. Sigh.
1071 if (automake --version) < /dev/null > /dev/null 2>&1; then
1073 echo "$ac_t""found" 1>&6
1075 AUTOMAKE="$missing_dir/missing automake"
1076 echo "$ac_t""missing" 1>&6
1079 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1080 echo "configure:1081: checking for working autoheader" >&5
1081 # Run test in a subshell; some versions of sh will print an error if
1082 # an executable is not found, even if stderr is redirected.
1083 # Redirect stdin to placate older versions of autoconf. Sigh.
1084 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1085 AUTOHEADER=autoheader
1086 echo "$ac_t""found" 1>&6
1088 AUTOHEADER="$missing_dir/missing autoheader"
1089 echo "$ac_t""missing" 1>&6
1092 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1093 echo "configure:1094: checking for working makeinfo" >&5
1094 # Run test in a subshell; some versions of sh will print an error if
1095 # an executable is not found, even if stderr is redirected.
1096 # Redirect stdin to placate older versions of autoconf. Sigh.
1097 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1099 echo "$ac_t""found" 1>&6
1101 MAKEINFO="$missing_dir/missing makeinfo"
1102 echo "$ac_t""missing" 1>&6
1105 install_sh="$missing_dir/install-sh"
1106 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1108 for ac_prog in gnutar gtar tar
1110 # Extract the first word of "$ac_prog", so it can be a program name with args.
1111 set dummy $ac_prog; ac_word=$2
1112 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1113 echo "configure:1114: checking for $ac_word" >&5
1114 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1115 echo $ac_n "(cached) $ac_c" 1>&6
1117 if test -n "$AMTAR"; then
1118 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1120 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1122 for ac_dir in $ac_dummy; do
1123 test -z "$ac_dir" && ac_dir=.
1124 if test -f $ac_dir/$ac_word; then
1125 ac_cv_prog_AMTAR="$ac_prog"
1132 AMTAR="$ac_cv_prog_AMTAR"
1133 if test -n "$AMTAR"; then
1134 echo "$ac_t""$AMTAR" 1>&6
1136 echo "$ac_t""no" 1>&6
1139 test -n "$AMTAR" && break
1144 if test -n "$AMTAR"; then
1145 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1150 cat >> confdefs.h <<EOF
1151 #define OPENLDAP_PACKAGE "$PACKAGE"
1154 cat >> confdefs.h <<EOF
1155 #define OPENLDAP_VERSION "$VERSION"
1159 cat >> confdefs.h <<EOF
1160 #define LDAP_VENDOR_VERSION $OL_API_INC
1163 cat >> confdefs.h <<EOF
1164 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1167 cat >> confdefs.h <<EOF
1168 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1171 cat >> confdefs.h <<EOF
1172 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1176 OPENLDAP_LIBVERSION=$OL_API_LIB
1180 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1181 echo "configure:1182: checking configure arguments" >&5
1186 ldap_subdir="/openldap"
1188 # Check whether --with-subdir or --without-subdir was given.
1189 if test "${with_subdir+set}" = set; then
1190 withval="$with_subdir"
1197 ldap_subdir="$withval"
1200 ldap_subdir="/$withval"
1207 # OpenLDAP --enable-debug
1208 # Check whether --enable-debug or --disable-debug was given.
1209 if test "${enable_debug+set}" = set; then
1210 enableval="$enable_debug"
1213 for ol_val in auto yes no ; do
1214 if test "$enableval" = "$ol_val" ; then
1218 if test "$ol_arg" = "invalid" ; then
1219 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1221 ol_enable_debug="$ol_arg"
1224 ol_enable_debug="yes"
1226 # end --enable-debug
1227 # OpenLDAP --enable-syslog
1228 # Check whether --enable-syslog or --disable-syslog was given.
1229 if test "${enable_syslog+set}" = set; then
1230 enableval="$enable_syslog"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1241 ol_enable_syslog="$ol_arg"
1244 ol_enable_syslog="auto"
1246 # end --enable-syslog
1247 # OpenLDAP --enable-proctitle
1248 # Check whether --enable-proctitle or --disable-proctitle was given.
1249 if test "${enable_proctitle+set}" = set; then
1250 enableval="$enable_proctitle"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1261 ol_enable_proctitle="$ol_arg"
1264 ol_enable_proctitle="yes"
1266 # end --enable-proctitle
1267 # OpenLDAP --enable-cache
1268 # Check whether --enable-cache or --disable-cache was given.
1269 if test "${enable_cache+set}" = set; then
1270 enableval="$enable_cache"
1273 for ol_val in auto yes no ; do
1274 if test "$enableval" = "$ol_val" ; then
1278 if test "$ol_arg" = "invalid" ; then
1279 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1281 ol_enable_cache="$ol_arg"
1284 ol_enable_cache="no"
1286 # end --enable-cache
1287 # OpenLDAP --enable-referrals
1288 # Check whether --enable-referrals or --disable-referrals was given.
1289 if test "${enable_referrals+set}" = set; then
1290 enableval="$enable_referrals"
1293 for ol_val in auto yes no ; do
1294 if test "$enableval" = "$ol_val" ; then
1298 if test "$ol_arg" = "invalid" ; then
1299 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1301 ol_enable_referrals="$ol_arg"
1304 ol_enable_referrals="no"
1306 # end --enable-referrals
1307 # OpenLDAP --enable-kbind
1308 # Check whether --enable-kbind or --disable-kbind was given.
1309 if test "${enable_kbind+set}" = set; then
1310 enableval="$enable_kbind"
1313 for ol_val in auto yes no ; do
1314 if test "$enableval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1321 ol_enable_kbind="$ol_arg"
1324 ol_enable_kbind="no"
1326 # end --enable-kbind
1327 # OpenLDAP --enable-ipv6
1328 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1329 if test "${enable_ipv6+set}" = set; then
1330 enableval="$enable_ipv6"
1333 for ol_val in auto yes no ; do
1334 if test "$enableval" = "$ol_val" ; then
1338 if test "$ol_arg" = "invalid" ; then
1339 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1341 ol_enable_ipv6="$ol_arg"
1344 ol_enable_ipv6="auto"
1347 # OpenLDAP --enable-local
1348 # Check whether --enable-local or --disable-local was given.
1349 if test "${enable_local+set}" = set; then
1350 enableval="$enable_local"
1353 for ol_val in auto yes no ; do
1354 if test "$enableval" = "$ol_val" ; then
1358 if test "$ol_arg" = "invalid" ; then
1359 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1361 ol_enable_local="$ol_arg"
1364 ol_enable_local="auto"
1366 # end --enable-local
1367 # OpenLDAP --enable-rewrite
1368 # Check whether --enable-rewrite or --disable-rewrite was given.
1369 if test "${enable_rewrite+set}" = set; then
1370 enableval="$enable_rewrite"
1373 for ol_val in auto yes no ; do
1374 if test "$enableval" = "$ol_val" ; then
1378 if test "$ol_arg" = "invalid" ; then
1379 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1381 ol_enable_rewrite="$ol_arg"
1384 ol_enable_rewrite="no"
1386 # end --enable-rewrite
1387 # OpenLDAP --enable-x_compile
1388 # Check whether --enable-x_compile or --disable-x_compile was given.
1389 if test "${enable_x_compile+set}" = set; then
1390 enableval="$enable_x_compile"
1393 for ol_val in yes no ; do
1394 if test "$enableval" = "$ol_val" ; then
1398 if test "$ol_arg" = "invalid" ; then
1399 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1401 ol_enable_x_compile="$ol_arg"
1404 ol_enable_x_compile="no"
1406 # end --enable-x_compile
1409 # OpenLDAP --with-cyrus_sasl
1410 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1411 if test "${with_cyrus_sasl+set}" = set; then
1412 withval="$with_cyrus_sasl"
1415 for ol_val in auto yes no ; do
1416 if test "$withval" = "$ol_val" ; then
1420 if test "$ol_arg" = "invalid" ; then
1421 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1423 ol_with_cyrus_sasl="$ol_arg"
1426 ol_with_cyrus_sasl="auto"
1428 # end --with-cyrus_sasl
1430 # OpenLDAP --with-fetch
1431 # Check whether --with-fetch or --without-fetch was given.
1432 if test "${with_fetch+set}" = set; then
1433 withval="$with_fetch"
1436 for ol_val in auto yes no ; do
1437 if test "$withval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1444 ol_with_fetch="$ol_arg"
1447 ol_with_fetch="auto"
1451 # OpenLDAP --with-kerberos
1452 # Check whether --with-kerberos or --without-kerberos was given.
1453 if test "${with_kerberos+set}" = set; then
1454 withval="$with_kerberos"
1457 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1458 if test "$withval" = "$ol_val" ; then
1462 if test "$ol_arg" = "invalid" ; then
1463 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1465 ol_with_kerberos="$ol_arg"
1468 ol_with_kerberos="auto"
1470 # end --with-kerberos
1472 # OpenLDAP --with-readline
1473 # Check whether --with-readline or --without-readline was given.
1474 if test "${with_readline+set}" = set; then
1475 withval="$with_readline"
1478 for ol_val in auto yes no ; do
1479 if test "$withval" = "$ol_val" ; then
1483 if test "$ol_arg" = "invalid" ; then
1484 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1486 ol_with_readline="$ol_arg"
1489 ol_with_readline="auto"
1491 # end --with-readline
1493 # OpenLDAP --with-threads
1494 # Check whether --with-threads or --without-threads was given.
1495 if test "${with_threads+set}" = set; then
1496 withval="$with_threads"
1499 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1500 if test "$withval" = "$ol_val" ; then
1504 if test "$ol_arg" = "invalid" ; then
1505 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1507 ol_with_threads="$ol_arg"
1510 ol_with_threads="auto"
1512 # end --with-threads
1514 # OpenLDAP --with-tls
1515 # Check whether --with-tls or --without-tls was given.
1516 if test "${with_tls+set}" = set; then
1520 for ol_val in auto ssleay openssl yes no ; do
1521 if test "$withval" = "$ol_val" ; then
1525 if test "$ol_arg" = "invalid" ; then
1526 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1528 ol_with_tls="$ol_arg"
1535 # OpenLDAP --with-yielding_select
1536 # Check whether --with-yielding_select or --without-yielding_select was given.
1537 if test "${with_yielding_select+set}" = set; then
1538 withval="$with_yielding_select"
1541 for ol_val in auto yes no manual ; do
1542 if test "$withval" = "$ol_val" ; then
1546 if test "$ol_arg" = "invalid" ; then
1547 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1549 ol_with_yielding_select="$ol_arg"
1552 ol_with_yielding_select="auto"
1554 # end --with-yielding_select
1558 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1559 if test "${with_xxslapdoptions+set}" = set; then
1560 withval="$with_xxslapdoptions"
1564 # OpenLDAP --enable-slapd
1565 # Check whether --enable-slapd or --disable-slapd was given.
1566 if test "${enable_slapd+set}" = set; then
1567 enableval="$enable_slapd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1578 ol_enable_slapd="$ol_arg"
1581 ol_enable_slapd="yes"
1583 # end --enable-slapd
1584 # OpenLDAP --enable-aci
1585 # Check whether --enable-aci or --disable-aci was given.
1586 if test "${enable_aci+set}" = set; then
1587 enableval="$enable_aci"
1590 for ol_val in auto yes no ; do
1591 if test "$enableval" = "$ol_val" ; then
1595 if test "$ol_arg" = "invalid" ; then
1596 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1598 ol_enable_aci="$ol_arg"
1604 # OpenLDAP --enable-cleartext
1605 # Check whether --enable-cleartext or --disable-cleartext was given.
1606 if test "${enable_cleartext+set}" = set; then
1607 enableval="$enable_cleartext"
1610 for ol_val in auto yes no ; do
1611 if test "$enableval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1618 ol_enable_cleartext="$ol_arg"
1621 ol_enable_cleartext="yes"
1623 # end --enable-cleartext
1624 # OpenLDAP --enable-crypt
1625 # Check whether --enable-crypt or --disable-crypt was given.
1626 if test "${enable_crypt+set}" = set; then
1627 enableval="$enable_crypt"
1630 for ol_val in auto yes no ; do
1631 if test "$enableval" = "$ol_val" ; then
1635 if test "$ol_arg" = "invalid" ; then
1636 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1638 ol_enable_crypt="$ol_arg"
1641 ol_enable_crypt="no"
1643 # end --enable-crypt
1644 # OpenLDAP --enable-dynamic
1645 # Check whether --enable-dynamic or --disable-dynamic was given.
1646 if test "${enable_dynamic+set}" = set; then
1647 enableval="$enable_dynamic"
1650 for ol_val in auto yes no ; do
1651 if test "$enableval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1658 ol_enable_dynamic="$ol_arg"
1661 ol_enable_dynamic="no"
1663 # end --enable-dynamic
1664 # OpenLDAP --enable-kpasswd
1665 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1666 if test "${enable_kpasswd+set}" = set; then
1667 enableval="$enable_kpasswd"
1670 for ol_val in auto yes no ; do
1671 if test "$enableval" = "$ol_val" ; then
1675 if test "$ol_arg" = "invalid" ; then
1676 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1678 ol_enable_kpasswd="$ol_arg"
1681 ol_enable_kpasswd="no"
1683 # end --enable-kpasswd
1684 # OpenLDAP --enable-lmpasswd
1685 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1686 if test "${enable_lmpasswd+set}" = set; then
1687 enableval="$enable_lmpasswd"
1690 for ol_val in auto yes no ; do
1691 if test "$enableval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1698 ol_enable_lmpasswd="$ol_arg"
1701 ol_enable_lmpasswd="no"
1703 # end --enable-lmpasswd
1704 # OpenLDAP --enable-spasswd
1705 # Check whether --enable-spasswd or --disable-spasswd was given.
1706 if test "${enable_spasswd+set}" = set; then
1707 enableval="$enable_spasswd"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1718 ol_enable_spasswd="$ol_arg"
1721 ol_enable_spasswd="no"
1723 # end --enable-spasswd
1724 # OpenLDAP --enable-modules
1725 # Check whether --enable-modules or --disable-modules was given.
1726 if test "${enable_modules+set}" = set; then
1727 enableval="$enable_modules"
1730 for ol_val in auto yes no ; do
1731 if test "$enableval" = "$ol_val" ; then
1735 if test "$ol_arg" = "invalid" ; then
1736 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1738 ol_enable_modules="$ol_arg"
1741 ol_enable_modules="no"
1743 # end --enable-modules
1744 # OpenLDAP --enable-phonetic
1745 # Check whether --enable-phonetic or --disable-phonetic was given.
1746 if test "${enable_phonetic+set}" = set; then
1747 enableval="$enable_phonetic"
1750 for ol_val in auto yes no ; do
1751 if test "$enableval" = "$ol_val" ; then
1755 if test "$ol_arg" = "invalid" ; then
1756 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1758 ol_enable_phonetic="$ol_arg"
1761 ol_enable_phonetic="no"
1763 # end --enable-phonetic
1764 # OpenLDAP --enable-rlookups
1765 # Check whether --enable-rlookups or --disable-rlookups was given.
1766 if test "${enable_rlookups+set}" = set; then
1767 enableval="$enable_rlookups"
1770 for ol_val in auto yes no ; do
1771 if test "$enableval" = "$ol_val" ; then
1775 if test "$ol_arg" = "invalid" ; then
1776 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1778 ol_enable_rlookups="$ol_arg"
1781 ol_enable_rlookups="no"
1783 # end --enable-rlookups
1784 # OpenLDAP --enable-slp
1785 # Check whether --enable-slp or --disable-slp was given.
1786 if test "${enable_slp+set}" = set; then
1787 enableval="$enable_slp"
1790 for ol_val in auto yes no ; do
1791 if test "$enableval" = "$ol_val" ; then
1795 if test "$ol_arg" = "invalid" ; then
1796 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1798 ol_enable_slp="$ol_arg"
1804 # OpenLDAP --enable-wrappers
1805 # Check whether --enable-wrappers or --disable-wrappers was given.
1806 if test "${enable_wrappers+set}" = set; then
1807 enableval="$enable_wrappers"
1810 for ol_val in auto yes no ; do
1811 if test "$enableval" = "$ol_val" ; then
1815 if test "$ol_arg" = "invalid" ; then
1816 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1818 ol_enable_wrappers="$ol_arg"
1821 ol_enable_wrappers="no"
1823 # end --enable-wrappers
1825 # OpenLDAP --enable-bdb
1826 # Check whether --enable-bdb or --disable-bdb was given.
1827 if test "${enable_bdb+set}" = set; then
1828 enableval="$enable_bdb"
1831 for ol_val in auto yes no ; do
1832 if test "$enableval" = "$ol_val" ; then
1836 if test "$ol_arg" = "invalid" ; then
1837 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1839 ol_enable_bdb="$ol_arg"
1845 # OpenLDAP --with-bdb_module
1846 # Check whether --with-bdb_module or --without-bdb_module was given.
1847 if test "${with_bdb_module+set}" = set; then
1848 withval="$with_bdb_module"
1851 for ol_val in static dynamic ; do
1852 if test "$withval" = "$ol_val" ; then
1856 if test "$ol_arg" = "invalid" ; then
1857 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1859 ol_with_bdb_module="$ol_arg"
1862 ol_with_bdb_module="static"
1864 # end --with-bdb_module
1866 # OpenLDAP --enable-dnssrv
1867 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1868 if test "${enable_dnssrv+set}" = set; then
1869 enableval="$enable_dnssrv"
1872 for ol_val in auto yes no ; do
1873 if test "$enableval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1880 ol_enable_dnssrv="$ol_arg"
1883 ol_enable_dnssrv="no"
1885 # end --enable-dnssrv
1886 # OpenLDAP --with-dnssrv_module
1887 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1888 if test "${with_dnssrv_module+set}" = set; then
1889 withval="$with_dnssrv_module"
1892 for ol_val in static dynamic ; do
1893 if test "$withval" = "$ol_val" ; then
1897 if test "$ol_arg" = "invalid" ; then
1898 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1900 ol_with_dnssrv_module="$ol_arg"
1903 ol_with_dnssrv_module="static"
1905 # end --with-dnssrv_module
1907 # OpenLDAP --enable-ldap
1908 # Check whether --enable-ldap or --disable-ldap was given.
1909 if test "${enable_ldap+set}" = set; then
1910 enableval="$enable_ldap"
1913 for ol_val in auto yes no ; do
1914 if test "$enableval" = "$ol_val" ; then
1918 if test "$ol_arg" = "invalid" ; then
1919 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1921 ol_enable_ldap="$ol_arg"
1927 # OpenLDAP --with-ldap_module
1928 # Check whether --with-ldap_module or --without-ldap_module was given.
1929 if test "${with_ldap_module+set}" = set; then
1930 withval="$with_ldap_module"
1933 for ol_val in static dynamic ; do
1934 if test "$withval" = "$ol_val" ; then
1938 if test "$ol_arg" = "invalid" ; then
1939 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1941 ol_with_ldap_module="$ol_arg"
1944 ol_with_ldap_module="static"
1946 # end --with-ldap_module
1948 # OpenLDAP --enable-ldbm
1949 # Check whether --enable-ldbm or --disable-ldbm was given.
1950 if test "${enable_ldbm+set}" = set; then
1951 enableval="$enable_ldbm"
1954 for ol_val in auto yes no ; do
1955 if test "$enableval" = "$ol_val" ; then
1959 if test "$ol_arg" = "invalid" ; then
1960 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1962 ol_enable_ldbm="$ol_arg"
1965 ol_enable_ldbm="yes"
1968 # OpenLDAP --with-ldbm_api
1969 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1970 if test "${with_ldbm_api+set}" = set; then
1971 withval="$with_ldbm_api"
1974 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1975 if test "$withval" = "$ol_val" ; then
1979 if test "$ol_arg" = "invalid" ; then
1980 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1982 ol_with_ldbm_api="$ol_arg"
1985 ol_with_ldbm_api="auto"
1987 # end --with-ldbm_api
1989 # OpenLDAP --with-ldbm_module
1990 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1991 if test "${with_ldbm_module+set}" = set; then
1992 withval="$with_ldbm_module"
1995 for ol_val in static dynamic ; do
1996 if test "$withval" = "$ol_val" ; then
2000 if test "$ol_arg" = "invalid" ; then
2001 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2003 ol_with_ldbm_module="$ol_arg"
2006 ol_with_ldbm_module="static"
2008 # end --with-ldbm_module
2010 # OpenLDAP --with-ldbm_type
2011 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2012 if test "${with_ldbm_type+set}" = set; then
2013 withval="$with_ldbm_type"
2016 for ol_val in auto btree hash ; do
2017 if test "$withval" = "$ol_val" ; then
2021 if test "$ol_arg" = "invalid" ; then
2022 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2024 ol_with_ldbm_type="$ol_arg"
2027 ol_with_ldbm_type="auto"
2029 # end --with-ldbm_type
2031 # OpenLDAP --enable-meta
2032 # Check whether --enable-meta or --disable-meta was given.
2033 if test "${enable_meta+set}" = set; then
2034 enableval="$enable_meta"
2037 for ol_val in auto yes no ; do
2038 if test "$enableval" = "$ol_val" ; then
2042 if test "$ol_arg" = "invalid" ; then
2043 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2045 ol_enable_meta="$ol_arg"
2051 # OpenLDAP --with-meta_module
2052 # Check whether --with-meta_module or --without-meta_module was given.
2053 if test "${with_meta_module+set}" = set; then
2054 withval="$with_meta_module"
2057 for ol_val in static dynamic ; do
2058 if test "$withval" = "$ol_val" ; then
2062 if test "$ol_arg" = "invalid" ; then
2063 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2065 ol_with_meta_module="$ol_arg"
2068 ol_with_meta_module="static"
2070 # end --with-meta_module
2072 # OpenLDAP --enable-passwd
2073 # Check whether --enable-passwd or --disable-passwd was given.
2074 if test "${enable_passwd+set}" = set; then
2075 enableval="$enable_passwd"
2078 for ol_val in auto yes no ; do
2079 if test "$enableval" = "$ol_val" ; then
2083 if test "$ol_arg" = "invalid" ; then
2084 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2086 ol_enable_passwd="$ol_arg"
2089 ol_enable_passwd="no"
2091 # end --enable-passwd
2092 # OpenLDAP --with-passwd_module
2093 # Check whether --with-passwd_module or --without-passwd_module was given.
2094 if test "${with_passwd_module+set}" = set; then
2095 withval="$with_passwd_module"
2098 for ol_val in static dynamic ; do
2099 if test "$withval" = "$ol_val" ; then
2103 if test "$ol_arg" = "invalid" ; then
2104 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2106 ol_with_passwd_module="$ol_arg"
2109 ol_with_passwd_module="static"
2111 # end --with-passwd_module
2113 # OpenLDAP --enable-perl
2114 # Check whether --enable-perl or --disable-perl was given.
2115 if test "${enable_perl+set}" = set; then
2116 enableval="$enable_perl"
2119 for ol_val in auto yes no ; do
2120 if test "$enableval" = "$ol_val" ; then
2124 if test "$ol_arg" = "invalid" ; then
2125 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2127 ol_enable_perl="$ol_arg"
2133 # OpenLDAP --with-perl_module
2134 # Check whether --with-perl_module or --without-perl_module was given.
2135 if test "${with_perl_module+set}" = set; then
2136 withval="$with_perl_module"
2139 for ol_val in static dynamic ; do
2140 if test "$withval" = "$ol_val" ; then
2144 if test "$ol_arg" = "invalid" ; then
2145 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2147 ol_with_perl_module="$ol_arg"
2150 ol_with_perl_module="static"
2152 # end --with-perl_module
2154 # OpenLDAP --enable-shell
2155 # Check whether --enable-shell or --disable-shell was given.
2156 if test "${enable_shell+set}" = set; then
2157 enableval="$enable_shell"
2160 for ol_val in auto yes no ; do
2161 if test "$enableval" = "$ol_val" ; then
2165 if test "$ol_arg" = "invalid" ; then
2166 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2168 ol_enable_shell="$ol_arg"
2171 ol_enable_shell="no"
2173 # end --enable-shell
2174 # OpenLDAP --with-shell_module
2175 # Check whether --with-shell_module or --without-shell_module was given.
2176 if test "${with_shell_module+set}" = set; then
2177 withval="$with_shell_module"
2180 for ol_val in static dynamic ; do
2181 if test "$withval" = "$ol_val" ; then
2185 if test "$ol_arg" = "invalid" ; then
2186 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2188 ol_with_shell_module="$ol_arg"
2191 ol_with_shell_module="static"
2193 # end --with-shell_module
2195 # OpenLDAP --enable-sql
2196 # Check whether --enable-sql or --disable-sql was given.
2197 if test "${enable_sql+set}" = set; then
2198 enableval="$enable_sql"
2201 for ol_val in auto yes no ; do
2202 if test "$enableval" = "$ol_val" ; then
2206 if test "$ol_arg" = "invalid" ; then
2207 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2209 ol_enable_sql="$ol_arg"
2215 # OpenLDAP --with-sql_module
2216 # Check whether --with-sql_module or --without-sql_module was given.
2217 if test "${with_sql_module+set}" = set; then
2218 withval="$with_sql_module"
2221 for ol_val in static dynamic ; do
2222 if test "$withval" = "$ol_val" ; then
2226 if test "$ol_arg" = "invalid" ; then
2227 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2229 ol_with_sql_module="$ol_arg"
2232 ol_with_sql_module="static"
2234 # end --with-sql_module
2236 # OpenLDAP --enable-tcl
2237 # Check whether --enable-tcl or --disable-tcl was given.
2238 if test "${enable_tcl+set}" = set; then
2239 enableval="$enable_tcl"
2242 for ol_val in auto yes no ; do
2243 if test "$enableval" = "$ol_val" ; then
2247 if test "$ol_arg" = "invalid" ; then
2248 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2250 ol_enable_tcl="$ol_arg"
2256 # OpenLDAP --with-tcl_module
2257 # Check whether --with-tcl_module or --without-tcl_module was given.
2258 if test "${with_tcl_module+set}" = set; then
2259 withval="$with_tcl_module"
2262 for ol_val in static dynamic ; do
2263 if test "$withval" = "$ol_val" ; then
2267 if test "$ol_arg" = "invalid" ; then
2268 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2270 ol_with_tcl_module="$ol_arg"
2273 ol_with_tcl_module="static"
2275 # end --with-tcl_module
2278 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2279 if test "${with_xxslurpdoptions+set}" = set; then
2280 withval="$with_xxslurpdoptions"
2284 # OpenLDAP --enable-slurpd
2285 # Check whether --enable-slurpd or --disable-slurpd was given.
2286 if test "${enable_slurpd+set}" = set; then
2287 enableval="$enable_slurpd"
2290 for ol_val in auto yes no ; do
2291 if test "$enableval" = "$ol_val" ; then
2295 if test "$ol_arg" = "invalid" ; then
2296 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2298 ol_enable_slurpd="$ol_arg"
2301 ol_enable_slurpd="auto"
2303 # end --enable-slurpd
2305 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2306 if test "${with_xxliboptions+set}" = set; then
2307 withval="$with_xxliboptions"
2311 # Check whether --enable-static or --disable-static was given.
2312 if test "${enable_static+set}" = set; then
2313 enableval="$enable_static"
2314 p=${PACKAGE-default}
2315 case "$enableval" in
2316 yes) enable_static=yes ;;
2317 no) enable_static=no ;;
2320 # Look at the argument we got. We use all the common list separators.
2321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2322 for pkg in $enableval; do
2323 if test "X$pkg" = "X$p"; then
2334 # Check whether --enable-shared or --disable-shared was given.
2335 if test "${enable_shared+set}" = set; then
2336 enableval="$enable_shared"
2337 p=${PACKAGE-default}
2338 case "$enableval" in
2339 yes) enable_shared=yes ;;
2340 no) enable_shared=no ;;
2343 # Look at the argument we got. We use all the common list separators.
2344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2345 for pkg in $enableval; do
2346 if test "X$pkg" = "X$p"; then
2360 if test $ol_enable_slapd = no ; then
2361 if test $ol_enable_bdb = yes ; then
2362 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2364 if test $ol_enable_dnssrv = yes ; then
2365 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2367 if test $ol_enable_ldap = yes ; then
2368 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2370 if test $ol_enable_ldbm = yes ; then
2371 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2373 if test $ol_enable_meta = yes ; then
2374 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2376 if test $ol_enable_passwd = yes ; then
2377 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2379 if test $ol_enable_perl = yes ; then
2380 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2382 if test $ol_enable_shell = yes ; then
2383 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2385 if test $ol_enable_tcl = yes ; then
2386 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2388 if test $ol_enable_sql = yes ; then
2389 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2391 if test $ol_enable_modules = yes ; then
2392 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2394 if test $ol_enable_wrappers = yes ; then
2395 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2397 if test $ol_enable_phonetic = yes ; then
2398 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2400 if test $ol_enable_rlookups = yes ; then
2401 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2403 if test $ol_enable_aci = yes ; then
2404 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2406 if test $ol_with_ldbm_api != auto ; then
2407 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2409 if test $ol_with_ldbm_type != auto ; then
2410 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2412 if test $ol_with_bdb_module != static ; then
2413 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2415 if test $ol_with_dnssrv_module != static ; then
2416 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2418 if test $ol_with_ldap_module != static ; then
2419 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2421 if test $ol_with_ldbm_module != static ; then
2422 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2424 if test $ol_with_meta_module != static ; then
2425 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2427 if test $ol_with_passwd_module != static ; then
2428 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2430 if test $ol_with_perl_module != static ; then
2431 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2433 if test $ol_with_shell_module != static ; then
2434 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2436 if test $ol_with_tcl_module != static ; then
2437 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2439 if test $ol_with_sql_module != static ; then
2440 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2442 if test $ol_enable_slurpd = yes ; then
2443 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2445 if test $ol_enable_rewrite = yes ; then
2446 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2449 # force settings to no
2461 ol_enable_modules=no
2462 ol_enable_phonetic=no
2463 ol_enable_rlookups=no
2465 ol_enable_wrappers=no
2466 ol_enable_dynamic=no
2469 ol_with_ldbm_type=no
2471 ol_with_bdb_module=static
2472 ol_with_dnssrv_module=static
2473 ol_with_ldap_module=static
2474 ol_with_ldbm_module=static
2475 ol_with_meta_module=static
2476 ol_with_passwd_module=static
2477 ol_with_perl_module=static
2478 ol_with_shell_module=static
2479 ol_with_tcl_module=static
2480 ol_with_sql_module=static
2484 ol_enable_rewrite=no
2486 elif test $ol_enable_ldbm = no ; then
2488 if test $ol_with_ldbm_api != auto ; then
2489 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2492 if test $ol_with_ldbm_type != auto ; then
2493 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2496 if test $ol_with_ldbm_module != static ; then
2497 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2500 if test $ol_enable_modules != yes -a \
2501 $ol_enable_bdb = no -a \
2502 $ol_enable_dnssrv = no -a \
2503 $ol_enable_ldap = no -a \
2504 $ol_enable_meta = no -a \
2505 $ol_enable_passwd = no -a \
2506 $ol_enable_perl = no -a \
2507 $ol_enable_shell = no -a \
2508 $ol_enable_sql = no -a \
2509 $ol_enable_tcl = no ; then
2510 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2514 ol_with_ldbm_type=no
2515 ol_with_ldbm_module=static
2518 if test $ol_with_ldbm_api = gdbm -a \
2519 $ol_with_ldbm_type = btree ; then
2520 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2522 if test $ol_with_ldbm_api = mdbm -a \
2523 $ol_with_ldbm_type = btree ; then
2524 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2526 if test $ol_with_ldbm_api = ndbm -a \
2527 $ol_with_ldbm_type = btree ; then
2528 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2532 if test $ol_enable_slurpd = yes ; then
2533 if test $ol_with_threads = no ; then
2534 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2538 if test $ol_enable_lmpasswd = yes ; then
2539 if test $ol_with_tls = no ; then
2540 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2544 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2545 if test $ol_with_kerberos = no ; then
2546 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2548 ol_with_kerberos=yes
2549 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2550 if test $ol_with_kerberos != no -a $ol_with_kerberos != auto ; then
2551 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2556 if test $ol_enable_spasswd = yes ; then
2557 if test $ol_with_cyrus_sasl = no ; then
2558 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2560 ol_with_cyrus_sasl=yes
2563 echo "$ac_t""done" 1>&6
2590 BUILD_BDB_DYNAMIC=static
2591 BUILD_DNSSRV_DYNAMIC=static
2592 BUILD_LDAP_DYNAMIC=static
2593 BUILD_LDBM_DYNAMIC=static
2594 BUILD_META_DYNAMIC=static
2595 BUILD_PASSWD_DYNAMIC=static
2596 BUILD_PERL_DYNAMIC=static
2597 BUILD_SHELL_DYNAMIC=static
2598 BUILD_TCL_DYNAMIC=static
2599 BUILD_SQL_DYNAMIC=static
2601 SLAPD_MODULES_LDFLAGS=
2602 SLAPD_MODULES_CPPFLAGS=
2627 cat >> confdefs.h <<\EOF
2628 #define HAVE_MKVERSION 1
2636 *-*-aix*) if test -z "$CC" ; then
2637 case "$ol_with_threads" in
2638 auto | yes | posix) ol_aix_threads=yes ;;
2644 if test $ol_aix_threads = yes ; then
2645 if test -z "${CC}" ; then
2646 for ac_prog in cc_r xlc_r cc
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2651 echo "configure:2652: checking for $ac_word" >&5
2652 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2658 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2660 for ac_dir in $ac_dummy; do
2661 test -z "$ac_dir" && ac_dir=.
2662 if test -f $ac_dir/$ac_word; then
2663 ac_cv_prog_CC="$ac_prog"
2671 if test -n "$CC"; then
2672 echo "$ac_t""$CC" 1>&6
2674 echo "$ac_t""no" 1>&6
2677 test -n "$CC" && break
2681 if test "$CC" = cc ; then
2682 if test $ol_with_threads != auto ; then
2683 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2685 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2691 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2692 ol_with_threads=posix
2693 ol_cv_pthread_create=yes
2697 if test -z "${CC}"; then
2700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2701 set dummy $ac_prog; ac_word=$2
2702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2703 echo "configure:2704: checking for $ac_word" >&5
2704 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2705 echo $ac_n "(cached) $ac_c" 1>&6
2707 if test -n "$CC"; then
2708 ac_cv_prog_CC="$CC" # Let the user override the test.
2710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2712 for ac_dir in $ac_dummy; do
2713 test -z "$ac_dir" && ac_dir=.
2714 if test -f $ac_dir/$ac_word; then
2715 ac_cv_prog_CC="$ac_prog"
2723 if test -n "$CC"; then
2724 echo "$ac_t""$CC" 1>&6
2726 echo "$ac_t""no" 1>&6
2729 test -n "$CC" && break
2737 # Check whether --enable-fast-install or --disable-fast-install was given.
2738 if test "${enable_fast_install+set}" = set; then
2739 enableval="$enable_fast_install"
2740 p=${PACKAGE-default}
2741 case "$enableval" in
2742 yes) enable_fast_install=yes ;;
2743 no) enable_fast_install=no ;;
2745 enable_fast_install=no
2746 # Look at the argument we got. We use all the common list separators.
2747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2748 for pkg in $enableval; do
2749 if test "X$pkg" = "X$p"; then
2750 enable_fast_install=yes
2757 enable_fast_install=yes
2760 # Extract the first word of "ranlib", so it can be a program name with args.
2761 set dummy ranlib; ac_word=$2
2762 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2763 echo "configure:2764: checking for $ac_word" >&5
2764 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 if test -n "$RANLIB"; then
2768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2772 for ac_dir in $ac_dummy; do
2773 test -z "$ac_dir" && ac_dir=.
2774 if test -f $ac_dir/$ac_word; then
2775 ac_cv_prog_RANLIB="ranlib"
2780 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2783 RANLIB="$ac_cv_prog_RANLIB"
2784 if test -n "$RANLIB"; then
2785 echo "$ac_t""$RANLIB" 1>&6
2787 echo "$ac_t""no" 1>&6
2790 # Extract the first word of "gcc", so it can be a program name with args.
2791 set dummy gcc; ac_word=$2
2792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2793 echo "configure:2794: checking for $ac_word" >&5
2794 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2795 echo $ac_n "(cached) $ac_c" 1>&6
2797 if test -n "$CC"; then
2798 ac_cv_prog_CC="$CC" # Let the user override the test.
2800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2802 for ac_dir in $ac_dummy; do
2803 test -z "$ac_dir" && ac_dir=.
2804 if test -f $ac_dir/$ac_word; then
2813 if test -n "$CC"; then
2814 echo "$ac_t""$CC" 1>&6
2816 echo "$ac_t""no" 1>&6
2819 if test -z "$CC"; then
2820 # Extract the first word of "cc", so it can be a program name with args.
2821 set dummy cc; ac_word=$2
2822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2823 echo "configure:2824: checking for $ac_word" >&5
2824 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2833 for ac_dir in $ac_dummy; do
2834 test -z "$ac_dir" && ac_dir=.
2835 if test -f $ac_dir/$ac_word; then
2836 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2837 ac_prog_rejected=yes
2845 if test $ac_prog_rejected = yes; then
2846 # We found a bogon in the path, so make sure we never use it.
2847 set dummy $ac_cv_prog_CC
2849 if test $# -gt 0; then
2850 # We chose a different compiler from the bogus one.
2851 # However, it has the same basename, so the bogon will be chosen
2852 # first if we set CC to just the basename; use the full file name.
2854 set dummy "$ac_dir/$ac_word" "$@"
2862 if test -n "$CC"; then
2863 echo "$ac_t""$CC" 1>&6
2865 echo "$ac_t""no" 1>&6
2868 if test -z "$CC"; then
2869 case "`uname -s`" in
2870 *win32* | *WIN32* | *CYGWIN*)
2871 # Extract the first word of "cl", so it can be a program name with args.
2872 set dummy cl; ac_word=$2
2873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_word" >&5
2875 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2881 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2883 for ac_dir in $ac_dummy; do
2884 test -z "$ac_dir" && ac_dir=.
2885 if test -f $ac_dir/$ac_word; then
2894 if test -n "$CC"; then
2895 echo "$ac_t""$CC" 1>&6
2897 echo "$ac_t""no" 1>&6
2902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2906 echo "configure:2907: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2913 cross_compiling=$ac_cv_prog_cc_cross
2915 cat > conftest.$ac_ext << EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2922 if { (eval echo configure:2923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2923 ac_cv_prog_cc_works=yes
2924 # If we can't run a trivial program, we are probably using a cross compiler.
2925 if (./conftest; exit) 2>/dev/null; then
2926 ac_cv_prog_cc_cross=no
2928 ac_cv_prog_cc_cross=yes
2931 echo "configure: failed program was:" >&5
2932 cat conftest.$ac_ext >&5
2933 ac_cv_prog_cc_works=no
2937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2938 ac_cpp='$CPP $CPPFLAGS'
2939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2941 cross_compiling=$ac_cv_prog_cc_cross
2943 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2944 if test $ac_cv_prog_cc_works = no; then
2945 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2948 echo "configure:2949: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2949 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2950 cross_compiling=$ac_cv_prog_cc_cross
2952 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2953 echo "configure:2954: checking whether we are using GNU C" >&5
2954 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2955 echo $ac_n "(cached) $ac_c" 1>&6
2957 cat > conftest.c <<EOF
2962 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2969 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2971 if test $ac_cv_prog_gcc = yes; then
2977 ac_test_CFLAGS="${CFLAGS+set}"
2978 ac_save_CFLAGS="$CFLAGS"
2980 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2981 echo "configure:2982: checking whether ${CC-cc} accepts -g" >&5
2982 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 echo 'void f(){}' > conftest.c
2986 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2995 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2996 if test "$ac_test_CFLAGS" = set; then
2997 CFLAGS="$ac_save_CFLAGS"
2998 elif test $ac_cv_prog_cc_g = yes; then
2999 if test "$GCC" = yes; then
3005 if test "$GCC" = yes; then
3012 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3013 if test "${with_gnu_ld+set}" = set; then
3014 withval="$with_gnu_ld"
3015 test "$withval" = no || with_gnu_ld=yes
3021 if test "$ac_cv_prog_gcc" = yes; then
3022 # Check if gcc -print-prog-name=ld gives a path.
3023 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3024 echo "configure:3025: checking for ld used by GCC" >&5
3025 ac_prog=`($CC -print-prog-name=ld) 2>&5`
3027 # Accept absolute paths.
3028 [\\/]* | [A-Za-z]:[\\/]*)
3029 re_direlt='/[^/][^/]*/\.\./'
3030 # Canonicalize the path of ld
3031 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3032 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3033 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3035 test -z "$LD" && LD="$ac_prog"
3038 # If it fails, then pretend we aren't using GCC.
3042 # If it is relative, then search for the first ld in PATH.
3046 elif test "$with_gnu_ld" = yes; then
3047 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3048 echo "configure:3049: checking for GNU ld" >&5
3050 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3051 echo "configure:3052: checking for non-GNU ld" >&5
3053 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3054 echo $ac_n "(cached) $ac_c" 1>&6
3056 if test -z "$LD"; then
3057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3058 for ac_dir in $PATH; do
3059 test -z "$ac_dir" && ac_dir=.
3060 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3061 ac_cv_path_LD="$ac_dir/$ac_prog"
3062 # Check to see if the program is GNU ld. I'd rather use --version,
3063 # but apparently some GNU ld's only accept -v.
3064 # Break only if it was the GNU/non-GNU ld that we prefer.
3065 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3066 test "$with_gnu_ld" != no && break
3068 test "$with_gnu_ld" != yes && break
3074 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3079 if test -n "$LD"; then
3080 echo "$ac_t""$LD" 1>&6
3082 echo "$ac_t""no" 1>&6
3084 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3085 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3086 echo "configure:3087: checking if the linker ($LD) is GNU ld" >&5
3087 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3090 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3091 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3092 ac_cv_prog_gnu_ld=yes
3094 ac_cv_prog_gnu_ld=no
3098 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3101 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3102 echo "configure:3103: checking for BSD-compatible nm" >&5
3103 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3104 echo $ac_n "(cached) $ac_c" 1>&6
3106 if test -n "$NM"; then
3107 # Let the user override the test.
3110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3111 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3112 test -z "$ac_dir" && ac_dir=.
3113 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3114 # Check to see if the nm accepts a BSD-compat flag.
3115 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3116 # nm: unknown option "B" ignored
3117 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3118 ac_cv_path_NM="$ac_dir/nm -B"
3120 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3121 ac_cv_path_NM="$ac_dir/nm -p"
3124 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3125 continue # so that we can try to find one that supports BSD flags
3130 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3135 echo "$ac_t""$NM" 1>&6
3137 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3138 echo "configure:3139: checking whether ln -s works" >&5
3139 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3140 echo $ac_n "(cached) $ac_c" 1>&6
3143 if ln -s X conftestdata 2>/dev/null
3146 ac_cv_prog_LN_S="ln -s"
3151 LN_S="$ac_cv_prog_LN_S"
3152 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3153 echo "$ac_t""yes" 1>&6
3155 echo "$ac_t""no" 1>&6
3158 if test $host != $build; then
3159 ac_tool_prefix=${host_alias}-
3166 NONE) lt_target="$host" ;;
3167 *) lt_target="$target" ;;
3170 # Check for any special flags to pass to ltconfig.
3171 libtool_flags="--cache-file=$cache_file"
3172 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3173 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3174 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3175 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3176 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3177 libtool_flags="$libtool_flags --enable-dlopen"
3178 libtool_flags="$libtool_flags --enable-win32-dll"
3179 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3180 if test "${enable_libtool_lock+set}" = set; then
3181 enableval="$enable_libtool_lock"
3185 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3186 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3188 # Some flags need to be propagated to the compiler or linker for good
3190 case "$lt_target" in
3192 # Find out which ABI we are using.
3193 echo '#line 3194 "configure"' > conftest.$ac_ext
3194 if { (eval echo configure:3195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3195 case "`/usr/bin/file conftest.o`" in
3211 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3212 SAVE_CFLAGS="$CFLAGS"
3213 CFLAGS="$CFLAGS -belf"
3214 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3215 echo "configure:3216: checking whether the C compiler needs -belf" >&5
3216 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3217 echo $ac_n "(cached) $ac_c" 1>&6
3219 cat > conftest.$ac_ext <<EOF
3220 #line 3221 "configure"
3221 #include "confdefs.h"
3227 if { (eval echo configure:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3229 lt_cv_cc_needs_belf=yes
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 lt_cv_cc_needs_belf=no
3239 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3240 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3241 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3242 CFLAGS="$SAVE_CFLAGS"
3246 *-*-cygwin* | *-*-mingw*)
3247 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3250 echo "configure:3251: checking for $ac_word" >&5
3251 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3252 echo $ac_n "(cached) $ac_c" 1>&6
3254 if test -n "$DLLTOOL"; then
3255 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3259 for ac_dir in $ac_dummy; do
3260 test -z "$ac_dir" && ac_dir=.
3261 if test -f $ac_dir/$ac_word; then
3262 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3269 DLLTOOL="$ac_cv_prog_DLLTOOL"
3270 if test -n "$DLLTOOL"; then
3271 echo "$ac_t""$DLLTOOL" 1>&6
3273 echo "$ac_t""no" 1>&6
3277 if test -z "$ac_cv_prog_DLLTOOL"; then
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "dlltool", so it can be a program name with args.
3280 set dummy dlltool; ac_word=$2
3281 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3282 echo "configure:3283: checking for $ac_word" >&5
3283 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3286 if test -n "$DLLTOOL"; then
3287 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3289 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3291 for ac_dir in $ac_dummy; do
3292 test -z "$ac_dir" && ac_dir=.
3293 if test -f $ac_dir/$ac_word; then
3294 ac_cv_prog_DLLTOOL="dlltool"
3299 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3302 DLLTOOL="$ac_cv_prog_DLLTOOL"
3303 if test -n "$DLLTOOL"; then
3304 echo "$ac_t""$DLLTOOL" 1>&6
3306 echo "$ac_t""no" 1>&6
3314 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3315 set dummy ${ac_tool_prefix}as; ac_word=$2
3316 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3317 echo "configure:3318: checking for $ac_word" >&5
3318 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 if test -n "$AS"; then
3322 ac_cv_prog_AS="$AS" # Let the user override the test.
3324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3326 for ac_dir in $ac_dummy; do
3327 test -z "$ac_dir" && ac_dir=.
3328 if test -f $ac_dir/$ac_word; then
3329 ac_cv_prog_AS="${ac_tool_prefix}as"
3337 if test -n "$AS"; then
3338 echo "$ac_t""$AS" 1>&6
3340 echo "$ac_t""no" 1>&6
3344 if test -z "$ac_cv_prog_AS"; then
3345 if test -n "$ac_tool_prefix"; then
3346 # Extract the first word of "as", so it can be a program name with args.
3347 set dummy as; ac_word=$2
3348 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3349 echo "configure:3350: checking for $ac_word" >&5
3350 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 if test -n "$AS"; then
3354 ac_cv_prog_AS="$AS" # Let the user override the test.
3356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3358 for ac_dir in $ac_dummy; do
3359 test -z "$ac_dir" && ac_dir=.
3360 if test -f $ac_dir/$ac_word; then
3366 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3370 if test -n "$AS"; then
3371 echo "$ac_t""$AS" 1>&6
3373 echo "$ac_t""no" 1>&6
3381 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3382 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3383 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3384 echo "configure:3385: checking for $ac_word" >&5
3385 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3388 if test -n "$OBJDUMP"; then
3389 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3391 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3393 for ac_dir in $ac_dummy; do
3394 test -z "$ac_dir" && ac_dir=.
3395 if test -f $ac_dir/$ac_word; then
3396 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3403 OBJDUMP="$ac_cv_prog_OBJDUMP"
3404 if test -n "$OBJDUMP"; then
3405 echo "$ac_t""$OBJDUMP" 1>&6
3407 echo "$ac_t""no" 1>&6
3411 if test -z "$ac_cv_prog_OBJDUMP"; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "objdump", so it can be a program name with args.
3414 set dummy objdump; ac_word=$2
3415 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3416 echo "configure:3417: checking for $ac_word" >&5
3417 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 if test -n "$OBJDUMP"; then
3421 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3425 for ac_dir in $ac_dummy; do
3426 test -z "$ac_dir" && ac_dir=.
3427 if test -f $ac_dir/$ac_word; then
3428 ac_cv_prog_OBJDUMP="objdump"
3433 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3436 OBJDUMP="$ac_cv_prog_OBJDUMP"
3437 if test -n "$OBJDUMP"; then
3438 echo "$ac_t""$OBJDUMP" 1>&6
3440 echo "$ac_t""no" 1>&6
3453 # Save cache, so that ltconfig can load it
3456 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3457 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3458 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3459 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3460 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3461 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3462 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3463 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3465 # Reload cache, that may have been modified by ltconfig
3468 # This can be used to rebuild libtool when needed
3469 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3471 # Always use our own libtool.
3472 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3474 # Redirect the config.log output again, so that the ltconfig log is not
3475 # clobbered by the next message.
3476 exec 5>>./config.log
3479 for ac_prog in mawk gawk nawk awk
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482 set dummy $ac_prog; ac_word=$2
3483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3484 echo "configure:3485: checking for $ac_word" >&5
3485 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 if test -n "$AWK"; then
3489 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3493 for ac_dir in $ac_dummy; do
3494 test -z "$ac_dir" && ac_dir=.
3495 if test -f $ac_dir/$ac_word; then
3496 ac_cv_prog_AWK="$ac_prog"
3503 AWK="$ac_cv_prog_AWK"
3504 if test -n "$AWK"; then
3505 echo "$ac_t""$AWK" 1>&6
3507 echo "$ac_t""no" 1>&6
3510 test -n "$AWK" && break
3513 # test for ln hardlink support
3514 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3515 echo "configure:3516: checking whether ln works" >&5
3516 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3519 rm -f conftest.src conftest.dst
3520 echo "conftest" > conftest.src
3521 if ln conftest.src conftest.dst 2>/dev/null
3523 ol_cv_prog_LN_H="ln"
3525 ol_cv_prog_LN_H="cp"
3527 rm -f conftest.src conftest.dst
3530 LN_H="$ol_cv_prog_LN_H"
3531 if test "$ol_cv_prog_LN_H" = "ln"; then
3532 echo "$ac_t""yes" 1>&6
3534 echo "$ac_t""no" 1>&6
3537 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3538 echo "configure:3539: checking whether ln -s works" >&5
3539 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3543 if ln -s X conftestdata 2>/dev/null
3546 ac_cv_prog_LN_S="ln -s"
3551 LN_S="$ac_cv_prog_LN_S"
3552 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3553 echo "$ac_t""yes" 1>&6
3555 echo "$ac_t""no" 1>&6
3559 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3563 # Extract the first word of "sendmail", so it can be a program name with args.
3564 set dummy sendmail; ac_word=$2
3565 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3566 echo "configure:3567: checking for $ac_word" >&5
3567 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3572 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3575 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3579 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3580 for ac_dir in $ac_dummy; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f $ac_dir/$ac_word; then
3583 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3588 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3592 SENDMAIL="$ac_cv_path_SENDMAIL"
3593 if test -n "$SENDMAIL"; then
3594 echo "$ac_t""$SENDMAIL" 1>&6
3596 echo "$ac_t""no" 1>&6
3599 # Extract the first word of "vi", so it can be a program name with args.
3600 set dummy vi; ac_word=$2
3601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $ac_word" >&5
3603 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3608 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3611 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3615 ac_dummy="$PATH:/usr/ucb"
3616 for ac_dir in $ac_dummy; do
3617 test -z "$ac_dir" && ac_dir=.
3618 if test -f $ac_dir/$ac_word; then
3619 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3624 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3628 EDITOR="$ac_cv_path_EDITOR"
3629 if test -n "$EDITOR"; then
3630 echo "$ac_t""$EDITOR" 1>&6
3632 echo "$ac_t""no" 1>&6
3635 # Extract the first word of "finger", so it can be a program name with args.
3636 set dummy finger; ac_word=$2
3637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3638 echo "configure:3639: checking for $ac_word" >&5
3639 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3640 echo $ac_n "(cached) $ac_c" 1>&6
3644 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3647 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3650 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3651 ac_dummy="$PATH:/usr/ucb"
3652 for ac_dir in $ac_dummy; do
3653 test -z "$ac_dir" && ac_dir=.
3654 if test -f $ac_dir/$ac_word; then
3655 ac_cv_path_FINGER="$ac_dir/$ac_word"
3660 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3664 FINGER="$ac_cv_path_FINGER"
3665 if test -n "$FINGER"; then
3666 echo "$ac_t""$FINGER" 1>&6
3668 echo "$ac_t""no" 1>&6
3673 if test $ol_enable_perl != no ; then
3674 # Extract the first word of "perl", so it can be a program name with args.
3675 set dummy perl; ac_word=$2
3676 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3677 echo "configure:3678: checking for $ac_word" >&5
3678 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3679 echo $ac_n "(cached) $ac_c" 1>&6
3683 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3686 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3691 for ac_dir in $ac_dummy; do
3692 test -z "$ac_dir" && ac_dir=.
3693 if test -f $ac_dir/$ac_word; then
3694 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3699 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3703 PERLBIN="$ac_cv_path_PERLBIN"
3704 if test -n "$PERLBIN"; then
3705 echo "$ac_t""$PERLBIN" 1>&6
3707 echo "$ac_t""no" 1>&6
3711 if test "no$PERLBIN" = "no" ; then
3712 if test $ol_enable_perl = yes ; then
3713 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3717 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3718 if test x"$ol_with_perl_module" = "xstatic" ; then
3719 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3721 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3727 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3728 echo "configure:3729: checking how to run the C preprocessor" >&5
3729 # On Suns, sometimes $CPP names a directory.
3730 if test -n "$CPP" && test -d "$CPP"; then
3733 if test -z "$CPP"; then
3734 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3735 echo $ac_n "(cached) $ac_c" 1>&6
3737 # This must be in double quotes, not single quotes, because CPP may get
3738 # substituted into the Makefile and "${CC-cc}" will confuse make.
3740 # On the NeXT, cc -E runs the code through the compiler's parser,
3741 # not just through cpp.
3742 cat > conftest.$ac_ext <<EOF
3743 #line 3744 "configure"
3744 #include "confdefs.h"
3748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3749 { (eval echo configure:3750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3751 if test -z "$ac_err"; then
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3758 CPP="${CC-cc} -E -traditional-cpp"
3759 cat > conftest.$ac_ext <<EOF
3760 #line 3761 "configure"
3761 #include "confdefs.h"
3765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3766 { (eval echo configure:3767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3768 if test -z "$ac_err"; then
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3775 CPP="${CC-cc} -nologo -E"
3776 cat > conftest.$ac_ext <<EOF
3777 #line 3778 "configure"
3778 #include "confdefs.h"
3782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3783 { (eval echo configure:3784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3785 if test -z "$ac_err"; then
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3799 ac_cv_prog_CPP="$CPP"
3801 CPP="$ac_cv_prog_CPP"
3803 ac_cv_prog_CPP="$CPP"
3805 echo "$ac_t""$CPP" 1>&6
3808 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3809 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3811 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3812 echo "configure: warning: programs compiled here do run here..." 1>&2
3813 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3815 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3816 echo "configure: warning: programs compiled here do not run here..." 1>&2
3817 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3820 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3821 echo "configure:3822: checking for AIX" >&5
3822 cat > conftest.$ac_ext <<EOF
3823 #line 3824 "configure"
3824 #include "confdefs.h"
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 egrep "yes" >/dev/null 2>&1; then
3833 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3834 #define _ALL_SOURCE 1
3839 echo "$ac_t""no" 1>&6
3844 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3845 echo "configure:3846: checking for POSIXized ISC" >&5
3846 if test -d /etc/conf/kconfig.d &&
3847 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3849 echo "$ac_t""yes" 1>&6
3850 ISC=yes # If later tests want to check for ISC.
3851 cat >> confdefs.h <<\EOF
3852 #define _POSIX_SOURCE 1
3855 if test "$GCC" = yes; then
3861 echo "$ac_t""no" 1>&6
3865 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3866 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3867 echo "configure:3868: checking for minix/config.h" >&5
3868 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <minix/config.h>
3876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3877 { (eval echo configure:3878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3879 if test -z "$ac_err"; then
3881 eval "ac_cv_header_$ac_safe=yes"
3884 echo "configure: failed program was:" >&5
3885 cat conftest.$ac_ext >&5
3887 eval "ac_cv_header_$ac_safe=no"
3891 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3892 echo "$ac_t""yes" 1>&6
3895 echo "$ac_t""no" 1>&6
3899 if test "$MINIX" = yes; then
3900 cat >> confdefs.h <<\EOF
3901 #define _POSIX_SOURCE 1
3904 cat >> confdefs.h <<\EOF
3905 #define _POSIX_1_SOURCE 2
3908 cat >> confdefs.h <<\EOF
3915 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3916 echo "configure:3917: checking for Cygwin environment" >&5
3917 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3918 echo $ac_n "(cached) $ac_c" 1>&6
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3927 #define __CYGWIN__ __CYGWIN32__
3932 if { (eval echo configure:3933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3944 echo "$ac_t""$ac_cv_cygwin" 1>&6
3946 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3947 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3948 echo "configure:3949: checking for mingw32 environment" >&5
3949 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 cat > conftest.$ac_ext <<EOF
3953 #line 3954 "configure"
3954 #include "confdefs.h"
3960 if { (eval echo configure:3961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3964 echo "configure: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3972 echo "$ac_t""$ac_cv_mingw32" 1>&6
3974 test "$ac_cv_mingw32" = yes && MINGW32=yes
3975 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3976 echo "configure:3977: checking for EMX OS/2 environment" >&5
3977 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3978 echo $ac_n "(cached) $ac_c" 1>&6
3980 cat > conftest.$ac_ext <<EOF
3981 #line 3982 "configure"
3982 #include "confdefs.h"
3988 if { (eval echo configure:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
4000 echo "$ac_t""$ac_cv_emxos2" 1>&6
4002 test "$ac_cv_emxos2" = yes && EMXOS2=yes
4006 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4007 echo "configure:4008: checking for executable suffix" >&5
4008 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4009 echo $ac_n "(cached) $ac_c" 1>&6
4011 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4015 echo 'int main () { return 0; }' > conftest.$ac_ext
4017 if { (eval echo configure:4018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4018 for file in conftest.*; do
4020 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4021 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4025 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4028 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4033 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4034 echo "$ac_t""${ac_cv_exeext}" 1>&6
4037 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4038 echo "configure:4039: checking for object suffix" >&5
4039 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4040 echo $ac_n "(cached) $ac_c" 1>&6
4043 echo 'int i = 1;' > conftest.$ac_ext
4044 if { (eval echo configure:4045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4045 for ac_file in conftest.*; do
4048 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4052 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4057 echo "$ac_t""$ac_cv_objext" 1>&6
4058 OBJEXT=$ac_cv_objext
4059 ac_objext=$ac_cv_objext
4062 cat >> confdefs.h <<EOF
4063 #define EXEEXT "${EXEEXT}"
4067 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4068 echo "configure:4069: checking for be_app in -lbe" >&5
4069 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4070 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4073 ac_save_LIBS="$LIBS"
4074 LIBS="-lbe -lroot -lnet $LIBS"
4075 cat > conftest.$ac_ext <<EOF
4076 #line 4077 "configure"
4077 #include "confdefs.h"
4078 /* Override any gcc2 internal prototype to avoid an error. */
4079 /* We use char because int might match the return type of a gcc2
4080 builtin and then its argument prototype would still apply. */
4087 if { (eval echo configure:4088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4089 eval "ac_cv_lib_$ac_lib_var=yes"
4091 echo "configure: failed program was:" >&5
4092 cat conftest.$ac_ext >&5
4094 eval "ac_cv_lib_$ac_lib_var=no"
4097 LIBS="$ac_save_LIBS"
4100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4101 echo "$ac_t""yes" 1>&6
4102 LIBS="$LIBS -lbe -lroot -lnet"
4104 echo "$ac_t""no" 1>&6
4112 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4113 echo "configure:4114: checking for ${CC-cc} option to accept ANSI C" >&5
4114 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4115 echo $ac_n "(cached) $ac_c" 1>&6
4117 am_cv_prog_cc_stdc=no
4119 # Don't try gcc -ansi; that turns off useful extensions and
4120 # breaks some systems' header files.
4121 # AIX -qlanglvl=ansi
4122 # Ultrix and OSF/1 -std1
4123 # HP-UX 10.20 and later -Ae
4124 # HP-UX older versions -Aa -D_HPUX_SOURCE
4125 # SVR4 -Xc -D__EXTENSIONS__
4126 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4128 CC="$ac_save_CC $ac_arg"
4129 cat > conftest.$ac_ext <<EOF
4130 #line 4131 "configure"
4131 #include "confdefs.h"
4134 #include <sys/types.h>
4135 #include <sys/stat.h>
4136 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4137 struct buf { int x; };
4138 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4139 static char *e (p, i)
4145 static char *f (char * (*g) (char **, int), char **p, ...)
4150 s = g (p, va_arg (v,int));
4154 int test (int i, double x);
4155 struct s1 {int (*f) (int a);};
4156 struct s2 {int (*f) (double a);};
4157 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4163 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4167 if { (eval echo configure:4168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4169 am_cv_prog_cc_stdc="$ac_arg"; break
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4180 if test -z "$am_cv_prog_cc_stdc"; then
4181 echo "$ac_t""none needed" 1>&6
4183 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4185 case "x$am_cv_prog_cc_stdc" in
4187 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4190 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4191 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4194 # test for make depend flag
4197 if test -z "${MKDEP}"; then
4199 if test -z "${MKDEP_FLAGS}"; then
4200 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4201 echo "configure:4202: checking for ${OL_MKDEP} depend flag" >&5
4202 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4207 for flag in "-M" "-xM"; do
4208 cat > conftest.c <<EOF
4211 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4212 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4214 if test ! -f conftest."${ac_object}" ; then
4216 OL_MKDEP_FLAGS="$flag"
4225 echo "$ac_t""$ol_cv_mkdep" 1>&6
4228 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4233 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4238 if test "${ol_cv_mkdep}" = no ; then
4239 # this will soon become an error
4240 echo "configure: warning: do not know how to generate dependencies" 1>&2
4243 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
4244 echo "configure:4245: checking for afopen in -ls" >&5
4245 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
4246 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 ac_save_LIBS="$LIBS"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4270 eval "ac_cv_lib_$ac_lib_var=no"
4273 LIBS="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4280 cat >> confdefs.h <<\EOF
4281 #define HAVE_AIX_SECURITY 1
4286 echo "$ac_t""no" 1>&6
4292 if test $ol_enable_modules != no ; then
4293 for ac_hdr in ltdl.h
4295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4297 echo "configure:4298: checking for $ac_hdr" >&5
4298 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4299 echo $ac_n "(cached) $ac_c" 1>&6
4301 cat > conftest.$ac_ext <<EOF
4302 #line 4303 "configure"
4303 #include "confdefs.h"
4306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4307 { (eval echo configure:4308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4309 if test -z "$ac_err"; then
4311 eval "ac_cv_header_$ac_safe=yes"
4314 echo "configure: failed program was:" >&5
4315 cat conftest.$ac_ext >&5
4317 eval "ac_cv_header_$ac_safe=no"
4321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4322 echo "$ac_t""yes" 1>&6
4323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4324 cat >> confdefs.h <<EOF
4325 #define $ac_tr_hdr 1
4329 echo "$ac_t""no" 1>&6
4334 if test $ac_cv_header_ltdl_h = no ; then
4335 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4338 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4339 echo "configure:4340: checking for lt_dlinit in -lltdl" >&5
4340 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4341 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 ac_save_LIBS="$LIBS"
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 eval "ac_cv_lib_$ac_lib_var=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_lib_$ac_lib_var=no"
4368 LIBS="$ac_save_LIBS"
4371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4375 cat >> confdefs.h <<\EOF
4376 #define HAVE_LIBLTDL 1
4381 echo "$ac_t""no" 1>&6
4385 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4386 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4390 ol_with_bdb_module=static
4391 ol_with_dnssrv_module=static
4392 ol_with_ldap_module=static
4393 ol_with_ldbm_module=static
4394 ol_with_meta_module=static
4395 ol_with_passwd_module=static
4396 ol_with_perl_module=static
4397 ol_with_shell_module=static
4398 ol_with_tcl_module=static
4399 ol_with_sql_module=static
4403 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4404 echo "configure:4405: checking for EBCDIC" >&5
4405 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4409 cat > conftest.$ac_ext <<EOF
4410 #line 4411 "configure"
4411 #include "confdefs.h"
4414 #include <__ASCII__/generate_error.h>
4418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4419 { (eval echo configure:4420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4421 if test -z "$ac_err"; then
4423 ol_cv_cpp_ebcdic=yes
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4434 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4435 if test $ol_cv_cpp_ebcdic = yes ; then
4436 cat >> confdefs.h <<\EOF
4437 #define HAVE_EBCDIC 1
4442 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4443 echo "configure:4444: checking for ANSI C header files" >&5
4444 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 cat > conftest.$ac_ext <<EOF
4448 #line 4449 "configure"
4449 #include "confdefs.h"
4455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4458 if test -z "$ac_err"; then
4460 ol_cv_header_stdc=yes
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4466 ol_cv_header_stdc=no
4470 if test $ol_cv_header_stdc = yes; then
4471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 egrep "memchr" >/dev/null 2>&1; then
4482 ol_cv_header_stdc=no
4488 if test $ol_cv_header_stdc = yes; then
4489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 egrep "free" >/dev/null 2>&1; then
4500 ol_cv_header_stdc=no
4506 if test $ol_cv_header_stdc = yes; then
4507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4508 if test "$cross_compiling" = yes; then
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4516 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4517 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4519 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4520 || ('j' <= (c) && (c) <= 'r') \
4521 || ('s' <= (c) && (c) <= 'z'))
4522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525 int main () { int i; for (i = 0; i < 256; i++)
4526 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4530 if { (eval echo configure:4531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4534 echo "configure: failed program was:" >&5
4535 cat conftest.$ac_ext >&5
4537 ol_cv_header_stdc=no
4545 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4546 if test $ol_cv_header_stdc = yes; then
4547 cat >> confdefs.h <<\EOF
4548 #define STDC_HEADERS 1
4552 ac_cv_header_stdc=disable
4555 if test $ol_cv_header_stdc != yes; then
4556 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4560 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4563 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4564 echo "configure:4565: checking for $ac_hdr that defines DIR" >&5
4565 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4566 echo $ac_n "(cached) $ac_c" 1>&6
4568 cat > conftest.$ac_ext <<EOF
4569 #line 4570 "configure"
4570 #include "confdefs.h"
4571 #include <sys/types.h>
4577 if { (eval echo configure:4578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4579 eval "ac_cv_header_dirent_$ac_safe=yes"
4581 echo "configure: failed program was:" >&5
4582 cat conftest.$ac_ext >&5
4584 eval "ac_cv_header_dirent_$ac_safe=no"
4588 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4589 echo "$ac_t""yes" 1>&6
4590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4591 cat >> confdefs.h <<EOF
4592 #define $ac_tr_hdr 1
4594 ac_header_dirent=$ac_hdr; break
4596 echo "$ac_t""no" 1>&6
4599 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4600 if test $ac_header_dirent = dirent.h; then
4601 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4602 echo "configure:4603: checking for opendir in -ldir" >&5
4603 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4604 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 ac_save_LIBS="$LIBS"
4609 cat > conftest.$ac_ext <<EOF
4610 #line 4611 "configure"
4611 #include "confdefs.h"
4612 /* Override any gcc2 internal prototype to avoid an error. */
4613 /* We use char because int might match the return type of a gcc2
4614 builtin and then its argument prototype would still apply. */
4621 if { (eval echo configure:4622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4623 eval "ac_cv_lib_$ac_lib_var=yes"
4625 echo "configure: failed program was:" >&5
4626 cat conftest.$ac_ext >&5
4628 eval "ac_cv_lib_$ac_lib_var=no"
4631 LIBS="$ac_save_LIBS"
4634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4635 echo "$ac_t""yes" 1>&6
4638 echo "$ac_t""no" 1>&6
4642 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4643 echo "configure:4644: checking for opendir in -lx" >&5
4644 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4645 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4646 echo $ac_n "(cached) $ac_c" 1>&6
4648 ac_save_LIBS="$LIBS"
4650 cat > conftest.$ac_ext <<EOF
4651 #line 4652 "configure"
4652 #include "confdefs.h"
4653 /* Override any gcc2 internal prototype to avoid an error. */
4654 /* We use char because int might match the return type of a gcc2
4655 builtin and then its argument prototype would still apply. */
4662 if { (eval echo configure:4663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4664 eval "ac_cv_lib_$ac_lib_var=yes"
4666 echo "configure: failed program was:" >&5
4667 cat conftest.$ac_ext >&5
4669 eval "ac_cv_lib_$ac_lib_var=no"
4672 LIBS="$ac_save_LIBS"
4675 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4679 echo "$ac_t""no" 1>&6
4684 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4685 echo "configure:4686: checking for sys/wait.h that is POSIX.1 compatible" >&5
4686 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 cat > conftest.$ac_ext <<EOF
4690 #line 4691 "configure"
4691 #include "confdefs.h"
4692 #include <sys/types.h>
4693 #include <sys/wait.h>
4695 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4698 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4703 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4706 if { (eval echo configure:4707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4708 ac_cv_header_sys_wait_h=yes
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4713 ac_cv_header_sys_wait_h=no
4718 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4719 if test $ac_cv_header_sys_wait_h = yes; then
4720 cat >> confdefs.h <<\EOF
4721 #define HAVE_SYS_WAIT_H 1
4726 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4727 echo "configure:4728: checking POSIX termios" >&5
4728 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4729 echo $ac_n "(cached) $ac_c" 1>&6
4731 cat > conftest.$ac_ext <<EOF
4732 #line 4733 "configure"
4733 #include "confdefs.h"
4734 #include <sys/types.h>
4736 #include <termios.h>
4738 /* SunOS 4.0.3 has termios.h but not the library calls. */
4742 if { (eval echo configure:4743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 am_cv_sys_posix_termios=yes
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4749 am_cv_sys_posix_termios=no
4754 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4757 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4758 echo "configure:4759: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4759 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4762 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4764 gwinsz_in_termios_h=no
4765 if test $am_cv_sys_posix_termios = yes; then
4766 cat > conftest.$ac_ext <<EOF
4767 #line 4768 "configure"
4768 #include "confdefs.h"
4769 #include <sys/types.h>
4770 # include <termios.h>
4776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777 egrep "yes" >/dev/null 2>&1; then
4779 gwinsz_in_termios_h=yes
4785 if test $gwinsz_in_termios_h = no; then
4786 cat > conftest.$ac_ext <<EOF
4787 #line 4788 "configure"
4788 #include "confdefs.h"
4789 #include <sys/types.h>
4790 # include <sys/ioctl.h>
4796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4797 egrep "yes" >/dev/null 2>&1; then
4799 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4807 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4808 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4809 cat >> confdefs.h <<\EOF
4810 #define GWINSZ_IN_SYS_IOCTL 1
4815 if test $am_cv_sys_posix_termios = yes ; then
4816 cat >> confdefs.h <<\EOF
4817 #define HAVE_POSIX_TERMIOS 1
4868 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4869 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4870 echo "configure:4871: checking for $ac_hdr" >&5
4871 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4872 echo $ac_n "(cached) $ac_c" 1>&6
4874 cat > conftest.$ac_ext <<EOF
4875 #line 4876 "configure"
4876 #include "confdefs.h"
4879 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4880 { (eval echo configure:4881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4881 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4882 if test -z "$ac_err"; then
4884 eval "ac_cv_header_$ac_safe=yes"
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4890 eval "ac_cv_header_$ac_safe=no"
4894 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4895 echo "$ac_t""yes" 1>&6
4896 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4897 cat >> confdefs.h <<EOF
4898 #define $ac_tr_hdr 1
4902 echo "$ac_t""no" 1>&6
4909 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4910 echo "configure:4911: checking for dlopen" >&5
4911 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 cat > conftest.$ac_ext <<EOF
4915 #line 4916 "configure"
4916 #include "confdefs.h"
4917 /* System header to define __stub macros and hopefully few prototypes,
4918 which can conflict with char dlopen(); below. */
4920 /* Override any gcc2 internal prototype to avoid an error. */
4921 /* We use char because int might match the return type of a gcc2
4922 builtin and then its argument prototype would still apply. */
4928 /* The GNU C library defines this for functions which it implements
4929 to always fail with ENOSYS. Some functions are actually named
4930 something starting with __ and the normal name is an alias. */
4931 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4939 if { (eval echo configure:4940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4941 eval "ac_cv_func_dlopen=yes"
4943 echo "configure: failed program was:" >&5
4944 cat conftest.$ac_ext >&5
4946 eval "ac_cv_func_dlopen=no"
4951 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4952 echo "$ac_t""yes" 1>&6
4955 echo "$ac_t""no" 1>&6
4956 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4957 echo "configure:4958: checking for dlopen in -ldl" >&5
4958 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 ac_save_LIBS="$LIBS"
4964 cat > conftest.$ac_ext <<EOF
4965 #line 4966 "configure"
4966 #include "confdefs.h"
4967 /* Override any gcc2 internal prototype to avoid an error. */
4968 /* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4976 if { (eval echo configure:4977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 eval "ac_cv_lib_$ac_lib_var=yes"
4980 echo "configure: failed program was:" >&5
4981 cat conftest.$ac_ext >&5
4983 eval "ac_cv_lib_$ac_lib_var=no"
4986 LIBS="$ac_save_LIBS"
4989 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4990 echo "$ac_t""yes" 1>&6
4991 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4992 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4993 cat >> confdefs.h <<EOF
4994 #define $ac_tr_lib 1
5000 echo "$ac_t""no" 1>&6
5006 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
5007 echo "configure:5008: checking for sigset in -lV3" >&5
5008 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
5009 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 ac_save_LIBS="$LIBS"
5014 cat > conftest.$ac_ext <<EOF
5015 #line 5016 "configure"
5016 #include "confdefs.h"
5017 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5026 if { (eval echo configure:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5028 eval "ac_cv_lib_$ac_lib_var=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.$ac_ext >&5
5033 eval "ac_cv_lib_$ac_lib_var=no"
5036 LIBS="$ac_save_LIBS"
5039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5040 echo "$ac_t""yes" 1>&6
5041 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5042 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5043 cat >> confdefs.h <<EOF
5044 #define $ac_tr_lib 1
5050 echo "$ac_t""no" 1>&6
5054 if test $ac_cv_header_winsock_h = yes; then
5055 echo $ac_n "checking for winsock""... $ac_c" 1>&6
5056 echo "configure:5057: checking for winsock" >&5
5057 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
5058 echo $ac_n "(cached) $ac_c" 1>&6
5060 cat > conftest.$ac_ext <<EOF
5061 #line 5062 "configure"
5062 #include "confdefs.h"
5063 #include <winsock.h>
5067 select(0,NULL,NULL,NULL,NULL);
5069 gethostname(NULL,0);
5073 if { (eval echo configure:5074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5077 echo "configure: failed program was:" >&5
5078 cat conftest.$ac_ext >&5
5085 echo "$ac_t""$ol_cv_winsock" 1>&6
5087 if test $ol_cv_winsock = yes ; then
5088 cat >> confdefs.h <<\EOF
5089 #define HAVE_WINSOCK 1
5092 ac_cv_func_socket=yes
5093 ac_cv_func_select=yes
5094 ac_cv_func_closesocket=yes
5095 ac_cv_func_gethostname=yes
5100 echo $ac_n "checking for socket""... $ac_c" 1>&6
5101 echo "configure:5102: checking for socket" >&5
5102 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
5103 echo $ac_n "(cached) $ac_c" 1>&6
5105 cat > conftest.$ac_ext <<EOF
5106 #line 5107 "configure"
5107 #include "confdefs.h"
5108 /* System header to define __stub macros and hopefully few prototypes,
5109 which can conflict with char socket(); below. */
5111 /* Override any gcc2 internal prototype to avoid an error. */
5112 /* We use char because int might match the return type of a gcc2
5113 builtin and then its argument prototype would still apply. */
5119 /* The GNU C library defines this for functions which it implements
5120 to always fail with ENOSYS. Some functions are actually named
5121 something starting with __ and the normal name is an alias. */
5122 #if defined (__stub_socket) || defined (__stub___socket)
5130 if { (eval echo configure:5131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5132 eval "ac_cv_func_socket=yes"
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5137 eval "ac_cv_func_socket=no"
5142 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
5143 echo "$ac_t""yes" 1>&6
5146 echo "$ac_t""no" 1>&6
5148 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
5149 echo "configure:5150: checking for main in -lsocket" >&5
5150 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
5151 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5152 echo $ac_n "(cached) $ac_c" 1>&6
5154 ac_save_LIBS="$LIBS"
5155 LIBS="-lsocket $LIBS"
5156 cat > conftest.$ac_ext <<EOF
5157 #line 5158 "configure"
5158 #include "confdefs.h"
5164 if { (eval echo configure:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5166 eval "ac_cv_lib_$ac_lib_var=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.$ac_ext >&5
5171 eval "ac_cv_lib_$ac_lib_var=no"
5174 LIBS="$ac_save_LIBS"
5177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5178 echo "$ac_t""yes" 1>&6
5179 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5180 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5181 cat >> confdefs.h <<EOF
5182 #define $ac_tr_lib 1
5185 LIBS="-lsocket $LIBS"
5188 echo "$ac_t""no" 1>&6
5191 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5192 echo "configure:5193: checking for main in -lnet" >&5
5193 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5194 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6
5197 ac_save_LIBS="$LIBS"
5199 cat > conftest.$ac_ext <<EOF
5200 #line 5201 "configure"
5201 #include "confdefs.h"
5207 if { (eval echo configure:5208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5209 eval "ac_cv_lib_$ac_lib_var=yes"
5211 echo "configure: failed program was:" >&5
5212 cat conftest.$ac_ext >&5
5214 eval "ac_cv_lib_$ac_lib_var=no"
5217 LIBS="$ac_save_LIBS"
5220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5221 echo "$ac_t""yes" 1>&6
5222 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5224 cat >> confdefs.h <<EOF
5225 #define $ac_tr_lib 1
5231 echo "$ac_t""no" 1>&6
5234 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5235 echo "configure:5236: checking for main in -lnsl_s" >&5
5236 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5237 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5238 echo $ac_n "(cached) $ac_c" 1>&6
5240 ac_save_LIBS="$LIBS"
5241 LIBS="-lnsl_s $LIBS"
5242 cat > conftest.$ac_ext <<EOF
5243 #line 5244 "configure"
5244 #include "confdefs.h"
5250 if { (eval echo configure:5251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5252 eval "ac_cv_lib_$ac_lib_var=yes"
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5257 eval "ac_cv_lib_$ac_lib_var=no"
5260 LIBS="$ac_save_LIBS"
5263 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5264 echo "$ac_t""yes" 1>&6
5265 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5266 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5267 cat >> confdefs.h <<EOF
5268 #define $ac_tr_lib 1
5271 LIBS="-lnsl_s $LIBS"
5274 echo "$ac_t""no" 1>&6
5277 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5278 echo "configure:5279: checking for main in -lnsl" >&5
5279 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5281 echo $ac_n "(cached) $ac_c" 1>&6
5283 ac_save_LIBS="$LIBS"
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5295 eval "ac_cv_lib_$ac_lib_var=yes"
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5300 eval "ac_cv_lib_$ac_lib_var=no"
5303 LIBS="$ac_save_LIBS"
5306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5307 echo "$ac_t""yes" 1>&6
5308 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5309 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5310 cat >> confdefs.h <<EOF
5311 #define $ac_tr_lib 1
5317 echo "$ac_t""no" 1>&6
5320 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5321 echo "configure:5322: checking for socket in -linet" >&5
5322 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5323 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5324 echo $ac_n "(cached) $ac_c" 1>&6
5326 ac_save_LIBS="$LIBS"
5328 cat > conftest.$ac_ext <<EOF
5329 #line 5330 "configure"
5330 #include "confdefs.h"
5331 /* Override any gcc2 internal prototype to avoid an error. */
5332 /* We use char because int might match the return type of a gcc2
5333 builtin and then its argument prototype would still apply. */
5340 if { (eval echo configure:5341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5342 eval "ac_cv_lib_$ac_lib_var=yes"
5344 echo "configure: failed program was:" >&5
5345 cat conftest.$ac_ext >&5
5347 eval "ac_cv_lib_$ac_lib_var=no"
5350 LIBS="$ac_save_LIBS"
5353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5354 echo "$ac_t""yes" 1>&6
5355 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5356 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5357 cat >> confdefs.h <<EOF
5358 #define $ac_tr_lib 1
5364 echo "$ac_t""no" 1>&6
5367 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5368 echo "configure:5369: checking for main in -lgen" >&5
5369 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5370 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5371 echo $ac_n "(cached) $ac_c" 1>&6
5373 ac_save_LIBS="$LIBS"
5375 cat > conftest.$ac_ext <<EOF
5376 #line 5377 "configure"
5377 #include "confdefs.h"
5383 if { (eval echo configure:5384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5385 eval "ac_cv_lib_$ac_lib_var=yes"
5387 echo "configure: failed program was:" >&5
5388 cat conftest.$ac_ext >&5
5390 eval "ac_cv_lib_$ac_lib_var=no"
5393 LIBS="$ac_save_LIBS"
5396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5399 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5400 cat >> confdefs.h <<EOF
5401 #define $ac_tr_lib 1
5407 echo "$ac_t""no" 1>&6
5414 echo $ac_n "checking for select""... $ac_c" 1>&6
5415 echo "configure:5416: checking for select" >&5
5416 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5417 echo $ac_n "(cached) $ac_c" 1>&6
5419 cat > conftest.$ac_ext <<EOF
5420 #line 5421 "configure"
5421 #include "confdefs.h"
5422 /* System header to define __stub macros and hopefully few prototypes,
5423 which can conflict with char select(); below. */
5425 /* Override any gcc2 internal prototype to avoid an error. */
5426 /* We use char because int might match the return type of a gcc2
5427 builtin and then its argument prototype would still apply. */
5433 /* The GNU C library defines this for functions which it implements
5434 to always fail with ENOSYS. Some functions are actually named
5435 something starting with __ and the normal name is an alias. */
5436 #if defined (__stub_select) || defined (__stub___select)
5444 if { (eval echo configure:5445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5446 eval "ac_cv_func_select=yes"
5448 echo "configure: failed program was:" >&5
5449 cat conftest.$ac_ext >&5
5451 eval "ac_cv_func_select=no"
5456 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5460 echo "$ac_t""no" 1>&6
5461 { echo "configure: error: select() required." 1>&2; exit 1; }
5465 if test "${ac_cv_header_winsock_h}" != yes; then
5466 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5467 echo "configure:5468: checking types of arguments for select()" >&5
5468 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5469 echo $ac_n "(cached) $ac_c" 1>&6
5471 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5472 echo $ac_n "(cached) $ac_c" 1>&6
5474 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5478 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5479 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5480 cat > conftest.$ac_ext <<EOF
5481 #line 5482 "configure"
5482 #include "confdefs.h"
5483 #ifdef HAVE_SYS_TYPES_H
5484 #include <sys/types.h>
5486 #ifdef HAVE_SYS_TIME_H
5487 #include <sys/time.h>
5489 #ifdef HAVE_SYS_SELECT_H
5490 #include <sys/select.h>
5492 #ifdef HAVE_SYS_SOCKET_H
5493 #include <sys/socket.h>
5495 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);
5500 if { (eval echo configure:5501: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5502 ac_not_found=no ; break 3
5504 echo "configure: failed program was:" >&5
5505 cat conftest.$ac_ext >&5
5519 if test "$ac_not_found" = yes; then
5520 ac_cv_func_select_arg1=int
5521 ac_cv_func_select_arg234='int *'
5522 ac_cv_func_select_arg5='struct timeval *'
5524 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5525 cat >> confdefs.h <<EOF
5526 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5529 cat >> confdefs.h <<EOF
5530 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5533 cat >> confdefs.h <<EOF
5534 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5541 for ac_hdr in regex.h
5543 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5544 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5545 echo "configure:5546: checking for $ac_hdr" >&5
5546 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5547 echo $ac_n "(cached) $ac_c" 1>&6
5549 cat > conftest.$ac_ext <<EOF
5550 #line 5551 "configure"
5551 #include "confdefs.h"
5554 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5555 { (eval echo configure:5556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5556 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5557 if test -z "$ac_err"; then
5559 eval "ac_cv_header_$ac_safe=yes"
5562 echo "configure: failed program was:" >&5
5563 cat conftest.$ac_ext >&5
5565 eval "ac_cv_header_$ac_safe=no"
5569 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5570 echo "$ac_t""yes" 1>&6
5571 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5572 cat >> confdefs.h <<EOF
5573 #define $ac_tr_hdr 1
5577 echo "$ac_t""no" 1>&6
5581 if test "$ac_cv_header_regex_h" != yes ; then
5582 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5584 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5585 echo "configure:5586: checking for regfree" >&5
5586 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6
5589 cat > conftest.$ac_ext <<EOF
5590 #line 5591 "configure"
5591 #include "confdefs.h"
5592 /* System header to define __stub macros and hopefully few prototypes,
5593 which can conflict with char regfree(); below. */
5595 /* Override any gcc2 internal prototype to avoid an error. */
5596 /* We use char because int might match the return type of a gcc2
5597 builtin and then its argument prototype would still apply. */
5603 /* The GNU C library defines this for functions which it implements
5604 to always fail with ENOSYS. Some functions are actually named
5605 something starting with __ and the normal name is an alias. */
5606 #if defined (__stub_regfree) || defined (__stub___regfree)
5614 if { (eval echo configure:5615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5616 eval "ac_cv_func_regfree=yes"
5618 echo "configure: failed program was:" >&5
5619 cat conftest.$ac_ext >&5
5621 eval "ac_cv_func_regfree=no"
5626 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5627 echo "$ac_t""yes" 1>&6
5630 echo "$ac_t""no" 1>&6
5631 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5636 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5637 echo "configure:5638: checking for compatible POSIX regex" >&5
5638 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5639 echo $ac_n "(cached) $ac_c" 1>&6
5642 if test "$cross_compiling" = yes; then
5643 ol_cv_c_posix_regex=cross
5645 cat > conftest.$ac_ext <<EOF
5646 #line 5647 "configure"
5647 #include "confdefs.h"
5649 #include <sys/types.h>
5651 static char *pattern, *string;
5659 if(regcomp(&re, pattern, 0)) {
5663 string = "ALL MATCH";
5665 rc = regexec(&re, string, 0, (void*)0, 0);
5672 if { (eval echo configure:5673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5674 ol_cv_c_posix_regex=yes
5676 echo "configure: failed program was:" >&5
5677 cat conftest.$ac_ext >&5
5679 ol_cv_c_posix_regex=no
5686 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5688 if test "$ol_cv_c_posix_regex" = no ; then
5689 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5693 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5694 echo "configure:5695: checking for res_query" >&5
5695 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5696 echo $ac_n "(cached) $ac_c" 1>&6
5698 cat > conftest.$ac_ext <<EOF
5699 #line 5700 "configure"
5700 #include "confdefs.h"
5701 /* System header to define __stub macros and hopefully few prototypes,
5702 which can conflict with char res_query(); below. */
5704 /* Override any gcc2 internal prototype to avoid an error. */
5705 /* We use char because int might match the return type of a gcc2
5706 builtin and then its argument prototype would still apply. */
5712 /* The GNU C library defines this for functions which it implements
5713 to always fail with ENOSYS. Some functions are actually named
5714 something starting with __ and the normal name is an alias. */
5715 #if defined (__stub_res_query) || defined (__stub___res_query)
5723 if { (eval echo configure:5724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5725 eval "ac_cv_func_res_query=yes"
5727 echo "configure: failed program was:" >&5
5728 cat conftest.$ac_ext >&5
5730 eval "ac_cv_func_res_query=no"
5735 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5736 echo "$ac_t""yes" 1>&6
5739 echo "$ac_t""no" 1>&6
5742 if test $ac_cv_func_res_query = no ; then
5743 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5744 echo "configure:5745: checking for res_query in -lbind" >&5
5745 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5747 echo $ac_n "(cached) $ac_c" 1>&6
5749 ac_save_LIBS="$LIBS"
5751 cat > conftest.$ac_ext <<EOF
5752 #line 5753 "configure"
5753 #include "confdefs.h"
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 /* We use char because int might match the return type of a gcc2
5756 builtin and then its argument prototype would still apply. */
5763 if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5765 eval "ac_cv_lib_$ac_lib_var=yes"
5767 echo "configure: failed program was:" >&5
5768 cat conftest.$ac_ext >&5
5770 eval "ac_cv_lib_$ac_lib_var=no"
5773 LIBS="$ac_save_LIBS"
5776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5777 echo "$ac_t""yes" 1>&6
5778 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5779 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5780 cat >> confdefs.h <<EOF
5781 #define $ac_tr_lib 1
5787 echo "$ac_t""no" 1>&6
5790 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5793 if test $ac_cv_func_res_query = no ; then
5794 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5795 echo "configure:5796: checking for __res_query in -lbind" >&5
5796 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5797 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5798 echo $ac_n "(cached) $ac_c" 1>&6
5800 ac_save_LIBS="$LIBS"
5802 cat > conftest.$ac_ext <<EOF
5803 #line 5804 "configure"
5804 #include "confdefs.h"
5805 /* Override any gcc2 internal prototype to avoid an error. */
5806 /* We use char because int might match the return type of a gcc2
5807 builtin and then its argument prototype would still apply. */
5814 if { (eval echo configure:5815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5816 eval "ac_cv_lib_$ac_lib_var=yes"
5818 echo "configure: failed program was:" >&5
5819 cat conftest.$ac_ext >&5
5821 eval "ac_cv_lib_$ac_lib_var=no"
5824 LIBS="$ac_save_LIBS"
5827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5828 echo "$ac_t""yes" 1>&6
5829 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5830 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5831 cat >> confdefs.h <<EOF
5832 #define $ac_tr_lib 1
5838 echo "$ac_t""no" 1>&6
5841 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5844 if test $ac_cv_func_res_query = no ; then
5845 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5846 echo "configure:5847: checking for res_query in -lresolv" >&5
5847 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5848 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5849 echo $ac_n "(cached) $ac_c" 1>&6
5851 ac_save_LIBS="$LIBS"
5852 LIBS="-lresolv $LIBS"
5853 cat > conftest.$ac_ext <<EOF
5854 #line 5855 "configure"
5855 #include "confdefs.h"
5856 /* Override any gcc2 internal prototype to avoid an error. */
5857 /* We use char because int might match the return type of a gcc2
5858 builtin and then its argument prototype would still apply. */
5865 if { (eval echo configure:5866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5867 eval "ac_cv_lib_$ac_lib_var=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_lib_$ac_lib_var=no"
5875 LIBS="$ac_save_LIBS"
5878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5879 echo "$ac_t""yes" 1>&6
5880 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5881 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5882 cat >> confdefs.h <<EOF
5883 #define $ac_tr_lib 1
5886 LIBS="-lresolv $LIBS"
5889 echo "$ac_t""no" 1>&6
5892 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5895 if test "$ac_cv_func_res_query" = yes ; then
5896 cat >> confdefs.h <<\EOF
5897 #define HAVE_RES_QUERY 1
5901 if test $ol_enable_dnssrv != no ; then
5906 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5907 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5910 for ac_func in getaddrinfo inet_ntop
5912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5913 echo "configure:5914: checking for $ac_func" >&5
5914 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5915 echo $ac_n "(cached) $ac_c" 1>&6
5917 cat > conftest.$ac_ext <<EOF
5918 #line 5919 "configure"
5919 #include "confdefs.h"
5920 /* System header to define __stub macros and hopefully few prototypes,
5921 which can conflict with char $ac_func(); below. */
5923 /* Override any gcc2 internal prototype to avoid an error. */
5924 /* We use char because int might match the return type of a gcc2
5925 builtin and then its argument prototype would still apply. */
5931 /* The GNU C library defines this for functions which it implements
5932 to always fail with ENOSYS. Some functions are actually named
5933 something starting with __ and the normal name is an alias. */
5934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5942 if { (eval echo configure:5943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5944 eval "ac_cv_func_$ac_func=yes"
5946 echo "configure: failed program was:" >&5
5947 cat conftest.$ac_ext >&5
5949 eval "ac_cv_func_$ac_func=no"
5954 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5955 echo "$ac_t""yes" 1>&6
5956 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5957 cat >> confdefs.h <<EOF
5958 #define $ac_tr_func 1
5962 echo "$ac_t""no" 1>&6
5968 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5969 if test $ol_enable_ipv6 = yes ; then
5970 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5973 for ac_func in gai_strerror
5975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5976 echo "configure:5977: checking for $ac_func" >&5
5977 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5978 echo $ac_n "(cached) $ac_c" 1>&6
5980 cat > conftest.$ac_ext <<EOF
5981 #line 5982 "configure"
5982 #include "confdefs.h"
5983 /* System header to define __stub macros and hopefully few prototypes,
5984 which can conflict with char $ac_func(); below. */
5986 /* Override any gcc2 internal prototype to avoid an error. */
5987 /* We use char because int might match the return type of a gcc2
5988 builtin and then its argument prototype would still apply. */
5994 /* The GNU C library defines this for functions which it implements
5995 to always fail with ENOSYS. Some functions are actually named
5996 something starting with __ and the normal name is an alias. */
5997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6005 if { (eval echo configure:6006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6007 eval "ac_cv_func_$ac_func=yes"
6009 echo "configure: failed program was:" >&5
6010 cat conftest.$ac_ext >&5
6012 eval "ac_cv_func_$ac_func=no"
6017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6018 echo "$ac_t""yes" 1>&6
6019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6020 cat >> confdefs.h <<EOF
6021 #define $ac_tr_func 1
6025 echo "$ac_t""no" 1>&6
6030 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
6031 echo "configure:6032: checking INET6_ADDRSTRLEN" >&5
6032 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
6033 echo $ac_n "(cached) $ac_c" 1>&6
6036 cat > conftest.$ac_ext <<EOF
6037 #line 6038 "configure"
6038 #include "confdefs.h"
6040 # include <netinet/in.h>
6041 # ifdef INET6_ADDRSTRLEN
6042 __has_inet6_addrstrlen__;
6046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6047 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
6049 ol_cv_inet6_addrstrlen=yes
6052 ol_cv_inet6_addrstrlen=no
6058 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
6060 if test $ol_cv_inet6_addrstrlen = yes ; then
6062 elif test $ol_enable_ipv6 = yes ; then
6063 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
6067 if test $ol_enable_local != no ; then
6068 for ac_hdr in sys/un.h
6070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6072 echo "configure:6073: checking for $ac_hdr" >&5
6073 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6074 echo $ac_n "(cached) $ac_c" 1>&6
6076 cat > conftest.$ac_ext <<EOF
6077 #line 6078 "configure"
6078 #include "confdefs.h"
6081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6082 { (eval echo configure:6083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6084 if test -z "$ac_err"; then
6086 eval "ac_cv_header_$ac_safe=yes"
6089 echo "configure: failed program was:" >&5
6090 cat conftest.$ac_ext >&5
6092 eval "ac_cv_header_$ac_safe=no"
6096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6097 echo "$ac_t""yes" 1>&6
6098 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6099 cat >> confdefs.h <<EOF
6100 #define $ac_tr_hdr 1
6104 echo "$ac_t""no" 1>&6
6109 if test $ol_enable_local = auto ; then
6110 ol_enable_local=$ac_cv_header_sys_un_h
6111 elif test $ac_cv_header_sys_un_h = no ; then
6112 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
6121 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6122 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
6123 -o $ol_with_kerberos = k425 ; then
6125 for ac_hdr in krb5.h
6127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6129 echo "configure:6130: checking for $ac_hdr" >&5
6130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 cat > conftest.$ac_ext <<EOF
6134 #line 6135 "configure"
6135 #include "confdefs.h"
6138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6139 { (eval echo configure:6140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6141 if test -z "$ac_err"; then
6143 eval "ac_cv_header_$ac_safe=yes"
6146 echo "configure: failed program was:" >&5
6147 cat conftest.$ac_ext >&5
6149 eval "ac_cv_header_$ac_safe=no"
6153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6154 echo "$ac_t""yes" 1>&6
6155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6156 cat >> confdefs.h <<EOF
6157 #define $ac_tr_hdr 1
6161 echo "$ac_t""no" 1>&6
6166 if test $ac_cv_header_krb5_h = yes ; then
6167 for ac_hdr in heim_err.h
6169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6171 echo "configure:6172: checking for $ac_hdr" >&5
6172 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6173 echo $ac_n "(cached) $ac_c" 1>&6
6175 cat > conftest.$ac_ext <<EOF
6176 #line 6177 "configure"
6177 #include "confdefs.h"
6180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6181 { (eval echo configure:6182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6182 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6183 if test -z "$ac_err"; then
6185 eval "ac_cv_header_$ac_safe=yes"
6188 echo "configure: failed program was:" >&5
6189 cat conftest.$ac_ext >&5
6191 eval "ac_cv_header_$ac_safe=no"
6195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6196 echo "$ac_t""yes" 1>&6
6197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6198 cat >> confdefs.h <<EOF
6199 #define $ac_tr_hdr 1
6203 echo "$ac_t""no" 1>&6
6207 if test $ac_cv_header_heim_err_h = yes ; then
6213 if test $krb5_impl = mit; then
6214 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6215 echo "configure:6216: checking for main in -lkrb5" >&5
6216 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6217 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6218 echo $ac_n "(cached) $ac_c" 1>&6
6220 ac_save_LIBS="$LIBS"
6221 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6222 cat > conftest.$ac_ext <<EOF
6223 #line 6224 "configure"
6224 #include "confdefs.h"
6230 if { (eval echo configure:6231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6232 eval "ac_cv_lib_$ac_lib_var=yes"
6234 echo "configure: failed program was:" >&5
6235 cat conftest.$ac_ext >&5
6237 eval "ac_cv_lib_$ac_lib_var=no"
6240 LIBS="$ac_save_LIBS"
6243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6244 echo "$ac_t""yes" 1>&6
6246 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6248 echo "$ac_t""no" 1>&6
6253 elif test $krb5_impl = heimdal; then
6254 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6255 echo "configure:6256: checking for main in -lkrb5" >&5
6256 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6257 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6258 echo $ac_n "(cached) $ac_c" 1>&6
6260 ac_save_LIBS="$LIBS"
6261 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6262 cat > conftest.$ac_ext <<EOF
6263 #line 6264 "configure"
6264 #include "confdefs.h"
6270 if { (eval echo configure:6271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6272 eval "ac_cv_lib_$ac_lib_var=yes"
6274 echo "configure: failed program was:" >&5
6275 cat conftest.$ac_ext >&5
6277 eval "ac_cv_lib_$ac_lib_var=no"
6280 LIBS="$ac_save_LIBS"
6283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6284 echo "$ac_t""yes" 1>&6
6286 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6288 echo "$ac_t""no" 1>&6
6293 cat >> confdefs.h <<\EOF
6294 #define HAVE_HEIMDAL_KERBEROS 1
6299 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6302 if test $have_krb5 = yes ; then
6305 cat >> confdefs.h <<\EOF
6310 if test $ol_enable_kpasswd != no ; then
6311 ol_link_kpasswd=yes;
6314 if test $ol_with_kerberos = k5only ; then
6315 ol_with_kerberos=found
6318 elif test $ol_with_kerberos != auto ; then
6319 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6325 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6326 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6328 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6330 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6331 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6332 echo "configure:6333: checking for $ac_hdr" >&5
6333 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6334 echo $ac_n "(cached) $ac_c" 1>&6
6336 cat > conftest.$ac_ext <<EOF
6337 #line 6338 "configure"
6338 #include "confdefs.h"
6341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6342 { (eval echo configure:6343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6344 if test -z "$ac_err"; then
6346 eval "ac_cv_header_$ac_safe=yes"
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 eval "ac_cv_header_$ac_safe=no"
6356 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6357 echo "$ac_t""yes" 1>&6
6358 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6359 cat >> confdefs.h <<EOF
6360 #define $ac_tr_hdr 1
6364 echo "$ac_t""no" 1>&6
6369 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6370 if test $krb5_impl = mit; then
6371 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6372 echo "configure:6373: checking for main in -lkrb4" >&5
6373 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6375 echo $ac_n "(cached) $ac_c" 1>&6
6377 ac_save_LIBS="$LIBS"
6378 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6379 cat > conftest.$ac_ext <<EOF
6380 #line 6381 "configure"
6381 #include "confdefs.h"
6387 if { (eval echo configure:6388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6389 eval "ac_cv_lib_$ac_lib_var=yes"
6391 echo "configure: failed program was:" >&5
6392 cat conftest.$ac_ext >&5
6394 eval "ac_cv_lib_$ac_lib_var=no"
6397 LIBS="$ac_save_LIBS"
6400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6401 echo "$ac_t""yes" 1>&6
6403 KRB4_LIBS="-lkrb4 -ldes425"
6405 echo "$ac_t""no" 1>&6
6410 elif test $krb5_impl = heimdal; then
6411 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6412 echo "configure:6413: checking for main in -lkrb4" >&5
6413 ac_lib_var=`echo krb4'_'main | 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="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 eval "ac_cv_lib_$ac_lib_var=yes"
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 eval "ac_cv_lib_$ac_lib_var=no"
6437 LIBS="$ac_save_LIBS"
6440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6441 echo "$ac_t""yes" 1>&6
6445 echo "$ac_t""no" 1>&6
6452 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6455 if test $have_k425 = yes ; then
6456 ol_with_kerberos=found
6459 cat >> confdefs.h <<\EOF
6460 #define HAVE_KRB425 1
6463 cat >> confdefs.h <<\EOF
6468 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6469 echo "configure:6470: checking for des_debug in Kerberos libraries" >&5
6470 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6471 echo $ac_n "(cached) $ac_c" 1>&6
6475 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6476 cat > conftest.$ac_ext <<EOF
6477 #line 6478 "configure"
6478 #include "confdefs.h"
6480 #include <kerberosIV/krb.h>
6481 #include <kerberosIV/des.h>
6482 extern int des_debug;
6490 if { (eval echo configure:6491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6492 ol_cv_var_des_debug=yes
6494 echo "configure: failed program was:" >&5
6495 cat conftest.$ac_ext >&5
6497 ol_cv_var_des_debug=no
6504 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6506 if test $ol_cv_var_des_debug = yes ; then
6507 cat >> confdefs.h <<\EOF
6508 #define HAVE_DES_DEBUG 1
6518 if test $ol_link_krb5 = yes ; then
6519 ol_with_kerberos=found
6522 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6523 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6525 for ac_hdr in krb.h des.h krb-archaeology.h
6527 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6528 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6529 echo "configure:6530: checking for $ac_hdr" >&5
6530 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6531 echo $ac_n "(cached) $ac_c" 1>&6
6533 cat > conftest.$ac_ext <<EOF
6534 #line 6535 "configure"
6535 #include "confdefs.h"
6538 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6539 { (eval echo configure:6540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6540 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6541 if test -z "$ac_err"; then
6543 eval "ac_cv_header_$ac_safe=yes"
6546 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5
6549 eval "ac_cv_header_$ac_safe=no"
6553 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6554 echo "$ac_t""yes" 1>&6
6555 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6556 cat >> confdefs.h <<EOF
6557 #define $ac_tr_hdr 1
6561 echo "$ac_t""no" 1>&6
6566 if test $ac_cv_header_krb_h = yes ; then
6567 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6568 echo "configure:6569: checking for main in -lkrb" >&5
6569 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6570 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6571 echo $ac_n "(cached) $ac_c" 1>&6
6573 ac_save_LIBS="$LIBS"
6574 LIBS="-lkrb -ldes $LIBS"
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6583 if { (eval echo configure:6584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6585 eval "ac_cv_lib_$ac_lib_var=yes"
6587 echo "configure: failed program was:" >&5
6588 cat conftest.$ac_ext >&5
6590 eval "ac_cv_lib_$ac_lib_var=no"
6593 LIBS="$ac_save_LIBS"
6596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6597 echo "$ac_t""yes" 1>&6
6600 echo "$ac_t""no" 1>&6
6605 if test $have_k4 = yes ; then
6606 ol_with_kerberos=found
6609 cat >> confdefs.h <<\EOF
6614 KRB4_LIBS="-lkrb -ldes"
6616 if test $ac_cv_header_krb_archaeology_h = yes ; then
6617 cat >> confdefs.h <<\EOF
6618 #define HAVE_KTH_KERBEROS 1
6626 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6630 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6633 elif test $ol_enable_kbind = yes ; then
6634 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6637 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6638 cat >> confdefs.h <<\EOF
6639 #define HAVE_KERBEROS 1
6643 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6644 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6648 if test $ol_with_tls != no ; then
6649 for ac_hdr in openssl/ssl.h ssl.h
6651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6653 echo "configure:6654: checking for $ac_hdr" >&5
6654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6663 { (eval echo configure:6664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6665 if test -z "$ac_err"; then
6667 eval "ac_cv_header_$ac_safe=yes"
6670 echo "configure: failed program was:" >&5
6671 cat conftest.$ac_ext >&5
6673 eval "ac_cv_header_$ac_safe=no"
6677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6678 echo "$ac_t""yes" 1>&6
6679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6680 cat >> confdefs.h <<EOF
6681 #define $ac_tr_hdr 1
6685 echo "$ac_t""no" 1>&6
6690 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6691 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6692 echo "configure:6693: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6693 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6694 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6695 echo $ac_n "(cached) $ac_c" 1>&6
6697 ac_save_LIBS="$LIBS"
6698 LIBS="-lssl -lcrypto $LIBS"
6699 cat > conftest.$ac_ext <<EOF
6700 #line 6701 "configure"
6701 #include "confdefs.h"
6702 /* Override any gcc2 internal prototype to avoid an error. */
6703 /* We use char because int might match the return type of a gcc2
6704 builtin and then its argument prototype would still apply. */
6705 char SSLeay_add_ssl_algorithms();
6708 SSLeay_add_ssl_algorithms()
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6713 eval "ac_cv_lib_$ac_lib_var=yes"
6715 echo "configure: failed program was:" >&5
6716 cat conftest.$ac_ext >&5
6718 eval "ac_cv_lib_$ac_lib_var=no"
6721 LIBS="$ac_save_LIBS"
6724 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6725 echo "$ac_t""yes" 1>&6
6729 echo "$ac_t""no" 1>&6
6734 if test $have_ssleay = no ; then
6735 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6736 echo "configure:6737: checking for SSL_library_init in -lssl" >&5
6737 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 ac_save_LIBS="$LIBS"
6742 LIBS="-lssl -lcrypto $LIBS"
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* Override any gcc2 internal prototype to avoid an error. */
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6749 char SSL_library_init();
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_lib_$ac_lib_var=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_lib_$ac_lib_var=no"
6765 LIBS="$ac_save_LIBS"
6768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6773 echo "$ac_t""no" 1>&6
6779 if test $have_ssleay = no ; then
6780 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6781 echo "configure:6782: checking for ssl3_accept in -lssl" >&5
6782 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6783 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6784 echo $ac_n "(cached) $ac_c" 1>&6
6786 ac_save_LIBS="$LIBS"
6787 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6788 cat > conftest.$ac_ext <<EOF
6789 #line 6790 "configure"
6790 #include "confdefs.h"
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6800 if { (eval echo configure:6801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6802 eval "ac_cv_lib_$ac_lib_var=yes"
6804 echo "configure: failed program was:" >&5
6805 cat conftest.$ac_ext >&5
6807 eval "ac_cv_lib_$ac_lib_var=no"
6810 LIBS="$ac_save_LIBS"
6813 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6814 echo "$ac_t""yes" 1>&6
6818 echo "$ac_t""no" 1>&6
6824 if test $have_ssleay = yes ; then
6828 cat >> confdefs.h <<\EOF
6829 #define HAVE_SSLEAY 1
6833 if test $need_rsaref = yes; then
6834 cat >> confdefs.h <<\EOF
6835 #define HAVE_RSAREF 1
6839 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6841 TLS_LIBS="-lssl -lcrypto"
6847 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6850 if test $ol_link_tls = yes ; then
6851 cat >> confdefs.h <<\EOF
6856 elif test $ol_with_tls = auto ; then
6857 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6858 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6860 elif test $ol_with_tls != no ; then
6861 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6864 if test $ol_enable_lmpasswd != no; then
6865 if test $ol_link_tls != yes ; then
6866 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
6869 cat >> confdefs.h <<\EOF
6870 #define SLAPD_LMHASH 1
6877 gethostbyname_r gethostbyaddr_r \
6880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6881 echo "configure:6882: checking for $ac_func" >&5
6882 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6883 echo $ac_n "(cached) $ac_c" 1>&6
6885 cat > conftest.$ac_ext <<EOF
6886 #line 6887 "configure"
6887 #include "confdefs.h"
6888 /* System header to define __stub macros and hopefully few prototypes,
6889 which can conflict with char $ac_func(); below. */
6891 /* Override any gcc2 internal prototype to avoid an error. */
6892 /* We use char because int might match the return type of a gcc2
6893 builtin and then its argument prototype would still apply. */
6899 /* The GNU C library defines this for functions which it implements
6900 to always fail with ENOSYS. Some functions are actually named
6901 something starting with __ and the normal name is an alias. */
6902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6910 if { (eval echo configure:6911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6912 eval "ac_cv_func_$ac_func=yes"
6914 echo "configure: failed program was:" >&5
6915 cat conftest.$ac_ext >&5
6917 eval "ac_cv_func_$ac_func=no"
6922 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6923 echo "$ac_t""yes" 1>&6
6924 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6925 cat >> confdefs.h <<EOF
6926 #define $ac_tr_func 1
6930 echo "$ac_t""no" 1>&6
6935 if test "$ac_cv_func_ctime_r" = no ; then
6936 ol_cv_func_ctime_r_nargs=0
6938 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6939 echo "configure:6940: checking number of arguments of ctime_r" >&5
6940 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 cat > conftest.$ac_ext <<EOF
6944 #line 6945 "configure"
6945 #include "confdefs.h"
6948 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6951 if { (eval echo configure:6952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6953 ol_cv_func_ctime_r_nargs3=yes
6955 echo "configure: failed program was:" >&5
6956 cat conftest.$ac_ext >&5
6958 ol_cv_func_ctime_r_nargs3=no
6962 cat > conftest.$ac_ext <<EOF
6963 #line 6964 "configure"
6964 #include "confdefs.h"
6967 time_t ti; char *buffer; ctime_r(&ti,buffer);
6970 if { (eval echo configure:6971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6972 ol_cv_func_ctime_r_nargs2=yes
6974 echo "configure: failed program was:" >&5
6975 cat conftest.$ac_ext >&5
6977 ol_cv_func_ctime_r_nargs2=no
6981 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6982 $ol_cv_func_ctime_r_nargs2 = no ; then
6984 ol_cv_func_ctime_r_nargs=3
6986 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6987 $ol_cv_func_ctime_r_nargs2 = yes ; then
6989 ol_cv_func_ctime_r_nargs=2
6992 ol_cv_func_ctime_r_nargs=0
6997 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6999 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
7000 cat >> confdefs.h <<EOF
7001 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
7008 if test "$ac_cv_func_gethostbyname_r" = yes ; then
7009 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
7010 echo "configure:7011: checking number of arguments of gethostbyname_r" >&5
7011 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
7012 echo $ac_n "(cached) $ac_c" 1>&6
7014 cat > conftest.$ac_ext <<EOF
7015 #line 7016 "configure"
7016 #include "confdefs.h"
7017 #include <sys/types.h>
7018 #include <sys/socket.h>
7019 #include <netinet/in.h>
7021 #define BUFSIZE (sizeof(struct hostent)+10)
7023 struct hostent hent; char buffer[BUFSIZE];
7024 int bufsize=BUFSIZE;int h_errno;
7025 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
7026 buffer, bufsize, &h_errno);
7029 if { (eval echo configure:7030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7031 ol_cv_func_gethostbyname_r_nargs5=yes
7033 echo "configure: failed program was:" >&5
7034 cat conftest.$ac_ext >&5
7036 ol_cv_func_gethostbyname_r_nargs5=no
7040 cat > conftest.$ac_ext <<EOF
7041 #line 7042 "configure"
7042 #include "confdefs.h"
7043 #include <sys/types.h>
7044 #include <sys/socket.h>
7045 #include <netinet/in.h>
7047 #define BUFSIZE (sizeof(struct hostent)+10)
7049 struct hostent hent;struct hostent *rhent;
7050 char buffer[BUFSIZE];
7051 int bufsize=BUFSIZE;int h_errno;
7052 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
7056 if { (eval echo configure:7057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7058 ol_cv_func_gethostbyname_r_nargs6=yes
7060 echo "configure: failed program was:" >&5
7061 cat conftest.$ac_ext >&5
7063 ol_cv_func_gethostbyname_r_nargs6=no
7067 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
7068 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
7070 ol_cv_func_gethostbyname_r_nargs=5
7072 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
7073 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
7075 ol_cv_func_gethostbyname_r_nargs=6
7078 ol_cv_func_gethostbyname_r_nargs=0
7083 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
7084 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
7085 cat >> confdefs.h <<EOF
7086 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
7092 ol_cv_func_gethostbyname_r_nargs=0
7095 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
7096 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
7097 echo "configure:7098: checking number of arguments of gethostbyaddr_r" >&5
7098 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
7099 echo $ac_n "(cached) $ac_c" 1>&6
7101 cat > conftest.$ac_ext <<EOF
7102 #line 7103 "configure"
7103 #include "confdefs.h"
7104 #include <sys/types.h>
7105 #include <sys/socket.h>
7106 #include <netinet/in.h>
7108 #define BUFSIZE (sizeof(struct hostent)+10)
7110 struct hostent hent; char buffer[BUFSIZE];
7112 size_t alen=sizeof(struct in_addr);
7113 int bufsize=BUFSIZE;int h_errno;
7114 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7115 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
7118 if { (eval echo configure:7119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7120 ol_cv_func_gethostbyaddr_r_nargs7=yes
7122 echo "configure: failed program was:" >&5
7123 cat conftest.$ac_ext >&5
7125 ol_cv_func_gethostbyaddr_r_nargs7=no
7129 cat > conftest.$ac_ext <<EOF
7130 #line 7131 "configure"
7131 #include "confdefs.h"
7132 #include <sys/types.h>
7133 #include <sys/socket.h>
7134 #include <netinet/in.h>
7136 #define BUFSIZE (sizeof(struct hostent)+10)
7138 struct hostent hent;
7139 struct hostent *rhent; char buffer[BUFSIZE];
7141 size_t alen=sizeof(struct in_addr);
7142 int bufsize=BUFSIZE;int h_errno;
7143 (void)gethostbyaddr_r( (void *)&(add.s_addr),
7144 alen, AF_INET, &hent, buffer, bufsize,
7148 if { (eval echo configure:7149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7150 ol_cv_func_gethostbyaddr_r_nargs8=yes
7152 echo "configure: failed program was:" >&5
7153 cat conftest.$ac_ext >&5
7155 ol_cv_func_gethostbyaddr_r_nargs8=no
7159 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7160 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7162 ol_cv_func_gethostbyaddr_r_nargs=7
7164 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7165 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7167 ol_cv_func_gethostbyaddr_r_nargs=8
7170 ol_cv_func_gethostbyaddr_r_nargs=0
7175 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7176 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7177 cat >> confdefs.h <<EOF
7178 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7184 ol_cv_func_gethostbyaddr_r_nargs=0
7187 if test "$ac_cv_func_ctime_r" = yes \
7188 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7189 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7190 -a "$ac_cv_func_gethostbyname_r" = yes \
7191 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7192 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7193 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7194 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7195 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7198 cat >> confdefs.h <<\EOF
7199 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7206 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7207 -o $ol_with_threads = nt ; then
7210 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7211 echo "configure:7212: checking for _beginthread" >&5
7212 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7213 echo $ac_n "(cached) $ac_c" 1>&6
7215 cat > conftest.$ac_ext <<EOF
7216 #line 7217 "configure"
7217 #include "confdefs.h"
7218 /* System header to define __stub macros and hopefully few prototypes,
7219 which can conflict with char _beginthread(); below. */
7221 /* Override any gcc2 internal prototype to avoid an error. */
7222 /* We use char because int might match the return type of a gcc2
7223 builtin and then its argument prototype would still apply. */
7224 char _beginthread();
7229 /* The GNU C library defines this for functions which it implements
7230 to always fail with ENOSYS. Some functions are actually named
7231 something starting with __ and the normal name is an alias. */
7232 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7240 if { (eval echo configure:7241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7242 eval "ac_cv_func__beginthread=yes"
7244 echo "configure: failed program was:" >&5
7245 cat conftest.$ac_ext >&5
7247 eval "ac_cv_func__beginthread=no"
7252 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7253 echo "$ac_t""yes" 1>&6
7256 echo "$ac_t""no" 1>&6
7260 if test $ac_cv_func__beginthread = yes ; then
7261 cat >> confdefs.h <<\EOF
7262 #define HAVE_NT_THREADS 1
7268 if test "$ol_cv_nt_threads" = yes ; then
7270 ol_with_threads=found
7271 ol_with_yielding_select=yes
7273 cat >> confdefs.h <<\EOF
7274 #define HAVE_NT_SERVICE_MANAGER 1
7277 cat >> confdefs.h <<\EOF
7278 #define HAVE_NT_EVENT_LOG 1
7283 if test $ol_with_threads = nt ; then
7284 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7288 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7289 -o $ol_with_threads = posix ; then
7291 for ac_hdr in pthread.h
7293 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7294 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7295 echo "configure:7296: checking for $ac_hdr" >&5
7296 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7297 echo $ac_n "(cached) $ac_c" 1>&6
7299 cat > conftest.$ac_ext <<EOF
7300 #line 7301 "configure"
7301 #include "confdefs.h"
7304 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7305 { (eval echo configure:7306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7306 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7307 if test -z "$ac_err"; then
7309 eval "ac_cv_header_$ac_safe=yes"
7312 echo "configure: failed program was:" >&5
7313 cat conftest.$ac_ext >&5
7315 eval "ac_cv_header_$ac_safe=no"
7319 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7320 echo "$ac_t""yes" 1>&6
7321 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7322 cat >> confdefs.h <<EOF
7323 #define $ac_tr_hdr 1
7327 echo "$ac_t""no" 1>&6
7332 if test $ac_cv_header_pthread_h = yes ; then
7333 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7334 echo "configure:7335: checking POSIX thread version" >&5
7335 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7336 echo $ac_n "(cached) $ac_c" 1>&6
7339 cat > conftest.$ac_ext <<EOF
7340 #line 7341 "configure"
7341 #include "confdefs.h"
7343 # include <pthread.h>
7344 /* this check could be improved */
7345 # ifdef PTHREAD_ONCE_INIT
7346 pthread_version_final;
7350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7351 egrep "pthread_version_final" >/dev/null 2>&1; then
7353 ol_pthread_final=yes
7361 cat > conftest.$ac_ext <<EOF
7362 #line 7363 "configure"
7363 #include "confdefs.h"
7365 # include <pthread.h>
7366 /* this check could be improved */
7367 # ifdef pthread_once_init
7368 pthread_version_draft4;
7372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7373 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7375 ol_pthread_draft4=yes
7378 ol_pthread_draft4=no
7383 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7384 ol_cv_pthread_version=final
7385 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7386 ol_cv_pthread_version=draft4
7388 ol_cv_pthread_version=unknown
7393 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7396 if test $ol_cv_pthread_version = final ; then
7397 cat >> confdefs.h <<\EOF
7398 #define HAVE_PTHREADS_FINAL 1
7401 elif test $ol_cv_pthread_version = draft4 ; then
7402 cat >> confdefs.h <<\EOF
7403 #define HAVE_PTHREADS_D4 1
7407 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7410 # consider threads found
7411 ol_with_threads=found
7414 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7415 echo "configure:7416: checking for LinuxThreads pthread.h" >&5
7416 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7417 echo $ac_n "(cached) $ac_c" 1>&6
7419 cat > conftest.$ac_ext <<EOF
7420 #line 7421 "configure"
7421 #include "confdefs.h"
7422 #include <pthread.h>
7424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7425 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7427 ol_cv_header_linux_threads=yes
7430 ol_cv_header_linux_threads=no
7437 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7438 if test $ol_cv_header_linux_threads = yes; then
7439 cat >> confdefs.h <<\EOF
7440 #define HAVE_LINUX_THREADS 1
7446 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7447 echo "configure:7448: checking for GNU Pth pthread.h" >&5
7448 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7449 echo $ac_n "(cached) $ac_c" 1>&6
7451 cat > conftest.$ac_ext <<EOF
7452 #line 7453 "configure"
7453 #include "confdefs.h"
7454 #include <pthread.h>
7455 #ifdef _POSIX_THREAD_IS_GNU_PTH
7460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7461 egrep "__gnu_pth__" >/dev/null 2>&1; then
7463 ol_cv_header_gnu_pth_pthread_h=yes
7466 ol_cv_header_gnu_pth_pthread_h=no
7473 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7476 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7477 for ac_hdr in sched.h
7479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7481 echo "configure:7482: checking for $ac_hdr" >&5
7482 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7483 echo $ac_n "(cached) $ac_c" 1>&6
7485 cat > conftest.$ac_ext <<EOF
7486 #line 7487 "configure"
7487 #include "confdefs.h"
7490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7491 { (eval echo configure:7492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7493 if test -z "$ac_err"; then
7495 eval "ac_cv_header_$ac_safe=yes"
7498 echo "configure: failed program was:" >&5
7499 cat conftest.$ac_ext >&5
7501 eval "ac_cv_header_$ac_safe=no"
7505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7506 echo "$ac_t""yes" 1>&6
7507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7508 cat >> confdefs.h <<EOF
7509 #define $ac_tr_hdr 1
7513 echo "$ac_t""no" 1>&6
7520 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7521 echo "configure:7522: checking for pthread_create in default libraries" >&5
7522 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7523 echo $ac_n "(cached) $ac_c" 1>&6
7526 if test "$cross_compiling" = yes; then
7527 cat > conftest.$ac_ext <<EOF
7528 #line 7529 "configure"
7529 #include "confdefs.h"
7530 /* pthread test headers */
7531 #include <pthread.h>
7533 #define NULL (void*)0
7536 static void *task(p)
7539 return (void *) (p == NULL);
7544 /* pthread test function */
7547 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7548 /* This system (e.g. AIX) defaults detached; must override */
7549 pthread_attr_t attr;
7551 status = pthread_attr_init(&attr);
7552 if( status ) exit( status );
7554 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7555 if( status ) exit( status );
7558 #elif defined( HAVE_PTHREADS_D4 )
7559 # define ATTR pthread_attr_default
7564 /* make sure pthread_create() isn't just a stub */
7565 status = pthread_create(&t, ATTR, task, NULL);
7566 if( status ) exit( status );
7568 /* give the thread a chance to complete...
7569 * it should remain joinable and hence detachable
7573 /* make sure pthread_detach() isn't just a stub */
7574 #if HAVE_PTHREADS_D4
7575 status = pthread_detach( &t );
7577 status = pthread_detach( t );
7580 #ifdef HAVE_LINUX_THREADS
7581 pthread_kill_other_threads_np();
7588 if { (eval echo configure:7589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7590 ol_cv_pthread_create=yes
7592 echo "configure: failed program was:" >&5
7593 cat conftest.$ac_ext >&5
7595 ol_cv_pthread_create=no
7599 cat > conftest.$ac_ext <<EOF
7600 #line 7601 "configure"
7601 #include "confdefs.h"
7602 /* pthread test headers */
7603 #include <pthread.h>
7605 #define NULL (void*)0
7608 static void *task(p)
7611 return (void *) (p == NULL);
7615 int main(argc, argv)
7620 /* pthread test function */
7623 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7624 /* This system (e.g. AIX) defaults detached; must override */
7625 pthread_attr_t attr;
7627 status = pthread_attr_init(&attr);
7628 if( status ) exit( status );
7630 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7631 if( status ) exit( status );
7634 #elif defined( HAVE_PTHREADS_D4 )
7635 # define ATTR pthread_attr_default
7640 /* make sure pthread_create() isn't just a stub */
7641 status = pthread_create(&t, ATTR, task, NULL);
7642 if( status ) exit( status );
7644 /* give the thread a chance to complete...
7645 * it should remain joinable and hence detachable
7649 /* make sure pthread_detach() isn't just a stub */
7650 #if HAVE_PTHREADS_D4
7651 status = pthread_detach( &t );
7653 status = pthread_detach( t );
7656 #ifdef HAVE_LINUX_THREADS
7657 pthread_kill_other_threads_np();
7665 if { (eval echo configure:7666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7667 ol_cv_pthread_create=yes
7669 echo "configure: failed program was:" >&5
7670 cat conftest.$ac_ext >&5
7672 ol_cv_pthread_create=no
7679 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7681 if test $ol_cv_pthread_create != no ; then
7682 ol_link_threads=posix
7686 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7687 if test "$ol_link_threads" = no ; then
7689 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7690 echo "configure:7691: checking for pthread link with -kthread" >&5
7691 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7692 echo $ac_n "(cached) $ac_c" 1>&6
7697 LIBS="-kthread $LIBS"
7699 if test "$cross_compiling" = yes; then
7700 cat > conftest.$ac_ext <<EOF
7701 #line 7702 "configure"
7702 #include "confdefs.h"
7703 /* pthread test headers */
7704 #include <pthread.h>
7706 #define NULL (void*)0
7709 static void *task(p)
7712 return (void *) (p == NULL);
7717 /* pthread test function */
7720 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7721 /* This system (e.g. AIX) defaults detached; must override */
7722 pthread_attr_t attr;
7724 status = pthread_attr_init(&attr);
7725 if( status ) exit( status );
7727 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7728 if( status ) exit( status );
7731 #elif defined( HAVE_PTHREADS_D4 )
7732 # define ATTR pthread_attr_default
7737 /* make sure pthread_create() isn't just a stub */
7738 status = pthread_create(&t, ATTR, task, NULL);
7739 if( status ) exit( status );
7741 /* give the thread a chance to complete...
7742 * it should remain joinable and hence detachable
7746 /* make sure pthread_detach() isn't just a stub */
7747 #if HAVE_PTHREADS_D4
7748 status = pthread_detach( &t );
7750 status = pthread_detach( t );
7753 #ifdef HAVE_LINUX_THREADS
7754 pthread_kill_other_threads_np();
7761 if { (eval echo configure:7762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7763 ol_cv_pthread_kthread=yes
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7768 ol_cv_pthread_kthread=no
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7775 /* pthread test headers */
7776 #include <pthread.h>
7778 #define NULL (void*)0
7781 static void *task(p)
7784 return (void *) (p == NULL);
7788 int main(argc, argv)
7793 /* pthread test function */
7796 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7797 /* This system (e.g. AIX) defaults detached; must override */
7798 pthread_attr_t attr;
7800 status = pthread_attr_init(&attr);
7801 if( status ) exit( status );
7803 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7804 if( status ) exit( status );
7807 #elif defined( HAVE_PTHREADS_D4 )
7808 # define ATTR pthread_attr_default
7813 /* make sure pthread_create() isn't just a stub */
7814 status = pthread_create(&t, ATTR, task, NULL);
7815 if( status ) exit( status );
7817 /* give the thread a chance to complete...
7818 * it should remain joinable and hence detachable
7822 /* make sure pthread_detach() isn't just a stub */
7823 #if HAVE_PTHREADS_D4
7824 status = pthread_detach( &t );
7826 status = pthread_detach( t );
7829 #ifdef HAVE_LINUX_THREADS
7830 pthread_kill_other_threads_np();
7838 if { (eval echo configure:7839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7840 ol_cv_pthread_kthread=yes
7842 echo "configure: failed program was:" >&5
7843 cat conftest.$ac_ext >&5
7845 ol_cv_pthread_kthread=no
7856 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7858 if test $ol_cv_pthread_kthread = yes ; then
7859 ol_link_pthreads="-kthread"
7860 ol_link_threads=posix
7864 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7865 if test "$ol_link_threads" = no ; then
7867 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7868 echo "configure:7869: checking for pthread link with -pthread" >&5
7869 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7870 echo $ac_n "(cached) $ac_c" 1>&6
7875 LIBS="-pthread $LIBS"
7877 if test "$cross_compiling" = yes; then
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* pthread test headers */
7882 #include <pthread.h>
7884 #define NULL (void*)0
7887 static void *task(p)
7890 return (void *) (p == NULL);
7895 /* pthread test function */
7898 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7899 /* This system (e.g. AIX) defaults detached; must override */
7900 pthread_attr_t attr;
7902 status = pthread_attr_init(&attr);
7903 if( status ) exit( status );
7905 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7906 if( status ) exit( status );
7909 #elif defined( HAVE_PTHREADS_D4 )
7910 # define ATTR pthread_attr_default
7915 /* make sure pthread_create() isn't just a stub */
7916 status = pthread_create(&t, ATTR, task, NULL);
7917 if( status ) exit( status );
7919 /* give the thread a chance to complete...
7920 * it should remain joinable and hence detachable
7924 /* make sure pthread_detach() isn't just a stub */
7925 #if HAVE_PTHREADS_D4
7926 status = pthread_detach( &t );
7928 status = pthread_detach( t );
7931 #ifdef HAVE_LINUX_THREADS
7932 pthread_kill_other_threads_np();
7939 if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7941 ol_cv_pthread_pthread=yes
7943 echo "configure: failed program was:" >&5
7944 cat conftest.$ac_ext >&5
7946 ol_cv_pthread_pthread=no
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7953 /* pthread test headers */
7954 #include <pthread.h>
7956 #define NULL (void*)0
7959 static void *task(p)
7962 return (void *) (p == NULL);
7966 int main(argc, argv)
7971 /* pthread test function */
7974 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
7975 /* This system (e.g. AIX) defaults detached; must override */
7976 pthread_attr_t attr;
7978 status = pthread_attr_init(&attr);
7979 if( status ) exit( status );
7981 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
7982 if( status ) exit( status );
7985 #elif defined( HAVE_PTHREADS_D4 )
7986 # define ATTR pthread_attr_default
7991 /* make sure pthread_create() isn't just a stub */
7992 status = pthread_create(&t, ATTR, task, NULL);
7993 if( status ) exit( status );
7995 /* give the thread a chance to complete...
7996 * it should remain joinable and hence detachable
8000 /* make sure pthread_detach() isn't just a stub */
8001 #if HAVE_PTHREADS_D4
8002 status = pthread_detach( &t );
8004 status = pthread_detach( t );
8007 #ifdef HAVE_LINUX_THREADS
8008 pthread_kill_other_threads_np();
8016 if { (eval echo configure:8017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8018 ol_cv_pthread_pthread=yes
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 ol_cv_pthread_pthread=no
8034 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
8036 if test $ol_cv_pthread_pthread = yes ; then
8037 ol_link_pthreads="-pthread"
8038 ol_link_threads=posix
8042 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
8043 if test "$ol_link_threads" = no ; then
8045 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
8046 echo "configure:8047: checking for pthread link with -pthreads" >&5
8047 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8053 LIBS="-pthreads $LIBS"
8055 if test "$cross_compiling" = yes; then
8056 cat > conftest.$ac_ext <<EOF
8057 #line 8058 "configure"
8058 #include "confdefs.h"
8059 /* pthread test headers */
8060 #include <pthread.h>
8062 #define NULL (void*)0
8065 static void *task(p)
8068 return (void *) (p == NULL);
8073 /* pthread test function */
8076 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8077 /* This system (e.g. AIX) defaults detached; must override */
8078 pthread_attr_t attr;
8080 status = pthread_attr_init(&attr);
8081 if( status ) exit( status );
8083 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8084 if( status ) exit( status );
8087 #elif defined( HAVE_PTHREADS_D4 )
8088 # define ATTR pthread_attr_default
8093 /* make sure pthread_create() isn't just a stub */
8094 status = pthread_create(&t, ATTR, task, NULL);
8095 if( status ) exit( status );
8097 /* give the thread a chance to complete...
8098 * it should remain joinable and hence detachable
8102 /* make sure pthread_detach() isn't just a stub */
8103 #if HAVE_PTHREADS_D4
8104 status = pthread_detach( &t );
8106 status = pthread_detach( t );
8109 #ifdef HAVE_LINUX_THREADS
8110 pthread_kill_other_threads_np();
8117 if { (eval echo configure:8118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8119 ol_cv_pthread_pthreads=yes
8121 echo "configure: failed program was:" >&5
8122 cat conftest.$ac_ext >&5
8124 ol_cv_pthread_pthreads=no
8128 cat > conftest.$ac_ext <<EOF
8129 #line 8130 "configure"
8130 #include "confdefs.h"
8131 /* pthread test headers */
8132 #include <pthread.h>
8134 #define NULL (void*)0
8137 static void *task(p)
8140 return (void *) (p == NULL);
8144 int main(argc, argv)
8149 /* pthread test function */
8152 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8153 /* This system (e.g. AIX) defaults detached; must override */
8154 pthread_attr_t attr;
8156 status = pthread_attr_init(&attr);
8157 if( status ) exit( status );
8159 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8160 if( status ) exit( status );
8163 #elif defined( HAVE_PTHREADS_D4 )
8164 # define ATTR pthread_attr_default
8169 /* make sure pthread_create() isn't just a stub */
8170 status = pthread_create(&t, ATTR, task, NULL);
8171 if( status ) exit( status );
8173 /* give the thread a chance to complete...
8174 * it should remain joinable and hence detachable
8178 /* make sure pthread_detach() isn't just a stub */
8179 #if HAVE_PTHREADS_D4
8180 status = pthread_detach( &t );
8182 status = pthread_detach( t );
8185 #ifdef HAVE_LINUX_THREADS
8186 pthread_kill_other_threads_np();
8194 if { (eval echo configure:8195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8196 ol_cv_pthread_pthreads=yes
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8201 ol_cv_pthread_pthreads=no
8212 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8214 if test $ol_cv_pthread_pthreads = yes ; then
8215 ol_link_pthreads="-pthreads"
8216 ol_link_threads=posix
8220 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8221 if test "$ol_link_threads" = no ; then
8223 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8224 echo "configure:8225: checking for pthread link with -mthreads" >&5
8225 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8231 LIBS="-mthreads $LIBS"
8233 if test "$cross_compiling" = yes; then
8234 cat > conftest.$ac_ext <<EOF
8235 #line 8236 "configure"
8236 #include "confdefs.h"
8237 /* pthread test headers */
8238 #include <pthread.h>
8240 #define NULL (void*)0
8243 static void *task(p)
8246 return (void *) (p == NULL);
8251 /* pthread test function */
8254 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8255 /* This system (e.g. AIX) defaults detached; must override */
8256 pthread_attr_t attr;
8258 status = pthread_attr_init(&attr);
8259 if( status ) exit( status );
8261 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8262 if( status ) exit( status );
8265 #elif defined( HAVE_PTHREADS_D4 )
8266 # define ATTR pthread_attr_default
8271 /* make sure pthread_create() isn't just a stub */
8272 status = pthread_create(&t, ATTR, task, NULL);
8273 if( status ) exit( status );
8275 /* give the thread a chance to complete...
8276 * it should remain joinable and hence detachable
8280 /* make sure pthread_detach() isn't just a stub */
8281 #if HAVE_PTHREADS_D4
8282 status = pthread_detach( &t );
8284 status = pthread_detach( t );
8287 #ifdef HAVE_LINUX_THREADS
8288 pthread_kill_other_threads_np();
8295 if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8297 ol_cv_pthread_mthreads=yes
8299 echo "configure: failed program was:" >&5
8300 cat conftest.$ac_ext >&5
8302 ol_cv_pthread_mthreads=no
8306 cat > conftest.$ac_ext <<EOF
8307 #line 8308 "configure"
8308 #include "confdefs.h"
8309 /* pthread test headers */
8310 #include <pthread.h>
8312 #define NULL (void*)0
8315 static void *task(p)
8318 return (void *) (p == NULL);
8322 int main(argc, argv)
8327 /* pthread test function */
8330 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8331 /* This system (e.g. AIX) defaults detached; must override */
8332 pthread_attr_t attr;
8334 status = pthread_attr_init(&attr);
8335 if( status ) exit( status );
8337 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8338 if( status ) exit( status );
8341 #elif defined( HAVE_PTHREADS_D4 )
8342 # define ATTR pthread_attr_default
8347 /* make sure pthread_create() isn't just a stub */
8348 status = pthread_create(&t, ATTR, task, NULL);
8349 if( status ) exit( status );
8351 /* give the thread a chance to complete...
8352 * it should remain joinable and hence detachable
8356 /* make sure pthread_detach() isn't just a stub */
8357 #if HAVE_PTHREADS_D4
8358 status = pthread_detach( &t );
8360 status = pthread_detach( t );
8363 #ifdef HAVE_LINUX_THREADS
8364 pthread_kill_other_threads_np();
8372 if { (eval echo configure:8373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8374 ol_cv_pthread_mthreads=yes
8376 echo "configure: failed program was:" >&5
8377 cat conftest.$ac_ext >&5
8379 ol_cv_pthread_mthreads=no
8390 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8392 if test $ol_cv_pthread_mthreads = yes ; then
8393 ol_link_pthreads="-mthreads"
8394 ol_link_threads=posix
8398 # Pthread try link: -thread (ol_cv_pthread_thread)
8399 if test "$ol_link_threads" = no ; then
8401 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8402 echo "configure:8403: checking for pthread link with -thread" >&5
8403 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8404 echo $ac_n "(cached) $ac_c" 1>&6
8409 LIBS="-thread $LIBS"
8411 if test "$cross_compiling" = yes; then
8412 cat > conftest.$ac_ext <<EOF
8413 #line 8414 "configure"
8414 #include "confdefs.h"
8415 /* pthread test headers */
8416 #include <pthread.h>
8418 #define NULL (void*)0
8421 static void *task(p)
8424 return (void *) (p == NULL);
8429 /* pthread test function */
8432 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8433 /* This system (e.g. AIX) defaults detached; must override */
8434 pthread_attr_t attr;
8436 status = pthread_attr_init(&attr);
8437 if( status ) exit( status );
8439 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8440 if( status ) exit( status );
8443 #elif defined( HAVE_PTHREADS_D4 )
8444 # define ATTR pthread_attr_default
8449 /* make sure pthread_create() isn't just a stub */
8450 status = pthread_create(&t, ATTR, task, NULL);
8451 if( status ) exit( status );
8453 /* give the thread a chance to complete...
8454 * it should remain joinable and hence detachable
8458 /* make sure pthread_detach() isn't just a stub */
8459 #if HAVE_PTHREADS_D4
8460 status = pthread_detach( &t );
8462 status = pthread_detach( t );
8465 #ifdef HAVE_LINUX_THREADS
8466 pthread_kill_other_threads_np();
8473 if { (eval echo configure:8474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8475 ol_cv_pthread_thread=yes
8477 echo "configure: failed program was:" >&5
8478 cat conftest.$ac_ext >&5
8480 ol_cv_pthread_thread=no
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 /* pthread test headers */
8488 #include <pthread.h>
8490 #define NULL (void*)0
8493 static void *task(p)
8496 return (void *) (p == NULL);
8500 int main(argc, argv)
8505 /* pthread test function */
8508 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8509 /* This system (e.g. AIX) defaults detached; must override */
8510 pthread_attr_t attr;
8512 status = pthread_attr_init(&attr);
8513 if( status ) exit( status );
8515 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8516 if( status ) exit( status );
8519 #elif defined( HAVE_PTHREADS_D4 )
8520 # define ATTR pthread_attr_default
8525 /* make sure pthread_create() isn't just a stub */
8526 status = pthread_create(&t, ATTR, task, NULL);
8527 if( status ) exit( status );
8529 /* give the thread a chance to complete...
8530 * it should remain joinable and hence detachable
8534 /* make sure pthread_detach() isn't just a stub */
8535 #if HAVE_PTHREADS_D4
8536 status = pthread_detach( &t );
8538 status = pthread_detach( t );
8541 #ifdef HAVE_LINUX_THREADS
8542 pthread_kill_other_threads_np();
8550 if { (eval echo configure:8551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8552 ol_cv_pthread_thread=yes
8554 echo "configure: failed program was:" >&5
8555 cat conftest.$ac_ext >&5
8557 ol_cv_pthread_thread=no
8568 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8570 if test $ol_cv_pthread_thread = yes ; then
8571 ol_link_pthreads="-thread"
8572 ol_link_threads=posix
8577 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8578 if test "$ol_link_threads" = no ; then
8579 # try -lpthread -lmach -lexc -lc_r
8580 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8581 echo "configure:8582: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8582 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8583 echo $ac_n "(cached) $ac_c" 1>&6
8588 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8590 if test "$cross_compiling" = yes; then
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 /* pthread test headers */
8595 #include <pthread.h>
8597 #define NULL (void*)0
8600 static void *task(p)
8603 return (void *) (p == NULL);
8608 /* pthread test function */
8611 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8612 /* This system (e.g. AIX) defaults detached; must override */
8613 pthread_attr_t attr;
8615 status = pthread_attr_init(&attr);
8616 if( status ) exit( status );
8618 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8619 if( status ) exit( status );
8622 #elif defined( HAVE_PTHREADS_D4 )
8623 # define ATTR pthread_attr_default
8628 /* make sure pthread_create() isn't just a stub */
8629 status = pthread_create(&t, ATTR, task, NULL);
8630 if( status ) exit( status );
8632 /* give the thread a chance to complete...
8633 * it should remain joinable and hence detachable
8637 /* make sure pthread_detach() isn't just a stub */
8638 #if HAVE_PTHREADS_D4
8639 status = pthread_detach( &t );
8641 status = pthread_detach( t );
8644 #ifdef HAVE_LINUX_THREADS
8645 pthread_kill_other_threads_np();
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8666 /* pthread test headers */
8667 #include <pthread.h>
8669 #define NULL (void*)0
8672 static void *task(p)
8675 return (void *) (p == NULL);
8679 int main(argc, argv)
8684 /* pthread test function */
8687 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8688 /* This system (e.g. AIX) defaults detached; must override */
8689 pthread_attr_t attr;
8691 status = pthread_attr_init(&attr);
8692 if( status ) exit( status );
8694 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8695 if( status ) exit( status );
8698 #elif defined( 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 /* give the thread a chance to complete...
8709 * it should remain joinable and hence detachable
8713 /* make sure pthread_detach() isn't just a stub */
8714 #if HAVE_PTHREADS_D4
8715 status = pthread_detach( &t );
8717 status = pthread_detach( t );
8720 #ifdef HAVE_LINUX_THREADS
8721 pthread_kill_other_threads_np();
8729 if { (eval echo configure:8730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8731 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8747 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8749 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8750 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8751 ol_link_threads=posix
8755 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8756 if test "$ol_link_threads" = no ; then
8757 # try -lpthread -lmach -lexc
8758 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8759 echo "configure:8760: checking for pthread link with -lpthread -lmach -lexc" >&5
8760 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8766 LIBS="-lpthread -lmach -lexc $LIBS"
8768 if test "$cross_compiling" = yes; then
8769 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8772 /* pthread test headers */
8773 #include <pthread.h>
8775 #define NULL (void*)0
8778 static void *task(p)
8781 return (void *) (p == NULL);
8786 /* pthread test function */
8789 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8790 /* This system (e.g. AIX) defaults detached; must override */
8791 pthread_attr_t attr;
8793 status = pthread_attr_init(&attr);
8794 if( status ) exit( status );
8796 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8797 if( status ) exit( status );
8800 #elif defined( HAVE_PTHREADS_D4 )
8801 # define ATTR pthread_attr_default
8806 /* make sure pthread_create() isn't just a stub */
8807 status = pthread_create(&t, ATTR, task, NULL);
8808 if( status ) exit( status );
8810 /* give the thread a chance to complete...
8811 * it should remain joinable and hence detachable
8815 /* make sure pthread_detach() isn't just a stub */
8816 #if HAVE_PTHREADS_D4
8817 status = pthread_detach( &t );
8819 status = pthread_detach( t );
8822 #ifdef HAVE_LINUX_THREADS
8823 pthread_kill_other_threads_np();
8830 if { (eval echo configure:8831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8832 ol_cv_pthread_lpthread_lmach_lexc=yes
8834 echo "configure: failed program was:" >&5
8835 cat conftest.$ac_ext >&5
8837 ol_cv_pthread_lpthread_lmach_lexc=no
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 /* pthread test headers */
8845 #include <pthread.h>
8847 #define NULL (void*)0
8850 static void *task(p)
8853 return (void *) (p == NULL);
8857 int main(argc, argv)
8862 /* pthread test function */
8865 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8866 /* This system (e.g. AIX) defaults detached; must override */
8867 pthread_attr_t attr;
8869 status = pthread_attr_init(&attr);
8870 if( status ) exit( status );
8872 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8873 if( status ) exit( status );
8876 #elif defined( HAVE_PTHREADS_D4 )
8877 # define ATTR pthread_attr_default
8882 /* make sure pthread_create() isn't just a stub */
8883 status = pthread_create(&t, ATTR, task, NULL);
8884 if( status ) exit( status );
8886 /* give the thread a chance to complete...
8887 * it should remain joinable and hence detachable
8891 /* make sure pthread_detach() isn't just a stub */
8892 #if HAVE_PTHREADS_D4
8893 status = pthread_detach( &t );
8895 status = pthread_detach( t );
8898 #ifdef HAVE_LINUX_THREADS
8899 pthread_kill_other_threads_np();
8907 if { (eval echo configure:8908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8909 ol_cv_pthread_lpthread_lmach_lexc=yes
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 ol_cv_pthread_lpthread_lmach_lexc=no
8925 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8927 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8928 ol_link_pthreads="-lpthread -lmach -lexc"
8929 ol_link_threads=posix
8934 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8935 if test "$ol_link_threads" = no ; then
8936 # try -lpthread -Wl,-woff,85
8937 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8938 echo "configure:8939: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8939 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8945 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8947 if test "$cross_compiling" = yes; then
8948 cat > conftest.$ac_ext <<EOF
8949 #line 8950 "configure"
8950 #include "confdefs.h"
8951 /* pthread test headers */
8952 #include <pthread.h>
8954 #define NULL (void*)0
8957 static void *task(p)
8960 return (void *) (p == NULL);
8965 /* pthread test function */
8968 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
8969 /* This system (e.g. AIX) defaults detached; must override */
8970 pthread_attr_t attr;
8972 status = pthread_attr_init(&attr);
8973 if( status ) exit( status );
8975 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
8976 if( status ) exit( status );
8979 #elif defined( HAVE_PTHREADS_D4 )
8980 # define ATTR pthread_attr_default
8985 /* make sure pthread_create() isn't just a stub */
8986 status = pthread_create(&t, ATTR, task, NULL);
8987 if( status ) exit( status );
8989 /* give the thread a chance to complete...
8990 * it should remain joinable and hence detachable
8994 /* make sure pthread_detach() isn't just a stub */
8995 #if HAVE_PTHREADS_D4
8996 status = pthread_detach( &t );
8998 status = pthread_detach( t );
9001 #ifdef HAVE_LINUX_THREADS
9002 pthread_kill_other_threads_np();
9009 if { (eval echo configure:9010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9011 ol_cv_pthread_lib_lpthread_woff=yes
9013 echo "configure: failed program was:" >&5
9014 cat conftest.$ac_ext >&5
9016 ol_cv_pthread_lib_lpthread_woff=no
9020 cat > conftest.$ac_ext <<EOF
9021 #line 9022 "configure"
9022 #include "confdefs.h"
9023 /* pthread test headers */
9024 #include <pthread.h>
9026 #define NULL (void*)0
9029 static void *task(p)
9032 return (void *) (p == NULL);
9036 int main(argc, argv)
9041 /* pthread test function */
9044 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9045 /* This system (e.g. AIX) defaults detached; must override */
9046 pthread_attr_t attr;
9048 status = pthread_attr_init(&attr);
9049 if( status ) exit( status );
9051 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9052 if( status ) exit( status );
9055 #elif defined( HAVE_PTHREADS_D4 )
9056 # define ATTR pthread_attr_default
9061 /* make sure pthread_create() isn't just a stub */
9062 status = pthread_create(&t, ATTR, task, NULL);
9063 if( status ) exit( status );
9065 /* give the thread a chance to complete...
9066 * it should remain joinable and hence detachable
9070 /* make sure pthread_detach() isn't just a stub */
9071 #if HAVE_PTHREADS_D4
9072 status = pthread_detach( &t );
9074 status = pthread_detach( t );
9077 #ifdef HAVE_LINUX_THREADS
9078 pthread_kill_other_threads_np();
9086 if { (eval echo configure:9087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9088 ol_cv_pthread_lib_lpthread_woff=yes
9090 echo "configure: failed program was:" >&5
9091 cat conftest.$ac_ext >&5
9093 ol_cv_pthread_lib_lpthread_woff=no
9104 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9106 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9107 ol_link_pthreads="-lpthread -Wl,-woff,85"
9108 ol_link_threads=posix
9113 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9114 if test "$ol_link_threads" = no ; then
9116 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9117 echo "configure:9118: checking for pthread link with -lpthread" >&5
9118 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
9124 LIBS="-lpthread $LIBS"
9126 if test "$cross_compiling" = yes; then
9127 cat > conftest.$ac_ext <<EOF
9128 #line 9129 "configure"
9129 #include "confdefs.h"
9130 /* pthread test headers */
9131 #include <pthread.h>
9133 #define NULL (void*)0
9136 static void *task(p)
9139 return (void *) (p == NULL);
9144 /* pthread test function */
9147 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9148 /* This system (e.g. AIX) defaults detached; must override */
9149 pthread_attr_t attr;
9151 status = pthread_attr_init(&attr);
9152 if( status ) exit( status );
9154 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9155 if( status ) exit( status );
9158 #elif defined( HAVE_PTHREADS_D4 )
9159 # define ATTR pthread_attr_default
9164 /* make sure pthread_create() isn't just a stub */
9165 status = pthread_create(&t, ATTR, task, NULL);
9166 if( status ) exit( status );
9168 /* give the thread a chance to complete...
9169 * it should remain joinable and hence detachable
9173 /* make sure pthread_detach() isn't just a stub */
9174 #if HAVE_PTHREADS_D4
9175 status = pthread_detach( &t );
9177 status = pthread_detach( t );
9180 #ifdef HAVE_LINUX_THREADS
9181 pthread_kill_other_threads_np();
9188 if { (eval echo configure:9189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9190 ol_cv_pthread_lpthread=yes
9192 echo "configure: failed program was:" >&5
9193 cat conftest.$ac_ext >&5
9195 ol_cv_pthread_lpthread=no
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 /* pthread test headers */
9203 #include <pthread.h>
9205 #define NULL (void*)0
9208 static void *task(p)
9211 return (void *) (p == NULL);
9215 int main(argc, argv)
9220 /* pthread test function */
9223 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9224 /* This system (e.g. AIX) defaults detached; must override */
9225 pthread_attr_t attr;
9227 status = pthread_attr_init(&attr);
9228 if( status ) exit( status );
9230 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9231 if( status ) exit( status );
9234 #elif defined( HAVE_PTHREADS_D4 )
9235 # define ATTR pthread_attr_default
9240 /* make sure pthread_create() isn't just a stub */
9241 status = pthread_create(&t, ATTR, task, NULL);
9242 if( status ) exit( status );
9244 /* give the thread a chance to complete...
9245 * it should remain joinable and hence detachable
9249 /* make sure pthread_detach() isn't just a stub */
9250 #if HAVE_PTHREADS_D4
9251 status = pthread_detach( &t );
9253 status = pthread_detach( t );
9256 #ifdef HAVE_LINUX_THREADS
9257 pthread_kill_other_threads_np();
9265 if { (eval echo configure:9266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9267 ol_cv_pthread_lpthread=yes
9269 echo "configure: failed program was:" >&5
9270 cat conftest.$ac_ext >&5
9272 ol_cv_pthread_lpthread=no
9283 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9285 if test $ol_cv_pthread_lpthread = yes ; then
9286 ol_link_pthreads="-lpthread"
9287 ol_link_threads=posix
9291 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9292 if test "$ol_link_threads" = no ; then
9294 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9295 echo "configure:9296: checking for pthread link with -lc_r" >&5
9296 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9297 echo $ac_n "(cached) $ac_c" 1>&6
9304 if test "$cross_compiling" = yes; then
9305 cat > conftest.$ac_ext <<EOF
9306 #line 9307 "configure"
9307 #include "confdefs.h"
9308 /* pthread test headers */
9309 #include <pthread.h>
9311 #define NULL (void*)0
9314 static void *task(p)
9317 return (void *) (p == NULL);
9322 /* pthread test function */
9325 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9326 /* This system (e.g. AIX) defaults detached; must override */
9327 pthread_attr_t attr;
9329 status = pthread_attr_init(&attr);
9330 if( status ) exit( status );
9332 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9333 if( status ) exit( status );
9336 #elif defined( HAVE_PTHREADS_D4 )
9337 # define ATTR pthread_attr_default
9342 /* make sure pthread_create() isn't just a stub */
9343 status = pthread_create(&t, ATTR, task, NULL);
9344 if( status ) exit( status );
9346 /* give the thread a chance to complete...
9347 * it should remain joinable and hence detachable
9351 /* make sure pthread_detach() isn't just a stub */
9352 #if HAVE_PTHREADS_D4
9353 status = pthread_detach( &t );
9355 status = pthread_detach( t );
9358 #ifdef HAVE_LINUX_THREADS
9359 pthread_kill_other_threads_np();
9366 if { (eval echo configure:9367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9368 ol_cv_pthread_lc_r=yes
9370 echo "configure: failed program was:" >&5
9371 cat conftest.$ac_ext >&5
9373 ol_cv_pthread_lc_r=no
9377 cat > conftest.$ac_ext <<EOF
9378 #line 9379 "configure"
9379 #include "confdefs.h"
9380 /* pthread test headers */
9381 #include <pthread.h>
9383 #define NULL (void*)0
9386 static void *task(p)
9389 return (void *) (p == NULL);
9393 int main(argc, argv)
9398 /* pthread test function */
9401 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9402 /* This system (e.g. AIX) defaults detached; must override */
9403 pthread_attr_t attr;
9405 status = pthread_attr_init(&attr);
9406 if( status ) exit( status );
9408 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9409 if( status ) exit( status );
9412 #elif defined( HAVE_PTHREADS_D4 )
9413 # define ATTR pthread_attr_default
9418 /* make sure pthread_create() isn't just a stub */
9419 status = pthread_create(&t, ATTR, task, NULL);
9420 if( status ) exit( status );
9422 /* give the thread a chance to complete...
9423 * it should remain joinable and hence detachable
9427 /* make sure pthread_detach() isn't just a stub */
9428 #if HAVE_PTHREADS_D4
9429 status = pthread_detach( &t );
9431 status = pthread_detach( t );
9434 #ifdef HAVE_LINUX_THREADS
9435 pthread_kill_other_threads_np();
9443 if { (eval echo configure:9444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9445 ol_cv_pthread_lc_r=yes
9447 echo "configure: failed program was:" >&5
9448 cat conftest.$ac_ext >&5
9450 ol_cv_pthread_lc_r=no
9461 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9463 if test $ol_cv_pthread_lc_r = yes ; then
9464 ol_link_pthreads="-lc_r"
9465 ol_link_threads=posix
9470 # Pthread try link: -threads (ol_cv_pthread_threads)
9471 if test "$ol_link_threads" = no ; then
9473 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9474 echo "configure:9475: checking for pthread link with -threads" >&5
9475 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9476 echo $ac_n "(cached) $ac_c" 1>&6
9481 LIBS="-threads $LIBS"
9483 if test "$cross_compiling" = yes; then
9484 cat > conftest.$ac_ext <<EOF
9485 #line 9486 "configure"
9486 #include "confdefs.h"
9487 /* pthread test headers */
9488 #include <pthread.h>
9490 #define NULL (void*)0
9493 static void *task(p)
9496 return (void *) (p == NULL);
9501 /* pthread test function */
9504 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9505 /* This system (e.g. AIX) defaults detached; must override */
9506 pthread_attr_t attr;
9508 status = pthread_attr_init(&attr);
9509 if( status ) exit( status );
9511 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9512 if( status ) exit( status );
9515 #elif defined( HAVE_PTHREADS_D4 )
9516 # define ATTR pthread_attr_default
9521 /* make sure pthread_create() isn't just a stub */
9522 status = pthread_create(&t, ATTR, task, NULL);
9523 if( status ) exit( status );
9525 /* give the thread a chance to complete...
9526 * it should remain joinable and hence detachable
9530 /* make sure pthread_detach() isn't just a stub */
9531 #if HAVE_PTHREADS_D4
9532 status = pthread_detach( &t );
9534 status = pthread_detach( t );
9537 #ifdef HAVE_LINUX_THREADS
9538 pthread_kill_other_threads_np();
9545 if { (eval echo configure:9546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9547 ol_cv_pthread_threads=yes
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9552 ol_cv_pthread_threads=no
9556 cat > conftest.$ac_ext <<EOF
9557 #line 9558 "configure"
9558 #include "confdefs.h"
9559 /* pthread test headers */
9560 #include <pthread.h>
9562 #define NULL (void*)0
9565 static void *task(p)
9568 return (void *) (p == NULL);
9572 int main(argc, argv)
9577 /* pthread test function */
9580 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9581 /* This system (e.g. AIX) defaults detached; must override */
9582 pthread_attr_t attr;
9584 status = pthread_attr_init(&attr);
9585 if( status ) exit( status );
9587 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9588 if( status ) exit( status );
9591 #elif defined( HAVE_PTHREADS_D4 )
9592 # define ATTR pthread_attr_default
9597 /* make sure pthread_create() isn't just a stub */
9598 status = pthread_create(&t, ATTR, task, NULL);
9599 if( status ) exit( status );
9601 /* give the thread a chance to complete...
9602 * it should remain joinable and hence detachable
9606 /* make sure pthread_detach() isn't just a stub */
9607 #if HAVE_PTHREADS_D4
9608 status = pthread_detach( &t );
9610 status = pthread_detach( t );
9613 #ifdef HAVE_LINUX_THREADS
9614 pthread_kill_other_threads_np();
9622 if { (eval echo configure:9623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9624 ol_cv_pthread_threads=yes
9626 echo "configure: failed program was:" >&5
9627 cat conftest.$ac_ext >&5
9629 ol_cv_pthread_threads=no
9640 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9642 if test $ol_cv_pthread_threads = yes ; then
9643 ol_link_pthreads="-threads"
9644 ol_link_threads=posix
9649 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9650 if test "$ol_link_threads" = no ; then
9651 # try -lpthreads -lmach -lexc -lc_r
9652 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9653 echo "configure:9654: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9654 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9655 echo $ac_n "(cached) $ac_c" 1>&6
9660 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9662 if test "$cross_compiling" = yes; then
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 /* pthread test headers */
9667 #include <pthread.h>
9669 #define NULL (void*)0
9672 static void *task(p)
9675 return (void *) (p == NULL);
9680 /* pthread test function */
9683 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9684 /* This system (e.g. AIX) defaults detached; must override */
9685 pthread_attr_t attr;
9687 status = pthread_attr_init(&attr);
9688 if( status ) exit( status );
9690 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9691 if( status ) exit( status );
9694 #elif defined( HAVE_PTHREADS_D4 )
9695 # define ATTR pthread_attr_default
9700 /* make sure pthread_create() isn't just a stub */
9701 status = pthread_create(&t, ATTR, task, NULL);
9702 if( status ) exit( status );
9704 /* give the thread a chance to complete...
9705 * it should remain joinable and hence detachable
9709 /* make sure pthread_detach() isn't just a stub */
9710 #if HAVE_PTHREADS_D4
9711 status = pthread_detach( &t );
9713 status = pthread_detach( t );
9716 #ifdef HAVE_LINUX_THREADS
9717 pthread_kill_other_threads_np();
9724 if { (eval echo configure:9725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9726 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9728 echo "configure: failed program was:" >&5
9729 cat conftest.$ac_ext >&5
9731 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9735 cat > conftest.$ac_ext <<EOF
9736 #line 9737 "configure"
9737 #include "confdefs.h"
9738 /* pthread test headers */
9739 #include <pthread.h>
9741 #define NULL (void*)0
9744 static void *task(p)
9747 return (void *) (p == NULL);
9751 int main(argc, argv)
9756 /* pthread test function */
9759 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9760 /* This system (e.g. AIX) defaults detached; must override */
9761 pthread_attr_t attr;
9763 status = pthread_attr_init(&attr);
9764 if( status ) exit( status );
9766 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9767 if( status ) exit( status );
9770 #elif defined( HAVE_PTHREADS_D4 )
9771 # define ATTR pthread_attr_default
9776 /* make sure pthread_create() isn't just a stub */
9777 status = pthread_create(&t, ATTR, task, NULL);
9778 if( status ) exit( status );
9780 /* give the thread a chance to complete...
9781 * it should remain joinable and hence detachable
9785 /* make sure pthread_detach() isn't just a stub */
9786 #if HAVE_PTHREADS_D4
9787 status = pthread_detach( &t );
9789 status = pthread_detach( t );
9792 #ifdef HAVE_LINUX_THREADS
9793 pthread_kill_other_threads_np();
9801 if { (eval echo configure:9802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9803 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9805 echo "configure: failed program was:" >&5
9806 cat conftest.$ac_ext >&5
9808 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9819 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9821 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9822 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9823 ol_link_threads=posix
9827 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9828 if test "$ol_link_threads" = no ; then
9829 # try -lpthreads -lmach -lexc
9830 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9831 echo "configure:9832: checking for pthread link with -lpthreads -lmach -lexc" >&5
9832 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9838 LIBS="-lpthreads -lmach -lexc $LIBS"
9840 if test "$cross_compiling" = yes; then
9841 cat > conftest.$ac_ext <<EOF
9842 #line 9843 "configure"
9843 #include "confdefs.h"
9844 /* pthread test headers */
9845 #include <pthread.h>
9847 #define NULL (void*)0
9850 static void *task(p)
9853 return (void *) (p == NULL);
9858 /* pthread test function */
9861 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9862 /* This system (e.g. AIX) defaults detached; must override */
9863 pthread_attr_t attr;
9865 status = pthread_attr_init(&attr);
9866 if( status ) exit( status );
9868 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9869 if( status ) exit( status );
9872 #elif defined( HAVE_PTHREADS_D4 )
9873 # define ATTR pthread_attr_default
9878 /* make sure pthread_create() isn't just a stub */
9879 status = pthread_create(&t, ATTR, task, NULL);
9880 if( status ) exit( status );
9882 /* give the thread a chance to complete...
9883 * it should remain joinable and hence detachable
9887 /* make sure pthread_detach() isn't just a stub */
9888 #if HAVE_PTHREADS_D4
9889 status = pthread_detach( &t );
9891 status = pthread_detach( t );
9894 #ifdef HAVE_LINUX_THREADS
9895 pthread_kill_other_threads_np();
9902 if { (eval echo configure:9903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9904 ol_cv_pthread_lpthreads_lmach_lexc=yes
9906 echo "configure: failed program was:" >&5
9907 cat conftest.$ac_ext >&5
9909 ol_cv_pthread_lpthreads_lmach_lexc=no
9913 cat > conftest.$ac_ext <<EOF
9914 #line 9915 "configure"
9915 #include "confdefs.h"
9916 /* pthread test headers */
9917 #include <pthread.h>
9919 #define NULL (void*)0
9922 static void *task(p)
9925 return (void *) (p == NULL);
9929 int main(argc, argv)
9934 /* pthread test function */
9937 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
9938 /* This system (e.g. AIX) defaults detached; must override */
9939 pthread_attr_t attr;
9941 status = pthread_attr_init(&attr);
9942 if( status ) exit( status );
9944 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
9945 if( status ) exit( status );
9948 #elif defined( HAVE_PTHREADS_D4 )
9949 # define ATTR pthread_attr_default
9954 /* make sure pthread_create() isn't just a stub */
9955 status = pthread_create(&t, ATTR, task, NULL);
9956 if( status ) exit( status );
9958 /* give the thread a chance to complete...
9959 * it should remain joinable and hence detachable
9963 /* make sure pthread_detach() isn't just a stub */
9964 #if HAVE_PTHREADS_D4
9965 status = pthread_detach( &t );
9967 status = pthread_detach( t );
9970 #ifdef HAVE_LINUX_THREADS
9971 pthread_kill_other_threads_np();
9979 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9981 ol_cv_pthread_lpthreads_lmach_lexc=yes
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9986 ol_cv_pthread_lpthreads_lmach_lexc=no
9997 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9999 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10000 ol_link_pthreads="-lpthreads -lmach -lexc"
10001 ol_link_threads=posix
10005 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10006 if test "$ol_link_threads" = no ; then
10007 # try -lpthreads -lexc
10008 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10009 echo "configure:10010: checking for pthread link with -lpthreads -lexc" >&5
10010 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10016 LIBS="-lpthreads -lexc $LIBS"
10018 if test "$cross_compiling" = yes; then
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 /* pthread test headers */
10023 #include <pthread.h>
10025 #define NULL (void*)0
10028 static void *task(p)
10031 return (void *) (p == NULL);
10036 /* pthread test function */
10039 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10040 /* This system (e.g. AIX) defaults detached; must override */
10041 pthread_attr_t attr;
10043 status = pthread_attr_init(&attr);
10044 if( status ) exit( status );
10046 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10047 if( status ) exit( status );
10049 # define ATTR &attr
10050 #elif defined( HAVE_PTHREADS_D4 )
10051 # define ATTR pthread_attr_default
10056 /* make sure pthread_create() isn't just a stub */
10057 status = pthread_create(&t, ATTR, task, NULL);
10058 if( status ) exit( status );
10060 /* give the thread a chance to complete...
10061 * it should remain joinable and hence detachable
10065 /* make sure pthread_detach() isn't just a stub */
10066 #if HAVE_PTHREADS_D4
10067 status = pthread_detach( &t );
10069 status = pthread_detach( t );
10072 #ifdef HAVE_LINUX_THREADS
10073 pthread_kill_other_threads_np();
10080 if { (eval echo configure:10081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10082 ol_cv_pthread_lpthreads_lexc=yes
10084 echo "configure: failed program was:" >&5
10085 cat conftest.$ac_ext >&5
10087 ol_cv_pthread_lpthreads_lexc=no
10091 cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 /* pthread test headers */
10095 #include <pthread.h>
10097 #define NULL (void*)0
10100 static void *task(p)
10103 return (void *) (p == NULL);
10107 int main(argc, argv)
10112 /* pthread test function */
10115 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10116 /* This system (e.g. AIX) defaults detached; must override */
10117 pthread_attr_t attr;
10119 status = pthread_attr_init(&attr);
10120 if( status ) exit( status );
10122 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10123 if( status ) exit( status );
10125 # define ATTR &attr
10126 #elif defined( HAVE_PTHREADS_D4 )
10127 # define ATTR pthread_attr_default
10132 /* make sure pthread_create() isn't just a stub */
10133 status = pthread_create(&t, ATTR, task, NULL);
10134 if( status ) exit( status );
10136 /* give the thread a chance to complete...
10137 * it should remain joinable and hence detachable
10141 /* make sure pthread_detach() isn't just a stub */
10142 #if HAVE_PTHREADS_D4
10143 status = pthread_detach( &t );
10145 status = pthread_detach( t );
10148 #ifdef HAVE_LINUX_THREADS
10149 pthread_kill_other_threads_np();
10157 if { (eval echo configure:10158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10159 ol_cv_pthread_lpthreads_lexc=yes
10161 echo "configure: failed program was:" >&5
10162 cat conftest.$ac_ext >&5
10164 ol_cv_pthread_lpthreads_lexc=no
10175 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10177 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10178 ol_link_pthreads="-lpthreads -lexc"
10179 ol_link_threads=posix
10184 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10185 if test "$ol_link_threads" = no ; then
10187 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10188 echo "configure:10189: checking for pthread link with -lpthreads" >&5
10189 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10190 echo $ac_n "(cached) $ac_c" 1>&6
10195 LIBS="-lpthreads $LIBS"
10197 if test "$cross_compiling" = yes; then
10198 cat > conftest.$ac_ext <<EOF
10199 #line 10200 "configure"
10200 #include "confdefs.h"
10201 /* pthread test headers */
10202 #include <pthread.h>
10204 #define NULL (void*)0
10207 static void *task(p)
10210 return (void *) (p == NULL);
10215 /* pthread test function */
10218 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10219 /* This system (e.g. AIX) defaults detached; must override */
10220 pthread_attr_t attr;
10222 status = pthread_attr_init(&attr);
10223 if( status ) exit( status );
10225 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10226 if( status ) exit( status );
10228 # define ATTR &attr
10229 #elif defined( HAVE_PTHREADS_D4 )
10230 # define ATTR pthread_attr_default
10235 /* make sure pthread_create() isn't just a stub */
10236 status = pthread_create(&t, ATTR, task, NULL);
10237 if( status ) exit( status );
10239 /* give the thread a chance to complete...
10240 * it should remain joinable and hence detachable
10244 /* make sure pthread_detach() isn't just a stub */
10245 #if HAVE_PTHREADS_D4
10246 status = pthread_detach( &t );
10248 status = pthread_detach( t );
10251 #ifdef HAVE_LINUX_THREADS
10252 pthread_kill_other_threads_np();
10259 if { (eval echo configure:10260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 ol_cv_pthread_lib_lpthreads=yes
10263 echo "configure: failed program was:" >&5
10264 cat conftest.$ac_ext >&5
10266 ol_cv_pthread_lib_lpthreads=no
10270 cat > conftest.$ac_ext <<EOF
10271 #line 10272 "configure"
10272 #include "confdefs.h"
10273 /* pthread test headers */
10274 #include <pthread.h>
10276 #define NULL (void*)0
10279 static void *task(p)
10282 return (void *) (p == NULL);
10286 int main(argc, argv)
10291 /* pthread test function */
10294 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10295 /* This system (e.g. AIX) defaults detached; must override */
10296 pthread_attr_t attr;
10298 status = pthread_attr_init(&attr);
10299 if( status ) exit( status );
10301 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10302 if( status ) exit( status );
10304 # define ATTR &attr
10305 #elif defined( HAVE_PTHREADS_D4 )
10306 # define ATTR pthread_attr_default
10311 /* make sure pthread_create() isn't just a stub */
10312 status = pthread_create(&t, ATTR, task, NULL);
10313 if( status ) exit( status );
10315 /* give the thread a chance to complete...
10316 * it should remain joinable and hence detachable
10320 /* make sure pthread_detach() isn't just a stub */
10321 #if HAVE_PTHREADS_D4
10322 status = pthread_detach( &t );
10324 status = pthread_detach( t );
10327 #ifdef HAVE_LINUX_THREADS
10328 pthread_kill_other_threads_np();
10336 if { (eval echo configure:10337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10338 ol_cv_pthread_lib_lpthreads=yes
10340 echo "configure: failed program was:" >&5
10341 cat conftest.$ac_ext >&5
10343 ol_cv_pthread_lib_lpthreads=no
10354 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10356 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10357 ol_link_pthreads="-lpthreads"
10358 ol_link_threads=posix
10363 if test $ol_link_threads != no ; then
10364 cat >> confdefs.h <<\EOF
10365 #define HAVE_PTHREADS 1
10369 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10371 save_CPPFLAGS="$CPPFLAGS"
10373 LIBS="$LTHREAD_LIBS $LIBS"
10375 for ac_func in sched_yield pthread_yield
10377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10378 echo "configure:10379: checking for $ac_func" >&5
10379 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10380 echo $ac_n "(cached) $ac_c" 1>&6
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 /* System header to define __stub macros and hopefully few prototypes,
10386 which can conflict with char $ac_func(); below. */
10387 #include <assert.h>
10388 /* Override any gcc2 internal prototype to avoid an error. */
10389 /* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10396 /* The GNU C library defines this for functions which it implements
10397 to always fail with ENOSYS. Some functions are actually named
10398 something starting with __ and the normal name is an alias. */
10399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10407 if { (eval echo configure:10408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10409 eval "ac_cv_func_$ac_func=yes"
10411 echo "configure: failed program was:" >&5
10412 cat conftest.$ac_ext >&5
10414 eval "ac_cv_func_$ac_func=no"
10419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10420 echo "$ac_t""yes" 1>&6
10421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10422 cat >> confdefs.h <<EOF
10423 #define $ac_tr_func 1
10427 echo "$ac_t""no" 1>&6
10432 if test $ac_cv_func_sched_yield = no -a \
10433 $ac_cv_func_pthread_yield = no ; then
10434 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10435 echo "configure:10436: checking for sched_yield in -lrt" >&5
10436 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10437 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10440 ac_save_LIBS="$LIBS"
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 /* Override any gcc2 internal prototype to avoid an error. */
10446 /* We use char because int might match the return type of a gcc2
10447 builtin and then its argument prototype would still apply. */
10448 char sched_yield();
10454 if { (eval echo configure:10455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10456 eval "ac_cv_lib_$ac_lib_var=yes"
10458 echo "configure: failed program was:" >&5
10459 cat conftest.$ac_ext >&5
10461 eval "ac_cv_lib_$ac_lib_var=no"
10464 LIBS="$ac_save_LIBS"
10467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10468 echo "$ac_t""yes" 1>&6
10469 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10470 cat >> confdefs.h <<\EOF
10471 #define HAVE_SCHED_YIELD 1
10474 ac_cv_func_sched_yield=yes
10476 echo "$ac_t""no" 1>&6
10477 ac_cv_func_sched_yield=no
10481 if test $ac_cv_func_sched_yield = no -a \
10482 $ac_cv_func_pthread_yield = no ; then
10483 for ac_func in thr_yield
10485 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10486 echo "configure:10487: checking for $ac_func" >&5
10487 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493 /* System header to define __stub macros and hopefully few prototypes,
10494 which can conflict with char $ac_func(); below. */
10495 #include <assert.h>
10496 /* Override any gcc2 internal prototype to avoid an error. */
10497 /* We use char because int might match the return type of a gcc2
10498 builtin and then its argument prototype would still apply. */
10504 /* The GNU C library defines this for functions which it implements
10505 to always fail with ENOSYS. Some functions are actually named
10506 something starting with __ and the normal name is an alias. */
10507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10515 if { (eval echo configure:10516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10517 eval "ac_cv_func_$ac_func=yes"
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10522 eval "ac_cv_func_$ac_func=no"
10527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10528 echo "$ac_t""yes" 1>&6
10529 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10530 cat >> confdefs.h <<EOF
10531 #define $ac_tr_func 1
10535 echo "$ac_t""no" 1>&6
10540 if test $ac_cv_func_sched_yield = no -a \
10541 $ac_cv_func_pthread_yield = no -a \
10542 "$ac_cv_func_thr_yield" = no ; then
10543 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10546 for ac_func in pthread_kill pthread_rwlock_destroy
10548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10549 echo "configure:10550: checking for $ac_func" >&5
10550 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10556 /* System header to define __stub macros and hopefully few prototypes,
10557 which can conflict with char $ac_func(); below. */
10558 #include <assert.h>
10559 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10567 /* The GNU C library defines this for functions which it implements
10568 to always fail with ENOSYS. Some functions are actually named
10569 something starting with __ and the normal name is an alias. */
10570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10580 eval "ac_cv_func_$ac_func=yes"
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 eval "ac_cv_func_$ac_func=no"
10590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593 cat >> confdefs.h <<EOF
10594 #define $ac_tr_func 1
10598 echo "$ac_t""no" 1>&6
10603 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
10604 echo "configure:10605: checking for pthread_detach with <pthread.h>" >&5
10605 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
10606 echo $ac_n "(cached) $ac_c" 1>&6
10609 cat > conftest.$ac_ext <<EOF
10610 #line 10611 "configure"
10611 #include "confdefs.h"
10613 #include <pthread.h>
10615 #define NULL (void*)0
10619 pthread_detach(NULL);
10622 if { (eval echo configure:10623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10624 ol_cv_func_pthread_detach=yes
10626 echo "configure: failed program was:" >&5
10627 cat conftest.$ac_ext >&5
10629 ol_cv_func_pthread_detach=no
10635 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
10637 if test $ol_cv_func_pthread_detach = no ; then
10638 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
10641 cat >> confdefs.h <<\EOF
10642 #define HAVE_PTHREAD_DETACH 1
10647 pthread_setconcurrency \
10648 pthread_getconcurrency \
10649 thr_setconcurrency \
10650 thr_getconcurrency \
10653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10654 echo "configure:10655: checking for $ac_func" >&5
10655 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10656 echo $ac_n "(cached) $ac_c" 1>&6
10658 cat > conftest.$ac_ext <<EOF
10659 #line 10660 "configure"
10660 #include "confdefs.h"
10661 /* System header to define __stub macros and hopefully few prototypes,
10662 which can conflict with char $ac_func(); below. */
10663 #include <assert.h>
10664 /* Override any gcc2 internal prototype to avoid an error. */
10665 /* We use char because int might match the return type of a gcc2
10666 builtin and then its argument prototype would still apply. */
10672 /* The GNU C library defines this for functions which it implements
10673 to always fail with ENOSYS. Some functions are actually named
10674 something starting with __ and the normal name is an alias. */
10675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10685 eval "ac_cv_func_$ac_func=yes"
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 eval "ac_cv_func_$ac_func=no"
10695 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10696 echo "$ac_t""yes" 1>&6
10697 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10698 cat >> confdefs.h <<EOF
10699 #define $ac_tr_func 1
10703 echo "$ac_t""no" 1>&6
10709 for ac_func in pthread_kill_other_threads_np
10711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10712 echo "configure:10713: checking for $ac_func" >&5
10713 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10714 echo $ac_n "(cached) $ac_c" 1>&6
10716 cat > conftest.$ac_ext <<EOF
10717 #line 10718 "configure"
10718 #include "confdefs.h"
10719 /* System header to define __stub macros and hopefully few prototypes,
10720 which can conflict with char $ac_func(); below. */
10721 #include <assert.h>
10722 /* Override any gcc2 internal prototype to avoid an error. */
10723 /* We use char because int might match the return type of a gcc2
10724 builtin and then its argument prototype would still apply. */
10730 /* The GNU C library defines this for functions which it implements
10731 to always fail with ENOSYS. Some functions are actually named
10732 something starting with __ and the normal name is an alias. */
10733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10743 eval "ac_cv_func_$ac_func=yes"
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10748 eval "ac_cv_func_$ac_func=no"
10753 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10754 echo "$ac_t""yes" 1>&6
10755 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10756 cat >> confdefs.h <<EOF
10757 #define $ac_tr_func 1
10761 echo "$ac_t""no" 1>&6
10765 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10766 echo "configure:10767: checking for LinuxThreads implementation" >&5
10767 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10768 echo $ac_n "(cached) $ac_c" 1>&6
10770 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10773 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10778 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10779 echo "configure:10780: checking for LinuxThreads consistency" >&5
10780 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10781 echo $ac_n "(cached) $ac_c" 1>&6
10784 if test $ol_cv_header_linux_threads = yes -a \
10785 $ol_cv_sys_linux_threads = yes; then
10786 ol_cv_linux_threads=yes
10787 elif test $ol_cv_header_linux_threads = no -a \
10788 $ol_cv_sys_linux_threads = no; then
10789 ol_cv_linux_threads=no
10791 ol_cv_linux_threads=error
10796 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10799 if test $ol_cv_linux_threads = error; then
10800 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10803 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10804 echo "configure:10805: checking if pthread_create() works" >&5
10805 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10806 echo $ac_n "(cached) $ac_c" 1>&6
10809 if test "$cross_compiling" = yes; then
10810 ol_cv_pthread_create_works=yes
10812 cat > conftest.$ac_ext <<EOF
10813 #line 10814 "configure"
10814 #include "confdefs.h"
10815 /* pthread test headers */
10816 #include <pthread.h>
10818 #define NULL (void*)0
10821 static void *task(p)
10824 return (void *) (p == NULL);
10828 int main(argc, argv)
10833 /* pthread test function */
10836 #if HAVE_PTHREADS_FINAL && defined(PTHREAD_CREATE_UNDETACHED)
10837 /* This system (e.g. AIX) defaults detached; must override */
10838 pthread_attr_t attr;
10840 status = pthread_attr_init(&attr);
10841 if( status ) exit( status );
10843 status = pthread_attr_setdetachstate(&attr,PTHREAD_CREATE_UNDETACHED);
10844 if( status ) exit( status );
10846 # define ATTR &attr
10847 #elif defined( HAVE_PTHREADS_D4 )
10848 # define ATTR pthread_attr_default
10853 /* make sure pthread_create() isn't just a stub */
10854 status = pthread_create(&t, ATTR, task, NULL);
10855 if( status ) exit( status );
10857 /* give the thread a chance to complete...
10858 * it should remain joinable and hence detachable
10862 /* make sure pthread_detach() isn't just a stub */
10863 #if HAVE_PTHREADS_D4
10864 status = pthread_detach( &t );
10866 status = pthread_detach( t );
10869 #ifdef HAVE_LINUX_THREADS
10870 pthread_kill_other_threads_np();
10878 if { (eval echo configure:10879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10880 ol_cv_pthread_create_works=yes
10882 echo "configure: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10885 ol_cv_pthread_create_works=no
10892 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10894 if test $ol_cv_pthread_create_works = no ; then
10895 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10898 if test $ol_with_yielding_select = auto ; then
10899 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10900 echo "configure:10901: checking if select yields when using pthreads" >&5
10901 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10905 if test "$cross_compiling" = yes; then
10906 ol_cv_pthread_select_yields=cross
10908 cat > conftest.$ac_ext <<EOF
10909 #line 10910 "configure"
10910 #include "confdefs.h"
10912 #include <sys/types.h>
10913 #include <sys/time.h>
10914 #include <unistd.h>
10915 #include <pthread.h>
10917 #define NULL (void*) 0
10920 static int fildes[2];
10922 static void *task(p)
10934 FD_SET(fildes[0], &rfds);
10936 /* we're not interested in any fds */
10937 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10944 exit(0); /* if we exit here, the select blocked the whole process */
10947 int main(argc, argv)
10953 /* create a pipe to select */
10954 if(pipe(&fildes[0])) {
10959 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10960 (void) pthread_setconcurrency(2);
10962 #ifdef HAVE_THR_SETCONCURRENCY
10963 /* Set Solaris LWP concurrency to 2 */
10964 thr_setconcurrency(2);
10968 #if HAVE_PTHREADS_D4
10969 pthread_create(&t, pthread_attr_default, task, NULL);
10971 pthread_create(&t, NULL, task, NULL);
10974 #if HAVE_SCHED_YIELD
10975 sched_yield(); /* make sure task runs first */
10977 #ifdef HAVE_PTHREAD_YIELD
10978 pthread_yield(); /* make sure task runs first */
10985 if { (eval echo configure:10986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10987 ol_cv_pthread_select_yields=no
10989 echo "configure: failed program was:" >&5
10990 cat conftest.$ac_ext >&5
10992 ol_cv_pthread_select_yields=yes
10999 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11001 if test $ol_cv_pthread_select_yields = cross ; then
11002 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11005 if test $ol_cv_pthread_select_yields = yes ; then
11006 ol_with_yielding_select=yes
11010 CPPFLAGS="$save_CPPFLAGS"
11013 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
11017 if test $ol_with_threads = posix ; then
11018 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11022 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11023 -o $ol_with_threads = mach ; then
11025 for ac_hdr in mach/cthreads.h
11027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11029 echo "configure:11030: checking for $ac_hdr" >&5
11030 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11031 echo $ac_n "(cached) $ac_c" 1>&6
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11039 { (eval echo configure:11040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11041 if test -z "$ac_err"; then
11043 eval "ac_cv_header_$ac_safe=yes"
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11049 eval "ac_cv_header_$ac_safe=no"
11053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11054 echo "$ac_t""yes" 1>&6
11055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11056 cat >> confdefs.h <<EOF
11057 #define $ac_tr_hdr 1
11061 echo "$ac_t""no" 1>&6
11065 if test $ac_cv_header_mach_cthreads_h = yes ; then
11066 ol_with_threads=found
11068 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11069 echo "configure:11070: checking for cthread_fork" >&5
11070 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11076 /* System header to define __stub macros and hopefully few prototypes,
11077 which can conflict with char cthread_fork(); below. */
11078 #include <assert.h>
11079 /* Override any gcc2 internal prototype to avoid an error. */
11080 /* We use char because int might match the return type of a gcc2
11081 builtin and then its argument prototype would still apply. */
11082 char cthread_fork();
11087 /* The GNU C library defines this for functions which it implements
11088 to always fail with ENOSYS. Some functions are actually named
11089 something starting with __ and the normal name is an alias. */
11090 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11098 if { (eval echo configure:11099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11100 eval "ac_cv_func_cthread_fork=yes"
11102 echo "configure: failed program was:" >&5
11103 cat conftest.$ac_ext >&5
11105 eval "ac_cv_func_cthread_fork=no"
11110 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11111 echo "$ac_t""yes" 1>&6
11112 ol_link_threads=yes
11114 echo "$ac_t""no" 1>&6
11118 if test $ol_link_threads = no ; then
11119 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11120 echo "configure:11121: checking for cthread_fork with -all_load" >&5
11121 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11122 echo $ac_n "(cached) $ac_c" 1>&6
11126 LIBS="-all_load $LIBS"
11127 cat > conftest.$ac_ext <<EOF
11128 #line 11129 "configure"
11129 #include "confdefs.h"
11130 #include <mach/cthreads.h>
11133 cthread_fork((void *)0, (void *)0);
11137 if { (eval echo configure:11138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11139 ol_cv_cthread_all_load=yes
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 ol_cv_cthread_all_load=no
11151 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11153 if test $ol_cv_cthread_all_load = yes ; then
11154 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11155 ol_link_threads=mach
11159 if test $ol_link_threads != no ; then
11160 : check for cthread specific functionality here
11161 cat >> confdefs.h <<\EOF
11162 #define HAVE_MACH_CTHREADS 1
11166 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11170 if test $ol_with_threads = mach ; then
11171 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11175 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11176 -o $ol_with_threads = pth ; then
11178 for ac_hdr in pth.h
11180 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11181 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11182 echo "configure:11183: checking for $ac_hdr" >&5
11183 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11184 echo $ac_n "(cached) $ac_c" 1>&6
11186 cat > conftest.$ac_ext <<EOF
11187 #line 11188 "configure"
11188 #include "confdefs.h"
11191 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11192 { (eval echo configure:11193: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11193 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11194 if test -z "$ac_err"; then
11196 eval "ac_cv_header_$ac_safe=yes"
11199 echo "configure: failed program was:" >&5
11200 cat conftest.$ac_ext >&5
11202 eval "ac_cv_header_$ac_safe=no"
11206 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11208 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11209 cat >> confdefs.h <<EOF
11210 #define $ac_tr_hdr 1
11214 echo "$ac_t""no" 1>&6
11219 if test $ac_cv_header_pth_h = yes ; then
11220 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11221 echo "configure:11222: checking for pth_version in -lpth" >&5
11222 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11224 echo $ac_n "(cached) $ac_c" 1>&6
11226 ac_save_LIBS="$LIBS"
11228 cat > conftest.$ac_ext <<EOF
11229 #line 11230 "configure"
11230 #include "confdefs.h"
11231 /* Override any gcc2 internal prototype to avoid an error. */
11232 /* We use char because int might match the return type of a gcc2
11233 builtin and then its argument prototype would still apply. */
11234 char pth_version();
11240 if { (eval echo configure:11241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11242 eval "ac_cv_lib_$ac_lib_var=yes"
11244 echo "configure: failed program was:" >&5
11245 cat conftest.$ac_ext >&5
11247 eval "ac_cv_lib_$ac_lib_var=no"
11250 LIBS="$ac_save_LIBS"
11253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11254 echo "$ac_t""yes" 1>&6
11257 echo "$ac_t""no" 1>&6
11262 if test $have_pth = yes ; then
11263 cat >> confdefs.h <<\EOF
11264 #define HAVE_GNU_PTH 1
11267 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11268 ol_link_threads=pth
11270 if test $ol_with_yielding_select = auto ; then
11271 ol_with_yielding_select=yes
11277 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11278 -o $ol_with_threads = lwp ; then
11280 for ac_hdr in thread.h synch.h
11282 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11283 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11284 echo "configure:11285: checking for $ac_hdr" >&5
11285 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11286 echo $ac_n "(cached) $ac_c" 1>&6
11288 cat > conftest.$ac_ext <<EOF
11289 #line 11290 "configure"
11290 #include "confdefs.h"
11293 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11294 { (eval echo configure:11295: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11295 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11296 if test -z "$ac_err"; then
11298 eval "ac_cv_header_$ac_safe=yes"
11301 echo "configure: failed program was:" >&5
11302 cat conftest.$ac_ext >&5
11304 eval "ac_cv_header_$ac_safe=no"
11308 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11309 echo "$ac_t""yes" 1>&6
11310 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11311 cat >> confdefs.h <<EOF
11312 #define $ac_tr_hdr 1
11316 echo "$ac_t""no" 1>&6
11320 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11321 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11322 echo "configure:11323: checking for thr_create in -lthread" >&5
11323 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11324 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11325 echo $ac_n "(cached) $ac_c" 1>&6
11327 ac_save_LIBS="$LIBS"
11328 LIBS="-lthread $LIBS"
11329 cat > conftest.$ac_ext <<EOF
11330 #line 11331 "configure"
11331 #include "confdefs.h"
11332 /* Override any gcc2 internal prototype to avoid an error. */
11333 /* We use char because int might match the return type of a gcc2
11334 builtin and then its argument prototype would still apply. */
11341 if { (eval echo configure:11342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11343 eval "ac_cv_lib_$ac_lib_var=yes"
11345 echo "configure: failed program was:" >&5
11346 cat conftest.$ac_ext >&5
11348 eval "ac_cv_lib_$ac_lib_var=no"
11351 LIBS="$ac_save_LIBS"
11354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11355 echo "$ac_t""yes" 1>&6
11358 echo "$ac_t""no" 1>&6
11363 if test $have_thr = yes ; then
11364 cat >> confdefs.h <<\EOF
11368 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11369 ol_link_threads=thr
11371 if test $ol_with_yielding_select = auto ; then
11372 ol_with_yielding_select=yes
11376 thr_setconcurrency \
11377 thr_getconcurrency \
11380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11381 echo "configure:11382: checking for $ac_func" >&5
11382 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388 /* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func(); below. */
11390 #include <assert.h>
11391 /* Override any gcc2 internal prototype to avoid an error. */
11392 /* We use char because int might match the return type of a gcc2
11393 builtin and then its argument prototype would still apply. */
11399 /* The GNU C library defines this for functions which it implements
11400 to always fail with ENOSYS. Some functions are actually named
11401 something starting with __ and the normal name is an alias. */
11402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11410 if { (eval echo configure:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11412 eval "ac_cv_func_$ac_func=yes"
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11417 eval "ac_cv_func_$ac_func=no"
11422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11423 echo "$ac_t""yes" 1>&6
11424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11425 cat >> confdefs.h <<EOF
11426 #define $ac_tr_func 1
11430 echo "$ac_t""no" 1>&6
11437 for ac_hdr in lwp/lwp.h
11439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11441 echo "configure:11442: checking for $ac_hdr" >&5
11442 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11443 echo $ac_n "(cached) $ac_c" 1>&6
11445 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11451 { (eval echo configure:11452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11453 if test -z "$ac_err"; then
11455 eval "ac_cv_header_$ac_safe=yes"
11458 echo "configure: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11461 eval "ac_cv_header_$ac_safe=no"
11465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11466 echo "$ac_t""yes" 1>&6
11467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11468 cat >> confdefs.h <<EOF
11469 #define $ac_tr_hdr 1
11473 echo "$ac_t""no" 1>&6
11477 if test $ac_cv_header_lwp_lwp_h = yes ; then
11478 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11479 echo "configure:11480: checking for lwp_create in -llwp" >&5
11480 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11481 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11482 echo $ac_n "(cached) $ac_c" 1>&6
11484 ac_save_LIBS="$LIBS"
11486 cat > conftest.$ac_ext <<EOF
11487 #line 11488 "configure"
11488 #include "confdefs.h"
11489 /* Override any gcc2 internal prototype to avoid an error. */
11490 /* We use char because int might match the return type of a gcc2
11491 builtin and then its argument prototype would still apply. */
11498 if { (eval echo configure:11499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11500 eval "ac_cv_lib_$ac_lib_var=yes"
11502 echo "configure: failed program was:" >&5
11503 cat conftest.$ac_ext >&5
11505 eval "ac_cv_lib_$ac_lib_var=no"
11508 LIBS="$ac_save_LIBS"
11511 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11512 echo "$ac_t""yes" 1>&6
11515 echo "$ac_t""no" 1>&6
11520 if test $have_lwp = yes ; then
11521 cat >> confdefs.h <<\EOF
11525 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11526 ol_link_threads=lwp
11528 if test $ol_with_yielding_select = auto ; then
11529 ol_with_yielding_select=no
11535 if test $ol_with_yielding_select = yes ; then
11536 cat >> confdefs.h <<\EOF
11537 #define HAVE_YIELDING_SELECT 1
11542 if test $ol_with_threads = manual ; then
11543 ol_link_threads=yes
11545 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11547 for ac_hdr in pthread.h sched.h
11549 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11550 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11551 echo "configure:11552: checking for $ac_hdr" >&5
11552 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11553 echo $ac_n "(cached) $ac_c" 1>&6
11555 cat > conftest.$ac_ext <<EOF
11556 #line 11557 "configure"
11557 #include "confdefs.h"
11560 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11561 { (eval echo configure:11562: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11562 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11563 if test -z "$ac_err"; then
11565 eval "ac_cv_header_$ac_safe=yes"
11568 echo "configure: failed program was:" >&5
11569 cat conftest.$ac_ext >&5
11571 eval "ac_cv_header_$ac_safe=no"
11575 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11576 echo "$ac_t""yes" 1>&6
11577 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11578 cat >> confdefs.h <<EOF
11579 #define $ac_tr_hdr 1
11583 echo "$ac_t""no" 1>&6
11587 for ac_func in sched_yield pthread_yield
11589 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11590 echo "configure:11591: checking for $ac_func" >&5
11591 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11592 echo $ac_n "(cached) $ac_c" 1>&6
11594 cat > conftest.$ac_ext <<EOF
11595 #line 11596 "configure"
11596 #include "confdefs.h"
11597 /* System header to define __stub macros and hopefully few prototypes,
11598 which can conflict with char $ac_func(); below. */
11599 #include <assert.h>
11600 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11608 /* The GNU C library defines this for functions which it implements
11609 to always fail with ENOSYS. Some functions are actually named
11610 something starting with __ and the normal name is an alias. */
11611 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11619 if { (eval echo configure:11620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11621 eval "ac_cv_func_$ac_func=yes"
11623 echo "configure: failed program was:" >&5
11624 cat conftest.$ac_ext >&5
11626 eval "ac_cv_func_$ac_func=no"
11631 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11632 echo "$ac_t""yes" 1>&6
11633 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11634 cat >> confdefs.h <<EOF
11635 #define $ac_tr_func 1
11639 echo "$ac_t""no" 1>&6
11644 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11645 echo "configure:11646: checking for LinuxThreads pthread.h" >&5
11646 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11652 #include <pthread.h>
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11657 ol_cv_header_linux_threads=yes
11660 ol_cv_header_linux_threads=no
11667 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11668 if test $ol_cv_header_linux_threads = yes; then
11669 cat >> confdefs.h <<\EOF
11670 #define HAVE_LINUX_THREADS 1
11676 for ac_hdr in mach/cthreads.h
11678 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11679 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11680 echo "configure:11681: checking for $ac_hdr" >&5
11681 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11690 { (eval echo configure:11691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11692 if test -z "$ac_err"; then
11694 eval "ac_cv_header_$ac_safe=yes"
11697 echo "configure: failed program was:" >&5
11698 cat conftest.$ac_ext >&5
11700 eval "ac_cv_header_$ac_safe=no"
11704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11705 echo "$ac_t""yes" 1>&6
11706 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11707 cat >> confdefs.h <<EOF
11708 #define $ac_tr_hdr 1
11712 echo "$ac_t""no" 1>&6
11716 for ac_hdr in lwp/lwp.h
11718 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11720 echo "configure:11721: checking for $ac_hdr" >&5
11721 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11722 echo $ac_n "(cached) $ac_c" 1>&6
11724 cat > conftest.$ac_ext <<EOF
11725 #line 11726 "configure"
11726 #include "confdefs.h"
11729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11730 { (eval echo configure:11731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11732 if test -z "$ac_err"; then
11734 eval "ac_cv_header_$ac_safe=yes"
11737 echo "configure: failed program was:" >&5
11738 cat conftest.$ac_ext >&5
11740 eval "ac_cv_header_$ac_safe=no"
11744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11745 echo "$ac_t""yes" 1>&6
11746 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11747 cat >> confdefs.h <<EOF
11748 #define $ac_tr_hdr 1
11752 echo "$ac_t""no" 1>&6
11756 for ac_hdr in thread.h synch.h
11758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11760 echo "configure:11761: checking for $ac_hdr" >&5
11761 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11762 echo $ac_n "(cached) $ac_c" 1>&6
11764 cat > conftest.$ac_ext <<EOF
11765 #line 11766 "configure"
11766 #include "confdefs.h"
11769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11770 { (eval echo configure:11771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11772 if test -z "$ac_err"; then
11774 eval "ac_cv_header_$ac_safe=yes"
11777 echo "configure: failed program was:" >&5
11778 cat conftest.$ac_ext >&5
11780 eval "ac_cv_header_$ac_safe=no"
11784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11785 echo "$ac_t""yes" 1>&6
11786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11787 cat >> confdefs.h <<EOF
11788 #define $ac_tr_hdr 1
11792 echo "$ac_t""no" 1>&6
11798 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11799 cat >> confdefs.h <<\EOF
11800 #define REENTRANT 1
11803 cat >> confdefs.h <<\EOF
11804 #define _REENTRANT 1
11807 cat >> confdefs.h <<\EOF
11808 #define THREAD_SAFE 1
11811 cat >> confdefs.h <<\EOF
11812 #define _THREAD_SAFE 1
11815 cat >> confdefs.h <<\EOF
11816 #define THREADSAFE 1
11819 cat >> confdefs.h <<\EOF
11820 #define _THREADSAFE 1
11823 cat >> confdefs.h <<\EOF
11824 #define _SGI_MP_SOURCE 1
11828 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11829 echo "configure:11830: checking for thread specific errno" >&5
11830 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11831 echo $ac_n "(cached) $ac_c" 1>&6
11834 cat > conftest.$ac_ext <<EOF
11835 #line 11836 "configure"
11836 #include "confdefs.h"
11842 if { (eval echo configure:11843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11844 ol_cv_errno_thread_specific=yes
11846 echo "configure: failed program was:" >&5
11847 cat conftest.$ac_ext >&5
11849 ol_cv_errno_thread_specific=no
11855 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11857 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11858 echo "configure:11859: checking for thread specific h_errno" >&5
11859 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11860 echo $ac_n "(cached) $ac_c" 1>&6
11863 cat > conftest.$ac_ext <<EOF
11864 #line 11865 "configure"
11865 #include "confdefs.h"
11871 if { (eval echo configure:11872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11873 ol_cv_h_errno_thread_specific=yes
11875 echo "configure: failed program was:" >&5
11876 cat conftest.$ac_ext >&5
11878 ol_cv_h_errno_thread_specific=no
11884 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11886 if test $ol_cv_errno_thread_specific != yes \
11887 -o $ol_cv_h_errno_thread_specific != yes ; then
11888 LIBS="$LTHREAD_LIBS $LIBS"
11894 if test $ol_link_threads = no ; then
11895 if test $ol_with_threads = yes ; then
11896 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11899 if test $ol_with_threads = auto ; then
11900 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11904 cat >> confdefs.h <<\EOF
11905 #define NO_THREADS 1
11911 if test $ol_link_threads != no ; then
11912 cat >> confdefs.h <<\EOF
11913 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11920 if test $ol_with_ldbm_api = auto \
11921 -o $ol_with_ldbm_api = berkeley \
11922 -o $ol_with_ldbm_api = bcompat ; then
11924 if test $ol_with_ldbm_api = bcompat; then \
11925 ol_cv_berkeley_db=no
11926 for ac_hdr in db_185.h db.h
11928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11930 echo "configure:11931: checking for $ac_hdr" >&5
11931 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11932 echo $ac_n "(cached) $ac_c" 1>&6
11934 cat > conftest.$ac_ext <<EOF
11935 #line 11936 "configure"
11936 #include "confdefs.h"
11939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11940 { (eval echo configure:11941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11942 if test -z "$ac_err"; then
11944 eval "ac_cv_header_$ac_safe=yes"
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11950 eval "ac_cv_header_$ac_safe=no"
11954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11955 echo "$ac_t""yes" 1>&6
11956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11957 cat >> confdefs.h <<EOF
11958 #define $ac_tr_hdr 1
11962 echo "$ac_t""no" 1>&6
11966 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
11967 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
11968 echo "configure:11969: checking if Berkeley DB header compatibility" >&5
11969 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
11970 echo $ac_n "(cached) $ac_c" 1>&6
11973 cat > conftest.$ac_ext <<EOF
11974 #line 11975 "configure"
11975 #include "confdefs.h"
11978 # include <db_185.h>
11983 /* this check could be improved */
11984 #ifndef DB_VERSION_MAJOR
11985 # define DB_VERSION_MAJOR 1
11988 #if DB_VERSION_MAJOR == 1
11993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11994 egrep "__db_version_1" >/dev/null 2>&1; then
11996 ol_cv_header_db1=yes
11999 ol_cv_header_db1=no
12005 echo "$ac_t""$ol_cv_header_db1" 1>&6
12007 if test ol_cv_header_db1=yes ; then
12009 if test $ol_cv_lib_db = no ; then
12010 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12011 echo "configure:12012: checking for Berkeley DB link (default)" >&5
12012 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12018 LIBS="$ol_DB_LIB $LIBS"
12020 cat > conftest.$ac_ext <<EOF
12021 #line 12022 "configure"
12022 #include "confdefs.h"
12024 #ifdef HAVE_DB_185_H
12025 # include <db_185.h>
12030 #ifndef DB_VERSION_MAJOR
12031 # define DB_VERSION_MAJOR 1
12035 #define NULL ((void*)0)
12040 #if DB_VERSION_MAJOR > 2
12041 db_env_create( NULL, 0 );
12042 #elif DB_VERSION_MAJOR > 1
12043 db_appexit( NULL );
12045 (void) dbopen( NULL, 0, 0, 0, NULL);
12050 if { (eval echo configure:12051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054 echo "configure: failed program was:" >&5
12055 cat conftest.$ac_ext >&5
12065 echo "$ac_t""$ol_cv_db_none" 1>&6
12067 if test $ol_cv_db_none = yes ; then
12072 if test $ol_cv_lib_db = no ; then
12073 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12074 echo "configure:12075: checking for Berkeley DB link (-ldb)" >&5
12075 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12076 echo $ac_n "(cached) $ac_c" 1>&6
12081 LIBS="$ol_DB_LIB $LIBS"
12083 cat > conftest.$ac_ext <<EOF
12084 #line 12085 "configure"
12085 #include "confdefs.h"
12087 #ifdef HAVE_DB_185_H
12088 # include <db_185.h>
12093 #ifndef DB_VERSION_MAJOR
12094 # define DB_VERSION_MAJOR 1
12098 #define NULL ((void*)0)
12103 #if DB_VERSION_MAJOR > 2
12104 db_env_create( NULL, 0 );
12105 #elif DB_VERSION_MAJOR > 1
12106 db_appexit( NULL );
12108 (void) dbopen( NULL, 0, 0, 0, NULL);
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12128 echo "$ac_t""$ol_cv_db_db" 1>&6
12130 if test $ol_cv_db_db = yes ; then
12135 if test $ol_cv_lib_db = no ; then
12136 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12137 echo "configure:12138: checking for Berkeley DB link (-ldb3)" >&5
12138 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12144 LIBS="$ol_DB_LIB $LIBS"
12146 cat > conftest.$ac_ext <<EOF
12147 #line 12148 "configure"
12148 #include "confdefs.h"
12150 #ifdef HAVE_DB_185_H
12151 # include <db_185.h>
12156 #ifndef DB_VERSION_MAJOR
12157 # define DB_VERSION_MAJOR 1
12161 #define NULL ((void*)0)
12166 #if DB_VERSION_MAJOR > 2
12167 db_env_create( NULL, 0 );
12168 #elif DB_VERSION_MAJOR > 1
12169 db_appexit( NULL );
12171 (void) dbopen( NULL, 0, 0, 0, NULL);
12176 if { (eval echo configure:12177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12191 echo "$ac_t""$ol_cv_db_db3" 1>&6
12193 if test $ol_cv_db_db3 = yes ; then
12198 if test $ol_cv_lib_db = no ; then
12199 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12200 echo "configure:12201: checking for Berkeley DB link (-ldb2)" >&5
12201 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12202 echo $ac_n "(cached) $ac_c" 1>&6
12207 LIBS="$ol_DB_LIB $LIBS"
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12213 #ifdef HAVE_DB_185_H
12214 # include <db_185.h>
12219 #ifndef DB_VERSION_MAJOR
12220 # define DB_VERSION_MAJOR 1
12224 #define NULL ((void*)0)
12229 #if DB_VERSION_MAJOR > 2
12230 db_env_create( NULL, 0 );
12231 #elif DB_VERSION_MAJOR > 1
12232 db_appexit( NULL );
12234 (void) dbopen( NULL, 0, 0, 0, NULL);
12239 if { (eval echo configure:12240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12243 echo "configure: failed program was:" >&5
12244 cat conftest.$ac_ext >&5
12254 echo "$ac_t""$ol_cv_db_db2" 1>&6
12256 if test $ol_cv_db_db2 = yes ; then
12261 if test $ol_cv_lib_db = no ; then
12262 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12263 echo "configure:12264: checking for Berkeley DB link (-ldb1)" >&5
12264 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12265 echo $ac_n "(cached) $ac_c" 1>&6
12270 LIBS="$ol_DB_LIB $LIBS"
12272 cat > conftest.$ac_ext <<EOF
12273 #line 12274 "configure"
12274 #include "confdefs.h"
12276 #ifdef HAVE_DB_185_H
12277 # include <db_185.h>
12282 #ifndef DB_VERSION_MAJOR
12283 # define DB_VERSION_MAJOR 1
12287 #define NULL ((void*)0)
12292 #if DB_VERSION_MAJOR > 2
12293 db_env_create( NULL, 0 );
12294 #elif DB_VERSION_MAJOR > 1
12295 db_appexit( NULL );
12297 (void) dbopen( NULL, 0, 0, 0, NULL);
12302 if { (eval echo configure:12303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12306 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12317 echo "$ac_t""$ol_cv_db_db1" 1>&6
12319 if test $ol_cv_db_db1 = yes ; then
12325 if test "$ol_cv_lib_db" != no ; then
12326 ol_cv_berkeley_db=yes
12332 ol_cv_berkeley_db=no
12335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12337 echo "configure:12338: checking for $ac_hdr" >&5
12338 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12339 echo $ac_n "(cached) $ac_c" 1>&6
12341 cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12347 { (eval echo configure:12348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12349 if test -z "$ac_err"; then
12351 eval "ac_cv_header_$ac_safe=yes"
12354 echo "configure: failed program was:" >&5
12355 cat conftest.$ac_ext >&5
12357 eval "ac_cv_header_$ac_safe=no"
12361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12362 echo "$ac_t""yes" 1>&6
12363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12364 cat >> confdefs.h <<EOF
12365 #define $ac_tr_hdr 1
12369 echo "$ac_t""no" 1>&6
12373 if test $ac_cv_header_db_h = yes; then
12375 if test $ol_cv_lib_db = no ; then
12376 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12377 echo "configure:12378: checking for Berkeley DB link (default)" >&5
12378 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12379 echo $ac_n "(cached) $ac_c" 1>&6
12384 LIBS="$ol_DB_LIB $LIBS"
12386 cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12390 #ifdef HAVE_DB_185_H
12391 # include <db_185.h>
12396 #ifndef DB_VERSION_MAJOR
12397 # define DB_VERSION_MAJOR 1
12401 #define NULL ((void*)0)
12406 #if DB_VERSION_MAJOR > 2
12407 db_env_create( NULL, 0 );
12408 #elif DB_VERSION_MAJOR > 1
12409 db_appexit( NULL );
12411 (void) dbopen( NULL, 0, 0, 0, NULL);
12416 if { (eval echo configure:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12420 echo "configure: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12431 echo "$ac_t""$ol_cv_db_none" 1>&6
12433 if test $ol_cv_db_none = yes ; then
12438 if test $ol_cv_lib_db = no ; then
12439 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12440 echo "configure:12441: checking for Berkeley DB link (-ldb)" >&5
12441 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12447 LIBS="$ol_DB_LIB $LIBS"
12449 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure"
12451 #include "confdefs.h"
12453 #ifdef HAVE_DB_185_H
12454 # include <db_185.h>
12459 #ifndef DB_VERSION_MAJOR
12460 # define DB_VERSION_MAJOR 1
12464 #define NULL ((void*)0)
12469 #if DB_VERSION_MAJOR > 2
12470 db_env_create( NULL, 0 );
12471 #elif DB_VERSION_MAJOR > 1
12472 db_appexit( NULL );
12474 (void) dbopen( NULL, 0, 0, 0, NULL);
12479 if { (eval echo configure:12480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12483 echo "configure: failed program was:" >&5
12484 cat conftest.$ac_ext >&5
12494 echo "$ac_t""$ol_cv_db_db" 1>&6
12496 if test $ol_cv_db_db = yes ; then
12501 if test $ol_cv_lib_db = no ; then
12502 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12503 echo "configure:12504: checking for Berkeley DB link (-ldb3)" >&5
12504 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12505 echo $ac_n "(cached) $ac_c" 1>&6
12510 LIBS="$ol_DB_LIB $LIBS"
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12516 #ifdef HAVE_DB_185_H
12517 # include <db_185.h>
12522 #ifndef DB_VERSION_MAJOR
12523 # define DB_VERSION_MAJOR 1
12527 #define NULL ((void*)0)
12532 #if DB_VERSION_MAJOR > 2
12533 db_env_create( NULL, 0 );
12534 #elif DB_VERSION_MAJOR > 1
12535 db_appexit( NULL );
12537 (void) dbopen( NULL, 0, 0, 0, NULL);
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12557 echo "$ac_t""$ol_cv_db_db3" 1>&6
12559 if test $ol_cv_db_db3 = yes ; then
12564 if test $ol_cv_lib_db = no ; then
12565 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12566 echo "configure:12567: checking for Berkeley DB link (-ldb2)" >&5
12567 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12568 echo $ac_n "(cached) $ac_c" 1>&6
12573 LIBS="$ol_DB_LIB $LIBS"
12575 cat > conftest.$ac_ext <<EOF
12576 #line 12577 "configure"
12577 #include "confdefs.h"
12579 #ifdef HAVE_DB_185_H
12580 # include <db_185.h>
12585 #ifndef DB_VERSION_MAJOR
12586 # define DB_VERSION_MAJOR 1
12590 #define NULL ((void*)0)
12595 #if DB_VERSION_MAJOR > 2
12596 db_env_create( NULL, 0 );
12597 #elif DB_VERSION_MAJOR > 1
12598 db_appexit( NULL );
12600 (void) dbopen( NULL, 0, 0, 0, NULL);
12605 if { (eval echo configure:12606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12609 echo "configure: failed program was:" >&5
12610 cat conftest.$ac_ext >&5
12620 echo "$ac_t""$ol_cv_db_db2" 1>&6
12622 if test $ol_cv_db_db2 = yes ; then
12627 if test $ol_cv_lib_db = no ; then
12628 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12629 echo "configure:12630: checking for Berkeley DB link (-ldb1)" >&5
12630 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12631 echo $ac_n "(cached) $ac_c" 1>&6
12636 LIBS="$ol_DB_LIB $LIBS"
12638 cat > conftest.$ac_ext <<EOF
12639 #line 12640 "configure"
12640 #include "confdefs.h"
12642 #ifdef HAVE_DB_185_H
12643 # include <db_185.h>
12648 #ifndef DB_VERSION_MAJOR
12649 # define DB_VERSION_MAJOR 1
12653 #define NULL ((void*)0)
12658 #if DB_VERSION_MAJOR > 2
12659 db_env_create( NULL, 0 );
12660 #elif DB_VERSION_MAJOR > 1
12661 db_appexit( NULL );
12663 (void) dbopen( NULL, 0, 0, 0, NULL);
12668 if { (eval echo configure:12669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12672 echo "configure: failed program was:" >&5
12673 cat conftest.$ac_ext >&5
12683 echo "$ac_t""$ol_cv_db_db1" 1>&6
12685 if test $ol_cv_db_db1 = yes ; then
12691 if test "$ol_cv_lib_db" != no ; then
12692 ol_cv_berkeley_db=yes
12693 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
12694 echo "configure:12695: checking for Berkeley DB thread support" >&5
12695 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
12696 echo $ac_n "(cached) $ac_c" 1>&6
12700 if test $ol_cv_lib_db != yes ; then
12701 LIBS="$ol_cv_lib_db"
12704 if test "$cross_compiling" = yes; then
12705 ol_cv_berkeley_db_thread=cross
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12711 #ifdef HAVE_DB_185_H
12717 #define NULL ((void *)0)
12722 u_int32_t flags = DB_CREATE | DB_THREAD;
12724 #if DB_VERSION_MAJOR > 2
12725 DB_ENV *env = NULL;
12727 rc = db_env_create( &env, 0 );
12730 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12731 rc = env->open( env, NULL, flags, 0 );
12733 rc = env->open( env, NULL, NULL, flags, 0 );
12739 memset( &env, '\0', sizeof(env) );
12741 rc = db_appinit( NULL, NULL, &env, flags );
12744 db_appexit( &env );
12747 #if DB_VERSION_MAJOR > 2
12748 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
12749 env->remove( env, NULL, DB_FORCE);
12751 env->remove( env, NULL, NULL, DB_FORCE);
12758 if { (eval echo configure:12759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12760 ol_cv_berkeley_db_thread=yes
12762 echo "configure: failed program was:" >&5
12763 cat conftest.$ac_ext >&5
12765 ol_cv_berkeley_db_thread=no
12773 if test $ol_cv_berkeley_db_thread != no ; then
12774 cat >> confdefs.h <<\EOF
12775 #define HAVE_BERKELEY_DB_THREAD 1
12782 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
12788 if test $ol_cv_berkeley_db != no ; then
12789 cat >> confdefs.h <<\EOF
12790 #define HAVE_BERKELEY_DB 1
12794 ol_link_ldbm=berkeley
12795 ol_with_ldbm_api=db
12797 if test $ol_with_ldbm_type = hash ; then
12798 cat >> confdefs.h <<\EOF
12799 #define LDBM_USE_DBHASH 1
12803 cat >> confdefs.h <<\EOF
12804 #define LDBM_USE_DBBTREE 1
12809 if test $ol_cv_lib_db != yes ; then
12810 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
12815 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
12816 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
12817 ol_with_ldbm_api=none
12820 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
12821 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
12822 echo "configure:12823: checking for MDBM library" >&5
12823 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
12824 echo $ac_n "(cached) $ac_c" 1>&6
12827 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
12828 echo "configure:12829: checking for mdbm_set_chain" >&5
12829 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
12830 echo $ac_n "(cached) $ac_c" 1>&6
12832 cat > conftest.$ac_ext <<EOF
12833 #line 12834 "configure"
12834 #include "confdefs.h"
12835 /* System header to define __stub macros and hopefully few prototypes,
12836 which can conflict with char mdbm_set_chain(); below. */
12837 #include <assert.h>
12838 /* Override any gcc2 internal prototype to avoid an error. */
12839 /* We use char because int might match the return type of a gcc2
12840 builtin and then its argument prototype would still apply. */
12841 char mdbm_set_chain();
12846 /* The GNU C library defines this for functions which it implements
12847 to always fail with ENOSYS. Some functions are actually named
12848 something starting with __ and the normal name is an alias. */
12849 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
12852 f = mdbm_set_chain;
12857 if { (eval echo configure:12858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12859 eval "ac_cv_func_mdbm_set_chain=yes"
12861 echo "configure: failed program was:" >&5
12862 cat conftest.$ac_ext >&5
12864 eval "ac_cv_func_mdbm_set_chain=no"
12869 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
12870 echo "$ac_t""yes" 1>&6
12873 echo "$ac_t""no" 1>&6
12875 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
12876 echo "configure:12877: checking for mdbm_set_chain in -lmdbm" >&5
12877 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
12878 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12881 ac_save_LIBS="$LIBS"
12882 LIBS="-lmdbm $LIBS"
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 /* Override any gcc2 internal prototype to avoid an error. */
12887 /* We use char because int might match the return type of a gcc2
12888 builtin and then its argument prototype would still apply. */
12889 char mdbm_set_chain();
12895 if { (eval echo configure:12896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12897 eval "ac_cv_lib_$ac_lib_var=yes"
12899 echo "configure: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12902 eval "ac_cv_lib_$ac_lib_var=no"
12905 LIBS="$ac_save_LIBS"
12908 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12909 echo "$ac_t""yes" 1>&6
12910 ol_cv_lib_mdbm=-lmdbm
12912 echo "$ac_t""no" 1>&6
12923 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
12926 for ac_hdr in mdbm.h
12928 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12929 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12930 echo "configure:12931: checking for $ac_hdr" >&5
12931 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12932 echo $ac_n "(cached) $ac_c" 1>&6
12934 cat > conftest.$ac_ext <<EOF
12935 #line 12936 "configure"
12936 #include "confdefs.h"
12939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12940 { (eval echo configure:12941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12942 if test -z "$ac_err"; then
12944 eval "ac_cv_header_$ac_safe=yes"
12947 echo "configure: failed program was:" >&5
12948 cat conftest.$ac_ext >&5
12950 eval "ac_cv_header_$ac_safe=no"
12954 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12955 echo "$ac_t""yes" 1>&6
12956 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12957 cat >> confdefs.h <<EOF
12958 #define $ac_tr_hdr 1
12962 echo "$ac_t""no" 1>&6
12966 echo $ac_n "checking for db""... $ac_c" 1>&6
12967 echo "configure:12968: checking for db" >&5
12968 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
12969 echo $ac_n "(cached) $ac_c" 1>&6
12972 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
12980 echo "$ac_t""$ol_cv_mdbm" 1>&6
12981 if test $ol_cv_mdbm = yes ; then
12982 cat >> confdefs.h <<\EOF
12983 #define HAVE_MDBM 1
12989 if test $ol_cv_mdbm = yes ; then
12991 ol_with_ldbm_api=mdbm
12992 if test $ol_cv_lib_mdbm != yes ; then
12993 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12998 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12999 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13000 echo "configure:13001: checking for GDBM library" >&5
13001 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13002 echo $ac_n "(cached) $ac_c" 1>&6
13005 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13006 echo "configure:13007: checking for gdbm_open" >&5
13007 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13008 echo $ac_n "(cached) $ac_c" 1>&6
13010 cat > conftest.$ac_ext <<EOF
13011 #line 13012 "configure"
13012 #include "confdefs.h"
13013 /* System header to define __stub macros and hopefully few prototypes,
13014 which can conflict with char gdbm_open(); below. */
13015 #include <assert.h>
13016 /* Override any gcc2 internal prototype to avoid an error. */
13017 /* We use char because int might match the return type of a gcc2
13018 builtin and then its argument prototype would still apply. */
13024 /* The GNU C library defines this for functions which it implements
13025 to always fail with ENOSYS. Some functions are actually named
13026 something starting with __ and the normal name is an alias. */
13027 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
13035 if { (eval echo configure:13036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13037 eval "ac_cv_func_gdbm_open=yes"
13039 echo "configure: failed program was:" >&5
13040 cat conftest.$ac_ext >&5
13042 eval "ac_cv_func_gdbm_open=no"
13047 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
13048 echo "$ac_t""yes" 1>&6
13051 echo "$ac_t""no" 1>&6
13053 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
13054 echo "configure:13055: checking for gdbm_open in -lgdbm" >&5
13055 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
13056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13057 echo $ac_n "(cached) $ac_c" 1>&6
13059 ac_save_LIBS="$LIBS"
13060 LIBS="-lgdbm $LIBS"
13061 cat > conftest.$ac_ext <<EOF
13062 #line 13063 "configure"
13063 #include "confdefs.h"
13064 /* Override any gcc2 internal prototype to avoid an error. */
13065 /* We use char because int might match the return type of a gcc2
13066 builtin and then its argument prototype would still apply. */
13073 if { (eval echo configure:13074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13075 eval "ac_cv_lib_$ac_lib_var=yes"
13077 echo "configure: failed program was:" >&5
13078 cat conftest.$ac_ext >&5
13080 eval "ac_cv_lib_$ac_lib_var=no"
13083 LIBS="$ac_save_LIBS"
13086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13087 echo "$ac_t""yes" 1>&6
13088 ol_cv_lib_gdbm=-lgdbm
13090 echo "$ac_t""no" 1>&6
13101 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13104 for ac_hdr in gdbm.h
13106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13108 echo "configure:13109: checking for $ac_hdr" >&5
13109 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13110 echo $ac_n "(cached) $ac_c" 1>&6
13112 cat > conftest.$ac_ext <<EOF
13113 #line 13114 "configure"
13114 #include "confdefs.h"
13117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13118 { (eval echo configure:13119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13120 if test -z "$ac_err"; then
13122 eval "ac_cv_header_$ac_safe=yes"
13125 echo "configure: failed program was:" >&5
13126 cat conftest.$ac_ext >&5
13128 eval "ac_cv_header_$ac_safe=no"
13132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13133 echo "$ac_t""yes" 1>&6
13134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13135 cat >> confdefs.h <<EOF
13136 #define $ac_tr_hdr 1
13140 echo "$ac_t""no" 1>&6
13144 echo $ac_n "checking for db""... $ac_c" 1>&6
13145 echo "configure:13146: checking for db" >&5
13146 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13147 echo $ac_n "(cached) $ac_c" 1>&6
13150 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13158 echo "$ac_t""$ol_cv_gdbm" 1>&6
13159 if test $ol_cv_gdbm = yes ; then
13160 cat >> confdefs.h <<\EOF
13161 #define HAVE_GDBM 1
13167 if test $ol_cv_gdbm = yes ; then
13169 ol_with_ldbm_api=gdbm
13171 if test $ol_cv_lib_gdbm != yes ; then
13172 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13177 if test $ol_with_ldbm_api = ndbm ; then
13178 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13179 echo "configure:13180: checking for NDBM library" >&5
13180 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13181 echo $ac_n "(cached) $ac_c" 1>&6
13184 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13185 echo "configure:13186: checking for dbm_open" >&5
13186 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13187 echo $ac_n "(cached) $ac_c" 1>&6
13189 cat > conftest.$ac_ext <<EOF
13190 #line 13191 "configure"
13191 #include "confdefs.h"
13192 /* System header to define __stub macros and hopefully few prototypes,
13193 which can conflict with char dbm_open(); below. */
13194 #include <assert.h>
13195 /* Override any gcc2 internal prototype to avoid an error. */
13196 /* We use char because int might match the return type of a gcc2
13197 builtin and then its argument prototype would still apply. */
13203 /* The GNU C library defines this for functions which it implements
13204 to always fail with ENOSYS. Some functions are actually named
13205 something starting with __ and the normal name is an alias. */
13206 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13214 if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13216 eval "ac_cv_func_dbm_open=yes"
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13221 eval "ac_cv_func_dbm_open=no"
13226 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13227 echo "$ac_t""yes" 1>&6
13230 echo "$ac_t""no" 1>&6
13232 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13233 echo "configure:13234: checking for dbm_open in -lndbm" >&5
13234 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13235 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13236 echo $ac_n "(cached) $ac_c" 1>&6
13238 ac_save_LIBS="$LIBS"
13239 LIBS="-lndbm $LIBS"
13240 cat > conftest.$ac_ext <<EOF
13241 #line 13242 "configure"
13242 #include "confdefs.h"
13243 /* Override any gcc2 internal prototype to avoid an error. */
13244 /* We use char because int might match the return type of a gcc2
13245 builtin and then its argument prototype would still apply. */
13252 if { (eval echo configure:13253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13254 eval "ac_cv_lib_$ac_lib_var=yes"
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13259 eval "ac_cv_lib_$ac_lib_var=no"
13262 LIBS="$ac_save_LIBS"
13265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13266 echo "$ac_t""yes" 1>&6
13267 ol_cv_lib_ndbm=-lndbm
13269 echo "$ac_t""no" 1>&6
13271 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13272 echo "configure:13273: checking for dbm_open in -ldbm" >&5
13273 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13274 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13277 ac_save_LIBS="$LIBS"
13279 cat > conftest.$ac_ext <<EOF
13280 #line 13281 "configure"
13281 #include "confdefs.h"
13282 /* Override any gcc2 internal prototype to avoid an error. */
13283 /* We use char because int might match the return type of a gcc2
13284 builtin and then its argument prototype would still apply. */
13291 if { (eval echo configure:13292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13293 eval "ac_cv_lib_$ac_lib_var=yes"
13295 echo "configure: failed program was:" >&5
13296 cat conftest.$ac_ext >&5
13298 eval "ac_cv_lib_$ac_lib_var=no"
13301 LIBS="$ac_save_LIBS"
13304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13305 echo "$ac_t""yes" 1>&6
13306 ol_cv_lib_ndbm=-ldbm
13308 echo "$ac_t""no" 1>&6
13321 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13324 for ac_hdr in ndbm.h
13326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13328 echo "configure:13329: checking for $ac_hdr" >&5
13329 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13330 echo $ac_n "(cached) $ac_c" 1>&6
13332 cat > conftest.$ac_ext <<EOF
13333 #line 13334 "configure"
13334 #include "confdefs.h"
13337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13338 { (eval echo configure:13339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13340 if test -z "$ac_err"; then
13342 eval "ac_cv_header_$ac_safe=yes"
13345 echo "configure: failed program was:" >&5
13346 cat conftest.$ac_ext >&5
13348 eval "ac_cv_header_$ac_safe=no"
13352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13353 echo "$ac_t""yes" 1>&6
13354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13355 cat >> confdefs.h <<EOF
13356 #define $ac_tr_hdr 1
13360 echo "$ac_t""no" 1>&6
13364 echo $ac_n "checking for db""... $ac_c" 1>&6
13365 echo "configure:13366: checking for db" >&5
13366 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
13367 echo $ac_n "(cached) $ac_c" 1>&6
13370 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
13378 echo "$ac_t""$ol_cv_ndbm" 1>&6
13379 if test $ol_cv_ndbm = yes ; then
13380 cat >> confdefs.h <<\EOF
13381 #define HAVE_NDBM 1
13387 if test $ol_cv_ndbm = yes ; then
13389 ol_with_ldbm_api=ndbm
13391 if test $ol_cv_lib_ndbm != yes ; then
13392 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
13397 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
13398 echo "configure: warning: could not find suitable LDBM backend" 1>&2
13399 if test $ol_enable_ldbm = yes ; then
13400 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
13403 echo "configure: warning: disabling LDBM" 1>&2
13407 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
13408 LINK_BINS_DYNAMIC="yes"
13410 LINK_BINS_DYNAMIC="no"
13413 if test $ol_enable_wrappers != no ; then
13414 for ac_hdr in tcpd.h
13416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13418 echo "configure:13419: checking for $ac_hdr" >&5
13419 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13420 echo $ac_n "(cached) $ac_c" 1>&6
13422 cat > conftest.$ac_ext <<EOF
13423 #line 13424 "configure"
13424 #include "confdefs.h"
13427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13428 { (eval echo configure:13429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13430 if test -z "$ac_err"; then
13432 eval "ac_cv_header_$ac_safe=yes"
13435 echo "configure: failed program was:" >&5
13436 cat conftest.$ac_ext >&5
13438 eval "ac_cv_header_$ac_safe=no"
13442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13443 echo "$ac_t""yes" 1>&6
13444 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13445 cat >> confdefs.h <<EOF
13446 #define $ac_tr_hdr 1
13450 echo "$ac_t""no" 1>&6
13455 if test $ac_cv_header_tcpd_h != yes ; then
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13462 int allow_severity = 0;
13463 int deny_severity = 0;
13469 if { (eval echo configure:13470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13473 echo "configure: failed program was:" >&5
13474 cat conftest.$ac_ext >&5
13481 if test $have_wrappers = yes ; then
13482 cat >> confdefs.h <<\EOF
13483 #define HAVE_TCPD 1
13488 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
13489 echo "configure:13490: checking for main in -lnsl" >&5
13490 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
13491 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13492 echo $ac_n "(cached) $ac_c" 1>&6
13494 ac_save_LIBS="$LIBS"
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13504 if { (eval echo configure:13505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13506 eval "ac_cv_lib_$ac_lib_var=yes"
13508 echo "configure: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13511 eval "ac_cv_lib_$ac_lib_var=no"
13514 LIBS="$ac_save_LIBS"
13517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13518 echo "$ac_t""yes" 1>&6
13519 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
13520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
13521 cat >> confdefs.h <<EOF
13522 #define $ac_tr_lib 1
13528 echo "$ac_t""no" 1>&6
13532 echo "configure: warning: could not find -lwrap" 1>&2
13533 if test $ol_enable_wrappers = yes ; then
13534 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
13537 echo "configure: warning: disabling wrappers support" 1>&2
13538 ol_enable_wrappers=no
13543 if test $ol_enable_syslog != no ; then
13544 echo $ac_n "checking for openlog""... $ac_c" 1>&6
13545 echo "configure:13546: checking for openlog" >&5
13546 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
13547 echo $ac_n "(cached) $ac_c" 1>&6
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13552 /* System header to define __stub macros and hopefully few prototypes,
13553 which can conflict with char openlog(); below. */
13554 #include <assert.h>
13555 /* Override any gcc2 internal prototype to avoid an error. */
13556 /* We use char because int might match the return type of a gcc2
13557 builtin and then its argument prototype would still apply. */
13563 /* The GNU C library defines this for functions which it implements
13564 to always fail with ENOSYS. Some functions are actually named
13565 something starting with __ and the normal name is an alias. */
13566 #if defined (__stub_openlog) || defined (__stub___openlog)
13574 if { (eval echo configure:13575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13576 eval "ac_cv_func_openlog=yes"
13578 echo "configure: failed program was:" >&5
13579 cat conftest.$ac_ext >&5
13581 eval "ac_cv_func_openlog=no"
13586 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
13587 echo "$ac_t""yes" 1>&6
13590 echo "$ac_t""no" 1>&6
13593 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
13594 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
13596 ol_enable_syslog=$ac_cv_func_openlog
13601 if test $ol_enable_sql != no ; then
13602 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
13603 echo "configure:13604: checking for SQLDriverConnect in -liodbc" >&5
13604 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13606 echo $ac_n "(cached) $ac_c" 1>&6
13608 ac_save_LIBS="$LIBS"
13609 LIBS="-liodbc $LIBS"
13610 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure"
13612 #include "confdefs.h"
13613 /* Override any gcc2 internal prototype to avoid an error. */
13614 /* We use char because int might match the return type of a gcc2
13615 builtin and then its argument prototype would still apply. */
13616 char SQLDriverConnect();
13622 if { (eval echo configure:13623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13624 eval "ac_cv_lib_$ac_lib_var=yes"
13626 echo "configure: failed program was:" >&5
13627 cat conftest.$ac_ext >&5
13629 eval "ac_cv_lib_$ac_lib_var=no"
13632 LIBS="$ac_save_LIBS"
13635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13636 echo "$ac_t""yes" 1>&6
13639 echo "$ac_t""no" 1>&6
13643 if test $have_iodbc = yes ; then
13644 ol_link_sql="-liodbc"
13646 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
13647 echo "configure:13648: checking for SQLDriverConnect in -lodbc" >&5
13648 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
13649 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13650 echo $ac_n "(cached) $ac_c" 1>&6
13652 ac_save_LIBS="$LIBS"
13653 LIBS="-lodbc $LIBS"
13654 cat > conftest.$ac_ext <<EOF
13655 #line 13656 "configure"
13656 #include "confdefs.h"
13657 /* Override any gcc2 internal prototype to avoid an error. */
13658 /* We use char because int might match the return type of a gcc2
13659 builtin and then its argument prototype would still apply. */
13660 char SQLDriverConnect();
13666 if { (eval echo configure:13667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13668 eval "ac_cv_lib_$ac_lib_var=yes"
13670 echo "configure: failed program was:" >&5
13671 cat conftest.$ac_ext >&5
13673 eval "ac_cv_lib_$ac_lib_var=no"
13676 LIBS="$ac_save_LIBS"
13679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13680 echo "$ac_t""yes" 1>&6
13683 echo "$ac_t""no" 1>&6
13687 if test $have_odbc = yes ; then
13688 ol_link_sql="-lodbc"
13692 if test $ol_link_sql != no ; then
13693 SLAPD_SQL_LIBS="$ol_link_sql"
13695 elif test $ol_enable_sql != auto ; then
13696 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
13700 if test $ol_enable_tcl != no ; then
13701 for ac_hdr in tcl.h
13703 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13704 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13705 echo "configure:13706: checking for $ac_hdr" >&5
13706 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13707 echo $ac_n "(cached) $ac_c" 1>&6
13709 cat > conftest.$ac_ext <<EOF
13710 #line 13711 "configure"
13711 #include "confdefs.h"
13714 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13715 { (eval echo configure:13716: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13716 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13717 if test -z "$ac_err"; then
13719 eval "ac_cv_header_$ac_safe=yes"
13722 echo "configure: failed program was:" >&5
13723 cat conftest.$ac_ext >&5
13725 eval "ac_cv_header_$ac_safe=no"
13729 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13730 echo "$ac_t""yes" 1>&6
13731 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13732 cat >> confdefs.h <<EOF
13733 #define $ac_tr_hdr 1
13737 echo "$ac_t""no" 1>&6
13742 if test $ac_cv_header_tcl_h != yes ; then
13745 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
13746 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
13747 echo "configure:13748: checking for main in -l$lib" >&5
13748 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
13749 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
13752 ac_save_LIBS="$LIBS"
13753 LIBS="-l$lib $LIBS"
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13762 if { (eval echo configure:13763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13764 eval "ac_cv_lib_$ac_lib_var=yes"
13766 echo "configure: failed program was:" >&5
13767 cat conftest.$ac_ext >&5
13769 eval "ac_cv_lib_$ac_lib_var=no"
13772 LIBS="$ac_save_LIBS"
13775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13776 echo "$ac_t""yes" 1>&6
13778 if test x"$ol_with_tcl_module" = "xstatic" ; then
13779 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
13781 MOD_TCL_LIB="-l${lib}"
13784 echo "$ac_t""no" 1>&6
13791 if test $have_tcl != yes ; then
13792 echo "configure: warning: could not find -ltcl" 1>&2
13793 if test $ol_enable_tcl = yes ; then
13794 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
13802 for ac_hdr in termcap.h ncurses.h
13804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13806 echo "configure:13807: checking for $ac_hdr" >&5
13807 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13808 echo $ac_n "(cached) $ac_c" 1>&6
13810 cat > conftest.$ac_ext <<EOF
13811 #line 13812 "configure"
13812 #include "confdefs.h"
13815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13816 { (eval echo configure:13817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13818 if test -z "$ac_err"; then
13820 eval "ac_cv_header_$ac_safe=yes"
13823 echo "configure: failed program was:" >&5
13824 cat conftest.$ac_ext >&5
13826 eval "ac_cv_header_$ac_safe=no"
13830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13831 echo "$ac_t""yes" 1>&6
13832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13833 cat >> confdefs.h <<EOF
13834 #define $ac_tr_hdr 1
13838 echo "$ac_t""no" 1>&6
13843 if test $ol_link_termcap = no ; then
13844 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
13845 echo "configure:13846: checking for tputs in -ltermcap" >&5
13846 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
13847 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13848 echo $ac_n "(cached) $ac_c" 1>&6
13850 ac_save_LIBS="$LIBS"
13851 LIBS="-ltermcap $LIBS"
13852 cat > conftest.$ac_ext <<EOF
13853 #line 13854 "configure"
13854 #include "confdefs.h"
13855 /* Override any gcc2 internal prototype to avoid an error. */
13856 /* We use char because int might match the return type of a gcc2
13857 builtin and then its argument prototype would still apply. */
13864 if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13866 eval "ac_cv_lib_$ac_lib_var=yes"
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13871 eval "ac_cv_lib_$ac_lib_var=no"
13874 LIBS="$ac_save_LIBS"
13877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13878 echo "$ac_t""yes" 1>&6
13881 echo "$ac_t""no" 1>&6
13885 if test $have_termcap = yes ; then
13886 cat >> confdefs.h <<\EOF
13887 #define HAVE_TERMCAP 1
13890 ol_link_termcap=yes
13891 TERMCAP_LIBS=-ltermcap
13895 if test $ol_link_termcap = no ; then
13896 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
13897 echo "configure:13898: checking for initscr in -lncurses" >&5
13898 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
13899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13900 echo $ac_n "(cached) $ac_c" 1>&6
13902 ac_save_LIBS="$LIBS"
13903 LIBS="-lncurses $LIBS"
13904 cat > conftest.$ac_ext <<EOF
13905 #line 13906 "configure"
13906 #include "confdefs.h"
13907 /* Override any gcc2 internal prototype to avoid an error. */
13908 /* We use char because int might match the return type of a gcc2
13909 builtin and then its argument prototype would still apply. */
13916 if { (eval echo configure:13917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13918 eval "ac_cv_lib_$ac_lib_var=yes"
13920 echo "configure: failed program was:" >&5
13921 cat conftest.$ac_ext >&5
13923 eval "ac_cv_lib_$ac_lib_var=no"
13926 LIBS="$ac_save_LIBS"
13929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13930 echo "$ac_t""yes" 1>&6
13933 echo "$ac_t""no" 1>&6
13937 if test $have_ncurses = yes ; then
13938 cat >> confdefs.h <<\EOF
13939 #define HAVE_NCURSES 1
13942 ol_link_termcap=yes
13943 TERMCAP_LIBS=-lncurses
13947 if test $ol_link_termcap = no ; then
13948 cat >> confdefs.h <<\EOF
13949 #define NO_TERMCAP 1
13957 if test $ol_with_cyrus_sasl != no ; then
13958 for ac_hdr in sasl.h
13960 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13961 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13962 echo "configure:13963: checking for $ac_hdr" >&5
13963 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13964 echo $ac_n "(cached) $ac_c" 1>&6
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13971 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13972 { (eval echo configure:13973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13973 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13974 if test -z "$ac_err"; then
13976 eval "ac_cv_header_$ac_safe=yes"
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13982 eval "ac_cv_header_$ac_safe=no"
13986 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13987 echo "$ac_t""yes" 1>&6
13988 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13989 cat >> confdefs.h <<EOF
13990 #define $ac_tr_hdr 1
13994 echo "$ac_t""no" 1>&6
13999 if test $ac_cv_header_sasl_h = yes ; then
14000 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14001 echo "configure:14002: checking for sasl_client_init in -lsasl" >&5
14002 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14003 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14004 echo $ac_n "(cached) $ac_c" 1>&6
14006 ac_save_LIBS="$LIBS"
14007 LIBS="-lsasl $LIBS"
14008 cat > conftest.$ac_ext <<EOF
14009 #line 14010 "configure"
14010 #include "confdefs.h"
14011 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char sasl_client_init();
14020 if { (eval echo configure:14021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14022 eval "ac_cv_lib_$ac_lib_var=yes"
14024 echo "configure: failed program was:" >&5
14025 cat conftest.$ac_ext >&5
14027 eval "ac_cv_lib_$ac_lib_var=no"
14030 LIBS="$ac_save_LIBS"
14033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14034 echo "$ac_t""yes" 1>&6
14035 have_cyrus_sasl=yes
14037 echo "$ac_t""no" 1>&6
14042 if test $have_cyrus_sasl != no ; then
14044 cat >> confdefs.h <<\EOF
14045 #define HAVE_CYRUS_SASL 1
14052 if test $ol_link_sasl = no ; then
14053 if test $ol_with_cyrus_sasl != auto ; then
14054 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
14056 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
14057 echo "configure: warning: SASL authentication not supported!" 1>&2
14058 if test $ol_link_tls = no ; then
14059 echo "configure: warning: Strong authentication not supported!" 1>&2
14063 elif test $ol_enable_spasswd != no ; then
14064 ol_link_spasswd=yes
14068 echo "configure: warning: SASL authentication not supported!" 1>&2
14069 if test $ol_link_tls = no ; then
14070 echo "configure: warning: Strong authentication not supported!" 1>&2
14074 if test $cross_compiling != yes ; then
14076 if test -r /dev/urandom ; then
14077 dev="/dev/urandom";
14078 elif test -r /idev/urandom ; then
14079 dev="/idev/urandom";
14080 elif test -r /dev/srandom ; then
14081 dev="/dev/srandom";
14082 elif test -r /dev/random ; then
14084 elif test -r /idev/random ; then
14085 dev="/idev/random";
14088 if test $dev != no ; then
14089 cat >> confdefs.h <<EOF
14090 #define URANDOM_DEVICE "$dev"
14097 if test $ol_with_fetch != no ; then
14099 LIBS="-lfetch -lcom_err $LIBS"
14100 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14101 echo "configure:14102: checking fetch(3) library" >&5
14102 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14103 echo $ac_n "(cached) $ac_c" 1>&6
14106 cat > conftest.$ac_ext <<EOF
14107 #line 14108 "configure"
14108 #include "confdefs.h"
14110 #include <sys/param.h>
14114 struct url *u = fetchParseURL("file:///");
14117 if { (eval echo configure:14118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14119 ol_cv_lib_fetch=yes
14121 echo "configure: failed program was:" >&5
14122 cat conftest.$ac_ext >&5
14129 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14131 if test $ol_cv_lib_fetch != no ; then
14132 ol_link_fetch="-lfetch -lcom_err"
14133 cat >> confdefs.h <<\EOF
14134 #define HAVE_FETCH 1
14140 if test $ol_cv_lib_fetch != no ; then
14141 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14142 ol_link_fetch=freebsd
14144 elif test $ol_with_fetch != auto ; then
14145 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14149 ol_link_readline=no
14150 if test $ol_with_readline != no ; then
14151 for ac_hdr in readline/readline.h readline/history.h
14153 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14154 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14155 echo "configure:14156: checking for $ac_hdr" >&5
14156 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14157 echo $ac_n "(cached) $ac_c" 1>&6
14159 cat > conftest.$ac_ext <<EOF
14160 #line 14161 "configure"
14161 #include "confdefs.h"
14164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14165 { (eval echo configure:14166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14167 if test -z "$ac_err"; then
14169 eval "ac_cv_header_$ac_safe=yes"
14172 echo "configure: failed program was:" >&5
14173 cat conftest.$ac_ext >&5
14175 eval "ac_cv_header_$ac_safe=no"
14179 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14180 echo "$ac_t""yes" 1>&6
14181 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14182 cat >> confdefs.h <<EOF
14183 #define $ac_tr_hdr 1
14187 echo "$ac_t""no" 1>&6
14192 if test $ac_cv_header_readline_readline_h = yes ; then
14194 LIBS="$TERMCAP_LIBS $LIBS"
14195 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14196 echo "configure:14197: checking for readline in -lreadline" >&5
14197 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14198 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14199 echo $ac_n "(cached) $ac_c" 1>&6
14201 ac_save_LIBS="$LIBS"
14202 LIBS="-lreadline $LIBS"
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14205 "configure"
14205 #include "confdefs.h"
14206 /* Override any gcc2 internal prototype to avoid an error. */
14207 /* We use char because int might match the return type of a gcc2
14208 builtin and then its argument prototype would still apply. */
14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14217 eval "ac_cv_lib_$ac_lib_var=yes"
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14222 eval "ac_cv_lib_$ac_lib_var=no"
14225 LIBS="$ac_save_LIBS"
14228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14229 echo "$ac_t""yes" 1>&6
14232 echo "$ac_t""no" 1>&6
14238 if test $have_readline = yes ; then
14239 ol_with_readline=found
14240 ol_link_readline=yes
14242 READLINE_LIBS="-lreadline"
14247 if test $ol_link_readline = yes ; then
14248 cat >> confdefs.h <<\EOF
14249 #define HAVE_READLINE 1
14255 if test $ol_enable_crypt != no ; then
14256 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14257 echo "configure:14258: checking for crypt" >&5
14258 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14261 cat > conftest.$ac_ext <<EOF
14262 #line 14263 "configure"
14263 #include "confdefs.h"
14264 /* System header to define __stub macros and hopefully few prototypes,
14265 which can conflict with char crypt(); below. */
14266 #include <assert.h>
14267 /* Override any gcc2 internal prototype to avoid an error. */
14268 /* We use char because int might match the return type of a gcc2
14269 builtin and then its argument prototype would still apply. */
14275 /* The GNU C library defines this for functions which it implements
14276 to always fail with ENOSYS. Some functions are actually named
14277 something starting with __ and the normal name is an alias. */
14278 #if defined (__stub_crypt) || defined (__stub___crypt)
14286 if { (eval echo configure:14287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14288 eval "ac_cv_func_crypt=yes"
14290 echo "configure: failed program was:" >&5
14291 cat conftest.$ac_ext >&5
14293 eval "ac_cv_func_crypt=no"
14298 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14299 echo "$ac_t""yes" 1>&6
14302 echo "$ac_t""no" 1>&6
14304 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14305 echo "configure:14306: checking for crypt in -lcrypt" >&5
14306 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14308 echo $ac_n "(cached) $ac_c" 1>&6
14310 ac_save_LIBS="$LIBS"
14311 LIBS="-lcrypt $LIBS"
14312 cat > conftest.$ac_ext <<EOF
14313 #line 14314 "configure"
14314 #include "confdefs.h"
14315 /* Override any gcc2 internal prototype to avoid an error. */
14316 /* We use char because int might match the return type of a gcc2
14317 builtin and then its argument prototype would still apply. */
14324 if { (eval echo configure:14325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14326 eval "ac_cv_lib_$ac_lib_var=yes"
14328 echo "configure: failed program was:" >&5
14329 cat conftest.$ac_ext >&5
14331 eval "ac_cv_lib_$ac_lib_var=no"
14334 LIBS="$ac_save_LIBS"
14337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14338 echo "$ac_t""yes" 1>&6
14339 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14342 echo "$ac_t""no" 1>&6
14349 if test $have_crypt = yes ; then
14350 cat >> confdefs.h <<\EOF
14351 #define HAVE_CRYPT 1
14355 echo "configure: warning: could not find crypt" 1>&2
14356 if test $ol_enable_crypt = yes ; then
14357 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14360 echo "configure: warning: disabling crypt support" 1>&2
14365 if test $ol_enable_proctitle != no ; then
14366 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14367 echo "configure:14368: checking for setproctitle" >&5
14368 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14369 echo $ac_n "(cached) $ac_c" 1>&6
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374 /* System header to define __stub macros and hopefully few prototypes,
14375 which can conflict with char setproctitle(); below. */
14376 #include <assert.h>
14377 /* Override any gcc2 internal prototype to avoid an error. */
14378 /* We use char because int might match the return type of a gcc2
14379 builtin and then its argument prototype would still apply. */
14380 char setproctitle();
14385 /* The GNU C library defines this for functions which it implements
14386 to always fail with ENOSYS. Some functions are actually named
14387 something starting with __ and the normal name is an alias. */
14388 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14396 if { (eval echo configure:14397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14398 eval "ac_cv_func_setproctitle=yes"
14400 echo "configure: failed program was:" >&5
14401 cat conftest.$ac_ext >&5
14403 eval "ac_cv_func_setproctitle=no"
14408 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14409 echo "$ac_t""yes" 1>&6
14410 have_setproctitle=yes
14412 echo "$ac_t""no" 1>&6
14414 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14415 echo "configure:14416: checking for setproctitle in -lutil" >&5
14416 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14418 echo $ac_n "(cached) $ac_c" 1>&6
14420 ac_save_LIBS="$LIBS"
14421 LIBS="-lutil $LIBS"
14422 cat > conftest.$ac_ext <<EOF
14423 #line 14424 "configure"
14424 #include "confdefs.h"
14425 /* Override any gcc2 internal prototype to avoid an error. */
14426 /* We use char because int might match the return type of a gcc2
14427 builtin and then its argument prototype would still apply. */
14428 char setproctitle();
14434 if { (eval echo configure:14435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14436 eval "ac_cv_lib_$ac_lib_var=yes"
14438 echo "configure: failed program was:" >&5
14439 cat conftest.$ac_ext >&5
14441 eval "ac_cv_lib_$ac_lib_var=no"
14444 LIBS="$ac_save_LIBS"
14447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14448 echo "$ac_t""yes" 1>&6
14449 have_setproctitle=yes
14450 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14452 echo "$ac_t""no" 1>&6
14453 have_setproctitle=no
14454 LIBOBJS="$LIBOBJS setproctitle.o"
14455 LIBSRCS="$LIBSRCS setproctitle.c"
14461 if test $have_setproctitle = yes ; then
14462 cat >> confdefs.h <<\EOF
14463 #define HAVE_SETPROCTITLE 1
14469 if test $ol_enable_slp != no ; then
14470 for ac_hdr in slp.h
14472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14473 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14474 echo "configure:14475: checking for $ac_hdr" >&5
14475 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14476 echo $ac_n "(cached) $ac_c" 1>&6
14478 cat > conftest.$ac_ext <<EOF
14479 #line 14480 "configure"
14480 #include "confdefs.h"
14483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14484 { (eval echo configure:14485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14486 if test -z "$ac_err"; then
14488 eval "ac_cv_header_$ac_safe=yes"
14491 echo "configure: failed program was:" >&5
14492 cat conftest.$ac_ext >&5
14494 eval "ac_cv_header_$ac_safe=no"
14498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14499 echo "$ac_t""yes" 1>&6
14500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14501 cat >> confdefs.h <<EOF
14502 #define $ac_tr_hdr 1
14506 echo "$ac_t""no" 1>&6
14511 if test $ac_cv_header_slp_h = yes ; then
14512 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
14513 echo "configure:14514: checking for SLPOpen in -lslp" >&5
14514 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
14515 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14516 echo $ac_n "(cached) $ac_c" 1>&6
14518 ac_save_LIBS="$LIBS"
14520 cat > conftest.$ac_ext <<EOF
14521 #line 14522 "configure"
14522 #include "confdefs.h"
14523 /* Override any gcc2 internal prototype to avoid an error. */
14524 /* We use char because int might match the return type of a gcc2
14525 builtin and then its argument prototype would still apply. */
14532 if { (eval echo configure:14533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14534 eval "ac_cv_lib_$ac_lib_var=yes"
14536 echo "configure: failed program was:" >&5
14537 cat conftest.$ac_ext >&5
14539 eval "ac_cv_lib_$ac_lib_var=no"
14542 LIBS="$ac_save_LIBS"
14545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14546 echo "$ac_t""yes" 1>&6
14549 echo "$ac_t""no" 1>&6
14553 if test $have_slp = yes ; then
14554 cat >> confdefs.h <<\EOF
14558 SLAPD_SLP_LIBS=-lslp
14561 elif test $ol_enable_slp = yes ; then
14562 { echo "configure: error: SLP not found" 1>&2; exit 1; }
14566 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14567 echo "configure:14568: checking for ANSI C header files" >&5
14568 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
14569 echo $ac_n "(cached) $ac_c" 1>&6
14571 cat > conftest.$ac_ext <<EOF
14572 #line 14573 "configure"
14573 #include "confdefs.h"
14574 #include <stdlib.h>
14575 #include <stdarg.h>
14576 #include <string.h>
14579 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14580 { (eval echo configure:14581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14581 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14582 if test -z "$ac_err"; then
14584 ac_cv_header_stdc=yes
14587 echo "configure: failed program was:" >&5
14588 cat conftest.$ac_ext >&5
14590 ac_cv_header_stdc=no
14594 if test $ac_cv_header_stdc = yes; then
14595 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14596 cat > conftest.$ac_ext <<EOF
14597 #line 14598 "configure"
14598 #include "confdefs.h"
14599 #include <string.h>
14601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14602 egrep "memchr" >/dev/null 2>&1; then
14606 ac_cv_header_stdc=no
14612 if test $ac_cv_header_stdc = yes; then
14613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14614 cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14617 #include <stdlib.h>
14619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14620 egrep "free" >/dev/null 2>&1; then
14624 ac_cv_header_stdc=no
14630 if test $ac_cv_header_stdc = yes; then
14631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14632 if test "$cross_compiling" = yes; then
14635 cat > conftest.$ac_ext <<EOF
14636 #line 14637 "configure"
14637 #include "confdefs.h"
14639 #if ((' ' & 0x0FF) == 0x020)
14640 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14641 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14643 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14644 || ('j' <= (c) && (c) <= 'r') \
14645 || ('s' <= (c) && (c) <= 'z'))
14646 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14649 int main () { int i; for (i = 0; i < 256; i++)
14650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14654 if { (eval echo configure:14655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14658 echo "configure: failed program was:" >&5
14659 cat conftest.$ac_ext >&5
14661 ac_cv_header_stdc=no
14669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14670 if test $ac_cv_header_stdc = yes; then
14671 cat >> confdefs.h <<\EOF
14672 #define STDC_HEADERS 1
14677 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14678 echo "configure:14679: checking for mode_t" >&5
14679 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
14680 echo $ac_n "(cached) $ac_c" 1>&6
14682 cat > conftest.$ac_ext <<EOF
14683 #line 14684 "configure"
14684 #include "confdefs.h"
14685 #include <sys/types.h>
14687 #include <stdlib.h>
14688 #include <stddef.h>
14692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14693 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14695 eval "ac_cv_type_mode_t=yes"
14698 eval "ac_cv_type_mode_t=no"
14703 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
14704 echo "$ac_t""yes" 1>&6
14706 echo "$ac_t""no" 1>&6
14707 cat >> confdefs.h <<EOF
14713 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14714 echo "configure:14715: checking for off_t" >&5
14715 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
14716 echo $ac_n "(cached) $ac_c" 1>&6
14718 cat > conftest.$ac_ext <<EOF
14719 #line 14720 "configure"
14720 #include "confdefs.h"
14721 #include <sys/types.h>
14723 #include <stdlib.h>
14724 #include <stddef.h>
14728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14729 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14731 eval "ac_cv_type_off_t=yes"
14734 eval "ac_cv_type_off_t=no"
14739 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
14740 echo "$ac_t""yes" 1>&6
14742 echo "$ac_t""no" 1>&6
14743 cat >> confdefs.h <<EOF
14749 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14750 echo "configure:14751: checking for pid_t" >&5
14751 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 #include <sys/types.h>
14759 #include <stdlib.h>
14760 #include <stddef.h>
14764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14765 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14767 eval "ac_cv_type_pid_t=yes"
14770 eval "ac_cv_type_pid_t=no"
14775 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
14776 echo "$ac_t""yes" 1>&6
14778 echo "$ac_t""no" 1>&6
14779 cat >> confdefs.h <<EOF
14785 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
14786 echo "configure:14787: checking for ptrdiff_t" >&5
14787 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
14788 echo $ac_n "(cached) $ac_c" 1>&6
14790 cat > conftest.$ac_ext <<EOF
14791 #line 14792 "configure"
14792 #include "confdefs.h"
14793 #include <stddef.h>
14798 if { (eval echo configure:14799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14800 am_cv_type_ptrdiff_t=yes
14802 echo "configure: failed program was:" >&5
14803 cat conftest.$ac_ext >&5
14805 am_cv_type_ptrdiff_t=no
14810 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
14811 if test $am_cv_type_ptrdiff_t = yes; then
14812 cat >> confdefs.h <<\EOF
14813 #define HAVE_PTRDIFF_T 1
14818 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
14819 echo "configure:14820: checking return type of signal handlers" >&5
14820 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
14821 echo $ac_n "(cached) $ac_c" 1>&6
14823 cat > conftest.$ac_ext <<EOF
14824 #line 14825 "configure"
14825 #include "confdefs.h"
14826 #include <sys/types.h>
14827 #include <signal.h>
14832 extern "C" void (*signal (int, void (*)(int)))(int);
14834 void (*signal ()) ();
14841 if { (eval echo configure:14842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14843 ac_cv_type_signal=void
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14848 ac_cv_type_signal=int
14853 echo "$ac_t""$ac_cv_type_signal" 1>&6
14854 cat >> confdefs.h <<EOF
14855 #define RETSIGTYPE $ac_cv_type_signal
14859 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14860 echo "configure:14861: checking for size_t" >&5
14861 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
14862 echo $ac_n "(cached) $ac_c" 1>&6
14864 cat > conftest.$ac_ext <<EOF
14865 #line 14866 "configure"
14866 #include "confdefs.h"
14867 #include <sys/types.h>
14869 #include <stdlib.h>
14870 #include <stddef.h>
14874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14875 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14877 eval "ac_cv_type_size_t=yes"
14880 eval "ac_cv_type_size_t=no"
14885 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
14886 echo "$ac_t""yes" 1>&6
14888 echo "$ac_t""no" 1>&6
14889 cat >> confdefs.h <<EOF
14890 #define size_t unsigned
14896 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
14897 echo "configure:14898: checking for ssize_t" >&5
14898 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
14899 echo $ac_n "(cached) $ac_c" 1>&6
14901 cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904 #include <sys/types.h>
14906 #include <stdlib.h>
14907 #include <stddef.h>
14911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14912 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14914 eval "ac_cv_type_ssize_t=yes"
14917 eval "ac_cv_type_ssize_t=no"
14922 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
14923 echo "$ac_t""yes" 1>&6
14925 echo "$ac_t""no" 1>&6
14926 cat >> confdefs.h <<EOF
14927 #define ssize_t signed int
14932 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
14933 echo "configure:14934: checking for caddr_t" >&5
14934 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
14935 echo $ac_n "(cached) $ac_c" 1>&6
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 #include <sys/types.h>
14942 #include <stdlib.h>
14943 #include <stddef.h>
14947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14948 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14950 eval "ac_cv_type_caddr_t=yes"
14953 eval "ac_cv_type_caddr_t=no"
14958 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
14959 echo "$ac_t""yes" 1>&6
14961 echo "$ac_t""no" 1>&6
14962 cat >> confdefs.h <<EOF
14963 #define caddr_t char *
14969 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
14970 echo "configure:14971: checking for socklen_t" >&5
14971 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
14972 echo $ac_n "(cached) $ac_c" 1>&6
14974 cat > conftest.$ac_ext <<EOF
14975 #line 14976 "configure"
14976 #include "confdefs.h"
14978 #ifdef HAVE_SYS_TYPES_H
14979 #include <sys/types.h>
14981 #ifdef HAVE_SYS_SOCKET_H
14982 #include <sys/socket.h>
14989 if { (eval echo configure:14990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14991 ol_cv_type_socklen_t=yes
14993 echo "configure: failed program was:" >&5
14994 cat conftest.$ac_ext >&5
14996 ol_cv_type_socklen_t=no
15001 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15002 if test $ol_cv_type_socklen_t = no; then
15003 cat >> confdefs.h <<\EOF
15004 #define socklen_t int
15009 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15010 echo "configure:15011: checking for member st_blksize in aggregate type struct stat" >&5
15011 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15012 echo $ac_n "(cached) $ac_c" 1>&6
15014 cat > conftest.$ac_ext <<EOF
15015 #line 15016 "configure"
15016 #include "confdefs.h"
15017 #include <sys/types.h>
15018 #include <sys/stat.h>
15020 struct stat foo; foo.st_blksize;
15023 if { (eval echo configure:15024: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15025 ac_cv_c_struct_member_st_blksize=yes
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15030 ac_cv_c_struct_member_st_blksize=no
15035 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
15036 st_blksize="$ac_cv_c_struct_member_st_blksize"
15037 if test $ac_cv_c_struct_member_st_blksize = yes; then
15038 cat >> confdefs.h <<\EOF
15039 #define HAVE_ST_BLKSIZE 1
15044 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
15045 echo "configure:15046: checking whether time.h and sys/time.h may both be included" >&5
15046 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
15047 echo $ac_n "(cached) $ac_c" 1>&6
15049 cat > conftest.$ac_ext <<EOF
15050 #line 15051 "configure"
15051 #include "confdefs.h"
15052 #include <sys/types.h>
15053 #include <sys/time.h>
15059 if { (eval echo configure:15060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15061 ac_cv_header_time=yes
15063 echo "configure: failed program was:" >&5
15064 cat conftest.$ac_ext >&5
15066 ac_cv_header_time=no
15071 echo "$ac_t""$ac_cv_header_time" 1>&6
15072 if test $ac_cv_header_time = yes; then
15073 cat >> confdefs.h <<\EOF
15074 #define TIME_WITH_SYS_TIME 1
15079 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15080 echo "configure:15081: checking whether struct tm is in sys/time.h or time.h" >&5
15081 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15082 echo $ac_n "(cached) $ac_c" 1>&6
15084 cat > conftest.$ac_ext <<EOF
15085 #line 15086 "configure"
15086 #include "confdefs.h"
15087 #include <sys/types.h>
15090 struct tm *tp; tp->tm_sec;
15093 if { (eval echo configure:15094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15095 ac_cv_struct_tm=time.h
15097 echo "configure: failed program was:" >&5
15098 cat conftest.$ac_ext >&5
15100 ac_cv_struct_tm=sys/time.h
15105 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15106 if test $ac_cv_struct_tm = sys/time.h; then
15107 cat >> confdefs.h <<\EOF
15108 #define TM_IN_SYS_TIME 1
15113 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15114 echo "configure:15115: checking for uid_t in sys/types.h" >&5
15115 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15116 echo $ac_n "(cached) $ac_c" 1>&6
15118 cat > conftest.$ac_ext <<EOF
15119 #line 15120 "configure"
15120 #include "confdefs.h"
15121 #include <sys/types.h>
15123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15124 egrep "uid_t" >/dev/null 2>&1; then
15126 ac_cv_type_uid_t=yes
15129 ac_cv_type_uid_t=no
15135 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15136 if test $ac_cv_type_uid_t = no; then
15137 cat >> confdefs.h <<\EOF
15141 cat >> confdefs.h <<\EOF
15147 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15148 echo "configure:15149: checking for sig_atomic_t" >&5
15149 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15150 echo $ac_n "(cached) $ac_c" 1>&6
15152 cat > conftest.$ac_ext <<EOF
15153 #line 15154 "configure"
15154 #include "confdefs.h"
15155 #include <signal.h>
15157 sig_atomic_t atomic;
15160 if { (eval echo configure:15161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15162 ol_cv_type_sig_atomic_t=yes
15164 echo "configure: failed program was:" >&5
15165 cat conftest.$ac_ext >&5
15167 ol_cv_type_sig_atomic_t=no
15172 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15173 if test $ol_cv_type_sig_atomic_t = no; then
15174 cat >> confdefs.h <<\EOF
15175 #define sig_atomic_t int
15182 # test for pw_gecos in struct passwd
15183 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15184 echo "configure:15185: checking struct passwd for pw_gecos" >&5
15185 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15186 echo $ac_n "(cached) $ac_c" 1>&6
15189 cat > conftest.$ac_ext <<EOF
15190 #line 15191 "configure"
15191 #include "confdefs.h"
15196 pwd.pw_gecos = pwd.pw_name;
15200 if { (eval echo configure:15201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15202 ol_cv_struct_passwd_pw_gecos=yes
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15207 ol_cv_struct_passwd_pw_gecos=no
15212 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15213 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15214 cat >> confdefs.h <<\EOF
15215 #define HAVE_PW_GECOS 1
15220 # test for pw_passwd in struct passwd
15221 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15222 echo "configure:15223: checking struct passwd for pw_passwd" >&5
15223 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15224 echo $ac_n "(cached) $ac_c" 1>&6
15227 cat > conftest.$ac_ext <<EOF
15228 #line 15229 "configure"
15229 #include "confdefs.h"
15234 pwd.pw_passwd = pwd.pw_name;
15238 if { (eval echo configure:15239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15240 ol_cv_struct_passwd_pw_passwd=yes
15242 echo "configure: failed program was:" >&5
15243 cat conftest.$ac_ext >&5
15245 ol_cv_struct_passwd_pw_passwd=no
15250 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15251 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15252 cat >> confdefs.h <<\EOF
15253 #define HAVE_PW_PASSWD 1
15259 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15260 echo "configure:15261: checking if toupper() requires islower()" >&5
15261 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15262 echo $ac_n "(cached) $ac_c" 1>&6
15265 if test "$cross_compiling" = yes; then
15266 ol_cv_c_upper_lower=safe
15268 cat > conftest.$ac_ext <<EOF
15269 #line 15270 "configure"
15270 #include "confdefs.h"
15275 if ('C' == toupper('C'))
15281 if { (eval echo configure:15282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15283 ol_cv_c_upper_lower=no
15285 echo "configure: failed program was:" >&5
15286 cat conftest.$ac_ext >&5
15288 ol_cv_c_upper_lower=yes
15295 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15296 if test $ol_cv_c_upper_lower != no ; then
15297 cat >> confdefs.h <<\EOF
15298 #define C_UPPER_LOWER 1
15303 echo $ac_n "checking for working const""... $ac_c" 1>&6
15304 echo "configure:15305: checking for working const" >&5
15305 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15306 echo $ac_n "(cached) $ac_c" 1>&6
15308 cat > conftest.$ac_ext <<EOF
15309 #line 15310 "configure"
15310 #include "confdefs.h"
15314 /* Ultrix mips cc rejects this. */
15315 typedef int charset[2]; const charset x;
15316 /* SunOS 4.1.1 cc rejects this. */
15317 char const *const *ccp;
15319 /* NEC SVR4.0.2 mips cc rejects this. */
15320 struct point {int x, y;};
15321 static struct point const zero = {0,0};
15322 /* AIX XL C 1.02.0.0 rejects this.
15323 It does not let you subtract one const X* pointer from another in an arm
15324 of an if-expression whose if-part is not a constant expression */
15325 const char *g = "string";
15326 ccp = &g + (g ? g-g : 0);
15327 /* HPUX 7.0 cc rejects these. */
15330 ccp = (char const *const *) p;
15331 { /* SCO 3.2v4 cc rejects this. */
15333 char const *s = 0 ? (char *) 0 : (char const *) 0;
15337 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15338 int x[] = {25, 17};
15339 const int *foo = &x[0];
15342 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15343 typedef const int *iptr;
15347 { /* AIX XL C 1.02.0.0 rejects this saying
15348 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15349 struct s { int j; const int *ap[3]; };
15350 struct s *b; b->j = 5;
15352 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15353 const int foo = 10;
15358 if { (eval echo configure:15359: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15362 echo "configure: failed program was:" >&5
15363 cat conftest.$ac_ext >&5
15370 echo "$ac_t""$ac_cv_c_const" 1>&6
15371 if test $ac_cv_c_const = no; then
15372 cat >> confdefs.h <<\EOF
15378 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15379 echo "configure:15380: checking if compiler understands volatile" >&5
15380 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15381 echo $ac_n "(cached) $ac_c" 1>&6
15383 cat > conftest.$ac_ext <<EOF
15384 #line 15385 "configure"
15385 #include "confdefs.h"
15388 volatile int a; int * volatile b = x ? &y : &z;
15389 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15393 if { (eval echo configure:15394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15395 ol_cv_c_volatile=yes
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15400 ol_cv_c_volatile=no
15405 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15406 if test $ol_cv_c_volatile = yes; then
15409 cat >> confdefs.h <<\EOF
15416 if test $cross_compiling = yes ; then
15417 cat >> confdefs.h <<\EOF
15418 #define CROSS_COMPILING 1
15422 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15423 echo "configure:15424: checking whether byte ordering is bigendian" >&5
15424 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15427 ac_cv_c_bigendian=unknown
15428 # See if sys/param.h defines the BYTE_ORDER macro.
15429 cat > conftest.$ac_ext <<EOF
15430 #line 15431 "configure"
15431 #include "confdefs.h"
15432 #include <sys/types.h>
15433 #include <sys/param.h>
15436 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15437 bogus endian macros
15441 if { (eval echo configure:15442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15443 # It does; now see whether it defined to BIG_ENDIAN or not.
15444 cat > conftest.$ac_ext <<EOF
15445 #line 15446 "configure"
15446 #include "confdefs.h"
15447 #include <sys/types.h>
15448 #include <sys/param.h>
15451 #if BYTE_ORDER != BIG_ENDIAN
15456 if { (eval echo configure:15457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15458 ac_cv_c_bigendian=yes
15460 echo "configure: failed program was:" >&5
15461 cat conftest.$ac_ext >&5
15463 ac_cv_c_bigendian=no
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15471 if test $ac_cv_c_bigendian = unknown; then
15472 if test "$cross_compiling" = yes; then
15473 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15479 /* Are we little or big endian? From Harbison&Steele. */
15483 char c[sizeof (long)];
15486 exit (u.c[sizeof (long) - 1] == 1);
15489 if { (eval echo configure:15490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15491 ac_cv_c_bigendian=no
15493 echo "configure: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15496 ac_cv_c_bigendian=yes
15504 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15505 if test $ac_cv_c_bigendian = yes; then
15506 cat >> confdefs.h <<\EOF
15507 #define WORDS_BIGENDIAN 1
15514 echo $ac_n "checking size of short""... $ac_c" 1>&6
15515 echo "configure:15516: checking size of short" >&5
15516 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15517 echo $ac_n "(cached) $ac_c" 1>&6
15519 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15520 cat > conftest.$ac_ext <<EOF
15521 #line 15522 "configure"
15522 #include "confdefs.h"
15523 #include "confdefs.h"
15524 #include <sys/types.h>
15528 switch (0) case 0: case (sizeof (short) == $ac_size):;
15531 if { (eval echo configure:15532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15533 ac_cv_sizeof_short=$ac_size
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15539 if test x$ac_cv_sizeof_short != x ; then break; fi
15544 if test x$ac_cv_sizeof_short = x ; then
15545 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15547 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15548 cat >> confdefs.h <<EOF
15549 #define SIZEOF_SHORT $ac_cv_sizeof_short
15553 echo $ac_n "checking size of int""... $ac_c" 1>&6
15554 echo "configure:15555: checking size of int" >&5
15555 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15556 echo $ac_n "(cached) $ac_c" 1>&6
15558 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15559 cat > conftest.$ac_ext <<EOF
15560 #line 15561 "configure"
15561 #include "confdefs.h"
15562 #include "confdefs.h"
15563 #include <sys/types.h>
15567 switch (0) case 0: case (sizeof (int) == $ac_size):;
15570 if { (eval echo configure:15571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15572 ac_cv_sizeof_int=$ac_size
15574 echo "configure: failed program was:" >&5
15575 cat conftest.$ac_ext >&5
15578 if test x$ac_cv_sizeof_int != x ; then break; fi
15583 if test x$ac_cv_sizeof_int = x ; then
15584 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
15586 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
15587 cat >> confdefs.h <<EOF
15588 #define SIZEOF_INT $ac_cv_sizeof_int
15592 echo $ac_n "checking size of long""... $ac_c" 1>&6
15593 echo "configure:15594: checking size of long" >&5
15594 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
15595 echo $ac_n "(cached) $ac_c" 1>&6
15597 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15598 cat > conftest.$ac_ext <<EOF
15599 #line 15600 "configure"
15600 #include "confdefs.h"
15601 #include "confdefs.h"
15602 #include <sys/types.h>
15606 switch (0) case 0: case (sizeof (long) == $ac_size):;
15609 if { (eval echo configure:15610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15611 ac_cv_sizeof_long=$ac_size
15613 echo "configure: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15617 if test x$ac_cv_sizeof_long != x ; then break; fi
15622 if test x$ac_cv_sizeof_long = x ; then
15623 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
15625 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
15626 cat >> confdefs.h <<EOF
15627 #define SIZEOF_LONG $ac_cv_sizeof_long
15632 if test "$ac_cv_sizeof_int" -lt 4 ; then
15633 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
15635 cat >> confdefs.h <<\EOF
15636 #define LBER_INT_T long
15640 cat >> confdefs.h <<\EOF
15641 #define LBER_INT_T int
15646 cat >> confdefs.h <<\EOF
15647 #define LBER_LEN_T long
15650 cat >> confdefs.h <<\EOF
15651 #define LBER_SOCKET_T int
15654 cat >> confdefs.h <<\EOF
15655 #define LBER_TAG_T long
15659 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
15660 echo "configure:15661: checking for 8-bit clean memcmp" >&5
15661 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
15662 echo $ac_n "(cached) $ac_c" 1>&6
15664 if test "$cross_compiling" = yes; then
15665 ac_cv_func_memcmp_clean=no
15667 cat > conftest.$ac_ext <<EOF
15668 #line 15669 "configure"
15669 #include "confdefs.h"
15673 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
15674 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
15678 if { (eval echo configure:15679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15680 ac_cv_func_memcmp_clean=yes
15682 echo "configure: failed program was:" >&5
15683 cat conftest.$ac_ext >&5
15685 ac_cv_func_memcmp_clean=no
15692 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
15693 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
15695 echo $ac_n "checking for strftime""... $ac_c" 1>&6
15696 echo "configure:15697: checking for strftime" >&5
15697 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
15698 echo $ac_n "(cached) $ac_c" 1>&6
15700 cat > conftest.$ac_ext <<EOF
15701 #line 15702 "configure"
15702 #include "confdefs.h"
15703 /* System header to define __stub macros and hopefully few prototypes,
15704 which can conflict with char strftime(); below. */
15705 #include <assert.h>
15706 /* Override any gcc2 internal prototype to avoid an error. */
15707 /* We use char because int might match the return type of a gcc2
15708 builtin and then its argument prototype would still apply. */
15714 /* The GNU C library defines this for functions which it implements
15715 to always fail with ENOSYS. Some functions are actually named
15716 something starting with __ and the normal name is an alias. */
15717 #if defined (__stub_strftime) || defined (__stub___strftime)
15725 if { (eval echo configure:15726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15727 eval "ac_cv_func_strftime=yes"
15729 echo "configure: failed program was:" >&5
15730 cat conftest.$ac_ext >&5
15732 eval "ac_cv_func_strftime=no"
15737 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
15738 echo "$ac_t""yes" 1>&6
15739 cat >> confdefs.h <<\EOF
15740 #define HAVE_STRFTIME 1
15744 echo "$ac_t""no" 1>&6
15745 # strftime is in -lintl on SCO UNIX.
15746 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
15747 echo "configure:15748: checking for strftime in -lintl" >&5
15748 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
15749 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15750 echo $ac_n "(cached) $ac_c" 1>&6
15752 ac_save_LIBS="$LIBS"
15753 LIBS="-lintl $LIBS"
15754 cat > conftest.$ac_ext <<EOF
15755 #line 15756 "configure"
15756 #include "confdefs.h"
15757 /* Override any gcc2 internal prototype to avoid an error. */
15758 /* We use char because int might match the return type of a gcc2
15759 builtin and then its argument prototype would still apply. */
15766 if { (eval echo configure:15767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15768 eval "ac_cv_lib_$ac_lib_var=yes"
15770 echo "configure: failed program was:" >&5
15771 cat conftest.$ac_ext >&5
15773 eval "ac_cv_lib_$ac_lib_var=no"
15776 LIBS="$ac_save_LIBS"
15779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15780 echo "$ac_t""yes" 1>&6
15781 cat >> confdefs.h <<\EOF
15782 #define HAVE_STRFTIME 1
15785 LIBS="-lintl $LIBS"
15787 echo "$ac_t""no" 1>&6
15793 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
15794 echo "configure:15795: checking for inet_aton()" >&5
15795 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
15796 echo $ac_n "(cached) $ac_c" 1>&6
15798 cat > conftest.$ac_ext <<EOF
15799 #line 15800 "configure"
15800 #include "confdefs.h"
15802 #ifdef HAVE_SYS_TYPES_H
15803 # include <sys/types.h>
15805 #ifdef HAVE_SYS_SOCKET_H
15806 # include <sys/socket.h>
15807 # ifdef HAVE_SYS_SELECT_H
15808 # include <sys/select.h>
15810 # include <netinet/in.h>
15811 # ifdef HAVE_ARPA_INET_H
15812 # include <arpa/inet.h>
15818 int rc = inet_aton( "255.255.255.255", &in );
15821 if { (eval echo configure:15822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15823 ol_cv_func_inet_aton=yes
15825 echo "configure: failed program was:" >&5
15826 cat conftest.$ac_ext >&5
15828 ol_cv_func_inet_aton=no
15833 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
15834 if test $ol_cv_func_inet_aton != no; then
15835 cat >> confdefs.h <<\EOF
15836 #define HAVE_INET_ATON 1
15842 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
15843 echo "configure:15844: checking for _spawnlp" >&5
15844 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
15845 echo $ac_n "(cached) $ac_c" 1>&6
15847 cat > conftest.$ac_ext <<EOF
15848 #line 15849 "configure"
15849 #include "confdefs.h"
15850 /* System header to define __stub macros and hopefully few prototypes,
15851 which can conflict with char _spawnlp(); below. */
15852 #include <assert.h>
15853 /* Override any gcc2 internal prototype to avoid an error. */
15854 /* We use char because int might match the return type of a gcc2
15855 builtin and then its argument prototype would still apply. */
15861 /* The GNU C library defines this for functions which it implements
15862 to always fail with ENOSYS. Some functions are actually named
15863 something starting with __ and the normal name is an alias. */
15864 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
15872 if { (eval echo configure:15873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15874 eval "ac_cv_func__spawnlp=yes"
15876 echo "configure: failed program was:" >&5
15877 cat conftest.$ac_ext >&5
15879 eval "ac_cv_func__spawnlp=no"
15884 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
15885 echo "$ac_t""yes" 1>&6
15886 cat >> confdefs.h <<\EOF
15887 #define HAVE_SPAWNLP 1
15891 echo "$ac_t""no" 1>&6
15895 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
15896 echo "configure:15897: checking for _snprintf" >&5
15897 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
15898 echo $ac_n "(cached) $ac_c" 1>&6
15900 cat > conftest.$ac_ext <<EOF
15901 #line 15902 "configure"
15902 #include "confdefs.h"
15903 /* System header to define __stub macros and hopefully few prototypes,
15904 which can conflict with char _snprintf(); below. */
15905 #include <assert.h>
15906 /* Override any gcc2 internal prototype to avoid an error. */
15907 /* We use char because int might match the return type of a gcc2
15908 builtin and then its argument prototype would still apply. */
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined (__stub__snprintf) || defined (__stub____snprintf)
15925 if { (eval echo configure:15926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15927 eval "ac_cv_func__snprintf=yes"
15929 echo "configure: failed program was:" >&5
15930 cat conftest.$ac_ext >&5
15932 eval "ac_cv_func__snprintf=no"
15937 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
15938 echo "$ac_t""yes" 1>&6
15939 ac_cv_func_snprintf=yes
15940 cat >> confdefs.h <<\EOF
15941 #define snprintf _snprintf
15946 echo "$ac_t""no" 1>&6
15950 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
15951 echo "configure:15952: checking for _vsnprintf" >&5
15952 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
15953 echo $ac_n "(cached) $ac_c" 1>&6
15955 cat > conftest.$ac_ext <<EOF
15956 #line 15957 "configure"
15957 #include "confdefs.h"
15958 /* System header to define __stub macros and hopefully few prototypes,
15959 which can conflict with char _vsnprintf(); below. */
15960 #include <assert.h>
15961 /* Override any gcc2 internal prototype to avoid an error. */
15962 /* We use char because int might match the return type of a gcc2
15963 builtin and then its argument prototype would still apply. */
15969 /* The GNU C library defines this for functions which it implements
15970 to always fail with ENOSYS. Some functions are actually named
15971 something starting with __ and the normal name is an alias. */
15972 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
15980 if { (eval echo configure:15981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15982 eval "ac_cv_func__vsnprintf=yes"
15984 echo "configure: failed program was:" >&5
15985 cat conftest.$ac_ext >&5
15987 eval "ac_cv_func__vsnprintf=no"
15992 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
15993 echo "$ac_t""yes" 1>&6
15994 ac_cv_func_vsnprintf=yes
15995 cat >> confdefs.h <<\EOF
15996 #define vsnprintf _vsnprintf
16001 echo "$ac_t""no" 1>&6
16005 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16006 echo "configure:16007: checking for vprintf" >&5
16007 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16008 echo $ac_n "(cached) $ac_c" 1>&6
16010 cat > conftest.$ac_ext <<EOF
16011 #line 16012 "configure"
16012 #include "confdefs.h"
16013 /* System header to define __stub macros and hopefully few prototypes,
16014 which can conflict with char vprintf(); below. */
16015 #include <assert.h>
16016 /* Override any gcc2 internal prototype to avoid an error. */
16017 /* We use char because int might match the return type of a gcc2
16018 builtin and then its argument prototype would still apply. */
16024 /* The GNU C library defines this for functions which it implements
16025 to always fail with ENOSYS. Some functions are actually named
16026 something starting with __ and the normal name is an alias. */
16027 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16035 if { (eval echo configure:16036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16037 eval "ac_cv_func_vprintf=yes"
16039 echo "configure: failed program was:" >&5
16040 cat conftest.$ac_ext >&5
16042 eval "ac_cv_func_vprintf=no"
16047 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16048 echo "$ac_t""yes" 1>&6
16049 cat >> confdefs.h <<\EOF
16050 #define HAVE_VPRINTF 1
16054 echo "$ac_t""no" 1>&6
16057 if test "$ac_cv_func_vprintf" != yes; then
16058 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16059 echo "configure:16060: checking for _doprnt" >&5
16060 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
16061 echo $ac_n "(cached) $ac_c" 1>&6
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 /* System header to define __stub macros and hopefully few prototypes,
16067 which can conflict with char _doprnt(); below. */
16068 #include <assert.h>
16069 /* Override any gcc2 internal prototype to avoid an error. */
16070 /* We use char because int might match the return type of a gcc2
16071 builtin and then its argument prototype would still apply. */
16077 /* The GNU C library defines this for functions which it implements
16078 to always fail with ENOSYS. Some functions are actually named
16079 something starting with __ and the normal name is an alias. */
16080 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16088 if { (eval echo configure:16089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16090 eval "ac_cv_func__doprnt=yes"
16092 echo "configure: failed program was:" >&5
16093 cat conftest.$ac_ext >&5
16095 eval "ac_cv_func__doprnt=no"
16100 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16101 echo "$ac_t""yes" 1>&6
16102 cat >> confdefs.h <<\EOF
16103 #define HAVE_DOPRNT 1
16107 echo "$ac_t""no" 1>&6
16113 if test $ac_cv_func_vprintf = yes ; then
16114 for ac_func in vsnprintf vsprintf
16116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16117 echo "configure:16118: checking for $ac_func" >&5
16118 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16119 echo $ac_n "(cached) $ac_c" 1>&6
16121 cat > conftest.$ac_ext <<EOF
16122 #line 16123 "configure"
16123 #include "confdefs.h"
16124 /* System header to define __stub macros and hopefully few prototypes,
16125 which can conflict with char $ac_func(); below. */
16126 #include <assert.h>
16127 /* Override any gcc2 internal prototype to avoid an error. */
16128 /* We use char because int might match the return type of a gcc2
16129 builtin and then its argument prototype would still apply. */
16135 /* The GNU C library defines this for functions which it implements
16136 to always fail with ENOSYS. Some functions are actually named
16137 something starting with __ and the normal name is an alias. */
16138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16146 if { (eval echo configure:16147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16148 eval "ac_cv_func_$ac_func=yes"
16150 echo "configure: failed program was:" >&5
16151 cat conftest.$ac_ext >&5
16153 eval "ac_cv_func_$ac_func=no"
16158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16159 echo "$ac_t""yes" 1>&6
16160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16161 cat >> confdefs.h <<EOF
16162 #define $ac_tr_func 1
16166 echo "$ac_t""no" 1>&6
16225 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16226 echo "configure:16227: checking for $ac_func" >&5
16227 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16228 echo $ac_n "(cached) $ac_c" 1>&6
16230 cat > conftest.$ac_ext <<EOF
16231 #line 16232 "configure"
16232 #include "confdefs.h"
16233 /* System header to define __stub macros and hopefully few prototypes,
16234 which can conflict with char $ac_func(); below. */
16235 #include <assert.h>
16236 /* Override any gcc2 internal prototype to avoid an error. */
16237 /* We use char because int might match the return type of a gcc2
16238 builtin and then its argument prototype would still apply. */
16244 /* The GNU C library defines this for functions which it implements
16245 to always fail with ENOSYS. Some functions are actually named
16246 something starting with __ and the normal name is an alias. */
16247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16255 if { (eval echo configure:16256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16257 eval "ac_cv_func_$ac_func=yes"
16259 echo "configure: failed program was:" >&5
16260 cat conftest.$ac_ext >&5
16262 eval "ac_cv_func_$ac_func=no"
16267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16268 echo "$ac_t""yes" 1>&6
16269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16270 cat >> confdefs.h <<EOF
16271 #define $ac_tr_func 1
16275 echo "$ac_t""no" 1>&6
16280 for ac_func in getopt tempnam
16282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16283 echo "configure:16284: checking for $ac_func" >&5
16284 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16285 echo $ac_n "(cached) $ac_c" 1>&6
16287 cat > conftest.$ac_ext <<EOF
16288 #line 16289 "configure"
16289 #include "confdefs.h"
16290 /* System header to define __stub macros and hopefully few prototypes,
16291 which can conflict with char $ac_func(); below. */
16292 #include <assert.h>
16293 /* Override any gcc2 internal prototype to avoid an error. */
16294 /* We use char because int might match the return type of a gcc2
16295 builtin and then its argument prototype would still apply. */
16301 /* The GNU C library defines this for functions which it implements
16302 to always fail with ENOSYS. Some functions are actually named
16303 something starting with __ and the normal name is an alias. */
16304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16312 if { (eval echo configure:16313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16314 eval "ac_cv_func_$ac_func=yes"
16316 echo "configure: failed program was:" >&5
16317 cat conftest.$ac_ext >&5
16319 eval "ac_cv_func_$ac_func=no"
16324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16325 echo "$ac_t""yes" 1>&6
16326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16327 cat >> confdefs.h <<EOF
16328 #define $ac_tr_func 1
16332 echo "$ac_t""no" 1>&6
16333 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16339 if test "$ac_cv_func_getopt" != yes; then
16340 LIBSRCS="$LIBSRCS getopt.c"
16343 if test "$ac_cv_func_tempnam" != yes; then
16344 LIBSRCS="$LIBSRCS tempnam.c"
16347 # Check Configuration
16348 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16349 echo "configure:16350: checking declaration of sys_errlist" >&5
16350 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16351 echo $ac_n "(cached) $ac_c" 1>&6
16354 cat > conftest.$ac_ext <<EOF
16355 #line 16356 "configure"
16356 #include "confdefs.h"
16359 #include <sys/types.h>
16362 #include <stdlib.h>
16365 char *c = (char *) *sys_errlist
16368 if { (eval echo configure:16369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16370 ol_cv_dcl_sys_errlist=yes
16371 ol_cv_have_sys_errlist=yes
16373 echo "configure: failed program was:" >&5
16374 cat conftest.$ac_ext >&5
16376 ol_cv_dcl_sys_errlist=no
16381 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16383 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16384 if test $ol_cv_dcl_sys_errlist = no ; then
16385 cat >> confdefs.h <<\EOF
16386 #define DECL_SYS_ERRLIST 1
16390 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16391 echo "configure:16392: checking existence of sys_errlist" >&5
16392 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16393 echo $ac_n "(cached) $ac_c" 1>&6
16396 cat > conftest.$ac_ext <<EOF
16397 #line 16398 "configure"
16398 #include "confdefs.h"
16401 char *c = (char *) *sys_errlist
16404 if { (eval echo configure:16405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16406 ol_cv_have_sys_errlist=yes
16408 echo "configure: failed program was:" >&5
16409 cat conftest.$ac_ext >&5
16411 ol_cv_have_sys_errlist=no
16416 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16418 if test $ol_cv_have_sys_errlist = yes ; then
16419 cat >> confdefs.h <<\EOF
16420 #define HAVE_SYS_ERRLIST 1
16427 if test "$ol_enable_debug" != no ; then
16428 cat >> confdefs.h <<\EOF
16429 #define LDAP_DEBUG 1
16433 if test "$ol_enable_syslog" = yes ; then
16434 cat >> confdefs.h <<\EOF
16435 #define LDAP_SYSLOG 1
16439 if test "$ol_enable_cache" = no ; then
16440 cat >> confdefs.h <<\EOF
16441 #define LDAP_NOCACHE 1
16445 if test "$ol_link_kbind" != no ; then
16446 cat >> confdefs.h <<\EOF
16447 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16451 if test "$ol_enable_proctitle" != no ; then
16452 cat >> confdefs.h <<\EOF
16453 #define LDAP_PROCTITLE 1
16457 if test "$ol_enable_referrals" != no ; then
16458 cat >> confdefs.h <<\EOF
16459 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16463 if test "$ol_enable_local" != no; then
16464 cat >> confdefs.h <<\EOF
16465 #define LDAP_PF_LOCAL 1
16469 if test "$ol_link_ipv6" != no; then
16470 cat >> confdefs.h <<\EOF
16471 #define LDAP_PF_INET6 1
16475 if test "$ol_enable_cleartext" != no ; then
16476 cat >> confdefs.h <<\EOF
16477 #define SLAPD_CLEARTEXT 1
16481 if test "$ol_enable_crypt" != no ; then
16482 cat >> confdefs.h <<\EOF
16483 #define SLAPD_CRYPT 1
16487 if test "$ol_link_kpasswd" != no ; then
16488 cat >> confdefs.h <<\EOF
16489 #define SLAPD_KPASSWD 1
16493 if test "$ol_link_spasswd" != no ; then
16494 cat >> confdefs.h <<\EOF
16495 #define SLAPD_SPASSWD 1
16499 if test "$ol_enable_phonetic" != no ; then
16500 cat >> confdefs.h <<\EOF
16501 #define SLAPD_PHONETIC 1
16505 if test "$ol_enable_rlookups" != no ; then
16506 cat >> confdefs.h <<\EOF
16507 #define SLAPD_RLOOKUPS 1
16511 if test "$ol_enable_aci" != no ; then
16512 cat >> confdefs.h <<\EOF
16513 #define SLAPD_ACI_ENABLED 1
16518 if test "$ol_link_modules" != no ; then
16519 cat >> confdefs.h <<\EOF
16520 #define SLAPD_MODULES 1
16524 SLAPD_MODULES_LDFLAGS="-dlopen self"
16527 if test "$ol_enable_bdb" != no ; then
16528 cat >> confdefs.h <<\EOF
16529 #define SLAPD_BDB 1
16534 if test "$ol_with_bdb_module" != static ; then
16535 cat >> confdefs.h <<\EOF
16536 #define SLAPD_BDB_DYNAMIC 1
16540 BUILD_BDB_DYNAMIC=shared
16541 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
16545 if test "$ol_link_dnssrv" != no ; then
16546 cat >> confdefs.h <<\EOF
16547 #define SLAPD_DNSSRV 1
16552 if test "$ol_with_dnssrv_module" != static ; then
16553 cat >> confdefs.h <<\EOF
16554 #define SLAPD_DNSSRV_DYNAMIC 1
16558 BUILD_DNSSRV_DYNAMIC=shared
16559 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16563 if test "$ol_enable_ldap" != no ; then
16564 cat >> confdefs.h <<\EOF
16565 #define SLAPD_LDAP 1
16570 if test "$ol_with_ldap_module" != static ; then
16571 cat >> confdefs.h <<\EOF
16572 #define SLAPD_LDAP_DYNAMIC 1
16576 BUILD_LDAP_DYNAMIC=shared
16577 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
16581 if test "$ol_link_ldbm" != no ; then
16582 cat >> confdefs.h <<\EOF
16583 #define SLAPD_LDBM 1
16588 if test "$ol_with_ldbm_module" != static ; then
16589 cat >> confdefs.h <<\EOF
16590 #define SLAPD_LDBM_DYNAMIC 1
16594 BUILD_LDBM_DYNAMIC=shared
16595 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
16599 if test "$ol_enable_meta" != no ; then
16600 if test "$ol_enable_ldap" = no ; then
16601 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
16603 if test "$ol_enable_rewrite" = no ; then
16604 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
16606 cat >> confdefs.h <<\EOF
16607 #define SLAPD_META 1
16612 if test "$ol_with_meta_module" != static ; then
16613 cat >> confdefs.h <<\EOF
16614 #define SLAPD_META_DYNAMIC 1
16618 BUILD_META_DYNAMIC=shared
16619 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
16623 if test "$ol_enable_passwd" != no ; then
16624 cat >> confdefs.h <<\EOF
16625 #define SLAPD_PASSWD 1
16630 if test "$ol_with_passwd_module" != static ; then
16631 cat >> confdefs.h <<\EOF
16632 #define SLAPD_PASSWD_DYNAMIC 1
16636 BUILD_PASSWD_DYNAMIC=shared
16637 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
16641 if test "$ol_link_perl" != no ; then
16642 cat >> confdefs.h <<\EOF
16643 #define SLAPD_PERL 1
16648 if test "$ol_with_perl_module" != static ; then
16649 cat >> confdefs.h <<\EOF
16650 #define SLAPD_PERL_DYNAMIC 1
16654 BUILD_PERL_DYNAMIC=shared
16655 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
16659 if test "$ol_enable_shell" != no ; then
16660 cat >> confdefs.h <<\EOF
16661 #define SLAPD_SHELL 1
16666 if test "$ol_with_shell_module" != static ; then
16667 cat >> confdefs.h <<\EOF
16668 #define SLAPD_SHELL_DYNAMIC 1
16672 BUILD_SHELL_DYNAMIC=shared
16673 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
16677 if test "$ol_enable_tcl" != no ; then
16678 cat >> confdefs.h <<\EOF
16679 #define SLAPD_TCL 1
16684 if test "$ol_with_tcl_module" != static; then
16685 cat >> confdefs.h <<\EOF
16686 #define SLAPD_TCL_DYNAMIC 1
16690 BUILD_TCL_DYNAMIC=shared
16691 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
16695 if test "$ol_link_sql" != no ; then
16696 cat >> confdefs.h <<\EOF
16697 #define SLAPD_SQL 1
16702 if test "$ol_with_sql_module" != static; then
16703 cat >> confdefs.h <<\EOF
16704 #define SLAPD_SQL_DYNAMIC 1
16708 BUILD_SQL_DYNAMIC=shared
16709 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
16713 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
16714 $BUILD_SLAPD = yes ; then
16718 if test "$ol_enable_rewrite" != no ; then
16719 cat >> confdefs.h <<\EOF
16720 #define ENABLE_REWRITE 1
16724 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
16728 if test "$LINK_BINS_DYNAMIC" = yes; then
16730 LT_LIB_LINKAGE=shared
16733 LT_LIB_LINKAGE=static
16736 if test "$ac_cv_mingw32" = yes ; then
16811 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
16813 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16814 # Let make expand exec_prefix.
16815 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16817 # Any assignment to VPATH causes Sun make to only execute
16818 # the first set of double-colon rules, so remove it if not needed.
16819 # If there is a colon in the path, we need to keep it.
16820 if test "x$srcdir" = x.; then
16821 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
16824 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
16826 DEFS=-DHAVE_CONFIG_H
16828 # Without the "./", some shells look in PATH for config.status.
16829 : ${CONFIG_STATUS=./config.status}
16831 echo creating $CONFIG_STATUS
16832 rm -f $CONFIG_STATUS
16833 cat > $CONFIG_STATUS <<EOF
16835 # Generated automatically by configure.
16836 # Run this file to recreate the current configuration.
16837 # This directory was configured as follows,
16838 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16840 # $0 $ac_configure_args
16842 # Compiler output produced by configure, useful for debugging
16843 # configure, is in ./config.log if it exists.
16845 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
16848 case "\$ac_option" in
16849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16850 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
16851 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
16852 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
16853 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
16855 -help | --help | --hel | --he | --h)
16856 echo "\$ac_cs_usage"; exit 0 ;;
16857 *) echo "\$ac_cs_usage"; exit 1 ;;
16861 ac_given_srcdir=$srcdir
16862 ac_given_INSTALL="$INSTALL"
16864 trap 'rm -fr `echo "\
16865 Makefile:build/top.mk:Makefile.in:build/dir.mk \
16866 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
16867 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
16868 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
16869 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
16870 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
16871 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
16872 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
16873 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
16874 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
16875 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
16876 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
16877 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
16878 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
16879 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
16880 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
16881 include/Makefile:build/top.mk:include/Makefile.in \
16882 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
16883 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
16884 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
16885 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
16886 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
16887 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
16888 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
16889 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
16890 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
16891 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
16892 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
16893 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
16894 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
16895 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
16896 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
16897 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
16898 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
16899 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
16900 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
16901 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
16902 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
16903 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
16904 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
16905 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
16906 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
16907 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
16908 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
16909 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
16910 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
16911 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
16912 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
16914 cat >> $CONFIG_STATUS <<EOF
16916 # Protect against being on the right side of a sed subst in config.status.
16917 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
16918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
16922 s%@CFLAGS@%$CFLAGS%g
16923 s%@CPPFLAGS@%$CPPFLAGS%g
16924 s%@CXXFLAGS@%$CXXFLAGS%g
16925 s%@FFLAGS@%$FFLAGS%g
16927 s%@LDFLAGS@%$LDFLAGS%g
16929 s%@exec_prefix@%$exec_prefix%g
16930 s%@prefix@%$prefix%g
16931 s%@program_transform_name@%$program_transform_name%g
16932 s%@bindir@%$bindir%g
16933 s%@sbindir@%$sbindir%g
16934 s%@libexecdir@%$libexecdir%g
16935 s%@datadir@%$datadir%g
16936 s%@sysconfdir@%$sysconfdir%g
16937 s%@sharedstatedir@%$sharedstatedir%g
16938 s%@localstatedir@%$localstatedir%g
16939 s%@libdir@%$libdir%g
16940 s%@includedir@%$includedir%g
16941 s%@oldincludedir@%$oldincludedir%g
16942 s%@infodir@%$infodir%g
16943 s%@mandir@%$mandir%g
16945 s%@host_alias@%$host_alias%g
16946 s%@host_cpu@%$host_cpu%g
16947 s%@host_vendor@%$host_vendor%g
16948 s%@host_os@%$host_os%g
16949 s%@target@%$target%g
16950 s%@target_alias@%$target_alias%g
16951 s%@target_cpu@%$target_cpu%g
16952 s%@target_vendor@%$target_vendor%g
16953 s%@target_os@%$target_os%g
16955 s%@build_alias@%$build_alias%g
16956 s%@build_cpu@%$build_cpu%g
16957 s%@build_vendor@%$build_vendor%g
16958 s%@build_os@%$build_os%g
16959 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
16960 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
16961 s%@INSTALL_DATA@%$INSTALL_DATA%g
16962 s%@PACKAGE@%$PACKAGE%g
16963 s%@VERSION@%$VERSION%g
16964 s%@ACLOCAL@%$ACLOCAL%g
16965 s%@AUTOCONF@%$AUTOCONF%g
16966 s%@AUTOMAKE@%$AUTOMAKE%g
16967 s%@AUTOHEADER@%$AUTOHEADER%g
16968 s%@MAKEINFO@%$MAKEINFO%g
16969 s%@install_sh@%$install_sh%g
16972 s%@AMTARFLAGS@%$AMTARFLAGS%g
16973 s%@SET_MAKE@%$SET_MAKE%g
16974 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
16975 s%@top_builddir@%$top_builddir%g
16976 s%@ldap_subdir@%$ldap_subdir%g
16978 s%@RANLIB@%$RANLIB%g
16980 s%@DLLTOOL@%$DLLTOOL%g
16982 s%@OBJDUMP@%$OBJDUMP%g
16983 s%@LIBTOOL@%$LIBTOOL%g
16985 s%@SENDMAIL@%$SENDMAIL%g
16986 s%@EDITOR@%$EDITOR%g
16987 s%@FINGER@%$FINGER%g
16988 s%@PERLBIN@%$PERLBIN%g
16990 s%@EXEEXT@%$EXEEXT%g
16991 s%@OBJEXT@%$OBJEXT%g
16992 s%@OL_MKDEP@%$OL_MKDEP%g
16993 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
16994 s%@LIBOBJS@%$LIBOBJS%g
16995 s%@LIBSRCS@%$LIBSRCS%g
16997 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
16998 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
16999 s%@DYN_EXT@%$DYN_EXT%g
17000 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17001 s%@BUILD_BDB@%$BUILD_BDB%g
17002 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17003 s%@BUILD_LDAP@%$BUILD_LDAP%g
17004 s%@BUILD_LDBM@%$BUILD_LDBM%g
17005 s%@BUILD_META@%$BUILD_META%g
17006 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17007 s%@BUILD_PERL@%$BUILD_PERL%g
17008 s%@BUILD_SHELL@%$BUILD_SHELL%g
17009 s%@BUILD_SQL@%$BUILD_SQL%g
17010 s%@BUILD_TCL@%$BUILD_TCL%g
17011 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
17012 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
17013 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
17014 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
17015 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
17016 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
17017 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
17018 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
17019 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
17020 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
17021 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
17022 s%@LDAP_LIBS@%$LDAP_LIBS%g
17023 s%@LDIF_LIBS@%$LDIF_LIBS%g
17024 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
17025 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
17026 s%@LDBM_LIBS@%$LDBM_LIBS%g
17027 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
17028 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
17029 s%@WRAP_LIBS@%$WRAP_LIBS%g
17030 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
17031 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
17032 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
17033 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
17034 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
17035 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
17036 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
17037 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
17038 s%@KRB4_LIBS@%$KRB4_LIBS%g
17039 s%@KRB5_LIBS@%$KRB5_LIBS%g
17040 s%@READLINE_LIBS@%$READLINE_LIBS%g
17041 s%@SASL_LIBS@%$SASL_LIBS%g
17042 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
17043 s%@TLS_LIBS@%$TLS_LIBS%g
17044 s%@MODULES_LIBS@%$MODULES_LIBS%g
17045 s%@AUTH_LIBS@%$AUTH_LIBS%g
17046 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
17047 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
17048 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
17049 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
17054 cat >> $CONFIG_STATUS <<\EOF
17056 # Split the substitutions into bite-sized pieces for seds with
17057 # small command number limits, like on Digital OSF/1 and HP-UX.
17058 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17059 ac_file=1 # Number of current file.
17060 ac_beg=1 # First line for current file.
17061 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17064 while $ac_more_lines; do
17065 if test $ac_beg -gt 1; then
17066 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17068 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17070 if test ! -s conftest.s$ac_file; then
17071 ac_more_lines=false
17072 rm -f conftest.s$ac_file
17074 if test -z "$ac_sed_cmds"; then
17075 ac_sed_cmds="sed -f conftest.s$ac_file"
17077 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17079 ac_file=`expr $ac_file + 1`
17081 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17084 if test -z "$ac_sed_cmds"; then
17089 cat >> $CONFIG_STATUS <<EOF
17091 CONFIG_FILES=\${CONFIG_FILES-"\
17092 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17093 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17094 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17095 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17096 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17097 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17098 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17099 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17100 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17101 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17102 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17103 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17104 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17105 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17106 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17107 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17108 include/Makefile:build/top.mk:include/Makefile.in \
17109 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17110 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17111 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17112 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17113 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17114 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17115 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17116 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
17117 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17118 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
17119 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17120 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17121 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
17122 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17123 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17124 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17125 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
17126 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17127 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
17128 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17129 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17130 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
17131 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17132 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17133 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17134 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17135 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17136 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17137 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17138 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
17141 cat >> $CONFIG_STATUS <<\EOF
17142 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17143 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17145 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17146 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17147 *) ac_file_in="${ac_file}.in" ;;
17150 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17152 # Remove last slash and all that follows it. Not all systems have dirname.
17153 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17154 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17155 # The file is in a subdirectory.
17156 test ! -d "$ac_dir" && mkdir "$ac_dir"
17157 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17158 # A "../" for each directory in $ac_dir_suffix.
17159 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17161 ac_dir_suffix= ac_dots=
17164 case "$ac_given_srcdir" in
17166 if test -z "$ac_dots"; then top_srcdir=.
17167 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17168 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17169 *) # Relative path.
17170 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17171 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17174 case "$ac_given_INSTALL" in
17175 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17176 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17179 echo creating "$ac_file"
17181 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17183 *[Mm]akefile*) ac_comsub="1i\\
17184 # $configure_input" ;;
17188 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17190 s%@configure_input@%$configure_input%g
17191 s%@srcdir@%$srcdir%g
17192 s%@top_srcdir@%$top_srcdir%g
17193 s%@INSTALL@%$INSTALL%g
17194 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17198 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17199 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17201 # ac_d sets the value in "#define NAME VALUE" lines.
17202 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17203 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17206 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17207 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17208 ac_uB='\([ ]\)%\1#\2define\3'
17211 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17212 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17213 ac_eB='$%\1#\2define\3'
17217 if test "${CONFIG_HEADERS+set}" != set; then
17219 cat >> $CONFIG_STATUS <<EOF
17220 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17222 cat >> $CONFIG_STATUS <<\EOF
17224 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17225 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17227 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17228 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17229 *) ac_file_in="${ac_file}.in" ;;
17232 echo creating $ac_file
17234 rm -f conftest.frag conftest.in conftest.out
17235 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17236 cat $ac_file_inputs > conftest.in
17240 # Transform confdefs.h into a sed script conftest.vals that substitutes
17241 # the proper values into config.h.in to produce config.h. And first:
17242 # Protect against being on the right side of a sed subst in config.status.
17243 # Protect against being in an unquoted here document in config.status.
17244 rm -f conftest.vals
17245 cat > conftest.hdr <<\EOF
17248 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17252 sed -n -f conftest.hdr confdefs.h > conftest.vals
17255 # This sed command replaces #undef with comments. This is necessary, for
17256 # example, in the case of _POSIX_SOURCE, which is predefined and required
17257 # on some systems where configure will not decide to define it.
17258 cat >> conftest.vals <<\EOF
17259 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17262 # Break up conftest.vals because some shells have a limit on
17263 # the size of here documents, and old seds have small limits too.
17265 rm -f conftest.tail
17268 ac_lines=`grep -c . conftest.vals`
17269 # grep -c gives empty output for an empty file on some AIX systems.
17270 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17271 # Write a limited-size here document to conftest.frag.
17272 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17273 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17275 sed -f conftest.frag conftest.in > conftest.out
17277 mv conftest.out conftest.in
17278 ' >> $CONFIG_STATUS
17279 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17280 rm -f conftest.vals
17281 mv conftest.tail conftest.vals
17283 rm -f conftest.vals
17285 cat >> $CONFIG_STATUS <<\EOF
17286 rm -f conftest.frag conftest.h
17287 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17288 cat conftest.in >> conftest.h
17290 if cmp -s $ac_file conftest.h 2>/dev/null; then
17291 echo "$ac_file is unchanged"
17294 # Remove last slash and all that follows it. Not all systems have dirname.
17295 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17296 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17297 # The file is in a subdirectory.
17298 test ! -d "$ac_dir" && mkdir "$ac_dir"
17301 mv conftest.h $ac_file
17306 cat >> $CONFIG_STATUS <<EOF
17309 cat >> $CONFIG_STATUS <<\EOF
17312 echo Please \"make depend\" to build dependencies
17316 chmod +x $CONFIG_STATUS
17317 rm -fr confdefs* $ac_clean_files
17318 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1