3 # from OpenLDAP: pkg/ldap/configure.in,v 1.293 2000/03/16 18:14:50 kurt Exp
5 # Copyright 1998-2000 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms are permitted only
8 # as authorized by the OpenLDAP Public License. A copy of this
9 # license is available at http://www.OpenLDAP.org/license.html or
10 # in file LICENSE in the top-level directory of the distribution.
12 echo "Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved."
13 echo "Copying restrictions apply, see COPYRIGHT file."
15 # Guess values for system-dependent variables and create Makefiles.
16 # Generated automatically using autoconf version 2.13.1
17 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
19 # This configure script is free software; the Free Software Foundation
20 # gives unlimited permission to copy, distribute and modify it.
24 ac_default_prefix=/usr/local
25 # Any additions from configure.in:
26 ac_default_prefix=/usr/local
28 --with-subdir=DIR change default subdirectory used for installs"
30 --enable-debug enable debugging (yes)"
32 --enable-syslog enable syslog support (auto)"
34 --enable-proctitle enable proctitle support (yes)"
36 --enable-cache enable caching (yes)"
38 --enable-dns enable V2 DX Referrals extension (no)"
40 --enable-referrals enable V2 Referrals extension (yes)"
42 --enable-kbind enable V2 Kerberos IV bind (auto)"
44 --enable-cldap enable connectionless ldap (no)"
46 --enable-ldapi enable domain socket (PF_LOCAL) ldap (no)"
48 --enable-x-compile enable cross compiling (no)"
50 --enable-dmalloc enable debug malloc support (no)"
52 --with-cyrus-sasl with Cyrus SASL support (auto)"
54 --with-fetch with fetch URL support (auto)"
56 --with-kerberos with support (auto)"
58 --with-readline with readline support (auto)"
60 --with-threads use threads (auto)"
62 --with-tls with TLS/SSL support (auto)"
64 --with-yielding-select with implicitly yielding select (auto)"
66 LDAPD (X.500-to-LDAP Gateway) Options:"
68 --enable-ldapd enable building ldapd (no)"
70 SLAPD (Standalone LDAP Daemon) Options:"
72 --enable-slapd enable building slapd (yes)"
74 --enable-cleartext enable cleartext passwords (yes)"
76 --enable-crypt enable crypt(3) passwords (auto)"
78 --enable-kpasswd enable kerberos password verification (no)"
80 --enable-spasswd enable (Cyrus) SASL password verification (no)"
82 --enable-modules enable dynamic module support (no)"
84 --enable-modules enable dynamic module support (no)"
86 --enable-multimaster enable multimaster replication (no)"
88 --enable-phonetic enable phonetic/soundex (no)"
90 --enable-quipu build quipu migration tools (no)"
92 --enable-rlookups enable reverse lookups (auto)"
94 --enable-aci enable per-object ACIs (no)"
96 --enable-wrappers enable tcp wrapper support (no)"
98 --enable-dynamic enable linking built binaries with dynamic libs (no)"
100 --enable-bdb2 enable bdb2 backend (no)"
102 --with-bdb2-module module type (static)"
104 --enable-ldap enable ldap backend (no)"
106 --with-ldap-module module type (static)"
108 --enable-ldbm enable ldbm backend (yes)"
110 --with-ldbm-api use LDBM API (auto)"
112 --with-ldbm-module module type (static)"
114 --with-ldbm-type use LDBM type (auto)"
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-tcl enable tcl backend (no)"
130 --with-tcl-module module type (static)"
132 --enable-sql enable sql backend (no)"
134 --with-sql-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
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 for ac_dir in build $srcdir/build; do
655 if test -f $ac_dir/install-sh; then
657 ac_install_sh="$ac_aux_dir/install-sh -c"
659 elif test -f $ac_dir/install.sh; then
661 ac_install_sh="$ac_aux_dir/install.sh -c"
663 elif test -f $ac_dir/shtool; then
665 ac_install_sh="$ac_aux_dir/shtool install -c"
669 if test -z "$ac_aux_dir"; then
670 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
672 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
673 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
674 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
676 OL_VERSION=`cat $ac_aux_dir/version`
677 if test -z "$OL_VERSION"; then
678 { echo "configure: error: could not determine version" 1>&2; exit 1; }
681 echo "Configuring OpenLDAP $OL_VERSION ..."
684 echo $ac_n "checking host system type""... $ac_c" 1>&6
685 echo "configure:686: checking host system type" >&5
686 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
688 # Make sure we can run config.sub.
689 if $ac_config_sub sun4 >/dev/null 2>&1; then :
690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
693 ac_cv_host_alias=$host
694 case "$ac_cv_host_alias" in
698 if ac_cv_host_alias=`$ac_config_guess`; then :
699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
701 *) ac_cv_host_alias=$nonopt ;;
705 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
706 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
707 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
708 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
710 echo $ac_n "(cached) $ac_c" 1>&6
713 echo "$ac_t""$ac_cv_host" 1>&6
716 host_alias=$ac_cv_host_alias
717 host_cpu=$ac_cv_host_cpu
718 host_vendor=$ac_cv_host_vendor
719 host_os=$ac_cv_host_os
725 echo $ac_n "checking target system type""... $ac_c" 1>&6
726 echo "configure:727: checking target system type" >&5
727 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
729 # Make sure we can run config.sub.
730 if $ac_config_sub sun4 >/dev/null 2>&1; then :
731 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
734 ac_cv_target_alias=$target
735 case "$ac_cv_target_alias" in
739 ac_cv_target_alias=$host_alias ;;
741 *) ac_cv_target_alias=$nonopt ;;
745 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
746 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
747 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
748 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
750 echo $ac_n "(cached) $ac_c" 1>&6
753 echo "$ac_t""$ac_cv_target" 1>&6
756 target_alias=$ac_cv_target_alias
757 target_cpu=$ac_cv_target_cpu
758 target_vendor=$ac_cv_target_vendor
759 target_os=$ac_cv_target_os
765 echo $ac_n "checking build system type""... $ac_c" 1>&6
766 echo "configure:767: checking build system type" >&5
767 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
769 # Make sure we can run config.sub.
770 if $ac_config_sub sun4 >/dev/null 2>&1; then :
771 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
774 ac_cv_build_alias=$build
775 case "$ac_cv_build_alias" in
779 ac_cv_build_alias=$host_alias ;;
781 *) ac_cv_build_alias=$nonopt ;;
785 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
786 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
787 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
788 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
790 echo $ac_n "(cached) $ac_c" 1>&6
793 echo "$ac_t""$ac_cv_build" 1>&6
796 build_alias=$ac_cv_build_alias
797 build_cpu=$ac_cv_build_cpu
798 build_vendor=$ac_cv_build_vendor
799 build_os=$ac_cv_build_os
805 # Do some error checking and defaulting for the host and target type.
807 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
810 # 1. You are not allowed to specify --host, --target, and nonopt at the
812 # 2. Host defaults to nonopt.
813 # 3. If nonopt is not specified, then host defaults to the current host,
814 # as determined by config.guess.
815 # 4. Target and build default to nonopt.
816 # 5. If nonopt is not specified, then target and build default to host.
818 # The aliases save the names the user supplied, while $host etc.
819 # will get canonicalized.
820 case $host---$target---$nonopt in
821 NONE---*---* | *---NONE---* | *---*---NONE) ;;
822 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
825 test "$host_alias" != "$target_alias" &&
826 test "$program_prefix$program_suffix$program_transform_name" = \
828 program_prefix=${target_alias}-
831 # Find a good install program. We prefer a C program (faster),
832 # so one script is as good as another. But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
841 # ./install, which can be erroneously created by make from ./install.sh.
842 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
843 echo "configure:844: checking for a BSD compatible install" >&5
844 if test -z "$INSTALL"; then
845 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
846 echo $ac_n "(cached) $ac_c" 1>&6
848 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
849 for ac_dir in $PATH; do
850 # Account for people who put trailing slashes in PATH elements.
852 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
854 # OSF1 and SCO ODT 3.0 have their own names for install.
855 # Don't use installbsd from OSF since it installs stuff as root
857 for ac_prog in ginstall scoinst install; do
858 if test -f $ac_dir/$ac_prog; then
859 if test $ac_prog = install &&
860 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
861 # AIX install. It has an incompatible calling convention.
863 elif test $ac_prog = install &&
864 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
865 # program-specific install script used by HP pwplus--don't use.
868 ac_cv_path_install="$ac_dir/$ac_prog -c"
879 if test "${ac_cv_path_install+set}" = set; then
880 INSTALL="$ac_cv_path_install"
882 # As a last resort, use the slow shell script. We don't cache a
883 # path for INSTALL within a source directory, because that will
884 # break other packages using the cache if that directory is
885 # removed, or if the path is relative.
886 INSTALL="$ac_install_sh"
889 echo "$ac_t""$INSTALL" 1>&6
891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
892 # It thinks the first close brace ends the variable substitution.
893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
899 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
900 echo "configure:901: checking whether build environment is sane" >&5
903 echo timestamp > conftestfile
904 # Do `set' in a subshell so we don't clobber the current shell's
905 # arguments. Must try -L first in case configure is actually a
906 # symlink; some systems play weird games with the mod time of symlinks
907 # (eg FreeBSD returns the mod time of the symlink's containing
910 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
911 if test "$*" = "X"; then
913 set X `ls -t $srcdir/configure conftestfile`
915 if test "$*" != "X $srcdir/configure conftestfile" \
916 && test "$*" != "X conftestfile $srcdir/configure"; then
918 # If neither matched, then we have a broken ls. This can happen
919 # if, for instance, CONFIG_SHELL is bash and it inherits a
920 # broken ls alias from the environment. This has actually
921 # happened. Such a system could not be considered "sane".
922 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
923 alias in your environment" 1>&2; exit 1; }
926 test "$2" = conftestfile
932 { echo "configure: error: newly created file is older than distributed files!
933 Check your system clock" 1>&2; exit 1; }
936 echo "$ac_t""yes" 1>&6
937 if test "$program_transform_name" = s,x,x,; then
938 program_transform_name=
940 # Double any \ or $. echo might interpret backslashes.
941 cat <<\EOF_SED > conftestsed
942 s,\\,\\\\,g; s,\$,$$,g
944 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
947 test "$program_prefix" != NONE &&
948 program_transform_name="s,^,${program_prefix},;$program_transform_name"
949 # Use a double $ so make ignores it.
950 test "$program_suffix" != NONE &&
951 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
953 # sed with no file args requires a program.
954 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
956 for ac_prog in mawk gawk nawk awk
958 # Extract the first word of "$ac_prog", so it can be a program name with args.
959 set dummy $ac_prog; ac_word=$2
960 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961 echo "configure:962: checking for $ac_word" >&5
962 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
963 echo $ac_n "(cached) $ac_c" 1>&6
965 if test -n "$AWK"; then
966 ac_cv_prog_AWK="$AWK" # Let the user override the test.
968 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
970 for ac_dir in $ac_dummy; do
971 test -z "$ac_dir" && ac_dir=.
972 if test -f $ac_dir/$ac_word; then
973 ac_cv_prog_AWK="$ac_prog"
980 AWK="$ac_cv_prog_AWK"
981 if test -n "$AWK"; then
982 echo "$ac_t""$AWK" 1>&6
984 echo "$ac_t""no" 1>&6
987 test -n "$AWK" && break
990 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
991 echo "configure:992: checking whether ${MAKE-make} sets \${MAKE}" >&5
992 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
993 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
994 echo $ac_n "(cached) $ac_c" 1>&6
996 cat > conftestmake <<\EOF
998 @echo 'ac_maketemp="${MAKE}"'
1000 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1001 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1002 if test -n "$ac_maketemp"; then
1003 eval ac_cv_prog_make_${ac_make}_set=yes
1005 eval ac_cv_prog_make_${ac_make}_set=no
1009 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1010 echo "$ac_t""yes" 1>&6
1013 echo "$ac_t""no" 1>&6
1014 SET_MAKE="MAKE=${MAKE-make}"
1023 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1024 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1029 missing_dir=`cd $ac_aux_dir && pwd`
1030 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1031 echo "configure:1032: checking for working aclocal" >&5
1032 # Run test in a subshell; some versions of sh will print an error if
1033 # an executable is not found, even if stderr is redirected.
1034 # Redirect stdin to placate older versions of autoconf. Sigh.
1035 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1037 echo "$ac_t""found" 1>&6
1039 ACLOCAL="$missing_dir/missing aclocal"
1040 echo "$ac_t""missing" 1>&6
1043 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1044 echo "configure:1045: checking for working autoconf" >&5
1045 # Run test in a subshell; some versions of sh will print an error if
1046 # an executable is not found, even if stderr is redirected.
1047 # Redirect stdin to placate older versions of autoconf. Sigh.
1048 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1050 echo "$ac_t""found" 1>&6
1052 AUTOCONF="$missing_dir/missing autoconf"
1053 echo "$ac_t""missing" 1>&6
1056 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1057 echo "configure:1058: checking for working automake" >&5
1058 # Run test in a subshell; some versions of sh will print an error if
1059 # an executable is not found, even if stderr is redirected.
1060 # Redirect stdin to placate older versions of autoconf. Sigh.
1061 if (automake --version) < /dev/null > /dev/null 2>&1; then
1063 echo "$ac_t""found" 1>&6
1065 AUTOMAKE="$missing_dir/missing automake"
1066 echo "$ac_t""missing" 1>&6
1069 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1070 echo "configure:1071: checking for working autoheader" >&5
1071 # Run test in a subshell; some versions of sh will print an error if
1072 # an executable is not found, even if stderr is redirected.
1073 # Redirect stdin to placate older versions of autoconf. Sigh.
1074 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1075 AUTOHEADER=autoheader
1076 echo "$ac_t""found" 1>&6
1078 AUTOHEADER="$missing_dir/missing autoheader"
1079 echo "$ac_t""missing" 1>&6
1082 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1083 echo "configure:1084: checking for working makeinfo" >&5
1084 # Run test in a subshell; some versions of sh will print an error if
1085 # an executable is not found, even if stderr is redirected.
1086 # Redirect stdin to placate older versions of autoconf. Sigh.
1087 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1089 echo "$ac_t""found" 1>&6
1091 MAKEINFO="$missing_dir/missing makeinfo"
1092 echo "$ac_t""missing" 1>&6
1095 install_sh="$missing_dir/install-sh"
1096 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1098 for ac_prog in gnutar gtar tar
1100 # Extract the first word of "$ac_prog", so it can be a program name with args.
1101 set dummy $ac_prog; ac_word=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$AMTAR"; then
1108 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1112 for ac_dir in $ac_dummy; do
1113 test -z "$ac_dir" && ac_dir=.
1114 if test -f $ac_dir/$ac_word; then
1115 ac_cv_prog_AMTAR="$ac_prog"
1122 AMTAR="$ac_cv_prog_AMTAR"
1123 if test -n "$AMTAR"; then
1124 echo "$ac_t""$AMTAR" 1>&6
1126 echo "$ac_t""no" 1>&6
1129 test -n "$AMTAR" && break
1134 if test -n "$AMTAR"; then
1135 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1142 cat >> confdefs.h <<EOF
1143 #define OPENLDAP_PACKAGE "$PACKAGE"
1146 cat >> confdefs.h <<EOF
1147 #define OPENLDAP_VERSION "$VERSION"
1153 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1154 echo "configure:1155: checking configure arguments" >&5
1159 ldap_subdir="/openldap"
1161 # Check whether --with-subdir or --without-subdir was given.
1162 if test "${with_subdir+set}" = set; then
1163 withval="$with_subdir"
1170 ldap_subdir="$withval"
1173 ldap_subdir="/$withval"
1180 # OpenLDAP --enable-debug
1181 # Check whether --enable-debug or --disable-debug was given.
1182 if test "${enable_debug+set}" = set; then
1183 enableval="$enable_debug"
1186 for ol_val in auto yes no ; do
1187 if test "$enableval" = "$ol_val" ; then
1191 if test "$ol_arg" = "invalid" ; then
1192 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1194 ol_enable_debug="$ol_arg"
1197 ol_enable_debug="yes"
1199 # end --enable-debug
1200 # OpenLDAP --enable-syslog
1201 # Check whether --enable-syslog or --disable-syslog was given.
1202 if test "${enable_syslog+set}" = set; then
1203 enableval="$enable_syslog"
1206 for ol_val in auto yes no ; do
1207 if test "$enableval" = "$ol_val" ; then
1211 if test "$ol_arg" = "invalid" ; then
1212 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1214 ol_enable_syslog="$ol_arg"
1217 ol_enable_syslog="auto"
1219 # end --enable-syslog
1220 # OpenLDAP --enable-proctitle
1221 # Check whether --enable-proctitle or --disable-proctitle was given.
1222 if test "${enable_proctitle+set}" = set; then
1223 enableval="$enable_proctitle"
1226 for ol_val in auto yes no ; do
1227 if test "$enableval" = "$ol_val" ; then
1231 if test "$ol_arg" = "invalid" ; then
1232 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1234 ol_enable_proctitle="$ol_arg"
1237 ol_enable_proctitle="yes"
1239 # end --enable-proctitle
1240 # OpenLDAP --enable-cache
1241 # Check whether --enable-cache or --disable-cache was given.
1242 if test "${enable_cache+set}" = set; then
1243 enableval="$enable_cache"
1246 for ol_val in auto yes no ; do
1247 if test "$enableval" = "$ol_val" ; then
1251 if test "$ol_arg" = "invalid" ; then
1252 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1254 ol_enable_cache="$ol_arg"
1257 ol_enable_cache="yes"
1259 # end --enable-cache
1260 # OpenLDAP --enable-dns
1261 # Check whether --enable-dns or --disable-dns was given.
1262 if test "${enable_dns+set}" = set; then
1263 enableval="$enable_dns"
1266 for ol_val in auto yes no ; do
1267 if test "$enableval" = "$ol_val" ; then
1271 if test "$ol_arg" = "invalid" ; then
1272 { echo "configure: error: bad value $enableval for --enable-dns" 1>&2; exit 1; }
1274 ol_enable_dns="$ol_arg"
1280 # OpenLDAP --enable-referrals
1281 # Check whether --enable-referrals or --disable-referrals was given.
1282 if test "${enable_referrals+set}" = set; then
1283 enableval="$enable_referrals"
1286 for ol_val in auto yes no ; do
1287 if test "$enableval" = "$ol_val" ; then
1291 if test "$ol_arg" = "invalid" ; then
1292 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1294 ol_enable_referrals="$ol_arg"
1297 ol_enable_referrals="yes"
1299 # end --enable-referrals
1300 # OpenLDAP --enable-kbind
1301 # Check whether --enable-kbind or --disable-kbind was given.
1302 if test "${enable_kbind+set}" = set; then
1303 enableval="$enable_kbind"
1306 for ol_val in auto yes no ; do
1307 if test "$enableval" = "$ol_val" ; then
1311 if test "$ol_arg" = "invalid" ; then
1312 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1314 ol_enable_kbind="$ol_arg"
1317 ol_enable_kbind="auto"
1319 # end --enable-kbind
1320 # OpenLDAP --enable-cldap
1321 # Check whether --enable-cldap or --disable-cldap was given.
1322 if test "${enable_cldap+set}" = set; then
1323 enableval="$enable_cldap"
1326 for ol_val in auto yes no ; do
1327 if test "$enableval" = "$ol_val" ; then
1331 if test "$ol_arg" = "invalid" ; then
1332 { echo "configure: error: bad value $enableval for --enable-cldap" 1>&2; exit 1; }
1334 ol_enable_cldap="$ol_arg"
1337 ol_enable_cldap="no"
1339 # end --enable-cldap
1340 # OpenLDAP --enable-ldapi
1341 # Check whether --enable-ldapi or --disable-ldapi was given.
1342 if test "${enable_ldapi+set}" = set; then
1343 enableval="$enable_ldapi"
1346 for ol_val in auto yes no ; do
1347 if test "$enableval" = "$ol_val" ; then
1351 if test "$ol_arg" = "invalid" ; then
1352 { echo "configure: error: bad value $enableval for --enable-ldapi" 1>&2; exit 1; }
1354 ol_enable_ldapi="$ol_arg"
1357 ol_enable_ldapi="no"
1359 # end --enable-ldapi
1360 # OpenLDAP --enable-x_compile
1361 # Check whether --enable-x_compile or --disable-x_compile was given.
1362 if test "${enable_x_compile+set}" = set; then
1363 enableval="$enable_x_compile"
1366 for ol_val in yes no ; do
1367 if test "$enableval" = "$ol_val" ; then
1371 if test "$ol_arg" = "invalid" ; then
1372 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1374 ol_enable_x_compile="$ol_arg"
1377 ol_enable_x_compile="no"
1379 # end --enable-x_compile
1381 # OpenLDAP --enable-dmalloc
1382 # Check whether --enable-dmalloc or --disable-dmalloc was given.
1383 if test "${enable_dmalloc+set}" = set; then
1384 enableval="$enable_dmalloc"
1387 for ol_val in auto yes no ; do
1388 if test "$enableval" = "$ol_val" ; then
1392 if test "$ol_arg" = "invalid" ; then
1393 { echo "configure: error: bad value $enableval for --enable-dmalloc" 1>&2; exit 1; }
1395 ol_enable_dmalloc="$ol_arg"
1398 ol_enable_dmalloc="no"
1400 # end --enable-dmalloc
1402 # OpenLDAP --with-cyrus_sasl
1403 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1404 if test "${with_cyrus_sasl+set}" = set; then
1405 withval="$with_cyrus_sasl"
1408 for ol_val in auto yes no ; do
1409 if test "$withval" = "$ol_val" ; then
1413 if test "$ol_arg" = "invalid" ; then
1414 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1416 ol_with_cyrus_sasl="$ol_arg"
1419 ol_with_cyrus_sasl="auto"
1421 # end --with-cyrus_sasl
1423 # OpenLDAP --with-fetch
1424 # Check whether --with-fetch or --without-fetch was given.
1425 if test "${with_fetch+set}" = set; then
1426 withval="$with_fetch"
1429 for ol_val in auto yes no ; do
1430 if test "$withval" = "$ol_val" ; then
1434 if test "$ol_arg" = "invalid" ; then
1435 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1437 ol_with_fetch="$ol_arg"
1440 ol_with_fetch="auto"
1444 # OpenLDAP --with-kerberos
1445 # Check whether --with-kerberos or --without-kerberos was given.
1446 if test "${with_kerberos+set}" = set; then
1447 withval="$with_kerberos"
1450 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1451 if test "$withval" = "$ol_val" ; then
1455 if test "$ol_arg" = "invalid" ; then
1456 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1458 ol_with_kerberos="$ol_arg"
1461 ol_with_kerberos="auto"
1463 # end --with-kerberos
1465 # OpenLDAP --with-readline
1466 # Check whether --with-readline or --without-readline was given.
1467 if test "${with_readline+set}" = set; then
1468 withval="$with_readline"
1471 for ol_val in auto yes no ; do
1472 if test "$withval" = "$ol_val" ; then
1476 if test "$ol_arg" = "invalid" ; then
1477 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1479 ol_with_readline="$ol_arg"
1482 ol_with_readline="auto"
1484 # end --with-readline
1486 # OpenLDAP --with-threads
1487 # Check whether --with-threads or --without-threads was given.
1488 if test "${with_threads+set}" = set; then
1489 withval="$with_threads"
1492 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1493 if test "$withval" = "$ol_val" ; then
1497 if test "$ol_arg" = "invalid" ; then
1498 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1500 ol_with_threads="$ol_arg"
1503 ol_with_threads="auto"
1505 # end --with-threads
1507 # OpenLDAP --with-tls
1508 # Check whether --with-tls or --without-tls was given.
1509 if test "${with_tls+set}" = set; then
1513 for ol_val in auto ssleay openssl yes no ; do
1514 if test "$withval" = "$ol_val" ; then
1518 if test "$ol_arg" = "invalid" ; then
1519 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1521 ol_with_tls="$ol_arg"
1528 # OpenLDAP --with-yielding_select
1529 # Check whether --with-yielding_select or --without-yielding_select was given.
1530 if test "${with_yielding_select+set}" = set; then
1531 withval="$with_yielding_select"
1534 for ol_val in auto yes no manual ; do
1535 if test "$withval" = "$ol_val" ; then
1539 if test "$ol_arg" = "invalid" ; then
1540 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1542 ol_with_yielding_select="$ol_arg"
1545 ol_with_yielding_select="auto"
1547 # end --with-yielding_select
1550 # Check whether --with-xxldapdoptions or --without-xxldapdoptions was given.
1551 if test "${with_xxldapdoptions+set}" = set; then
1552 withval="$with_xxldapdoptions"
1556 # OpenLDAP --enable-ldapd
1557 # Check whether --enable-ldapd or --disable-ldapd was given.
1558 if test "${enable_ldapd+set}" = set; then
1559 enableval="$enable_ldapd"
1562 for ol_val in auto yes no ; do
1563 if test "$enableval" = "$ol_val" ; then
1567 if test "$ol_arg" = "invalid" ; then
1568 { echo "configure: error: bad value $enableval for --enable-ldapd" 1>&2; exit 1; }
1570 ol_enable_ldapd="$ol_arg"
1573 ol_enable_ldapd="no"
1575 # end --enable-ldapd
1577 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1578 if test "${with_xxslapdoptions+set}" = set; then
1579 withval="$with_xxslapdoptions"
1583 # OpenLDAP --enable-slapd
1584 # Check whether --enable-slapd or --disable-slapd was given.
1585 if test "${enable_slapd+set}" = set; then
1586 enableval="$enable_slapd"
1589 for ol_val in auto yes no ; do
1590 if test "$enableval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1597 ol_enable_slapd="$ol_arg"
1600 ol_enable_slapd="yes"
1602 # end --enable-slapd
1603 # OpenLDAP --enable-cleartext
1604 # Check whether --enable-cleartext or --disable-cleartext was given.
1605 if test "${enable_cleartext+set}" = set; then
1606 enableval="$enable_cleartext"
1609 for ol_val in auto yes no ; do
1610 if test "$enableval" = "$ol_val" ; then
1614 if test "$ol_arg" = "invalid" ; then
1615 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1617 ol_enable_cleartext="$ol_arg"
1620 ol_enable_cleartext="yes"
1622 # end --enable-cleartext
1623 # OpenLDAP --enable-crypt
1624 # Check whether --enable-crypt or --disable-crypt was given.
1625 if test "${enable_crypt+set}" = set; then
1626 enableval="$enable_crypt"
1629 for ol_val in auto yes no ; do
1630 if test "$enableval" = "$ol_val" ; then
1634 if test "$ol_arg" = "invalid" ; then
1635 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1637 ol_enable_crypt="$ol_arg"
1640 ol_enable_crypt="auto"
1642 # end --enable-crypt
1643 # OpenLDAP --enable-kpasswd
1644 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1645 if test "${enable_kpasswd+set}" = set; then
1646 enableval="$enable_kpasswd"
1649 for ol_val in auto yes no ; do
1650 if test "$enableval" = "$ol_val" ; then
1654 if test "$ol_arg" = "invalid" ; then
1655 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1657 ol_enable_kpasswd="$ol_arg"
1660 ol_enable_kpasswd="no"
1662 # end --enable-kpasswd
1663 # OpenLDAP --enable-spasswd
1664 # Check whether --enable-spasswd or --disable-spasswd was given.
1665 if test "${enable_spasswd+set}" = set; then
1666 enableval="$enable_spasswd"
1669 for ol_val in auto yes no ; do
1670 if test "$enableval" = "$ol_val" ; then
1674 if test "$ol_arg" = "invalid" ; then
1675 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1677 ol_enable_spasswd="$ol_arg"
1680 ol_enable_spasswd="no"
1682 # end --enable-spasswd
1683 # OpenLDAP --enable-modules
1684 # Check whether --enable-modules or --disable-modules was given.
1685 if test "${enable_modules+set}" = set; then
1686 enableval="$enable_modules"
1689 for ol_val in auto yes no ; do
1690 if test "$enableval" = "$ol_val" ; then
1694 if test "$ol_arg" = "invalid" ; then
1695 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1697 ol_enable_modules="$ol_arg"
1700 ol_enable_modules="no"
1702 # end --enable-modules
1703 # OpenLDAP --enable-modules
1704 # Check whether --enable-modules or --disable-modules was given.
1705 if test "${enable_modules+set}" = set; then
1706 enableval="$enable_modules"
1709 for ol_val in auto yes no ; do
1710 if test "$enableval" = "$ol_val" ; then
1714 if test "$ol_arg" = "invalid" ; then
1715 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1717 ol_enable_modules="$ol_arg"
1720 ol_enable_modules="no"
1722 # end --enable-modules
1723 # OpenLDAP --enable-multimaster
1724 # Check whether --enable-multimaster or --disable-multimaster was given.
1725 if test "${enable_multimaster+set}" = set; then
1726 enableval="$enable_multimaster"
1729 for ol_val in auto yes no ; do
1730 if test "$enableval" = "$ol_val" ; then
1734 if test "$ol_arg" = "invalid" ; then
1735 { echo "configure: error: bad value $enableval for --enable-multimaster" 1>&2; exit 1; }
1737 ol_enable_multimaster="$ol_arg"
1740 ol_enable_multimaster="no"
1742 # end --enable-multimaster
1743 # OpenLDAP --enable-phonetic
1744 # Check whether --enable-phonetic or --disable-phonetic was given.
1745 if test "${enable_phonetic+set}" = set; then
1746 enableval="$enable_phonetic"
1749 for ol_val in auto yes no ; do
1750 if test "$enableval" = "$ol_val" ; then
1754 if test "$ol_arg" = "invalid" ; then
1755 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1757 ol_enable_phonetic="$ol_arg"
1760 ol_enable_phonetic="no"
1762 # end --enable-phonetic
1763 # OpenLDAP --enable-quipu
1764 # Check whether --enable-quipu or --disable-quipu was given.
1765 if test "${enable_quipu+set}" = set; then
1766 enableval="$enable_quipu"
1769 for ol_val in auto yes no ; do
1770 if test "$enableval" = "$ol_val" ; then
1774 if test "$ol_arg" = "invalid" ; then
1775 { echo "configure: error: bad value $enableval for --enable-quipu" 1>&2; exit 1; }
1777 ol_enable_quipu="$ol_arg"
1780 ol_enable_quipu="no"
1782 # end --enable-quipu
1783 # OpenLDAP --enable-rlookups
1784 # Check whether --enable-rlookups or --disable-rlookups was given.
1785 if test "${enable_rlookups+set}" = set; then
1786 enableval="$enable_rlookups"
1789 for ol_val in auto yes no ; do
1790 if test "$enableval" = "$ol_val" ; then
1794 if test "$ol_arg" = "invalid" ; then
1795 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1797 ol_enable_rlookups="$ol_arg"
1800 ol_enable_rlookups="auto"
1802 # end --enable-rlookups
1803 # OpenLDAP --enable-aci
1804 # Check whether --enable-aci or --disable-aci was given.
1805 if test "${enable_aci+set}" = set; then
1806 enableval="$enable_aci"
1809 for ol_val in auto yes no ; do
1810 if test "$enableval" = "$ol_val" ; then
1814 if test "$ol_arg" = "invalid" ; then
1815 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1817 ol_enable_aci="$ol_arg"
1823 # OpenLDAP --enable-wrappers
1824 # Check whether --enable-wrappers or --disable-wrappers was given.
1825 if test "${enable_wrappers+set}" = set; then
1826 enableval="$enable_wrappers"
1829 for ol_val in auto yes no ; do
1830 if test "$enableval" = "$ol_val" ; then
1834 if test "$ol_arg" = "invalid" ; then
1835 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1837 ol_enable_wrappers="$ol_arg"
1840 ol_enable_wrappers="no"
1842 # end --enable-wrappers
1843 # OpenLDAP --enable-dynamic
1844 # Check whether --enable-dynamic or --disable-dynamic was given.
1845 if test "${enable_dynamic+set}" = set; then
1846 enableval="$enable_dynamic"
1849 for ol_val in auto yes no ; do
1850 if test "$enableval" = "$ol_val" ; then
1854 if test "$ol_arg" = "invalid" ; then
1855 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1857 ol_enable_dynamic="$ol_arg"
1860 ol_enable_dynamic="no"
1862 # end --enable-dynamic
1864 # OpenLDAP --enable-bdb2
1865 # Check whether --enable-bdb2 or --disable-bdb2 was given.
1866 if test "${enable_bdb2+set}" = set; then
1867 enableval="$enable_bdb2"
1870 for ol_val in auto yes no ; do
1871 if test "$enableval" = "$ol_val" ; then
1875 if test "$ol_arg" = "invalid" ; then
1876 { echo "configure: error: bad value $enableval for --enable-bdb2" 1>&2; exit 1; }
1878 ol_enable_bdb2="$ol_arg"
1884 # OpenLDAP --with-bdb2_module
1885 # Check whether --with-bdb2_module or --without-bdb2_module was given.
1886 if test "${with_bdb2_module+set}" = set; then
1887 withval="$with_bdb2_module"
1890 for ol_val in static dynamic ; do
1891 if test "$withval" = "$ol_val" ; then
1895 if test "$ol_arg" = "invalid" ; then
1896 { echo "configure: error: bad value $withval for --with-bdb2_module" 1>&2; exit 1; }
1898 ol_with_bdb2_module="$ol_arg"
1901 ol_with_bdb2_module="static"
1903 # end --with-bdb2_module
1905 # OpenLDAP --enable-ldap
1906 # Check whether --enable-ldap or --disable-ldap was given.
1907 if test "${enable_ldap+set}" = set; then
1908 enableval="$enable_ldap"
1911 for ol_val in auto yes no ; do
1912 if test "$enableval" = "$ol_val" ; then
1916 if test "$ol_arg" = "invalid" ; then
1917 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1919 ol_enable_ldap="$ol_arg"
1925 # OpenLDAP --with-ldap_module
1926 # Check whether --with-ldap_module or --without-ldap_module was given.
1927 if test "${with_ldap_module+set}" = set; then
1928 withval="$with_ldap_module"
1931 for ol_val in static dynamic ; do
1932 if test "$withval" = "$ol_val" ; then
1936 if test "$ol_arg" = "invalid" ; then
1937 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1939 ol_with_ldap_module="$ol_arg"
1942 ol_with_ldap_module="static"
1944 # end --with-ldap_module
1946 # OpenLDAP --enable-ldbm
1947 # Check whether --enable-ldbm or --disable-ldbm was given.
1948 if test "${enable_ldbm+set}" = set; then
1949 enableval="$enable_ldbm"
1952 for ol_val in auto yes no ; do
1953 if test "$enableval" = "$ol_val" ; then
1957 if test "$ol_arg" = "invalid" ; then
1958 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1960 ol_enable_ldbm="$ol_arg"
1963 ol_enable_ldbm="yes"
1966 # OpenLDAP --with-ldbm_api
1967 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1968 if test "${with_ldbm_api+set}" = set; then
1969 withval="$with_ldbm_api"
1972 for ol_val in auto db2 db mdbm gdbm manual ; do
1973 if test "$withval" = "$ol_val" ; then
1977 if test "$ol_arg" = "invalid" ; then
1978 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1980 ol_with_ldbm_api="$ol_arg"
1983 ol_with_ldbm_api="auto"
1985 # end --with-ldbm_api
1987 # OpenLDAP --with-ldbm_module
1988 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1989 if test "${with_ldbm_module+set}" = set; then
1990 withval="$with_ldbm_module"
1993 for ol_val in static dynamic ; do
1994 if test "$withval" = "$ol_val" ; then
1998 if test "$ol_arg" = "invalid" ; then
1999 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2001 ol_with_ldbm_module="$ol_arg"
2004 ol_with_ldbm_module="static"
2006 # end --with-ldbm_module
2008 # OpenLDAP --with-ldbm_type
2009 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2010 if test "${with_ldbm_type+set}" = set; then
2011 withval="$with_ldbm_type"
2014 for ol_val in auto btree hash ; do
2015 if test "$withval" = "$ol_val" ; then
2019 if test "$ol_arg" = "invalid" ; then
2020 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2022 ol_with_ldbm_type="$ol_arg"
2025 ol_with_ldbm_type="auto"
2027 # end --with-ldbm_type
2030 # OpenLDAP --enable-passwd
2031 # Check whether --enable-passwd or --disable-passwd was given.
2032 if test "${enable_passwd+set}" = set; then
2033 enableval="$enable_passwd"
2036 for ol_val in auto yes no ; do
2037 if test "$enableval" = "$ol_val" ; then
2041 if test "$ol_arg" = "invalid" ; then
2042 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2044 ol_enable_passwd="$ol_arg"
2047 ol_enable_passwd="no"
2049 # end --enable-passwd
2050 # OpenLDAP --with-passwd_module
2051 # Check whether --with-passwd_module or --without-passwd_module was given.
2052 if test "${with_passwd_module+set}" = set; then
2053 withval="$with_passwd_module"
2056 for ol_val in static dynamic ; do
2057 if test "$withval" = "$ol_val" ; then
2061 if test "$ol_arg" = "invalid" ; then
2062 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2064 ol_with_passwd_module="$ol_arg"
2067 ol_with_passwd_module="static"
2069 # end --with-passwd_module
2071 # OpenLDAP --enable-perl
2072 # Check whether --enable-perl or --disable-perl was given.
2073 if test "${enable_perl+set}" = set; then
2074 enableval="$enable_perl"
2077 for ol_val in auto yes no ; do
2078 if test "$enableval" = "$ol_val" ; then
2082 if test "$ol_arg" = "invalid" ; then
2083 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2085 ol_enable_perl="$ol_arg"
2091 # OpenLDAP --with-perl_module
2092 # Check whether --with-perl_module or --without-perl_module was given.
2093 if test "${with_perl_module+set}" = set; then
2094 withval="$with_perl_module"
2097 for ol_val in static dynamic ; do
2098 if test "$withval" = "$ol_val" ; then
2102 if test "$ol_arg" = "invalid" ; then
2103 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2105 ol_with_perl_module="$ol_arg"
2108 ol_with_perl_module="static"
2110 # end --with-perl_module
2112 # OpenLDAP --enable-shell
2113 # Check whether --enable-shell or --disable-shell was given.
2114 if test "${enable_shell+set}" = set; then
2115 enableval="$enable_shell"
2118 for ol_val in auto yes no ; do
2119 if test "$enableval" = "$ol_val" ; then
2123 if test "$ol_arg" = "invalid" ; then
2124 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2126 ol_enable_shell="$ol_arg"
2129 ol_enable_shell="no"
2131 # end --enable-shell
2132 # OpenLDAP --with-shell_module
2133 # Check whether --with-shell_module or --without-shell_module was given.
2134 if test "${with_shell_module+set}" = set; then
2135 withval="$with_shell_module"
2138 for ol_val in static dynamic ; do
2139 if test "$withval" = "$ol_val" ; then
2143 if test "$ol_arg" = "invalid" ; then
2144 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2146 ol_with_shell_module="$ol_arg"
2149 ol_with_shell_module="static"
2151 # end --with-shell_module
2153 # OpenLDAP --enable-tcl
2154 # Check whether --enable-tcl or --disable-tcl was given.
2155 if test "${enable_tcl+set}" = set; then
2156 enableval="$enable_tcl"
2159 for ol_val in auto yes no ; do
2160 if test "$enableval" = "$ol_val" ; then
2164 if test "$ol_arg" = "invalid" ; then
2165 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2167 ol_enable_tcl="$ol_arg"
2173 # OpenLDAP --with-tcl_module
2174 # Check whether --with-tcl_module or --without-tcl_module was given.
2175 if test "${with_tcl_module+set}" = set; then
2176 withval="$with_tcl_module"
2179 for ol_val in static dynamic ; do
2180 if test "$withval" = "$ol_val" ; then
2184 if test "$ol_arg" = "invalid" ; then
2185 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2187 ol_with_tcl_module="$ol_arg"
2190 ol_with_tcl_module="static"
2192 # end --with-tcl_module
2194 # OpenLDAP --enable-sql
2195 # Check whether --enable-sql or --disable-sql was given.
2196 if test "${enable_sql+set}" = set; then
2197 enableval="$enable_sql"
2200 for ol_val in auto yes no ; do
2201 if test "$enableval" = "$ol_val" ; then
2205 if test "$ol_arg" = "invalid" ; then
2206 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2208 ol_enable_sql="$ol_arg"
2214 # OpenLDAP --with-sql_module
2215 # Check whether --with-sql_module or --without-sql_module was given.
2216 if test "${with_sql_module+set}" = set; then
2217 withval="$with_sql_module"
2220 for ol_val in static dynamic ; do
2221 if test "$withval" = "$ol_val" ; then
2225 if test "$ol_arg" = "invalid" ; then
2226 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2228 ol_with_sql_module="$ol_arg"
2231 ol_with_sql_module="static"
2233 # end --with-sql_module
2236 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2237 if test "${with_xxslurpdoptions+set}" = set; then
2238 withval="$with_xxslurpdoptions"
2242 # OpenLDAP --enable-slurpd
2243 # Check whether --enable-slurpd or --disable-slurpd was given.
2244 if test "${enable_slurpd+set}" = set; then
2245 enableval="$enable_slurpd"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2256 ol_enable_slurpd="$ol_arg"
2259 ol_enable_slurpd="auto"
2261 # end --enable-slurpd
2263 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2264 if test "${with_xxliboptions+set}" = set; then
2265 withval="$with_xxliboptions"
2269 # Check whether --enable-static or --disable-static was given.
2270 if test "${enable_static+set}" = set; then
2271 enableval="$enable_static"
2272 p=${PACKAGE-default}
2273 case "$enableval" in
2274 yes) enable_static=yes ;;
2275 no) enable_static=no ;;
2278 # Look at the argument we got. We use all the common list separators.
2279 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2280 for pkg in $enableval; do
2281 if test "X$pkg" = "X$p"; then
2292 # Check whether --enable-shared or --disable-shared was given.
2293 if test "${enable_shared+set}" = set; then
2294 enableval="$enable_shared"
2295 p=${PACKAGE-default}
2296 case "$enableval" in
2297 yes) enable_shared=yes ;;
2298 no) enable_shared=no ;;
2301 # Look at the argument we got. We use all the common list separators.
2302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2303 for pkg in $enableval; do
2304 if test "X$pkg" = "X$p"; then
2318 if test $ol_enable_dns = yes ; then
2319 if test $ol_enable_referrals = no ; then
2320 { echo "configure: error: DNS requires --enable-referrals" 1>&2; exit 1; }
2322 if test $ol_enable_referrals = auto ; then
2323 echo "configure: warning: DNS requires referrals, adding --enable-referrals" 1>&2
2324 ol_enable_referrals=yes
2328 if test $ol_enable_slapd = no ; then
2329 if test $ol_enable_bdb2 = yes ; then
2330 echo "configure: warning: slapd disabled, ignoring --enable-bdb2 argument" 1>&2
2332 if test $ol_enable_ldap = yes ; then
2333 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2335 if test $ol_enable_ldbm = yes ; then
2336 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2338 if test $ol_enable_passwd = yes ; then
2339 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2341 if test $ol_enable_perl = yes ; then
2342 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2344 if test $ol_enable_shell = yes ; then
2345 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2347 if test $ol_enable_tcl = yes ; then
2348 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2350 if test $ol_enable_sql = yes ; then
2351 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2353 if test $ol_enable_modules = yes ; then
2354 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2356 if test $ol_enable_multimaster = yes ; then
2357 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2359 if test $ol_enable_wrappers = yes ; then
2360 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2362 if test $ol_enable_phonetic = yes ; then
2363 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2365 if test $ol_enable_quipu = yes ; then
2366 echo "configure: warning: slapd disabled, ignoring --enable-quipu argument" 1>&2
2368 if test $ol_enable_rlookups = yes ; then
2369 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2371 if test $ol_enable_aci = yes ; then
2372 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2374 if test $ol_with_ldbm_api != auto ; then
2375 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2377 if test $ol_with_ldbm_type != auto ; then
2378 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2380 if test $ol_with_bdb2_module != static ; then
2381 echo "configure: warning: slapd disabled, ignoring --with-bdb2-module argument" 1>&2
2383 if test $ol_with_ldap_module != static ; then
2384 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2386 if test $ol_with_ldbm_module != static ; then
2387 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2389 if test $ol_with_passwd_module != static ; then
2390 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2392 if test $ol_with_perl_module != static ; then
2393 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2395 if test $ol_with_shell_module != static ; then
2396 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2398 if test $ol_with_tcl_module != static ; then
2399 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2401 if test $ol_with_sql_module != static ; then
2402 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2404 if test $ol_enable_slurpd = yes ; then
2405 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2408 # force settings to no
2418 ol_enable_modules=no
2419 ol_enable_multimaster=no
2420 ol_enable_phonetic=no
2422 ol_enable_rlookups=no
2424 ol_enable_wrappers=no
2425 ol_enable_dynamic=no
2428 ol_with_ldbm_type=no
2430 ol_with_bdb2_module=static
2431 ol_with_ldap_module=static
2432 ol_with_ldbm_module=static
2433 ol_with_passwd_module=static
2434 ol_with_perl_module=static
2435 ol_with_shell_module=static
2436 ol_with_tcl_module=static
2437 ol_with_sql_module=static
2441 elif test $ol_enable_ldbm = no ; then
2443 if test $ol_with_ldbm_api != auto ; then
2444 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2447 if test $ol_with_ldbm_type != auto ; then
2448 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2451 if test $ol_with_ldbm_module != static ; then
2452 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2455 if test $ol_enable_bdb2 = yes ; then
2456 { echo "configure: error: BDB2 requires --enable-ldbm" 1>&2; exit 1; }
2459 if test $ol_enable_modules != yes -a \
2460 $ol_enable_ldap = no -a \
2461 $ol_enable_passwd = no -a \
2462 $ol_enable_perl = no -a \
2463 $ol_enable_shell = no -a \
2464 $ol_enable_tcl = no -a \
2465 $ol_enable_sql = no ; then
2466 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2470 ol_with_ldbm_type=no
2471 ol_with_ldbm_module=static
2473 elif test $ol_enable_bdb2 = yes ; then
2475 if test $ol_with_ldbm_api != auto -a \
2476 $ol_with_ldbm_api != db2 ; then
2477 { echo "configure: error: BDB2 requires LDBM API DB2" 1>&2; exit 1; }
2480 ol_with_ldbm_api=db2
2484 if test $ol_enable_bdb2 != no ; then
2485 if test $ol_with_ldbm_api != auto -a \
2486 $ol_with_ldbm_api != db2 ; then
2487 echo "configure: warning: BDB2 requires LDBM api db2 or auto" 1>&2
2492 if test $ol_with_ldbm_api = gdbm -a \
2493 $ol_with_ldbm_type = btree ; then
2494 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2496 if test $ol_with_ldbm_api = mdbm -a \
2497 $ol_with_ldbm_type = btree ; then
2498 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2500 if test $ol_with_ldbm_api = ndbm -a \
2501 $ol_with_ldbm_type = btree ; then
2502 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2506 if test $ol_enable_slurpd = yes ; then
2507 if test $ol_with_threads = no ; then
2508 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2512 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2513 if test $ol_with_kerberos = no ; then
2514 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2516 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2517 if test $ol_with_kerberos != auto ; then
2518 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2524 if test $ol_enable_spasswd = yes ; then
2525 if test $ol_with_cyrus_sasl = no ; then
2526 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2528 ol_with_cyrus_sasl=yes
2531 echo "$ac_t""done" 1>&6
2558 BUILD_BDB2_DYNAMIC=static
2559 BUILD_LDAP_DYNAMIC=static
2560 BUILD_LDBM_DYNAMIC=static
2561 BUILD_PASSWD_DYNAMIC=static
2562 BUILD_PERL_DYNAMIC=static
2563 BUILD_SHELL_DYNAMIC=static
2564 BUILD_TCL_DYNAMIC=static
2565 BUILD_SQL_DYNAMIC=static
2567 SLAPD_MODULES_LDFLAGS=
2568 SLAPD_MODULES_CPPFLAGS=
2590 cat >> confdefs.h <<\EOF
2591 #define HAVE_MKVERSION 1
2599 *-*-aix*) if test -z "$CC" ; then
2600 case "$ol_with_threads" in
2601 auto | yes | posix) ol_aix_threads=yes ;;
2607 if test $ol_aix_threads = yes ; then
2608 if test -z "${CC}" ; then
2609 for ac_prog in cc_r xlc_r cc
2611 # Extract the first word of "$ac_prog", so it can be a program name with args.
2612 set dummy $ac_prog; ac_word=$2
2613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_word" >&5
2615 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 if test -n "$CC"; then
2619 ac_cv_prog_CC="$CC" # Let the user override the test.
2621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2623 for ac_dir in $ac_dummy; do
2624 test -z "$ac_dir" && ac_dir=.
2625 if test -f $ac_dir/$ac_word; then
2626 ac_cv_prog_CC="$ac_prog"
2634 if test -n "$CC"; then
2635 echo "$ac_t""$CC" 1>&6
2637 echo "$ac_t""no" 1>&6
2640 test -n "$CC" && break
2644 if test "$CC" = cc ; then
2645 if test $ol_with_threads != auto ; then
2646 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2648 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2654 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2655 ol_with_threads=posix
2656 ol_cv_pthread_create=yes
2660 if test -z "${CC}"; then
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664 set dummy $ac_prog; ac_word=$2
2665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2666 echo "configure:2667: checking for $ac_word" >&5
2667 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2668 echo $ac_n "(cached) $ac_c" 1>&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2675 for ac_dir in $ac_dummy; do
2676 test -z "$ac_dir" && ac_dir=.
2677 if test -f $ac_dir/$ac_word; then
2678 ac_cv_prog_CC="$ac_prog"
2686 if test -n "$CC"; then
2687 echo "$ac_t""$CC" 1>&6
2689 echo "$ac_t""no" 1>&6
2692 test -n "$CC" && break
2700 # Check whether --enable-fast-install or --disable-fast-install was given.
2701 if test "${enable_fast_install+set}" = set; then
2702 enableval="$enable_fast_install"
2703 p=${PACKAGE-default}
2704 case "$enableval" in
2705 yes) enable_fast_install=yes ;;
2706 no) enable_fast_install=no ;;
2708 enable_fast_install=no
2709 # Look at the argument we got. We use all the common list separators.
2710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2711 for pkg in $enableval; do
2712 if test "X$pkg" = "X$p"; then
2713 enable_fast_install=yes
2720 enable_fast_install=yes
2723 # Extract the first word of "ranlib", so it can be a program name with args.
2724 set dummy ranlib; ac_word=$2
2725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2726 echo "configure:2727: checking for $ac_word" >&5
2727 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2728 echo $ac_n "(cached) $ac_c" 1>&6
2730 if test -n "$RANLIB"; then
2731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2735 for ac_dir in $ac_dummy; do
2736 test -z "$ac_dir" && ac_dir=.
2737 if test -f $ac_dir/$ac_word; then
2738 ac_cv_prog_RANLIB="ranlib"
2743 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2746 RANLIB="$ac_cv_prog_RANLIB"
2747 if test -n "$RANLIB"; then
2748 echo "$ac_t""$RANLIB" 1>&6
2750 echo "$ac_t""no" 1>&6
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2756 echo "configure:2757: checking for $ac_word" >&5
2757 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2758 echo $ac_n "(cached) $ac_c" 1>&6
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2765 for ac_dir in $ac_dummy; do
2766 test -z "$ac_dir" && ac_dir=.
2767 if test -f $ac_dir/$ac_word; then
2776 if test -n "$CC"; then
2777 echo "$ac_t""$CC" 1>&6
2779 echo "$ac_t""no" 1>&6
2782 if test -z "$CC"; then
2783 # Extract the first word of "cc", so it can be a program name with args.
2784 set dummy cc; ac_word=$2
2785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2786 echo "configure:2787: checking for $ac_word" >&5
2787 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2788 echo $ac_n "(cached) $ac_c" 1>&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2796 for ac_dir in $ac_dummy; do
2797 test -z "$ac_dir" && ac_dir=.
2798 if test -f $ac_dir/$ac_word; then
2799 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2800 ac_prog_rejected=yes
2808 if test $ac_prog_rejected = yes; then
2809 # We found a bogon in the path, so make sure we never use it.
2810 set dummy $ac_cv_prog_CC
2812 if test $# -gt 0; then
2813 # We chose a different compiler from the bogus one.
2814 # However, it has the same basename, so the bogon will be chosen
2815 # first if we set CC to just the basename; use the full file name.
2817 set dummy "$ac_dir/$ac_word" "$@"
2825 if test -n "$CC"; then
2826 echo "$ac_t""$CC" 1>&6
2828 echo "$ac_t""no" 1>&6
2831 if test -z "$CC"; then
2832 case "`uname -s`" in
2833 *win32* | *WIN32* | *CYGWIN*)
2834 # Extract the first word of "cl", so it can be a program name with args.
2835 set dummy cl; ac_word=$2
2836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2837 echo "configure:2838: checking for $ac_word" >&5
2838 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2839 echo $ac_n "(cached) $ac_c" 1>&6
2841 if test -n "$CC"; then
2842 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2846 for ac_dir in $ac_dummy; do
2847 test -z "$ac_dir" && ac_dir=.
2848 if test -f $ac_dir/$ac_word; then
2857 if test -n "$CC"; then
2858 echo "$ac_t""$CC" 1>&6
2860 echo "$ac_t""no" 1>&6
2865 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2868 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2869 echo "configure:2870: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2872 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2873 ac_cpp='$CPP $CPPFLAGS'
2874 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2875 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2876 cross_compiling=$ac_cv_prog_cc_cross
2878 cat > conftest.$ac_ext << EOF
2880 #line 2881 "configure"
2881 #include "confdefs.h"
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2886 ac_cv_prog_cc_works=yes
2887 # If we can't run a trivial program, we are probably using a cross compiler.
2888 if (./conftest; exit) 2>/dev/null; then
2889 ac_cv_prog_cc_cross=no
2891 ac_cv_prog_cc_cross=yes
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2896 ac_cv_prog_cc_works=no
2900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2904 cross_compiling=$ac_cv_prog_cc_cross
2906 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2907 if test $ac_cv_prog_cc_works = no; then
2908 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2910 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2911 echo "configure:2912: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2912 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2913 cross_compiling=$ac_cv_prog_cc_cross
2915 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2916 echo "configure:2917: checking whether we are using GNU C" >&5
2917 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2918 echo $ac_n "(cached) $ac_c" 1>&6
2920 cat > conftest.c <<EOF
2925 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2932 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2934 if test $ac_cv_prog_gcc = yes; then
2940 ac_test_CFLAGS="${CFLAGS+set}"
2941 ac_save_CFLAGS="$CFLAGS"
2943 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2944 echo "configure:2945: checking whether ${CC-cc} accepts -g" >&5
2945 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2948 echo 'void f(){}' > conftest.c
2949 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2958 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2959 if test "$ac_test_CFLAGS" = set; then
2960 CFLAGS="$ac_save_CFLAGS"
2961 elif test $ac_cv_prog_cc_g = yes; then
2962 if test "$GCC" = yes; then
2968 if test "$GCC" = yes; then
2975 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2976 if test "${with_gnu_ld+set}" = set; then
2977 withval="$with_gnu_ld"
2978 test "$withval" = no || with_gnu_ld=yes
2984 if test "$ac_cv_prog_gcc" = yes; then
2985 # Check if gcc -print-prog-name=ld gives a path.
2986 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2987 echo "configure:2988: checking for ld used by GCC" >&5
2988 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2990 # Accept absolute paths.
2991 [\\/]* | [A-Za-z]:[\\/]*)
2992 re_direlt='/[^/][^/]*/\.\./'
2993 # Canonicalize the path of ld
2994 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2995 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2996 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2998 test -z "$LD" && LD="$ac_prog"
3001 # If it fails, then pretend we aren't using GCC.
3005 # If it is relative, then search for the first ld in PATH.
3009 elif test "$with_gnu_ld" = yes; then
3010 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3011 echo "configure:3012: checking for GNU ld" >&5
3013 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3014 echo "configure:3015: checking for non-GNU ld" >&5
3016 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
3017 echo $ac_n "(cached) $ac_c" 1>&6
3019 if test -z "$LD"; then
3020 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3021 for ac_dir in $PATH; do
3022 test -z "$ac_dir" && ac_dir=.
3023 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3024 ac_cv_path_LD="$ac_dir/$ac_prog"
3025 # Check to see if the program is GNU ld. I'd rather use --version,
3026 # but apparently some GNU ld's only accept -v.
3027 # Break only if it was the GNU/non-GNU ld that we prefer.
3028 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3029 test "$with_gnu_ld" != no && break
3031 test "$with_gnu_ld" != yes && break
3037 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3042 if test -n "$LD"; then
3043 echo "$ac_t""$LD" 1>&6
3045 echo "$ac_t""no" 1>&6
3047 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3049 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3050 echo "configure:3051: checking if the linker ($LD) is GNU ld" >&5
3051 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
3052 echo $ac_n "(cached) $ac_c" 1>&6
3054 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3055 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3056 ac_cv_prog_gnu_ld=yes
3058 ac_cv_prog_gnu_ld=no
3062 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
3065 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3066 echo "configure:3067: checking for BSD-compatible nm" >&5
3067 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3070 if test -n "$NM"; then
3071 # Let the user override the test.
3074 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3075 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3076 test -z "$ac_dir" && ac_dir=.
3077 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
3078 # Check to see if the nm accepts a BSD-compat flag.
3079 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3080 # nm: unknown option "B" ignored
3081 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3082 ac_cv_path_NM="$ac_dir/nm -B"
3084 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3085 ac_cv_path_NM="$ac_dir/nm -p"
3088 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
3089 continue # so that we can try to find one that supports BSD flags
3094 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
3099 echo "$ac_t""$NM" 1>&6
3102 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3103 echo "configure:3104: checking whether ln -s works" >&5
3104 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3108 if ln -s X conftestdata 2>/dev/null
3111 ac_cv_prog_LN_S="ln -s"
3116 LN_S="$ac_cv_prog_LN_S"
3117 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3118 echo "$ac_t""yes" 1>&6
3120 echo "$ac_t""no" 1>&6
3123 if test $host != $build; then
3124 ac_tool_prefix=${host_alias}-
3130 # Check for any special flags to pass to ltconfig.
3131 libtool_flags="--cache-file=$cache_file"
3132 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3133 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3134 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3135 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3136 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3137 libtool_flags="$libtool_flags --enable-dlopen"
3138 libtool_flags="$libtool_flags --enable-win32-dll"
3139 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3140 if test "${enable_libtool_lock+set}" = set; then
3141 enableval="$enable_libtool_lock"
3145 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3146 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3148 # Some flags need to be propagated to the compiler or linker for good
3152 # Find out which ABI we are using.
3153 echo '#line 3154 "configure"' > conftest.$ac_ext
3154 if { (eval echo configure:3155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3155 case "`/usr/bin/file conftest.o`" in
3171 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3172 SAVE_CFLAGS="$CFLAGS"
3173 CFLAGS="$CFLAGS -belf"
3174 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3175 echo "configure:3176: checking whether the C compiler needs -belf" >&5
3176 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3187 if { (eval echo configure:3188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3189 lt_cv_cc_needs_belf=yes
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3194 lt_cv_cc_needs_belf=no
3199 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3200 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3201 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3202 CFLAGS="$SAVE_CFLAGS"
3206 *-*-cygwin* | *-*-mingw*)
3207 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3208 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3209 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3210 echo "configure:3211: checking for $ac_word" >&5
3211 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 if test -n "$DLLTOOL"; then
3215 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3219 for ac_dir in $ac_dummy; do
3220 test -z "$ac_dir" && ac_dir=.
3221 if test -f $ac_dir/$ac_word; then
3222 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3229 DLLTOOL="$ac_cv_prog_DLLTOOL"
3230 if test -n "$DLLTOOL"; then
3231 echo "$ac_t""$DLLTOOL" 1>&6
3233 echo "$ac_t""no" 1>&6
3237 if test -z "$ac_cv_prog_DLLTOOL"; then
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "dlltool", so it can be a program name with args.
3240 set dummy dlltool; ac_word=$2
3241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3242 echo "configure:3243: checking for $ac_word" >&5
3243 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 if test -n "$DLLTOOL"; then
3247 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3251 for ac_dir in $ac_dummy; do
3252 test -z "$ac_dir" && ac_dir=.
3253 if test -f $ac_dir/$ac_word; then
3254 ac_cv_prog_DLLTOOL="dlltool"
3259 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
3262 DLLTOOL="$ac_cv_prog_DLLTOOL"
3263 if test -n "$DLLTOOL"; then
3264 echo "$ac_t""$DLLTOOL" 1>&6
3266 echo "$ac_t""no" 1>&6
3274 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}as; ac_word=$2
3276 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3277 echo "configure:3278: checking for $ac_word" >&5
3278 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3281 if test -n "$AS"; then
3282 ac_cv_prog_AS="$AS" # Let the user override the test.
3284 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3286 for ac_dir in $ac_dummy; do
3287 test -z "$ac_dir" && ac_dir=.
3288 if test -f $ac_dir/$ac_word; then
3289 ac_cv_prog_AS="${ac_tool_prefix}as"
3297 if test -n "$AS"; then
3298 echo "$ac_t""$AS" 1>&6
3300 echo "$ac_t""no" 1>&6
3304 if test -z "$ac_cv_prog_AS"; then
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "as", so it can be a program name with args.
3307 set dummy as; ac_word=$2
3308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_word" >&5
3310 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 if test -n "$AS"; then
3314 ac_cv_prog_AS="$AS" # Let the user override the test.
3316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3318 for ac_dir in $ac_dummy; do
3319 test -z "$ac_dir" && ac_dir=.
3320 if test -f $ac_dir/$ac_word; then
3326 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3330 if test -n "$AS"; then
3331 echo "$ac_t""$AS" 1>&6
3333 echo "$ac_t""no" 1>&6
3341 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3342 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3343 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_word" >&5
3345 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 if test -n "$OBJDUMP"; then
3349 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3351 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3353 for ac_dir in $ac_dummy; do
3354 test -z "$ac_dir" && ac_dir=.
3355 if test -f $ac_dir/$ac_word; then
3356 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3363 OBJDUMP="$ac_cv_prog_OBJDUMP"
3364 if test -n "$OBJDUMP"; then
3365 echo "$ac_t""$OBJDUMP" 1>&6
3367 echo "$ac_t""no" 1>&6
3371 if test -z "$ac_cv_prog_OBJDUMP"; then
3372 if test -n "$ac_tool_prefix"; then
3373 # Extract the first word of "objdump", so it can be a program name with args.
3374 set dummy objdump; ac_word=$2
3375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3376 echo "configure:3377: checking for $ac_word" >&5
3377 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3380 if test -n "$OBJDUMP"; then
3381 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3385 for ac_dir in $ac_dummy; do
3386 test -z "$ac_dir" && ac_dir=.
3387 if test -f $ac_dir/$ac_word; then
3388 ac_cv_prog_OBJDUMP="objdump"
3393 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3396 OBJDUMP="$ac_cv_prog_OBJDUMP"
3397 if test -n "$OBJDUMP"; then
3398 echo "$ac_t""$OBJDUMP" 1>&6
3400 echo "$ac_t""no" 1>&6
3413 # Save cache, so that ltconfig can load it
3416 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3417 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3418 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3419 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3420 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3421 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3422 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3423 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3425 # Reload cache, that may have been modified by ltconfig
3428 # This can be used to rebuild libtool when needed
3429 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3431 # Always use our own libtool.
3432 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3434 # Redirect the config.log output again, so that the ltconfig log is not
3435 # clobbered by the next message.
3436 exec 5>>./config.log
3439 for ac_prog in mawk gawk nawk awk
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy $ac_prog; ac_word=$2
3443 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3444 echo "configure:3445: checking for $ac_word" >&5
3445 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 if test -n "$AWK"; then
3449 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3451 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3453 for ac_dir in $ac_dummy; do
3454 test -z "$ac_dir" && ac_dir=.
3455 if test -f $ac_dir/$ac_word; then
3456 ac_cv_prog_AWK="$ac_prog"
3463 AWK="$ac_cv_prog_AWK"
3464 if test -n "$AWK"; then
3465 echo "$ac_t""$AWK" 1>&6
3467 echo "$ac_t""no" 1>&6
3470 test -n "$AWK" && break
3473 # test for ln hardlink support
3474 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3475 echo "configure:3476: checking whether ln works" >&5
3476 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 rm -f conftest.src conftest.dst
3480 echo "conftest" > conftest.src
3481 if ln conftest.src conftest.dst 2>/dev/null
3483 ol_cv_prog_LN_H="ln"
3485 ol_cv_prog_LN_H="cp"
3487 rm -f conftest.src conftest.dst
3490 LN_H="$ol_cv_prog_LN_H"
3491 if test "$ol_cv_prog_LN_H" = "ln"; then
3492 echo "$ac_t""yes" 1>&6
3494 echo "$ac_t""no" 1>&6
3497 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3498 echo "configure:3499: checking whether ln -s works" >&5
3499 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3500 echo $ac_n "(cached) $ac_c" 1>&6
3503 if ln -s X conftestdata 2>/dev/null
3506 ac_cv_prog_LN_S="ln -s"
3511 LN_S="$ac_cv_prog_LN_S"
3512 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3513 echo "$ac_t""yes" 1>&6
3515 echo "$ac_t""no" 1>&6
3519 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3523 # Extract the first word of "sendmail", so it can be a program name with args.
3524 set dummy sendmail; ac_word=$2
3525 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3526 echo "configure:3527: checking for $ac_word" >&5
3527 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3528 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3535 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3538 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3539 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3540 for ac_dir in $ac_dummy; do
3541 test -z "$ac_dir" && ac_dir=.
3542 if test -f $ac_dir/$ac_word; then
3543 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3548 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3552 SENDMAIL="$ac_cv_path_SENDMAIL"
3553 if test -n "$SENDMAIL"; then
3554 echo "$ac_t""$SENDMAIL" 1>&6
3556 echo "$ac_t""no" 1>&6
3559 # Extract the first word of "vi", so it can be a program name with args.
3560 set dummy vi; ac_word=$2
3561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3562 echo "configure:3563: checking for $ac_word" >&5
3563 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3568 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3571 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3575 ac_dummy="$PATH:/usr/ucb"
3576 for ac_dir in $ac_dummy; do
3577 test -z "$ac_dir" && ac_dir=.
3578 if test -f $ac_dir/$ac_word; then
3579 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3584 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3588 EDITOR="$ac_cv_path_EDITOR"
3589 if test -n "$EDITOR"; then
3590 echo "$ac_t""$EDITOR" 1>&6
3592 echo "$ac_t""no" 1>&6
3595 # Extract the first word of "finger", so it can be a program name with args.
3596 set dummy finger; ac_word=$2
3597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_word" >&5
3599 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3604 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3607 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3611 ac_dummy="$PATH:/usr/ucb"
3612 for ac_dir in $ac_dummy; do
3613 test -z "$ac_dir" && ac_dir=.
3614 if test -f $ac_dir/$ac_word; then
3615 ac_cv_path_FINGER="$ac_dir/$ac_word"
3620 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3624 FINGER="$ac_cv_path_FINGER"
3625 if test -n "$FINGER"; then
3626 echo "$ac_t""$FINGER" 1>&6
3628 echo "$ac_t""no" 1>&6
3633 if test $ol_enable_perl != no ; then
3634 # Extract the first word of "perl", so it can be a program name with args.
3635 set dummy perl; ac_word=$2
3636 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3637 echo "configure:3638: checking for $ac_word" >&5
3638 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3643 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
3646 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
3649 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3651 for ac_dir in $ac_dummy; do
3652 test -z "$ac_dir" && ac_dir=.
3653 if test -f $ac_dir/$ac_word; then
3654 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
3659 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
3663 PERLBIN="$ac_cv_path_PERLBIN"
3664 if test -n "$PERLBIN"; then
3665 echo "$ac_t""$PERLBIN" 1>&6
3667 echo "$ac_t""no" 1>&6
3671 if test "no$PERLBIN" = "no" ; then
3672 if test $ol_enable_perl = yes ; then
3673 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
3677 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
3678 if test x"$ol_with_perl_module" = "xstatic" ; then
3679 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3681 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
3687 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3688 echo "configure:3689: checking how to run the C preprocessor" >&5
3689 # On Suns, sometimes $CPP names a directory.
3690 if test -n "$CPP" && test -d "$CPP"; then
3693 if test -z "$CPP"; then
3694 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 # This must be in double quotes, not single quotes, because CPP may get
3698 # substituted into the Makefile and "${CC-cc}" will confuse make.
3700 # On the NeXT, cc -E runs the code through the compiler's parser,
3701 # not just through cpp.
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3709 { (eval echo configure:3710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3711 if test -z "$ac_err"; then
3715 echo "configure: failed program was:" >&5
3716 cat conftest.$ac_ext >&5
3718 CPP="${CC-cc} -E -traditional-cpp"
3719 cat > conftest.$ac_ext <<EOF
3720 #line 3721 "configure"
3721 #include "confdefs.h"
3725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3726 { (eval echo configure:3727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3728 if test -z "$ac_err"; then
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 CPP="${CC-cc} -nologo -E"
3736 cat > conftest.$ac_ext <<EOF
3737 #line 3738 "configure"
3738 #include "confdefs.h"
3742 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3743 { (eval echo configure:3744: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3744 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3745 if test -z "$ac_err"; then
3749 echo "configure: failed program was:" >&5
3750 cat conftest.$ac_ext >&5
3759 ac_cv_prog_CPP="$CPP"
3761 CPP="$ac_cv_prog_CPP"
3763 ac_cv_prog_CPP="$CPP"
3765 echo "$ac_t""$CPP" 1>&6
3768 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3769 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3771 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3772 echo "configure: warning: programs compiled here do run here..." 1>&2
3773 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3775 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3776 echo "configure: warning: programs compiled here do not run here..." 1>&2
3777 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3780 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3781 echo "configure:3782: checking for AIX" >&5
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3791 egrep "yes" >/dev/null 2>&1; then
3793 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3794 #define _ALL_SOURCE 1
3799 echo "$ac_t""no" 1>&6
3804 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3805 echo "configure:3806: checking for POSIXized ISC" >&5
3806 if test -d /etc/conf/kconfig.d &&
3807 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3809 echo "$ac_t""yes" 1>&6
3810 ISC=yes # If later tests want to check for ISC.
3811 cat >> confdefs.h <<\EOF
3812 #define _POSIX_SOURCE 1
3815 if test "$GCC" = yes; then
3821 echo "$ac_t""no" 1>&6
3825 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3826 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3827 echo "configure:3828: checking for minix/config.h" >&5
3828 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <minix/config.h>
3836 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3837 { (eval echo configure:3838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3838 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3839 if test -z "$ac_err"; then
3841 eval "ac_cv_header_$ac_safe=yes"
3844 echo "configure: failed program was:" >&5
3845 cat conftest.$ac_ext >&5
3847 eval "ac_cv_header_$ac_safe=no"
3851 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3852 echo "$ac_t""yes" 1>&6
3855 echo "$ac_t""no" 1>&6
3859 if test "$MINIX" = yes; then
3860 cat >> confdefs.h <<\EOF
3861 #define _POSIX_SOURCE 1
3864 cat >> confdefs.h <<\EOF
3865 #define _POSIX_1_SOURCE 2
3868 cat >> confdefs.h <<\EOF
3875 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3876 echo "configure:3877: checking for Cygwin environment" >&5
3877 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3887 #define __CYGWIN__ __CYGWIN32__
3892 if { (eval echo configure:3893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3896 echo "configure: failed program was:" >&5
3897 cat conftest.$ac_ext >&5
3904 echo "$ac_t""$ac_cv_cygwin" 1>&6
3906 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3907 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3908 echo "configure:3909: checking for mingw32 environment" >&5
3909 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3910 echo $ac_n "(cached) $ac_c" 1>&6
3912 cat > conftest.$ac_ext <<EOF
3913 #line 3914 "configure"
3914 #include "confdefs.h"
3920 if { (eval echo configure:3921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3924 echo "configure: failed program was:" >&5
3925 cat conftest.$ac_ext >&5
3932 echo "$ac_t""$ac_cv_mingw32" 1>&6
3934 test "$ac_cv_mingw32" = yes && MINGW32=yes
3935 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3936 echo "configure:3937: checking for EMX OS/2 environment" >&5
3937 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3948 if { (eval echo configure:3949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 echo "configure: failed program was:" >&5
3953 cat conftest.$ac_ext >&5
3960 echo "$ac_t""$ac_cv_emxos2" 1>&6
3962 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3966 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3967 echo "configure:3968: checking for executable suffix" >&5
3968 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3975 echo 'int main () { return 0; }' > conftest.$ac_ext
3977 if { (eval echo configure:3978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3978 for file in conftest.*; do
3980 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3981 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3985 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3988 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3993 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3994 echo "$ac_t""${ac_cv_exeext}" 1>&6
3997 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3998 echo "configure:3999: checking for object suffix" >&5
3999 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4000 echo $ac_n "(cached) $ac_c" 1>&6
4003 echo 'int i = 1;' > conftest.$ac_ext
4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 for ac_file in conftest.*; do
4008 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4012 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4017 echo "$ac_t""$ac_cv_objext" 1>&6
4018 OBJEXT=$ac_cv_objext
4019 ac_objext=$ac_cv_objext
4022 cat >> confdefs.h <<EOF
4023 #define EXEEXT "${EXEEXT}"
4027 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
4028 echo "configure:4029: checking for be_app in -lbe" >&5
4029 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
4030 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 ac_save_LIBS="$LIBS"
4034 LIBS="-lbe -lroot -lnet $LIBS"
4035 cat > conftest.$ac_ext <<EOF
4036 #line 4037 "configure"
4037 #include "confdefs.h"
4038 /* Override any gcc2 internal prototype to avoid an error. */
4039 /* We use char because int might match the return type of a gcc2
4040 builtin and then its argument prototype would still apply. */
4047 if { (eval echo configure:4048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4049 eval "ac_cv_lib_$ac_lib_var=yes"
4051 echo "configure: failed program was:" >&5
4052 cat conftest.$ac_ext >&5
4054 eval "ac_cv_lib_$ac_lib_var=no"
4057 LIBS="$ac_save_LIBS"
4060 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4061 echo "$ac_t""yes" 1>&6
4062 LIBS="$LIBS -lbe -lroot -lnet"
4064 echo "$ac_t""no" 1>&6
4072 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
4073 echo "configure:4074: checking for ${CC-cc} option to accept ANSI C" >&5
4074 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
4075 echo $ac_n "(cached) $ac_c" 1>&6
4077 am_cv_prog_cc_stdc=no
4079 # Don't try gcc -ansi; that turns off useful extensions and
4080 # breaks some systems' header files.
4081 # AIX -qlanglvl=ansi
4082 # Ultrix and OSF/1 -std1
4083 # HP-UX 10.20 and later -Ae
4084 # HP-UX older versions -Aa -D_HPUX_SOURCE
4085 # SVR4 -Xc -D__EXTENSIONS__
4086 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4088 CC="$ac_save_CC $ac_arg"
4089 cat > conftest.$ac_ext <<EOF
4090 #line 4091 "configure"
4091 #include "confdefs.h"
4094 #include <sys/types.h>
4095 #include <sys/stat.h>
4096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4097 struct buf { int x; };
4098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4099 static char *e (p, i)
4105 static char *f (char * (*g) (char **, int), char **p, ...)
4110 s = g (p, va_arg (v,int));
4114 int test (int i, double x);
4115 struct s1 {int (*f) (int a);};
4116 struct s2 {int (*f) (double a);};
4117 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4123 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 if { (eval echo configure:4128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4129 am_cv_prog_cc_stdc="$ac_arg"; break
4131 echo "configure: failed program was:" >&5
4132 cat conftest.$ac_ext >&5
4140 if test -z "$am_cv_prog_cc_stdc"; then
4141 echo "$ac_t""none needed" 1>&6
4143 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
4145 case "x$am_cv_prog_cc_stdc" in
4147 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4150 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
4151 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
4154 # test for make depend flag
4157 if test -z "${MKDEP}"; then
4159 if test -z "${MKDEP_FLAGS}"; then
4160 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
4161 echo "configure:4162: checking for ${OL_MKDEP} depend flag" >&5
4162 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4167 for flag in "-M" "-xM"; do
4168 cat > conftest.c <<EOF
4171 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:4172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
4172 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
4174 if test ! -f conftest."${ac_object}" ; then
4176 OL_MKDEP_FLAGS="$flag"
4185 echo "$ac_t""$ol_cv_mkdep" 1>&6
4188 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4193 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
4198 if test "${ol_cv_mkdep}" = no ; then
4199 # this will soon become an error
4200 echo "configure: warning: do not know how to generate dependencies" 1>&2
4204 if test $ol_enable_modules != no ; then
4205 for ac_hdr in ltdl.h
4207 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4208 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4209 echo "configure:4210: checking for $ac_hdr" >&5
4210 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4219 { (eval echo configure:4220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4221 if test -z "$ac_err"; then
4223 eval "ac_cv_header_$ac_safe=yes"
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4229 eval "ac_cv_header_$ac_safe=no"
4233 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4234 echo "$ac_t""yes" 1>&6
4235 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4236 cat >> confdefs.h <<EOF
4237 #define $ac_tr_hdr 1
4241 echo "$ac_t""no" 1>&6
4246 if test $ac_cv_header_ltdl_h = no ; then
4247 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
4250 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
4251 echo "configure:4252: checking for lt_dlinit in -lltdl" >&5
4252 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
4253 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4254 echo $ac_n "(cached) $ac_c" 1>&6
4256 ac_save_LIBS="$LIBS"
4258 cat > conftest.$ac_ext <<EOF
4259 #line 4260 "configure"
4260 #include "confdefs.h"
4261 /* Override any gcc2 internal prototype to avoid an error. */
4262 /* We use char because int might match the return type of a gcc2
4263 builtin and then its argument prototype would still apply. */
4270 if { (eval echo configure:4271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4272 eval "ac_cv_lib_$ac_lib_var=yes"
4274 echo "configure: failed program was:" >&5
4275 cat conftest.$ac_ext >&5
4277 eval "ac_cv_lib_$ac_lib_var=no"
4280 LIBS="$ac_save_LIBS"
4283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4284 echo "$ac_t""yes" 1>&6
4287 cat >> confdefs.h <<\EOF
4288 #define HAVE_LIBLTDL 1
4293 echo "$ac_t""no" 1>&6
4297 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4298 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4302 ol_with_bdb2_module=static
4303 ol_with_ldap_module=static
4304 ol_with_ldbm_module=static
4305 ol_with_passwd_module=static
4306 ol_with_perl_module=static
4307 ol_with_shell_module=static
4308 ol_with_tcl_module=static
4309 ol_with_sql_module=static
4313 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4314 echo "configure:4315: checking for EBCDIC" >&5
4315 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4316 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4324 #include <__ASCII__/generate_error.h>
4328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4329 { (eval echo configure:4330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4331 if test -z "$ac_err"; then
4333 ol_cv_cpp_ebcdic=yes
4336 echo "configure: failed program was:" >&5
4337 cat conftest.$ac_ext >&5
4344 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4345 if test $ol_cv_cpp_ebcdic = yes ; then
4346 cat >> confdefs.h <<\EOF
4347 #define HAVE_EBCDIC 1
4352 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4353 echo "configure:4354: checking for ANSI C header files" >&5
4354 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 cat > conftest.$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4366 { (eval echo configure:4367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4368 if test -z "$ac_err"; then
4370 ol_cv_header_stdc=yes
4373 echo "configure: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 ol_cv_header_stdc=no
4380 if test $ol_cv_header_stdc = yes; then
4381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4388 egrep "memchr" >/dev/null 2>&1; then
4392 ol_cv_header_stdc=no
4398 if test $ol_cv_header_stdc = yes; then
4399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4400 cat > conftest.$ac_ext <<EOF
4401 #line 4402 "configure"
4402 #include "confdefs.h"
4405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4406 egrep "free" >/dev/null 2>&1; then
4410 ol_cv_header_stdc=no
4416 if test $ol_cv_header_stdc = yes; then
4417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4418 if test "$cross_compiling" = yes; then
4421 cat > conftest.$ac_ext <<EOF
4422 #line 4423 "configure"
4423 #include "confdefs.h"
4426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4429 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4430 || ('j' <= (c) && (c) <= 'r') \
4431 || ('s' <= (c) && (c) <= 'z'))
4432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4435 int main () { int i; for (i = 0; i < 256; i++)
4436 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4440 if { (eval echo configure:4441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4444 echo "configure: failed program was:" >&5
4445 cat conftest.$ac_ext >&5
4447 ol_cv_header_stdc=no
4455 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4456 if test $ol_cv_header_stdc = yes; then
4457 cat >> confdefs.h <<\EOF
4458 #define STDC_HEADERS 1
4462 ac_cv_header_stdc=disable
4465 if test $ol_cv_header_stdc != yes; then
4466 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4470 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4473 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4474 echo "configure:4475: checking for $ac_hdr that defines DIR" >&5
4475 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4476 echo $ac_n "(cached) $ac_c" 1>&6
4478 cat > conftest.$ac_ext <<EOF
4479 #line 4480 "configure"
4480 #include "confdefs.h"
4481 #include <sys/types.h>
4487 if { (eval echo configure:4488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4489 eval "ac_cv_header_dirent_$ac_safe=yes"
4491 echo "configure: failed program was:" >&5
4492 cat conftest.$ac_ext >&5
4494 eval "ac_cv_header_dirent_$ac_safe=no"
4498 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4499 echo "$ac_t""yes" 1>&6
4500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4501 cat >> confdefs.h <<EOF
4502 #define $ac_tr_hdr 1
4504 ac_header_dirent=$ac_hdr; break
4506 echo "$ac_t""no" 1>&6
4509 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4510 if test $ac_header_dirent = dirent.h; then
4511 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4512 echo "configure:4513: checking for opendir in -ldir" >&5
4513 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4514 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4515 echo $ac_n "(cached) $ac_c" 1>&6
4517 ac_save_LIBS="$LIBS"
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4522 /* Override any gcc2 internal prototype to avoid an error. */
4523 /* We use char because int might match the return type of a gcc2
4524 builtin and then its argument prototype would still apply. */
4531 if { (eval echo configure:4532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4533 eval "ac_cv_lib_$ac_lib_var=yes"
4535 echo "configure: failed program was:" >&5
4536 cat conftest.$ac_ext >&5
4538 eval "ac_cv_lib_$ac_lib_var=no"
4541 LIBS="$ac_save_LIBS"
4544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4545 echo "$ac_t""yes" 1>&6
4548 echo "$ac_t""no" 1>&6
4552 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4553 echo "configure:4554: checking for opendir in -lx" >&5
4554 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 ac_save_LIBS="$LIBS"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4579 eval "ac_cv_lib_$ac_lib_var=no"
4582 LIBS="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4589 echo "$ac_t""no" 1>&6
4594 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4595 echo "configure:4596: checking for sys/wait.h that is POSIX.1 compatible" >&5
4596 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 #include <sys/types.h>
4603 #include <sys/wait.h>
4605 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4608 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4613 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4616 if { (eval echo configure:4617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4618 ac_cv_header_sys_wait_h=yes
4620 echo "configure: failed program was:" >&5
4621 cat conftest.$ac_ext >&5
4623 ac_cv_header_sys_wait_h=no
4628 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4629 if test $ac_cv_header_sys_wait_h = yes; then
4630 cat >> confdefs.h <<\EOF
4631 #define HAVE_SYS_WAIT_H 1
4636 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4637 echo "configure:4638: checking POSIX termios" >&5
4638 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4639 echo $ac_n "(cached) $ac_c" 1>&6
4641 cat > conftest.$ac_ext <<EOF
4642 #line 4643 "configure"
4643 #include "confdefs.h"
4644 #include <sys/types.h>
4646 #include <termios.h>
4648 /* SunOS 4.0.3 has termios.h but not the library calls. */
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4654 am_cv_sys_posix_termios=yes
4656 echo "configure: failed program was:" >&5
4657 cat conftest.$ac_ext >&5
4659 am_cv_sys_posix_termios=no
4664 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4667 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4668 echo "configure:4669: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4669 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4670 echo $ac_n "(cached) $ac_c" 1>&6
4672 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4674 gwinsz_in_termios_h=no
4675 if test $am_cv_sys_posix_termios = yes; then
4676 cat > conftest.$ac_ext <<EOF
4677 #line 4678 "configure"
4678 #include "confdefs.h"
4679 #include <sys/types.h>
4680 # include <termios.h>
4686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4687 egrep "yes" >/dev/null 2>&1; then
4689 gwinsz_in_termios_h=yes
4695 if test $gwinsz_in_termios_h = no; then
4696 cat > conftest.$ac_ext <<EOF
4697 #line 4698 "configure"
4698 #include "confdefs.h"
4699 #include <sys/types.h>
4700 # include <sys/ioctl.h>
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707 egrep "yes" >/dev/null 2>&1; then
4709 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4717 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4718 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4719 cat >> confdefs.h <<\EOF
4720 #define GWINSZ_IN_SYS_IOCTL 1
4725 if test $am_cv_sys_posix_termios = yes ; then
4726 cat >> confdefs.h <<\EOF
4727 #define HAVE_POSIX_TERMIOS 1
4778 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4779 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4780 echo "configure:4781: checking for $ac_hdr" >&5
4781 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4782 echo $ac_n "(cached) $ac_c" 1>&6
4784 cat > conftest.$ac_ext <<EOF
4785 #line 4786 "configure"
4786 #include "confdefs.h"
4789 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4790 { (eval echo configure:4791: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4791 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4792 if test -z "$ac_err"; then
4794 eval "ac_cv_header_$ac_safe=yes"
4797 echo "configure: failed program was:" >&5
4798 cat conftest.$ac_ext >&5
4800 eval "ac_cv_header_$ac_safe=no"
4804 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4805 echo "$ac_t""yes" 1>&6
4806 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4807 cat >> confdefs.h <<EOF
4808 #define $ac_tr_hdr 1
4812 echo "$ac_t""no" 1>&6
4819 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4820 echo "configure:4821: checking for sigset in -lV3" >&5
4821 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4822 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4823 echo $ac_n "(cached) $ac_c" 1>&6
4825 ac_save_LIBS="$LIBS"
4827 cat > conftest.$ac_ext <<EOF
4828 #line 4829 "configure"
4829 #include "confdefs.h"
4830 /* Override any gcc2 internal prototype to avoid an error. */
4831 /* We use char because int might match the return type of a gcc2
4832 builtin and then its argument prototype would still apply. */
4839 if { (eval echo configure:4840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4841 eval "ac_cv_lib_$ac_lib_var=yes"
4843 echo "configure: failed program was:" >&5
4844 cat conftest.$ac_ext >&5
4846 eval "ac_cv_lib_$ac_lib_var=no"
4849 LIBS="$ac_save_LIBS"
4852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4853 echo "$ac_t""yes" 1>&6
4854 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4855 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4856 cat >> confdefs.h <<EOF
4857 #define $ac_tr_lib 1
4863 echo "$ac_t""no" 1>&6
4867 if test $ac_cv_header_winsock_h = yes; then
4868 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4869 echo "configure:4870: checking for winsock" >&5
4870 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4871 echo $ac_n "(cached) $ac_c" 1>&6
4873 cat > conftest.$ac_ext <<EOF
4874 #line 4875 "configure"
4875 #include "confdefs.h"
4876 #include <winsock.h>
4880 select(0,NULL,NULL,NULL,NULL);
4882 gethostname(NULL,0);
4886 if { (eval echo configure:4887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4890 echo "configure: failed program was:" >&5
4891 cat conftest.$ac_ext >&5
4898 echo "$ac_t""$ol_cv_winsock" 1>&6
4900 if test $ol_cv_winsock = yes ; then
4901 cat >> confdefs.h <<\EOF
4902 #define HAVE_WINSOCK 1
4905 ac_cv_func_socket=yes
4906 ac_cv_func_select=yes
4907 ac_cv_func_closesocket=yes
4908 ac_cv_func_gethostname=yes
4913 echo $ac_n "checking for socket""... $ac_c" 1>&6
4914 echo "configure:4915: checking for socket" >&5
4915 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4921 /* System header to define __stub macros and hopefully few prototypes,
4922 which can conflict with char socket(); below. */
4924 /* Override any gcc2 internal prototype to avoid an error. */
4925 /* We use char because int might match the return type of a gcc2
4926 builtin and then its argument prototype would still apply. */
4932 /* The GNU C library defines this for functions which it implements
4933 to always fail with ENOSYS. Some functions are actually named
4934 something starting with __ and the normal name is an alias. */
4935 #if defined (__stub_socket) || defined (__stub___socket)
4943 if { (eval echo configure:4944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4945 eval "ac_cv_func_socket=yes"
4947 echo "configure: failed program was:" >&5
4948 cat conftest.$ac_ext >&5
4950 eval "ac_cv_func_socket=no"
4955 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4956 echo "$ac_t""yes" 1>&6
4959 echo "$ac_t""no" 1>&6
4961 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4962 echo "configure:4963: checking for main in -lsocket" >&5
4963 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4967 ac_save_LIBS="$LIBS"
4968 LIBS="-lsocket $LIBS"
4969 cat > conftest.$ac_ext <<EOF
4970 #line 4971 "configure"
4971 #include "confdefs.h"
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4984 eval "ac_cv_lib_$ac_lib_var=no"
4987 LIBS="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4993 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4994 cat >> confdefs.h <<EOF
4995 #define $ac_tr_lib 1
4998 LIBS="-lsocket $LIBS"
5001 echo "$ac_t""no" 1>&6
5004 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
5005 echo "configure:5006: checking for main in -lnet" >&5
5006 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
5007 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5008 echo $ac_n "(cached) $ac_c" 1>&6
5010 ac_save_LIBS="$LIBS"
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5030 LIBS="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_lib 1
5044 echo "$ac_t""no" 1>&6
5047 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
5048 echo "configure:5049: checking for main in -lnsl_s" >&5
5049 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
5050 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5051 echo $ac_n "(cached) $ac_c" 1>&6
5053 ac_save_LIBS="$LIBS"
5054 LIBS="-lnsl_s $LIBS"
5055 cat > conftest.$ac_ext <<EOF
5056 #line 5057 "configure"
5057 #include "confdefs.h"
5063 if { (eval echo configure:5064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5065 eval "ac_cv_lib_$ac_lib_var=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_lib_$ac_lib_var=no"
5073 LIBS="$ac_save_LIBS"
5076 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5077 echo "$ac_t""yes" 1>&6
5078 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5079 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5080 cat >> confdefs.h <<EOF
5081 #define $ac_tr_lib 1
5084 LIBS="-lnsl_s $LIBS"
5087 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
5091 echo "configure:5092: checking for main in -lnsl" >&5
5092 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
5093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 ac_save_LIBS="$LIBS"
5098 cat > conftest.$ac_ext <<EOF
5099 #line 5100 "configure"
5100 #include "confdefs.h"
5106 if { (eval echo configure:5107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5108 eval "ac_cv_lib_$ac_lib_var=yes"
5110 echo "configure: failed program was:" >&5
5111 cat conftest.$ac_ext >&5
5113 eval "ac_cv_lib_$ac_lib_var=no"
5116 LIBS="$ac_save_LIBS"
5119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5120 echo "$ac_t""yes" 1>&6
5121 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5123 cat >> confdefs.h <<EOF
5124 #define $ac_tr_lib 1
5130 echo "$ac_t""no" 1>&6
5133 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
5134 echo "configure:5135: checking for socket in -linet" >&5
5135 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
5136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 ac_save_LIBS="$LIBS"
5141 cat > conftest.$ac_ext <<EOF
5142 #line 5143 "configure"
5143 #include "confdefs.h"
5144 /* Override any gcc2 internal prototype to avoid an error. */
5145 /* We use char because int might match the return type of a gcc2
5146 builtin and then its argument prototype would still apply. */
5153 if { (eval echo configure:5154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5155 eval "ac_cv_lib_$ac_lib_var=yes"
5157 echo "configure: failed program was:" >&5
5158 cat conftest.$ac_ext >&5
5160 eval "ac_cv_lib_$ac_lib_var=no"
5163 LIBS="$ac_save_LIBS"
5166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5167 echo "$ac_t""yes" 1>&6
5168 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5169 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5170 cat >> confdefs.h <<EOF
5171 #define $ac_tr_lib 1
5177 echo "$ac_t""no" 1>&6
5180 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
5181 echo "configure:5182: checking for main in -lgen" >&5
5182 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
5183 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5186 ac_save_LIBS="$LIBS"
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5196 if { (eval echo configure:5197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5198 eval "ac_cv_lib_$ac_lib_var=yes"
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5203 eval "ac_cv_lib_$ac_lib_var=no"
5206 LIBS="$ac_save_LIBS"
5209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5210 echo "$ac_t""yes" 1>&6
5211 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5213 cat >> confdefs.h <<EOF
5214 #define $ac_tr_lib 1
5220 echo "$ac_t""no" 1>&6
5227 echo $ac_n "checking for select""... $ac_c" 1>&6
5228 echo "configure:5229: checking for select" >&5
5229 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 /* System header to define __stub macros and hopefully few prototypes,
5236 which can conflict with char select(); below. */
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5246 /* The GNU C library defines this for functions which it implements
5247 to always fail with ENOSYS. Some functions are actually named
5248 something starting with __ and the normal name is an alias. */
5249 #if defined (__stub_select) || defined (__stub___select)
5257 if { (eval echo configure:5258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5259 eval "ac_cv_func_select=yes"
5261 echo "configure: failed program was:" >&5
5262 cat conftest.$ac_ext >&5
5264 eval "ac_cv_func_select=no"
5269 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5273 echo "$ac_t""no" 1>&6
5274 { echo "configure: error: select() required." 1>&2; exit 1; }
5278 if test "${ac_cv_header_winsock_h}" != yes; then
5279 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5280 echo "configure:5281: checking types of arguments for select()" >&5
5281 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5284 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5285 echo $ac_n "(cached) $ac_c" 1>&6
5287 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5291 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5292 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5293 cat > conftest.$ac_ext <<EOF
5294 #line 5295 "configure"
5295 #include "confdefs.h"
5296 #ifdef HAVE_SYS_TYPES_H
5297 #include <sys/types.h>
5299 #ifdef HAVE_SYS_TIME_H
5300 #include <sys/time.h>
5302 #ifdef HAVE_SYS_SELECT_H
5303 #include <sys/select.h>
5305 #ifdef HAVE_SYS_SOCKET_H
5306 #include <sys/socket.h>
5308 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);
5313 if { (eval echo configure:5314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5315 ac_not_found=no ; break 3
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5332 if test "$ac_not_found" = yes; then
5333 ac_cv_func_select_arg1=int
5334 ac_cv_func_select_arg234='int *'
5335 ac_cv_func_select_arg5='struct timeval *'
5337 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5338 cat >> confdefs.h <<EOF
5339 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5342 cat >> confdefs.h <<EOF
5343 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5346 cat >> confdefs.h <<EOF
5347 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5354 for ac_hdr in regex.h
5356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5358 echo "configure:5359: checking for $ac_hdr" >&5
5359 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5360 echo $ac_n "(cached) $ac_c" 1>&6
5362 cat > conftest.$ac_ext <<EOF
5363 #line 5364 "configure"
5364 #include "confdefs.h"
5367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5368 { (eval echo configure:5369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5370 if test -z "$ac_err"; then
5372 eval "ac_cv_header_$ac_safe=yes"
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5378 eval "ac_cv_header_$ac_safe=no"
5382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5383 echo "$ac_t""yes" 1>&6
5384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5385 cat >> confdefs.h <<EOF
5386 #define $ac_tr_hdr 1
5390 echo "$ac_t""no" 1>&6
5394 if test "$ac_cv_header_regex_h" != yes ; then
5395 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5397 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5398 echo "configure:5399: checking for regfree" >&5
5399 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5400 echo $ac_n "(cached) $ac_c" 1>&6
5402 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure"
5404 #include "confdefs.h"
5405 /* System header to define __stub macros and hopefully few prototypes,
5406 which can conflict with char regfree(); below. */
5408 /* Override any gcc2 internal prototype to avoid an error. */
5409 /* We use char because int might match the return type of a gcc2
5410 builtin and then its argument prototype would still apply. */
5416 /* The GNU C library defines this for functions which it implements
5417 to always fail with ENOSYS. Some functions are actually named
5418 something starting with __ and the normal name is an alias. */
5419 #if defined (__stub_regfree) || defined (__stub___regfree)
5427 if { (eval echo configure:5428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5429 eval "ac_cv_func_regfree=yes"
5431 echo "configure: failed program was:" >&5
5432 cat conftest.$ac_ext >&5
5434 eval "ac_cv_func_regfree=no"
5439 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5440 echo "$ac_t""yes" 1>&6
5443 echo "$ac_t""no" 1>&6
5444 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5449 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5450 echo "configure:5451: checking for compatible POSIX regex" >&5
5451 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5452 echo $ac_n "(cached) $ac_c" 1>&6
5455 if test "$cross_compiling" = yes; then
5456 ol_cv_c_posix_regex=cross
5458 cat > conftest.$ac_ext <<EOF
5459 #line 5460 "configure"
5460 #include "confdefs.h"
5462 #include <sys/types.h>
5464 static char *pattern, *string;
5472 if(regcomp(&re, pattern, 0)) {
5476 string = "ALL MATCH";
5478 rc = regexec(&re, string, 0, (void*)0, 0);
5485 if { (eval echo configure:5486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5487 ol_cv_c_posix_regex=yes
5489 echo "configure: failed program was:" >&5
5490 cat conftest.$ac_ext >&5
5492 ol_cv_c_posix_regex=no
5499 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5501 if test "$ol_cv_c_posix_regex" = no ; then
5502 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5505 echo $ac_n "checking for res_search""... $ac_c" 1>&6
5506 echo "configure:5507: checking for res_search" >&5
5507 if eval "test \"\${ac_cv_func_res_search+set}\" = set"; then
5508 echo $ac_n "(cached) $ac_c" 1>&6
5510 cat > conftest.$ac_ext <<EOF
5511 #line 5512 "configure"
5512 #include "confdefs.h"
5513 /* System header to define __stub macros and hopefully few prototypes,
5514 which can conflict with char res_search(); below. */
5516 /* Override any gcc2 internal prototype to avoid an error. */
5517 /* We use char because int might match the return type of a gcc2
5518 builtin and then its argument prototype would still apply. */
5524 /* The GNU C library defines this for functions which it implements
5525 to always fail with ENOSYS. Some functions are actually named
5526 something starting with __ and the normal name is an alias. */
5527 #if defined (__stub_res_search) || defined (__stub___res_search)
5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5537 eval "ac_cv_func_res_search=yes"
5539 echo "configure: failed program was:" >&5
5540 cat conftest.$ac_ext >&5
5542 eval "ac_cv_func_res_search=no"
5547 if eval "test \"`echo '$ac_cv_func_'res_search`\" = yes"; then
5548 echo "$ac_t""yes" 1>&6
5551 echo "$ac_t""no" 1>&6
5554 if test $ac_cv_func_res_search = no ; then
5555 echo $ac_n "checking for res_search in -lbind""... $ac_c" 1>&6
5556 echo "configure:5557: checking for res_search in -lbind" >&5
5557 ac_lib_var=`echo bind'_'res_search | sed 'y%./+-:%__p__%'`
5558 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5559 echo $ac_n "(cached) $ac_c" 1>&6
5561 ac_save_LIBS="$LIBS"
5563 cat > conftest.$ac_ext <<EOF
5564 #line 5565 "configure"
5565 #include "confdefs.h"
5566 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5575 if { (eval echo configure:5576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5577 eval "ac_cv_lib_$ac_lib_var=yes"
5579 echo "configure: failed program was:" >&5
5580 cat conftest.$ac_ext >&5
5582 eval "ac_cv_lib_$ac_lib_var=no"
5585 LIBS="$ac_save_LIBS"
5588 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5589 echo "$ac_t""yes" 1>&6
5590 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5591 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5592 cat >> confdefs.h <<EOF
5593 #define $ac_tr_lib 1
5599 echo "$ac_t""no" 1>&6
5602 ac_cv_func_res_search=$ac_cv_lib_bind_res_search
5605 if test $ac_cv_func_res_search = no ; then
5606 echo $ac_n "checking for __res_search in -lbind""... $ac_c" 1>&6
5607 echo "configure:5608: checking for __res_search in -lbind" >&5
5608 ac_lib_var=`echo bind'_'__res_search | sed 'y%./+-:%__p__%'`
5609 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5610 echo $ac_n "(cached) $ac_c" 1>&6
5612 ac_save_LIBS="$LIBS"
5614 cat > conftest.$ac_ext <<EOF
5615 #line 5616 "configure"
5616 #include "confdefs.h"
5617 /* Override any gcc2 internal prototype to avoid an error. */
5618 /* We use char because int might match the return type of a gcc2
5619 builtin and then its argument prototype would still apply. */
5620 char __res_search();
5626 if { (eval echo configure:5627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5628 eval "ac_cv_lib_$ac_lib_var=yes"
5630 echo "configure: failed program was:" >&5
5631 cat conftest.$ac_ext >&5
5633 eval "ac_cv_lib_$ac_lib_var=no"
5636 LIBS="$ac_save_LIBS"
5639 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5640 echo "$ac_t""yes" 1>&6
5641 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5642 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5643 cat >> confdefs.h <<EOF
5644 #define $ac_tr_lib 1
5650 echo "$ac_t""no" 1>&6
5653 ac_cv_func_res_search=$ac_cv_lib_bind___res_search
5656 if test $ac_cv_func_res_search = no ; then
5657 echo $ac_n "checking for res_search in -lresolv""... $ac_c" 1>&6
5658 echo "configure:5659: checking for res_search in -lresolv" >&5
5659 ac_lib_var=`echo resolv'_'res_search | sed 'y%./+-:%__p__%'`
5660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5661 echo $ac_n "(cached) $ac_c" 1>&6
5663 ac_save_LIBS="$LIBS"
5664 LIBS="-lresolv $LIBS"
5665 cat > conftest.$ac_ext <<EOF
5666 #line 5667 "configure"
5667 #include "confdefs.h"
5668 /* Override any gcc2 internal prototype to avoid an error. */
5669 /* We use char because int might match the return type of a gcc2
5670 builtin and then its argument prototype would still apply. */
5677 if { (eval echo configure:5678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5679 eval "ac_cv_lib_$ac_lib_var=yes"
5681 echo "configure: failed program was:" >&5
5682 cat conftest.$ac_ext >&5
5684 eval "ac_cv_lib_$ac_lib_var=no"
5687 LIBS="$ac_save_LIBS"
5690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5691 echo "$ac_t""yes" 1>&6
5692 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5693 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5694 cat >> confdefs.h <<EOF
5695 #define $ac_tr_lib 1
5698 LIBS="-lresolv $LIBS"
5701 echo "$ac_t""no" 1>&6
5704 ac_cv_func_res_search=$ac_cv_lib_resolv_res_search
5707 if test "$ac_cv_func_res_search" = yes ; then
5708 cat >> confdefs.h <<\EOF
5709 #define HAVE_RES_SEARCH 1
5712 elif test $ol_enable_dns = yes ; then
5713 { echo "configure: error: --enable-dns requires res_search" 1>&2; exit 1; }
5714 elif test $ol_enable_dns != no ; then
5715 echo "configure: warning: no res_search, disabling DNS support" 1>&2
5720 if test $ol_enable_ldapd != no ; then
5721 echo "configure: warning: ldapd is not supported and may suffer from bit rot." 1>&2
5723 echo $ac_n "checking for main in -lxtpp""... $ac_c" 1>&6
5724 echo "configure:5725: checking for main in -lxtpp" >&5
5725 ac_lib_var=`echo xtpp'_'main | sed 'y%./+-:%__p__%'`
5726 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6
5729 ac_save_LIBS="$LIBS"
5730 LIBS="-lxtpp -lxtdsap -lxtisode -losi $LIBS"
5731 cat > conftest.$ac_ext <<EOF
5732 #line 5733 "configure"
5733 #include "confdefs.h"
5739 if { (eval echo configure:5740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5741 eval "ac_cv_lib_$ac_lib_var=yes"
5743 echo "configure: failed program was:" >&5
5744 cat conftest.$ac_ext >&5
5746 eval "ac_cv_lib_$ac_lib_var=no"
5749 LIBS="$ac_save_LIBS"
5752 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5753 echo "$ac_t""yes" 1>&6
5756 cat >> confdefs.h <<\EOF
5760 LDAPD_LIBS="$LDAPD_LIBS -lxtpp -lxtdsap -lxtisode -losi"
5763 echo "$ac_t""no" 1>&6
5767 echo $ac_n "checking for main in -ldsap""... $ac_c" 1>&6
5768 echo "configure:5769: checking for main in -ldsap" >&5
5769 ac_lib_var=`echo dsap'_'main | sed 'y%./+-:%__p__%'`
5770 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5773 ac_save_LIBS="$LIBS"
5774 LIBS="-ldsap -lisode $LIBS"
5775 cat > conftest.$ac_ext <<EOF
5776 #line 5777 "configure"
5777 #include "confdefs.h"
5783 if { (eval echo configure:5784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5785 eval "ac_cv_lib_$ac_lib_var=yes"
5787 echo "configure: failed program was:" >&5
5788 cat conftest.$ac_ext >&5
5790 eval "ac_cv_lib_$ac_lib_var=no"
5793 LIBS="$ac_save_LIBS"
5796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5797 echo "$ac_t""yes" 1>&6
5800 cat >> confdefs.h <<\EOF
5804 LDAPD_LIBS="$LDAPD_LIBS -ldsap"
5807 echo "$ac_t""no" 1>&6
5811 echo $ac_n "checking for main in -lisode""... $ac_c" 1>&6
5812 echo "configure:5813: checking for main in -lisode" >&5
5813 ac_lib_var=`echo isode'_'main | sed 'y%./+-:%__p__%'`
5814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5815 echo $ac_n "(cached) $ac_c" 1>&6
5817 ac_save_LIBS="$LIBS"
5818 LIBS="-lisode $LIBS"
5819 cat > conftest.$ac_ext <<EOF
5820 #line 5821 "configure"
5821 #include "confdefs.h"
5827 if { (eval echo configure:5828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5829 eval "ac_cv_lib_$ac_lib_var=yes"
5831 echo "configure: failed program was:" >&5
5832 cat conftest.$ac_ext >&5
5834 eval "ac_cv_lib_$ac_lib_var=no"
5837 LIBS="$ac_save_LIBS"
5840 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5841 echo "$ac_t""yes" 1>&6
5844 cat >> confdefs.h <<\EOF
5845 #define HAVE_ISODE 1
5848 LDAPD_LIBS="$LDAPD_LIBS -lisode"
5851 echo "$ac_t""no" 1>&6
5857 if test $ol_link_isode != no; then
5858 echo $ac_n "checking for main in -lpp""... $ac_c" 1>&6
5859 echo "configure:5860: checking for main in -lpp" >&5
5860 ac_lib_var=`echo pp'_'main | sed 'y%./+-:%__p__%'`
5861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5862 echo $ac_n "(cached) $ac_c" 1>&6
5864 ac_save_LIBS="$LIBS"
5866 cat > conftest.$ac_ext <<EOF
5867 #line 5868 "configure"
5868 #include "confdefs.h"
5874 if { (eval echo configure:5875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5876 eval "ac_cv_lib_$ac_lib_var=yes"
5878 echo "configure: failed program was:" >&5
5879 cat conftest.$ac_ext >&5
5881 eval "ac_cv_lib_$ac_lib_var=no"
5884 LIBS="$ac_save_LIBS"
5887 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5888 echo "$ac_t""yes" 1>&6
5890 cat >> confdefs.h <<\EOF
5894 LDAPD_LIBS="-lpp $LDAPD_LIBS"
5897 echo "$ac_t""no" 1>&6
5902 # Extract the first word of "pepsy", so it can be a program name with args.
5903 set dummy pepsy; ac_word=$2
5904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5905 echo "configure:5906: checking for $ac_word" >&5
5906 if eval "test \"\${ac_cv_path_PEPSY+set}\" = set"; then
5907 echo $ac_n "(cached) $ac_c" 1>&6
5911 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a path.
5914 ac_cv_path_PEPSY="$PEPSY" # Let the user override the test with a dos path.
5917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5919 for ac_dir in $ac_dummy; do
5920 test -z "$ac_dir" && ac_dir=.
5921 if test -f $ac_dir/$ac_word; then
5922 ac_cv_path_PEPSY="$ac_dir/$ac_word"
5930 PEPSY="$ac_cv_path_PEPSY"
5931 if test -n "$PEPSY"; then
5932 echo "$ac_t""$PEPSY" 1>&6
5934 echo "$ac_t""no" 1>&6
5939 if test $ol_enable_quipu != no ; then
5940 for ac_hdr in quipu/commonarg.h
5942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5944 echo "configure:5945: checking for $ac_hdr" >&5
5945 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5946 echo $ac_n "(cached) $ac_c" 1>&6
5948 cat > conftest.$ac_ext <<EOF
5949 #line 5950 "configure"
5950 #include "confdefs.h"
5953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5954 { (eval echo configure:5955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5956 if test -z "$ac_err"; then
5958 eval "ac_cv_header_$ac_safe=yes"
5961 echo "configure: failed program was:" >&5
5962 cat conftest.$ac_ext >&5
5964 eval "ac_cv_header_$ac_safe=no"
5968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5969 echo "$ac_t""yes" 1>&6
5970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5971 cat >> confdefs.h <<EOF
5972 #define $ac_tr_hdr 1
5976 echo "$ac_t""no" 1>&6
5981 if test $ac_cv_header_quipu_commonarg_h = yes ; then
5983 elif test $ol_enable_quipu = auto ; then
5984 echo "configure: warning: no quipu for --enable-quipu=auto, disabling" 1>&2
5986 { echo "configure: error: no quipu for --enable-quipu=$ol_enable_quipu" 1>&2; exit 1; }
5995 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k5 \
5996 -o $ol_with_kerberos = k5only -o $ol_with_kerberos = k425 ; then
5998 for ac_hdr in krb5.h
6000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6002 echo "configure:6003: checking for $ac_hdr" >&5
6003 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6004 echo $ac_n "(cached) $ac_c" 1>&6
6006 cat > conftest.$ac_ext <<EOF
6007 #line 6008 "configure"
6008 #include "confdefs.h"
6011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6012 { (eval echo configure:6013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6014 if test -z "$ac_err"; then
6016 eval "ac_cv_header_$ac_safe=yes"
6019 echo "configure: failed program was:" >&5
6020 cat conftest.$ac_ext >&5
6022 eval "ac_cv_header_$ac_safe=no"
6026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6027 echo "$ac_t""yes" 1>&6
6028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6029 cat >> confdefs.h <<EOF
6030 #define $ac_tr_hdr 1
6034 echo "$ac_t""no" 1>&6
6039 if test $ac_cv_header_krb5_h = yes ; then
6040 for ac_hdr in heim_err.h
6042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6044 echo "configure:6045: checking for $ac_hdr" >&5
6045 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6046 echo $ac_n "(cached) $ac_c" 1>&6
6048 cat > conftest.$ac_ext <<EOF
6049 #line 6050 "configure"
6050 #include "confdefs.h"
6053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6054 { (eval echo configure:6055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6056 if test -z "$ac_err"; then
6058 eval "ac_cv_header_$ac_safe=yes"
6061 echo "configure: failed program was:" >&5
6062 cat conftest.$ac_ext >&5
6064 eval "ac_cv_header_$ac_safe=no"
6068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6069 echo "$ac_t""yes" 1>&6
6070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6071 cat >> confdefs.h <<EOF
6072 #define $ac_tr_hdr 1
6076 echo "$ac_t""no" 1>&6
6080 if test $ac_cv_header_heim_err_h = yes ; then
6086 if test $krb5_impl = mit; then
6087 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6088 echo "configure:6089: checking for main in -lkrb5" >&5
6089 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 ac_save_LIBS="$LIBS"
6094 LIBS="-lkrb5 -lcrypto -lcom_err $LIBS"
6095 cat > conftest.$ac_ext <<EOF
6096 #line 6097 "configure"
6097 #include "confdefs.h"
6103 if { (eval echo configure:6104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6105 eval "ac_cv_lib_$ac_lib_var=yes"
6107 echo "configure: failed program was:" >&5
6108 cat conftest.$ac_ext >&5
6110 eval "ac_cv_lib_$ac_lib_var=no"
6113 LIBS="$ac_save_LIBS"
6116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6117 echo "$ac_t""yes" 1>&6
6119 KRB5_LIBS="-lkrb5 -lcrypto -lcom_err"
6121 echo "$ac_t""no" 1>&6
6126 elif test $krb5_impl = heimdal; then
6127 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6128 echo "configure:6129: checking for main in -lkrb5" >&5
6129 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6130 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6131 echo $ac_n "(cached) $ac_c" 1>&6
6133 ac_save_LIBS="$LIBS"
6134 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6135 cat > conftest.$ac_ext <<EOF
6136 #line 6137 "configure"
6137 #include "confdefs.h"
6143 if { (eval echo configure:6144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6145 eval "ac_cv_lib_$ac_lib_var=yes"
6147 echo "configure: failed program was:" >&5
6148 cat conftest.$ac_ext >&5
6150 eval "ac_cv_lib_$ac_lib_var=no"
6153 LIBS="$ac_save_LIBS"
6156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6157 echo "$ac_t""yes" 1>&6
6159 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6161 echo "$ac_t""no" 1>&6
6166 cat >> confdefs.h <<\EOF
6167 #define HAVE_HEIMDAL_KERBEROS 1
6172 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6175 if test $have_krb5 = yes ; then
6178 cat >> confdefs.h <<\EOF
6183 if test $ol_enable_kpasswd != no ; then
6184 ol_link_kpasswd=yes;
6187 if test $ol_with_kerberos = k5only ; then
6188 ol_with_kerberos=found
6191 elif test $ol_with_kerberos != auto ; then
6192 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6198 if test $ol_link_krb5 = yes -a \
6199 \( $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6201 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6205 echo "configure:6206: checking for $ac_hdr" >&5
6206 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6207 echo $ac_n "(cached) $ac_c" 1>&6
6209 cat > conftest.$ac_ext <<EOF
6210 #line 6211 "configure"
6211 #include "confdefs.h"
6214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6215 { (eval echo configure:6216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6217 if test -z "$ac_err"; then
6219 eval "ac_cv_header_$ac_safe=yes"
6222 echo "configure: failed program was:" >&5
6223 cat conftest.$ac_ext >&5
6225 eval "ac_cv_header_$ac_safe=no"
6229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6230 echo "$ac_t""yes" 1>&6
6231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6232 cat >> confdefs.h <<EOF
6233 #define $ac_tr_hdr 1
6237 echo "$ac_t""no" 1>&6
6242 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6243 if test $krb5_impl = mit; then
6244 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6245 echo "configure:6246: checking for main in -lkrb4" >&5
6246 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 ac_save_LIBS="$LIBS"
6251 LIBS="-lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
6252 cat > conftest.$ac_ext <<EOF
6253 #line 6254 "configure"
6254 #include "confdefs.h"
6260 if { (eval echo configure:6261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6262 eval "ac_cv_lib_$ac_lib_var=yes"
6264 echo "configure: failed program was:" >&5
6265 cat conftest.$ac_ext >&5
6267 eval "ac_cv_lib_$ac_lib_var=no"
6270 LIBS="$ac_save_LIBS"
6273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6274 echo "$ac_t""yes" 1>&6
6276 KRB4_LIBS="-lkrb4 -ldes425"
6278 echo "$ac_t""no" 1>&6
6283 elif test $krb5_impl = heimdal; then
6284 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6285 echo "configure:6286: checking for main in -lkrb4" >&5
6286 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6287 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6288 echo $ac_n "(cached) $ac_c" 1>&6
6290 ac_save_LIBS="$LIBS"
6291 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6292 cat > conftest.$ac_ext <<EOF
6293 #line 6294 "configure"
6294 #include "confdefs.h"
6300 if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6302 eval "ac_cv_lib_$ac_lib_var=yes"
6304 echo "configure: failed program was:" >&5
6305 cat conftest.$ac_ext >&5
6307 eval "ac_cv_lib_$ac_lib_var=no"
6310 LIBS="$ac_save_LIBS"
6313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6314 echo "$ac_t""yes" 1>&6
6318 echo "$ac_t""no" 1>&6
6325 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6328 if test $have_k425 = yes ; then
6329 ol_with_kerberos=found
6332 cat >> confdefs.h <<\EOF
6333 #define HAVE_KRB425 1
6336 cat >> confdefs.h <<\EOF
6341 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6342 echo "configure:6343: checking for des_debug in Kerberos libraries" >&5
6343 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6344 echo $ac_n "(cached) $ac_c" 1>&6
6348 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6349 cat > conftest.$ac_ext <<EOF
6350 #line 6351 "configure"
6351 #include "confdefs.h"
6353 #include <kerberosIV/krb.h>
6354 #include <kerberosIV/des.h>
6355 extern int des_debug;
6363 if { (eval echo configure:6364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6365 ol_cv_var_des_debug=yes
6367 echo "configure: failed program was:" >&5
6368 cat conftest.$ac_ext >&5
6370 ol_cv_var_des_debug=no
6377 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6379 if test $ol_cv_var_des_debug = yes ; then
6380 cat >> confdefs.h <<\EOF
6381 #define HAVE_DES_DEBUG 1
6391 if test $ol_link_krb5 = yes ; then
6392 ol_with_kerberos=found
6395 if test $ol_with_kerberos = auto -o $ol_with_kerberos = k4 \
6396 -o $ol_with_kerberos = kth ; then
6398 for ac_hdr in krb.h des.h krb-archaeology.h
6400 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6401 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6402 echo "configure:6403: checking for $ac_hdr" >&5
6403 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6404 echo $ac_n "(cached) $ac_c" 1>&6
6406 cat > conftest.$ac_ext <<EOF
6407 #line 6408 "configure"
6408 #include "confdefs.h"
6411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6412 { (eval echo configure:6413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6414 if test -z "$ac_err"; then
6416 eval "ac_cv_header_$ac_safe=yes"
6419 echo "configure: failed program was:" >&5
6420 cat conftest.$ac_ext >&5
6422 eval "ac_cv_header_$ac_safe=no"
6426 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6427 echo "$ac_t""yes" 1>&6
6428 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6429 cat >> confdefs.h <<EOF
6430 #define $ac_tr_hdr 1
6434 echo "$ac_t""no" 1>&6
6439 if test $ac_cv_header_krb_h = yes ; then
6440 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6441 echo "configure:6442: checking for main in -lkrb" >&5
6442 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6443 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6444 echo $ac_n "(cached) $ac_c" 1>&6
6446 ac_save_LIBS="$LIBS"
6447 LIBS="-lkrb -ldes $LIBS"
6448 cat > conftest.$ac_ext <<EOF
6449 #line 6450 "configure"
6450 #include "confdefs.h"
6456 if { (eval echo configure:6457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6458 eval "ac_cv_lib_$ac_lib_var=yes"
6460 echo "configure: failed program was:" >&5
6461 cat conftest.$ac_ext >&5
6463 eval "ac_cv_lib_$ac_lib_var=no"
6466 LIBS="$ac_save_LIBS"
6469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6470 echo "$ac_t""yes" 1>&6
6473 echo "$ac_t""no" 1>&6
6478 if test $have_k4 = yes ; then
6479 ol_with_kerberos=found
6482 cat >> confdefs.h <<\EOF
6487 KRB4_LIBS="-lkrb -ldes"
6489 if test $ac_cv_header_krb_archaeology_h = yes ; then
6490 cat >> confdefs.h <<\EOF
6491 #define HAVE_KTH_KERBEROS 1
6499 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6500 ol_link_kpasswd=yes;
6503 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6504 cat >> confdefs.h <<\EOF
6505 #define HAVE_KERBEROS 1
6509 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6510 { echo "configure: error: Kerberos detection failed." 1>&2; exit 1; }
6514 if test $ol_with_tls != no ; then
6516 for ac_hdr in openssl/ssl.h ssl.h
6518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6520 echo "configure:6521: checking for $ac_hdr" >&5
6521 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6522 echo $ac_n "(cached) $ac_c" 1>&6
6524 cat > conftest.$ac_ext <<EOF
6525 #line 6526 "configure"
6526 #include "confdefs.h"
6529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6530 { (eval echo configure:6531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6532 if test -z "$ac_err"; then
6534 eval "ac_cv_header_$ac_safe=yes"
6537 echo "configure: failed program was:" >&5
6538 cat conftest.$ac_ext >&5
6540 eval "ac_cv_header_$ac_safe=no"
6544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6545 echo "$ac_t""yes" 1>&6
6546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6547 cat >> confdefs.h <<EOF
6548 #define $ac_tr_hdr 1
6552 echo "$ac_t""no" 1>&6
6557 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6558 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6559 echo "configure:6560: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6560 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6561 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6562 echo $ac_n "(cached) $ac_c" 1>&6
6564 ac_save_LIBS="$LIBS"
6565 LIBS="-lssl -lcrypto $LIBS"
6566 cat > conftest.$ac_ext <<EOF
6567 #line 6568 "configure"
6568 #include "confdefs.h"
6569 /* Override any gcc2 internal prototype to avoid an error. */
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char SSLeay_add_ssl_algorithms();
6575 SSLeay_add_ssl_algorithms()
6578 if { (eval echo configure:6579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6580 eval "ac_cv_lib_$ac_lib_var=yes"
6582 echo "configure: failed program was:" >&5
6583 cat conftest.$ac_ext >&5
6585 eval "ac_cv_lib_$ac_lib_var=no"
6588 LIBS="$ac_save_LIBS"
6591 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6592 echo "$ac_t""yes" 1>&6
6596 echo "$ac_t""no" 1>&6
6601 if test $have_ssleay = no ; then
6602 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6603 echo "configure:6604: checking for SSL_library_init in -lssl" >&5
6604 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6605 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6606 echo $ac_n "(cached) $ac_c" 1>&6
6608 ac_save_LIBS="$LIBS"
6609 LIBS="-lssl -lcrypto $LIBS"
6610 cat > conftest.$ac_ext <<EOF
6611 #line 6612 "configure"
6612 #include "confdefs.h"
6613 /* Override any gcc2 internal prototype to avoid an error. */
6614 /* We use char because int might match the return type of a gcc2
6615 builtin and then its argument prototype would still apply. */
6616 char SSL_library_init();
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 eval "ac_cv_lib_$ac_lib_var=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_lib_$ac_lib_var=no"
6632 LIBS="$ac_save_LIBS"
6635 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6636 echo "$ac_t""yes" 1>&6
6640 echo "$ac_t""no" 1>&6
6646 if test $have_ssleay = no ; then
6647 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6648 echo "configure:6649: checking for ssl3_accept in -lssl" >&5
6649 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6651 echo $ac_n "(cached) $ac_c" 1>&6
6653 ac_save_LIBS="$LIBS"
6654 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6655 cat > conftest.$ac_ext <<EOF
6656 #line 6657 "configure"
6657 #include "confdefs.h"
6658 /* Override any gcc2 internal prototype to avoid an error. */
6659 /* We use char because int might match the return type of a gcc2
6660 builtin and then its argument prototype would still apply. */
6667 if { (eval echo configure:6668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6669 eval "ac_cv_lib_$ac_lib_var=yes"
6671 echo "configure: failed program was:" >&5
6672 cat conftest.$ac_ext >&5
6674 eval "ac_cv_lib_$ac_lib_var=no"
6677 LIBS="$ac_save_LIBS"
6680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6681 echo "$ac_t""yes" 1>&6
6685 echo "$ac_t""no" 1>&6
6691 if test $have_ssleay = yes ; then
6695 cat >> confdefs.h <<\EOF
6696 #define HAVE_SSLEAY 1
6700 if test $need_rsaref = yes; then
6701 cat >> confdefs.h <<\EOF
6702 #define HAVE_RSAREF 1
6706 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6708 TLS_LIBS="-lssl -lcrypto"
6714 if test $ol_link_tls = yes ; then
6715 cat >> confdefs.h <<\EOF
6723 gethostbyname_r gethostbyaddr_r \
6726 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6727 echo "configure:6728: checking for $ac_func" >&5
6728 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char $ac_func(); below. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6745 /* The GNU C library defines this for functions which it implements
6746 to always fail with ENOSYS. Some functions are actually named
6747 something starting with __ and the normal name is an alias. */
6748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_func_$ac_func=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_func_$ac_func=no"
6768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6771 cat >> confdefs.h <<EOF
6772 #define $ac_tr_func 1
6776 echo "$ac_t""no" 1>&6
6781 if test "$ac_cv_func_ctime_r" = no ; then
6782 ol_cv_func_ctime_r_nargs=0
6784 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6785 echo "configure:6786: checking number of arguments of ctime_r" >&5
6786 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6787 echo $ac_n "(cached) $ac_c" 1>&6
6789 cat > conftest.$ac_ext <<EOF
6790 #line 6791 "configure"
6791 #include "confdefs.h"
6794 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6797 if { (eval echo configure:6798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6799 ol_cv_func_ctime_r_nargs3=yes
6801 echo "configure: failed program was:" >&5
6802 cat conftest.$ac_ext >&5
6804 ol_cv_func_ctime_r_nargs3=no
6808 cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6813 time_t ti; char *buffer; ctime_r(&ti,buffer);
6816 if { (eval echo configure:6817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6818 ol_cv_func_ctime_r_nargs2=yes
6820 echo "configure: failed program was:" >&5
6821 cat conftest.$ac_ext >&5
6823 ol_cv_func_ctime_r_nargs2=no
6827 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6828 $ol_cv_func_ctime_r_nargs2 = no ; then
6830 ol_cv_func_ctime_r_nargs=3
6832 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6833 $ol_cv_func_ctime_r_nargs2 = yes ; then
6835 ol_cv_func_ctime_r_nargs=2
6838 ol_cv_func_ctime_r_nargs=0
6843 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6845 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6846 cat >> confdefs.h <<EOF
6847 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6854 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6855 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6856 echo "configure:6857: checking number of arguments of gethostbyname_r" >&5
6857 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6858 echo $ac_n "(cached) $ac_c" 1>&6
6860 cat > conftest.$ac_ext <<EOF
6861 #line 6862 "configure"
6862 #include "confdefs.h"
6863 #include <sys/types.h>
6864 #include <sys/socket.h>
6865 #include <netinet/in.h>
6867 #define BUFSIZE (sizeof(struct hostent)+10)
6869 struct hostent hent; char buffer[BUFSIZE];
6870 int bufsize=BUFSIZE;int h_errno;
6871 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6872 buffer, bufsize, &h_errno);
6875 if { (eval echo configure:6876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6877 ol_cv_func_gethostbyname_r_nargs5=yes
6879 echo "configure: failed program was:" >&5
6880 cat conftest.$ac_ext >&5
6882 ol_cv_func_gethostbyname_r_nargs5=no
6886 cat > conftest.$ac_ext <<EOF
6887 #line 6888 "configure"
6888 #include "confdefs.h"
6889 #include <sys/types.h>
6890 #include <sys/socket.h>
6891 #include <netinet/in.h>
6893 #define BUFSIZE (sizeof(struct hostent)+10)
6895 struct hostent hent;struct hostent *rhent;
6896 char buffer[BUFSIZE];
6897 int bufsize=BUFSIZE;int h_errno;
6898 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6902 if { (eval echo configure:6903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6904 ol_cv_func_gethostbyname_r_nargs6=yes
6906 echo "configure: failed program was:" >&5
6907 cat conftest.$ac_ext >&5
6909 ol_cv_func_gethostbyname_r_nargs6=no
6913 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6914 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6916 ol_cv_func_gethostbyname_r_nargs=5
6918 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6919 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6921 ol_cv_func_gethostbyname_r_nargs=6
6924 ol_cv_func_gethostbyname_r_nargs=0
6929 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6930 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6931 cat >> confdefs.h <<EOF
6932 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6938 ol_cv_func_gethostbyname_r_nargs=0
6941 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6942 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6943 echo "configure:6944: checking number of arguments of gethostbyaddr_r" >&5
6944 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6947 cat > conftest.$ac_ext <<EOF
6948 #line 6949 "configure"
6949 #include "confdefs.h"
6950 #include <sys/types.h>
6951 #include <sys/socket.h>
6952 #include <netinet/in.h>
6954 #define BUFSIZE (sizeof(struct hostent)+10)
6956 struct hostent hent; char buffer[BUFSIZE];
6958 size_t alen=sizeof(struct in_addr);
6959 int bufsize=BUFSIZE;int h_errno;
6960 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6961 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6964 if { (eval echo configure:6965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6966 ol_cv_func_gethostbyaddr_r_nargs7=yes
6968 echo "configure: failed program was:" >&5
6969 cat conftest.$ac_ext >&5
6971 ol_cv_func_gethostbyaddr_r_nargs7=no
6975 cat > conftest.$ac_ext <<EOF
6976 #line 6977 "configure"
6977 #include "confdefs.h"
6978 #include <sys/types.h>
6979 #include <sys/socket.h>
6980 #include <netinet/in.h>
6982 #define BUFSIZE (sizeof(struct hostent)+10)
6984 struct hostent hent;
6985 struct hostent *rhent; char buffer[BUFSIZE];
6987 size_t alen=sizeof(struct in_addr);
6988 int bufsize=BUFSIZE;int h_errno;
6989 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6990 alen, AF_INET, &hent, buffer, bufsize,
6994 if { (eval echo configure:6995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6996 ol_cv_func_gethostbyaddr_r_nargs8=yes
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 ol_cv_func_gethostbyaddr_r_nargs8=no
7005 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
7006 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
7008 ol_cv_func_gethostbyaddr_r_nargs=7
7010 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
7011 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
7013 ol_cv_func_gethostbyaddr_r_nargs=8
7016 ol_cv_func_gethostbyaddr_r_nargs=0
7021 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
7022 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
7023 cat >> confdefs.h <<EOF
7024 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
7030 ol_cv_func_gethostbyaddr_r_nargs=0
7033 if test "$ac_cv_func_ctime_r" = yes \
7034 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
7035 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
7036 -a "$ac_cv_func_gethostbyname_r" = yes \
7037 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
7038 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
7039 -a "$ac_cv_func_gethostbyaddr_r" = yes \
7040 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
7041 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
7044 cat >> confdefs.h <<\EOF
7045 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
7052 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7053 -o $ol_with_threads = nt ; then
7056 echo $ac_n "checking for NT Threads""... $ac_c" 1>&6
7057 echo "configure:7058: checking for NT Threads" >&5
7058 if eval "test \"\${ol_cv_nt_threads+set}\" = set"; then
7059 echo $ac_n "(cached) $ac_c" 1>&6
7062 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
7063 echo "configure:7064: checking for _beginthread" >&5
7064 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
7065 echo $ac_n "(cached) $ac_c" 1>&6
7067 cat > conftest.$ac_ext <<EOF
7068 #line 7069 "configure"
7069 #include "confdefs.h"
7070 /* System header to define __stub macros and hopefully few prototypes,
7071 which can conflict with char _beginthread(); below. */
7073 /* Override any gcc2 internal prototype to avoid an error. */
7074 /* We use char because int might match the return type of a gcc2
7075 builtin and then its argument prototype would still apply. */
7076 char _beginthread();
7081 /* The GNU C library defines this for functions which it implements
7082 to always fail with ENOSYS. Some functions are actually named
7083 something starting with __ and the normal name is an alias. */
7084 #if defined (__stub__beginthread) || defined (__stub____beginthread)
7092 if { (eval echo configure:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7094 eval "ac_cv_func__beginthread=yes"
7096 echo "configure: failed program was:" >&5
7097 cat conftest.$ac_ext >&5
7099 eval "ac_cv_func__beginthread=no"
7104 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7105 echo "$ac_t""yes" 1>&6
7106 ol_cv_nt_threads=yes
7108 echo "$ac_t""no" 1>&6
7115 echo "$ac_t""$ol_cv_nt_threads" 1>&6
7117 if test $ol_cv_nt_threads = yes ; then
7118 cat >> confdefs.h <<\EOF
7119 #define HAVE_NT_THREADS 1
7125 if test "$ol_cv_nt_threads" = yes ; then
7127 ol_with_threads=found
7128 ol_with_yielding_select=yes
7130 cat >> confdefs.h <<\EOF
7131 #define HAVE_NT_SERVICE_MANAGER 1
7134 cat >> confdefs.h <<\EOF
7135 #define HAVE_NT_EVENT_LOG 1
7140 if test $ol_with_threads = nt ; then
7141 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7145 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7146 -o $ol_with_threads = posix ; then
7148 for ac_hdr in pthread.h
7150 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7151 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7152 echo "configure:7153: checking for $ac_hdr" >&5
7153 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7154 echo $ac_n "(cached) $ac_c" 1>&6
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7161 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7162 { (eval echo configure:7163: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7163 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7164 if test -z "$ac_err"; then
7166 eval "ac_cv_header_$ac_safe=yes"
7169 echo "configure: failed program was:" >&5
7170 cat conftest.$ac_ext >&5
7172 eval "ac_cv_header_$ac_safe=no"
7176 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7177 echo "$ac_t""yes" 1>&6
7178 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7179 cat >> confdefs.h <<EOF
7180 #define $ac_tr_hdr 1
7184 echo "$ac_t""no" 1>&6
7189 if test $ac_cv_header_pthread_h = yes ; then
7190 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7191 echo "configure:7192: checking POSIX thread version" >&5
7192 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7193 echo $ac_n "(cached) $ac_c" 1>&6
7196 cat > conftest.$ac_ext <<EOF
7197 #line 7198 "configure"
7198 #include "confdefs.h"
7200 # include <pthread.h>
7201 /* this check could be improved */
7202 # ifdef PTHREAD_ONCE_INIT
7203 pthread_version_final;
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208 egrep "pthread_version_final" >/dev/null 2>&1; then
7210 ol_pthread_final=yes
7218 cat > conftest.$ac_ext <<EOF
7219 #line 7220 "configure"
7220 #include "confdefs.h"
7222 # include <pthread.h>
7223 /* this check could be improved */
7224 # ifdef pthread_once_init
7225 pthread_version_draft4;
7229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7230 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7232 ol_pthread_draft4=yes
7235 ol_pthread_draft4=no
7240 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7241 ol_cv_pthread_version=final
7242 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7243 ol_cv_pthread_version=draft4
7245 ol_cv_pthread_version=unknown
7250 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7253 if test $ol_cv_pthread_version = final ; then
7254 cat >> confdefs.h <<\EOF
7255 #define HAVE_PTHREADS_FINAL 1
7258 elif test $ol_cv_pthread_version = draft4 ; then
7259 cat >> confdefs.h <<\EOF
7260 #define HAVE_PTHREADS_D4 1
7264 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7267 # consider threads found
7268 ol_with_threads=found
7271 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7272 echo "configure:7273: checking for LinuxThreads pthread.h" >&5
7273 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7276 cat > conftest.$ac_ext <<EOF
7277 #line 7278 "configure"
7278 #include "confdefs.h"
7279 #include <pthread.h>
7281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7282 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7284 ol_cv_header_linux_threads=yes
7287 ol_cv_header_linux_threads=no
7294 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7295 if test $ol_cv_header_linux_threads = yes; then
7296 cat >> confdefs.h <<\EOF
7297 #define HAVE_LINUX_THREADS 1
7303 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7304 echo "configure:7305: checking for GNU Pth pthread.h" >&5
7305 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7306 echo $ac_n "(cached) $ac_c" 1>&6
7308 cat > conftest.$ac_ext <<EOF
7309 #line 7310 "configure"
7310 #include "confdefs.h"
7311 #include <pthread.h>
7312 #ifdef _POSIX_THREAD_IS_GNU_PTH
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 egrep "__gnu_pth__" >/dev/null 2>&1; then
7320 ol_cv_header_gnu_pth_pthread_h=yes
7323 ol_cv_header_gnu_pth_pthread_h=no
7330 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7333 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7334 for ac_hdr in sched.h
7336 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7337 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7338 echo "configure:7339: checking for $ac_hdr" >&5
7339 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7340 echo $ac_n "(cached) $ac_c" 1>&6
7342 cat > conftest.$ac_ext <<EOF
7343 #line 7344 "configure"
7344 #include "confdefs.h"
7347 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7348 { (eval echo configure:7349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7349 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7350 if test -z "$ac_err"; then
7352 eval "ac_cv_header_$ac_safe=yes"
7355 echo "configure: failed program was:" >&5
7356 cat conftest.$ac_ext >&5
7358 eval "ac_cv_header_$ac_safe=no"
7362 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7363 echo "$ac_t""yes" 1>&6
7364 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7365 cat >> confdefs.h <<EOF
7366 #define $ac_tr_hdr 1
7370 echo "$ac_t""no" 1>&6
7377 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7378 echo "configure:7379: checking for pthread_create in default libraries" >&5
7379 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7380 echo $ac_n "(cached) $ac_c" 1>&6
7383 if test "$cross_compiling" = yes; then
7384 cat > conftest.$ac_ext <<EOF
7385 #line 7386 "configure"
7386 #include "confdefs.h"
7387 /* pthread test headers */
7388 #include <pthread.h>
7390 #define NULL (void*)0
7393 static void *task(p)
7396 return (void *) (p == NULL);
7401 /* pthread test function */
7405 /* make sure pthread_create() isn't just a stub */
7406 #if HAVE_PTHREADS_D4
7407 status = pthread_create(&t, pthread_attr_default, task, NULL);
7409 status = pthread_create(&t, NULL, task, NULL);
7412 if( status ) exit( status );
7414 /* make sure pthread_detach() isn't just a stub */
7415 #if HAVE_PTHREADS_D4
7416 status = pthread_detach( &t );
7418 status = pthread_detach( t );
7421 #ifdef HAVE_LINUX_THREADS
7422 pthread_kill_other_threads_np();
7429 if { (eval echo configure:7430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7431 ol_cv_pthread_create=yes
7433 echo "configure: failed program was:" >&5
7434 cat conftest.$ac_ext >&5
7436 ol_cv_pthread_create=no
7440 cat > conftest.$ac_ext <<EOF
7441 #line 7442 "configure"
7442 #include "confdefs.h"
7443 /* pthread test headers */
7444 #include <pthread.h>
7446 #define NULL (void*)0
7449 static void *task(p)
7452 return (void *) (p == NULL);
7456 int main(argc, argv)
7461 /* pthread test function */
7465 /* make sure pthread_create() isn't just a stub */
7466 #if HAVE_PTHREADS_D4
7467 status = pthread_create(&t, pthread_attr_default, task, NULL);
7469 status = pthread_create(&t, NULL, task, NULL);
7472 if( status ) exit( status );
7474 /* make sure pthread_detach() isn't just a stub */
7475 #if HAVE_PTHREADS_D4
7476 status = pthread_detach( &t );
7478 status = pthread_detach( t );
7481 #ifdef HAVE_LINUX_THREADS
7482 pthread_kill_other_threads_np();
7490 if { (eval echo configure:7491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7492 ol_cv_pthread_create=yes
7494 echo "configure: failed program was:" >&5
7495 cat conftest.$ac_ext >&5
7497 ol_cv_pthread_create=no
7504 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7506 if test $ol_cv_pthread_create != no ; then
7507 ol_link_threads=posix
7511 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7512 if test "$ol_link_threads" = no ; then
7514 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7515 echo "configure:7516: checking for pthread link with -kthread" >&5
7516 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7517 echo $ac_n "(cached) $ac_c" 1>&6
7522 LIBS="-kthread $LIBS"
7524 if test "$cross_compiling" = yes; then
7525 cat > conftest.$ac_ext <<EOF
7526 #line 7527 "configure"
7527 #include "confdefs.h"
7528 /* pthread test headers */
7529 #include <pthread.h>
7531 #define NULL (void*)0
7534 static void *task(p)
7537 return (void *) (p == NULL);
7542 /* pthread test function */
7546 /* make sure pthread_create() isn't just a stub */
7547 #if HAVE_PTHREADS_D4
7548 status = pthread_create(&t, pthread_attr_default, task, NULL);
7550 status = pthread_create(&t, NULL, task, NULL);
7553 if( status ) exit( status );
7555 /* make sure pthread_detach() isn't just a stub */
7556 #if HAVE_PTHREADS_D4
7557 status = pthread_detach( &t );
7559 status = pthread_detach( t );
7562 #ifdef HAVE_LINUX_THREADS
7563 pthread_kill_other_threads_np();
7570 if { (eval echo configure:7571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7572 ol_cv_pthread_kthread=yes
7574 echo "configure: failed program was:" >&5
7575 cat conftest.$ac_ext >&5
7577 ol_cv_pthread_kthread=no
7581 cat > conftest.$ac_ext <<EOF
7582 #line 7583 "configure"
7583 #include "confdefs.h"
7584 /* pthread test headers */
7585 #include <pthread.h>
7587 #define NULL (void*)0
7590 static void *task(p)
7593 return (void *) (p == NULL);
7597 int main(argc, argv)
7602 /* pthread test function */
7606 /* make sure pthread_create() isn't just a stub */
7607 #if HAVE_PTHREADS_D4
7608 status = pthread_create(&t, pthread_attr_default, task, NULL);
7610 status = pthread_create(&t, NULL, task, NULL);
7613 if( status ) exit( status );
7615 /* make sure pthread_detach() isn't just a stub */
7616 #if HAVE_PTHREADS_D4
7617 status = pthread_detach( &t );
7619 status = pthread_detach( t );
7622 #ifdef HAVE_LINUX_THREADS
7623 pthread_kill_other_threads_np();
7631 if { (eval echo configure:7632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7633 ol_cv_pthread_kthread=yes
7635 echo "configure: failed program was:" >&5
7636 cat conftest.$ac_ext >&5
7638 ol_cv_pthread_kthread=no
7649 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7651 if test $ol_cv_pthread_kthread = yes ; then
7652 ol_link_pthreads="-kthread"
7653 ol_link_threads=posix
7657 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7658 if test "$ol_link_threads" = no ; then
7660 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7661 echo "configure:7662: checking for pthread link with -pthread" >&5
7662 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7668 LIBS="-pthread $LIBS"
7670 if test "$cross_compiling" = yes; then
7671 cat > conftest.$ac_ext <<EOF
7672 #line 7673 "configure"
7673 #include "confdefs.h"
7674 /* pthread test headers */
7675 #include <pthread.h>
7677 #define NULL (void*)0
7680 static void *task(p)
7683 return (void *) (p == NULL);
7688 /* pthread test function */
7692 /* make sure pthread_create() isn't just a stub */
7693 #if HAVE_PTHREADS_D4
7694 status = pthread_create(&t, pthread_attr_default, task, NULL);
7696 status = pthread_create(&t, NULL, task, NULL);
7699 if( status ) exit( status );
7701 /* make sure pthread_detach() isn't just a stub */
7702 #if HAVE_PTHREADS_D4
7703 status = pthread_detach( &t );
7705 status = pthread_detach( t );
7708 #ifdef HAVE_LINUX_THREADS
7709 pthread_kill_other_threads_np();
7716 if { (eval echo configure:7717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7718 ol_cv_pthread_pthread=yes
7720 echo "configure: failed program was:" >&5
7721 cat conftest.$ac_ext >&5
7723 ol_cv_pthread_pthread=no
7727 cat > conftest.$ac_ext <<EOF
7728 #line 7729 "configure"
7729 #include "confdefs.h"
7730 /* pthread test headers */
7731 #include <pthread.h>
7733 #define NULL (void*)0
7736 static void *task(p)
7739 return (void *) (p == NULL);
7743 int main(argc, argv)
7748 /* pthread test function */
7752 /* make sure pthread_create() isn't just a stub */
7753 #if HAVE_PTHREADS_D4
7754 status = pthread_create(&t, pthread_attr_default, task, NULL);
7756 status = pthread_create(&t, NULL, task, NULL);
7759 if( status ) exit( status );
7761 /* make sure pthread_detach() isn't just a stub */
7762 #if HAVE_PTHREADS_D4
7763 status = pthread_detach( &t );
7765 status = pthread_detach( t );
7768 #ifdef HAVE_LINUX_THREADS
7769 pthread_kill_other_threads_np();
7777 if { (eval echo configure:7778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7779 ol_cv_pthread_pthread=yes
7781 echo "configure: failed program was:" >&5
7782 cat conftest.$ac_ext >&5
7784 ol_cv_pthread_pthread=no
7795 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7797 if test $ol_cv_pthread_pthread = yes ; then
7798 ol_link_pthreads="-pthread"
7799 ol_link_threads=posix
7803 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7804 if test "$ol_link_threads" = no ; then
7806 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7807 echo "configure:7808: checking for pthread link with -pthreads" >&5
7808 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7809 echo $ac_n "(cached) $ac_c" 1>&6
7814 LIBS="-pthreads $LIBS"
7816 if test "$cross_compiling" = yes; then
7817 cat > conftest.$ac_ext <<EOF
7818 #line 7819 "configure"
7819 #include "confdefs.h"
7820 /* pthread test headers */
7821 #include <pthread.h>
7823 #define NULL (void*)0
7826 static void *task(p)
7829 return (void *) (p == NULL);
7834 /* pthread test function */
7838 /* make sure pthread_create() isn't just a stub */
7839 #if HAVE_PTHREADS_D4
7840 status = pthread_create(&t, pthread_attr_default, task, NULL);
7842 status = pthread_create(&t, NULL, task, NULL);
7845 if( status ) exit( status );
7847 /* make sure pthread_detach() isn't just a stub */
7848 #if HAVE_PTHREADS_D4
7849 status = pthread_detach( &t );
7851 status = pthread_detach( t );
7854 #ifdef HAVE_LINUX_THREADS
7855 pthread_kill_other_threads_np();
7862 if { (eval echo configure:7863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7864 ol_cv_pthread_pthreads=yes
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7869 ol_cv_pthread_pthreads=no
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7876 /* pthread test headers */
7877 #include <pthread.h>
7879 #define NULL (void*)0
7882 static void *task(p)
7885 return (void *) (p == NULL);
7889 int main(argc, argv)
7894 /* pthread test function */
7898 /* make sure pthread_create() isn't just a stub */
7899 #if HAVE_PTHREADS_D4
7900 status = pthread_create(&t, pthread_attr_default, task, NULL);
7902 status = pthread_create(&t, NULL, task, NULL);
7905 if( status ) exit( status );
7907 /* make sure pthread_detach() isn't just a stub */
7908 #if HAVE_PTHREADS_D4
7909 status = pthread_detach( &t );
7911 status = pthread_detach( t );
7914 #ifdef HAVE_LINUX_THREADS
7915 pthread_kill_other_threads_np();
7923 if { (eval echo configure:7924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7925 ol_cv_pthread_pthreads=yes
7927 echo "configure: failed program was:" >&5
7928 cat conftest.$ac_ext >&5
7930 ol_cv_pthread_pthreads=no
7941 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
7943 if test $ol_cv_pthread_pthreads = yes ; then
7944 ol_link_pthreads="-pthreads"
7945 ol_link_threads=posix
7949 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
7950 if test "$ol_link_threads" = no ; then
7952 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
7953 echo "configure:7954: checking for pthread link with -mthreads" >&5
7954 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7960 LIBS="-mthreads $LIBS"
7962 if test "$cross_compiling" = yes; then
7963 cat > conftest.$ac_ext <<EOF
7964 #line 7965 "configure"
7965 #include "confdefs.h"
7966 /* pthread test headers */
7967 #include <pthread.h>
7969 #define NULL (void*)0
7972 static void *task(p)
7975 return (void *) (p == NULL);
7980 /* pthread test function */
7984 /* make sure pthread_create() isn't just a stub */
7985 #if HAVE_PTHREADS_D4
7986 status = pthread_create(&t, pthread_attr_default, task, NULL);
7988 status = pthread_create(&t, NULL, task, NULL);
7991 if( status ) exit( status );
7993 /* make sure pthread_detach() isn't just a stub */
7994 #if HAVE_PTHREADS_D4
7995 status = pthread_detach( &t );
7997 status = pthread_detach( t );
8000 #ifdef HAVE_LINUX_THREADS
8001 pthread_kill_other_threads_np();
8008 if { (eval echo configure:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8010 ol_cv_pthread_mthreads=yes
8012 echo "configure: failed program was:" >&5
8013 cat conftest.$ac_ext >&5
8015 ol_cv_pthread_mthreads=no
8019 cat > conftest.$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* pthread test headers */
8023 #include <pthread.h>
8025 #define NULL (void*)0
8028 static void *task(p)
8031 return (void *) (p == NULL);
8035 int main(argc, argv)
8040 /* pthread test function */
8044 /* make sure pthread_create() isn't just a stub */
8045 #if HAVE_PTHREADS_D4
8046 status = pthread_create(&t, pthread_attr_default, task, NULL);
8048 status = pthread_create(&t, NULL, task, NULL);
8051 if( status ) exit( status );
8053 /* make sure pthread_detach() isn't just a stub */
8054 #if HAVE_PTHREADS_D4
8055 status = pthread_detach( &t );
8057 status = pthread_detach( t );
8060 #ifdef HAVE_LINUX_THREADS
8061 pthread_kill_other_threads_np();
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8071 ol_cv_pthread_mthreads=yes
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 ol_cv_pthread_mthreads=no
8087 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8089 if test $ol_cv_pthread_mthreads = yes ; then
8090 ol_link_pthreads="-mthreads"
8091 ol_link_threads=posix
8095 # Pthread try link: -thread (ol_cv_pthread_thread)
8096 if test "$ol_link_threads" = no ; then
8098 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8099 echo "configure:8100: checking for pthread link with -thread" >&5
8100 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8101 echo $ac_n "(cached) $ac_c" 1>&6
8106 LIBS="-thread $LIBS"
8108 if test "$cross_compiling" = yes; then
8109 cat > conftest.$ac_ext <<EOF
8110 #line 8111 "configure"
8111 #include "confdefs.h"
8112 /* pthread test headers */
8113 #include <pthread.h>
8115 #define NULL (void*)0
8118 static void *task(p)
8121 return (void *) (p == NULL);
8126 /* pthread test function */
8130 /* make sure pthread_create() isn't just a stub */
8131 #if HAVE_PTHREADS_D4
8132 status = pthread_create(&t, pthread_attr_default, task, NULL);
8134 status = pthread_create(&t, NULL, task, NULL);
8137 if( status ) exit( status );
8139 /* make sure pthread_detach() isn't just a stub */
8140 #if HAVE_PTHREADS_D4
8141 status = pthread_detach( &t );
8143 status = pthread_detach( t );
8146 #ifdef HAVE_LINUX_THREADS
8147 pthread_kill_other_threads_np();
8154 if { (eval echo configure:8155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8156 ol_cv_pthread_thread=yes
8158 echo "configure: failed program was:" >&5
8159 cat conftest.$ac_ext >&5
8161 ol_cv_pthread_thread=no
8165 cat > conftest.$ac_ext <<EOF
8166 #line 8167 "configure"
8167 #include "confdefs.h"
8168 /* pthread test headers */
8169 #include <pthread.h>
8171 #define NULL (void*)0
8174 static void *task(p)
8177 return (void *) (p == NULL);
8181 int main(argc, argv)
8186 /* pthread test function */
8190 /* make sure pthread_create() isn't just a stub */
8191 #if HAVE_PTHREADS_D4
8192 status = pthread_create(&t, pthread_attr_default, task, NULL);
8194 status = pthread_create(&t, NULL, task, NULL);
8197 if( status ) exit( status );
8199 /* make sure pthread_detach() isn't just a stub */
8200 #if HAVE_PTHREADS_D4
8201 status = pthread_detach( &t );
8203 status = pthread_detach( t );
8206 #ifdef HAVE_LINUX_THREADS
8207 pthread_kill_other_threads_np();
8215 if { (eval echo configure:8216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8217 ol_cv_pthread_thread=yes
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8222 ol_cv_pthread_thread=no
8233 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8235 if test $ol_cv_pthread_thread = yes ; then
8236 ol_link_pthreads="-thread"
8237 ol_link_threads=posix
8242 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8243 if test "$ol_link_threads" = no ; then
8244 # try -lpthread -lmach -lexc -lc_r
8245 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8246 echo "configure:8247: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8247 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8253 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8255 if test "$cross_compiling" = yes; then
8256 cat > conftest.$ac_ext <<EOF
8257 #line 8258 "configure"
8258 #include "confdefs.h"
8259 /* pthread test headers */
8260 #include <pthread.h>
8262 #define NULL (void*)0
8265 static void *task(p)
8268 return (void *) (p == NULL);
8273 /* pthread test function */
8277 /* make sure pthread_create() isn't just a stub */
8278 #if HAVE_PTHREADS_D4
8279 status = pthread_create(&t, pthread_attr_default, task, NULL);
8281 status = pthread_create(&t, NULL, task, NULL);
8284 if( status ) exit( status );
8286 /* make sure pthread_detach() isn't just a stub */
8287 #if HAVE_PTHREADS_D4
8288 status = pthread_detach( &t );
8290 status = pthread_detach( t );
8293 #ifdef HAVE_LINUX_THREADS
8294 pthread_kill_other_threads_np();
8301 if { (eval echo configure:8302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8303 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8308 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8312 cat > conftest.$ac_ext <<EOF
8313 #line 8314 "configure"
8314 #include "confdefs.h"
8315 /* pthread test headers */
8316 #include <pthread.h>
8318 #define NULL (void*)0
8321 static void *task(p)
8324 return (void *) (p == NULL);
8328 int main(argc, argv)
8333 /* pthread test function */
8337 /* make sure pthread_create() isn't just a stub */
8338 #if HAVE_PTHREADS_D4
8339 status = pthread_create(&t, pthread_attr_default, task, NULL);
8341 status = pthread_create(&t, NULL, task, NULL);
8344 if( status ) exit( status );
8346 /* make sure pthread_detach() isn't just a stub */
8347 #if HAVE_PTHREADS_D4
8348 status = pthread_detach( &t );
8350 status = pthread_detach( t );
8353 #ifdef HAVE_LINUX_THREADS
8354 pthread_kill_other_threads_np();
8362 if { (eval echo configure:8363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8364 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8366 echo "configure: failed program was:" >&5
8367 cat conftest.$ac_ext >&5
8369 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8380 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8382 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8383 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8384 ol_link_threads=posix
8388 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8389 if test "$ol_link_threads" = no ; then
8390 # try -lpthread -lmach -lexc
8391 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8392 echo "configure:8393: checking for pthread link with -lpthread -lmach -lexc" >&5
8393 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8394 echo $ac_n "(cached) $ac_c" 1>&6
8399 LIBS="-lpthread -lmach -lexc $LIBS"
8401 if test "$cross_compiling" = yes; then
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8405 /* pthread test headers */
8406 #include <pthread.h>
8408 #define NULL (void*)0
8411 static void *task(p)
8414 return (void *) (p == NULL);
8419 /* pthread test function */
8423 /* make sure pthread_create() isn't just a stub */
8424 #if HAVE_PTHREADS_D4
8425 status = pthread_create(&t, pthread_attr_default, task, NULL);
8427 status = pthread_create(&t, NULL, task, NULL);
8430 if( status ) exit( status );
8432 /* make sure pthread_detach() isn't just a stub */
8433 #if HAVE_PTHREADS_D4
8434 status = pthread_detach( &t );
8436 status = pthread_detach( t );
8439 #ifdef HAVE_LINUX_THREADS
8440 pthread_kill_other_threads_np();
8447 if { (eval echo configure:8448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8449 ol_cv_pthread_lpthread_lmach_lexc=yes
8451 echo "configure: failed program was:" >&5
8452 cat conftest.$ac_ext >&5
8454 ol_cv_pthread_lpthread_lmach_lexc=no
8458 cat > conftest.$ac_ext <<EOF
8459 #line 8460 "configure"
8460 #include "confdefs.h"
8461 /* pthread test headers */
8462 #include <pthread.h>
8464 #define NULL (void*)0
8467 static void *task(p)
8470 return (void *) (p == NULL);
8474 int main(argc, argv)
8479 /* pthread test function */
8483 /* make sure pthread_create() isn't just a stub */
8484 #if HAVE_PTHREADS_D4
8485 status = pthread_create(&t, pthread_attr_default, task, NULL);
8487 status = pthread_create(&t, NULL, task, NULL);
8490 if( status ) exit( status );
8492 /* make sure pthread_detach() isn't just a stub */
8493 #if HAVE_PTHREADS_D4
8494 status = pthread_detach( &t );
8496 status = pthread_detach( t );
8499 #ifdef HAVE_LINUX_THREADS
8500 pthread_kill_other_threads_np();
8508 if { (eval echo configure:8509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8510 ol_cv_pthread_lpthread_lmach_lexc=yes
8512 echo "configure: failed program was:" >&5
8513 cat conftest.$ac_ext >&5
8515 ol_cv_pthread_lpthread_lmach_lexc=no
8526 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
8528 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
8529 ol_link_pthreads="-lpthread -lmach -lexc"
8530 ol_link_threads=posix
8535 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
8536 if test "$ol_link_threads" = no ; then
8537 # try -lpthread -Wl,-woff,85
8538 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
8539 echo "configure:8540: checking for pthread link with -lpthread -Wl,-woff,85" >&5
8540 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
8541 echo $ac_n "(cached) $ac_c" 1>&6
8546 LIBS="-lpthread -Wl,-woff,85 $LIBS"
8548 if test "$cross_compiling" = yes; then
8549 cat > conftest.$ac_ext <<EOF
8550 #line 8551 "configure"
8551 #include "confdefs.h"
8552 /* pthread test headers */
8553 #include <pthread.h>
8555 #define NULL (void*)0
8558 static void *task(p)
8561 return (void *) (p == NULL);
8566 /* pthread test function */
8570 /* make sure pthread_create() isn't just a stub */
8571 #if HAVE_PTHREADS_D4
8572 status = pthread_create(&t, pthread_attr_default, task, NULL);
8574 status = pthread_create(&t, NULL, task, NULL);
8577 if( status ) exit( status );
8579 /* make sure pthread_detach() isn't just a stub */
8580 #if HAVE_PTHREADS_D4
8581 status = pthread_detach( &t );
8583 status = pthread_detach( t );
8586 #ifdef HAVE_LINUX_THREADS
8587 pthread_kill_other_threads_np();
8594 if { (eval echo configure:8595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8596 ol_cv_pthread_lib_lpthread_woff=yes
8598 echo "configure: failed program was:" >&5
8599 cat conftest.$ac_ext >&5
8601 ol_cv_pthread_lib_lpthread_woff=no
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* pthread test headers */
8609 #include <pthread.h>
8611 #define NULL (void*)0
8614 static void *task(p)
8617 return (void *) (p == NULL);
8621 int main(argc, argv)
8626 /* pthread test function */
8630 /* make sure pthread_create() isn't just a stub */
8631 #if HAVE_PTHREADS_D4
8632 status = pthread_create(&t, pthread_attr_default, task, NULL);
8634 status = pthread_create(&t, NULL, task, NULL);
8637 if( status ) exit( status );
8639 /* make sure pthread_detach() isn't just a stub */
8640 #if HAVE_PTHREADS_D4
8641 status = pthread_detach( &t );
8643 status = pthread_detach( t );
8646 #ifdef HAVE_LINUX_THREADS
8647 pthread_kill_other_threads_np();
8655 if { (eval echo configure:8656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8657 ol_cv_pthread_lib_lpthread_woff=yes
8659 echo "configure: failed program was:" >&5
8660 cat conftest.$ac_ext >&5
8662 ol_cv_pthread_lib_lpthread_woff=no
8673 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
8675 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
8676 ol_link_pthreads="-lpthread -Wl,-woff,85"
8677 ol_link_threads=posix
8682 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
8683 if test "$ol_link_threads" = no ; then
8685 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
8686 echo "configure:8687: checking for pthread link with -lpthread" >&5
8687 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8693 LIBS="-lpthread $LIBS"
8695 if test "$cross_compiling" = yes; then
8696 cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 /* pthread test headers */
8700 #include <pthread.h>
8702 #define NULL (void*)0
8705 static void *task(p)
8708 return (void *) (p == NULL);
8713 /* pthread test function */
8717 /* make sure pthread_create() isn't just a stub */
8718 #if HAVE_PTHREADS_D4
8719 status = pthread_create(&t, pthread_attr_default, task, NULL);
8721 status = pthread_create(&t, NULL, task, NULL);
8724 if( status ) exit( status );
8726 /* make sure pthread_detach() isn't just a stub */
8727 #if HAVE_PTHREADS_D4
8728 status = pthread_detach( &t );
8730 status = pthread_detach( t );
8733 #ifdef HAVE_LINUX_THREADS
8734 pthread_kill_other_threads_np();
8741 if { (eval echo configure:8742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8743 ol_cv_pthread_lpthread=yes
8745 echo "configure: failed program was:" >&5
8746 cat conftest.$ac_ext >&5
8748 ol_cv_pthread_lpthread=no
8752 cat > conftest.$ac_ext <<EOF
8753 #line 8754 "configure"
8754 #include "confdefs.h"
8755 /* pthread test headers */
8756 #include <pthread.h>
8758 #define NULL (void*)0
8761 static void *task(p)
8764 return (void *) (p == NULL);
8768 int main(argc, argv)
8773 /* pthread test function */
8777 /* make sure pthread_create() isn't just a stub */
8778 #if HAVE_PTHREADS_D4
8779 status = pthread_create(&t, pthread_attr_default, task, NULL);
8781 status = pthread_create(&t, NULL, task, NULL);
8784 if( status ) exit( status );
8786 /* make sure pthread_detach() isn't just a stub */
8787 #if HAVE_PTHREADS_D4
8788 status = pthread_detach( &t );
8790 status = pthread_detach( t );
8793 #ifdef HAVE_LINUX_THREADS
8794 pthread_kill_other_threads_np();
8802 if { (eval echo configure:8803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8804 ol_cv_pthread_lpthread=yes
8806 echo "configure: failed program was:" >&5
8807 cat conftest.$ac_ext >&5
8809 ol_cv_pthread_lpthread=no
8820 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
8822 if test $ol_cv_pthread_lpthread = yes ; then
8823 ol_link_pthreads="-lpthread"
8824 ol_link_threads=posix
8828 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
8829 if test "$ol_link_threads" = no ; then
8831 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
8832 echo "configure:8833: checking for pthread link with -lc_r" >&5
8833 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
8834 echo $ac_n "(cached) $ac_c" 1>&6
8841 if test "$cross_compiling" = yes; then
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 /* pthread test headers */
8846 #include <pthread.h>
8848 #define NULL (void*)0
8851 static void *task(p)
8854 return (void *) (p == NULL);
8859 /* pthread test function */
8863 /* make sure pthread_create() isn't just a stub */
8864 #if HAVE_PTHREADS_D4
8865 status = pthread_create(&t, pthread_attr_default, task, NULL);
8867 status = pthread_create(&t, NULL, task, NULL);
8870 if( status ) exit( status );
8872 /* make sure pthread_detach() isn't just a stub */
8873 #if HAVE_PTHREADS_D4
8874 status = pthread_detach( &t );
8876 status = pthread_detach( t );
8879 #ifdef HAVE_LINUX_THREADS
8880 pthread_kill_other_threads_np();
8887 if { (eval echo configure:8888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8889 ol_cv_pthread_lc_r=yes
8891 echo "configure: failed program was:" >&5
8892 cat conftest.$ac_ext >&5
8894 ol_cv_pthread_lc_r=no
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 /* pthread test headers */
8902 #include <pthread.h>
8904 #define NULL (void*)0
8907 static void *task(p)
8910 return (void *) (p == NULL);
8914 int main(argc, argv)
8919 /* pthread test function */
8923 /* make sure pthread_create() isn't just a stub */
8924 #if HAVE_PTHREADS_D4
8925 status = pthread_create(&t, pthread_attr_default, task, NULL);
8927 status = pthread_create(&t, NULL, task, NULL);
8930 if( status ) exit( status );
8932 /* make sure pthread_detach() isn't just a stub */
8933 #if HAVE_PTHREADS_D4
8934 status = pthread_detach( &t );
8936 status = pthread_detach( t );
8939 #ifdef HAVE_LINUX_THREADS
8940 pthread_kill_other_threads_np();
8948 if { (eval echo configure:8949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8950 ol_cv_pthread_lc_r=yes
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8955 ol_cv_pthread_lc_r=no
8966 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
8968 if test $ol_cv_pthread_lc_r = yes ; then
8969 ol_link_pthreads="-lc_r"
8970 ol_link_threads=posix
8975 # Pthread try link: -threads (ol_cv_pthread_threads)
8976 if test "$ol_link_threads" = no ; then
8978 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
8979 echo "configure:8980: checking for pthread link with -threads" >&5
8980 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
8981 echo $ac_n "(cached) $ac_c" 1>&6
8986 LIBS="-threads $LIBS"
8988 if test "$cross_compiling" = yes; then
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 /* pthread test headers */
8993 #include <pthread.h>
8995 #define NULL (void*)0
8998 static void *task(p)
9001 return (void *) (p == NULL);
9006 /* pthread test function */
9010 /* make sure pthread_create() isn't just a stub */
9011 #if HAVE_PTHREADS_D4
9012 status = pthread_create(&t, pthread_attr_default, task, NULL);
9014 status = pthread_create(&t, NULL, task, NULL);
9017 if( status ) exit( status );
9019 /* make sure pthread_detach() isn't just a stub */
9020 #if HAVE_PTHREADS_D4
9021 status = pthread_detach( &t );
9023 status = pthread_detach( t );
9026 #ifdef HAVE_LINUX_THREADS
9027 pthread_kill_other_threads_np();
9034 if { (eval echo configure:9035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 ol_cv_pthread_threads=yes
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9041 ol_cv_pthread_threads=no
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 /* pthread test headers */
9049 #include <pthread.h>
9051 #define NULL (void*)0
9054 static void *task(p)
9057 return (void *) (p == NULL);
9061 int main(argc, argv)
9066 /* pthread test function */
9070 /* make sure pthread_create() isn't just a stub */
9071 #if HAVE_PTHREADS_D4
9072 status = pthread_create(&t, pthread_attr_default, task, NULL);
9074 status = pthread_create(&t, NULL, task, NULL);
9077 if( status ) exit( status );
9079 /* make sure pthread_detach() isn't just a stub */
9080 #if HAVE_PTHREADS_D4
9081 status = pthread_detach( &t );
9083 status = pthread_detach( t );
9086 #ifdef HAVE_LINUX_THREADS
9087 pthread_kill_other_threads_np();
9095 if { (eval echo configure:9096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9097 ol_cv_pthread_threads=yes
9099 echo "configure: failed program was:" >&5
9100 cat conftest.$ac_ext >&5
9102 ol_cv_pthread_threads=no
9113 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9115 if test $ol_cv_pthread_threads = yes ; then
9116 ol_link_pthreads="-threads"
9117 ol_link_threads=posix
9122 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9123 if test "$ol_link_threads" = no ; then
9124 # try -lpthreads -lmach -lexc -lc_r
9125 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9126 echo "configure:9127: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9127 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9133 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9135 if test "$cross_compiling" = yes; then
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9138 "configure"
9138 #include "confdefs.h"
9139 /* pthread test headers */
9140 #include <pthread.h>
9142 #define NULL (void*)0
9145 static void *task(p)
9148 return (void *) (p == NULL);
9153 /* pthread test function */
9157 /* make sure pthread_create() isn't just a stub */
9158 #if HAVE_PTHREADS_D4
9159 status = pthread_create(&t, pthread_attr_default, task, NULL);
9161 status = pthread_create(&t, NULL, task, NULL);
9164 if( status ) exit( status );
9166 /* make sure pthread_detach() isn't just a stub */
9167 #if HAVE_PTHREADS_D4
9168 status = pthread_detach( &t );
9170 status = pthread_detach( t );
9173 #ifdef HAVE_LINUX_THREADS
9174 pthread_kill_other_threads_np();
9181 if { (eval echo configure:9182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9183 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9185 echo "configure: failed program was:" >&5
9186 cat conftest.$ac_ext >&5
9188 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9192 cat > conftest.$ac_ext <<EOF
9193 #line 9194 "configure"
9194 #include "confdefs.h"
9195 /* pthread test headers */
9196 #include <pthread.h>
9198 #define NULL (void*)0
9201 static void *task(p)
9204 return (void *) (p == NULL);
9208 int main(argc, argv)
9213 /* pthread test function */
9217 /* make sure pthread_create() isn't just a stub */
9218 #if HAVE_PTHREADS_D4
9219 status = pthread_create(&t, pthread_attr_default, task, NULL);
9221 status = pthread_create(&t, NULL, task, NULL);
9224 if( status ) exit( status );
9226 /* make sure pthread_detach() isn't just a stub */
9227 #if HAVE_PTHREADS_D4
9228 status = pthread_detach( &t );
9230 status = pthread_detach( t );
9233 #ifdef HAVE_LINUX_THREADS
9234 pthread_kill_other_threads_np();
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9244 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
9260 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
9262 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
9263 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
9264 ol_link_threads=posix
9268 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
9269 if test "$ol_link_threads" = no ; then
9270 # try -lpthreads -lmach -lexc
9271 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
9272 echo "configure:9273: checking for pthread link with -lpthreads -lmach -lexc" >&5
9273 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
9274 echo $ac_n "(cached) $ac_c" 1>&6
9279 LIBS="-lpthreads -lmach -lexc $LIBS"
9281 if test "$cross_compiling" = yes; then
9282 cat > conftest.$ac_ext <<EOF
9283 #line 9284 "configure"
9284 #include "confdefs.h"
9285 /* pthread test headers */
9286 #include <pthread.h>
9288 #define NULL (void*)0
9291 static void *task(p)
9294 return (void *) (p == NULL);
9299 /* pthread test function */
9303 /* make sure pthread_create() isn't just a stub */
9304 #if HAVE_PTHREADS_D4
9305 status = pthread_create(&t, pthread_attr_default, task, NULL);
9307 status = pthread_create(&t, NULL, task, NULL);
9310 if( status ) exit( status );
9312 /* make sure pthread_detach() isn't just a stub */
9313 #if HAVE_PTHREADS_D4
9314 status = pthread_detach( &t );
9316 status = pthread_detach( t );
9319 #ifdef HAVE_LINUX_THREADS
9320 pthread_kill_other_threads_np();
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9329 ol_cv_pthread_lpthreads_lmach_lexc=yes
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 ol_cv_pthread_lpthreads_lmach_lexc=no
9338 cat > conftest.$ac_ext <<EOF
9339 #line 9340 "configure"
9340 #include "confdefs.h"
9341 /* pthread test headers */
9342 #include <pthread.h>
9344 #define NULL (void*)0
9347 static void *task(p)
9350 return (void *) (p == NULL);
9354 int main(argc, argv)
9359 /* pthread test function */
9363 /* make sure pthread_create() isn't just a stub */
9364 #if HAVE_PTHREADS_D4
9365 status = pthread_create(&t, pthread_attr_default, task, NULL);
9367 status = pthread_create(&t, NULL, task, NULL);
9370 if( status ) exit( status );
9372 /* make sure pthread_detach() isn't just a stub */
9373 #if HAVE_PTHREADS_D4
9374 status = pthread_detach( &t );
9376 status = pthread_detach( t );
9379 #ifdef HAVE_LINUX_THREADS
9380 pthread_kill_other_threads_np();
9388 if { (eval echo configure:9389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9390 ol_cv_pthread_lpthreads_lmach_lexc=yes
9392 echo "configure: failed program was:" >&5
9393 cat conftest.$ac_ext >&5
9395 ol_cv_pthread_lpthreads_lmach_lexc=no
9406 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
9408 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
9409 ol_link_pthreads="-lpthreads -lmach -lexc"
9410 ol_link_threads=posix
9414 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
9415 if test "$ol_link_threads" = no ; then
9416 # try -lpthreads -lexc
9417 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
9418 echo "configure:9419: checking for pthread link with -lpthreads -lexc" >&5
9419 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
9420 echo $ac_n "(cached) $ac_c" 1>&6
9425 LIBS="-lpthreads -lexc $LIBS"
9427 if test "$cross_compiling" = yes; then
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431 /* pthread test headers */
9432 #include <pthread.h>
9434 #define NULL (void*)0
9437 static void *task(p)
9440 return (void *) (p == NULL);
9445 /* pthread test function */
9449 /* make sure pthread_create() isn't just a stub */
9450 #if HAVE_PTHREADS_D4
9451 status = pthread_create(&t, pthread_attr_default, task, NULL);
9453 status = pthread_create(&t, NULL, task, NULL);
9456 if( status ) exit( status );
9458 /* make sure pthread_detach() isn't just a stub */
9459 #if HAVE_PTHREADS_D4
9460 status = pthread_detach( &t );
9462 status = pthread_detach( t );
9465 #ifdef HAVE_LINUX_THREADS
9466 pthread_kill_other_threads_np();
9473 if { (eval echo configure:9474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9475 ol_cv_pthread_lpthreads_lexc=yes
9477 echo "configure: failed program was:" >&5
9478 cat conftest.$ac_ext >&5
9480 ol_cv_pthread_lpthreads_lexc=no
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);
9500 int main(argc, argv)
9505 /* pthread test function */
9509 /* make sure pthread_create() isn't just a stub */
9510 #if HAVE_PTHREADS_D4
9511 status = pthread_create(&t, pthread_attr_default, task, NULL);
9513 status = pthread_create(&t, NULL, task, NULL);
9516 if( status ) exit( status );
9518 /* make sure pthread_detach() isn't just a stub */
9519 #if HAVE_PTHREADS_D4
9520 status = pthread_detach( &t );
9522 status = pthread_detach( t );
9525 #ifdef HAVE_LINUX_THREADS
9526 pthread_kill_other_threads_np();
9534 if { (eval echo configure:9535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9536 ol_cv_pthread_lpthreads_lexc=yes
9538 echo "configure: failed program was:" >&5
9539 cat conftest.$ac_ext >&5
9541 ol_cv_pthread_lpthreads_lexc=no
9552 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
9554 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
9555 ol_link_pthreads="-lpthreads -lexc"
9556 ol_link_threads=posix
9561 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
9562 if test "$ol_link_threads" = no ; then
9564 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
9565 echo "configure:9566: checking for pthread link with -lpthreads" >&5
9566 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
9567 echo $ac_n "(cached) $ac_c" 1>&6
9572 LIBS="-lpthreads $LIBS"
9574 if test "$cross_compiling" = yes; then
9575 cat > conftest.$ac_ext <<EOF
9576 #line 9577 "configure"
9577 #include "confdefs.h"
9578 /* pthread test headers */
9579 #include <pthread.h>
9581 #define NULL (void*)0
9584 static void *task(p)
9587 return (void *) (p == NULL);
9592 /* pthread test function */
9596 /* make sure pthread_create() isn't just a stub */
9597 #if HAVE_PTHREADS_D4
9598 status = pthread_create(&t, pthread_attr_default, task, NULL);
9600 status = pthread_create(&t, NULL, task, NULL);
9603 if( status ) exit( status );
9605 /* make sure pthread_detach() isn't just a stub */
9606 #if HAVE_PTHREADS_D4
9607 status = pthread_detach( &t );
9609 status = pthread_detach( t );
9612 #ifdef HAVE_LINUX_THREADS
9613 pthread_kill_other_threads_np();
9620 if { (eval echo configure:9621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9622 ol_cv_pthread_lib_lpthreads=yes
9624 echo "configure: failed program was:" >&5
9625 cat conftest.$ac_ext >&5
9627 ol_cv_pthread_lib_lpthreads=no
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 /* pthread test headers */
9635 #include <pthread.h>
9637 #define NULL (void*)0
9640 static void *task(p)
9643 return (void *) (p == NULL);
9647 int main(argc, argv)
9652 /* pthread test function */
9656 /* make sure pthread_create() isn't just a stub */
9657 #if HAVE_PTHREADS_D4
9658 status = pthread_create(&t, pthread_attr_default, task, NULL);
9660 status = pthread_create(&t, NULL, task, NULL);
9663 if( status ) exit( status );
9665 /* make sure pthread_detach() isn't just a stub */
9666 #if HAVE_PTHREADS_D4
9667 status = pthread_detach( &t );
9669 status = pthread_detach( t );
9672 #ifdef HAVE_LINUX_THREADS
9673 pthread_kill_other_threads_np();
9681 if { (eval echo configure:9682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9683 ol_cv_pthread_lib_lpthreads=yes
9685 echo "configure: failed program was:" >&5
9686 cat conftest.$ac_ext >&5
9688 ol_cv_pthread_lib_lpthreads=no
9699 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
9701 if test $ol_cv_pthread_lib_lpthreads = yes ; then
9702 ol_link_pthreads="-lpthreads"
9703 ol_link_threads=posix
9708 if test $ol_link_threads != no ; then
9709 cat >> confdefs.h <<\EOF
9710 #define HAVE_PTHREADS 1
9714 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
9716 save_CPPFLAGS="$CPPFLAGS"
9718 LIBS="$LTHREAD_LIBS $LIBS"
9720 for ac_func in sched_yield pthread_yield
9722 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9723 echo "configure:9724: checking for $ac_func" >&5
9724 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9725 echo $ac_n "(cached) $ac_c" 1>&6
9727 cat > conftest.$ac_ext <<EOF
9728 #line 9729 "configure"
9729 #include "confdefs.h"
9730 /* System header to define __stub macros and hopefully few prototypes,
9731 which can conflict with char $ac_func(); below. */
9733 /* Override any gcc2 internal prototype to avoid an error. */
9734 /* We use char because int might match the return type of a gcc2
9735 builtin and then its argument prototype would still apply. */
9741 /* The GNU C library defines this for functions which it implements
9742 to always fail with ENOSYS. Some functions are actually named
9743 something starting with __ and the normal name is an alias. */
9744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9752 if { (eval echo configure:9753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9754 eval "ac_cv_func_$ac_func=yes"
9756 echo "configure: failed program was:" >&5
9757 cat conftest.$ac_ext >&5
9759 eval "ac_cv_func_$ac_func=no"
9764 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9765 echo "$ac_t""yes" 1>&6
9766 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9767 cat >> confdefs.h <<EOF
9768 #define $ac_tr_func 1
9772 echo "$ac_t""no" 1>&6
9777 if test $ac_cv_func_sched_yield = no -a \
9778 $ac_cv_func_pthread_yield = no ; then
9779 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
9780 echo "configure:9781: checking for sched_yield in -lrt" >&5
9781 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
9782 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9783 echo $ac_n "(cached) $ac_c" 1>&6
9785 ac_save_LIBS="$LIBS"
9787 cat > conftest.$ac_ext <<EOF
9788 #line 9789 "configure"
9789 #include "confdefs.h"
9790 /* Override any gcc2 internal prototype to avoid an error. */
9791 /* We use char because int might match the return type of a gcc2
9792 builtin and then its argument prototype would still apply. */
9799 if { (eval echo configure:9800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9801 eval "ac_cv_lib_$ac_lib_var=yes"
9803 echo "configure: failed program was:" >&5
9804 cat conftest.$ac_ext >&5
9806 eval "ac_cv_lib_$ac_lib_var=no"
9809 LIBS="$ac_save_LIBS"
9812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9813 echo "$ac_t""yes" 1>&6
9814 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
9815 cat >> confdefs.h <<\EOF
9816 #define HAVE_SCHED_YIELD 1
9819 ac_cv_func_sched_yield=yes
9821 echo "$ac_t""no" 1>&6
9822 ac_cv_func_sched_yield=no
9826 if test $ac_cv_func_sched_yield = no -a \
9827 $ac_cv_func_pthread_yield = no ; then
9828 for ac_func in thr_yield
9830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9831 echo "configure:9832: checking for $ac_func" >&5
9832 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9833 echo $ac_n "(cached) $ac_c" 1>&6
9835 cat > conftest.$ac_ext <<EOF
9836 #line 9837 "configure"
9837 #include "confdefs.h"
9838 /* System header to define __stub macros and hopefully few prototypes,
9839 which can conflict with char $ac_func(); below. */
9841 /* Override any gcc2 internal prototype to avoid an error. */
9842 /* We use char because int might match the return type of a gcc2
9843 builtin and then its argument prototype would still apply. */
9849 /* The GNU C library defines this for functions which it implements
9850 to always fail with ENOSYS. Some functions are actually named
9851 something starting with __ and the normal name is an alias. */
9852 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9862 eval "ac_cv_func_$ac_func=yes"
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9867 eval "ac_cv_func_$ac_func=no"
9872 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9873 echo "$ac_t""yes" 1>&6
9874 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9875 cat >> confdefs.h <<EOF
9876 #define $ac_tr_func 1
9880 echo "$ac_t""no" 1>&6
9885 if test $ac_cv_func_sched_yield = no -a \
9886 $ac_cv_func_pthread_yield = no -a \
9887 "$ac_cv_func_thr_yield" = no ; then
9888 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
9891 for ac_func in pthread_kill
9893 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9894 echo "configure:9895: checking for $ac_func" >&5
9895 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9896 echo $ac_n "(cached) $ac_c" 1>&6
9898 cat > conftest.$ac_ext <<EOF
9899 #line 9900 "configure"
9900 #include "confdefs.h"
9901 /* System header to define __stub macros and hopefully few prototypes,
9902 which can conflict with char $ac_func(); below. */
9904 /* Override any gcc2 internal prototype to avoid an error. */
9905 /* We use char because int might match the return type of a gcc2
9906 builtin and then its argument prototype would still apply. */
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9923 if { (eval echo configure:9924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9925 eval "ac_cv_func_$ac_func=yes"
9927 echo "configure: failed program was:" >&5
9928 cat conftest.$ac_ext >&5
9930 eval "ac_cv_func_$ac_func=no"
9935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9938 cat >> confdefs.h <<EOF
9939 #define $ac_tr_func 1
9943 echo "$ac_t""no" 1>&6
9948 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
9949 echo "configure:9950: checking for pthread_detach with <pthread.h>" >&5
9950 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9958 #include <pthread.h>
9960 #define NULL (void*)0
9964 pthread_detach(NULL);
9967 if { (eval echo configure:9968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9969 ol_cv_func_pthread_detach=yes
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9974 ol_cv_func_pthread_detach=no
9980 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
9982 if test $ol_cv_func_pthread_detach = no ; then
9983 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
9986 cat >> confdefs.h <<\EOF
9987 #define HAVE_PTHREAD_DETACH 1
9992 pthread_setconcurrency \
9993 pthread_getconcurrency \
9994 thr_setconcurrency \
9995 thr_getconcurrency \
9998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9999 echo "configure:10000: checking for $ac_func" >&5
10000 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10001 echo $ac_n "(cached) $ac_c" 1>&6
10003 cat > conftest.$ac_ext <<EOF
10004 #line 10005 "configure"
10005 #include "confdefs.h"
10006 /* System header to define __stub macros and hopefully few prototypes,
10007 which can conflict with char $ac_func(); below. */
10008 #include <assert.h>
10009 /* Override any gcc2 internal prototype to avoid an error. */
10010 /* We use char because int might match the return type of a gcc2
10011 builtin and then its argument prototype would still apply. */
10017 /* The GNU C library defines this for functions which it implements
10018 to always fail with ENOSYS. Some functions are actually named
10019 something starting with __ and the normal name is an alias. */
10020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10028 if { (eval echo configure:10029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10030 eval "ac_cv_func_$ac_func=yes"
10032 echo "configure: failed program was:" >&5
10033 cat conftest.$ac_ext >&5
10035 eval "ac_cv_func_$ac_func=no"
10040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10041 echo "$ac_t""yes" 1>&6
10042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10043 cat >> confdefs.h <<EOF
10044 #define $ac_tr_func 1
10048 echo "$ac_t""no" 1>&6
10054 echo $ac_n "checking for pthread_kill_other_threads_np""... $ac_c" 1>&6
10055 echo "configure:10056: checking for pthread_kill_other_threads_np" >&5
10056 if eval "test \"\${ac_cv_func_pthread_kill_other_threads_np+set}\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10059 cat > conftest.$ac_ext <<EOF
10060 #line 10061 "configure"
10061 #include "confdefs.h"
10062 /* System header to define __stub macros and hopefully few prototypes,
10063 which can conflict with char pthread_kill_other_threads_np(); below. */
10064 #include <assert.h>
10065 /* Override any gcc2 internal prototype to avoid an error. */
10066 /* We use char because int might match the return type of a gcc2
10067 builtin and then its argument prototype would still apply. */
10068 char pthread_kill_other_threads_np();
10073 /* The GNU C library defines this for functions which it implements
10074 to always fail with ENOSYS. Some functions are actually named
10075 something starting with __ and the normal name is an alias. */
10076 #if defined (__stub_pthread_kill_other_threads_np) || defined (__stub___pthread_kill_other_threads_np)
10079 f = pthread_kill_other_threads_np;
10084 if { (eval echo configure:10085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10086 eval "ac_cv_func_pthread_kill_other_threads_np=yes"
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10091 eval "ac_cv_func_pthread_kill_other_threads_np=no"
10096 if eval "test \"`echo '$ac_cv_func_'pthread_kill_other_threads_np`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10100 echo "$ac_t""no" 1>&6
10103 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
10104 echo "configure:10105: checking for LinuxThreads implementation" >&5
10105 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10108 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
10111 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
10116 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
10117 echo "configure:10118: checking for LinuxThreads consistency" >&5
10118 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
10119 echo $ac_n "(cached) $ac_c" 1>&6
10122 if test $ol_cv_header_linux_threads = yes -a \
10123 $ol_cv_sys_linux_threads = yes; then
10124 ol_cv_linux_threads=yes
10125 elif test $ol_cv_header_linux_threads = no -a \
10126 $ol_cv_sys_linux_threads = no; then
10127 ol_cv_linux_threads=no
10129 ol_cv_linux_threads=error
10134 echo "$ac_t""$ol_cv_linux_threads" 1>&6
10137 if test $ol_cv_linux_threads = error; then
10138 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
10141 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
10142 echo "configure:10143: checking if pthread_create() works" >&5
10143 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
10144 echo $ac_n "(cached) $ac_c" 1>&6
10147 if test "$cross_compiling" = yes; then
10148 ol_cv_pthread_create_works=yes
10150 cat > conftest.$ac_ext <<EOF
10151 #line 10152 "configure"
10152 #include "confdefs.h"
10153 /* pthread test headers */
10154 #include <pthread.h>
10156 #define NULL (void*)0
10159 static void *task(p)
10162 return (void *) (p == NULL);
10166 int main(argc, argv)
10171 /* pthread test function */
10175 /* make sure pthread_create() isn't just a stub */
10176 #if HAVE_PTHREADS_D4
10177 status = pthread_create(&t, pthread_attr_default, task, NULL);
10179 status = pthread_create(&t, NULL, task, NULL);
10182 if( status ) exit( status );
10184 /* make sure pthread_detach() isn't just a stub */
10185 #if HAVE_PTHREADS_D4
10186 status = pthread_detach( &t );
10188 status = pthread_detach( t );
10191 #ifdef HAVE_LINUX_THREADS
10192 pthread_kill_other_threads_np();
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10202 ol_cv_pthread_create_works=yes
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10207 ol_cv_pthread_create_works=no
10214 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
10216 if test $ol_cv_pthread_create_works = no ; then
10217 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
10220 if test $ol_with_yielding_select = auto ; then
10221 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
10222 echo "configure:10223: checking if select yields when using pthreads" >&5
10223 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10227 if test "$cross_compiling" = yes; then
10228 ol_cv_pthread_select_yields=cross
10230 cat > conftest.$ac_ext <<EOF
10231 #line 10232 "configure"
10232 #include "confdefs.h"
10234 #include <sys/types.h>
10235 #include <sys/time.h>
10236 #include <unistd.h>
10237 #include <pthread.h>
10239 #define NULL (void*) 0
10242 static int fildes[2];
10244 static void *task(p)
10256 FD_SET(fildes[0], &rfds);
10258 /* we're not interested in any fds */
10259 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
10266 exit(0); /* if we exit here, the select blocked the whole process */
10269 int main(argc, argv)
10275 /* create a pipe to select */
10276 if(pipe(&fildes[0])) {
10281 #ifdef HAVE_PTHREAD_SETCONCURRENCY
10282 (void) pthread_setconcurrency(2);
10284 #ifdef HAVE_THR_SETCONCURRENCY
10285 /* Set Solaris LWP concurrency to 2 */
10286 thr_setconcurrency(2);
10290 #if HAVE_PTHREADS_D4
10291 pthread_create(&t, pthread_attr_default, task, NULL);
10293 pthread_create(&t, NULL, task, NULL);
10296 #if HAVE_SCHED_YIELD
10297 sched_yield(); /* make sure task runs first */
10299 #ifdef HAVE_PTHREAD_YIELD
10300 pthread_yield(); /* make sure task runs first */
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10309 ol_cv_pthread_select_yields=no
10311 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10314 ol_cv_pthread_select_yields=yes
10321 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
10323 if test $ol_cv_pthread_select_yields = cross ; then
10324 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
10327 if test $ol_cv_pthread_select_yields = yes ; then
10328 ol_with_yielding_select=yes
10332 CPPFLAGS="$save_CPPFLAGS"
10335 { echo "configure: error: could not link with POSIX Threads" 1>&2; exit 1; }
10339 if test $ol_with_threads = posix ; then
10340 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
10344 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10345 -o $ol_with_threads = mach ; then
10347 for ac_hdr in mach/cthreads.h
10349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10351 echo "configure:10352: checking for $ac_hdr" >&5
10352 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10353 echo $ac_n "(cached) $ac_c" 1>&6
10355 cat > conftest.$ac_ext <<EOF
10356 #line 10357 "configure"
10357 #include "confdefs.h"
10360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10361 { (eval echo configure:10362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10363 if test -z "$ac_err"; then
10365 eval "ac_cv_header_$ac_safe=yes"
10368 echo "configure: failed program was:" >&5
10369 cat conftest.$ac_ext >&5
10371 eval "ac_cv_header_$ac_safe=no"
10375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10376 echo "$ac_t""yes" 1>&6
10377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10378 cat >> confdefs.h <<EOF
10379 #define $ac_tr_hdr 1
10383 echo "$ac_t""no" 1>&6
10387 if test $ac_cv_header_mach_cthreads_h = yes ; then
10388 ol_with_threads=found
10390 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
10391 echo "configure:10392: checking for cthread_fork" >&5
10392 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
10393 echo $ac_n "(cached) $ac_c" 1>&6
10395 cat > conftest.$ac_ext <<EOF
10396 #line 10397 "configure"
10397 #include "confdefs.h"
10398 /* System header to define __stub macros and hopefully few prototypes,
10399 which can conflict with char cthread_fork(); below. */
10400 #include <assert.h>
10401 /* Override any gcc2 internal prototype to avoid an error. */
10402 /* We use char because int might match the return type of a gcc2
10403 builtin and then its argument prototype would still apply. */
10404 char cthread_fork();
10409 /* The GNU C library defines this for functions which it implements
10410 to always fail with ENOSYS. Some functions are actually named
10411 something starting with __ and the normal name is an alias. */
10412 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10422 eval "ac_cv_func_cthread_fork=yes"
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10427 eval "ac_cv_func_cthread_fork=no"
10432 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
10433 echo "$ac_t""yes" 1>&6
10434 ol_link_threads=yes
10436 echo "$ac_t""no" 1>&6
10440 if test $ol_link_threads = no ; then
10441 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
10442 echo "configure:10443: checking for cthread_fork with -all_load" >&5
10443 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
10444 echo $ac_n "(cached) $ac_c" 1>&6
10448 LIBS="-all_load $LIBS"
10449 cat > conftest.$ac_ext <<EOF
10450 #line 10451 "configure"
10451 #include "confdefs.h"
10452 #include <mach/cthreads.h>
10455 cthread_fork((void *)0, (void *)0);
10459 if { (eval echo configure:10460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10461 ol_cv_cthread_all_load=yes
10463 echo "configure: failed program was:" >&5
10464 cat conftest.$ac_ext >&5
10466 ol_cv_cthread_all_load=no
10473 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
10475 if test $ol_cv_cthread_all_load = yes ; then
10476 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
10477 ol_link_threads=mach
10481 if test $ol_link_threads != no ; then
10482 : check for cthread specific functionality here
10483 cat >> confdefs.h <<\EOF
10484 #define HAVE_MACH_CTHREADS 1
10488 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
10492 if test $ol_with_threads = mach ; then
10493 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
10497 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10498 -o $ol_with_threads = pth ; then
10500 for ac_hdr in pth.h
10502 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10503 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10504 echo "configure:10505: checking for $ac_hdr" >&5
10505 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10506 echo $ac_n "(cached) $ac_c" 1>&6
10508 cat > conftest.$ac_ext <<EOF
10509 #line 10510 "configure"
10510 #include "confdefs.h"
10513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10514 { (eval echo configure:10515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10515 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10516 if test -z "$ac_err"; then
10518 eval "ac_cv_header_$ac_safe=yes"
10521 echo "configure: failed program was:" >&5
10522 cat conftest.$ac_ext >&5
10524 eval "ac_cv_header_$ac_safe=no"
10528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10529 echo "$ac_t""yes" 1>&6
10530 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10531 cat >> confdefs.h <<EOF
10532 #define $ac_tr_hdr 1
10536 echo "$ac_t""no" 1>&6
10541 if test $ac_cv_header_pth_h = yes ; then
10542 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
10543 echo "configure:10544: checking for pth_version in -lpth" >&5
10544 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
10545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10546 echo $ac_n "(cached) $ac_c" 1>&6
10548 ac_save_LIBS="$LIBS"
10550 cat > conftest.$ac_ext <<EOF
10551 #line 10552 "configure"
10552 #include "confdefs.h"
10553 /* Override any gcc2 internal prototype to avoid an error. */
10554 /* We use char because int might match the return type of a gcc2
10555 builtin and then its argument prototype would still apply. */
10556 char pth_version();
10562 if { (eval echo configure:10563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10564 eval "ac_cv_lib_$ac_lib_var=yes"
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10569 eval "ac_cv_lib_$ac_lib_var=no"
10572 LIBS="$ac_save_LIBS"
10575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10576 echo "$ac_t""yes" 1>&6
10579 echo "$ac_t""no" 1>&6
10584 if test $have_pth = yes ; then
10585 cat >> confdefs.h <<\EOF
10586 #define HAVE_GNU_PTH 1
10589 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
10590 ol_link_threads=pth
10592 if test $ol_with_yielding_select = auto ; then
10593 ol_with_yielding_select=yes
10599 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10600 -o $ol_with_threads = lwp ; then
10602 for ac_hdr in thread.h synch.h
10604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10606 echo "configure:10607: checking for $ac_hdr" >&5
10607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10608 echo $ac_n "(cached) $ac_c" 1>&6
10610 cat > conftest.$ac_ext <<EOF
10611 #line 10612 "configure"
10612 #include "confdefs.h"
10615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10616 { (eval echo configure:10617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10618 if test -z "$ac_err"; then
10620 eval "ac_cv_header_$ac_safe=yes"
10623 echo "configure: failed program was:" >&5
10624 cat conftest.$ac_ext >&5
10626 eval "ac_cv_header_$ac_safe=no"
10630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10633 cat >> confdefs.h <<EOF
10634 #define $ac_tr_hdr 1
10638 echo "$ac_t""no" 1>&6
10642 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
10643 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
10644 echo "configure:10645: checking for thr_create in -lthread" >&5
10645 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
10646 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10647 echo $ac_n "(cached) $ac_c" 1>&6
10649 ac_save_LIBS="$LIBS"
10650 LIBS="-lthread $LIBS"
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10654 /* Override any gcc2 internal prototype to avoid an error. */
10655 /* We use char because int might match the return type of a gcc2
10656 builtin and then its argument prototype would still apply. */
10663 if { (eval echo configure:10664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10665 eval "ac_cv_lib_$ac_lib_var=yes"
10667 echo "configure: failed program was:" >&5
10668 cat conftest.$ac_ext >&5
10670 eval "ac_cv_lib_$ac_lib_var=no"
10673 LIBS="$ac_save_LIBS"
10676 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10677 echo "$ac_t""yes" 1>&6
10680 echo "$ac_t""no" 1>&6
10685 if test $have_thr = yes ; then
10686 cat >> confdefs.h <<\EOF
10690 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
10691 ol_link_threads=thr
10693 if test $ol_with_yielding_select = auto ; then
10694 ol_with_yielding_select=yes
10698 thr_setconcurrency \
10699 thr_getconcurrency \
10702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10703 echo "configure:10704: checking for $ac_func" >&5
10704 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10705 echo $ac_n "(cached) $ac_c" 1>&6
10707 cat > conftest.$ac_ext <<EOF
10708 #line 10709 "configure"
10709 #include "confdefs.h"
10710 /* System header to define __stub macros and hopefully few prototypes,
10711 which can conflict with char $ac_func(); below. */
10712 #include <assert.h>
10713 /* Override any gcc2 internal prototype to avoid an error. */
10714 /* We use char because int might match the return type of a gcc2
10715 builtin and then its argument prototype would still apply. */
10721 /* The GNU C library defines this for functions which it implements
10722 to always fail with ENOSYS. Some functions are actually named
10723 something starting with __ and the normal name is an alias. */
10724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10732 if { (eval echo configure:10733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10734 eval "ac_cv_func_$ac_func=yes"
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10739 eval "ac_cv_func_$ac_func=no"
10744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10745 echo "$ac_t""yes" 1>&6
10746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10747 cat >> confdefs.h <<EOF
10748 #define $ac_tr_func 1
10752 echo "$ac_t""no" 1>&6
10759 for ac_hdr in lwp/lwp.h
10761 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10762 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10763 echo "configure:10764: checking for $ac_hdr" >&5
10764 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10765 echo $ac_n "(cached) $ac_c" 1>&6
10767 cat > conftest.$ac_ext <<EOF
10768 #line 10769 "configure"
10769 #include "confdefs.h"
10772 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10773 { (eval echo configure:10774: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10774 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10775 if test -z "$ac_err"; then
10777 eval "ac_cv_header_$ac_safe=yes"
10780 echo "configure: failed program was:" >&5
10781 cat conftest.$ac_ext >&5
10783 eval "ac_cv_header_$ac_safe=no"
10787 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10788 echo "$ac_t""yes" 1>&6
10789 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10790 cat >> confdefs.h <<EOF
10791 #define $ac_tr_hdr 1
10795 echo "$ac_t""no" 1>&6
10799 if test $ac_cv_header_lwp_lwp_h = yes ; then
10800 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
10801 echo "configure:10802: checking for lwp_create in -llwp" >&5
10802 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
10803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10804 echo $ac_n "(cached) $ac_c" 1>&6
10806 ac_save_LIBS="$LIBS"
10808 cat > conftest.$ac_ext <<EOF
10809 #line 10810 "configure"
10810 #include "confdefs.h"
10811 /* Override any gcc2 internal prototype to avoid an error. */
10812 /* We use char because int might match the return type of a gcc2
10813 builtin and then its argument prototype would still apply. */
10820 if { (eval echo configure:10821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10822 eval "ac_cv_lib_$ac_lib_var=yes"
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10827 eval "ac_cv_lib_$ac_lib_var=no"
10830 LIBS="$ac_save_LIBS"
10833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10834 echo "$ac_t""yes" 1>&6
10837 echo "$ac_t""no" 1>&6
10842 if test $have_lwp = yes ; then
10843 cat >> confdefs.h <<\EOF
10847 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
10848 ol_link_threads=lwp
10850 if test $ol_with_yielding_select = auto ; then
10851 ol_with_yielding_select=no
10857 if test $ol_with_yielding_select = yes ; then
10858 cat >> confdefs.h <<\EOF
10859 #define HAVE_YIELDING_SELECT 1
10864 if test $ol_with_threads = manual ; then
10865 ol_link_threads=yes
10867 echo "configure: warning: thread defines and link options must be set manually" 1>&2
10869 for ac_hdr in pthread.h sched.h
10871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10873 echo "configure:10874: checking for $ac_hdr" >&5
10874 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10875 echo $ac_n "(cached) $ac_c" 1>&6
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10883 { (eval echo configure:10884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10885 if test -z "$ac_err"; then
10887 eval "ac_cv_header_$ac_safe=yes"
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10893 eval "ac_cv_header_$ac_safe=no"
10897 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10898 echo "$ac_t""yes" 1>&6
10899 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10900 cat >> confdefs.h <<EOF
10901 #define $ac_tr_hdr 1
10905 echo "$ac_t""no" 1>&6
10909 for ac_func in sched_yield pthread_yield
10911 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10912 echo "configure:10913: checking for $ac_func" >&5
10913 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10916 cat > conftest.$ac_ext <<EOF
10917 #line 10918 "configure"
10918 #include "confdefs.h"
10919 /* System header to define __stub macros and hopefully few prototypes,
10920 which can conflict with char $ac_func(); below. */
10921 #include <assert.h>
10922 /* Override any gcc2 internal prototype to avoid an error. */
10923 /* We use char because int might match the return type of a gcc2
10924 builtin and then its argument prototype would still apply. */
10930 /* The GNU C library defines this for functions which it implements
10931 to always fail with ENOSYS. Some functions are actually named
10932 something starting with __ and the normal name is an alias. */
10933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10941 if { (eval echo configure:10942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10943 eval "ac_cv_func_$ac_func=yes"
10945 echo "configure: failed program was:" >&5
10946 cat conftest.$ac_ext >&5
10948 eval "ac_cv_func_$ac_func=no"
10953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10954 echo "$ac_t""yes" 1>&6
10955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10956 cat >> confdefs.h <<EOF
10957 #define $ac_tr_func 1
10961 echo "$ac_t""no" 1>&6
10966 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
10967 echo "configure:10968: checking for LinuxThreads pthread.h" >&5
10968 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
10969 echo $ac_n "(cached) $ac_c" 1>&6
10971 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure"
10973 #include "confdefs.h"
10974 #include <pthread.h>
10976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10977 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
10979 ol_cv_header_linux_threads=yes
10982 ol_cv_header_linux_threads=no
10989 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
10990 if test $ol_cv_header_linux_threads = yes; then
10991 cat >> confdefs.h <<\EOF
10992 #define HAVE_LINUX_THREADS 1
10998 for ac_hdr in mach/cthreads.h
11000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11002 echo "configure:11003: checking for $ac_hdr" >&5
11003 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11004 echo $ac_n "(cached) $ac_c" 1>&6
11006 cat > conftest.$ac_ext <<EOF
11007 #line 11008 "configure"
11008 #include "confdefs.h"
11011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11012 { (eval echo configure:11013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11014 if test -z "$ac_err"; then
11016 eval "ac_cv_header_$ac_safe=yes"
11019 echo "configure: failed program was:" >&5
11020 cat conftest.$ac_ext >&5
11022 eval "ac_cv_header_$ac_safe=no"
11026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11029 cat >> confdefs.h <<EOF
11030 #define $ac_tr_hdr 1
11034 echo "$ac_t""no" 1>&6
11038 for ac_hdr in lwp/lwp.h
11040 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11041 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11042 echo "configure:11043: checking for $ac_hdr" >&5
11043 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11044 echo $ac_n "(cached) $ac_c" 1>&6
11046 cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11052 { (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11054 if test -z "$ac_err"; then
11056 eval "ac_cv_header_$ac_safe=yes"
11059 echo "configure: failed program was:" >&5
11060 cat conftest.$ac_ext >&5
11062 eval "ac_cv_header_$ac_safe=no"
11066 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11067 echo "$ac_t""yes" 1>&6
11068 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11069 cat >> confdefs.h <<EOF
11070 #define $ac_tr_hdr 1
11074 echo "$ac_t""no" 1>&6
11078 for ac_hdr in thread.h synch.h
11080 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11081 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11082 echo "configure:11083: checking for $ac_hdr" >&5
11083 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11084 echo $ac_n "(cached) $ac_c" 1>&6
11086 cat > conftest.$ac_ext <<EOF
11087 #line 11088 "configure"
11088 #include "confdefs.h"
11091 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11092 { (eval echo configure:11093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11093 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11094 if test -z "$ac_err"; then
11096 eval "ac_cv_header_$ac_safe=yes"
11099 echo "configure: failed program was:" >&5
11100 cat conftest.$ac_ext >&5
11102 eval "ac_cv_header_$ac_safe=no"
11106 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11107 echo "$ac_t""yes" 1>&6
11108 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11109 cat >> confdefs.h <<EOF
11110 #define $ac_tr_hdr 1
11114 echo "$ac_t""no" 1>&6
11120 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
11121 cat >> confdefs.h <<\EOF
11122 #define REENTRANT 1
11125 cat >> confdefs.h <<\EOF
11126 #define _REENTRANT 1
11129 cat >> confdefs.h <<\EOF
11130 #define THREAD_SAFE 1
11133 cat >> confdefs.h <<\EOF
11134 #define _THREAD_SAFE 1
11137 cat >> confdefs.h <<\EOF
11138 #define THREADSAFE 1
11141 cat >> confdefs.h <<\EOF
11142 #define _THREADSAFE 1
11145 cat >> confdefs.h <<\EOF
11146 #define _SGI_MP_SOURCE 1
11150 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
11151 echo "configure:11152: checking for thread specific errno" >&5
11152 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
11153 echo $ac_n "(cached) $ac_c" 1>&6
11156 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11166 ol_cv_errno_thread_specific=yes
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 ol_cv_errno_thread_specific=no
11177 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
11179 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
11180 echo "configure:11181: checking for thread specific h_errno" >&5
11181 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
11182 echo $ac_n "(cached) $ac_c" 1>&6
11185 cat > conftest.$ac_ext <<EOF
11186 #line 11187 "configure"
11187 #include "confdefs.h"
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11195 ol_cv_h_errno_thread_specific=yes
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 ol_cv_h_errno_thread_specific=no
11206 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
11208 if test $ol_cv_errno_thread_specific != yes \
11209 -o $ol_cv_h_errno_thread_specific != yes ; then
11210 LIBS="$LTHREAD_LIBS $LIBS"
11216 if test $ol_link_threads = no ; then
11217 if test $ol_with_threads = yes ; then
11218 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
11221 if test $ol_with_threads = auto ; then
11222 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
11226 cat >> confdefs.h <<\EOF
11227 #define NO_THREADS 1
11233 if test $ol_link_threads != no ; then
11234 cat >> confdefs.h <<\EOF
11235 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
11242 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db2 ; then
11243 echo $ac_n "checking for DB2 library""... $ac_c" 1>&6
11244 echo "configure:11245: checking for DB2 library" >&5
11245 if eval "test \"\${ol_cv_lib_db2+set}\" = set"; then
11246 echo $ac_n "(cached) $ac_c" 1>&6
11249 echo $ac_n "checking for db_appexit in -ldb""... $ac_c" 1>&6
11250 echo "configure:11251: checking for db_appexit in -ldb" >&5
11251 ac_lib_var=`echo db'_'db_appexit | sed 'y%./+-:%__p__%'`
11252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11253 echo $ac_n "(cached) $ac_c" 1>&6
11255 ac_save_LIBS="$LIBS"
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 /* Override any gcc2 internal prototype to avoid an error. */
11261 /* We use char because int might match the return type of a gcc2
11262 builtin and then its argument prototype would still apply. */
11269 if { (eval echo configure:11270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11271 eval "ac_cv_lib_$ac_lib_var=yes"
11273 echo "configure: failed program was:" >&5
11274 cat conftest.$ac_ext >&5
11276 eval "ac_cv_lib_$ac_lib_var=no"
11279 LIBS="$ac_save_LIBS"
11282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11286 echo "$ac_t""no" 1>&6
11294 echo "$ac_t""$ol_cv_lib_db2" 1>&6
11298 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11299 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11300 echo "configure:11301: checking for $ac_hdr" >&5
11301 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11304 cat > conftest.$ac_ext <<EOF
11305 #line 11306 "configure"
11306 #include "confdefs.h"
11309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11310 { (eval echo configure:11311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11312 if test -z "$ac_err"; then
11314 eval "ac_cv_header_$ac_safe=yes"
11317 echo "configure: failed program was:" >&5
11318 cat conftest.$ac_ext >&5
11320 eval "ac_cv_header_$ac_safe=no"
11324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11325 echo "$ac_t""yes" 1>&6
11326 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11327 cat >> confdefs.h <<EOF
11328 #define $ac_tr_hdr 1
11332 echo "$ac_t""no" 1>&6
11336 if test $ac_cv_header_db_h = yes ; then
11337 echo $ac_n "checking if db.h is DB2""... $ac_c" 1>&6
11338 echo "configure:11339: checking if db.h is DB2" >&5
11339 if eval "test \"\${ol_cv_header_db2+set}\" = set"; then
11340 echo $ac_n "(cached) $ac_c" 1>&6
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11348 /* this check could be improved */
11349 # ifdef DB_VERSION_MAJOR
11350 # if DB_VERSION_MAJOR == 2
11356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11357 egrep "__db_version_2" >/dev/null 2>&1; then
11359 ol_cv_header_db2=yes
11362 ol_cv_header_db2=no
11368 echo "$ac_t""$ol_cv_header_db2" 1>&6
11370 ol_cv_header_db2=no
11375 echo $ac_n "checking for Berkeley DB2""... $ac_c" 1>&6
11376 echo "configure:11377: checking for Berkeley DB2" >&5
11377 if eval "test \"\${ol_cv_berkeley_db2+set}\" = set"; then
11378 echo $ac_n "(cached) $ac_c" 1>&6
11381 if test "$ol_cv_lib_db2" = no -o "$ol_cv_header_db2" = no ; then
11382 ol_cv_berkeley_db2=no
11384 ol_cv_berkeley_db2=yes
11389 echo "$ac_t""$ol_cv_berkeley_db2" 1>&6
11390 if test $ol_cv_berkeley_db2 = yes ; then
11391 cat >> confdefs.h <<\EOF
11392 #define HAVE_BERKELEY_DB2 1
11398 if test $ol_cv_berkeley_db2 = yes ; then
11400 ol_with_ldbm_api=db2
11402 if test $ol_with_ldbm_type = hash ; then
11403 cat >> confdefs.h <<\EOF
11404 #define LDBM_USE_DBHASH 1
11408 cat >> confdefs.h <<\EOF
11409 #define LDBM_USE_DBBTREE 1
11414 echo $ac_n "checking for DB_THREAD support""... $ac_c" 1>&6
11415 echo "configure:11416: checking for DB_THREAD support" >&5
11416 if eval "test \"\${ol_cv_berkeley_db2_db_thread+set}\" = set"; then
11417 echo $ac_n "(cached) $ac_c" 1>&6
11421 if test $ol_cv_lib_db2 != yes ; then
11422 LIBS="$ol_cv_lib_db2"
11425 if test "$cross_compiling" = yes; then
11426 ol_cv_berkeley_db2_db_thread=cross
11428 cat > conftest.$ac_ext <<EOF
11429 #line 11430 "configure"
11430 #include "confdefs.h"
11434 #define NULL ((void *)0)
11440 u_int32_t flags = DB_CREATE | DB_THREAD;
11442 memset( &env, '\0', sizeof(env) );
11444 rc = db_appinit( NULL, NULL, &env, flags );
11447 db_appexit( &env );
11453 if { (eval echo configure:11454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11455 ol_cv_berkeley_db2_db_thread=yes
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11460 ol_cv_berkeley_db2_db_thread=no
11468 if test $ol_cv_berkeley_db2_db_thread != no ; then
11469 cat >> confdefs.h <<\EOF
11470 #define HAVE_BERKELEY_DB2_DB_THREAD 1
11477 echo "$ac_t""$ol_cv_berkeley_db2_db_thread" 1>&6
11479 if test $ol_cv_lib_db2 != yes ; then
11480 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db2"
11486 if test $ol_link_ldbm = db2 -a $ol_enable_bdb2 != no ; then
11487 if test $ol_cv_berkeley_db2_db_thread != no ; then
11490 echo "configure: warning: Installed BerkeleyDB does not provide DB_THREAD support." 1>&2
11494 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = db ; then
11495 echo $ac_n "checking for Berkeley DB library""... $ac_c" 1>&6
11496 echo "configure:11497: checking for Berkeley DB library" >&5
11497 if eval "test \"\${ol_cv_lib_db+set}\" = set"; then
11498 echo $ac_n "(cached) $ac_c" 1>&6
11501 for ac_hdr in db1/db.h
11503 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11504 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11505 echo "configure:11506: checking for $ac_hdr" >&5
11506 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11507 echo $ac_n "(cached) $ac_c" 1>&6
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11514 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11515 { (eval echo configure:11516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11516 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11517 if test -z "$ac_err"; then
11519 eval "ac_cv_header_$ac_safe=yes"
11522 echo "configure: failed program was:" >&5
11523 cat conftest.$ac_ext >&5
11525 eval "ac_cv_header_$ac_safe=no"
11529 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11530 echo "$ac_t""yes" 1>&6
11531 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11532 cat >> confdefs.h <<EOF
11533 #define $ac_tr_hdr 1
11537 echo "$ac_t""no" 1>&6
11542 echo $ac_n "checking for dbopen""... $ac_c" 1>&6
11543 echo "configure:11544: checking for dbopen" >&5
11544 if eval "test \"\${ac_cv_func_dbopen+set}\" = set"; then
11545 echo $ac_n "(cached) $ac_c" 1>&6
11547 cat > conftest.$ac_ext <<EOF
11548 #line 11549 "configure"
11549 #include "confdefs.h"
11550 /* System header to define __stub macros and hopefully few prototypes,
11551 which can conflict with char dbopen(); below. */
11552 #include <assert.h>
11553 /* Override any gcc2 internal prototype to avoid an error. */
11554 /* We use char because int might match the return type of a gcc2
11555 builtin and then its argument prototype would still apply. */
11561 /* The GNU C library defines this for functions which it implements
11562 to always fail with ENOSYS. Some functions are actually named
11563 something starting with __ and the normal name is an alias. */
11564 #if defined (__stub_dbopen) || defined (__stub___dbopen)
11572 if { (eval echo configure:11573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11574 eval "ac_cv_func_dbopen=yes"
11576 echo "configure: failed program was:" >&5
11577 cat conftest.$ac_ext >&5
11579 eval "ac_cv_func_dbopen=no"
11584 if eval "test \"`echo '$ac_cv_func_'dbopen`\" = yes"; then
11585 echo "$ac_t""yes" 1>&6
11588 echo "$ac_t""no" 1>&6
11590 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
11591 echo "configure:11592: checking for dbopen in -ldb1" >&5
11592 ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-:%__p__%'`
11593 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11594 echo $ac_n "(cached) $ac_c" 1>&6
11596 ac_save_LIBS="$LIBS"
11598 cat > conftest.$ac_ext <<EOF
11599 #line 11600 "configure"
11600 #include "confdefs.h"
11601 /* Override any gcc2 internal prototype to avoid an error. */
11602 /* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11610 if { (eval echo configure:11611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11612 eval "ac_cv_lib_$ac_lib_var=yes"
11614 echo "configure: failed program was:" >&5
11615 cat conftest.$ac_ext >&5
11617 eval "ac_cv_lib_$ac_lib_var=no"
11620 LIBS="$ac_save_LIBS"
11623 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11624 echo "$ac_t""yes" 1>&6
11627 echo "$ac_t""no" 1>&6
11629 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
11630 echo "configure:11631: checking for dbopen in -ldb" >&5
11631 ac_lib_var=`echo db'_'dbopen | sed 'y%./+-:%__p__%'`
11632 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11633 echo $ac_n "(cached) $ac_c" 1>&6
11635 ac_save_LIBS="$LIBS"
11637 cat > conftest.$ac_ext <<EOF
11638 #line 11639 "configure"
11639 #include "confdefs.h"
11640 /* Override any gcc2 internal prototype to avoid an error. */
11641 /* We use char because int might match the return type of a gcc2
11642 builtin and then its argument prototype would still apply. */
11649 if { (eval echo configure:11650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11651 eval "ac_cv_lib_$ac_lib_var=yes"
11653 echo "configure: failed program was:" >&5
11654 cat conftest.$ac_ext >&5
11656 eval "ac_cv_lib_$ac_lib_var=no"
11659 LIBS="$ac_save_LIBS"
11662 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11663 echo "$ac_t""yes" 1>&6
11666 echo "$ac_t""no" 1>&6
11680 echo "$ac_t""$ol_cv_lib_db" 1>&6
11683 for ac_hdr in db_185.h
11685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11687 echo "configure:11688: checking for $ac_hdr" >&5
11688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11689 echo $ac_n "(cached) $ac_c" 1>&6
11691 cat > conftest.$ac_ext <<EOF
11692 #line 11693 "configure"
11693 #include "confdefs.h"
11696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11697 { (eval echo configure:11698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11699 if test -z "$ac_err"; then
11701 eval "ac_cv_header_$ac_safe=yes"
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11707 eval "ac_cv_header_$ac_safe=no"
11711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11712 echo "$ac_t""yes" 1>&6
11713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11714 cat >> confdefs.h <<EOF
11715 #define $ac_tr_hdr 1
11719 echo "$ac_t""no" 1>&6
11723 if test "$ol_cv_header_db2" = yes ; then
11725 ol_cv_header_db=$ac_cv_header_db_185_h
11727 ol_cv_header_db=$ac_cv_header_db_h
11732 echo $ac_n "checking for Berkeley DB""... $ac_c" 1>&6
11733 echo "configure:11734: checking for Berkeley DB" >&5
11734 if eval "test \"\${ol_cv_berkeley_db+set}\" = set"; then
11735 echo $ac_n "(cached) $ac_c" 1>&6
11738 if test "$ol_cv_lib_db" = no -o "$ol_cv_header_db" = no ; then
11739 ol_cv_berkeley_db=no
11741 ol_cv_berkeley_db=yes
11746 echo "$ac_t""$ol_cv_berkeley_db" 1>&6
11747 if test $ol_cv_berkeley_db = yes ; then
11748 cat >> confdefs.h <<\EOF
11749 #define HAVE_BERKELEY_DB 1
11755 if test $ol_cv_berkeley_db = yes ; then
11757 ol_with_ldbm_api=db
11759 if test $ol_with_ldbm_type = hash ; then
11760 cat >> confdefs.h <<\EOF
11761 #define LDBM_USE_DBHASH 1
11765 cat >> confdefs.h <<\EOF
11766 #define LDBM_USE_DBBTREE 1
11771 if test $ol_cv_lib_db != yes ; then
11772 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
11777 if test $ol_with_ldbm_api = manual ; then
11780 echo "configure: warning: LDBM defines and link options must be set manually" 1>&2
11782 for ac_hdr in db.h db_185.h gdbm.h ndbm.h
11784 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11785 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11786 echo "configure:11787: checking for $ac_hdr" >&5
11787 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11788 echo $ac_n "(cached) $ac_c" 1>&6
11790 cat > conftest.$ac_ext <<EOF
11791 #line 11792 "configure"
11792 #include "confdefs.h"
11795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11796 { (eval echo configure:11797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11798 if test -z "$ac_err"; then
11800 eval "ac_cv_header_$ac_safe=yes"
11803 echo "configure: failed program was:" >&5
11804 cat conftest.$ac_ext >&5
11806 eval "ac_cv_header_$ac_safe=no"
11810 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11811 echo "$ac_t""yes" 1>&6
11812 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11813 cat >> confdefs.h <<EOF
11814 #define $ac_tr_hdr 1
11818 echo "$ac_t""no" 1>&6
11824 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
11825 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
11826 ol_with_ldbm_api=none
11829 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
11830 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
11831 echo "configure:11832: checking for MDBM library" >&5
11832 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
11833 echo $ac_n "(cached) $ac_c" 1>&6
11836 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
11837 echo "configure:11838: checking for mdbm_set_chain" >&5
11838 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11841 cat > conftest.$ac_ext <<EOF
11842 #line 11843 "configure"
11843 #include "confdefs.h"
11844 /* System header to define __stub macros and hopefully few prototypes,
11845 which can conflict with char mdbm_set_chain(); below. */
11846 #include <assert.h>
11847 /* Override any gcc2 internal prototype to avoid an error. */
11848 /* We use char because int might match the return type of a gcc2
11849 builtin and then its argument prototype would still apply. */
11850 char mdbm_set_chain();
11855 /* The GNU C library defines this for functions which it implements
11856 to always fail with ENOSYS. Some functions are actually named
11857 something starting with __ and the normal name is an alias. */
11858 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
11861 f = mdbm_set_chain;
11866 if { (eval echo configure:11867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11868 eval "ac_cv_func_mdbm_set_chain=yes"
11870 echo "configure: failed program was:" >&5
11871 cat conftest.$ac_ext >&5
11873 eval "ac_cv_func_mdbm_set_chain=no"
11878 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
11879 echo "$ac_t""yes" 1>&6
11882 echo "$ac_t""no" 1>&6
11884 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
11885 echo "configure:11886: checking for mdbm_set_chain in -lmdbm" >&5
11886 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
11887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11888 echo $ac_n "(cached) $ac_c" 1>&6
11890 ac_save_LIBS="$LIBS"
11891 LIBS="-lmdbm $LIBS"
11892 cat > conftest.$ac_ext <<EOF
11893 #line 11894 "configure"
11894 #include "confdefs.h"
11895 /* Override any gcc2 internal prototype to avoid an error. */
11896 /* We use char because int might match the return type of a gcc2
11897 builtin and then its argument prototype would still apply. */
11898 char mdbm_set_chain();
11904 if { (eval echo configure:11905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11906 eval "ac_cv_lib_$ac_lib_var=yes"
11908 echo "configure: failed program was:" >&5
11909 cat conftest.$ac_ext >&5
11911 eval "ac_cv_lib_$ac_lib_var=no"
11914 LIBS="$ac_save_LIBS"
11917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11918 echo "$ac_t""yes" 1>&6
11919 ol_cv_lib_mdbm=-lmdbm
11921 echo "$ac_t""no" 1>&6
11932 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
11935 for ac_hdr in mdbm.h
11937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11939 echo "configure:11940: checking for $ac_hdr" >&5
11940 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11941 echo $ac_n "(cached) $ac_c" 1>&6
11943 cat > conftest.$ac_ext <<EOF
11944 #line 11945 "configure"
11945 #include "confdefs.h"
11948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11949 { (eval echo configure:11950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11951 if test -z "$ac_err"; then
11953 eval "ac_cv_header_$ac_safe=yes"
11956 echo "configure: failed program was:" >&5
11957 cat conftest.$ac_ext >&5
11959 eval "ac_cv_header_$ac_safe=no"
11963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11964 echo "$ac_t""yes" 1>&6
11965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11966 cat >> confdefs.h <<EOF
11967 #define $ac_tr_hdr 1
11971 echo "$ac_t""no" 1>&6
11975 echo $ac_n "checking for db""... $ac_c" 1>&6
11976 echo "configure:11977: checking for db" >&5
11977 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11981 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
11989 echo "$ac_t""$ol_cv_mdbm" 1>&6
11990 if test $ol_cv_mdbm = yes ; then
11991 cat >> confdefs.h <<\EOF
11992 #define HAVE_MDBM 1
11998 if test $ol_cv_mdbm = yes ; then
12000 ol_with_ldbm_api=mdbm
12001 if test $ol_cv_lib_mdbm != yes ; then
12002 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
12007 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
12008 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
12009 echo "configure:12010: checking for GDBM library" >&5
12010 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
12011 echo $ac_n "(cached) $ac_c" 1>&6
12014 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
12015 echo "configure:12016: checking for gdbm_open" >&5
12016 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
12017 echo $ac_n "(cached) $ac_c" 1>&6
12019 cat > conftest.$ac_ext <<EOF
12020 #line 12021 "configure"
12021 #include "confdefs.h"
12022 /* System header to define __stub macros and hopefully few prototypes,
12023 which can conflict with char gdbm_open(); below. */
12024 #include <assert.h>
12025 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12033 /* The GNU C library defines this for functions which it implements
12034 to always fail with ENOSYS. Some functions are actually named
12035 something starting with __ and the normal name is an alias. */
12036 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
12044 if { (eval echo configure:12045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12046 eval "ac_cv_func_gdbm_open=yes"
12048 echo "configure: failed program was:" >&5
12049 cat conftest.$ac_ext >&5
12051 eval "ac_cv_func_gdbm_open=no"
12056 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
12057 echo "$ac_t""yes" 1>&6
12060 echo "$ac_t""no" 1>&6
12062 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
12063 echo "configure:12064: checking for gdbm_open in -lgdbm" >&5
12064 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
12065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12066 echo $ac_n "(cached) $ac_c" 1>&6
12068 ac_save_LIBS="$LIBS"
12069 LIBS="-lgdbm $LIBS"
12070 cat > conftest.$ac_ext <<EOF
12071 #line 12072 "configure"
12072 #include "confdefs.h"
12073 /* Override any gcc2 internal prototype to avoid an error. */
12074 /* We use char because int might match the return type of a gcc2
12075 builtin and then its argument prototype would still apply. */
12082 if { (eval echo configure:12083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12084 eval "ac_cv_lib_$ac_lib_var=yes"
12086 echo "configure: failed program was:" >&5
12087 cat conftest.$ac_ext >&5
12089 eval "ac_cv_lib_$ac_lib_var=no"
12092 LIBS="$ac_save_LIBS"
12095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12096 echo "$ac_t""yes" 1>&6
12097 ol_cv_lib_gdbm=-lgdbm
12099 echo "$ac_t""no" 1>&6
12110 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
12113 for ac_hdr in gdbm.h
12115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12117 echo "configure:12118: checking for $ac_hdr" >&5
12118 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12119 echo $ac_n "(cached) $ac_c" 1>&6
12121 cat > conftest.$ac_ext <<EOF
12122 #line 12123 "configure"
12123 #include "confdefs.h"
12126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12127 { (eval echo configure:12128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12129 if test -z "$ac_err"; then
12131 eval "ac_cv_header_$ac_safe=yes"
12134 echo "configure: failed program was:" >&5
12135 cat conftest.$ac_ext >&5
12137 eval "ac_cv_header_$ac_safe=no"
12141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12142 echo "$ac_t""yes" 1>&6
12143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12144 cat >> confdefs.h <<EOF
12145 #define $ac_tr_hdr 1
12149 echo "$ac_t""no" 1>&6
12153 echo $ac_n "checking for db""... $ac_c" 1>&6
12154 echo "configure:12155: checking for db" >&5
12155 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
12156 echo $ac_n "(cached) $ac_c" 1>&6
12159 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
12167 echo "$ac_t""$ol_cv_gdbm" 1>&6
12168 if test $ol_cv_gdbm = yes ; then
12169 cat >> confdefs.h <<\EOF
12170 #define HAVE_GDBM 1
12176 if test $ol_cv_gdbm = yes ; then
12178 ol_with_ldbm_api=gdbm
12180 if test $ol_cv_lib_gdbm != yes ; then
12181 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
12186 if test $ol_with_ldbm_api = ndbm ; then
12187 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
12188 echo "configure:12189: checking for NDBM library" >&5
12189 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
12190 echo $ac_n "(cached) $ac_c" 1>&6
12193 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
12194 echo "configure:12195: checking for dbm_open" >&5
12195 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
12196 echo $ac_n "(cached) $ac_c" 1>&6
12198 cat > conftest.$ac_ext <<EOF
12199 #line 12200 "configure"
12200 #include "confdefs.h"
12201 /* System header to define __stub macros and hopefully few prototypes,
12202 which can conflict with char dbm_open(); below. */
12203 #include <assert.h>
12204 /* Override any gcc2 internal prototype to avoid an error. */
12205 /* We use char because int might match the return type of a gcc2
12206 builtin and then its argument prototype would still apply. */
12212 /* The GNU C library defines this for functions which it implements
12213 to always fail with ENOSYS. Some functions are actually named
12214 something starting with __ and the normal name is an alias. */
12215 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
12223 if { (eval echo configure:12224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12225 eval "ac_cv_func_dbm_open=yes"
12227 echo "configure: failed program was:" >&5
12228 cat conftest.$ac_ext >&5
12230 eval "ac_cv_func_dbm_open=no"
12235 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
12236 echo "$ac_t""yes" 1>&6
12239 echo "$ac_t""no" 1>&6
12241 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
12242 echo "configure:12243: checking for dbm_open in -lndbm" >&5
12243 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12247 ac_save_LIBS="$LIBS"
12248 LIBS="-lndbm $LIBS"
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 /* Override any gcc2 internal prototype to avoid an error. */
12253 /* We use char because int might match the return type of a gcc2
12254 builtin and then its argument prototype would still apply. */
12261 if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12263 eval "ac_cv_lib_$ac_lib_var=yes"
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12268 eval "ac_cv_lib_$ac_lib_var=no"
12271 LIBS="$ac_save_LIBS"
12274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12275 echo "$ac_t""yes" 1>&6
12276 ol_cv_lib_ndbm=-lndbm
12278 echo "$ac_t""no" 1>&6
12280 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
12281 echo "configure:12282: checking for dbm_open in -ldbm" >&5
12282 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
12283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12284 echo $ac_n "(cached) $ac_c" 1>&6
12286 ac_save_LIBS="$LIBS"
12288 cat > conftest.$ac_ext <<EOF
12289 #line 12290 "configure"
12290 #include "confdefs.h"
12291 /* Override any gcc2 internal prototype to avoid an error. */
12292 /* We use char because int might match the return type of a gcc2
12293 builtin and then its argument prototype would still apply. */
12300 if { (eval echo configure:12301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12302 eval "ac_cv_lib_$ac_lib_var=yes"
12304 echo "configure: failed program was:" >&5
12305 cat conftest.$ac_ext >&5
12307 eval "ac_cv_lib_$ac_lib_var=no"
12310 LIBS="$ac_save_LIBS"
12313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12314 echo "$ac_t""yes" 1>&6
12315 ol_cv_lib_ndbm=-ldbm
12317 echo "$ac_t""no" 1>&6
12330 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
12333 for ac_hdr in ndbm.h
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 echo $ac_n "checking for db""... $ac_c" 1>&6
12374 echo "configure:12375: checking for db" >&5
12375 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
12376 echo $ac_n "(cached) $ac_c" 1>&6
12379 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
12387 echo "$ac_t""$ol_cv_ndbm" 1>&6
12388 if test $ol_cv_ndbm = yes ; then
12389 cat >> confdefs.h <<\EOF
12390 #define HAVE_NDBM 1
12396 if test $ol_cv_ndbm = yes ; then
12398 ol_with_ldbm_api=ndbm
12400 if test $ol_cv_lib_ndbm != yes ; then
12401 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
12406 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
12407 echo "configure: warning: could not find suitable LDBM backend" 1>&2
12408 if test $ol_enable_ldbm = yes ; then
12409 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
12412 echo "configure: warning: disabling LDBM" 1>&2
12416 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
12417 LINK_BINS_DYNAMIC="yes"
12419 LINK_BINS_DYNAMIC="no"
12422 if test $ol_enable_wrappers != no ; then
12423 for ac_hdr in tcpd.h
12425 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12426 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12427 echo "configure:12428: checking for $ac_hdr" >&5
12428 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12429 echo $ac_n "(cached) $ac_c" 1>&6
12431 cat > conftest.$ac_ext <<EOF
12432 #line 12433 "configure"
12433 #include "confdefs.h"
12436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12437 { (eval echo configure:12438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12439 if test -z "$ac_err"; then
12441 eval "ac_cv_header_$ac_safe=yes"
12444 echo "configure: failed program was:" >&5
12445 cat conftest.$ac_ext >&5
12447 eval "ac_cv_header_$ac_safe=no"
12451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12452 echo "$ac_t""yes" 1>&6
12453 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12454 cat >> confdefs.h <<EOF
12455 #define $ac_tr_hdr 1
12459 echo "$ac_t""no" 1>&6
12464 if test $ac_cv_header_tcpd_h != yes ; then
12467 cat > conftest.$ac_ext <<EOF
12468 #line 12469 "configure"
12469 #include "confdefs.h"
12471 int allow_severity = 0;
12472 int deny_severity = 0;
12478 if { (eval echo configure:12479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12482 echo "configure: failed program was:" >&5
12483 cat conftest.$ac_ext >&5
12490 if test $have_wrappers = yes ; then
12491 cat >> confdefs.h <<\EOF
12492 #define HAVE_TCPD 1
12497 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
12498 echo "configure:12499: checking for main in -lnsl" >&5
12499 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
12500 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12501 echo $ac_n "(cached) $ac_c" 1>&6
12503 ac_save_LIBS="$LIBS"
12505 cat > conftest.$ac_ext <<EOF
12506 #line 12507 "configure"
12507 #include "confdefs.h"
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 eval "ac_cv_lib_$ac_lib_var=yes"
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 eval "ac_cv_lib_$ac_lib_var=no"
12523 LIBS="$ac_save_LIBS"
12526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12527 echo "$ac_t""yes" 1>&6
12528 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12530 cat >> confdefs.h <<EOF
12531 #define $ac_tr_lib 1
12537 echo "$ac_t""no" 1>&6
12541 echo "configure: warning: could not find -lwrap" 1>&2
12542 if test $ol_enable_wrappers = yes ; then
12543 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
12546 echo "configure: warning: disabling wrappers support" 1>&2
12547 ol_enable_wrappers=no
12552 if test $ol_enable_syslog != no ; then
12553 echo $ac_n "checking for openlog""... $ac_c" 1>&6
12554 echo "configure:12555: checking for openlog" >&5
12555 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
12556 echo $ac_n "(cached) $ac_c" 1>&6
12558 cat > conftest.$ac_ext <<EOF
12559 #line 12560 "configure"
12560 #include "confdefs.h"
12561 /* System header to define __stub macros and hopefully few prototypes,
12562 which can conflict with char openlog(); below. */
12563 #include <assert.h>
12564 /* Override any gcc2 internal prototype to avoid an error. */
12565 /* We use char because int might match the return type of a gcc2
12566 builtin and then its argument prototype would still apply. */
12572 /* The GNU C library defines this for functions which it implements
12573 to always fail with ENOSYS. Some functions are actually named
12574 something starting with __ and the normal name is an alias. */
12575 #if defined (__stub_openlog) || defined (__stub___openlog)
12583 if { (eval echo configure:12584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12585 eval "ac_cv_func_openlog=yes"
12587 echo "configure: failed program was:" >&5
12588 cat conftest.$ac_ext >&5
12590 eval "ac_cv_func_openlog=no"
12595 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
12596 echo "$ac_t""yes" 1>&6
12599 echo "$ac_t""no" 1>&6
12602 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
12603 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
12605 ol_enable_syslog=$ac_cv_func_openlog
12608 if test $ol_enable_dmalloc != no ; then
12609 for ac_hdr in dmalloc.h
12611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12613 echo "configure:12614: checking for $ac_hdr" >&5
12614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12623 { (eval echo configure:12624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12625 if test -z "$ac_err"; then
12627 eval "ac_cv_header_$ac_safe=yes"
12630 echo "configure: failed program was:" >&5
12631 cat conftest.$ac_ext >&5
12633 eval "ac_cv_header_$ac_safe=no"
12637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12638 echo "$ac_t""yes" 1>&6
12639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12640 cat >> confdefs.h <<EOF
12641 #define $ac_tr_hdr 1
12645 echo "$ac_t""no" 1>&6
12649 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
12650 echo "configure:12651: checking for dmalloc_shutdown in -ldmalloc" >&5
12651 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-:%__p__%'`
12652 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12653 echo $ac_n "(cached) $ac_c" 1>&6
12655 ac_save_LIBS="$LIBS"
12656 LIBS="-ldmalloc $LIBS"
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure"
12659 #include "confdefs.h"
12660 /* Override any gcc2 internal prototype to avoid an error. */
12661 /* We use char because int might match the return type of a gcc2
12662 builtin and then its argument prototype would still apply. */
12663 char dmalloc_shutdown();
12669 if { (eval echo configure:12670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12671 eval "ac_cv_lib_$ac_lib_var=yes"
12673 echo "configure: failed program was:" >&5
12674 cat conftest.$ac_ext >&5
12676 eval "ac_cv_lib_$ac_lib_var=no"
12679 LIBS="$ac_save_LIBS"
12682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12683 echo "$ac_t""yes" 1>&6
12684 ac_tr_lib=HAVE_LIB`echo dmalloc | sed -e 's/[^a-zA-Z0-9_]/_/g' \
12685 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12686 cat >> confdefs.h <<EOF
12687 #define $ac_tr_lib 1
12690 LIBS="-ldmalloc $LIBS"
12693 echo "$ac_t""no" 1>&6
12698 if test $ol_enable_tcl != no ; then
12699 for ac_hdr in tcl.h
12701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12703 echo "configure:12704: checking for $ac_hdr" >&5
12704 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12705 echo $ac_n "(cached) $ac_c" 1>&6
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12713 { (eval echo configure:12714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12715 if test -z "$ac_err"; then
12717 eval "ac_cv_header_$ac_safe=yes"
12720 echo "configure: failed program was:" >&5
12721 cat conftest.$ac_ext >&5
12723 eval "ac_cv_header_$ac_safe=no"
12727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12728 echo "$ac_t""yes" 1>&6
12729 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12730 cat >> confdefs.h <<EOF
12731 #define $ac_tr_hdr 1
12735 echo "$ac_t""no" 1>&6
12740 if test $ac_cv_header_tcl_h != yes ; then
12743 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
12744 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
12745 echo "configure:12746: checking for main in -l$lib" >&5
12746 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
12747 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12750 ac_save_LIBS="$LIBS"
12751 LIBS="-l$lib $LIBS"
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12760 if { (eval echo configure:12761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12762 eval "ac_cv_lib_$ac_lib_var=yes"
12764 echo "configure: failed program was:" >&5
12765 cat conftest.$ac_ext >&5
12767 eval "ac_cv_lib_$ac_lib_var=no"
12770 LIBS="$ac_save_LIBS"
12773 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12774 echo "$ac_t""yes" 1>&6
12776 if test x"$ol_with_tcl_module" = "xstatic" ; then
12777 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
12779 MOD_TCL_LIB="-l${lib}"
12782 echo "$ac_t""no" 1>&6
12789 if test $have_tcl != yes ; then
12790 echo "configure: warning: could not find -ltcl" 1>&2
12791 if test $ol_enable_tcl = yes ; then
12792 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
12800 for ac_hdr in termcap.h ncurses.h
12802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12804 echo "configure:12805: checking for $ac_hdr" >&5
12805 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12806 echo $ac_n "(cached) $ac_c" 1>&6
12808 cat > conftest.$ac_ext <<EOF
12809 #line 12810 "configure"
12810 #include "confdefs.h"
12813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12814 { (eval echo configure:12815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12816 if test -z "$ac_err"; then
12818 eval "ac_cv_header_$ac_safe=yes"
12821 echo "configure: failed program was:" >&5
12822 cat conftest.$ac_ext >&5
12824 eval "ac_cv_header_$ac_safe=no"
12828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12829 echo "$ac_t""yes" 1>&6
12830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12831 cat >> confdefs.h <<EOF
12832 #define $ac_tr_hdr 1
12836 echo "$ac_t""no" 1>&6
12841 if test $ol_link_termcap = no ; then
12842 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
12843 echo "configure:12844: checking for tputs in -ltermcap" >&5
12844 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
12845 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12846 echo $ac_n "(cached) $ac_c" 1>&6
12848 ac_save_LIBS="$LIBS"
12849 LIBS="-ltermcap $LIBS"
12850 cat > conftest.$ac_ext <<EOF
12851 #line 12852 "configure"
12852 #include "confdefs.h"
12853 /* Override any gcc2 internal prototype to avoid an error. */
12854 /* We use char because int might match the return type of a gcc2
12855 builtin and then its argument prototype would still apply. */
12862 if { (eval echo configure:12863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12864 eval "ac_cv_lib_$ac_lib_var=yes"
12866 echo "configure: failed program was:" >&5
12867 cat conftest.$ac_ext >&5
12869 eval "ac_cv_lib_$ac_lib_var=no"
12872 LIBS="$ac_save_LIBS"
12875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12876 echo "$ac_t""yes" 1>&6
12879 echo "$ac_t""no" 1>&6
12883 if test $have_termcap = yes ; then
12884 cat >> confdefs.h <<\EOF
12885 #define HAVE_TERMCAP 1
12888 ol_link_termcap=yes
12889 TERMCAP_LIBS=-ltermcap
12893 if test $ol_link_termcap = no ; then
12894 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
12895 echo "configure:12896: checking for initscr in -lncurses" >&5
12896 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
12897 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12898 echo $ac_n "(cached) $ac_c" 1>&6
12900 ac_save_LIBS="$LIBS"
12901 LIBS="-lncurses $LIBS"
12902 cat > conftest.$ac_ext <<EOF
12903 #line 12904 "configure"
12904 #include "confdefs.h"
12905 /* Override any gcc2 internal prototype to avoid an error. */
12906 /* We use char because int might match the return type of a gcc2
12907 builtin and then its argument prototype would still apply. */
12914 if { (eval echo configure:12915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12916 eval "ac_cv_lib_$ac_lib_var=yes"
12918 echo "configure: failed program was:" >&5
12919 cat conftest.$ac_ext >&5
12921 eval "ac_cv_lib_$ac_lib_var=no"
12924 LIBS="$ac_save_LIBS"
12927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12928 echo "$ac_t""yes" 1>&6
12931 echo "$ac_t""no" 1>&6
12935 if test $have_ncurses = yes ; then
12936 cat >> confdefs.h <<\EOF
12937 #define HAVE_NCURSES 1
12940 ol_link_termcap=yes
12941 TERMCAP_LIBS=-lncurses
12945 if test $ol_link_termcap = no ; then
12946 cat >> confdefs.h <<\EOF
12947 #define NO_TERMCAP 1
12954 if test $ol_with_cyrus_sasl != no ; then
12955 ac_safe=`echo "sasl.h" | sed 'y%./+-%__p_%'`
12956 echo $ac_n "checking for sasl.h""... $ac_c" 1>&6
12957 echo "configure:12958: checking for sasl.h" >&5
12958 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12959 echo $ac_n "(cached) $ac_c" 1>&6
12961 cat > conftest.$ac_ext <<EOF
12962 #line 12963 "configure"
12963 #include "confdefs.h"
12966 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12967 { (eval echo configure:12968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12968 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12969 if test -z "$ac_err"; then
12971 eval "ac_cv_header_$ac_safe=yes"
12974 echo "configure: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12977 eval "ac_cv_header_$ac_safe=no"
12981 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12982 echo "$ac_t""yes" 1>&6
12985 echo "$ac_t""no" 1>&6
12989 if test $ac_cv_header_sasl_h = yes ; then
12990 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
12991 echo "configure:12992: checking for sasl_client_init in -lsasl" >&5
12992 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
12993 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12996 ac_save_LIBS="$LIBS"
12997 LIBS="-lsasl $LIBS"
12998 cat > conftest.$ac_ext <<EOF
12999 #line 13000 "configure"
13000 #include "confdefs.h"
13001 /* Override any gcc2 internal prototype to avoid an error. */
13002 /* We use char because int might match the return type of a gcc2
13003 builtin and then its argument prototype would still apply. */
13004 char sasl_client_init();
13010 if { (eval echo configure:13011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13012 eval "ac_cv_lib_$ac_lib_var=yes"
13014 echo "configure: failed program was:" >&5
13015 cat conftest.$ac_ext >&5
13017 eval "ac_cv_lib_$ac_lib_var=no"
13020 LIBS="$ac_save_LIBS"
13023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13024 echo "$ac_t""yes" 1>&6
13025 have_cyrus_sasl=yes
13027 echo "$ac_t""no" 1>&6
13032 if test $have_cyrus_sasl != no ; then
13034 cat >> confdefs.h <<\EOF
13035 #define HAVE_CYRUS_SASL 1
13042 if test $ol_link_sasl = no -a $ol_with_cyrus_sasl = yes ; then
13043 { echo "configure: error: no suitable API for --with-cyrus-sasl=$ol_with_cyrus_sasl" 1>&2; exit 1; }
13047 if test $cross_compiling != yes ; then
13049 if test -r /dev/urandom ; then
13050 dev="/dev/urandom";
13051 elif test -r /idev/urandom ; then
13052 dev="/idev/urandom";
13053 elif test -r /dev/srandom ; then
13054 dev="/dev/srandom";
13055 elif test -r /dev/random ; then
13057 elif test -r /idev/random ; then
13058 dev="/idev/random";
13061 if test $dev != no ; then
13062 cat >> confdefs.h <<EOF
13063 #define URANDOM_DEVICE "$dev"
13070 if test $ol_with_fetch != no ; then
13072 LIBS="-lfetch -lcom_err $LIBS"
13073 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
13074 echo "configure:13075: checking fetch(3) library" >&5
13075 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
13076 echo $ac_n "(cached) $ac_c" 1>&6
13079 cat > conftest.$ac_ext <<EOF
13080 #line 13081 "configure"
13081 #include "confdefs.h"
13083 #include <sys/param.h>
13087 struct url *u = fetchParseURL("file:///");
13090 if { (eval echo configure:13091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13092 ol_cv_lib_fetch=yes
13094 echo "configure: failed program was:" >&5
13095 cat conftest.$ac_ext >&5
13102 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
13104 if test $ol_cv_lib_fetch != no ; then
13105 ol_link_fetch="-lfetch -lcom_err"
13106 cat >> confdefs.h <<\EOF
13107 #define HAVE_FETCH 1
13113 if test $ol_cv_lib_fetch != no ; then
13114 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
13115 ol_link_fetch=freebsd
13117 elif test $ol_with_fetch != auto ; then
13118 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
13122 ol_link_readline=no
13123 if test $ol_with_readline != no ; then
13124 for ac_hdr in readline/readline.h readline/history.h
13126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13128 echo "configure:13129: checking for $ac_hdr" >&5
13129 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13130 echo $ac_n "(cached) $ac_c" 1>&6
13132 cat > conftest.$ac_ext <<EOF
13133 #line 13134 "configure"
13134 #include "confdefs.h"
13137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13138 { (eval echo configure:13139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13140 if test -z "$ac_err"; then
13142 eval "ac_cv_header_$ac_safe=yes"
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13148 eval "ac_cv_header_$ac_safe=no"
13152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13153 echo "$ac_t""yes" 1>&6
13154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13155 cat >> confdefs.h <<EOF
13156 #define $ac_tr_hdr 1
13160 echo "$ac_t""no" 1>&6
13165 if test $ac_cv_header_readline_readline_h = yes ; then
13167 LIBS="$TERMCAP_LIBS $LIBS"
13168 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
13169 echo "configure:13170: checking for readline in -lreadline" >&5
13170 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
13171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13172 echo $ac_n "(cached) $ac_c" 1>&6
13174 ac_save_LIBS="$LIBS"
13175 LIBS="-lreadline $LIBS"
13176 cat > conftest.$ac_ext <<EOF
13177 #line 13178 "configure"
13178 #include "confdefs.h"
13179 /* Override any gcc2 internal prototype to avoid an error. */
13180 /* We use char because int might match the return type of a gcc2
13181 builtin and then its argument prototype would still apply. */
13188 if { (eval echo configure:13189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13190 eval "ac_cv_lib_$ac_lib_var=yes"
13192 echo "configure: failed program was:" >&5
13193 cat conftest.$ac_ext >&5
13195 eval "ac_cv_lib_$ac_lib_var=no"
13198 LIBS="$ac_save_LIBS"
13201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13202 echo "$ac_t""yes" 1>&6
13205 echo "$ac_t""no" 1>&6
13211 if test $have_readline = yes ; then
13212 ol_with_readline=found
13213 ol_link_readline=yes
13215 READLINE_LIBS="-lreadline"
13220 if test $ol_link_readline = yes ; then
13221 cat >> confdefs.h <<\EOF
13222 #define HAVE_READLINE 1
13228 if test $ol_enable_crypt != no ; then
13229 echo $ac_n "checking for crypt""... $ac_c" 1>&6
13230 echo "configure:13231: checking for crypt" >&5
13231 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
13232 echo $ac_n "(cached) $ac_c" 1>&6
13234 cat > conftest.$ac_ext <<EOF
13235 #line 13236 "configure"
13236 #include "confdefs.h"
13237 /* System header to define __stub macros and hopefully few prototypes,
13238 which can conflict with char crypt(); below. */
13239 #include <assert.h>
13240 /* Override any gcc2 internal prototype to avoid an error. */
13241 /* We use char because int might match the return type of a gcc2
13242 builtin and then its argument prototype would still apply. */
13248 /* The GNU C library defines this for functions which it implements
13249 to always fail with ENOSYS. Some functions are actually named
13250 something starting with __ and the normal name is an alias. */
13251 #if defined (__stub_crypt) || defined (__stub___crypt)
13259 if { (eval echo configure:13260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13261 eval "ac_cv_func_crypt=yes"
13263 echo "configure: failed program was:" >&5
13264 cat conftest.$ac_ext >&5
13266 eval "ac_cv_func_crypt=no"
13271 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
13272 echo "$ac_t""yes" 1>&6
13275 echo "$ac_t""no" 1>&6
13277 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
13278 echo "configure:13279: checking for crypt in -lcrypt" >&5
13279 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
13280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13283 ac_save_LIBS="$LIBS"
13284 LIBS="-lcrypt $LIBS"
13285 cat > conftest.$ac_ext <<EOF
13286 #line 13287 "configure"
13287 #include "confdefs.h"
13288 /* Override any gcc2 internal prototype to avoid an error. */
13289 /* We use char because int might match the return type of a gcc2
13290 builtin and then its argument prototype would still apply. */
13297 if { (eval echo configure:13298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13299 eval "ac_cv_lib_$ac_lib_var=yes"
13301 echo "configure: failed program was:" >&5
13302 cat conftest.$ac_ext >&5
13304 eval "ac_cv_lib_$ac_lib_var=no"
13307 LIBS="$ac_save_LIBS"
13310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13311 echo "$ac_t""yes" 1>&6
13312 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
13315 echo "$ac_t""no" 1>&6
13322 if test $have_crypt = yes ; then
13323 cat >> confdefs.h <<\EOF
13324 #define HAVE_CRYPT 1
13328 echo "configure: warning: could not find crypt" 1>&2
13329 if test $ol_enable_crypt = yes ; then
13330 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
13333 echo "configure: warning: disabling crypt support" 1>&2
13338 if test $ol_enable_proctitle != no ; then
13339 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
13340 echo "configure:13341: checking for setproctitle" >&5
13341 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
13342 echo $ac_n "(cached) $ac_c" 1>&6
13344 cat > conftest.$ac_ext <<EOF
13345 #line 13346 "configure"
13346 #include "confdefs.h"
13347 /* System header to define __stub macros and hopefully few prototypes,
13348 which can conflict with char setproctitle(); below. */
13349 #include <assert.h>
13350 /* Override any gcc2 internal prototype to avoid an error. */
13351 /* We use char because int might match the return type of a gcc2
13352 builtin and then its argument prototype would still apply. */
13353 char setproctitle();
13358 /* The GNU C library defines this for functions which it implements
13359 to always fail with ENOSYS. Some functions are actually named
13360 something starting with __ and the normal name is an alias. */
13361 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
13369 if { (eval echo configure:13370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13371 eval "ac_cv_func_setproctitle=yes"
13373 echo "configure: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13376 eval "ac_cv_func_setproctitle=no"
13381 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
13382 echo "$ac_t""yes" 1>&6
13383 have_setproctitle=yes
13385 echo "$ac_t""no" 1>&6
13387 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
13388 echo "configure:13389: checking for setproctitle in -lutil" >&5
13389 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
13390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13391 echo $ac_n "(cached) $ac_c" 1>&6
13393 ac_save_LIBS="$LIBS"
13394 LIBS="-lutil $LIBS"
13395 cat > conftest.$ac_ext <<EOF
13396 #line 13397 "configure"
13397 #include "confdefs.h"
13398 /* Override any gcc2 internal prototype to avoid an error. */
13399 /* We use char because int might match the return type of a gcc2
13400 builtin and then its argument prototype would still apply. */
13401 char setproctitle();
13407 if { (eval echo configure:13408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13409 eval "ac_cv_lib_$ac_lib_var=yes"
13411 echo "configure: failed program was:" >&5
13412 cat conftest.$ac_ext >&5
13414 eval "ac_cv_lib_$ac_lib_var=no"
13417 LIBS="$ac_save_LIBS"
13420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13421 echo "$ac_t""yes" 1>&6
13422 have_setproctitle=yes
13423 LUTIL_LIBS="$LUTIL_LIBS -lutil"
13425 echo "$ac_t""no" 1>&6
13426 have_setproctitle=no
13427 LIBOBJS="$LIBOBJS setproctitle.o"
13428 LIBSRCS="$LIBSRCS setproctitle.c"
13434 if test $have_setproctitle = yes ; then
13435 cat >> confdefs.h <<\EOF
13436 #define HAVE_SETPROCTITLE 1
13442 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13443 echo "configure:13444: checking for ANSI C header files" >&5
13444 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
13445 echo $ac_n "(cached) $ac_c" 1>&6
13447 cat > conftest.$ac_ext <<EOF
13448 #line 13449 "configure"
13449 #include "confdefs.h"
13450 #include <stdlib.h>
13451 #include <stdarg.h>
13452 #include <string.h>
13455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13456 { (eval echo configure:13457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13458 if test -z "$ac_err"; then
13460 ac_cv_header_stdc=yes
13463 echo "configure: failed program was:" >&5
13464 cat conftest.$ac_ext >&5
13466 ac_cv_header_stdc=no
13470 if test $ac_cv_header_stdc = yes; then
13471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13472 cat > conftest.$ac_ext <<EOF
13473 #line 13474 "configure"
13474 #include "confdefs.h"
13475 #include <string.h>
13477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13478 egrep "memchr" >/dev/null 2>&1; then
13482 ac_cv_header_stdc=no
13488 if test $ac_cv_header_stdc = yes; then
13489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13490 cat > conftest.$ac_ext <<EOF
13491 #line 13492 "configure"
13492 #include "confdefs.h"
13493 #include <stdlib.h>
13495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13496 egrep "free" >/dev/null 2>&1; then
13500 ac_cv_header_stdc=no
13506 if test $ac_cv_header_stdc = yes; then
13507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13508 if test "$cross_compiling" = yes; then
13511 cat > conftest.$ac_ext <<EOF
13512 #line 13513 "configure"
13513 #include "confdefs.h"
13515 #if ((' ' & 0x0FF) == 0x020)
13516 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13517 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13519 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13520 || ('j' <= (c) && (c) <= 'r') \
13521 || ('s' <= (c) && (c) <= 'z'))
13522 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13525 int main () { int i; for (i = 0; i < 256; i++)
13526 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13530 if { (eval echo configure:13531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13534 echo "configure: failed program was:" >&5
13535 cat conftest.$ac_ext >&5
13537 ac_cv_header_stdc=no
13545 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13546 if test $ac_cv_header_stdc = yes; then
13547 cat >> confdefs.h <<\EOF
13548 #define STDC_HEADERS 1
13553 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13554 echo "configure:13555: checking for mode_t" >&5
13555 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
13556 echo $ac_n "(cached) $ac_c" 1>&6
13558 cat > conftest.$ac_ext <<EOF
13559 #line 13560 "configure"
13560 #include "confdefs.h"
13561 #include <sys/types.h>
13563 #include <stdlib.h>
13564 #include <stddef.h>
13568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13569 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13571 eval "ac_cv_type_mode_t=yes"
13574 eval "ac_cv_type_mode_t=no"
13579 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
13580 echo "$ac_t""yes" 1>&6
13582 echo "$ac_t""no" 1>&6
13583 cat >> confdefs.h <<EOF
13589 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13590 echo "configure:13591: checking for off_t" >&5
13591 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
13592 echo $ac_n "(cached) $ac_c" 1>&6
13594 cat > conftest.$ac_ext <<EOF
13595 #line 13596 "configure"
13596 #include "confdefs.h"
13597 #include <sys/types.h>
13599 #include <stdlib.h>
13600 #include <stddef.h>
13604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13605 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13607 eval "ac_cv_type_off_t=yes"
13610 eval "ac_cv_type_off_t=no"
13615 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
13616 echo "$ac_t""yes" 1>&6
13618 echo "$ac_t""no" 1>&6
13619 cat >> confdefs.h <<EOF
13625 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13626 echo "configure:13627: checking for pid_t" >&5
13627 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
13628 echo $ac_n "(cached) $ac_c" 1>&6
13630 cat > conftest.$ac_ext <<EOF
13631 #line 13632 "configure"
13632 #include "confdefs.h"
13633 #include <sys/types.h>
13635 #include <stdlib.h>
13636 #include <stddef.h>
13640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13641 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13643 eval "ac_cv_type_pid_t=yes"
13646 eval "ac_cv_type_pid_t=no"
13651 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
13652 echo "$ac_t""yes" 1>&6
13654 echo "$ac_t""no" 1>&6
13655 cat >> confdefs.h <<EOF
13661 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
13662 echo "configure:13663: checking for ptrdiff_t" >&5
13663 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
13664 echo $ac_n "(cached) $ac_c" 1>&6
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 #include <stddef.h>
13674 if { (eval echo configure:13675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13676 am_cv_type_ptrdiff_t=yes
13678 echo "configure: failed program was:" >&5
13679 cat conftest.$ac_ext >&5
13681 am_cv_type_ptrdiff_t=no
13686 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
13687 if test $am_cv_type_ptrdiff_t = yes; then
13688 cat >> confdefs.h <<\EOF
13689 #define HAVE_PTRDIFF_T 1
13694 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
13695 echo "configure:13696: checking return type of signal handlers" >&5
13696 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
13697 echo $ac_n "(cached) $ac_c" 1>&6
13699 cat > conftest.$ac_ext <<EOF
13700 #line 13701 "configure"
13701 #include "confdefs.h"
13702 #include <sys/types.h>
13703 #include <signal.h>
13708 extern "C" void (*signal (int, void (*)(int)))(int);
13710 void (*signal ()) ();
13717 if { (eval echo configure:13718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13719 ac_cv_type_signal=void
13721 echo "configure: failed program was:" >&5
13722 cat conftest.$ac_ext >&5
13724 ac_cv_type_signal=int
13729 echo "$ac_t""$ac_cv_type_signal" 1>&6
13730 cat >> confdefs.h <<EOF
13731 #define RETSIGTYPE $ac_cv_type_signal
13735 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13736 echo "configure:13737: checking for size_t" >&5
13737 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
13738 echo $ac_n "(cached) $ac_c" 1>&6
13740 cat > conftest.$ac_ext <<EOF
13741 #line 13742 "configure"
13742 #include "confdefs.h"
13743 #include <sys/types.h>
13745 #include <stdlib.h>
13746 #include <stddef.h>
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13753 eval "ac_cv_type_size_t=yes"
13756 eval "ac_cv_type_size_t=no"
13761 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
13762 echo "$ac_t""yes" 1>&6
13764 echo "$ac_t""no" 1>&6
13765 cat >> confdefs.h <<EOF
13766 #define size_t unsigned
13772 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
13773 echo "configure:13774: checking for ssize_t" >&5
13774 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
13775 echo $ac_n "(cached) $ac_c" 1>&6
13777 cat > conftest.$ac_ext <<EOF
13778 #line 13779 "configure"
13779 #include "confdefs.h"
13780 #include <sys/types.h>
13782 #include <stdlib.h>
13783 #include <stddef.h>
13787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13788 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13790 eval "ac_cv_type_ssize_t=yes"
13793 eval "ac_cv_type_ssize_t=no"
13798 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
13799 echo "$ac_t""yes" 1>&6
13801 echo "$ac_t""no" 1>&6
13802 cat >> confdefs.h <<EOF
13803 #define ssize_t signed int
13808 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
13809 echo "configure:13810: checking for caddr_t" >&5
13810 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
13811 echo $ac_n "(cached) $ac_c" 1>&6
13813 cat > conftest.$ac_ext <<EOF
13814 #line 13815 "configure"
13815 #include "confdefs.h"
13816 #include <sys/types.h>
13818 #include <stdlib.h>
13819 #include <stddef.h>
13823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13824 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13826 eval "ac_cv_type_caddr_t=yes"
13829 eval "ac_cv_type_caddr_t=no"
13834 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
13837 echo "$ac_t""no" 1>&6
13838 cat >> confdefs.h <<EOF
13839 #define caddr_t char *
13845 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
13846 echo "configure:13847: checking for socklen_t" >&5
13847 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
13848 echo $ac_n "(cached) $ac_c" 1>&6
13850 cat > conftest.$ac_ext <<EOF
13851 #line 13852 "configure"
13852 #include "confdefs.h"
13854 #ifdef HAVE_SYS_TYPES_H
13855 #include <sys/types.h>
13857 #ifdef HAVE_SYS_SOCKET_H
13858 #include <sys/socket.h>
13865 if { (eval echo configure:13866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13867 ol_cv_type_socklen_t=yes
13869 echo "configure: failed program was:" >&5
13870 cat conftest.$ac_ext >&5
13872 ol_cv_type_socklen_t=no
13877 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
13878 if test $ol_cv_type_socklen_t = no; then
13879 cat >> confdefs.h <<\EOF
13880 #define socklen_t int
13885 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
13886 echo "configure:13887: checking for member st_blksize in aggregate type struct stat" >&5
13887 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
13888 echo $ac_n "(cached) $ac_c" 1>&6
13890 cat > conftest.$ac_ext <<EOF
13891 #line 13892 "configure"
13892 #include "confdefs.h"
13893 #include <sys/types.h>
13894 #include <sys/stat.h>
13896 struct stat foo; foo.st_blksize;
13899 if { (eval echo configure:13900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13901 ac_cv_c_struct_member_st_blksize=yes
13903 echo "configure: failed program was:" >&5
13904 cat conftest.$ac_ext >&5
13906 ac_cv_c_struct_member_st_blksize=no
13911 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
13912 st_blksize="$ac_cv_c_struct_member_st_blksize"
13913 if test $ac_cv_c_struct_member_st_blksize = yes; then
13914 cat >> confdefs.h <<\EOF
13915 #define HAVE_ST_BLKSIZE 1
13920 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
13921 echo "configure:13922: checking whether time.h and sys/time.h may both be included" >&5
13922 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
13923 echo $ac_n "(cached) $ac_c" 1>&6
13925 cat > conftest.$ac_ext <<EOF
13926 #line 13927 "configure"
13927 #include "confdefs.h"
13928 #include <sys/types.h>
13929 #include <sys/time.h>
13935 if { (eval echo configure:13936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13937 ac_cv_header_time=yes
13939 echo "configure: failed program was:" >&5
13940 cat conftest.$ac_ext >&5
13942 ac_cv_header_time=no
13947 echo "$ac_t""$ac_cv_header_time" 1>&6
13948 if test $ac_cv_header_time = yes; then
13949 cat >> confdefs.h <<\EOF
13950 #define TIME_WITH_SYS_TIME 1
13955 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
13956 echo "configure:13957: checking whether struct tm is in sys/time.h or time.h" >&5
13957 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13960 cat > conftest.$ac_ext <<EOF
13961 #line 13962 "configure"
13962 #include "confdefs.h"
13963 #include <sys/types.h>
13966 struct tm *tp; tp->tm_sec;
13969 if { (eval echo configure:13970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13971 ac_cv_struct_tm=time.h
13973 echo "configure: failed program was:" >&5
13974 cat conftest.$ac_ext >&5
13976 ac_cv_struct_tm=sys/time.h
13981 echo "$ac_t""$ac_cv_struct_tm" 1>&6
13982 if test $ac_cv_struct_tm = sys/time.h; then
13983 cat >> confdefs.h <<\EOF
13984 #define TM_IN_SYS_TIME 1
13989 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13990 echo "configure:13991: checking for uid_t in sys/types.h" >&5
13991 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
13992 echo $ac_n "(cached) $ac_c" 1>&6
13994 cat > conftest.$ac_ext <<EOF
13995 #line 13996 "configure"
13996 #include "confdefs.h"
13997 #include <sys/types.h>
13999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14000 egrep "uid_t" >/dev/null 2>&1; then
14002 ac_cv_type_uid_t=yes
14005 ac_cv_type_uid_t=no
14011 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14012 if test $ac_cv_type_uid_t = no; then
14013 cat >> confdefs.h <<\EOF
14017 cat >> confdefs.h <<\EOF
14023 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
14024 echo "configure:14025: checking for sig_atomic_t" >&5
14025 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
14026 echo $ac_n "(cached) $ac_c" 1>&6
14028 cat > conftest.$ac_ext <<EOF
14029 #line 14030 "configure"
14030 #include "confdefs.h"
14031 #include <signal.h>
14033 sig_atomic_t atomic;
14036 if { (eval echo configure:14037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14038 ol_cv_type_sig_atomic_t=yes
14040 echo "configure: failed program was:" >&5
14041 cat conftest.$ac_ext >&5
14043 ol_cv_type_sig_atomic_t=no
14048 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
14049 if test $ol_cv_type_sig_atomic_t = no; then
14050 cat >> confdefs.h <<\EOF
14051 #define sig_atomic_t int
14058 # test for pw_gecos in struct passwd
14059 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
14060 echo "configure:14061: checking struct passwd for pw_gecos" >&5
14061 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
14062 echo $ac_n "(cached) $ac_c" 1>&6
14065 cat > conftest.$ac_ext <<EOF
14066 #line 14067 "configure"
14067 #include "confdefs.h"
14072 pwd.pw_gecos = pwd.pw_name;
14076 if { (eval echo configure:14077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14078 ol_cv_struct_passwd_pw_gecos=yes
14080 echo "configure: failed program was:" >&5
14081 cat conftest.$ac_ext >&5
14083 ol_cv_struct_passwd_pw_gecos=no
14088 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
14089 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
14090 cat >> confdefs.h <<\EOF
14091 #define HAVE_PW_GECOS 1
14096 # test for pw_passwd in struct passwd
14097 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
14098 echo "configure:14099: checking struct passwd for pw_passwd" >&5
14099 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
14100 echo $ac_n "(cached) $ac_c" 1>&6
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14110 pwd.pw_passwd = pwd.pw_name;
14114 if { (eval echo configure:14115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14116 ol_cv_struct_passwd_pw_passwd=yes
14118 echo "configure: failed program was:" >&5
14119 cat conftest.$ac_ext >&5
14121 ol_cv_struct_passwd_pw_passwd=no
14126 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
14127 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
14128 cat >> confdefs.h <<\EOF
14129 #define HAVE_PW_PASSWD 1
14135 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
14136 echo "configure:14137: checking if toupper() requires islower()" >&5
14137 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
14138 echo $ac_n "(cached) $ac_c" 1>&6
14141 if test "$cross_compiling" = yes; then
14142 ol_cv_c_upper_lower=safe
14144 cat > conftest.$ac_ext <<EOF
14145 #line 14146 "configure"
14146 #include "confdefs.h"
14151 if ('C' == toupper('C'))
14157 if { (eval echo configure:14158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14159 ol_cv_c_upper_lower=no
14161 echo "configure: failed program was:" >&5
14162 cat conftest.$ac_ext >&5
14164 ol_cv_c_upper_lower=yes
14171 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
14172 if test $ol_cv_c_upper_lower != no ; then
14173 cat >> confdefs.h <<\EOF
14174 #define C_UPPER_LOWER 1
14179 echo $ac_n "checking for working const""... $ac_c" 1>&6
14180 echo "configure:14181: checking for working const" >&5
14181 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
14182 echo $ac_n "(cached) $ac_c" 1>&6
14184 cat > conftest.$ac_ext <<EOF
14185 #line 14186 "configure"
14186 #include "confdefs.h"
14190 /* Ultrix mips cc rejects this. */
14191 typedef int charset[2]; const charset x;
14192 /* SunOS 4.1.1 cc rejects this. */
14193 char const *const *ccp;
14195 /* NEC SVR4.0.2 mips cc rejects this. */
14196 struct point {int x, y;};
14197 static struct point const zero = {0,0};
14198 /* AIX XL C 1.02.0.0 rejects this.
14199 It does not let you subtract one const X* pointer from another in an arm
14200 of an if-expression whose if-part is not a constant expression */
14201 const char *g = "string";
14202 ccp = &g + (g ? g-g : 0);
14203 /* HPUX 7.0 cc rejects these. */
14206 ccp = (char const *const *) p;
14207 { /* SCO 3.2v4 cc rejects this. */
14209 char const *s = 0 ? (char *) 0 : (char const *) 0;
14213 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14214 int x[] = {25, 17};
14215 const int *foo = &x[0];
14218 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14219 typedef const int *iptr;
14223 { /* AIX XL C 1.02.0.0 rejects this saying
14224 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14225 struct s { int j; const int *ap[3]; };
14226 struct s *b; b->j = 5;
14228 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14229 const int foo = 10;
14234 if { (eval echo configure:14235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14238 echo "configure: failed program was:" >&5
14239 cat conftest.$ac_ext >&5
14246 echo "$ac_t""$ac_cv_c_const" 1>&6
14247 if test $ac_cv_c_const = no; then
14248 cat >> confdefs.h <<\EOF
14254 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
14255 echo "configure:14256: checking if compiler understands volatile" >&5
14256 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
14257 echo $ac_n "(cached) $ac_c" 1>&6
14259 cat > conftest.$ac_ext <<EOF
14260 #line 14261 "configure"
14261 #include "confdefs.h"
14264 volatile int a; int * volatile b = x ? &y : &z;
14265 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
14269 if { (eval echo configure:14270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14271 ol_cv_c_volatile=yes
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14276 ol_cv_c_volatile=no
14281 echo "$ac_t""$ol_cv_c_volatile" 1>&6
14282 if test $ol_cv_c_volatile = yes; then
14285 cat >> confdefs.h <<\EOF
14292 if test $cross_compiling = yes ; then
14293 cat >> confdefs.h <<\EOF
14294 #define CROSS_COMPILING 1
14298 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14299 echo "configure:14300: checking whether byte ordering is bigendian" >&5
14300 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
14301 echo $ac_n "(cached) $ac_c" 1>&6
14303 ac_cv_c_bigendian=unknown
14304 # See if sys/param.h defines the BYTE_ORDER macro.
14305 cat > conftest.$ac_ext <<EOF
14306 #line 14307 "configure"
14307 #include "confdefs.h"
14308 #include <sys/types.h>
14309 #include <sys/param.h>
14312 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14313 bogus endian macros
14317 if { (eval echo configure:14318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14319 # It does; now see whether it defined to BIG_ENDIAN or not.
14320 cat > conftest.$ac_ext <<EOF
14321 #line 14322 "configure"
14322 #include "confdefs.h"
14323 #include <sys/types.h>
14324 #include <sys/param.h>
14327 #if BYTE_ORDER != BIG_ENDIAN
14332 if { (eval echo configure:14333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14334 ac_cv_c_bigendian=yes
14336 echo "configure: failed program was:" >&5
14337 cat conftest.$ac_ext >&5
14339 ac_cv_c_bigendian=no
14343 echo "configure: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14347 if test $ac_cv_c_bigendian = unknown; then
14348 if test "$cross_compiling" = yes; then
14349 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
14351 cat > conftest.$ac_ext <<EOF
14352 #line 14353 "configure"
14353 #include "confdefs.h"
14355 /* Are we little or big endian? From Harbison&Steele. */
14359 char c[sizeof (long)];
14362 exit (u.c[sizeof (long) - 1] == 1);
14365 if { (eval echo configure:14366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14367 ac_cv_c_bigendian=no
14369 echo "configure: failed program was:" >&5
14370 cat conftest.$ac_ext >&5
14372 ac_cv_c_bigendian=yes
14380 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14381 if test $ac_cv_c_bigendian = yes; then
14382 cat >> confdefs.h <<\EOF
14383 #define WORDS_BIGENDIAN 1
14390 echo $ac_n "checking size of short""... $ac_c" 1>&6
14391 echo "configure:14392: checking size of short" >&5
14392 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
14393 echo $ac_n "(cached) $ac_c" 1>&6
14395 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14396 cat > conftest.$ac_ext <<EOF
14397 #line 14398 "configure"
14398 #include "confdefs.h"
14399 #include "confdefs.h"
14400 #include <sys/types.h>
14404 switch (0) case 0: case (sizeof (short) == $ac_size):;
14407 if { (eval echo configure:14408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14409 ac_cv_sizeof_short=$ac_size
14411 echo "configure: failed program was:" >&5
14412 cat conftest.$ac_ext >&5
14415 if test x$ac_cv_sizeof_short != x ; then break; fi
14420 if test x$ac_cv_sizeof_short = x ; then
14421 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
14423 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14424 cat >> confdefs.h <<EOF
14425 #define SIZEOF_SHORT $ac_cv_sizeof_short
14429 echo $ac_n "checking size of int""... $ac_c" 1>&6
14430 echo "configure:14431: checking size of int" >&5
14431 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
14432 echo $ac_n "(cached) $ac_c" 1>&6
14434 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14435 cat > conftest.$ac_ext <<EOF
14436 #line 14437 "configure"
14437 #include "confdefs.h"
14438 #include "confdefs.h"
14439 #include <sys/types.h>
14443 switch (0) case 0: case (sizeof (int) == $ac_size):;
14446 if { (eval echo configure:14447: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14448 ac_cv_sizeof_int=$ac_size
14450 echo "configure: failed program was:" >&5
14451 cat conftest.$ac_ext >&5
14454 if test x$ac_cv_sizeof_int != x ; then break; fi
14459 if test x$ac_cv_sizeof_int = x ; then
14460 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
14462 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14463 cat >> confdefs.h <<EOF
14464 #define SIZEOF_INT $ac_cv_sizeof_int
14468 echo $ac_n "checking size of long""... $ac_c" 1>&6
14469 echo "configure:14470: checking size of long" >&5
14470 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
14471 echo $ac_n "(cached) $ac_c" 1>&6
14473 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
14474 cat > conftest.$ac_ext <<EOF
14475 #line 14476 "configure"
14476 #include "confdefs.h"
14477 #include "confdefs.h"
14478 #include <sys/types.h>
14482 switch (0) case 0: case (sizeof (long) == $ac_size):;
14485 if { (eval echo configure:14486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14487 ac_cv_sizeof_long=$ac_size
14489 echo "configure: failed program was:" >&5
14490 cat conftest.$ac_ext >&5
14493 if test x$ac_cv_sizeof_long != x ; then break; fi
14498 if test x$ac_cv_sizeof_long = x ; then
14499 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
14501 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14502 cat >> confdefs.h <<EOF
14503 #define SIZEOF_LONG $ac_cv_sizeof_long
14508 if test "$ac_cv_sizeof_int" -lt 4 ; then
14509 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
14511 cat >> confdefs.h <<\EOF
14512 #define LBER_INT_T long
14516 cat >> confdefs.h <<\EOF
14517 #define LBER_INT_T int
14522 cat >> confdefs.h <<\EOF
14523 #define LBER_LEN_T long
14526 cat >> confdefs.h <<\EOF
14527 #define LBER_SOCKET_T int
14530 cat >> confdefs.h <<\EOF
14531 #define LBER_TAG_T long
14535 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
14536 echo "configure:14537: checking for 8-bit clean memcmp" >&5
14537 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
14538 echo $ac_n "(cached) $ac_c" 1>&6
14540 if test "$cross_compiling" = yes; then
14541 ac_cv_func_memcmp_clean=no
14543 cat > conftest.$ac_ext <<EOF
14544 #line 14545 "configure"
14545 #include "confdefs.h"
14549 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
14550 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
14554 if { (eval echo configure:14555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14556 ac_cv_func_memcmp_clean=yes
14558 echo "configure: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
14561 ac_cv_func_memcmp_clean=no
14568 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
14569 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
14571 echo $ac_n "checking for strftime""... $ac_c" 1>&6
14572 echo "configure:14573: checking for strftime" >&5
14573 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
14574 echo $ac_n "(cached) $ac_c" 1>&6
14576 cat > conftest.$ac_ext <<EOF
14577 #line 14578 "configure"
14578 #include "confdefs.h"
14579 /* System header to define __stub macros and hopefully few prototypes,
14580 which can conflict with char strftime(); below. */
14581 #include <assert.h>
14582 /* Override any gcc2 internal prototype to avoid an error. */
14583 /* We use char because int might match the return type of a gcc2
14584 builtin and then its argument prototype would still apply. */
14590 /* The GNU C library defines this for functions which it implements
14591 to always fail with ENOSYS. Some functions are actually named
14592 something starting with __ and the normal name is an alias. */
14593 #if defined (__stub_strftime) || defined (__stub___strftime)
14601 if { (eval echo configure:14602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14603 eval "ac_cv_func_strftime=yes"
14605 echo "configure: failed program was:" >&5
14606 cat conftest.$ac_ext >&5
14608 eval "ac_cv_func_strftime=no"
14613 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
14614 echo "$ac_t""yes" 1>&6
14615 cat >> confdefs.h <<\EOF
14616 #define HAVE_STRFTIME 1
14620 echo "$ac_t""no" 1>&6
14621 # strftime is in -lintl on SCO UNIX.
14622 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
14623 echo "configure:14624: checking for strftime in -lintl" >&5
14624 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
14625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14626 echo $ac_n "(cached) $ac_c" 1>&6
14628 ac_save_LIBS="$LIBS"
14629 LIBS="-lintl $LIBS"
14630 cat > conftest.$ac_ext <<EOF
14631 #line 14632 "configure"
14632 #include "confdefs.h"
14633 /* Override any gcc2 internal prototype to avoid an error. */
14634 /* We use char because int might match the return type of a gcc2
14635 builtin and then its argument prototype would still apply. */
14642 if { (eval echo configure:14643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14644 eval "ac_cv_lib_$ac_lib_var=yes"
14646 echo "configure: failed program was:" >&5
14647 cat conftest.$ac_ext >&5
14649 eval "ac_cv_lib_$ac_lib_var=no"
14652 LIBS="$ac_save_LIBS"
14655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14656 echo "$ac_t""yes" 1>&6
14657 cat >> confdefs.h <<\EOF
14658 #define HAVE_STRFTIME 1
14661 LIBS="-lintl $LIBS"
14663 echo "$ac_t""no" 1>&6
14669 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
14670 echo "configure:14671: checking for inet_aton()" >&5
14671 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
14672 echo $ac_n "(cached) $ac_c" 1>&6
14674 cat > conftest.$ac_ext <<EOF
14675 #line 14676 "configure"
14676 #include "confdefs.h"
14678 #ifdef HAVE_SYS_TYPES_H
14679 # include <sys/types.h>
14681 #ifdef HAVE_SYS_SOCKET_H
14682 # include <sys/socket.h>
14683 # ifdef HAVE_SYS_SELECT_H
14684 # include <sys/select.h>
14686 # include <netinet/in.h>
14687 # ifdef HAVE_ARPA_INET_H
14688 # include <arpa/inet.h>
14694 int rc = inet_aton( "255.255.255.255", &in );
14697 if { (eval echo configure:14698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14699 ol_cv_func_inet_aton=yes
14701 echo "configure: failed program was:" >&5
14702 cat conftest.$ac_ext >&5
14704 ol_cv_func_inet_aton=no
14709 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
14710 if test $ol_cv_func_inet_aton != no; then
14711 cat >> confdefs.h <<\EOF
14712 #define HAVE_INET_ATON 1
14718 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
14719 echo "configure:14720: checking for _spawnlp" >&5
14720 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14723 cat > conftest.$ac_ext <<EOF
14724 #line 14725 "configure"
14725 #include "confdefs.h"
14726 /* System header to define __stub macros and hopefully few prototypes,
14727 which can conflict with char _spawnlp(); below. */
14728 #include <assert.h>
14729 /* Override any gcc2 internal prototype to avoid an error. */
14730 /* We use char because int might match the return type of a gcc2
14731 builtin and then its argument prototype would still apply. */
14737 /* The GNU C library defines this for functions which it implements
14738 to always fail with ENOSYS. Some functions are actually named
14739 something starting with __ and the normal name is an alias. */
14740 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
14748 if { (eval echo configure:14749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14750 eval "ac_cv_func__spawnlp=yes"
14752 echo "configure: failed program was:" >&5
14753 cat conftest.$ac_ext >&5
14755 eval "ac_cv_func__spawnlp=no"
14760 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
14761 echo "$ac_t""yes" 1>&6
14762 cat >> confdefs.h <<\EOF
14763 #define HAVE_SPAWNLP 1
14767 echo "$ac_t""no" 1>&6
14771 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
14772 echo "configure:14773: checking for _snprintf" >&5
14773 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
14774 echo $ac_n "(cached) $ac_c" 1>&6
14776 cat > conftest.$ac_ext <<EOF
14777 #line 14778 "configure"
14778 #include "confdefs.h"
14779 /* System header to define __stub macros and hopefully few prototypes,
14780 which can conflict with char _snprintf(); below. */
14781 #include <assert.h>
14782 /* Override any gcc2 internal prototype to avoid an error. */
14783 /* We use char because int might match the return type of a gcc2
14784 builtin and then its argument prototype would still apply. */
14790 /* The GNU C library defines this for functions which it implements
14791 to always fail with ENOSYS. Some functions are actually named
14792 something starting with __ and the normal name is an alias. */
14793 #if defined (__stub__snprintf) || defined (__stub____snprintf)
14801 if { (eval echo configure:14802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14803 eval "ac_cv_func__snprintf=yes"
14805 echo "configure: failed program was:" >&5
14806 cat conftest.$ac_ext >&5
14808 eval "ac_cv_func__snprintf=no"
14813 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
14814 echo "$ac_t""yes" 1>&6
14815 ac_cv_func_snprintf=yes
14816 cat >> confdefs.h <<\EOF
14817 #define snprintf _snprintf
14822 echo "$ac_t""no" 1>&6
14826 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
14827 echo "configure:14828: checking for _vsnprintf" >&5
14828 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
14829 echo $ac_n "(cached) $ac_c" 1>&6
14831 cat > conftest.$ac_ext <<EOF
14832 #line 14833 "configure"
14833 #include "confdefs.h"
14834 /* System header to define __stub macros and hopefully few prototypes,
14835 which can conflict with char _vsnprintf(); below. */
14836 #include <assert.h>
14837 /* Override any gcc2 internal prototype to avoid an error. */
14838 /* We use char because int might match the return type of a gcc2
14839 builtin and then its argument prototype would still apply. */
14845 /* The GNU C library defines this for functions which it implements
14846 to always fail with ENOSYS. Some functions are actually named
14847 something starting with __ and the normal name is an alias. */
14848 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
14856 if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14858 eval "ac_cv_func__vsnprintf=yes"
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14863 eval "ac_cv_func__vsnprintf=no"
14868 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
14869 echo "$ac_t""yes" 1>&6
14870 ac_cv_func_vsnprintf=yes
14871 cat >> confdefs.h <<\EOF
14872 #define vsnprintf _vsnprintf
14877 echo "$ac_t""no" 1>&6
14881 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14882 echo "configure:14883: checking for vprintf" >&5
14883 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
14884 echo $ac_n "(cached) $ac_c" 1>&6
14886 cat > conftest.$ac_ext <<EOF
14887 #line 14888 "configure"
14888 #include "confdefs.h"
14889 /* System header to define __stub macros and hopefully few prototypes,
14890 which can conflict with char vprintf(); below. */
14891 #include <assert.h>
14892 /* Override any gcc2 internal prototype to avoid an error. */
14893 /* We use char because int might match the return type of a gcc2
14894 builtin and then its argument prototype would still apply. */
14900 /* The GNU C library defines this for functions which it implements
14901 to always fail with ENOSYS. Some functions are actually named
14902 something starting with __ and the normal name is an alias. */
14903 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14911 if { (eval echo configure:14912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14913 eval "ac_cv_func_vprintf=yes"
14915 echo "configure: failed program was:" >&5
14916 cat conftest.$ac_ext >&5
14918 eval "ac_cv_func_vprintf=no"
14923 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14924 echo "$ac_t""yes" 1>&6
14925 cat >> confdefs.h <<\EOF
14926 #define HAVE_VPRINTF 1
14930 echo "$ac_t""no" 1>&6
14933 if test "$ac_cv_func_vprintf" != yes; then
14934 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14935 echo "configure:14936: checking for _doprnt" >&5
14936 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
14937 echo $ac_n "(cached) $ac_c" 1>&6
14939 cat > conftest.$ac_ext <<EOF
14940 #line 14941 "configure"
14941 #include "confdefs.h"
14942 /* System header to define __stub macros and hopefully few prototypes,
14943 which can conflict with char _doprnt(); below. */
14944 #include <assert.h>
14945 /* Override any gcc2 internal prototype to avoid an error. */
14946 /* We use char because int might match the return type of a gcc2
14947 builtin and then its argument prototype would still apply. */
14953 /* The GNU C library defines this for functions which it implements
14954 to always fail with ENOSYS. Some functions are actually named
14955 something starting with __ and the normal name is an alias. */
14956 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14964 if { (eval echo configure:14965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14966 eval "ac_cv_func__doprnt=yes"
14968 echo "configure: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14971 eval "ac_cv_func__doprnt=no"
14976 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14977 echo "$ac_t""yes" 1>&6
14978 cat >> confdefs.h <<\EOF
14979 #define HAVE_DOPRNT 1
14983 echo "$ac_t""no" 1>&6
14989 if test $ac_cv_func_vprintf = yes ; then
14990 for ac_func in vsnprintf vsprintf
14992 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14993 echo "configure:14994: checking for $ac_func" >&5
14994 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14997 cat > conftest.$ac_ext <<EOF
14998 #line 14999 "configure"
14999 #include "confdefs.h"
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func(); below. */
15002 #include <assert.h>
15003 /* Override any gcc2 internal prototype to avoid an error. */
15004 /* We use char because int might match the return type of a gcc2
15005 builtin and then its argument prototype would still apply. */
15011 /* The GNU C library defines this for functions which it implements
15012 to always fail with ENOSYS. Some functions are actually named
15013 something starting with __ and the normal name is an alias. */
15014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15022 if { (eval echo configure:15023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15024 eval "ac_cv_func_$ac_func=yes"
15026 echo "configure: failed program was:" >&5
15027 cat conftest.$ac_ext >&5
15029 eval "ac_cv_func_$ac_func=no"
15034 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15035 echo "$ac_t""yes" 1>&6
15036 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15037 cat >> confdefs.h <<EOF
15038 #define $ac_tr_func 1
15042 echo "$ac_t""no" 1>&6
15098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15099 echo "configure:15100: checking for $ac_func" >&5
15100 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15101 echo $ac_n "(cached) $ac_c" 1>&6
15103 cat > conftest.$ac_ext <<EOF
15104 #line 15105 "configure"
15105 #include "confdefs.h"
15106 /* System header to define __stub macros and hopefully few prototypes,
15107 which can conflict with char $ac_func(); below. */
15108 #include <assert.h>
15109 /* Override any gcc2 internal prototype to avoid an error. */
15110 /* We use char because int might match the return type of a gcc2
15111 builtin and then its argument prototype would still apply. */
15117 /* The GNU C library defines this for functions which it implements
15118 to always fail with ENOSYS. Some functions are actually named
15119 something starting with __ and the normal name is an alias. */
15120 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15128 if { (eval echo configure:15129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15130 eval "ac_cv_func_$ac_func=yes"
15132 echo "configure: failed program was:" >&5
15133 cat conftest.$ac_ext >&5
15135 eval "ac_cv_func_$ac_func=no"
15140 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15141 echo "$ac_t""yes" 1>&6
15142 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15143 cat >> confdefs.h <<EOF
15144 #define $ac_tr_func 1
15148 echo "$ac_t""no" 1>&6
15153 for ac_func in getopt tempnam
15155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15156 echo "configure:15157: checking for $ac_func" >&5
15157 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15158 echo $ac_n "(cached) $ac_c" 1>&6
15160 cat > conftest.$ac_ext <<EOF
15161 #line 15162 "configure"
15162 #include "confdefs.h"
15163 /* System header to define __stub macros and hopefully few prototypes,
15164 which can conflict with char $ac_func(); below. */
15165 #include <assert.h>
15166 /* Override any gcc2 internal prototype to avoid an error. */
15167 /* We use char because int might match the return type of a gcc2
15168 builtin and then its argument prototype would still apply. */
15174 /* The GNU C library defines this for functions which it implements
15175 to always fail with ENOSYS. Some functions are actually named
15176 something starting with __ and the normal name is an alias. */
15177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15185 if { (eval echo configure:15186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15187 eval "ac_cv_func_$ac_func=yes"
15189 echo "configure: failed program was:" >&5
15190 cat conftest.$ac_ext >&5
15192 eval "ac_cv_func_$ac_func=no"
15197 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15198 echo "$ac_t""yes" 1>&6
15199 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15200 cat >> confdefs.h <<EOF
15201 #define $ac_tr_func 1
15205 echo "$ac_t""no" 1>&6
15206 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
15212 if test "$ac_cv_func_getopt" != yes; then
15213 LIBSRCS="$LIBSRCS getopt.c"
15216 if test "$ac_cv_func_tempnam" != yes; then
15217 LIBSRCS="$LIBSRCS tempnam.c"
15220 # Check Configuration
15221 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
15222 echo "configure:15223: checking declaration of sys_errlist" >&5
15223 if eval "test \"\${ol_cv_dcl_sys_errlist+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"
15232 #include <sys/types.h>
15235 #include <stdlib.h>
15238 char *c = (char *) *sys_errlist
15241 if { (eval echo configure:15242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15243 ol_cv_dcl_sys_errlist=yes
15244 ol_cv_have_sys_errlist=yes
15246 echo "configure: failed program was:" >&5
15247 cat conftest.$ac_ext >&5
15249 ol_cv_dcl_sys_errlist=no
15254 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
15256 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
15257 if test $ol_cv_dcl_sys_errlist = no ; then
15258 cat >> confdefs.h <<\EOF
15259 #define DECL_SYS_ERRLIST 1
15263 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
15264 echo "configure:15265: checking existence of sys_errlist" >&5
15265 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
15266 echo $ac_n "(cached) $ac_c" 1>&6
15269 cat > conftest.$ac_ext <<EOF
15270 #line 15271 "configure"
15271 #include "confdefs.h"
15274 char *c = (char *) *sys_errlist
15277 if { (eval echo configure:15278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15279 ol_cv_have_sys_errlist=yes
15281 echo "configure: failed program was:" >&5
15282 cat conftest.$ac_ext >&5
15284 ol_cv_have_sys_errlist=no
15289 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
15291 if test $ol_cv_have_sys_errlist = yes ; then
15292 cat >> confdefs.h <<\EOF
15293 #define HAVE_SYS_ERRLIST 1
15300 if test "$ol_enable_debug" != no ; then
15301 cat >> confdefs.h <<\EOF
15302 #define LDAP_DEBUG 1
15306 if test "$ol_enable_syslog" = yes ; then
15307 cat >> confdefs.h <<\EOF
15308 #define LDAP_SYSLOG 1
15312 if test "$ol_enable_libui" = yes ; then
15313 cat >> confdefs.h <<\EOF
15314 #define LDAP_LIBUI 1
15318 if test "$ol_enable_cache" = no ; then
15319 cat >> confdefs.h <<\EOF
15320 #define LDAP_NOCACHE 1
15324 if test "$ol_link_kbind" != no ; then
15325 cat >> confdefs.h <<\EOF
15326 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
15330 if test "$ol_enable_dns" != no ; then
15331 cat >> confdefs.h <<\EOF
15332 #define LDAP_API_FEATURE_X_OPENLDAP_V2_DNS LDAP_VENDOR_VERSION
15336 if test "$ol_enable_proctitle" != no ; then
15337 cat >> confdefs.h <<\EOF
15338 #define LDAP_PROCTITLE 1
15342 if test "$ol_enable_referrals" != no ; then
15343 cat >> confdefs.h <<\EOF
15344 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
15348 if test "$ol_enable_cldap" != no ; then
15349 cat >> confdefs.h <<\EOF
15350 #define LDAP_CONNECTIONLESS 1
15354 if test "$ol_enable_ldapi" != no; then
15355 cat >> confdefs.h <<\EOF
15356 #define USE_PF_LOCAL 1
15361 if test "$ol_enable_cleartext" != no ; then
15362 cat >> confdefs.h <<\EOF
15363 #define SLAPD_CLEARTEXT 1
15367 if test "$ol_enable_crypt" != no ; then
15368 cat >> confdefs.h <<\EOF
15369 #define SLAPD_CRYPT 1
15373 if test "$ol_link_kpasswd" != no ; then
15374 cat >> confdefs.h <<\EOF
15375 #define SLAPD_KPASSWD 1
15379 if test "$ol_link_spasswd" != no ; then
15380 cat >> confdefs.h <<\EOF
15381 #define SLAPD_SPASSWD 1
15385 if test "$ol_enable_multimaster" != no ; then
15386 cat >> confdefs.h <<\EOF
15387 #define SLAPD_MULTIMASTER 1
15391 if test "$ol_enable_phonetic" != no ; then
15392 cat >> confdefs.h <<\EOF
15393 #define SLAPD_PHONETIC 1
15397 if test "$ol_enable_rlookups" != no ; then
15398 cat >> confdefs.h <<\EOF
15399 #define SLAPD_RLOOKUPS 1
15403 if test "$ol_enable_aci" != no ; then
15404 cat >> confdefs.h <<\EOF
15405 #define SLAPD_ACI_ENABLED 1
15410 if test "$ol_link_modules" != no ; then
15411 cat >> confdefs.h <<\EOF
15412 #define SLAPD_MODULES 1
15416 SLAPD_MODULES_LDFLAGS="-dlopen self"
15419 if test "$ol_link_bdb2" != no ; then
15420 cat >> confdefs.h <<\EOF
15421 #define SLAPD_BDB2 1
15426 if test "$ol_with_bdb2_module" != static ; then
15427 cat >> confdefs.h <<\EOF
15428 #define SLAPD_BDB2_DYNAMIC 1
15432 BUILD_BDB2_DYNAMIC=shared
15433 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb2/back_bdb2.la"
15437 if test "$ol_enable_ldap" != no ; then
15438 cat >> confdefs.h <<\EOF
15439 #define SLAPD_LDAP 1
15444 if test "$ol_with_ldap_module" != static ; then
15445 cat >> confdefs.h <<\EOF
15446 #define SLAPD_LDAP_DYNAMIC 1
15450 BUILD_LDAP_DYNAMIC=shared
15451 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
15455 if test "$ol_link_ldbm" != no ; then
15456 cat >> confdefs.h <<\EOF
15457 #define SLAPD_LDBM 1
15462 if test "$ol_with_ldbm_module" != static ; then
15463 cat >> confdefs.h <<\EOF
15464 #define SLAPD_LDBM_DYNAMIC 1
15468 BUILD_LDBM_DYNAMIC=shared
15469 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
15473 if test "$ol_enable_passwd" != no ; then
15474 cat >> confdefs.h <<\EOF
15475 #define SLAPD_PASSWD 1
15480 if test "$ol_with_passwd_module" != static ; then
15481 cat >> confdefs.h <<\EOF
15482 #define SLAPD_PASSWD_DYNAMIC 1
15486 BUILD_PASSWD_DYNAMIC=shared
15487 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
15491 if test "$ol_link_perl" != no ; then
15492 cat >> confdefs.h <<\EOF
15493 #define SLAPD_PERL 1
15498 if test "$ol_with_perl_module" != static ; then
15499 cat >> confdefs.h <<\EOF
15500 #define SLAPD_PERL_DYNAMIC 1
15504 BUILD_PERL_DYNAMIC=shared
15505 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
15509 if test "$ol_enable_shell" != no ; then
15510 cat >> confdefs.h <<\EOF
15511 #define SLAPD_SHELL 1
15516 if test "$ol_with_shell_module" != static ; then
15517 cat >> confdefs.h <<\EOF
15518 #define SLAPD_SHELL_DYNAMIC 1
15522 BUILD_SHELL_DYNAMIC=shared
15523 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
15527 if test "$ol_enable_tcl" != no ; then
15528 cat >> confdefs.h <<\EOF
15529 #define SLAPD_TCL 1
15534 if test "$ol_with_tcl_module" != static; then
15535 cat >> confdefs.h <<\EOF
15536 #define SLAPD_TCL_DYNAMIC 1
15540 BUILD_TCL_DYNAMIC=shared
15541 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
15545 if test "$ol_enable_sql" != no ; then
15546 cat >> confdefs.h <<\EOF
15547 #define SLAPD_SQL 1
15552 SLAPD_SQL_LIBS=-liodbc
15553 if test "$ol_with_sql_module" != static; then
15554 cat >> confdefs.h <<\EOF
15555 #define SLAPD_SQL_DYNAMIC 1
15559 BUILD_SQL_DYNAMIC=shared
15560 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
15564 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
15565 $BUILD_SLAPD = yes ; then
15569 if test "$ol_link_isode" != no ; then
15574 if test "$LINK_BINS_DYNAMIC" = yes; then
15576 LT_LIB_LINKAGE=shared
15579 LT_LIB_LINKAGE=static
15582 if test "$ac_cv_mingw32" = yes ; then
15653 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
15655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15656 # Let make expand exec_prefix.
15657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15659 # Any assignment to VPATH causes Sun make to only execute
15660 # the first set of double-colon rules, so remove it if not needed.
15661 # If there is a colon in the path, we need to keep it.
15662 if test "x$srcdir" = x.; then
15663 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
15666 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
15668 DEFS=-DHAVE_CONFIG_H
15670 # Without the "./", some shells look in PATH for config.status.
15671 : ${CONFIG_STATUS=./config.status}
15673 echo creating $CONFIG_STATUS
15674 rm -f $CONFIG_STATUS
15675 cat > $CONFIG_STATUS <<EOF
15677 # Generated automatically by configure.
15678 # Run this file to recreate the current configuration.
15679 # This directory was configured as follows,
15680 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15682 # $0 $ac_configure_args
15684 # Compiler output produced by configure, useful for debugging
15685 # configure, is in ./config.log if it exists.
15687 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
15690 case "\$ac_option" in
15691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15692 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
15693 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
15694 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
15695 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
15697 -help | --help | --hel | --he | --h)
15698 echo "\$ac_cs_usage"; exit 0 ;;
15699 *) echo "\$ac_cs_usage"; exit 1 ;;
15703 ac_given_srcdir=$srcdir
15704 ac_given_INSTALL="$INSTALL"
15706 trap 'rm -fr `echo "\
15707 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15708 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15709 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15710 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15711 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15712 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15713 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15714 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15715 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15716 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15717 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15718 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15719 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15720 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15721 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15722 include/Makefile:build/top.mk:include/Makefile.in \
15723 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15724 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15725 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15726 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15727 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15728 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15729 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15730 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15731 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15732 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15733 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15734 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15735 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15736 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15737 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15738 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15739 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15740 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15741 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15742 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15743 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15744 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15745 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15746 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15747 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15748 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15749 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15750 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15751 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
15753 cat >> $CONFIG_STATUS <<EOF
15755 # Protect against being on the right side of a sed subst in config.status.
15756 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
15757 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
15761 s%@CFLAGS@%$CFLAGS%g
15762 s%@CPPFLAGS@%$CPPFLAGS%g
15763 s%@CXXFLAGS@%$CXXFLAGS%g
15764 s%@FFLAGS@%$FFLAGS%g
15766 s%@LDFLAGS@%$LDFLAGS%g
15768 s%@exec_prefix@%$exec_prefix%g
15769 s%@prefix@%$prefix%g
15770 s%@program_transform_name@%$program_transform_name%g
15771 s%@bindir@%$bindir%g
15772 s%@sbindir@%$sbindir%g
15773 s%@libexecdir@%$libexecdir%g
15774 s%@datadir@%$datadir%g
15775 s%@sysconfdir@%$sysconfdir%g
15776 s%@sharedstatedir@%$sharedstatedir%g
15777 s%@localstatedir@%$localstatedir%g
15778 s%@libdir@%$libdir%g
15779 s%@includedir@%$includedir%g
15780 s%@oldincludedir@%$oldincludedir%g
15781 s%@infodir@%$infodir%g
15782 s%@mandir@%$mandir%g
15784 s%@host_alias@%$host_alias%g
15785 s%@host_cpu@%$host_cpu%g
15786 s%@host_vendor@%$host_vendor%g
15787 s%@host_os@%$host_os%g
15788 s%@target@%$target%g
15789 s%@target_alias@%$target_alias%g
15790 s%@target_cpu@%$target_cpu%g
15791 s%@target_vendor@%$target_vendor%g
15792 s%@target_os@%$target_os%g
15794 s%@build_alias@%$build_alias%g
15795 s%@build_cpu@%$build_cpu%g
15796 s%@build_vendor@%$build_vendor%g
15797 s%@build_os@%$build_os%g
15798 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
15799 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
15800 s%@INSTALL_DATA@%$INSTALL_DATA%g
15801 s%@PACKAGE@%$PACKAGE%g
15802 s%@VERSION@%$VERSION%g
15803 s%@ACLOCAL@%$ACLOCAL%g
15804 s%@AUTOCONF@%$AUTOCONF%g
15805 s%@AUTOMAKE@%$AUTOMAKE%g
15806 s%@AUTOHEADER@%$AUTOHEADER%g
15807 s%@MAKEINFO@%$MAKEINFO%g
15808 s%@install_sh@%$install_sh%g
15811 s%@AMTARFLAGS@%$AMTARFLAGS%g
15812 s%@SET_MAKE@%$SET_MAKE%g
15813 s%@top_builddir@%$top_builddir%g
15814 s%@ldap_subdir@%$ldap_subdir%g
15816 s%@RANLIB@%$RANLIB%g
15820 s%@DLLTOOL@%$DLLTOOL%g
15822 s%@OBJDUMP@%$OBJDUMP%g
15823 s%@LIBTOOL@%$LIBTOOL%g
15825 s%@SENDMAIL@%$SENDMAIL%g
15826 s%@EDITOR@%$EDITOR%g
15827 s%@FINGER@%$FINGER%g
15828 s%@PERLBIN@%$PERLBIN%g
15830 s%@EXEEXT@%$EXEEXT%g
15831 s%@OBJEXT@%$OBJEXT%g
15832 s%@OL_MKDEP@%$OL_MKDEP%g
15833 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
15835 s%@LIBOBJS@%$LIBOBJS%g
15836 s%@LIBSRCS@%$LIBSRCS%g
15838 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
15839 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
15840 s%@DYN_EXT@%$DYN_EXT%g
15841 s%@BUILD_LDAPD@%$BUILD_LDAPD%g
15842 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
15843 s%@BUILD_BDB2@%$BUILD_BDB2%g
15844 s%@BUILD_LDAP@%$BUILD_LDAP%g
15845 s%@BUILD_LDBM@%$BUILD_LDBM%g
15846 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
15847 s%@BUILD_PERL@%$BUILD_PERL%g
15848 s%@BUILD_QUIPU@%$BUILD_QUIPU%g
15849 s%@BUILD_SHELL@%$BUILD_SHELL%g
15850 s%@BUILD_TCL@%$BUILD_TCL%g
15851 s%@BUILD_SQL@%$BUILD_SQL%g
15852 s%@BUILD_BDB2_DYNAMIC@%$BUILD_BDB2_DYNAMIC%g
15853 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
15854 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
15855 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
15856 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
15857 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
15858 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
15859 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
15860 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
15861 s%@LDAP_LIBS@%$LDAP_LIBS%g
15862 s%@LDAPD_LIBS@%$LDAPD_LIBS%g
15863 s%@LDIF_LIBS@%$LDIF_LIBS%g
15864 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
15865 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
15866 s%@LDBM_LIBS@%$LDBM_LIBS%g
15867 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
15868 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
15869 s%@WRAP_LIBS@%$WRAP_LIBS%g
15870 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
15871 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
15872 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
15873 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
15874 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
15875 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
15876 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
15877 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
15878 s%@KRB4_LIBS@%$KRB4_LIBS%g
15879 s%@KRB5_LIBS@%$KRB5_LIBS%g
15880 s%@READLINE_LIBS@%$READLINE_LIBS%g
15881 s%@SASL_LIBS@%$SASL_LIBS%g
15882 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
15883 s%@TLS_LIBS@%$TLS_LIBS%g
15884 s%@MODULES_LIBS@%$MODULES_LIBS%g
15885 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
15886 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
15887 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
15892 cat >> $CONFIG_STATUS <<\EOF
15894 # Split the substitutions into bite-sized pieces for seds with
15895 # small command number limits, like on Digital OSF/1 and HP-UX.
15896 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
15897 ac_file=1 # Number of current file.
15898 ac_beg=1 # First line for current file.
15899 ac_end=$ac_max_sed_cmds # Line after last line for current file.
15902 while $ac_more_lines; do
15903 if test $ac_beg -gt 1; then
15904 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
15906 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
15908 if test ! -s conftest.s$ac_file; then
15909 ac_more_lines=false
15910 rm -f conftest.s$ac_file
15912 if test -z "$ac_sed_cmds"; then
15913 ac_sed_cmds="sed -f conftest.s$ac_file"
15915 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
15917 ac_file=`expr $ac_file + 1`
15919 ac_end=`expr $ac_end + $ac_max_sed_cmds`
15922 if test -z "$ac_sed_cmds"; then
15927 cat >> $CONFIG_STATUS <<EOF
15929 CONFIG_FILES=\${CONFIG_FILES-"\
15930 Makefile:build/top.mk:Makefile.in:build/dir.mk \
15931 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
15932 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
15933 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
15934 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
15935 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
15936 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
15937 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
15938 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
15939 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
15940 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
15941 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
15942 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
15943 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
15944 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
15945 include/Makefile:build/top.mk:include/Makefile.in \
15946 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
15947 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
15948 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
15949 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
15950 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
15951 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
15952 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
15953 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
15954 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
15955 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
15956 servers/ldapd/Makefile:build/top.mk:servers/ldapd/Makefile.in:build/srv.mk \
15957 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
15958 servers/slapd/back-bdb2/Makefile:build/top.mk:servers/slapd/back-bdb2/Makefile.in:build/mod.mk \
15959 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
15960 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
15961 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
15962 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
15963 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
15964 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
15965 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
15966 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
15967 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
15968 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
15969 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
15970 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
15971 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
15972 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
15973 contrib/web_ldap/Makefile:build/top.mk:contrib/web_ldap/Makefile.in:build/rules.mk \
15976 cat >> $CONFIG_STATUS <<\EOF
15977 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
15978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15980 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
15981 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15982 *) ac_file_in="${ac_file}.in" ;;
15985 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
15987 # Remove last slash and all that follows it. Not all systems have dirname.
15988 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
15989 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
15990 # The file is in a subdirectory.
15991 test ! -d "$ac_dir" && mkdir "$ac_dir"
15992 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
15993 # A "../" for each directory in $ac_dir_suffix.
15994 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
15996 ac_dir_suffix= ac_dots=
15999 case "$ac_given_srcdir" in
16001 if test -z "$ac_dots"; then top_srcdir=.
16002 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
16003 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
16004 *) # Relative path.
16005 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
16006 top_srcdir="$ac_dots$ac_given_srcdir" ;;
16009 case "$ac_given_INSTALL" in
16010 [/$]*) INSTALL="$ac_given_INSTALL" ;;
16011 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
16014 echo creating "$ac_file"
16016 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
16018 *[Mm]akefile*) ac_comsub="1i\\
16019 # $configure_input" ;;
16023 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16025 s%@configure_input@%$configure_input%g
16026 s%@srcdir@%$srcdir%g
16027 s%@top_srcdir@%$top_srcdir%g
16028 s%@INSTALL@%$INSTALL%g
16029 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
16033 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16034 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16036 # ac_d sets the value in "#define NAME VALUE" lines.
16037 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16038 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
16041 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
16042 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16043 ac_uB='\([ ]\)%\1#\2define\3'
16046 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16047 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16048 ac_eB='$%\1#\2define\3'
16052 if test "${CONFIG_HEADERS+set}" != set; then
16054 cat >> $CONFIG_STATUS <<EOF
16055 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
16057 cat >> $CONFIG_STATUS <<\EOF
16059 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
16060 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16062 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
16063 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16064 *) ac_file_in="${ac_file}.in" ;;
16067 echo creating $ac_file
16069 rm -f conftest.frag conftest.in conftest.out
16070 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
16071 cat $ac_file_inputs > conftest.in
16075 # Transform confdefs.h into a sed script conftest.vals that substitutes
16076 # the proper values into config.h.in to produce config.h. And first:
16077 # Protect against being on the right side of a sed subst in config.status.
16078 # Protect against being in an unquoted here document in config.status.
16079 rm -f conftest.vals
16080 cat > conftest.hdr <<\EOF
16083 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
16087 sed -n -f conftest.hdr confdefs.h > conftest.vals
16090 # This sed command replaces #undef with comments. This is necessary, for
16091 # example, in the case of _POSIX_SOURCE, which is predefined and required
16092 # on some systems where configure will not decide to define it.
16093 cat >> conftest.vals <<\EOF
16094 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
16097 # Break up conftest.vals because some shells have a limit on
16098 # the size of here documents, and old seds have small limits too.
16100 rm -f conftest.tail
16103 ac_lines=`grep -c . conftest.vals`
16104 # grep -c gives empty output for an empty file on some AIX systems.
16105 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
16106 # Write a limited-size here document to conftest.frag.
16107 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
16108 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
16110 sed -f conftest.frag conftest.in > conftest.out
16112 mv conftest.out conftest.in
16113 ' >> $CONFIG_STATUS
16114 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
16115 rm -f conftest.vals
16116 mv conftest.tail conftest.vals
16118 rm -f conftest.vals
16120 cat >> $CONFIG_STATUS <<\EOF
16121 rm -f conftest.frag conftest.h
16122 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
16123 cat conftest.in >> conftest.h
16125 if cmp -s $ac_file conftest.h 2>/dev/null; then
16126 echo "$ac_file is unchanged"
16129 # Remove last slash and all that follows it. Not all systems have dirname.
16130 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
16131 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
16132 # The file is in a subdirectory.
16133 test ! -d "$ac_dir" && mkdir "$ac_dir"
16136 mv conftest.h $ac_file
16141 cat >> $CONFIG_STATUS <<EOF
16144 cat >> $CONFIG_STATUS <<\EOF
16147 echo Please \"make depend\" to build dependencies
16151 chmod +x $CONFIG_STATUS
16152 rm -fr confdefs* $ac_clean_files
16153 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1