3 # from OpenLDAP: pkg/ldap/configure.in,v 1.223.2.34 2001/10/09 23:18:54 kurt Exp
5 # Copyright 1998-2001 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2001 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-x-compile enable cross compiling [no]"
49 --with-cyrus-sasl with Cyrus SASL support [auto]"
51 --with-fetch with fetch URL support [auto]"
53 --with-kerberos with Kerberos support [auto]"
55 --with-readline with readline support [auto]"
57 --with-threads with threads [auto]"
59 --with-tls with TLS/SSL support [auto]"
61 --with-yielding-select with implicitly yielding select [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [auto]"
71 --enable-kpasswd enable kerberos password verification [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-phonetic enable phonetic/soundex [no]"
79 --enable-rlookups enable reverse lookups [no]"
81 --enable-aci enable per-object ACIs [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-dynamic enable linking built binaries with dynamic libs [no]"
87 --enable-dnssrv enable dnssrv backend [no]"
89 --with-dnssrv-module module type [static]"
91 --enable-ldap enable ldap backend [no]"
93 --with-ldap-module module type [static]"
95 --enable-ldbm enable ldbm backend [yes]"
97 --with-ldbm-api with LDBM API [auto]"
99 --with-ldbm-module module type [static]"
101 --with-ldbm-type use LDBM type [auto]"
103 --enable-passwd enable passwd backend [no]"
105 --with-passwd-module module type [static]"
107 --enable-shell enable shell backend [no]"
109 --with-shell-module module type [static]"
111 --enable-sql enable sql backend [no]"
113 --with-sql-module module type [static]"
115 SLURPD (Replication Daemon) Options:"
117 --enable-slurpd enable building slurpd [auto]"
119 Library Generation & Linking Options"
121 --enable-static[=PKGS] build static libraries [default=yes]"
123 --enable-shared[=PKGS] build shared libraries [default=yes]"
125 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
127 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
129 --disable-libtool-lock avoid locking (might break parallel builds)"
131 # Initialize some variables set by options.
132 # The variables have the same names as the options, with
133 # dashes changed to underlines.
135 cache_file=./config.cache
144 program_transform_name=s,x,x,
152 bindir='${exec_prefix}/bin'
153 sbindir='${exec_prefix}/sbin'
154 libexecdir='${exec_prefix}/libexec'
155 datadir='${prefix}/share'
156 sysconfdir='${prefix}/etc'
157 sharedstatedir='${prefix}/com'
158 localstatedir='${prefix}/var'
159 libdir='${exec_prefix}/lib'
160 includedir='${prefix}/include'
161 oldincludedir='/usr/include'
162 infodir='${prefix}/info'
163 mandir='${prefix}/man'
165 # Initialize some other variables.
168 SHELL=${CONFIG_SHELL-/bin/sh}
169 # Maximum number of lines to put in a shell here document.
176 # If the previous option needs an argument, assign it.
177 if test -n "$ac_prev"; then
178 eval "$ac_prev=\$ac_option"
184 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
188 # Accept the important Cygnus configure options, so we can diagnose typos.
192 -bindir | --bindir | --bindi | --bind | --bin | --bi)
194 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
195 bindir="$ac_optarg" ;;
197 -build | --build | --buil | --bui | --bu)
199 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
200 build="$ac_optarg" ;;
202 -cache-file | --cache-file | --cache-fil | --cache-fi \
203 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
204 ac_prev=cache_file ;;
205 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
206 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
207 cache_file="$ac_optarg" ;;
209 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
211 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
213 datadir="$ac_optarg" ;;
215 -disable-* | --disable-*)
216 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
217 # Reject names that are not valid shell variable names.
218 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
219 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
221 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
222 eval "enable_${ac_feature}=no" ;;
224 -enable-* | --enable-*)
225 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
226 # Reject names that are not valid shell variable names.
227 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
228 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
230 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
235 eval "enable_${ac_feature}='$ac_optarg'" ;;
237 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
238 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
239 | --exec | --exe | --ex)
240 ac_prev=exec_prefix ;;
241 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
242 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
243 | --exec=* | --exe=* | --ex=*)
244 exec_prefix="$ac_optarg" ;;
246 -gas | --gas | --ga | --g)
247 # Obsolete; use --with-gas.
250 -help | --help | --hel | --he)
251 # Omit some internal or obsolete options to make the list less imposing.
252 # This message is too long to be a string in the A/UX 3.1 sh.
254 Usage: configure [options] [host]
255 Options: [defaults in brackets after descriptions]
257 --cache-file=FILE cache test results in FILE
258 --help print this message
259 --no-create do not create output files
260 --quiet, --silent do not print \`checking...' messages
261 --version print the version of autoconf that created configure
262 Directory and file names:
263 --prefix=PREFIX install architecture-independent files in PREFIX
265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
267 --bindir=DIR user executables in DIR [EPREFIX/bin]
268 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
269 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
270 --datadir=DIR read-only architecture-independent data in DIR
272 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
273 --sharedstatedir=DIR modifiable architecture-independent data in DIR
275 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
276 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
277 --includedir=DIR C header files in DIR [PREFIX/include]
278 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
279 --infodir=DIR info documentation in DIR [PREFIX/info]
280 --mandir=DIR man documentation in DIR [PREFIX/man]
281 --srcdir=DIR find the sources in DIR [configure dir or ..]
282 --program-prefix=PREFIX prepend PREFIX to installed program names
283 --program-suffix=SUFFIX append SUFFIX to installed program names
284 --program-transform-name=PROGRAM
285 run sed PROGRAM on installed program names
289 --build=BUILD configure for building on BUILD [BUILD=HOST]
290 --host=HOST configure for HOST [guessed]
291 --target=TARGET configure for TARGET [TARGET=HOST]
292 Features and packages:
293 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
294 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
297 --x-includes=DIR X include files are in DIR
298 --x-libraries=DIR X library files are in DIR
300 if test -n "$ac_help"; then
301 echo "--enable and --with options recognized:$ac_help"
305 -host | --host | --hos | --ho)
307 -host=* | --host=* | --hos=* | --ho=*)
310 -includedir | --includedir | --includedi | --included | --include \
311 | --includ | --inclu | --incl | --inc)
312 ac_prev=includedir ;;
313 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
314 | --includ=* | --inclu=* | --incl=* | --inc=*)
315 includedir="$ac_optarg" ;;
317 -infodir | --infodir | --infodi | --infod | --info | --inf)
319 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
320 infodir="$ac_optarg" ;;
322 -libdir | --libdir | --libdi | --libd)
324 -libdir=* | --libdir=* | --libdi=* | --libd=*)
325 libdir="$ac_optarg" ;;
327 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
328 | --libexe | --libex | --libe)
329 ac_prev=libexecdir ;;
330 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
331 | --libexe=* | --libex=* | --libe=*)
332 libexecdir="$ac_optarg" ;;
334 -localstatedir | --localstatedir | --localstatedi | --localstated \
335 | --localstate | --localstat | --localsta | --localst \
336 | --locals | --local | --loca | --loc | --lo)
337 ac_prev=localstatedir ;;
338 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
339 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
340 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
341 localstatedir="$ac_optarg" ;;
343 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
345 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
346 mandir="$ac_optarg" ;;
349 # Obsolete; use --without-fp.
352 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
356 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
357 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
360 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
361 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
362 | --oldin | --oldi | --old | --ol | --o)
363 ac_prev=oldincludedir ;;
364 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
365 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
366 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
367 oldincludedir="$ac_optarg" ;;
369 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
371 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
372 prefix="$ac_optarg" ;;
374 -program-prefix | --program-prefix | --program-prefi | --program-pref \
375 | --program-pre | --program-pr | --program-p)
376 ac_prev=program_prefix ;;
377 -program-prefix=* | --program-prefix=* | --program-prefi=* \
378 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
379 program_prefix="$ac_optarg" ;;
381 -program-suffix | --program-suffix | --program-suffi | --program-suff \
382 | --program-suf | --program-su | --program-s)
383 ac_prev=program_suffix ;;
384 -program-suffix=* | --program-suffix=* | --program-suffi=* \
385 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
386 program_suffix="$ac_optarg" ;;
388 -program-transform-name | --program-transform-name \
389 | --program-transform-nam | --program-transform-na \
390 | --program-transform-n | --program-transform- \
391 | --program-transform | --program-transfor \
392 | --program-transfo | --program-transf \
393 | --program-trans | --program-tran \
394 | --progr-tra | --program-tr | --program-t)
395 ac_prev=program_transform_name ;;
396 -program-transform-name=* | --program-transform-name=* \
397 | --program-transform-nam=* | --program-transform-na=* \
398 | --program-transform-n=* | --program-transform-=* \
399 | --program-transform=* | --program-transfor=* \
400 | --program-transfo=* | --program-transf=* \
401 | --program-trans=* | --program-tran=* \
402 | --progr-tra=* | --program-tr=* | --program-t=*)
403 program_transform_name="$ac_optarg" ;;
405 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
406 | -silent | --silent | --silen | --sile | --sil)
409 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
411 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
413 sbindir="$ac_optarg" ;;
415 -sharedstatedir | --sharedstatedir | --sharedstatedi \
416 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
417 | --sharedst | --shareds | --shared | --share | --shar \
419 ac_prev=sharedstatedir ;;
420 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
421 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
422 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
424 sharedstatedir="$ac_optarg" ;;
426 -site | --site | --sit)
428 -site=* | --site=* | --sit=*)
431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
434 srcdir="$ac_optarg" ;;
436 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
437 | --syscon | --sysco | --sysc | --sys | --sy)
438 ac_prev=sysconfdir ;;
439 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
440 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
441 sysconfdir="$ac_optarg" ;;
443 -target | --target | --targe | --targ | --tar | --ta | --t)
445 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
446 target="$ac_optarg" ;;
448 -v | -verbose | --verbose | --verbos | --verbo | --verb)
451 -version | --version | --versio | --versi | --vers)
452 echo "configure generated by autoconf version 2.13.1"
456 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
457 # Reject names that are not valid shell variable names.
458 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
459 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
461 ac_package=`echo $ac_package| sed 's/-/_/g'`
466 eval "with_${ac_package}='$ac_optarg'" ;;
468 -without-* | --without-*)
469 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
472 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
474 ac_package=`echo $ac_package| sed 's/-/_/g'`
475 eval "with_${ac_package}=no" ;;
478 # Obsolete; use --with-x.
481 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
482 | --x-incl | --x-inc | --x-in | --x-i)
483 ac_prev=x_includes ;;
484 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
485 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
486 x_includes="$ac_optarg" ;;
488 -x-libraries | --x-libraries | --x-librarie | --x-librari \
489 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
490 ac_prev=x_libraries ;;
491 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
492 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
493 x_libraries="$ac_optarg" ;;
495 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
499 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
500 echo "configure: warning: $ac_option: invalid host type" 1>&2
502 if test "x$nonopt" != xNONE; then
503 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
511 if test -n "$ac_prev"; then
512 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
515 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
517 # File descriptor usage:
520 # 2 errors and warnings
521 # 3 some systems may open it to /dev/tty
522 # 4 used on the Kubota Titan
523 # 6 checking for... messages and results
524 # 5 compiler messages saved in config.log
525 if test "$silent" = yes; then
533 This file contains any messages produced by compilers while
534 running configure, to aid debugging if configure makes a mistake.
537 # Strip out --no-create and --no-recursion so they do not pile up.
538 # Also quote any args containing shell metacharacters.
543 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
544 | --no-cr | --no-c) ;;
545 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
546 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
547 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
548 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
549 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
554 # Only set these to C if already set. These must not be set unconditionally
555 # because not all systems understand e.g. LANG=C (notably SCO).
556 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
557 # Non-C LC_CTYPE values break the ctype check.
558 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
559 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
560 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
561 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
563 # confdefs.h avoids OS command line length limits that DEFS can exceed.
564 rm -rf conftest* confdefs.h
565 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
568 # A filename unique to this package, relative to the directory that
569 # configure is in, which we can look for to find out if srcdir is correct.
570 ac_unique_file=build/version
572 # Find the source files, if location was not specified.
573 if test -z "$srcdir"; then
574 ac_srcdir_defaulted=yes
575 # Try the directory containing this script, then its parent.
577 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
578 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
580 if test ! -r $srcdir/$ac_unique_file; then
584 ac_srcdir_defaulted=no
586 if test ! -r $srcdir/$ac_unique_file; then
587 if test "$ac_srcdir_defaulted" = yes; then
588 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
590 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
593 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
595 # Prefer explicitly selected file to automatically selected ones.
596 if test -z "$CONFIG_SITE"; then
597 if test "x$prefix" != xNONE; then
598 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
600 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
603 for ac_site_file in $CONFIG_SITE; do
604 if test -r "$ac_site_file"; then
605 echo "loading site script $ac_site_file"
612 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
613 ac_cpp='$CPP $CPPFLAGS'
614 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
615 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
616 cross_compiling=$ac_cv_prog_cc_cross
620 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
621 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
622 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
629 ac_n= ac_c='\c' ac_t=
633 # set unset (borrowed from autoconf 2.49c)
634 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
640 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
643 for ac_dir in build $srcdir/build; do
644 if test -f $ac_dir/install-sh; then
646 ac_install_sh="$ac_aux_dir/install-sh -c"
648 elif test -f $ac_dir/install.sh; then
650 ac_install_sh="$ac_aux_dir/install.sh -c"
652 elif test -f $ac_dir/shtool; then
654 ac_install_sh="$ac_aux_dir/shtool install -c"
658 if test -z "$ac_aux_dir"; then
659 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
661 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
662 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
663 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
665 OL_VERSION=`cat $ac_aux_dir/version`
666 if test -z "$OL_VERSION"; then
667 { echo "configure: error: could not determine version" 1>&2; exit 1; }
670 echo "Configuring OpenLDAP $OL_VERSION ..."
673 echo $ac_n "checking host system type""... $ac_c" 1>&6
674 echo "configure:675: checking host system type" >&5
675 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
677 # Make sure we can run config.sub.
678 if $ac_config_sub sun4 >/dev/null 2>&1; then :
679 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
682 ac_cv_host_alias=$host
683 case "$ac_cv_host_alias" in
687 if ac_cv_host_alias=`$ac_config_guess`; then :
688 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
690 *) ac_cv_host_alias=$nonopt ;;
694 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
695 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
696 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
697 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
699 echo $ac_n "(cached) $ac_c" 1>&6
702 echo "$ac_t""$ac_cv_host" 1>&6
705 host_alias=$ac_cv_host_alias
706 host_cpu=$ac_cv_host_cpu
707 host_vendor=$ac_cv_host_vendor
708 host_os=$ac_cv_host_os
714 echo $ac_n "checking target system type""... $ac_c" 1>&6
715 echo "configure:716: checking target system type" >&5
716 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
718 # Make sure we can run config.sub.
719 if $ac_config_sub sun4 >/dev/null 2>&1; then :
720 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
723 ac_cv_target_alias=$target
724 case "$ac_cv_target_alias" in
728 ac_cv_target_alias=$host_alias ;;
730 *) ac_cv_target_alias=$nonopt ;;
734 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
735 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
736 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
737 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
739 echo $ac_n "(cached) $ac_c" 1>&6
742 echo "$ac_t""$ac_cv_target" 1>&6
745 target_alias=$ac_cv_target_alias
746 target_cpu=$ac_cv_target_cpu
747 target_vendor=$ac_cv_target_vendor
748 target_os=$ac_cv_target_os
754 echo $ac_n "checking build system type""... $ac_c" 1>&6
755 echo "configure:756: checking build system type" >&5
756 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
758 # Make sure we can run config.sub.
759 if $ac_config_sub sun4 >/dev/null 2>&1; then :
760 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
763 ac_cv_build_alias=$build
764 case "$ac_cv_build_alias" in
768 ac_cv_build_alias=$host_alias ;;
770 *) ac_cv_build_alias=$nonopt ;;
774 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
775 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
779 echo $ac_n "(cached) $ac_c" 1>&6
782 echo "$ac_t""$ac_cv_build" 1>&6
785 build_alias=$ac_cv_build_alias
786 build_cpu=$ac_cv_build_cpu
787 build_vendor=$ac_cv_build_vendor
788 build_os=$ac_cv_build_os
794 # Do some error checking and defaulting for the host and target type.
796 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
799 # 1. You are not allowed to specify --host, --target, and nonopt at the
801 # 2. Host defaults to nonopt.
802 # 3. If nonopt is not specified, then host defaults to the current host,
803 # as determined by config.guess.
804 # 4. Target and build default to nonopt.
805 # 5. If nonopt is not specified, then target and build default to host.
807 # The aliases save the names the user supplied, while $host etc.
808 # will get canonicalized.
809 case $host---$target---$nonopt in
810 NONE---*---* | *---NONE---* | *---*---NONE) ;;
811 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
814 test "$host_alias" != "$target_alias" &&
815 test "$program_prefix$program_suffix$program_transform_name" = \
817 program_prefix=${target_alias}-
820 # Find a good install program. We prefer a C program (faster),
821 # so one script is as good as another. But avoid the broken or
822 # incompatible versions:
823 # SysV /etc/install, /usr/sbin/install
824 # SunOS /usr/etc/install
827 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
828 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
829 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
830 # ./install, which can be erroneously created by make from ./install.sh.
831 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
832 echo "configure:833: checking for a BSD compatible install" >&5
833 if test -z "$INSTALL"; then
834 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
835 echo $ac_n "(cached) $ac_c" 1>&6
837 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
838 for ac_dir in $PATH; do
839 # Account for people who put trailing slashes in PATH elements.
841 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
843 # OSF1 and SCO ODT 3.0 have their own names for install.
844 # Don't use installbsd from OSF since it installs stuff as root
846 for ac_prog in ginstall scoinst install; do
847 if test -f $ac_dir/$ac_prog; then
848 if test $ac_prog = install &&
849 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
850 # AIX install. It has an incompatible calling convention.
852 elif test $ac_prog = install &&
853 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
854 # program-specific install script used by HP pwplus--don't use.
857 ac_cv_path_install="$ac_dir/$ac_prog -c"
868 if test "${ac_cv_path_install+set}" = set; then
869 INSTALL="$ac_cv_path_install"
871 # As a last resort, use the slow shell script. We don't cache a
872 # path for INSTALL within a source directory, because that will
873 # break other packages using the cache if that directory is
874 # removed, or if the path is relative.
875 INSTALL="$ac_install_sh"
878 echo "$ac_t""$INSTALL" 1>&6
880 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
881 # It thinks the first close brace ends the variable substitution.
882 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
884 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
886 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
888 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
889 echo "configure:890: checking whether build environment is sane" >&5
892 echo timestamp > conftestfile
893 # Do `set' in a subshell so we don't clobber the current shell's
894 # arguments. Must try -L first in case configure is actually a
895 # symlink; some systems play weird games with the mod time of symlinks
896 # (eg FreeBSD returns the mod time of the symlink's containing
899 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
900 if test "$*" = "X"; then
902 set X `ls -t $srcdir/configure conftestfile`
904 if test "$*" != "X $srcdir/configure conftestfile" \
905 && test "$*" != "X conftestfile $srcdir/configure"; then
907 # If neither matched, then we have a broken ls. This can happen
908 # if, for instance, CONFIG_SHELL is bash and it inherits a
909 # broken ls alias from the environment. This has actually
910 # happened. Such a system could not be considered "sane".
911 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
912 alias in your environment" 1>&2; exit 1; }
915 test "$2" = conftestfile
921 { echo "configure: error: newly created file is older than distributed files!
922 Check your system clock" 1>&2; exit 1; }
925 echo "$ac_t""yes" 1>&6
926 if test "$program_transform_name" = s,x,x,; then
927 program_transform_name=
929 # Double any \ or $. echo might interpret backslashes.
930 cat <<\EOF_SED > conftestsed
931 s,\\,\\\\,g; s,\$,$$,g
933 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
936 test "$program_prefix" != NONE &&
937 program_transform_name="s,^,${program_prefix},;$program_transform_name"
938 # Use a double $ so make ignores it.
939 test "$program_suffix" != NONE &&
940 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
942 # sed with no file args requires a program.
943 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
945 for ac_prog in mawk gawk nawk awk
947 # Extract the first word of "$ac_prog", so it can be a program name with args.
948 set dummy $ac_prog; ac_word=$2
949 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950 echo "configure:951: checking for $ac_word" >&5
951 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
952 echo $ac_n "(cached) $ac_c" 1>&6
954 if test -n "$AWK"; then
955 ac_cv_prog_AWK="$AWK" # Let the user override the test.
957 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
959 for ac_dir in $ac_dummy; do
960 test -z "$ac_dir" && ac_dir=.
961 if test -f $ac_dir/$ac_word; then
962 ac_cv_prog_AWK="$ac_prog"
969 AWK="$ac_cv_prog_AWK"
970 if test -n "$AWK"; then
971 echo "$ac_t""$AWK" 1>&6
973 echo "$ac_t""no" 1>&6
976 test -n "$AWK" && break
979 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
980 echo "configure:981: checking whether ${MAKE-make} sets \${MAKE}" >&5
981 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
982 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 cat > conftestmake <<\EOF
987 @echo 'ac_maketemp="${MAKE}"'
989 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
990 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
991 if test -n "$ac_maketemp"; then
992 eval ac_cv_prog_make_${ac_make}_set=yes
994 eval ac_cv_prog_make_${ac_make}_set=no
998 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
999 echo "$ac_t""yes" 1>&6
1002 echo "$ac_t""no" 1>&6
1003 SET_MAKE="MAKE=${MAKE-make}"
1012 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1013 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1018 missing_dir=`cd $ac_aux_dir && pwd`
1019 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1020 echo "configure:1021: checking for working aclocal" >&5
1021 # Run test in a subshell; some versions of sh will print an error if
1022 # an executable is not found, even if stderr is redirected.
1023 # Redirect stdin to placate older versions of autoconf. Sigh.
1024 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1026 echo "$ac_t""found" 1>&6
1028 ACLOCAL="$missing_dir/missing aclocal"
1029 echo "$ac_t""missing" 1>&6
1032 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1033 echo "configure:1034: checking for working autoconf" >&5
1034 # Run test in a subshell; some versions of sh will print an error if
1035 # an executable is not found, even if stderr is redirected.
1036 # Redirect stdin to placate older versions of autoconf. Sigh.
1037 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1039 echo "$ac_t""found" 1>&6
1041 AUTOCONF="$missing_dir/missing autoconf"
1042 echo "$ac_t""missing" 1>&6
1045 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1046 echo "configure:1047: checking for working automake" >&5
1047 # Run test in a subshell; some versions of sh will print an error if
1048 # an executable is not found, even if stderr is redirected.
1049 # Redirect stdin to placate older versions of autoconf. Sigh.
1050 if (automake --version) < /dev/null > /dev/null 2>&1; then
1052 echo "$ac_t""found" 1>&6
1054 AUTOMAKE="$missing_dir/missing automake"
1055 echo "$ac_t""missing" 1>&6
1058 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1059 echo "configure:1060: checking for working autoheader" >&5
1060 # Run test in a subshell; some versions of sh will print an error if
1061 # an executable is not found, even if stderr is redirected.
1062 # Redirect stdin to placate older versions of autoconf. Sigh.
1063 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1064 AUTOHEADER=autoheader
1065 echo "$ac_t""found" 1>&6
1067 AUTOHEADER="$missing_dir/missing autoheader"
1068 echo "$ac_t""missing" 1>&6
1071 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1072 echo "configure:1073: checking for working makeinfo" >&5
1073 # Run test in a subshell; some versions of sh will print an error if
1074 # an executable is not found, even if stderr is redirected.
1075 # Redirect stdin to placate older versions of autoconf. Sigh.
1076 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1078 echo "$ac_t""found" 1>&6
1080 MAKEINFO="$missing_dir/missing makeinfo"
1081 echo "$ac_t""missing" 1>&6
1084 install_sh="$missing_dir/install-sh"
1085 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1087 for ac_prog in gnutar gtar tar
1089 # Extract the first word of "$ac_prog", so it can be a program name with args.
1090 set dummy $ac_prog; ac_word=$2
1091 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1092 echo "configure:1093: checking for $ac_word" >&5
1093 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 if test -n "$AMTAR"; then
1097 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1099 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1101 for ac_dir in $ac_dummy; do
1102 test -z "$ac_dir" && ac_dir=.
1103 if test -f $ac_dir/$ac_word; then
1104 ac_cv_prog_AMTAR="$ac_prog"
1111 AMTAR="$ac_cv_prog_AMTAR"
1112 if test -n "$AMTAR"; then
1113 echo "$ac_t""$AMTAR" 1>&6
1115 echo "$ac_t""no" 1>&6
1118 test -n "$AMTAR" && break
1123 if test -n "$AMTAR"; then
1124 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1129 cat >> confdefs.h <<EOF
1130 #define OPENLDAP_PACKAGE "$PACKAGE"
1133 cat >> confdefs.h <<EOF
1134 #define OPENLDAP_VERSION "$VERSION"
1140 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1141 echo "configure:1142: checking configure arguments" >&5
1146 ldap_subdir="/openldap"
1148 # Check whether --with-subdir or --without-subdir was given.
1149 if test "${with_subdir+set}" = set; then
1150 withval="$with_subdir"
1157 ldap_subdir="$withval"
1160 ldap_subdir="/$withval"
1167 # OpenLDAP --enable-debug
1168 # Check whether --enable-debug or --disable-debug was given.
1169 if test "${enable_debug+set}" = set; then
1170 enableval="$enable_debug"
1173 for ol_val in auto yes no ; do
1174 if test "$enableval" = "$ol_val" ; then
1178 if test "$ol_arg" = "invalid" ; then
1179 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1181 ol_enable_debug="$ol_arg"
1184 ol_enable_debug="yes"
1186 # end --enable-debug
1187 # OpenLDAP --enable-syslog
1188 # Check whether --enable-syslog or --disable-syslog was given.
1189 if test "${enable_syslog+set}" = set; then
1190 enableval="$enable_syslog"
1193 for ol_val in auto yes no ; do
1194 if test "$enableval" = "$ol_val" ; then
1198 if test "$ol_arg" = "invalid" ; then
1199 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1201 ol_enable_syslog="$ol_arg"
1204 ol_enable_syslog="auto"
1206 # end --enable-syslog
1207 # OpenLDAP --enable-proctitle
1208 # Check whether --enable-proctitle or --disable-proctitle was given.
1209 if test "${enable_proctitle+set}" = set; then
1210 enableval="$enable_proctitle"
1213 for ol_val in auto yes no ; do
1214 if test "$enableval" = "$ol_val" ; then
1218 if test "$ol_arg" = "invalid" ; then
1219 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1221 ol_enable_proctitle="$ol_arg"
1224 ol_enable_proctitle="yes"
1226 # end --enable-proctitle
1227 # OpenLDAP --enable-cache
1228 # Check whether --enable-cache or --disable-cache was given.
1229 if test "${enable_cache+set}" = set; then
1230 enableval="$enable_cache"
1233 for ol_val in auto yes no ; do
1234 if test "$enableval" = "$ol_val" ; then
1238 if test "$ol_arg" = "invalid" ; then
1239 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1241 ol_enable_cache="$ol_arg"
1244 ol_enable_cache="no"
1246 # end --enable-cache
1247 # OpenLDAP --enable-referrals
1248 # Check whether --enable-referrals or --disable-referrals was given.
1249 if test "${enable_referrals+set}" = set; then
1250 enableval="$enable_referrals"
1253 for ol_val in auto yes no ; do
1254 if test "$enableval" = "$ol_val" ; then
1258 if test "$ol_arg" = "invalid" ; then
1259 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1261 ol_enable_referrals="$ol_arg"
1264 ol_enable_referrals="no"
1266 # end --enable-referrals
1267 # OpenLDAP --enable-kbind
1268 # Check whether --enable-kbind or --disable-kbind was given.
1269 if test "${enable_kbind+set}" = set; then
1270 enableval="$enable_kbind"
1273 for ol_val in auto yes no ; do
1274 if test "$enableval" = "$ol_val" ; then
1278 if test "$ol_arg" = "invalid" ; then
1279 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1281 ol_enable_kbind="$ol_arg"
1284 ol_enable_kbind="no"
1286 # end --enable-kbind
1287 # OpenLDAP --enable-ipv6
1288 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1289 if test "${enable_ipv6+set}" = set; then
1290 enableval="$enable_ipv6"
1293 for ol_val in auto yes no ; do
1294 if test "$enableval" = "$ol_val" ; then
1298 if test "$ol_arg" = "invalid" ; then
1299 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1301 ol_enable_ipv6="$ol_arg"
1304 ol_enable_ipv6="auto"
1307 # OpenLDAP --enable-local
1308 # Check whether --enable-local or --disable-local was given.
1309 if test "${enable_local+set}" = set; then
1310 enableval="$enable_local"
1313 for ol_val in auto yes no ; do
1314 if test "$enableval" = "$ol_val" ; then
1318 if test "$ol_arg" = "invalid" ; then
1319 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1321 ol_enable_local="$ol_arg"
1324 ol_enable_local="auto"
1326 # end --enable-local
1327 # OpenLDAP --enable-x_compile
1328 # Check whether --enable-x_compile or --disable-x_compile was given.
1329 if test "${enable_x_compile+set}" = set; then
1330 enableval="$enable_x_compile"
1333 for ol_val in yes no ; do
1334 if test "$enableval" = "$ol_val" ; then
1338 if test "$ol_arg" = "invalid" ; then
1339 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1341 ol_enable_x_compile="$ol_arg"
1344 ol_enable_x_compile="no"
1346 # end --enable-x_compile
1349 # OpenLDAP --with-cyrus_sasl
1350 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1351 if test "${with_cyrus_sasl+set}" = set; then
1352 withval="$with_cyrus_sasl"
1355 for ol_val in auto yes no ; do
1356 if test "$withval" = "$ol_val" ; then
1360 if test "$ol_arg" = "invalid" ; then
1361 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1363 ol_with_cyrus_sasl="$ol_arg"
1366 ol_with_cyrus_sasl="auto"
1368 # end --with-cyrus_sasl
1370 # OpenLDAP --with-fetch
1371 # Check whether --with-fetch or --without-fetch was given.
1372 if test "${with_fetch+set}" = set; then
1373 withval="$with_fetch"
1376 for ol_val in auto yes no ; do
1377 if test "$withval" = "$ol_val" ; then
1381 if test "$ol_arg" = "invalid" ; then
1382 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1384 ol_with_fetch="$ol_arg"
1387 ol_with_fetch="auto"
1391 # OpenLDAP --with-kerberos
1392 # Check whether --with-kerberos or --without-kerberos was given.
1393 if test "${with_kerberos+set}" = set; then
1394 withval="$with_kerberos"
1397 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1398 if test "$withval" = "$ol_val" ; then
1402 if test "$ol_arg" = "invalid" ; then
1403 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1405 ol_with_kerberos="$ol_arg"
1408 ol_with_kerberos="auto"
1410 # end --with-kerberos
1412 # OpenLDAP --with-readline
1413 # Check whether --with-readline or --without-readline was given.
1414 if test "${with_readline+set}" = set; then
1415 withval="$with_readline"
1418 for ol_val in auto yes no ; do
1419 if test "$withval" = "$ol_val" ; then
1423 if test "$ol_arg" = "invalid" ; then
1424 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1426 ol_with_readline="$ol_arg"
1429 ol_with_readline="auto"
1431 # end --with-readline
1433 # OpenLDAP --with-threads
1434 # Check whether --with-threads or --without-threads was given.
1435 if test "${with_threads+set}" = set; then
1436 withval="$with_threads"
1439 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1440 if test "$withval" = "$ol_val" ; then
1444 if test "$ol_arg" = "invalid" ; then
1445 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1447 ol_with_threads="$ol_arg"
1450 ol_with_threads="auto"
1452 # end --with-threads
1454 # OpenLDAP --with-tls
1455 # Check whether --with-tls or --without-tls was given.
1456 if test "${with_tls+set}" = set; then
1460 for ol_val in auto ssleay openssl yes no ; do
1461 if test "$withval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1468 ol_with_tls="$ol_arg"
1475 # OpenLDAP --with-yielding_select
1476 # Check whether --with-yielding_select or --without-yielding_select was given.
1477 if test "${with_yielding_select+set}" = set; then
1478 withval="$with_yielding_select"
1481 for ol_val in auto yes no manual ; do
1482 if test "$withval" = "$ol_val" ; then
1486 if test "$ol_arg" = "invalid" ; then
1487 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1489 ol_with_yielding_select="$ol_arg"
1492 ol_with_yielding_select="auto"
1494 # end --with-yielding_select
1498 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1499 if test "${with_xxslapdoptions+set}" = set; then
1500 withval="$with_xxslapdoptions"
1504 # OpenLDAP --enable-slapd
1505 # Check whether --enable-slapd or --disable-slapd was given.
1506 if test "${enable_slapd+set}" = set; then
1507 enableval="$enable_slapd"
1510 for ol_val in auto yes no ; do
1511 if test "$enableval" = "$ol_val" ; then
1515 if test "$ol_arg" = "invalid" ; then
1516 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1518 ol_enable_slapd="$ol_arg"
1521 ol_enable_slapd="yes"
1523 # end --enable-slapd
1524 # OpenLDAP --enable-cleartext
1525 # Check whether --enable-cleartext or --disable-cleartext was given.
1526 if test "${enable_cleartext+set}" = set; then
1527 enableval="$enable_cleartext"
1530 for ol_val in auto yes no ; do
1531 if test "$enableval" = "$ol_val" ; then
1535 if test "$ol_arg" = "invalid" ; then
1536 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1538 ol_enable_cleartext="$ol_arg"
1541 ol_enable_cleartext="yes"
1543 # end --enable-cleartext
1544 # OpenLDAP --enable-crypt
1545 # Check whether --enable-crypt or --disable-crypt was given.
1546 if test "${enable_crypt+set}" = set; then
1547 enableval="$enable_crypt"
1550 for ol_val in auto yes no ; do
1551 if test "$enableval" = "$ol_val" ; then
1555 if test "$ol_arg" = "invalid" ; then
1556 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1558 ol_enable_crypt="$ol_arg"
1561 ol_enable_crypt="auto"
1563 # end --enable-crypt
1564 # OpenLDAP --enable-kpasswd
1565 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1566 if test "${enable_kpasswd+set}" = set; then
1567 enableval="$enable_kpasswd"
1570 for ol_val in auto yes no ; do
1571 if test "$enableval" = "$ol_val" ; then
1575 if test "$ol_arg" = "invalid" ; then
1576 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1578 ol_enable_kpasswd="$ol_arg"
1581 ol_enable_kpasswd="no"
1583 # end --enable-kpasswd
1584 # OpenLDAP --enable-spasswd
1585 # Check whether --enable-spasswd or --disable-spasswd was given.
1586 if test "${enable_spasswd+set}" = set; then
1587 enableval="$enable_spasswd"
1590 for ol_val in auto yes no ; do
1591 if test "$enableval" = "$ol_val" ; then
1595 if test "$ol_arg" = "invalid" ; then
1596 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1598 ol_enable_spasswd="$ol_arg"
1601 ol_enable_spasswd="no"
1603 # end --enable-spasswd
1604 # OpenLDAP --enable-modules
1605 # Check whether --enable-modules or --disable-modules was given.
1606 if test "${enable_modules+set}" = set; then
1607 enableval="$enable_modules"
1610 for ol_val in auto yes no ; do
1611 if test "$enableval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1618 ol_enable_modules="$ol_arg"
1621 ol_enable_modules="no"
1623 # end --enable-modules
1624 # OpenLDAP --enable-phonetic
1625 # Check whether --enable-phonetic or --disable-phonetic was given.
1626 if test "${enable_phonetic+set}" = set; then
1627 enableval="$enable_phonetic"
1630 for ol_val in auto yes no ; do
1631 if test "$enableval" = "$ol_val" ; then
1635 if test "$ol_arg" = "invalid" ; then
1636 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1638 ol_enable_phonetic="$ol_arg"
1641 ol_enable_phonetic="no"
1643 # end --enable-phonetic
1644 # OpenLDAP --enable-rlookups
1645 # Check whether --enable-rlookups or --disable-rlookups was given.
1646 if test "${enable_rlookups+set}" = set; then
1647 enableval="$enable_rlookups"
1650 for ol_val in auto yes no ; do
1651 if test "$enableval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1658 ol_enable_rlookups="$ol_arg"
1661 ol_enable_rlookups="no"
1663 # end --enable-rlookups
1664 # OpenLDAP --enable-aci
1665 # Check whether --enable-aci or --disable-aci was given.
1666 if test "${enable_aci+set}" = set; then
1667 enableval="$enable_aci"
1670 for ol_val in auto yes no ; do
1671 if test "$enableval" = "$ol_val" ; then
1675 if test "$ol_arg" = "invalid" ; then
1676 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1678 ol_enable_aci="$ol_arg"
1684 # OpenLDAP --enable-wrappers
1685 # Check whether --enable-wrappers or --disable-wrappers was given.
1686 if test "${enable_wrappers+set}" = set; then
1687 enableval="$enable_wrappers"
1690 for ol_val in auto yes no ; do
1691 if test "$enableval" = "$ol_val" ; then
1695 if test "$ol_arg" = "invalid" ; then
1696 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1698 ol_enable_wrappers="$ol_arg"
1701 ol_enable_wrappers="no"
1703 # end --enable-wrappers
1704 # OpenLDAP --enable-dynamic
1705 # Check whether --enable-dynamic or --disable-dynamic was given.
1706 if test "${enable_dynamic+set}" = set; then
1707 enableval="$enable_dynamic"
1710 for ol_val in auto yes no ; do
1711 if test "$enableval" = "$ol_val" ; then
1715 if test "$ol_arg" = "invalid" ; then
1716 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1718 ol_enable_dynamic="$ol_arg"
1721 ol_enable_dynamic="no"
1723 # end --enable-dynamic
1725 # OpenLDAP --enable-dnssrv
1726 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1727 if test "${enable_dnssrv+set}" = set; then
1728 enableval="$enable_dnssrv"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1739 ol_enable_dnssrv="$ol_arg"
1742 ol_enable_dnssrv="no"
1744 # end --enable-dnssrv
1745 # OpenLDAP --with-dnssrv_module
1746 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1747 if test "${with_dnssrv_module+set}" = set; then
1748 withval="$with_dnssrv_module"
1751 for ol_val in static dynamic ; do
1752 if test "$withval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1759 ol_with_dnssrv_module="$ol_arg"
1762 ol_with_dnssrv_module="static"
1764 # end --with-dnssrv_module
1766 # OpenLDAP --enable-ldap
1767 # Check whether --enable-ldap or --disable-ldap was given.
1768 if test "${enable_ldap+set}" = set; then
1769 enableval="$enable_ldap"
1772 for ol_val in auto yes no ; do
1773 if test "$enableval" = "$ol_val" ; then
1777 if test "$ol_arg" = "invalid" ; then
1778 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1780 ol_enable_ldap="$ol_arg"
1786 # OpenLDAP --with-ldap_module
1787 # Check whether --with-ldap_module or --without-ldap_module was given.
1788 if test "${with_ldap_module+set}" = set; then
1789 withval="$with_ldap_module"
1792 for ol_val in static dynamic ; do
1793 if test "$withval" = "$ol_val" ; then
1797 if test "$ol_arg" = "invalid" ; then
1798 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
1800 ol_with_ldap_module="$ol_arg"
1803 ol_with_ldap_module="static"
1805 # end --with-ldap_module
1807 # OpenLDAP --enable-ldbm
1808 # Check whether --enable-ldbm or --disable-ldbm was given.
1809 if test "${enable_ldbm+set}" = set; then
1810 enableval="$enable_ldbm"
1813 for ol_val in auto yes no ; do
1814 if test "$enableval" = "$ol_val" ; then
1818 if test "$ol_arg" = "invalid" ; then
1819 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1821 ol_enable_ldbm="$ol_arg"
1824 ol_enable_ldbm="yes"
1827 # OpenLDAP --with-ldbm_api
1828 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1829 if test "${with_ldbm_api+set}" = set; then
1830 withval="$with_ldbm_api"
1833 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1834 if test "$withval" = "$ol_val" ; then
1838 if test "$ol_arg" = "invalid" ; then
1839 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1841 ol_with_ldbm_api="$ol_arg"
1844 ol_with_ldbm_api="auto"
1846 # end --with-ldbm_api
1848 # OpenLDAP --with-ldbm_module
1849 # Check whether --with-ldbm_module or --without-ldbm_module was given.
1850 if test "${with_ldbm_module+set}" = set; then
1851 withval="$with_ldbm_module"
1854 for ol_val in static dynamic ; do
1855 if test "$withval" = "$ol_val" ; then
1859 if test "$ol_arg" = "invalid" ; then
1860 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
1862 ol_with_ldbm_module="$ol_arg"
1865 ol_with_ldbm_module="static"
1867 # end --with-ldbm_module
1869 # OpenLDAP --with-ldbm_type
1870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
1871 if test "${with_ldbm_type+set}" = set; then
1872 withval="$with_ldbm_type"
1875 for ol_val in auto btree hash ; do
1876 if test "$withval" = "$ol_val" ; then
1880 if test "$ol_arg" = "invalid" ; then
1881 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
1883 ol_with_ldbm_type="$ol_arg"
1886 ol_with_ldbm_type="auto"
1888 # end --with-ldbm_type
1890 # OpenLDAP --enable-passwd
1891 # Check whether --enable-passwd or --disable-passwd was given.
1892 if test "${enable_passwd+set}" = set; then
1893 enableval="$enable_passwd"
1896 for ol_val in auto yes no ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
1904 ol_enable_passwd="$ol_arg"
1907 ol_enable_passwd="no"
1909 # end --enable-passwd
1910 # OpenLDAP --with-passwd_module
1911 # Check whether --with-passwd_module or --without-passwd_module was given.
1912 if test "${with_passwd_module+set}" = set; then
1913 withval="$with_passwd_module"
1916 for ol_val in static dynamic ; do
1917 if test "$withval" = "$ol_val" ; then
1921 if test "$ol_arg" = "invalid" ; then
1922 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
1924 ol_with_passwd_module="$ol_arg"
1927 ol_with_passwd_module="static"
1929 # end --with-passwd_module
1931 # OpenLDAP --enable-shell
1932 # Check whether --enable-shell or --disable-shell was given.
1933 if test "${enable_shell+set}" = set; then
1934 enableval="$enable_shell"
1937 for ol_val in auto yes no ; do
1938 if test "$enableval" = "$ol_val" ; then
1942 if test "$ol_arg" = "invalid" ; then
1943 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
1945 ol_enable_shell="$ol_arg"
1948 ol_enable_shell="no"
1950 # end --enable-shell
1951 # OpenLDAP --with-shell_module
1952 # Check whether --with-shell_module or --without-shell_module was given.
1953 if test "${with_shell_module+set}" = set; then
1954 withval="$with_shell_module"
1957 for ol_val in static dynamic ; do
1958 if test "$withval" = "$ol_val" ; then
1962 if test "$ol_arg" = "invalid" ; then
1963 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
1965 ol_with_shell_module="$ol_arg"
1968 ol_with_shell_module="static"
1970 # end --with-shell_module
1972 # OpenLDAP --enable-sql
1973 # Check whether --enable-sql or --disable-sql was given.
1974 if test "${enable_sql+set}" = set; then
1975 enableval="$enable_sql"
1978 for ol_val in auto yes no ; do
1979 if test "$enableval" = "$ol_val" ; then
1983 if test "$ol_arg" = "invalid" ; then
1984 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
1986 ol_enable_sql="$ol_arg"
1992 # OpenLDAP --with-sql_module
1993 # Check whether --with-sql_module or --without-sql_module was given.
1994 if test "${with_sql_module+set}" = set; then
1995 withval="$with_sql_module"
1998 for ol_val in static dynamic ; do
1999 if test "$withval" = "$ol_val" ; then
2003 if test "$ol_arg" = "invalid" ; then
2004 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2006 ol_with_sql_module="$ol_arg"
2009 ol_with_sql_module="static"
2011 # end --with-sql_module
2014 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2015 if test "${with_xxslurpdoptions+set}" = set; then
2016 withval="$with_xxslurpdoptions"
2020 # OpenLDAP --enable-slurpd
2021 # Check whether --enable-slurpd or --disable-slurpd was given.
2022 if test "${enable_slurpd+set}" = set; then
2023 enableval="$enable_slurpd"
2026 for ol_val in auto yes no ; do
2027 if test "$enableval" = "$ol_val" ; then
2031 if test "$ol_arg" = "invalid" ; then
2032 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2034 ol_enable_slurpd="$ol_arg"
2037 ol_enable_slurpd="auto"
2039 # end --enable-slurpd
2041 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2042 if test "${with_xxliboptions+set}" = set; then
2043 withval="$with_xxliboptions"
2047 # Check whether --enable-static or --disable-static was given.
2048 if test "${enable_static+set}" = set; then
2049 enableval="$enable_static"
2050 p=${PACKAGE-default}
2051 case "$enableval" in
2052 yes) enable_static=yes ;;
2053 no) enable_static=no ;;
2056 # Look at the argument we got. We use all the common list separators.
2057 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2058 for pkg in $enableval; do
2059 if test "X$pkg" = "X$p"; then
2070 # Check whether --enable-shared or --disable-shared was given.
2071 if test "${enable_shared+set}" = set; then
2072 enableval="$enable_shared"
2073 p=${PACKAGE-default}
2074 case "$enableval" in
2075 yes) enable_shared=yes ;;
2076 no) enable_shared=no ;;
2079 # Look at the argument we got. We use all the common list separators.
2080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2081 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2096 if test $ol_enable_slapd = no ; then
2097 if test $ol_enable_dnssrv = yes ; then
2098 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2100 if test $ol_enable_ldap = yes ; then
2101 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2103 if test $ol_enable_ldbm = yes ; then
2104 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2106 if test $ol_enable_passwd = yes ; then
2107 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2109 if test $ol_enable_shell = yes ; then
2110 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2112 if test $ol_enable_sql = yes ; then
2113 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2115 if test $ol_enable_modules = yes ; then
2116 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2118 if test $ol_enable_wrappers = yes ; then
2119 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2121 if test $ol_enable_phonetic = yes ; then
2122 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2124 if test $ol_enable_rlookups = yes ; then
2125 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2127 if test $ol_enable_aci = yes ; then
2128 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2130 if test $ol_with_ldbm_api != auto ; then
2131 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2133 if test $ol_with_ldbm_type != auto ; then
2134 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2136 if test $ol_with_dnssrv_module != static ; then
2137 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2139 if test $ol_with_ldap_module != static ; then
2140 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2142 if test $ol_with_ldbm_module != static ; then
2143 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2145 if test $ol_with_passwd_module != static ; then
2146 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2148 if test $ol_with_shell_module != static ; then
2149 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2151 if test $ol_with_sql_module != static ; then
2152 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2154 if test $ol_enable_slurpd = yes ; then
2155 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2158 # force settings to no
2166 ol_enable_modules=no
2167 ol_enable_phonetic=no
2168 ol_enable_rlookups=no
2170 ol_enable_wrappers=no
2171 ol_enable_dynamic=no
2174 ol_with_ldbm_type=no
2176 ol_with_dnssrv_module=static
2177 ol_with_ldap_module=static
2178 ol_with_ldbm_module=static
2179 ol_with_passwd_module=static
2180 ol_with_shell_module=static
2181 ol_with_sql_module=static
2185 elif test $ol_enable_ldbm = no ; then
2187 if test $ol_with_ldbm_api != auto ; then
2188 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2191 if test $ol_with_ldbm_type != auto ; then
2192 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2195 if test $ol_with_ldbm_module != static ; then
2196 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2199 if test $ol_enable_modules != yes -a \
2200 $ol_enable_dnssrv = no -a \
2201 $ol_enable_ldap = no -a \
2202 $ol_enable_passwd = no -a \
2203 $ol_enable_shell = no -a \
2204 $ol_enable_sql = no ; then
2205 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2209 ol_with_ldbm_type=no
2210 ol_with_ldbm_module=static
2213 if test $ol_with_ldbm_api = gdbm -a \
2214 $ol_with_ldbm_type = btree ; then
2215 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2217 if test $ol_with_ldbm_api = mdbm -a \
2218 $ol_with_ldbm_type = btree ; then
2219 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2221 if test $ol_with_ldbm_api = ndbm -a \
2222 $ol_with_ldbm_type = btree ; then
2223 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2227 if test $ol_enable_slurpd = yes ; then
2228 if test $ol_with_threads = no ; then
2229 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2233 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2234 if test $ol_with_kerberos = no ; then
2235 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2236 elif $ol_with_kerberos = auto ; then
2237 ol_with_kerberos=yes
2240 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2241 if test $ol_with_kerberos = auto ; then
2243 elif test $ol_with_kerberos != no ; then
2244 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2249 if test $ol_enable_spasswd = yes ; then
2250 if test $ol_with_cyrus_sasl = no ; then
2251 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2253 ol_with_cyrus_sasl=yes
2256 echo "$ac_t""done" 1>&6
2279 BUILD_DNSSRV_DYNAMIC=static
2280 BUILD_LDAP_DYNAMIC=static
2281 BUILD_LDBM_DYNAMIC=static
2282 BUILD_PASSWD_DYNAMIC=static
2283 BUILD_SHELL_DYNAMIC=static
2284 BUILD_SQL_DYNAMIC=static
2286 SLAPD_MODULES_LDFLAGS=
2287 SLAPD_MODULES_CPPFLAGS=
2305 cat >> confdefs.h <<\EOF
2306 #define HAVE_MKVERSION 1
2314 *-*-aix*) if test -z "$CC" ; then
2315 case "$ol_with_threads" in
2316 auto | yes | posix) ol_aix_threads=yes ;;
2322 if test $ol_aix_threads = yes ; then
2323 if test -z "${CC}" ; then
2324 for ac_prog in cc_r xlc_r cc
2326 # Extract the first word of "$ac_prog", so it can be a program name with args.
2327 set dummy $ac_prog; ac_word=$2
2328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2329 echo "configure:2330: checking for $ac_word" >&5
2330 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 if test -n "$CC"; then
2334 ac_cv_prog_CC="$CC" # Let the user override the test.
2336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2338 for ac_dir in $ac_dummy; do
2339 test -z "$ac_dir" && ac_dir=.
2340 if test -f $ac_dir/$ac_word; then
2341 ac_cv_prog_CC="$ac_prog"
2349 if test -n "$CC"; then
2350 echo "$ac_t""$CC" 1>&6
2352 echo "$ac_t""no" 1>&6
2355 test -n "$CC" && break
2359 if test "$CC" = cc ; then
2360 if test $ol_with_threads != auto ; then
2361 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2363 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2369 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2370 ol_with_threads=posix
2371 ol_cv_pthread_create=yes
2375 if test -z "${CC}"; then
2378 # Extract the first word of "$ac_prog", so it can be a program name with args.
2379 set dummy $ac_prog; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2385 if test -n "$CC"; then
2386 ac_cv_prog_CC="$CC" # Let the user override the test.
2388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2390 for ac_dir in $ac_dummy; do
2391 test -z "$ac_dir" && ac_dir=.
2392 if test -f $ac_dir/$ac_word; then
2393 ac_cv_prog_CC="$ac_prog"
2401 if test -n "$CC"; then
2402 echo "$ac_t""$CC" 1>&6
2404 echo "$ac_t""no" 1>&6
2407 test -n "$CC" && break
2415 # Check whether --enable-fast-install or --disable-fast-install was given.
2416 if test "${enable_fast_install+set}" = set; then
2417 enableval="$enable_fast_install"
2418 p=${PACKAGE-default}
2419 case "$enableval" in
2420 yes) enable_fast_install=yes ;;
2421 no) enable_fast_install=no ;;
2423 enable_fast_install=no
2424 # Look at the argument we got. We use all the common list separators.
2425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2426 for pkg in $enableval; do
2427 if test "X$pkg" = "X$p"; then
2428 enable_fast_install=yes
2435 enable_fast_install=yes
2438 # Extract the first word of "ranlib", so it can be a program name with args.
2439 set dummy ranlib; ac_word=$2
2440 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2441 echo "configure:2442: checking for $ac_word" >&5
2442 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 if test -n "$RANLIB"; then
2446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2448 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2450 for ac_dir in $ac_dummy; do
2451 test -z "$ac_dir" && ac_dir=.
2452 if test -f $ac_dir/$ac_word; then
2453 ac_cv_prog_RANLIB="ranlib"
2458 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2461 RANLIB="$ac_cv_prog_RANLIB"
2462 if test -n "$RANLIB"; then
2463 echo "$ac_t""$RANLIB" 1>&6
2465 echo "$ac_t""no" 1>&6
2468 # Extract the first word of "gcc", so it can be a program name with args.
2469 set dummy gcc; ac_word=$2
2470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2471 echo "configure:2472: checking for $ac_word" >&5
2472 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 if test -n "$CC"; then
2476 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2480 for ac_dir in $ac_dummy; do
2481 test -z "$ac_dir" && ac_dir=.
2482 if test -f $ac_dir/$ac_word; then
2491 if test -n "$CC"; then
2492 echo "$ac_t""$CC" 1>&6
2494 echo "$ac_t""no" 1>&6
2497 if test -z "$CC"; then
2498 # Extract the first word of "cc", so it can be a program name with args.
2499 set dummy cc; ac_word=$2
2500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2501 echo "configure:2502: checking for $ac_word" >&5
2502 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 if test -n "$CC"; then
2506 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2511 for ac_dir in $ac_dummy; do
2512 test -z "$ac_dir" && ac_dir=.
2513 if test -f $ac_dir/$ac_word; then
2514 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2515 ac_prog_rejected=yes
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2527 if test $# -gt 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2532 set dummy "$ac_dir/$ac_word" "$@"
2540 if test -n "$CC"; then
2541 echo "$ac_t""$CC" 1>&6
2543 echo "$ac_t""no" 1>&6
2546 if test -z "$CC"; then
2547 case "`uname -s`" in
2548 *win32* | *WIN32* | *CYGWIN*)
2549 # Extract the first word of "cl", so it can be a program name with args.
2550 set dummy cl; ac_word=$2
2551 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2552 echo "configure:2553: checking for $ac_word" >&5
2553 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2554 echo $ac_n "(cached) $ac_c" 1>&6
2556 if test -n "$CC"; then
2557 ac_cv_prog_CC="$CC" # Let the user override the test.
2559 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2561 for ac_dir in $ac_dummy; do
2562 test -z "$ac_dir" && ac_dir=.
2563 if test -f $ac_dir/$ac_word; then
2572 if test -n "$CC"; then
2573 echo "$ac_t""$CC" 1>&6
2575 echo "$ac_t""no" 1>&6
2580 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2583 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2584 echo "configure:2585: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
2587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2591 cross_compiling=$ac_cv_prog_cc_cross
2593 cat > conftest.$ac_ext << EOF
2595 #line 2596 "configure"
2596 #include "confdefs.h"
2600 if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2601 ac_cv_prog_cc_works=yes
2602 # If we can't run a trivial program, we are probably using a cross compiler.
2603 if (./conftest; exit) 2>/dev/null; then
2604 ac_cv_prog_cc_cross=no
2606 ac_cv_prog_cc_cross=yes
2609 echo "configure: failed program was:" >&5
2610 cat conftest.$ac_ext >&5
2611 ac_cv_prog_cc_works=no
2615 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2618 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2619 cross_compiling=$ac_cv_prog_cc_cross
2621 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2622 if test $ac_cv_prog_cc_works = no; then
2623 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2625 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2626 echo "configure:2627: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
2627 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2628 cross_compiling=$ac_cv_prog_cc_cross
2630 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2631 echo "configure:2632: checking whether we are using GNU C" >&5
2632 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
2633 echo $ac_n "(cached) $ac_c" 1>&6
2635 cat > conftest.c <<EOF
2640 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2641: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2647 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2649 if test $ac_cv_prog_gcc = yes; then
2655 ac_test_CFLAGS="${CFLAGS+set}"
2656 ac_save_CFLAGS="$CFLAGS"
2658 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2659 echo "configure:2660: checking whether ${CC-cc} accepts -g" >&5
2660 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
2661 echo $ac_n "(cached) $ac_c" 1>&6
2663 echo 'void f(){}' > conftest.c
2664 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2673 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2674 if test "$ac_test_CFLAGS" = set; then
2675 CFLAGS="$ac_save_CFLAGS"
2676 elif test $ac_cv_prog_cc_g = yes; then
2677 if test "$GCC" = yes; then
2683 if test "$GCC" = yes; then
2690 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2691 if test "${with_gnu_ld+set}" = set; then
2692 withval="$with_gnu_ld"
2693 test "$withval" = no || with_gnu_ld=yes
2699 if test "$ac_cv_prog_gcc" = yes; then
2700 # Check if gcc -print-prog-name=ld gives a path.
2701 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2702 echo "configure:2703: checking for ld used by GCC" >&5
2703 ac_prog=`($CC -print-prog-name=ld) 2>&5`
2705 # Accept absolute paths.
2706 [\\/]* | [A-Za-z]:[\\/]*)
2707 re_direlt='/[^/][^/]*/\.\./'
2708 # Canonicalize the path of ld
2709 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2710 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2711 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2713 test -z "$LD" && LD="$ac_prog"
2716 # If it fails, then pretend we aren't using GCC.
2720 # If it is relative, then search for the first ld in PATH.
2724 elif test "$with_gnu_ld" = yes; then
2725 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2726 echo "configure:2727: checking for GNU ld" >&5
2728 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2729 echo "configure:2730: checking for non-GNU ld" >&5
2731 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
2732 echo $ac_n "(cached) $ac_c" 1>&6
2734 if test -z "$LD"; then
2735 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2736 for ac_dir in $PATH; do
2737 test -z "$ac_dir" && ac_dir=.
2738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2739 ac_cv_path_LD="$ac_dir/$ac_prog"
2740 # Check to see if the program is GNU ld. I'd rather use --version,
2741 # but apparently some GNU ld's only accept -v.
2742 # Break only if it was the GNU/non-GNU ld that we prefer.
2743 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2744 test "$with_gnu_ld" != no && break
2746 test "$with_gnu_ld" != yes && break
2752 ac_cv_path_LD="$LD" # Let the user override the test with a path.
2757 if test -n "$LD"; then
2758 echo "$ac_t""$LD" 1>&6
2760 echo "$ac_t""no" 1>&6
2762 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2763 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2764 echo "configure:2765: checking if the linker ($LD) is GNU ld" >&5
2765 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2769 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2770 ac_cv_prog_gnu_ld=yes
2772 ac_cv_prog_gnu_ld=no
2776 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
2779 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2780 echo "configure:2781: checking for BSD-compatible nm" >&5
2781 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
2782 echo $ac_n "(cached) $ac_c" 1>&6
2784 if test -n "$NM"; then
2785 # Let the user override the test.
2788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2789 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2790 test -z "$ac_dir" && ac_dir=.
2791 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
2792 # Check to see if the nm accepts a BSD-compat flag.
2793 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2794 # nm: unknown option "B" ignored
2795 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2796 ac_cv_path_NM="$ac_dir/nm -B"
2798 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2799 ac_cv_path_NM="$ac_dir/nm -p"
2802 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
2803 continue # so that we can try to find one that supports BSD flags
2808 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
2813 echo "$ac_t""$NM" 1>&6
2815 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2816 echo "configure:2817: checking whether ln -s works" >&5
2817 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2821 if ln -s X conftestdata 2>/dev/null
2824 ac_cv_prog_LN_S="ln -s"
2829 LN_S="$ac_cv_prog_LN_S"
2830 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2831 echo "$ac_t""yes" 1>&6
2833 echo "$ac_t""no" 1>&6
2836 if test $host != $build; then
2837 ac_tool_prefix=${host_alias}-
2844 NONE) lt_target="$host" ;;
2845 *) lt_target="$target" ;;
2848 # Check for any special flags to pass to ltconfig.
2849 libtool_flags="--cache-file=$cache_file"
2850 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2851 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2852 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2853 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2854 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2855 libtool_flags="$libtool_flags --enable-dlopen"
2856 libtool_flags="$libtool_flags --enable-win32-dll"
2857 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2858 if test "${enable_libtool_lock+set}" = set; then
2859 enableval="$enable_libtool_lock"
2863 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2864 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2866 # Some flags need to be propagated to the compiler or linker for good
2868 case "$lt_target" in
2870 # Find out which ABI we are using.
2871 echo '#line 2872 "configure"' > conftest.$ac_ext
2872 if { (eval echo configure:2873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2873 case "`/usr/bin/file conftest.o`" in
2889 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2890 SAVE_CFLAGS="$CFLAGS"
2891 CFLAGS="$CFLAGS -belf"
2892 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2893 echo "configure:2894: checking whether the C compiler needs -belf" >&5
2894 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2905 if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2907 lt_cv_cc_needs_belf=yes
2909 echo "configure: failed program was:" >&5
2910 cat conftest.$ac_ext >&5
2912 lt_cv_cc_needs_belf=no
2917 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2918 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2919 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2920 CFLAGS="$SAVE_CFLAGS"
2924 *-*-cygwin* | *-*-mingw*)
2925 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2926 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2928 echo "configure:2929: checking for $ac_word" >&5
2929 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2930 echo $ac_n "(cached) $ac_c" 1>&6
2932 if test -n "$DLLTOOL"; then
2933 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2937 for ac_dir in $ac_dummy; do
2938 test -z "$ac_dir" && ac_dir=.
2939 if test -f $ac_dir/$ac_word; then
2940 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2947 DLLTOOL="$ac_cv_prog_DLLTOOL"
2948 if test -n "$DLLTOOL"; then
2949 echo "$ac_t""$DLLTOOL" 1>&6
2951 echo "$ac_t""no" 1>&6
2955 if test -z "$ac_cv_prog_DLLTOOL"; then
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "dlltool", so it can be a program name with args.
2958 set dummy dlltool; ac_word=$2
2959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2960 echo "configure:2961: checking for $ac_word" >&5
2961 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2964 if test -n "$DLLTOOL"; then
2965 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2969 for ac_dir in $ac_dummy; do
2970 test -z "$ac_dir" && ac_dir=.
2971 if test -f $ac_dir/$ac_word; then
2972 ac_cv_prog_DLLTOOL="dlltool"
2977 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2980 DLLTOOL="$ac_cv_prog_DLLTOOL"
2981 if test -n "$DLLTOOL"; then
2982 echo "$ac_t""$DLLTOOL" 1>&6
2984 echo "$ac_t""no" 1>&6
2992 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2993 set dummy ${ac_tool_prefix}as; ac_word=$2
2994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2995 echo "configure:2996: checking for $ac_word" >&5
2996 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
2997 echo $ac_n "(cached) $ac_c" 1>&6
2999 if test -n "$AS"; then
3000 ac_cv_prog_AS="$AS" # Let the user override the test.
3002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3004 for ac_dir in $ac_dummy; do
3005 test -z "$ac_dir" && ac_dir=.
3006 if test -f $ac_dir/$ac_word; then
3007 ac_cv_prog_AS="${ac_tool_prefix}as"
3015 if test -n "$AS"; then
3016 echo "$ac_t""$AS" 1>&6
3018 echo "$ac_t""no" 1>&6
3022 if test -z "$ac_cv_prog_AS"; then
3023 if test -n "$ac_tool_prefix"; then
3024 # Extract the first word of "as", so it can be a program name with args.
3025 set dummy as; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 if test -n "$AS"; then
3032 ac_cv_prog_AS="$AS" # Let the user override the test.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3044 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3048 if test -n "$AS"; then
3049 echo "$ac_t""$AS" 1>&6
3051 echo "$ac_t""no" 1>&6
3059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3061 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3062 echo "configure:3063: checking for $ac_word" >&5
3063 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3066 if test -n "$OBJDUMP"; then
3067 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3069 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3071 for ac_dir in $ac_dummy; do
3072 test -z "$ac_dir" && ac_dir=.
3073 if test -f $ac_dir/$ac_word; then
3074 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3081 OBJDUMP="$ac_cv_prog_OBJDUMP"
3082 if test -n "$OBJDUMP"; then
3083 echo "$ac_t""$OBJDUMP" 1>&6
3085 echo "$ac_t""no" 1>&6
3089 if test -z "$ac_cv_prog_OBJDUMP"; then
3090 if test -n "$ac_tool_prefix"; then
3091 # Extract the first word of "objdump", so it can be a program name with args.
3092 set dummy objdump; ac_word=$2
3093 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3094 echo "configure:3095: checking for $ac_word" >&5
3095 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
3096 echo $ac_n "(cached) $ac_c" 1>&6
3098 if test -n "$OBJDUMP"; then
3099 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3103 for ac_dir in $ac_dummy; do
3104 test -z "$ac_dir" && ac_dir=.
3105 if test -f $ac_dir/$ac_word; then
3106 ac_cv_prog_OBJDUMP="objdump"
3111 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
3114 OBJDUMP="$ac_cv_prog_OBJDUMP"
3115 if test -n "$OBJDUMP"; then
3116 echo "$ac_t""$OBJDUMP" 1>&6
3118 echo "$ac_t""no" 1>&6
3131 # Save cache, so that ltconfig can load it
3134 # Actually configure libtool. ac_aux_dir is where install-sh is found.
3135 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3136 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3137 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
3138 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
3139 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3140 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
3141 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3143 # Reload cache, that may have been modified by ltconfig
3146 # This can be used to rebuild libtool when needed
3147 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
3149 # Always use our own libtool.
3150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3152 # Redirect the config.log output again, so that the ltconfig log is not
3153 # clobbered by the next message.
3154 exec 5>>./config.log
3157 for ac_prog in mawk gawk nawk awk
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy $ac_prog; ac_word=$2
3161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3162 echo "configure:3163: checking for $ac_word" >&5
3163 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 if test -n "$AWK"; then
3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3171 for ac_dir in $ac_dummy; do
3172 test -z "$ac_dir" && ac_dir=.
3173 if test -f $ac_dir/$ac_word; then
3174 ac_cv_prog_AWK="$ac_prog"
3181 AWK="$ac_cv_prog_AWK"
3182 if test -n "$AWK"; then
3183 echo "$ac_t""$AWK" 1>&6
3185 echo "$ac_t""no" 1>&6
3188 test -n "$AWK" && break
3191 # test for ln hardlink support
3192 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
3193 echo "configure:3194: checking whether ln works" >&5
3194 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
3195 echo $ac_n "(cached) $ac_c" 1>&6
3197 rm -f conftest.src conftest.dst
3198 echo "conftest" > conftest.src
3199 if ln conftest.src conftest.dst 2>/dev/null
3201 ol_cv_prog_LN_H="ln"
3203 ol_cv_prog_LN_H="cp"
3205 rm -f conftest.src conftest.dst
3208 LN_H="$ol_cv_prog_LN_H"
3209 if test "$ol_cv_prog_LN_H" = "ln"; then
3210 echo "$ac_t""yes" 1>&6
3212 echo "$ac_t""no" 1>&6
3215 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3216 echo "configure:3217: checking whether ln -s works" >&5
3217 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3218 echo $ac_n "(cached) $ac_c" 1>&6
3221 if ln -s X conftestdata 2>/dev/null
3224 ac_cv_prog_LN_S="ln -s"
3229 LN_S="$ac_cv_prog_LN_S"
3230 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3231 echo "$ac_t""yes" 1>&6
3233 echo "$ac_t""no" 1>&6
3237 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
3241 # Extract the first word of "sendmail", so it can be a program name with args.
3242 set dummy sendmail; ac_word=$2
3243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3244 echo "configure:3245: checking for $ac_word" >&5
3245 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
3246 echo $ac_n "(cached) $ac_c" 1>&6
3250 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
3253 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
3256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3257 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
3258 for ac_dir in $ac_dummy; do
3259 test -z "$ac_dir" && ac_dir=.
3260 if test -f $ac_dir/$ac_word; then
3261 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
3266 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
3270 SENDMAIL="$ac_cv_path_SENDMAIL"
3271 if test -n "$SENDMAIL"; then
3272 echo "$ac_t""$SENDMAIL" 1>&6
3274 echo "$ac_t""no" 1>&6
3277 # Extract the first word of "vi", so it can be a program name with args.
3278 set dummy vi; ac_word=$2
3279 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3280 echo "configure:3281: checking for $ac_word" >&5
3281 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3286 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
3289 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
3292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3293 ac_dummy="$PATH:/usr/ucb"
3294 for ac_dir in $ac_dummy; do
3295 test -z "$ac_dir" && ac_dir=.
3296 if test -f $ac_dir/$ac_word; then
3297 ac_cv_path_EDITOR="$ac_dir/$ac_word"
3302 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
3306 EDITOR="$ac_cv_path_EDITOR"
3307 if test -n "$EDITOR"; then
3308 echo "$ac_t""$EDITOR" 1>&6
3310 echo "$ac_t""no" 1>&6
3313 # Extract the first word of "finger", so it can be a program name with args.
3314 set dummy finger; ac_word=$2
3315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3316 echo "configure:3317: checking for $ac_word" >&5
3317 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3322 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
3325 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
3328 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3329 ac_dummy="$PATH:/usr/ucb"
3330 for ac_dir in $ac_dummy; do
3331 test -z "$ac_dir" && ac_dir=.
3332 if test -f $ac_dir/$ac_word; then
3333 ac_cv_path_FINGER="$ac_dir/$ac_word"
3338 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
3342 FINGER="$ac_cv_path_FINGER"
3343 if test -n "$FINGER"; then
3344 echo "$ac_t""$FINGER" 1>&6
3346 echo "$ac_t""no" 1>&6
3350 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3351 echo "configure:3352: checking how to run the C preprocessor" >&5
3352 # On Suns, sometimes $CPP names a directory.
3353 if test -n "$CPP" && test -d "$CPP"; then
3356 if test -z "$CPP"; then
3357 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 # This must be in double quotes, not single quotes, because CPP may get
3361 # substituted into the Makefile and "${CC-cc}" will confuse make.
3363 # On the NeXT, cc -E runs the code through the compiler's parser,
3364 # not just through cpp.
3365 cat > conftest.$ac_ext <<EOF
3366 #line 3367 "configure"
3367 #include "confdefs.h"
3371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3372 { (eval echo configure:3373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3374 if test -z "$ac_err"; then
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3381 CPP="${CC-cc} -E -traditional-cpp"
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3388 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3389 { (eval echo configure:3390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3390 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3391 if test -z "$ac_err"; then
3395 echo "configure: failed program was:" >&5
3396 cat conftest.$ac_ext >&5
3398 CPP="${CC-cc} -nologo -E"
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3406 { (eval echo configure:3407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3408 if test -z "$ac_err"; then
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3422 ac_cv_prog_CPP="$CPP"
3424 CPP="$ac_cv_prog_CPP"
3426 ac_cv_prog_CPP="$CPP"
3428 echo "$ac_t""$CPP" 1>&6
3431 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
3432 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
3434 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
3435 echo "configure: warning: programs compiled here do run here..." 1>&2
3436 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
3438 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
3439 echo "configure: warning: programs compiled here do not run here..." 1>&2
3440 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
3443 echo $ac_n "checking for AIX""... $ac_c" 1>&6
3444 echo "configure:3445: checking for AIX" >&5
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3454 egrep "yes" >/dev/null 2>&1; then
3456 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
3457 #define _ALL_SOURCE 1
3462 echo "$ac_t""no" 1>&6
3467 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
3468 echo "configure:3469: checking for POSIXized ISC" >&5
3469 if test -d /etc/conf/kconfig.d &&
3470 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
3472 echo "$ac_t""yes" 1>&6
3473 ISC=yes # If later tests want to check for ISC.
3474 cat >> confdefs.h <<\EOF
3475 #define _POSIX_SOURCE 1
3478 if test "$GCC" = yes; then
3484 echo "$ac_t""no" 1>&6
3488 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
3489 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
3490 echo "configure:3491: checking for minix/config.h" >&5
3491 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3492 echo $ac_n "(cached) $ac_c" 1>&6
3494 cat > conftest.$ac_ext <<EOF
3495 #line 3496 "configure"
3496 #include "confdefs.h"
3497 #include <minix/config.h>
3499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3500 { (eval echo configure:3501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3502 if test -z "$ac_err"; then
3504 eval "ac_cv_header_$ac_safe=yes"
3507 echo "configure: failed program was:" >&5
3508 cat conftest.$ac_ext >&5
3510 eval "ac_cv_header_$ac_safe=no"
3514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3518 echo "$ac_t""no" 1>&6
3522 if test "$MINIX" = yes; then
3523 cat >> confdefs.h <<\EOF
3524 #define _POSIX_SOURCE 1
3527 cat >> confdefs.h <<\EOF
3528 #define _POSIX_1_SOURCE 2
3531 cat >> confdefs.h <<\EOF
3538 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3539 echo "configure:3540: checking for Cygwin environment" >&5
3540 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3550 #define __CYGWIN__ __CYGWIN32__
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3567 echo "$ac_t""$ac_cv_cygwin" 1>&6
3569 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3570 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3571 echo "configure:3572: checking for mingw32 environment" >&5
3572 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3583 if { (eval echo configure:3584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 echo "configure: failed program was:" >&5
3588 cat conftest.$ac_ext >&5
3595 echo "$ac_t""$ac_cv_mingw32" 1>&6
3597 test "$ac_cv_mingw32" = yes && MINGW32=yes
3598 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3599 echo "configure:3600: checking for EMX OS/2 environment" >&5
3600 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3603 cat > conftest.$ac_ext <<EOF
3604 #line 3605 "configure"
3605 #include "confdefs.h"
3611 if { (eval echo configure:3612: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3623 echo "$ac_t""$ac_cv_emxos2" 1>&6
3625 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3629 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3630 echo "configure:3631: checking for executable suffix" >&5
3631 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3638 echo 'int main () { return 0; }' > conftest.$ac_ext
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3641 for file in conftest.*; do
3643 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3644 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3648 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3651 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3656 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3657 echo "$ac_t""${ac_cv_exeext}" 1>&6
3660 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3661 echo "configure:3662: checking for object suffix" >&5
3662 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3666 echo 'int i = 1;' > conftest.$ac_ext
3667 if { (eval echo configure:3668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 for ac_file in conftest.*; do
3671 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3675 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3680 echo "$ac_t""$ac_cv_objext" 1>&6
3681 OBJEXT=$ac_cv_objext
3682 ac_objext=$ac_cv_objext
3685 cat >> confdefs.h <<EOF
3686 #define EXEEXT "${EXEEXT}"
3690 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
3691 echo "configure:3692: checking for be_app in -lbe" >&5
3692 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
3693 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 ac_save_LIBS="$LIBS"
3697 LIBS="-lbe -lroot -lnet $LIBS"
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3701 /* Override any gcc2 internal prototype to avoid an error. */
3702 /* We use char because int might match the return type of a gcc2
3703 builtin and then its argument prototype would still apply. */
3710 if { (eval echo configure:3711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3712 eval "ac_cv_lib_$ac_lib_var=yes"
3714 echo "configure: failed program was:" >&5
3715 cat conftest.$ac_ext >&5
3717 eval "ac_cv_lib_$ac_lib_var=no"
3720 LIBS="$ac_save_LIBS"
3723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3724 echo "$ac_t""yes" 1>&6
3725 LIBS="$LIBS -lbe -lroot -lnet"
3727 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
3736 echo "configure:3737: checking for ${CC-cc} option to accept ANSI C" >&5
3737 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 am_cv_prog_cc_stdc=no
3742 # Don't try gcc -ansi; that turns off useful extensions and
3743 # breaks some systems' header files.
3744 # AIX -qlanglvl=ansi
3745 # Ultrix and OSF/1 -std1
3746 # HP-UX 10.20 and later -Ae
3747 # HP-UX older versions -Aa -D_HPUX_SOURCE
3748 # SVR4 -Xc -D__EXTENSIONS__
3749 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 cat > conftest.$ac_ext <<EOF
3753 #line 3754 "configure"
3754 #include "confdefs.h"
3757 #include <sys/types.h>
3758 #include <sys/stat.h>
3759 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3760 struct buf { int x; };
3761 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3762 static char *e (p, i)
3768 static char *f (char * (*g) (char **, int), char **p, ...)
3773 s = g (p, va_arg (v,int));
3777 int test (int i, double x);
3778 struct s1 {int (*f) (int a);};
3779 struct s2 {int (*f) (double a);};
3780 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3786 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3790 if { (eval echo configure:3791: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3792 am_cv_prog_cc_stdc="$ac_arg"; break
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3803 if test -z "$am_cv_prog_cc_stdc"; then
3804 echo "$ac_t""none needed" 1>&6
3806 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
3808 case "x$am_cv_prog_cc_stdc" in
3810 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3813 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
3814 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
3817 # test for make depend flag
3820 if test -z "${MKDEP}"; then
3822 if test -z "${MKDEP_FLAGS}"; then
3823 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
3824 echo "configure:3825: checking for ${OL_MKDEP} depend flag" >&5
3825 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
3826 echo $ac_n "(cached) $ac_c" 1>&6
3830 for flag in "-M" "-xM"; do
3831 cat > conftest.c <<EOF
3834 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:3835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
3835 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
3837 if test ! -f conftest."${ac_object}" ; then
3839 OL_MKDEP_FLAGS="$flag"
3848 echo "$ac_t""$ol_cv_mkdep" 1>&6
3851 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3856 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
3861 if test "${ol_cv_mkdep}" = no ; then
3862 # this will soon become an error
3863 echo "configure: warning: do not know how to generate dependencies" 1>&2
3866 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
3867 echo "configure:3868: checking for afopen in -ls" >&5
3868 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
3869 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3870 echo $ac_n "(cached) $ac_c" 1>&6
3872 ac_save_LIBS="$LIBS"
3874 cat > conftest.$ac_ext <<EOF
3875 #line 3876 "configure"
3876 #include "confdefs.h"
3877 /* Override any gcc2 internal prototype to avoid an error. */
3878 /* We use char because int might match the return type of a gcc2
3879 builtin and then its argument prototype would still apply. */
3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3888 eval "ac_cv_lib_$ac_lib_var=yes"
3890 echo "configure: failed program was:" >&5
3891 cat conftest.$ac_ext >&5
3893 eval "ac_cv_lib_$ac_lib_var=no"
3896 LIBS="$ac_save_LIBS"
3899 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3900 echo "$ac_t""yes" 1>&6
3903 cat >> confdefs.h <<\EOF
3904 #define HAVE_AIX_SECURITY 1
3909 echo "$ac_t""no" 1>&6
3915 if test $ol_enable_modules != no ; then
3916 for ac_hdr in ltdl.h
3918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3920 echo "configure:3921: checking for $ac_hdr" >&5
3921 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3930 { (eval echo configure:3931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3932 if test -z "$ac_err"; then
3934 eval "ac_cv_header_$ac_safe=yes"
3937 echo "configure: failed program was:" >&5
3938 cat conftest.$ac_ext >&5
3940 eval "ac_cv_header_$ac_safe=no"
3944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3947 cat >> confdefs.h <<EOF
3948 #define $ac_tr_hdr 1
3952 echo "$ac_t""no" 1>&6
3957 if test $ac_cv_header_ltdl_h = no ; then
3958 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
3961 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
3962 echo "configure:3963: checking for lt_dlinit in -lltdl" >&5
3963 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
3964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 ac_save_LIBS="$LIBS"
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 eval "ac_cv_lib_$ac_lib_var=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3988 eval "ac_cv_lib_$ac_lib_var=no"
3991 LIBS="$ac_save_LIBS"
3994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3998 cat >> confdefs.h <<\EOF
3999 #define HAVE_LIBLTDL 1
4004 echo "$ac_t""no" 1>&6
4008 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
4009 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
4013 ol_with_dnssrv_module=static
4014 ol_with_ldap_module=static
4015 ol_with_ldbm_module=static
4016 ol_with_passwd_module=static
4017 ol_with_shell_module=static
4018 ol_with_sql_module=static
4022 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
4023 echo "configure:4024: checking for EBCDIC" >&5
4024 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
4025 echo $ac_n "(cached) $ac_c" 1>&6
4028 cat > conftest.$ac_ext <<EOF
4029 #line 4030 "configure"
4030 #include "confdefs.h"
4033 #include <__ASCII__/generate_error.h>
4037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4038 { (eval echo configure:4039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4040 if test -z "$ac_err"; then
4042 ol_cv_cpp_ebcdic=yes
4045 echo "configure: failed program was:" >&5
4046 cat conftest.$ac_ext >&5
4053 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
4054 if test $ol_cv_cpp_ebcdic = yes ; then
4055 cat >> confdefs.h <<\EOF
4056 #define HAVE_EBCDIC 1
4061 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4062 echo "configure:4063: checking for ANSI C header files" >&5
4063 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4075 { (eval echo configure:4076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4077 if test -z "$ac_err"; then
4079 ol_cv_header_stdc=yes
4082 echo "configure: failed program was:" >&5
4083 cat conftest.$ac_ext >&5
4085 ol_cv_header_stdc=no
4089 if test $ol_cv_header_stdc = yes; then
4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4091 cat > conftest.$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097 egrep "memchr" >/dev/null 2>&1; then
4101 ol_cv_header_stdc=no
4107 if test $ol_cv_header_stdc = yes; then
4108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 egrep "free" >/dev/null 2>&1; then
4119 ol_cv_header_stdc=no
4125 if test $ol_cv_header_stdc = yes; then
4126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4127 if test "$cross_compiling" = yes; then
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4135 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4136 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4138 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4139 || ('j' <= (c) && (c) <= 'r') \
4140 || ('s' <= (c) && (c) <= 'z'))
4141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4143 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4144 int main () { int i; for (i = 0; i < 256; i++)
4145 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4149 if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4153 echo "configure: failed program was:" >&5
4154 cat conftest.$ac_ext >&5
4156 ol_cv_header_stdc=no
4164 echo "$ac_t""$ol_cv_header_stdc" 1>&6
4165 if test $ol_cv_header_stdc = yes; then
4166 cat >> confdefs.h <<\EOF
4167 #define STDC_HEADERS 1
4171 ac_cv_header_stdc=disable
4174 if test $ol_cv_header_stdc != yes; then
4175 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
4179 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
4181 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4182 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
4183 echo "configure:4184: checking for $ac_hdr that defines DIR" >&5
4184 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
4185 echo $ac_n "(cached) $ac_c" 1>&6
4187 cat > conftest.$ac_ext <<EOF
4188 #line 4189 "configure"
4189 #include "confdefs.h"
4190 #include <sys/types.h>
4196 if { (eval echo configure:4197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4198 eval "ac_cv_header_dirent_$ac_safe=yes"
4200 echo "configure: failed program was:" >&5
4201 cat conftest.$ac_ext >&5
4203 eval "ac_cv_header_dirent_$ac_safe=no"
4207 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
4208 echo "$ac_t""yes" 1>&6
4209 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4210 cat >> confdefs.h <<EOF
4211 #define $ac_tr_hdr 1
4213 ac_header_dirent=$ac_hdr; break
4215 echo "$ac_t""no" 1>&6
4218 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4219 if test $ac_header_dirent = dirent.h; then
4220 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
4221 echo "configure:4222: checking for opendir in -ldir" >&5
4222 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
4223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4224 echo $ac_n "(cached) $ac_c" 1>&6
4226 ac_save_LIBS="$LIBS"
4228 cat > conftest.$ac_ext <<EOF
4229 #line 4230 "configure"
4230 #include "confdefs.h"
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4240 if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4242 eval "ac_cv_lib_$ac_lib_var=yes"
4244 echo "configure: failed program was:" >&5
4245 cat conftest.$ac_ext >&5
4247 eval "ac_cv_lib_$ac_lib_var=no"
4250 LIBS="$ac_save_LIBS"
4253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254 echo "$ac_t""yes" 1>&6
4257 echo "$ac_t""no" 1>&6
4261 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
4262 echo "configure:4263: checking for opendir in -lx" >&5
4263 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
4264 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4265 echo $ac_n "(cached) $ac_c" 1>&6
4267 ac_save_LIBS="$LIBS"
4269 cat > conftest.$ac_ext <<EOF
4270 #line 4271 "configure"
4271 #include "confdefs.h"
4272 /* Override any gcc2 internal prototype to avoid an error. */
4273 /* We use char because int might match the return type of a gcc2
4274 builtin and then its argument prototype would still apply. */
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4283 eval "ac_cv_lib_$ac_lib_var=yes"
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4288 eval "ac_cv_lib_$ac_lib_var=no"
4291 LIBS="$ac_save_LIBS"
4294 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4295 echo "$ac_t""yes" 1>&6
4298 echo "$ac_t""no" 1>&6
4303 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4304 echo "configure:4305: checking for sys/wait.h that is POSIX.1 compatible" >&5
4305 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #include <sys/types.h>
4312 #include <sys/wait.h>
4314 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4317 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4322 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4325 if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4327 ac_cv_header_sys_wait_h=yes
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4332 ac_cv_header_sys_wait_h=no
4337 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4338 if test $ac_cv_header_sys_wait_h = yes; then
4339 cat >> confdefs.h <<\EOF
4340 #define HAVE_SYS_WAIT_H 1
4345 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
4346 echo "configure:4347: checking POSIX termios" >&5
4347 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
4348 echo $ac_n "(cached) $ac_c" 1>&6
4350 cat > conftest.$ac_ext <<EOF
4351 #line 4352 "configure"
4352 #include "confdefs.h"
4353 #include <sys/types.h>
4355 #include <termios.h>
4357 /* SunOS 4.0.3 has termios.h but not the library calls. */
4361 if { (eval echo configure:4362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4363 am_cv_sys_posix_termios=yes
4365 echo "configure: failed program was:" >&5
4366 cat conftest.$ac_ext >&5
4368 am_cv_sys_posix_termios=no
4373 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
4376 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
4377 echo "configure:4378: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
4378 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
4379 echo $ac_n "(cached) $ac_c" 1>&6
4381 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
4383 gwinsz_in_termios_h=no
4384 if test $am_cv_sys_posix_termios = yes; then
4385 cat > conftest.$ac_ext <<EOF
4386 #line 4387 "configure"
4387 #include "confdefs.h"
4388 #include <sys/types.h>
4389 # include <termios.h>
4395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4396 egrep "yes" >/dev/null 2>&1; then
4398 gwinsz_in_termios_h=yes
4404 if test $gwinsz_in_termios_h = no; then
4405 cat > conftest.$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 #include <sys/types.h>
4409 # include <sys/ioctl.h>
4415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4416 egrep "yes" >/dev/null 2>&1; then
4418 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
4426 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
4427 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
4428 cat >> confdefs.h <<\EOF
4429 #define GWINSZ_IN_SYS_IOCTL 1
4434 if test $am_cv_sys_posix_termios = yes ; then
4435 cat >> confdefs.h <<\EOF
4436 #define HAVE_POSIX_TERMIOS 1
4487 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4488 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4489 echo "configure:4490: checking for $ac_hdr" >&5
4490 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4499 { (eval echo configure:4500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4501 if test -z "$ac_err"; then
4503 eval "ac_cv_header_$ac_safe=yes"
4506 echo "configure: failed program was:" >&5
4507 cat conftest.$ac_ext >&5
4509 eval "ac_cv_header_$ac_safe=no"
4513 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4514 echo "$ac_t""yes" 1>&6
4515 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4516 cat >> confdefs.h <<EOF
4517 #define $ac_tr_hdr 1
4521 echo "$ac_t""no" 1>&6
4528 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4529 echo "configure:4530: checking for dlopen" >&5
4530 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
4531 echo $ac_n "(cached) $ac_c" 1>&6
4533 cat > conftest.$ac_ext <<EOF
4534 #line 4535 "configure"
4535 #include "confdefs.h"
4536 /* System header to define __stub macros and hopefully few prototypes,
4537 which can conflict with char dlopen(); below. */
4539 /* Override any gcc2 internal prototype to avoid an error. */
4540 /* We use char because int might match the return type of a gcc2
4541 builtin and then its argument prototype would still apply. */
4547 /* The GNU C library defines this for functions which it implements
4548 to always fail with ENOSYS. Some functions are actually named
4549 something starting with __ and the normal name is an alias. */
4550 #if defined (__stub_dlopen) || defined (__stub___dlopen)
4558 if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4560 eval "ac_cv_func_dlopen=yes"
4562 echo "configure: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4565 eval "ac_cv_func_dlopen=no"
4570 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4571 echo "$ac_t""yes" 1>&6
4574 echo "$ac_t""no" 1>&6
4575 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4576 echo "configure:4577: checking for dlopen in -ldl" >&5
4577 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
4578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 ac_save_LIBS="$LIBS"
4583 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 eval "ac_cv_lib_$ac_lib_var=yes"
4599 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5
4602 eval "ac_cv_lib_$ac_lib_var=no"
4605 LIBS="$ac_save_LIBS"
4608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4611 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4612 cat >> confdefs.h <<EOF
4613 #define $ac_tr_lib 1
4619 echo "$ac_t""no" 1>&6
4625 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
4626 echo "configure:4627: checking for sigset in -lV3" >&5
4627 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
4628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 ac_save_LIBS="$LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 eval "ac_cv_lib_$ac_lib_var=no"
4655 LIBS="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4660 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4661 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4662 cat >> confdefs.h <<EOF
4663 #define $ac_tr_lib 1
4669 echo "$ac_t""no" 1>&6
4673 if test $ac_cv_header_winsock_h = yes; then
4674 echo $ac_n "checking for winsock""... $ac_c" 1>&6
4675 echo "configure:4676: checking for winsock" >&5
4676 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 cat > conftest.$ac_ext <<EOF
4680 #line 4681 "configure"
4681 #include "confdefs.h"
4682 #include <winsock.h>
4686 select(0,NULL,NULL,NULL,NULL);
4688 gethostname(NULL,0);
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4704 echo "$ac_t""$ol_cv_winsock" 1>&6
4706 if test $ol_cv_winsock = yes ; then
4707 cat >> confdefs.h <<\EOF
4708 #define HAVE_WINSOCK 1
4711 ac_cv_func_socket=yes
4712 ac_cv_func_select=yes
4713 ac_cv_func_closesocket=yes
4714 ac_cv_func_gethostname=yes
4719 echo $ac_n "checking for socket""... $ac_c" 1>&6
4720 echo "configure:4721: checking for socket" >&5
4721 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4727 /* System header to define __stub macros and hopefully few prototypes,
4728 which can conflict with char socket(); below. */
4730 /* Override any gcc2 internal prototype to avoid an error. */
4731 /* We use char because int might match the return type of a gcc2
4732 builtin and then its argument prototype would still apply. */
4738 /* The GNU C library defines this for functions which it implements
4739 to always fail with ENOSYS. Some functions are actually named
4740 something starting with __ and the normal name is an alias. */
4741 #if defined (__stub_socket) || defined (__stub___socket)
4749 if { (eval echo configure:4750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4751 eval "ac_cv_func_socket=yes"
4753 echo "configure: failed program was:" >&5
4754 cat conftest.$ac_ext >&5
4756 eval "ac_cv_func_socket=no"
4761 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
4762 echo "$ac_t""yes" 1>&6
4765 echo "$ac_t""no" 1>&6
4767 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
4768 echo "configure:4769: checking for main in -lsocket" >&5
4769 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
4770 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 ac_save_LIBS="$LIBS"
4774 LIBS="-lsocket $LIBS"
4775 cat > conftest.$ac_ext <<EOF
4776 #line 4777 "configure"
4777 #include "confdefs.h"
4783 if { (eval echo configure:4784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4785 eval "ac_cv_lib_$ac_lib_var=yes"
4787 echo "configure: failed program was:" >&5
4788 cat conftest.$ac_ext >&5
4790 eval "ac_cv_lib_$ac_lib_var=no"
4793 LIBS="$ac_save_LIBS"
4796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4797 echo "$ac_t""yes" 1>&6
4798 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4799 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4800 cat >> confdefs.h <<EOF
4801 #define $ac_tr_lib 1
4804 LIBS="-lsocket $LIBS"
4807 echo "$ac_t""no" 1>&6
4810 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
4811 echo "configure:4812: checking for main in -lnet" >&5
4812 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
4813 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 ac_save_LIBS="$LIBS"
4818 cat > conftest.$ac_ext <<EOF
4819 #line 4820 "configure"
4820 #include "confdefs.h"
4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4828 eval "ac_cv_lib_$ac_lib_var=yes"
4830 echo "configure: failed program was:" >&5
4831 cat conftest.$ac_ext >&5
4833 eval "ac_cv_lib_$ac_lib_var=no"
4836 LIBS="$ac_save_LIBS"
4839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4840 echo "$ac_t""yes" 1>&6
4841 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4842 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4843 cat >> confdefs.h <<EOF
4844 #define $ac_tr_lib 1
4850 echo "$ac_t""no" 1>&6
4853 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
4854 echo "configure:4855: checking for main in -lnsl_s" >&5
4855 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
4856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4857 echo $ac_n "(cached) $ac_c" 1>&6
4859 ac_save_LIBS="$LIBS"
4860 LIBS="-lnsl_s $LIBS"
4861 cat > conftest.$ac_ext <<EOF
4862 #line 4863 "configure"
4863 #include "confdefs.h"
4869 if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 eval "ac_cv_lib_$ac_lib_var=yes"
4873 echo "configure: failed program was:" >&5
4874 cat conftest.$ac_ext >&5
4876 eval "ac_cv_lib_$ac_lib_var=no"
4879 LIBS="$ac_save_LIBS"
4882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4883 echo "$ac_t""yes" 1>&6
4884 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4885 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4886 cat >> confdefs.h <<EOF
4887 #define $ac_tr_lib 1
4890 LIBS="-lnsl_s $LIBS"
4893 echo "$ac_t""no" 1>&6
4896 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
4897 echo "configure:4898: checking for main in -lnsl" >&5
4898 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
4899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4902 ac_save_LIBS="$LIBS"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4912 if { (eval echo configure:4913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4914 eval "ac_cv_lib_$ac_lib_var=yes"
4916 echo "configure: failed program was:" >&5
4917 cat conftest.$ac_ext >&5
4919 eval "ac_cv_lib_$ac_lib_var=no"
4922 LIBS="$ac_save_LIBS"
4925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4926 echo "$ac_t""yes" 1>&6
4927 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4928 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4929 cat >> confdefs.h <<EOF
4930 #define $ac_tr_lib 1
4936 echo "$ac_t""no" 1>&6
4939 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
4940 echo "configure:4941: checking for socket in -linet" >&5
4941 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
4942 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4943 echo $ac_n "(cached) $ac_c" 1>&6
4945 ac_save_LIBS="$LIBS"
4947 cat > conftest.$ac_ext <<EOF
4948 #line 4949 "configure"
4949 #include "confdefs.h"
4950 /* Override any gcc2 internal prototype to avoid an error. */
4951 /* We use char because int might match the return type of a gcc2
4952 builtin and then its argument prototype would still apply. */
4959 if { (eval echo configure:4960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4961 eval "ac_cv_lib_$ac_lib_var=yes"
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4966 eval "ac_cv_lib_$ac_lib_var=no"
4969 LIBS="$ac_save_LIBS"
4972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4973 echo "$ac_t""yes" 1>&6
4974 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4975 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4976 cat >> confdefs.h <<EOF
4977 #define $ac_tr_lib 1
4983 echo "$ac_t""no" 1>&6
4986 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
4987 echo "configure:4988: checking for main in -lgen" >&5
4988 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
4989 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
4990 echo $ac_n "(cached) $ac_c" 1>&6
4992 ac_save_LIBS="$LIBS"
4994 cat > conftest.$ac_ext <<EOF
4995 #line 4996 "configure"
4996 #include "confdefs.h"
5002 if { (eval echo configure:5003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5004 eval "ac_cv_lib_$ac_lib_var=yes"
5006 echo "configure: failed program was:" >&5
5007 cat conftest.$ac_ext >&5
5009 eval "ac_cv_lib_$ac_lib_var=no"
5012 LIBS="$ac_save_LIBS"
5015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5016 echo "$ac_t""yes" 1>&6
5017 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5018 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5019 cat >> confdefs.h <<EOF
5020 #define $ac_tr_lib 1
5026 echo "$ac_t""no" 1>&6
5033 echo $ac_n "checking for select""... $ac_c" 1>&6
5034 echo "configure:5035: checking for select" >&5
5035 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
5036 echo $ac_n "(cached) $ac_c" 1>&6
5038 cat > conftest.$ac_ext <<EOF
5039 #line 5040 "configure"
5040 #include "confdefs.h"
5041 /* System header to define __stub macros and hopefully few prototypes,
5042 which can conflict with char select(); below. */
5044 /* Override any gcc2 internal prototype to avoid an error. */
5045 /* We use char because int might match the return type of a gcc2
5046 builtin and then its argument prototype would still apply. */
5052 /* The GNU C library defines this for functions which it implements
5053 to always fail with ENOSYS. Some functions are actually named
5054 something starting with __ and the normal name is an alias. */
5055 #if defined (__stub_select) || defined (__stub___select)
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_func_select=yes"
5067 echo "configure: failed program was:" >&5
5068 cat conftest.$ac_ext >&5
5070 eval "ac_cv_func_select=no"
5075 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
5076 echo "$ac_t""yes" 1>&6
5079 echo "$ac_t""no" 1>&6
5080 { echo "configure: error: select() required." 1>&2; exit 1; }
5084 if test "${ac_cv_header_winsock_h}" != yes; then
5085 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
5086 echo "configure:5087: checking types of arguments for select()" >&5
5087 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
5088 echo $ac_n "(cached) $ac_c" 1>&6
5090 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
5091 echo $ac_n "(cached) $ac_c" 1>&6
5093 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6
5096 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
5097 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
5098 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
5099 cat > conftest.$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 #ifdef HAVE_SYS_TYPES_H
5103 #include <sys/types.h>
5105 #ifdef HAVE_SYS_TIME_H
5106 #include <sys/time.h>
5108 #ifdef HAVE_SYS_SELECT_H
5109 #include <sys/select.h>
5111 #ifdef HAVE_SYS_SOCKET_H
5112 #include <sys/socket.h>
5114 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);
5119 if { (eval echo configure:5120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5121 ac_not_found=no ; break 3
5123 echo "configure: failed program was:" >&5
5124 cat conftest.$ac_ext >&5
5138 if test "$ac_not_found" = yes; then
5139 ac_cv_func_select_arg1=int
5140 ac_cv_func_select_arg234='int *'
5141 ac_cv_func_select_arg5='struct timeval *'
5143 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
5144 cat >> confdefs.h <<EOF
5145 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
5148 cat >> confdefs.h <<EOF
5149 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
5152 cat >> confdefs.h <<EOF
5153 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
5160 for ac_hdr in regex.h
5162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5164 echo "configure:5165: checking for $ac_hdr" >&5
5165 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5166 echo $ac_n "(cached) $ac_c" 1>&6
5168 cat > conftest.$ac_ext <<EOF
5169 #line 5170 "configure"
5170 #include "confdefs.h"
5173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5174 { (eval echo configure:5175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5176 if test -z "$ac_err"; then
5178 eval "ac_cv_header_$ac_safe=yes"
5181 echo "configure: failed program was:" >&5
5182 cat conftest.$ac_ext >&5
5184 eval "ac_cv_header_$ac_safe=no"
5188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5189 echo "$ac_t""yes" 1>&6
5190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5191 cat >> confdefs.h <<EOF
5192 #define $ac_tr_hdr 1
5196 echo "$ac_t""no" 1>&6
5200 if test "$ac_cv_header_regex_h" != yes ; then
5201 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
5203 echo $ac_n "checking for regfree""... $ac_c" 1>&6
5204 echo "configure:5205: checking for regfree" >&5
5205 if eval "test \"\${ac_cv_func_regfree+set}\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5208 cat > conftest.$ac_ext <<EOF
5209 #line 5210 "configure"
5210 #include "confdefs.h"
5211 /* System header to define __stub macros and hopefully few prototypes,
5212 which can conflict with char regfree(); below. */
5214 /* Override any gcc2 internal prototype to avoid an error. */
5215 /* We use char because int might match the return type of a gcc2
5216 builtin and then its argument prototype would still apply. */
5222 /* The GNU C library defines this for functions which it implements
5223 to always fail with ENOSYS. Some functions are actually named
5224 something starting with __ and the normal name is an alias. */
5225 #if defined (__stub_regfree) || defined (__stub___regfree)
5233 if { (eval echo configure:5234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5235 eval "ac_cv_func_regfree=yes"
5237 echo "configure: failed program was:" >&5
5238 cat conftest.$ac_ext >&5
5240 eval "ac_cv_func_regfree=no"
5245 if eval "test \"`echo '$ac_cv_func_'regfree`\" = yes"; then
5246 echo "$ac_t""yes" 1>&6
5249 echo "$ac_t""no" 1>&6
5250 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
5255 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
5256 echo "configure:5257: checking for compatible POSIX regex" >&5
5257 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
5258 echo $ac_n "(cached) $ac_c" 1>&6
5261 if test "$cross_compiling" = yes; then
5262 ol_cv_c_posix_regex=cross
5264 cat > conftest.$ac_ext <<EOF
5265 #line 5266 "configure"
5266 #include "confdefs.h"
5268 #include <sys/types.h>
5270 static char *pattern, *string;
5278 if(regcomp(&re, pattern, 0)) {
5282 string = "ALL MATCH";
5284 rc = regexec(&re, string, 0, (void*)0, 0);
5291 if { (eval echo configure:5292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5293 ol_cv_c_posix_regex=yes
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5298 ol_cv_c_posix_regex=no
5305 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
5307 if test "$ol_cv_c_posix_regex" = no ; then
5308 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
5312 echo $ac_n "checking for res_query""... $ac_c" 1>&6
5313 echo "configure:5314: checking for res_query" >&5
5314 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
5315 echo $ac_n "(cached) $ac_c" 1>&6
5317 cat > conftest.$ac_ext <<EOF
5318 #line 5319 "configure"
5319 #include "confdefs.h"
5320 /* System header to define __stub macros and hopefully few prototypes,
5321 which can conflict with char res_query(); below. */
5323 /* Override any gcc2 internal prototype to avoid an error. */
5324 /* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5331 /* The GNU C library defines this for functions which it implements
5332 to always fail with ENOSYS. Some functions are actually named
5333 something starting with __ and the normal name is an alias. */
5334 #if defined (__stub_res_query) || defined (__stub___res_query)
5342 if { (eval echo configure:5343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5344 eval "ac_cv_func_res_query=yes"
5346 echo "configure: failed program was:" >&5
5347 cat conftest.$ac_ext >&5
5349 eval "ac_cv_func_res_query=no"
5354 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
5355 echo "$ac_t""yes" 1>&6
5358 echo "$ac_t""no" 1>&6
5361 if test $ac_cv_func_res_query = no ; then
5362 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
5363 echo "configure:5364: checking for __res_query" >&5
5364 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
5365 echo $ac_n "(cached) $ac_c" 1>&6
5367 cat > conftest.$ac_ext <<EOF
5368 #line 5369 "configure"
5369 #include "confdefs.h"
5370 /* System header to define __stub macros and hopefully few prototypes,
5371 which can conflict with char __res_query(); below. */
5373 /* Override any gcc2 internal prototype to avoid an error. */
5374 /* We use char because int might match the return type of a gcc2
5375 builtin and then its argument prototype would still apply. */
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined (__stub___res_query) || defined (__stub_____res_query)
5392 if { (eval echo configure:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5394 eval "ac_cv_func___res_query=yes"
5396 echo "configure: failed program was:" >&5
5397 cat conftest.$ac_ext >&5
5399 eval "ac_cv_func___res_query=no"
5404 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5408 echo "$ac_t""no" 1>&6
5411 ac_cv_func_res_query=$ac_cv_func___res_query
5414 if test $ac_cv_func_res_query = no ; then
5415 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
5416 echo "configure:5417: checking for res_query in -lbind" >&5
5417 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
5418 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5419 echo $ac_n "(cached) $ac_c" 1>&6
5421 ac_save_LIBS="$LIBS"
5423 cat > conftest.$ac_ext <<EOF
5424 #line 5425 "configure"
5425 #include "confdefs.h"
5426 /* Override any gcc2 internal prototype to avoid an error. */
5427 /* We use char because int might match the return type of a gcc2
5428 builtin and then its argument prototype would still apply. */
5435 if { (eval echo configure:5436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5437 eval "ac_cv_lib_$ac_lib_var=yes"
5439 echo "configure: failed program was:" >&5
5440 cat conftest.$ac_ext >&5
5442 eval "ac_cv_lib_$ac_lib_var=no"
5445 LIBS="$ac_save_LIBS"
5448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5449 echo "$ac_t""yes" 1>&6
5450 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5452 cat >> confdefs.h <<EOF
5453 #define $ac_tr_lib 1
5459 echo "$ac_t""no" 1>&6
5462 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
5465 if test $ac_cv_func_res_query = no ; then
5466 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
5467 echo "configure:5468: checking for __res_query in -lbind" >&5
5468 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
5469 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5470 echo $ac_n "(cached) $ac_c" 1>&6
5472 ac_save_LIBS="$LIBS"
5474 cat > conftest.$ac_ext <<EOF
5475 #line 5476 "configure"
5476 #include "confdefs.h"
5477 /* Override any gcc2 internal prototype to avoid an error. */
5478 /* We use char because int might match the return type of a gcc2
5479 builtin and then its argument prototype would still apply. */
5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5488 eval "ac_cv_lib_$ac_lib_var=yes"
5490 echo "configure: failed program was:" >&5
5491 cat conftest.$ac_ext >&5
5493 eval "ac_cv_lib_$ac_lib_var=no"
5496 LIBS="$ac_save_LIBS"
5499 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5500 echo "$ac_t""yes" 1>&6
5501 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5502 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5503 cat >> confdefs.h <<EOF
5504 #define $ac_tr_lib 1
5510 echo "$ac_t""no" 1>&6
5513 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
5516 if test $ac_cv_func_res_query = no ; then
5517 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
5518 echo "configure:5519: checking for res_query in -lresolv" >&5
5519 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
5520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5521 echo $ac_n "(cached) $ac_c" 1>&6
5523 ac_save_LIBS="$LIBS"
5524 LIBS="-lresolv $LIBS"
5525 cat > conftest.$ac_ext <<EOF
5526 #line 5527 "configure"
5527 #include "confdefs.h"
5528 /* Override any gcc2 internal prototype to avoid an error. */
5529 /* We use char because int might match the return type of a gcc2
5530 builtin and then its argument prototype would still apply. */
5537 if { (eval echo configure:5538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5539 eval "ac_cv_lib_$ac_lib_var=yes"
5541 echo "configure: failed program was:" >&5
5542 cat conftest.$ac_ext >&5
5544 eval "ac_cv_lib_$ac_lib_var=no"
5547 LIBS="$ac_save_LIBS"
5550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5551 echo "$ac_t""yes" 1>&6
5552 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5553 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5554 cat >> confdefs.h <<EOF
5555 #define $ac_tr_lib 1
5558 LIBS="-lresolv $LIBS"
5561 echo "$ac_t""no" 1>&6
5564 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
5567 if test $ac_cv_func_res_query = no ; then
5568 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
5569 echo "configure:5570: checking for __res_query in -lresolv" >&5
5570 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
5571 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5572 echo $ac_n "(cached) $ac_c" 1>&6
5574 ac_save_LIBS="$LIBS"
5575 LIBS="-lresolv $LIBS"
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5579 /* Override any gcc2 internal prototype to avoid an error. */
5580 /* We use char because int might match the return type of a gcc2
5581 builtin and then its argument prototype would still apply. */
5588 if { (eval echo configure:5589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5590 eval "ac_cv_lib_$ac_lib_var=yes"
5592 echo "configure: failed program was:" >&5
5593 cat conftest.$ac_ext >&5
5595 eval "ac_cv_lib_$ac_lib_var=no"
5598 LIBS="$ac_save_LIBS"
5601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5602 echo "$ac_t""yes" 1>&6
5603 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5604 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5605 cat >> confdefs.h <<EOF
5606 #define $ac_tr_lib 1
5609 LIBS="-lresolv $LIBS"
5612 echo "$ac_t""no" 1>&6
5615 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
5618 if test "$ac_cv_func_res_query" = yes ; then
5619 cat >> confdefs.h <<\EOF
5620 #define HAVE_RES_QUERY 1
5624 if test $ol_enable_dnssrv != no ; then
5629 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
5630 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
5633 for ac_func in getaddrinfo inet_ntop
5635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5636 echo "configure:5637: checking for $ac_func" >&5
5637 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5638 echo $ac_n "(cached) $ac_c" 1>&6
5640 cat > conftest.$ac_ext <<EOF
5641 #line 5642 "configure"
5642 #include "confdefs.h"
5643 /* System header to define __stub macros and hopefully few prototypes,
5644 which can conflict with char $ac_func(); below. */
5646 /* Override any gcc2 internal prototype to avoid an error. */
5647 /* We use char because int might match the return type of a gcc2
5648 builtin and then its argument prototype would still apply. */
5654 /* The GNU C library defines this for functions which it implements
5655 to always fail with ENOSYS. Some functions are actually named
5656 something starting with __ and the normal name is an alias. */
5657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5665 if { (eval echo configure:5666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5667 eval "ac_cv_func_$ac_func=yes"
5669 echo "configure: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 eval "ac_cv_func_$ac_func=no"
5677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5678 echo "$ac_t""yes" 1>&6
5679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5680 cat >> confdefs.h <<EOF
5681 #define $ac_tr_func 1
5685 echo "$ac_t""no" 1>&6
5691 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
5692 if test $ol_enable_ipv6 = yes ; then
5693 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
5696 for ac_func in gai_strerror
5698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5699 echo "configure:5700: checking for $ac_func" >&5
5700 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
5701 echo $ac_n "(cached) $ac_c" 1>&6
5703 cat > conftest.$ac_ext <<EOF
5704 #line 5705 "configure"
5705 #include "confdefs.h"
5706 /* System header to define __stub macros and hopefully few prototypes,
5707 which can conflict with char $ac_func(); below. */
5709 /* Override any gcc2 internal prototype to avoid an error. */
5710 /* We use char because int might match the return type of a gcc2
5711 builtin and then its argument prototype would still apply. */
5717 /* The GNU C library defines this for functions which it implements
5718 to always fail with ENOSYS. Some functions are actually named
5719 something starting with __ and the normal name is an alias. */
5720 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728 if { (eval echo configure:5729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5730 eval "ac_cv_func_$ac_func=yes"
5732 echo "configure: failed program was:" >&5
5733 cat conftest.$ac_ext >&5
5735 eval "ac_cv_func_$ac_func=no"
5740 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5741 echo "$ac_t""yes" 1>&6
5742 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5743 cat >> confdefs.h <<EOF
5744 #define $ac_tr_func 1
5748 echo "$ac_t""no" 1>&6
5753 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
5754 echo "configure:5755: checking INET6_ADDRSTRLEN" >&5
5755 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
5756 echo $ac_n "(cached) $ac_c" 1>&6
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5763 # include <netinet/in.h>
5764 # ifdef INET6_ADDRSTRLEN
5765 __has_inet6_addrstrlen__;
5769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5770 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
5772 ol_cv_inet6_addrstrlen=yes
5775 ol_cv_inet6_addrstrlen=no
5781 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
5783 if test $ol_cv_inet6_addrstrlen = yes ; then
5785 elif test $ol_enable_ipv6 = yes ; then
5786 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
5790 if test $ol_enable_local != no ; then
5791 for ac_hdr in sys/un.h
5793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5795 echo "configure:5796: checking for $ac_hdr" >&5
5796 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5797 echo $ac_n "(cached) $ac_c" 1>&6
5799 cat > conftest.$ac_ext <<EOF
5800 #line 5801 "configure"
5801 #include "confdefs.h"
5804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5805 { (eval echo configure:5806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5807 if test -z "$ac_err"; then
5809 eval "ac_cv_header_$ac_safe=yes"
5812 echo "configure: failed program was:" >&5
5813 cat conftest.$ac_ext >&5
5815 eval "ac_cv_header_$ac_safe=no"
5819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5820 echo "$ac_t""yes" 1>&6
5821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5822 cat >> confdefs.h <<EOF
5823 #define $ac_tr_hdr 1
5827 echo "$ac_t""no" 1>&6
5832 if test $ol_enable_local = auto ; then
5833 ol_enable_local=$ac_cv_header_sys_un_h
5834 elif test $ac_cv_header_sys_un_h = no ; then
5835 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
5844 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
5845 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
5846 -o $ol_with_kerberos = k425 ; then
5848 for ac_hdr in krb5.h
5850 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5851 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5852 echo "configure:5853: checking for $ac_hdr" >&5
5853 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5854 echo $ac_n "(cached) $ac_c" 1>&6
5856 cat > conftest.$ac_ext <<EOF
5857 #line 5858 "configure"
5858 #include "confdefs.h"
5861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5862 { (eval echo configure:5863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5864 if test -z "$ac_err"; then
5866 eval "ac_cv_header_$ac_safe=yes"
5869 echo "configure: failed program was:" >&5
5870 cat conftest.$ac_ext >&5
5872 eval "ac_cv_header_$ac_safe=no"
5876 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5877 echo "$ac_t""yes" 1>&6
5878 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5879 cat >> confdefs.h <<EOF
5880 #define $ac_tr_hdr 1
5884 echo "$ac_t""no" 1>&6
5889 if test $ac_cv_header_krb5_h = yes ; then
5890 for ac_hdr in heim_err.h
5892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5894 echo "configure:5895: checking for $ac_hdr" >&5
5895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
5896 echo $ac_n "(cached) $ac_c" 1>&6
5898 cat > conftest.$ac_ext <<EOF
5899 #line 5900 "configure"
5900 #include "confdefs.h"
5903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5904 { (eval echo configure:5905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5906 if test -z "$ac_err"; then
5908 eval "ac_cv_header_$ac_safe=yes"
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5914 eval "ac_cv_header_$ac_safe=no"
5918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5919 echo "$ac_t""yes" 1>&6
5920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5921 cat >> confdefs.h <<EOF
5922 #define $ac_tr_hdr 1
5926 echo "$ac_t""no" 1>&6
5930 if test $ac_cv_header_heim_err_h = yes ; then
5936 if test $krb5_impl = mit; then
5937 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
5938 echo "configure:5939: checking for main in -lk5crypto" >&5
5939 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
5940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5941 echo $ac_n "(cached) $ac_c" 1>&6
5943 ac_save_LIBS="$LIBS"
5944 LIBS="-lk5crypto $LIBS"
5945 cat > conftest.$ac_ext <<EOF
5946 #line 5947 "configure"
5947 #include "confdefs.h"
5953 if { (eval echo configure:5954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5955 eval "ac_cv_lib_$ac_lib_var=yes"
5957 echo "configure: failed program was:" >&5
5958 cat conftest.$ac_ext >&5
5960 eval "ac_cv_lib_$ac_lib_var=no"
5963 LIBS="$ac_save_LIBS"
5966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5967 echo "$ac_t""yes" 1>&6
5970 echo "$ac_t""no" 1>&6
5975 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
5976 echo "configure:5977: checking for main in -lkrb5" >&5
5977 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
5978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
5979 echo $ac_n "(cached) $ac_c" 1>&6
5981 ac_save_LIBS="$LIBS"
5982 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5991 if { (eval echo configure:5992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5993 eval "ac_cv_lib_$ac_lib_var=yes"
5995 echo "configure: failed program was:" >&5
5996 cat conftest.$ac_ext >&5
5998 eval "ac_cv_lib_$ac_lib_var=no"
6001 LIBS="$ac_save_LIBS"
6004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6005 echo "$ac_t""yes" 1>&6
6007 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
6009 echo "$ac_t""no" 1>&6
6014 elif test $krb5_impl = heimdal; then
6015 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
6016 echo "configure:6017: checking for main in -lkrb5" >&5
6017 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
6018 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6019 echo $ac_n "(cached) $ac_c" 1>&6
6021 ac_save_LIBS="$LIBS"
6022 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6023 cat > conftest.$ac_ext <<EOF
6024 #line 6025 "configure"
6025 #include "confdefs.h"
6031 if { (eval echo configure:6032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6033 eval "ac_cv_lib_$ac_lib_var=yes"
6035 echo "configure: failed program was:" >&5
6036 cat conftest.$ac_ext >&5
6038 eval "ac_cv_lib_$ac_lib_var=no"
6041 LIBS="$ac_save_LIBS"
6044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6045 echo "$ac_t""yes" 1>&6
6047 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
6049 echo "$ac_t""no" 1>&6
6054 cat >> confdefs.h <<\EOF
6055 #define HAVE_HEIMDAL_KERBEROS 1
6061 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
6064 if test $have_krb5 = yes ; then
6067 cat >> confdefs.h <<\EOF
6072 if test $ol_enable_kpasswd != no ; then
6073 ol_link_kpasswd=yes;
6076 if test $ol_with_kerberos = k5only ; then
6077 ol_with_kerberos=found
6080 elif test $ol_with_kerberos != auto ; then
6081 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
6087 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
6088 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
6090 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
6092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6094 echo "configure:6095: checking for $ac_hdr" >&5
6095 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6096 echo $ac_n "(cached) $ac_c" 1>&6
6098 cat > conftest.$ac_ext <<EOF
6099 #line 6100 "configure"
6100 #include "confdefs.h"
6103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6104 { (eval echo configure:6105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6106 if test -z "$ac_err"; then
6108 eval "ac_cv_header_$ac_safe=yes"
6111 echo "configure: failed program was:" >&5
6112 cat conftest.$ac_ext >&5
6114 eval "ac_cv_header_$ac_safe=no"
6118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6119 echo "$ac_t""yes" 1>&6
6120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6121 cat >> confdefs.h <<EOF
6122 #define $ac_tr_hdr 1
6126 echo "$ac_t""no" 1>&6
6131 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
6132 if test $krb5_impl = mit; then
6133 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6134 echo "configure:6135: checking for main in -lkrb4" >&5
6135 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6137 echo $ac_n "(cached) $ac_c" 1>&6
6139 ac_save_LIBS="$LIBS"
6140 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
6141 cat > conftest.$ac_ext <<EOF
6142 #line 6143 "configure"
6143 #include "confdefs.h"
6149 if { (eval echo configure:6150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6151 eval "ac_cv_lib_$ac_lib_var=yes"
6153 echo "configure: failed program was:" >&5
6154 cat conftest.$ac_ext >&5
6156 eval "ac_cv_lib_$ac_lib_var=no"
6159 LIBS="$ac_save_LIBS"
6162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6163 echo "$ac_t""yes" 1>&6
6165 KRB4_LIBS="-lkrb4 -ldes425"
6167 echo "$ac_t""no" 1>&6
6172 elif test $krb5_impl = heimdal; then
6173 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
6174 echo "configure:6175: checking for main in -lkrb4" >&5
6175 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
6176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6
6179 ac_save_LIBS="$LIBS"
6180 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
6181 cat > conftest.$ac_ext <<EOF
6182 #line 6183 "configure"
6183 #include "confdefs.h"
6189 if { (eval echo configure:6190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6191 eval "ac_cv_lib_$ac_lib_var=yes"
6193 echo "configure: failed program was:" >&5
6194 cat conftest.$ac_ext >&5
6196 eval "ac_cv_lib_$ac_lib_var=no"
6199 LIBS="$ac_save_LIBS"
6202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6203 echo "$ac_t""yes" 1>&6
6207 echo "$ac_t""no" 1>&6
6214 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
6217 if test $have_k425 = yes ; then
6218 ol_with_kerberos=found
6221 cat >> confdefs.h <<\EOF
6222 #define HAVE_KRB425 1
6225 cat >> confdefs.h <<\EOF
6230 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
6231 echo "configure:6232: checking for des_debug in Kerberos libraries" >&5
6232 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
6233 echo $ac_n "(cached) $ac_c" 1>&6
6237 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
6238 cat > conftest.$ac_ext <<EOF
6239 #line 6240 "configure"
6240 #include "confdefs.h"
6242 #include <kerberosIV/krb.h>
6243 #include <kerberosIV/des.h>
6244 extern int des_debug;
6252 if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254 ol_cv_var_des_debug=yes
6256 echo "configure: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 ol_cv_var_des_debug=no
6266 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
6268 if test $ol_cv_var_des_debug = yes ; then
6269 cat >> confdefs.h <<\EOF
6270 #define HAVE_DES_DEBUG 1
6280 if test $ol_link_krb5 = yes ; then
6281 ol_with_kerberos=found
6284 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
6285 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
6287 for ac_hdr in krb.h des.h krb-archaeology.h
6289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6291 echo "configure:6292: checking for $ac_hdr" >&5
6292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6293 echo $ac_n "(cached) $ac_c" 1>&6
6295 cat > conftest.$ac_ext <<EOF
6296 #line 6297 "configure"
6297 #include "confdefs.h"
6300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6301 { (eval echo configure:6302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6303 if test -z "$ac_err"; then
6305 eval "ac_cv_header_$ac_safe=yes"
6308 echo "configure: failed program was:" >&5
6309 cat conftest.$ac_ext >&5
6311 eval "ac_cv_header_$ac_safe=no"
6315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6316 echo "$ac_t""yes" 1>&6
6317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6318 cat >> confdefs.h <<EOF
6319 #define $ac_tr_hdr 1
6323 echo "$ac_t""no" 1>&6
6328 if test $ac_cv_header_krb_h = yes ; then
6329 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
6330 echo "configure:6331: checking for main in -lkrb" >&5
6331 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
6332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6333 echo $ac_n "(cached) $ac_c" 1>&6
6335 ac_save_LIBS="$LIBS"
6336 LIBS="-lkrb -ldes $LIBS"
6337 cat > conftest.$ac_ext <<EOF
6338 #line 6339 "configure"
6339 #include "confdefs.h"
6345 if { (eval echo configure:6346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6347 eval "ac_cv_lib_$ac_lib_var=yes"
6349 echo "configure: failed program was:" >&5
6350 cat conftest.$ac_ext >&5
6352 eval "ac_cv_lib_$ac_lib_var=no"
6355 LIBS="$ac_save_LIBS"
6358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6359 echo "$ac_t""yes" 1>&6
6362 echo "$ac_t""no" 1>&6
6367 if test $have_k4 = yes ; then
6368 ol_with_kerberos=found
6371 cat >> confdefs.h <<\EOF
6376 KRB4_LIBS="-lkrb -ldes"
6378 if test $ac_cv_header_krb_archaeology_h = yes ; then
6379 cat >> confdefs.h <<\EOF
6380 #define HAVE_KTH_KERBEROS 1
6388 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
6392 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
6395 elif test $ol_enable_kbind = yes ; then
6396 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
6399 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
6400 cat >> confdefs.h <<\EOF
6401 #define HAVE_KERBEROS 1
6405 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
6406 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
6410 if test $ol_with_tls != no ; then
6411 for ac_hdr in openssl/ssl.h ssl.h
6413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6415 echo "configure:6416: checking for $ac_hdr" >&5
6416 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
6417 echo $ac_n "(cached) $ac_c" 1>&6
6419 cat > conftest.$ac_ext <<EOF
6420 #line 6421 "configure"
6421 #include "confdefs.h"
6424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6425 { (eval echo configure:6426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6427 if test -z "$ac_err"; then
6429 eval "ac_cv_header_$ac_safe=yes"
6432 echo "configure: failed program was:" >&5
6433 cat conftest.$ac_ext >&5
6435 eval "ac_cv_header_$ac_safe=no"
6439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6442 cat >> confdefs.h <<EOF
6443 #define $ac_tr_hdr 1
6447 echo "$ac_t""no" 1>&6
6452 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
6453 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
6454 echo "configure:6455: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
6455 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
6456 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6457 echo $ac_n "(cached) $ac_c" 1>&6
6459 ac_save_LIBS="$LIBS"
6460 LIBS="-lssl -lcrypto $LIBS"
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 /* Override any gcc2 internal prototype to avoid an error. */
6465 /* We use char because int might match the return type of a gcc2
6466 builtin and then its argument prototype would still apply. */
6467 char SSLeay_add_ssl_algorithms();
6470 SSLeay_add_ssl_algorithms()
6473 if { (eval echo configure:6474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6475 eval "ac_cv_lib_$ac_lib_var=yes"
6477 echo "configure: failed program was:" >&5
6478 cat conftest.$ac_ext >&5
6480 eval "ac_cv_lib_$ac_lib_var=no"
6483 LIBS="$ac_save_LIBS"
6486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6487 echo "$ac_t""yes" 1>&6
6491 echo "$ac_t""no" 1>&6
6496 if test $have_ssleay = no ; then
6497 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
6498 echo "configure:6499: checking for SSL_library_init in -lssl" >&5
6499 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
6500 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6501 echo $ac_n "(cached) $ac_c" 1>&6
6503 ac_save_LIBS="$LIBS"
6504 LIBS="-lssl -lcrypto $LIBS"
6505 cat > conftest.$ac_ext <<EOF
6506 #line 6507 "configure"
6507 #include "confdefs.h"
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char SSL_library_init();
6517 if { (eval echo configure:6518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6519 eval "ac_cv_lib_$ac_lib_var=yes"
6521 echo "configure: failed program was:" >&5
6522 cat conftest.$ac_ext >&5
6524 eval "ac_cv_lib_$ac_lib_var=no"
6527 LIBS="$ac_save_LIBS"
6530 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6535 echo "$ac_t""no" 1>&6
6541 if test $have_ssleay = no ; then
6542 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
6543 echo "configure:6544: checking for ssl3_accept in -lssl" >&5
6544 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
6545 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6546 echo $ac_n "(cached) $ac_c" 1>&6
6548 ac_save_LIBS="$LIBS"
6549 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 /* Override any gcc2 internal prototype to avoid an error. */
6554 /* We use char because int might match the return type of a gcc2
6555 builtin and then its argument prototype would still apply. */
6562 if { (eval echo configure:6563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6564 eval "ac_cv_lib_$ac_lib_var=yes"
6566 echo "configure: failed program was:" >&5
6567 cat conftest.$ac_ext >&5
6569 eval "ac_cv_lib_$ac_lib_var=no"
6572 LIBS="$ac_save_LIBS"
6575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6576 echo "$ac_t""yes" 1>&6
6580 echo "$ac_t""no" 1>&6
6586 if test $have_ssleay = yes ; then
6590 cat >> confdefs.h <<\EOF
6591 #define HAVE_SSLEAY 1
6595 if test $need_rsaref = yes; then
6596 cat >> confdefs.h <<\EOF
6597 #define HAVE_RSAREF 1
6601 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
6603 TLS_LIBS="-lssl -lcrypto"
6609 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6612 if test $ol_link_tls = yes ; then
6613 cat >> confdefs.h <<\EOF
6618 elif test $ol_with_tls = auto ; then
6619 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
6620 echo "configure: warning: TLS privacy protection not supported!" 1>&2
6622 elif test $ol_with_tls != no ; then
6623 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
6628 gethostbyname_r gethostbyaddr_r \
6631 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6632 echo "configure:6633: checking for $ac_func" >&5
6633 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
6634 echo $ac_n "(cached) $ac_c" 1>&6
6636 cat > conftest.$ac_ext <<EOF
6637 #line 6638 "configure"
6638 #include "confdefs.h"
6639 /* System header to define __stub macros and hopefully few prototypes,
6640 which can conflict with char $ac_func(); below. */
6642 /* Override any gcc2 internal prototype to avoid an error. */
6643 /* We use char because int might match the return type of a gcc2
6644 builtin and then its argument prototype would still apply. */
6650 /* The GNU C library defines this for functions which it implements
6651 to always fail with ENOSYS. Some functions are actually named
6652 something starting with __ and the normal name is an alias. */
6653 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_func_$ac_func=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_func_$ac_func=no"
6673 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6674 echo "$ac_t""yes" 1>&6
6675 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6676 cat >> confdefs.h <<EOF
6677 #define $ac_tr_func 1
6681 echo "$ac_t""no" 1>&6
6686 if test "$ac_cv_func_ctime_r" = no ; then
6687 ol_cv_func_ctime_r_nargs=0
6689 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
6690 echo "configure:6691: checking number of arguments of ctime_r" >&5
6691 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 cat > conftest.$ac_ext <<EOF
6695 #line 6696 "configure"
6696 #include "confdefs.h"
6699 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
6702 if { (eval echo configure:6703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6704 ol_cv_func_ctime_r_nargs3=yes
6706 echo "configure: failed program was:" >&5
6707 cat conftest.$ac_ext >&5
6709 ol_cv_func_ctime_r_nargs3=no
6713 cat > conftest.$ac_ext <<EOF
6714 #line 6715 "configure"
6715 #include "confdefs.h"
6718 time_t ti; char *buffer; ctime_r(&ti,buffer);
6721 if { (eval echo configure:6722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6723 ol_cv_func_ctime_r_nargs2=yes
6725 echo "configure: failed program was:" >&5
6726 cat conftest.$ac_ext >&5
6728 ol_cv_func_ctime_r_nargs2=no
6732 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
6733 $ol_cv_func_ctime_r_nargs2 = no ; then
6735 ol_cv_func_ctime_r_nargs=3
6737 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
6738 $ol_cv_func_ctime_r_nargs2 = yes ; then
6740 ol_cv_func_ctime_r_nargs=2
6743 ol_cv_func_ctime_r_nargs=0
6748 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
6750 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
6751 cat >> confdefs.h <<EOF
6752 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
6759 if test "$ac_cv_func_gethostbyname_r" = yes ; then
6760 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
6761 echo "configure:6762: checking number of arguments of gethostbyname_r" >&5
6762 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
6763 echo $ac_n "(cached) $ac_c" 1>&6
6765 cat > conftest.$ac_ext <<EOF
6766 #line 6767 "configure"
6767 #include "confdefs.h"
6768 #include <sys/types.h>
6769 #include <sys/socket.h>
6770 #include <netinet/in.h>
6772 #define BUFSIZE (sizeof(struct hostent)+10)
6774 struct hostent hent; char buffer[BUFSIZE];
6775 int bufsize=BUFSIZE;int h_errno;
6776 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
6777 buffer, bufsize, &h_errno);
6780 if { (eval echo configure:6781: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6782 ol_cv_func_gethostbyname_r_nargs5=yes
6784 echo "configure: failed program was:" >&5
6785 cat conftest.$ac_ext >&5
6787 ol_cv_func_gethostbyname_r_nargs5=no
6791 cat > conftest.$ac_ext <<EOF
6792 #line 6793 "configure"
6793 #include "confdefs.h"
6794 #include <sys/types.h>
6795 #include <sys/socket.h>
6796 #include <netinet/in.h>
6798 #define BUFSIZE (sizeof(struct hostent)+10)
6800 struct hostent hent;struct hostent *rhent;
6801 char buffer[BUFSIZE];
6802 int bufsize=BUFSIZE;int h_errno;
6803 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
6807 if { (eval echo configure:6808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6809 ol_cv_func_gethostbyname_r_nargs6=yes
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 ol_cv_func_gethostbyname_r_nargs6=no
6818 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
6819 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
6821 ol_cv_func_gethostbyname_r_nargs=5
6823 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
6824 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
6826 ol_cv_func_gethostbyname_r_nargs=6
6829 ol_cv_func_gethostbyname_r_nargs=0
6834 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
6835 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
6836 cat >> confdefs.h <<EOF
6837 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
6843 ol_cv_func_gethostbyname_r_nargs=0
6846 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
6847 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
6848 echo "configure:6849: checking number of arguments of gethostbyaddr_r" >&5
6849 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 #include <sys/types.h>
6856 #include <sys/socket.h>
6857 #include <netinet/in.h>
6859 #define BUFSIZE (sizeof(struct hostent)+10)
6861 struct hostent hent; char buffer[BUFSIZE];
6863 size_t alen=sizeof(struct in_addr);
6864 int bufsize=BUFSIZE;int h_errno;
6865 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6866 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
6869 if { (eval echo configure:6870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6871 ol_cv_func_gethostbyaddr_r_nargs7=yes
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 ol_cv_func_gethostbyaddr_r_nargs7=no
6880 cat > conftest.$ac_ext <<EOF
6881 #line 6882 "configure"
6882 #include "confdefs.h"
6883 #include <sys/types.h>
6884 #include <sys/socket.h>
6885 #include <netinet/in.h>
6887 #define BUFSIZE (sizeof(struct hostent)+10)
6889 struct hostent hent;
6890 struct hostent *rhent; char buffer[BUFSIZE];
6892 size_t alen=sizeof(struct in_addr);
6893 int bufsize=BUFSIZE;int h_errno;
6894 (void)gethostbyaddr_r( (void *)&(add.s_addr),
6895 alen, AF_INET, &hent, buffer, bufsize,
6899 if { (eval echo configure:6900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6901 ol_cv_func_gethostbyaddr_r_nargs8=yes
6903 echo "configure: failed program was:" >&5
6904 cat conftest.$ac_ext >&5
6906 ol_cv_func_gethostbyaddr_r_nargs8=no
6910 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
6911 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
6913 ol_cv_func_gethostbyaddr_r_nargs=7
6915 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
6916 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
6918 ol_cv_func_gethostbyaddr_r_nargs=8
6921 ol_cv_func_gethostbyaddr_r_nargs=0
6926 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
6927 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
6928 cat >> confdefs.h <<EOF
6929 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
6935 ol_cv_func_gethostbyaddr_r_nargs=0
6938 if test "$ac_cv_func_ctime_r" = yes \
6939 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
6940 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
6941 -a "$ac_cv_func_gethostbyname_r" = yes \
6942 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
6943 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
6944 -a "$ac_cv_func_gethostbyaddr_r" = yes \
6945 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
6946 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
6949 cat >> confdefs.h <<\EOF
6950 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
6957 if test $ol_with_threads = auto -o $ol_with_threads = yes \
6958 -o $ol_with_threads = nt ; then
6961 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
6962 echo "configure:6963: checking for _beginthread" >&5
6963 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
6964 echo $ac_n "(cached) $ac_c" 1>&6
6966 cat > conftest.$ac_ext <<EOF
6967 #line 6968 "configure"
6968 #include "confdefs.h"
6969 /* System header to define __stub macros and hopefully few prototypes,
6970 which can conflict with char _beginthread(); below. */
6972 /* Override any gcc2 internal prototype to avoid an error. */
6973 /* We use char because int might match the return type of a gcc2
6974 builtin and then its argument prototype would still apply. */
6975 char _beginthread();
6980 /* The GNU C library defines this for functions which it implements
6981 to always fail with ENOSYS. Some functions are actually named
6982 something starting with __ and the normal name is an alias. */
6983 #if defined (__stub__beginthread) || defined (__stub____beginthread)
6991 if { (eval echo configure:6992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6993 eval "ac_cv_func__beginthread=yes"
6995 echo "configure: failed program was:" >&5
6996 cat conftest.$ac_ext >&5
6998 eval "ac_cv_func__beginthread=no"
7003 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
7004 echo "$ac_t""yes" 1>&6
7007 echo "$ac_t""no" 1>&6
7011 if test $ac_cv_func__beginthread = yes ; then
7012 cat >> confdefs.h <<\EOF
7013 #define HAVE_NT_THREADS 1
7019 if test "$ol_cv_nt_threads" = yes ; then
7021 ol_with_threads=found
7022 ol_with_yielding_select=yes
7024 cat >> confdefs.h <<\EOF
7025 #define HAVE_NT_SERVICE_MANAGER 1
7028 cat >> confdefs.h <<\EOF
7029 #define HAVE_NT_EVENT_LOG 1
7034 if test $ol_with_threads = nt ; then
7035 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
7039 if test $ol_with_threads = auto -o $ol_with_threads = yes \
7040 -o $ol_with_threads = posix ; then
7042 for ac_hdr in pthread.h
7044 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7045 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7046 echo "configure:7047: checking for $ac_hdr" >&5
7047 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7048 echo $ac_n "(cached) $ac_c" 1>&6
7050 cat > conftest.$ac_ext <<EOF
7051 #line 7052 "configure"
7052 #include "confdefs.h"
7055 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7056 { (eval echo configure:7057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7057 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7058 if test -z "$ac_err"; then
7060 eval "ac_cv_header_$ac_safe=yes"
7063 echo "configure: failed program was:" >&5
7064 cat conftest.$ac_ext >&5
7066 eval "ac_cv_header_$ac_safe=no"
7070 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7071 echo "$ac_t""yes" 1>&6
7072 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7073 cat >> confdefs.h <<EOF
7074 #define $ac_tr_hdr 1
7078 echo "$ac_t""no" 1>&6
7083 if test $ac_cv_header_pthread_h = yes ; then
7084 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
7085 echo "configure:7086: checking POSIX thread version" >&5
7086 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
7087 echo $ac_n "(cached) $ac_c" 1>&6
7090 cat > conftest.$ac_ext <<EOF
7091 #line 7092 "configure"
7092 #include "confdefs.h"
7094 # include <pthread.h>
7095 /* this check could be improved */
7096 # ifdef PTHREAD_ONCE_INIT
7097 pthread_version_final;
7101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7102 egrep "pthread_version_final" >/dev/null 2>&1; then
7104 ol_pthread_final=yes
7112 cat > conftest.$ac_ext <<EOF
7113 #line 7114 "configure"
7114 #include "confdefs.h"
7116 # include <pthread.h>
7117 /* this check could be improved */
7118 # ifdef pthread_once_init
7119 pthread_version_draft4;
7123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7124 egrep "pthread_version_draft4" >/dev/null 2>&1; then
7126 ol_pthread_draft4=yes
7129 ol_pthread_draft4=no
7134 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
7135 ol_cv_pthread_version=final
7136 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
7137 ol_cv_pthread_version=draft4
7139 ol_cv_pthread_version=unknown
7144 echo "$ac_t""$ol_cv_pthread_version" 1>&6
7147 if test $ol_cv_pthread_version = final ; then
7148 cat >> confdefs.h <<\EOF
7149 #define HAVE_PTHREADS_FINAL 1
7152 elif test $ol_cv_pthread_version = draft4 ; then
7153 cat >> confdefs.h <<\EOF
7154 #define HAVE_PTHREADS_D4 1
7158 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
7161 # consider threads found
7162 ol_with_threads=found
7165 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
7166 echo "configure:7167: checking for LinuxThreads pthread.h" >&5
7167 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
7168 echo $ac_n "(cached) $ac_c" 1>&6
7170 cat > conftest.$ac_ext <<EOF
7171 #line 7172 "configure"
7172 #include "confdefs.h"
7173 #include <pthread.h>
7175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7176 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
7178 ol_cv_header_linux_threads=yes
7181 ol_cv_header_linux_threads=no
7188 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
7189 if test $ol_cv_header_linux_threads = yes; then
7190 cat >> confdefs.h <<\EOF
7191 #define HAVE_LINUX_THREADS 1
7197 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
7198 echo "configure:7199: checking for GNU Pth pthread.h" >&5
7199 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
7200 echo $ac_n "(cached) $ac_c" 1>&6
7202 cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7205 #include <pthread.h>
7206 #ifdef _POSIX_THREAD_IS_GNU_PTH
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 egrep "__gnu_pth__" >/dev/null 2>&1; then
7214 ol_cv_header_gnu_pth_pthread_h=yes
7217 ol_cv_header_gnu_pth_pthread_h=no
7224 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
7227 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
7228 for ac_hdr in sched.h
7230 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7231 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7232 echo "configure:7233: checking for $ac_hdr" >&5
7233 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
7234 echo $ac_n "(cached) $ac_c" 1>&6
7236 cat > conftest.$ac_ext <<EOF
7237 #line 7238 "configure"
7238 #include "confdefs.h"
7241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7242 { (eval echo configure:7243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7244 if test -z "$ac_err"; then
7246 eval "ac_cv_header_$ac_safe=yes"
7249 echo "configure: failed program was:" >&5
7250 cat conftest.$ac_ext >&5
7252 eval "ac_cv_header_$ac_safe=no"
7256 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7257 echo "$ac_t""yes" 1>&6
7258 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7259 cat >> confdefs.h <<EOF
7260 #define $ac_tr_hdr 1
7264 echo "$ac_t""no" 1>&6
7271 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
7272 echo "configure:7273: checking for pthread_create in default libraries" >&5
7273 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
7274 echo $ac_n "(cached) $ac_c" 1>&6
7277 if test "$cross_compiling" = yes; then
7278 cat > conftest.$ac_ext <<EOF
7279 #line 7280 "configure"
7280 #include "confdefs.h"
7281 /* pthread test headers */
7282 #include <pthread.h>
7284 #define NULL (void*)0
7287 static void *task(p)
7290 return (void *) (p == NULL);
7295 /* pthread test function */
7300 #ifdef HAVE_PTHREADS_FINAL
7301 /* Final pthreads */
7302 pthread_attr_t attr;
7304 status = pthread_attr_init(&attr);
7305 if( status ) return status;
7307 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7309 #if defined( PTHREAD_CREATE_JOINABLE )
7310 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7312 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7315 #ifdef PTHREAD_CREATE_DETACHED
7317 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7320 if( status ) return status;
7323 status = pthread_create( &t, &attr, task, NULL );
7324 if( status ) return status;
7326 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7328 /* give thread a chance to complete */
7329 /* it should remain joinable and hence detachable */
7332 status = pthread_detach( t );
7333 if( status ) return status;
7338 /* Draft 4 pthreads */
7339 status = pthread_create( &t, pthread_attr_default, task, NULL );
7340 if( status ) return status;
7343 /* give thread a chance to complete */
7344 /* it should remain joinable and hence detachable */
7347 status = pthread_detach( &t );
7348 if( status ) return status;
7352 #ifdef HAVE_LINUX_THREADS
7353 pthread_kill_other_threads_np();
7360 if { (eval echo configure:7361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7362 ol_cv_pthread_create=yes
7364 echo "configure: failed program was:" >&5
7365 cat conftest.$ac_ext >&5
7367 ol_cv_pthread_create=no
7371 cat > conftest.$ac_ext <<EOF
7372 #line 7373 "configure"
7373 #include "confdefs.h"
7374 /* pthread test headers */
7375 #include <pthread.h>
7377 #define NULL (void*)0
7380 static void *task(p)
7383 return (void *) (p == NULL);
7387 int main(argc, argv)
7392 /* pthread test function */
7397 #ifdef HAVE_PTHREADS_FINAL
7398 /* Final pthreads */
7399 pthread_attr_t attr;
7401 status = pthread_attr_init(&attr);
7402 if( status ) return status;
7404 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7406 #if defined( PTHREAD_CREATE_JOINABLE )
7407 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7409 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7412 #ifdef PTHREAD_CREATE_DETACHED
7414 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7417 if( status ) return status;
7420 status = pthread_create( &t, &attr, task, NULL );
7421 if( status ) return status;
7423 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7425 /* give thread a chance to complete */
7426 /* it should remain joinable and hence detachable */
7429 status = pthread_detach( t );
7430 if( status ) return status;
7435 /* Draft 4 pthreads */
7436 status = pthread_create( &t, pthread_attr_default, task, NULL );
7437 if( status ) return status;
7440 /* give thread a chance to complete */
7441 /* it should remain joinable and hence detachable */
7444 status = pthread_detach( &t );
7445 if( status ) return status;
7449 #ifdef HAVE_LINUX_THREADS
7450 pthread_kill_other_threads_np();
7458 if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7460 ol_cv_pthread_create=yes
7462 echo "configure: failed program was:" >&5
7463 cat conftest.$ac_ext >&5
7465 ol_cv_pthread_create=no
7472 echo "$ac_t""$ol_cv_pthread_create" 1>&6
7474 if test $ol_cv_pthread_create != no ; then
7475 ol_link_threads=posix
7479 # Pthread try link: -kthread (ol_cv_pthread_kthread)
7480 if test "$ol_link_threads" = no ; then
7482 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
7483 echo "configure:7484: checking for pthread link with -kthread" >&5
7484 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
7485 echo $ac_n "(cached) $ac_c" 1>&6
7490 LIBS="-kthread $LIBS"
7492 if test "$cross_compiling" = yes; then
7493 cat > conftest.$ac_ext <<EOF
7494 #line 7495 "configure"
7495 #include "confdefs.h"
7496 /* pthread test headers */
7497 #include <pthread.h>
7499 #define NULL (void*)0
7502 static void *task(p)
7505 return (void *) (p == NULL);
7510 /* pthread test function */
7515 #ifdef HAVE_PTHREADS_FINAL
7516 /* Final pthreads */
7517 pthread_attr_t attr;
7519 status = pthread_attr_init(&attr);
7520 if( status ) return status;
7522 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7524 #if defined( PTHREAD_CREATE_JOINABLE )
7525 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7527 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7530 #ifdef PTHREAD_CREATE_DETACHED
7532 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7535 if( status ) return status;
7538 status = pthread_create( &t, &attr, task, NULL );
7539 if( status ) return status;
7541 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7543 /* give thread a chance to complete */
7544 /* it should remain joinable and hence detachable */
7547 status = pthread_detach( t );
7548 if( status ) return status;
7553 /* Draft 4 pthreads */
7554 status = pthread_create( &t, pthread_attr_default, task, NULL );
7555 if( status ) return status;
7558 /* give thread a chance to complete */
7559 /* it should remain joinable and hence detachable */
7562 status = pthread_detach( &t );
7563 if( status ) return status;
7567 #ifdef HAVE_LINUX_THREADS
7568 pthread_kill_other_threads_np();
7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7577 ol_cv_pthread_kthread=yes
7579 echo "configure: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7582 ol_cv_pthread_kthread=no
7586 cat > conftest.$ac_ext <<EOF
7587 #line 7588 "configure"
7588 #include "confdefs.h"
7589 /* pthread test headers */
7590 #include <pthread.h>
7592 #define NULL (void*)0
7595 static void *task(p)
7598 return (void *) (p == NULL);
7602 int main(argc, argv)
7607 /* pthread test function */
7612 #ifdef HAVE_PTHREADS_FINAL
7613 /* Final pthreads */
7614 pthread_attr_t attr;
7616 status = pthread_attr_init(&attr);
7617 if( status ) return status;
7619 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7621 #if defined( PTHREAD_CREATE_JOINABLE )
7622 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7624 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7627 #ifdef PTHREAD_CREATE_DETACHED
7629 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7632 if( status ) return status;
7635 status = pthread_create( &t, &attr, task, NULL );
7636 if( status ) return status;
7638 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7640 /* give thread a chance to complete */
7641 /* it should remain joinable and hence detachable */
7644 status = pthread_detach( t );
7645 if( status ) return status;
7650 /* Draft 4 pthreads */
7651 status = pthread_create( &t, pthread_attr_default, task, NULL );
7652 if( status ) return status;
7655 /* give thread a chance to complete */
7656 /* it should remain joinable and hence detachable */
7659 status = pthread_detach( &t );
7660 if( status ) return status;
7664 #ifdef HAVE_LINUX_THREADS
7665 pthread_kill_other_threads_np();
7673 if { (eval echo configure:7674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7675 ol_cv_pthread_kthread=yes
7677 echo "configure: failed program was:" >&5
7678 cat conftest.$ac_ext >&5
7680 ol_cv_pthread_kthread=no
7691 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
7693 if test $ol_cv_pthread_kthread = yes ; then
7694 ol_link_pthreads="-kthread"
7695 ol_link_threads=posix
7699 # Pthread try link: -pthread (ol_cv_pthread_pthread)
7700 if test "$ol_link_threads" = no ; then
7702 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
7703 echo "configure:7704: checking for pthread link with -pthread" >&5
7704 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7710 LIBS="-pthread $LIBS"
7712 if test "$cross_compiling" = yes; then
7713 cat > conftest.$ac_ext <<EOF
7714 #line 7715 "configure"
7715 #include "confdefs.h"
7716 /* pthread test headers */
7717 #include <pthread.h>
7719 #define NULL (void*)0
7722 static void *task(p)
7725 return (void *) (p == NULL);
7730 /* pthread test function */
7735 #ifdef HAVE_PTHREADS_FINAL
7736 /* Final pthreads */
7737 pthread_attr_t attr;
7739 status = pthread_attr_init(&attr);
7740 if( status ) return status;
7742 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7744 #if defined( PTHREAD_CREATE_JOINABLE )
7745 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7747 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7750 #ifdef PTHREAD_CREATE_DETACHED
7752 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7755 if( status ) return status;
7758 status = pthread_create( &t, &attr, task, NULL );
7759 if( status ) return status;
7761 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7763 /* give thread a chance to complete */
7764 /* it should remain joinable and hence detachable */
7767 status = pthread_detach( t );
7768 if( status ) return status;
7773 /* Draft 4 pthreads */
7774 status = pthread_create( &t, pthread_attr_default, task, NULL );
7775 if( status ) return status;
7778 /* give thread a chance to complete */
7779 /* it should remain joinable and hence detachable */
7782 status = pthread_detach( &t );
7783 if( status ) return status;
7787 #ifdef HAVE_LINUX_THREADS
7788 pthread_kill_other_threads_np();
7795 if { (eval echo configure:7796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7797 ol_cv_pthread_pthread=yes
7799 echo "configure: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7802 ol_cv_pthread_pthread=no
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7809 /* pthread test headers */
7810 #include <pthread.h>
7812 #define NULL (void*)0
7815 static void *task(p)
7818 return (void *) (p == NULL);
7822 int main(argc, argv)
7827 /* pthread test function */
7832 #ifdef HAVE_PTHREADS_FINAL
7833 /* Final pthreads */
7834 pthread_attr_t attr;
7836 status = pthread_attr_init(&attr);
7837 if( status ) return status;
7839 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7841 #if defined( PTHREAD_CREATE_JOINABLE )
7842 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7844 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7847 #ifdef PTHREAD_CREATE_DETACHED
7849 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7852 if( status ) return status;
7855 status = pthread_create( &t, &attr, task, NULL );
7856 if( status ) return status;
7858 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7860 /* give thread a chance to complete */
7861 /* it should remain joinable and hence detachable */
7864 status = pthread_detach( t );
7865 if( status ) return status;
7870 /* Draft 4 pthreads */
7871 status = pthread_create( &t, pthread_attr_default, task, NULL );
7872 if( status ) return status;
7875 /* give thread a chance to complete */
7876 /* it should remain joinable and hence detachable */
7879 status = pthread_detach( &t );
7880 if( status ) return status;
7884 #ifdef HAVE_LINUX_THREADS
7885 pthread_kill_other_threads_np();
7893 if { (eval echo configure:7894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7895 ol_cv_pthread_pthread=yes
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7900 ol_cv_pthread_pthread=no
7911 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
7913 if test $ol_cv_pthread_pthread = yes ; then
7914 ol_link_pthreads="-pthread"
7915 ol_link_threads=posix
7919 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
7920 if test "$ol_link_threads" = no ; then
7922 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
7923 echo "configure:7924: checking for pthread link with -pthreads" >&5
7924 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7930 LIBS="-pthreads $LIBS"
7932 if test "$cross_compiling" = yes; then
7933 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure"
7935 #include "confdefs.h"
7936 /* pthread test headers */
7937 #include <pthread.h>
7939 #define NULL (void*)0
7942 static void *task(p)
7945 return (void *) (p == NULL);
7950 /* pthread test function */
7955 #ifdef HAVE_PTHREADS_FINAL
7956 /* Final pthreads */
7957 pthread_attr_t attr;
7959 status = pthread_attr_init(&attr);
7960 if( status ) return status;
7962 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
7964 #if defined( PTHREAD_CREATE_JOINABLE )
7965 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
7967 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
7970 #ifdef PTHREAD_CREATE_DETACHED
7972 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
7975 if( status ) return status;
7978 status = pthread_create( &t, &attr, task, NULL );
7979 if( status ) return status;
7981 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
7983 /* give thread a chance to complete */
7984 /* it should remain joinable and hence detachable */
7987 status = pthread_detach( t );
7988 if( status ) return status;
7993 /* Draft 4 pthreads */
7994 status = pthread_create( &t, pthread_attr_default, task, NULL );
7995 if( status ) return status;
7998 /* give thread a chance to complete */
7999 /* it should remain joinable and hence detachable */
8002 status = pthread_detach( &t );
8003 if( status ) return status;
8007 #ifdef HAVE_LINUX_THREADS
8008 pthread_kill_other_threads_np();
8015 if { (eval echo configure:8016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8017 ol_cv_pthread_pthreads=yes
8019 echo "configure: failed program was:" >&5
8020 cat conftest.$ac_ext >&5
8022 ol_cv_pthread_pthreads=no
8026 cat > conftest.$ac_ext <<EOF
8027 #line 8028 "configure"
8028 #include "confdefs.h"
8029 /* pthread test headers */
8030 #include <pthread.h>
8032 #define NULL (void*)0
8035 static void *task(p)
8038 return (void *) (p == NULL);
8042 int main(argc, argv)
8047 /* pthread test function */
8052 #ifdef HAVE_PTHREADS_FINAL
8053 /* Final pthreads */
8054 pthread_attr_t attr;
8056 status = pthread_attr_init(&attr);
8057 if( status ) return status;
8059 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8061 #if defined( PTHREAD_CREATE_JOINABLE )
8062 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8064 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8067 #ifdef PTHREAD_CREATE_DETACHED
8069 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8072 if( status ) return status;
8075 status = pthread_create( &t, &attr, task, NULL );
8076 if( status ) return status;
8078 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8080 /* give thread a chance to complete */
8081 /* it should remain joinable and hence detachable */
8084 status = pthread_detach( t );
8085 if( status ) return status;
8090 /* Draft 4 pthreads */
8091 status = pthread_create( &t, pthread_attr_default, task, NULL );
8092 if( status ) return status;
8095 /* give thread a chance to complete */
8096 /* it should remain joinable and hence detachable */
8099 status = pthread_detach( &t );
8100 if( status ) return status;
8104 #ifdef HAVE_LINUX_THREADS
8105 pthread_kill_other_threads_np();
8113 if { (eval echo configure:8114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8115 ol_cv_pthread_pthreads=yes
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8120 ol_cv_pthread_pthreads=no
8131 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
8133 if test $ol_cv_pthread_pthreads = yes ; then
8134 ol_link_pthreads="-pthreads"
8135 ol_link_threads=posix
8139 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
8140 if test "$ol_link_threads" = no ; then
8142 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
8143 echo "configure:8144: checking for pthread link with -mthreads" >&5
8144 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
8145 echo $ac_n "(cached) $ac_c" 1>&6
8150 LIBS="-mthreads $LIBS"
8152 if test "$cross_compiling" = yes; then
8153 cat > conftest.$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 /* pthread test headers */
8157 #include <pthread.h>
8159 #define NULL (void*)0
8162 static void *task(p)
8165 return (void *) (p == NULL);
8170 /* pthread test function */
8175 #ifdef HAVE_PTHREADS_FINAL
8176 /* Final pthreads */
8177 pthread_attr_t attr;
8179 status = pthread_attr_init(&attr);
8180 if( status ) return status;
8182 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8184 #if defined( PTHREAD_CREATE_JOINABLE )
8185 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8187 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8190 #ifdef PTHREAD_CREATE_DETACHED
8192 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8195 if( status ) return status;
8198 status = pthread_create( &t, &attr, task, NULL );
8199 if( status ) return status;
8201 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8203 /* give thread a chance to complete */
8204 /* it should remain joinable and hence detachable */
8207 status = pthread_detach( t );
8208 if( status ) return status;
8213 /* Draft 4 pthreads */
8214 status = pthread_create( &t, pthread_attr_default, task, NULL );
8215 if( status ) return status;
8218 /* give thread a chance to complete */
8219 /* it should remain joinable and hence detachable */
8222 status = pthread_detach( &t );
8223 if( status ) return status;
8227 #ifdef HAVE_LINUX_THREADS
8228 pthread_kill_other_threads_np();
8235 if { (eval echo configure:8236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8237 ol_cv_pthread_mthreads=yes
8239 echo "configure: failed program was:" >&5
8240 cat conftest.$ac_ext >&5
8242 ol_cv_pthread_mthreads=no
8246 cat > conftest.$ac_ext <<EOF
8247 #line 8248 "configure"
8248 #include "confdefs.h"
8249 /* pthread test headers */
8250 #include <pthread.h>
8252 #define NULL (void*)0
8255 static void *task(p)
8258 return (void *) (p == NULL);
8262 int main(argc, argv)
8267 /* pthread test function */
8272 #ifdef HAVE_PTHREADS_FINAL
8273 /* Final pthreads */
8274 pthread_attr_t attr;
8276 status = pthread_attr_init(&attr);
8277 if( status ) return status;
8279 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8281 #if defined( PTHREAD_CREATE_JOINABLE )
8282 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8284 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8287 #ifdef PTHREAD_CREATE_DETACHED
8289 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8292 if( status ) return status;
8295 status = pthread_create( &t, &attr, task, NULL );
8296 if( status ) return status;
8298 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8300 /* give thread a chance to complete */
8301 /* it should remain joinable and hence detachable */
8304 status = pthread_detach( t );
8305 if( status ) return status;
8310 /* Draft 4 pthreads */
8311 status = pthread_create( &t, pthread_attr_default, task, NULL );
8312 if( status ) return status;
8315 /* give thread a chance to complete */
8316 /* it should remain joinable and hence detachable */
8319 status = pthread_detach( &t );
8320 if( status ) return status;
8324 #ifdef HAVE_LINUX_THREADS
8325 pthread_kill_other_threads_np();
8333 if { (eval echo configure:8334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8335 ol_cv_pthread_mthreads=yes
8337 echo "configure: failed program was:" >&5
8338 cat conftest.$ac_ext >&5
8340 ol_cv_pthread_mthreads=no
8351 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
8353 if test $ol_cv_pthread_mthreads = yes ; then
8354 ol_link_pthreads="-mthreads"
8355 ol_link_threads=posix
8359 # Pthread try link: -thread (ol_cv_pthread_thread)
8360 if test "$ol_link_threads" = no ; then
8362 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
8363 echo "configure:8364: checking for pthread link with -thread" >&5
8364 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8370 LIBS="-thread $LIBS"
8372 if test "$cross_compiling" = yes; then
8373 cat > conftest.$ac_ext <<EOF
8374 #line 8375 "configure"
8375 #include "confdefs.h"
8376 /* pthread test headers */
8377 #include <pthread.h>
8379 #define NULL (void*)0
8382 static void *task(p)
8385 return (void *) (p == NULL);
8390 /* pthread test function */
8395 #ifdef HAVE_PTHREADS_FINAL
8396 /* Final pthreads */
8397 pthread_attr_t attr;
8399 status = pthread_attr_init(&attr);
8400 if( status ) return status;
8402 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8404 #if defined( PTHREAD_CREATE_JOINABLE )
8405 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8407 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8410 #ifdef PTHREAD_CREATE_DETACHED
8412 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8415 if( status ) return status;
8418 status = pthread_create( &t, &attr, task, NULL );
8419 if( status ) return status;
8421 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8423 /* give thread a chance to complete */
8424 /* it should remain joinable and hence detachable */
8427 status = pthread_detach( t );
8428 if( status ) return status;
8433 /* Draft 4 pthreads */
8434 status = pthread_create( &t, pthread_attr_default, task, NULL );
8435 if( status ) return status;
8438 /* give thread a chance to complete */
8439 /* it should remain joinable and hence detachable */
8442 status = pthread_detach( &t );
8443 if( status ) return status;
8447 #ifdef HAVE_LINUX_THREADS
8448 pthread_kill_other_threads_np();
8455 if { (eval echo configure:8456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8457 ol_cv_pthread_thread=yes
8459 echo "configure: failed program was:" >&5
8460 cat conftest.$ac_ext >&5
8462 ol_cv_pthread_thread=no
8466 cat > conftest.$ac_ext <<EOF
8467 #line 8468 "configure"
8468 #include "confdefs.h"
8469 /* pthread test headers */
8470 #include <pthread.h>
8472 #define NULL (void*)0
8475 static void *task(p)
8478 return (void *) (p == NULL);
8482 int main(argc, argv)
8487 /* pthread test function */
8492 #ifdef HAVE_PTHREADS_FINAL
8493 /* Final pthreads */
8494 pthread_attr_t attr;
8496 status = pthread_attr_init(&attr);
8497 if( status ) return status;
8499 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8501 #if defined( PTHREAD_CREATE_JOINABLE )
8502 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8504 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8507 #ifdef PTHREAD_CREATE_DETACHED
8509 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8512 if( status ) return status;
8515 status = pthread_create( &t, &attr, task, NULL );
8516 if( status ) return status;
8518 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8520 /* give thread a chance to complete */
8521 /* it should remain joinable and hence detachable */
8524 status = pthread_detach( t );
8525 if( status ) return status;
8530 /* Draft 4 pthreads */
8531 status = pthread_create( &t, pthread_attr_default, task, NULL );
8532 if( status ) return status;
8535 /* give thread a chance to complete */
8536 /* it should remain joinable and hence detachable */
8539 status = pthread_detach( &t );
8540 if( status ) return status;
8544 #ifdef HAVE_LINUX_THREADS
8545 pthread_kill_other_threads_np();
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8555 ol_cv_pthread_thread=yes
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 ol_cv_pthread_thread=no
8571 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
8573 if test $ol_cv_pthread_thread = yes ; then
8574 ol_link_pthreads="-thread"
8575 ol_link_threads=posix
8580 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
8581 if test "$ol_link_threads" = no ; then
8582 # try -lpthread -lmach -lexc -lc_r
8583 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
8584 echo "configure:8585: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
8585 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8591 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
8593 if test "$cross_compiling" = yes; then
8594 cat > conftest.$ac_ext <<EOF
8595 #line 8596 "configure"
8596 #include "confdefs.h"
8597 /* pthread test headers */
8598 #include <pthread.h>
8600 #define NULL (void*)0
8603 static void *task(p)
8606 return (void *) (p == NULL);
8611 /* pthread test function */
8616 #ifdef HAVE_PTHREADS_FINAL
8617 /* Final pthreads */
8618 pthread_attr_t attr;
8620 status = pthread_attr_init(&attr);
8621 if( status ) return status;
8623 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8625 #if defined( PTHREAD_CREATE_JOINABLE )
8626 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8628 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8631 #ifdef PTHREAD_CREATE_DETACHED
8633 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8636 if( status ) return status;
8639 status = pthread_create( &t, &attr, task, NULL );
8640 if( status ) return status;
8642 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8644 /* give thread a chance to complete */
8645 /* it should remain joinable and hence detachable */
8648 status = pthread_detach( t );
8649 if( status ) return status;
8654 /* Draft 4 pthreads */
8655 status = pthread_create( &t, pthread_attr_default, task, NULL );
8656 if( status ) return status;
8659 /* give thread a chance to complete */
8660 /* it should remain joinable and hence detachable */
8663 status = pthread_detach( &t );
8664 if( status ) return status;
8668 #ifdef HAVE_LINUX_THREADS
8669 pthread_kill_other_threads_np();
8676 if { (eval echo configure:8677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8680 echo "configure: failed program was:" >&5
8681 cat conftest.$ac_ext >&5
8683 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8687 cat > conftest.$ac_ext <<EOF
8688 #line 8689 "configure"
8689 #include "confdefs.h"
8690 /* pthread test headers */
8691 #include <pthread.h>
8693 #define NULL (void*)0
8696 static void *task(p)
8699 return (void *) (p == NULL);
8703 int main(argc, argv)
8708 /* pthread test function */
8713 #ifdef HAVE_PTHREADS_FINAL
8714 /* Final pthreads */
8715 pthread_attr_t attr;
8717 status = pthread_attr_init(&attr);
8718 if( status ) return status;
8720 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8722 #if defined( PTHREAD_CREATE_JOINABLE )
8723 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8725 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8728 #ifdef PTHREAD_CREATE_DETACHED
8730 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8733 if( status ) return status;
8736 status = pthread_create( &t, &attr, task, NULL );
8737 if( status ) return status;
8739 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8741 /* give thread a chance to complete */
8742 /* it should remain joinable and hence detachable */
8745 status = pthread_detach( t );
8746 if( status ) return status;
8751 /* Draft 4 pthreads */
8752 status = pthread_create( &t, pthread_attr_default, task, NULL );
8753 if( status ) return status;
8756 /* give thread a chance to complete */
8757 /* it should remain joinable and hence detachable */
8760 status = pthread_detach( &t );
8761 if( status ) return status;
8765 #ifdef HAVE_LINUX_THREADS
8766 pthread_kill_other_threads_np();
8774 if { (eval echo configure:8775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8776 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
8778 echo "configure: failed program was:" >&5
8779 cat conftest.$ac_ext >&5
8781 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
8792 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
8794 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
8795 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
8796 ol_link_threads=posix
8800 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
8801 if test "$ol_link_threads" = no ; then
8802 # try -lpthread -lmach -lexc
8803 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
8804 echo "configure:8805: checking for pthread link with -lpthread -lmach -lexc" >&5
8805 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
8806 echo $ac_n "(cached) $ac_c" 1>&6
8811 LIBS="-lpthread -lmach -lexc $LIBS"
8813 if test "$cross_compiling" = yes; then
8814 cat > conftest.$ac_ext <<EOF
8815 #line 8816 "configure"
8816 #include "confdefs.h"
8817 /* pthread test headers */
8818 #include <pthread.h>
8820 #define NULL (void*)0
8823 static void *task(p)
8826 return (void *) (p == NULL);
8831 /* pthread test function */
8836 #ifdef HAVE_PTHREADS_FINAL
8837 /* Final pthreads */
8838 pthread_attr_t attr;
8840 status = pthread_attr_init(&attr);
8841 if( status ) return status;
8843 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8845 #if defined( PTHREAD_CREATE_JOINABLE )
8846 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8848 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8851 #ifdef PTHREAD_CREATE_DETACHED
8853 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8856 if( status ) return status;
8859 status = pthread_create( &t, &attr, task, NULL );
8860 if( status ) return status;
8862 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8864 /* give thread a chance to complete */
8865 /* it should remain joinable and hence detachable */
8868 status = pthread_detach( t );
8869 if( status ) return status;
8874 /* Draft 4 pthreads */
8875 status = pthread_create( &t, pthread_attr_default, task, NULL );
8876 if( status ) return status;
8879 /* give thread a chance to complete */
8880 /* it should remain joinable and hence detachable */
8883 status = pthread_detach( &t );
8884 if( status ) return status;
8888 #ifdef HAVE_LINUX_THREADS
8889 pthread_kill_other_threads_np();
8896 if { (eval echo configure:8897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8898 ol_cv_pthread_lpthread_lmach_lexc=yes
8900 echo "configure: failed program was:" >&5
8901 cat conftest.$ac_ext >&5
8903 ol_cv_pthread_lpthread_lmach_lexc=no
8907 cat > conftest.$ac_ext <<EOF
8908 #line 8909 "configure"
8909 #include "confdefs.h"
8910 /* pthread test headers */
8911 #include <pthread.h>
8913 #define NULL (void*)0
8916 static void *task(p)
8919 return (void *) (p == NULL);
8923 int main(argc, argv)
8928 /* pthread test function */
8933 #ifdef HAVE_PTHREADS_FINAL
8934 /* Final pthreads */
8935 pthread_attr_t attr;
8937 status = pthread_attr_init(&attr);
8938 if( status ) return status;
8940 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
8942 #if defined( PTHREAD_CREATE_JOINABLE )
8943 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
8945 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
8948 #ifdef PTHREAD_CREATE_DETACHED
8950 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
8953 if( status ) return status;
8956 status = pthread_create( &t, &attr, task, NULL );
8957 if( status ) return status;
8959 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
8961 /* give thread a chance to complete */
8962 /* it should remain joinable and hence detachable */
8965 status = pthread_detach( t );
8966 if( status ) return status;
8971 /* Draft 4 pthreads */
8972 status = pthread_create( &t, pthread_attr_default, task, NULL );
8973 if( status ) return status;
8976 /* give thread a chance to complete */
8977 /* it should remain joinable and hence detachable */
8980 status = pthread_detach( &t );
8981 if( status ) return status;
8985 #ifdef HAVE_LINUX_THREADS
8986 pthread_kill_other_threads_np();
8994 if { (eval echo configure:8995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8996 ol_cv_pthread_lpthread_lmach_lexc=yes
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9001 ol_cv_pthread_lpthread_lmach_lexc=no
9012 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
9014 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
9015 ol_link_pthreads="-lpthread -lmach -lexc"
9016 ol_link_threads=posix
9021 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
9022 if test "$ol_link_threads" = no ; then
9023 # try -lpthread -Wl,-woff,85
9024 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
9025 echo "configure:9026: checking for pthread link with -lpthread -Wl,-woff,85" >&5
9026 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
9027 echo $ac_n "(cached) $ac_c" 1>&6
9032 LIBS="-lpthread -Wl,-woff,85 $LIBS"
9034 if test "$cross_compiling" = yes; then
9035 cat > conftest.$ac_ext <<EOF
9036 #line 9037 "configure"
9037 #include "confdefs.h"
9038 /* pthread test headers */
9039 #include <pthread.h>
9041 #define NULL (void*)0
9044 static void *task(p)
9047 return (void *) (p == NULL);
9052 /* pthread test function */
9057 #ifdef HAVE_PTHREADS_FINAL
9058 /* Final pthreads */
9059 pthread_attr_t attr;
9061 status = pthread_attr_init(&attr);
9062 if( status ) return status;
9064 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9066 #if defined( PTHREAD_CREATE_JOINABLE )
9067 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9069 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9072 #ifdef PTHREAD_CREATE_DETACHED
9074 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9077 if( status ) return status;
9080 status = pthread_create( &t, &attr, task, NULL );
9081 if( status ) return status;
9083 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9085 /* give thread a chance to complete */
9086 /* it should remain joinable and hence detachable */
9089 status = pthread_detach( t );
9090 if( status ) return status;
9095 /* Draft 4 pthreads */
9096 status = pthread_create( &t, pthread_attr_default, task, NULL );
9097 if( status ) return status;
9100 /* give thread a chance to complete */
9101 /* it should remain joinable and hence detachable */
9104 status = pthread_detach( &t );
9105 if( status ) return status;
9109 #ifdef HAVE_LINUX_THREADS
9110 pthread_kill_other_threads_np();
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 ol_cv_pthread_lib_lpthread_woff=yes
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 ol_cv_pthread_lib_lpthread_woff=no
9128 cat > conftest.$ac_ext <<EOF
9129 #line 9130 "configure"
9130 #include "confdefs.h"
9131 /* pthread test headers */
9132 #include <pthread.h>
9134 #define NULL (void*)0
9137 static void *task(p)
9140 return (void *) (p == NULL);
9144 int main(argc, argv)
9149 /* pthread test function */
9154 #ifdef HAVE_PTHREADS_FINAL
9155 /* Final pthreads */
9156 pthread_attr_t attr;
9158 status = pthread_attr_init(&attr);
9159 if( status ) return status;
9161 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9163 #if defined( PTHREAD_CREATE_JOINABLE )
9164 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9166 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9169 #ifdef PTHREAD_CREATE_DETACHED
9171 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9174 if( status ) return status;
9177 status = pthread_create( &t, &attr, task, NULL );
9178 if( status ) return status;
9180 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9182 /* give thread a chance to complete */
9183 /* it should remain joinable and hence detachable */
9186 status = pthread_detach( t );
9187 if( status ) return status;
9192 /* Draft 4 pthreads */
9193 status = pthread_create( &t, pthread_attr_default, task, NULL );
9194 if( status ) return status;
9197 /* give thread a chance to complete */
9198 /* it should remain joinable and hence detachable */
9201 status = pthread_detach( &t );
9202 if( status ) return status;
9206 #ifdef HAVE_LINUX_THREADS
9207 pthread_kill_other_threads_np();
9215 if { (eval echo configure:9216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9217 ol_cv_pthread_lib_lpthread_woff=yes
9219 echo "configure: failed program was:" >&5
9220 cat conftest.$ac_ext >&5
9222 ol_cv_pthread_lib_lpthread_woff=no
9233 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
9235 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
9236 ol_link_pthreads="-lpthread -Wl,-woff,85"
9237 ol_link_threads=posix
9242 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
9243 if test "$ol_link_threads" = no ; then
9245 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
9246 echo "configure:9247: checking for pthread link with -lpthread" >&5
9247 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
9248 echo $ac_n "(cached) $ac_c" 1>&6
9253 LIBS="-lpthread $LIBS"
9255 if test "$cross_compiling" = yes; then
9256 cat > conftest.$ac_ext <<EOF
9257 #line 9258 "configure"
9258 #include "confdefs.h"
9259 /* pthread test headers */
9260 #include <pthread.h>
9262 #define NULL (void*)0
9265 static void *task(p)
9268 return (void *) (p == NULL);
9273 /* pthread test function */
9278 #ifdef HAVE_PTHREADS_FINAL
9279 /* Final pthreads */
9280 pthread_attr_t attr;
9282 status = pthread_attr_init(&attr);
9283 if( status ) return status;
9285 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9287 #if defined( PTHREAD_CREATE_JOINABLE )
9288 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9290 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9293 #ifdef PTHREAD_CREATE_DETACHED
9295 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9298 if( status ) return status;
9301 status = pthread_create( &t, &attr, task, NULL );
9302 if( status ) return status;
9304 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9306 /* give thread a chance to complete */
9307 /* it should remain joinable and hence detachable */
9310 status = pthread_detach( t );
9311 if( status ) return status;
9316 /* Draft 4 pthreads */
9317 status = pthread_create( &t, pthread_attr_default, task, NULL );
9318 if( status ) return status;
9321 /* give thread a chance to complete */
9322 /* it should remain joinable and hence detachable */
9325 status = pthread_detach( &t );
9326 if( status ) return status;
9330 #ifdef HAVE_LINUX_THREADS
9331 pthread_kill_other_threads_np();
9338 if { (eval echo configure:9339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9340 ol_cv_pthread_lpthread=yes
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9345 ol_cv_pthread_lpthread=no
9349 cat > conftest.$ac_ext <<EOF
9350 #line 9351 "configure"
9351 #include "confdefs.h"
9352 /* pthread test headers */
9353 #include <pthread.h>
9355 #define NULL (void*)0
9358 static void *task(p)
9361 return (void *) (p == NULL);
9365 int main(argc, argv)
9370 /* pthread test function */
9375 #ifdef HAVE_PTHREADS_FINAL
9376 /* Final pthreads */
9377 pthread_attr_t attr;
9379 status = pthread_attr_init(&attr);
9380 if( status ) return status;
9382 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9384 #if defined( PTHREAD_CREATE_JOINABLE )
9385 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9387 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9390 #ifdef PTHREAD_CREATE_DETACHED
9392 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9395 if( status ) return status;
9398 status = pthread_create( &t, &attr, task, NULL );
9399 if( status ) return status;
9401 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9403 /* give thread a chance to complete */
9404 /* it should remain joinable and hence detachable */
9407 status = pthread_detach( t );
9408 if( status ) return status;
9413 /* Draft 4 pthreads */
9414 status = pthread_create( &t, pthread_attr_default, task, NULL );
9415 if( status ) return status;
9418 /* give thread a chance to complete */
9419 /* it should remain joinable and hence detachable */
9422 status = pthread_detach( &t );
9423 if( status ) return status;
9427 #ifdef HAVE_LINUX_THREADS
9428 pthread_kill_other_threads_np();
9436 if { (eval echo configure:9437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9438 ol_cv_pthread_lpthread=yes
9440 echo "configure: failed program was:" >&5
9441 cat conftest.$ac_ext >&5
9443 ol_cv_pthread_lpthread=no
9454 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
9456 if test $ol_cv_pthread_lpthread = yes ; then
9457 ol_link_pthreads="-lpthread"
9458 ol_link_threads=posix
9462 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
9463 if test "$ol_link_threads" = no ; then
9465 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
9466 echo "configure:9467: checking for pthread link with -lc_r" >&5
9467 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
9468 echo $ac_n "(cached) $ac_c" 1>&6
9475 if test "$cross_compiling" = yes; then
9476 cat > conftest.$ac_ext <<EOF
9477 #line 9478 "configure"
9478 #include "confdefs.h"
9479 /* pthread test headers */
9480 #include <pthread.h>
9482 #define NULL (void*)0
9485 static void *task(p)
9488 return (void *) (p == NULL);
9493 /* pthread test function */
9498 #ifdef HAVE_PTHREADS_FINAL
9499 /* Final pthreads */
9500 pthread_attr_t attr;
9502 status = pthread_attr_init(&attr);
9503 if( status ) return status;
9505 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9507 #if defined( PTHREAD_CREATE_JOINABLE )
9508 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9510 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9513 #ifdef PTHREAD_CREATE_DETACHED
9515 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9518 if( status ) return status;
9521 status = pthread_create( &t, &attr, task, NULL );
9522 if( status ) return status;
9524 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9526 /* give thread a chance to complete */
9527 /* it should remain joinable and hence detachable */
9530 status = pthread_detach( t );
9531 if( status ) return status;
9536 /* Draft 4 pthreads */
9537 status = pthread_create( &t, pthread_attr_default, task, NULL );
9538 if( status ) return status;
9541 /* give thread a chance to complete */
9542 /* it should remain joinable and hence detachable */
9545 status = pthread_detach( &t );
9546 if( status ) return status;
9550 #ifdef HAVE_LINUX_THREADS
9551 pthread_kill_other_threads_np();
9558 if { (eval echo configure:9559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9560 ol_cv_pthread_lc_r=yes
9562 echo "configure: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9565 ol_cv_pthread_lc_r=no
9569 cat > conftest.$ac_ext <<EOF
9570 #line 9571 "configure"
9571 #include "confdefs.h"
9572 /* pthread test headers */
9573 #include <pthread.h>
9575 #define NULL (void*)0
9578 static void *task(p)
9581 return (void *) (p == NULL);
9585 int main(argc, argv)
9590 /* pthread test function */
9595 #ifdef HAVE_PTHREADS_FINAL
9596 /* Final pthreads */
9597 pthread_attr_t attr;
9599 status = pthread_attr_init(&attr);
9600 if( status ) return status;
9602 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9604 #if defined( PTHREAD_CREATE_JOINABLE )
9605 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9607 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9610 #ifdef PTHREAD_CREATE_DETACHED
9612 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9615 if( status ) return status;
9618 status = pthread_create( &t, &attr, task, NULL );
9619 if( status ) return status;
9621 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9623 /* give thread a chance to complete */
9624 /* it should remain joinable and hence detachable */
9627 status = pthread_detach( t );
9628 if( status ) return status;
9633 /* Draft 4 pthreads */
9634 status = pthread_create( &t, pthread_attr_default, task, NULL );
9635 if( status ) return status;
9638 /* give thread a chance to complete */
9639 /* it should remain joinable and hence detachable */
9642 status = pthread_detach( &t );
9643 if( status ) return status;
9647 #ifdef HAVE_LINUX_THREADS
9648 pthread_kill_other_threads_np();
9656 if { (eval echo configure:9657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9658 ol_cv_pthread_lc_r=yes
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9663 ol_cv_pthread_lc_r=no
9674 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
9676 if test $ol_cv_pthread_lc_r = yes ; then
9677 ol_link_pthreads="-lc_r"
9678 ol_link_threads=posix
9683 # Pthread try link: -threads (ol_cv_pthread_threads)
9684 if test "$ol_link_threads" = no ; then
9686 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
9687 echo "configure:9688: checking for pthread link with -threads" >&5
9688 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
9689 echo $ac_n "(cached) $ac_c" 1>&6
9694 LIBS="-threads $LIBS"
9696 if test "$cross_compiling" = yes; then
9697 cat > conftest.$ac_ext <<EOF
9698 #line 9699 "configure"
9699 #include "confdefs.h"
9700 /* pthread test headers */
9701 #include <pthread.h>
9703 #define NULL (void*)0
9706 static void *task(p)
9709 return (void *) (p == NULL);
9714 /* pthread test function */
9719 #ifdef HAVE_PTHREADS_FINAL
9720 /* Final pthreads */
9721 pthread_attr_t attr;
9723 status = pthread_attr_init(&attr);
9724 if( status ) return status;
9726 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9728 #if defined( PTHREAD_CREATE_JOINABLE )
9729 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9731 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9734 #ifdef PTHREAD_CREATE_DETACHED
9736 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9739 if( status ) return status;
9742 status = pthread_create( &t, &attr, task, NULL );
9743 if( status ) return status;
9745 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9747 /* give thread a chance to complete */
9748 /* it should remain joinable and hence detachable */
9751 status = pthread_detach( t );
9752 if( status ) return status;
9757 /* Draft 4 pthreads */
9758 status = pthread_create( &t, pthread_attr_default, task, NULL );
9759 if( status ) return status;
9762 /* give thread a chance to complete */
9763 /* it should remain joinable and hence detachable */
9766 status = pthread_detach( &t );
9767 if( status ) return status;
9771 #ifdef HAVE_LINUX_THREADS
9772 pthread_kill_other_threads_np();
9779 if { (eval echo configure:9780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9781 ol_cv_pthread_threads=yes
9783 echo "configure: failed program was:" >&5
9784 cat conftest.$ac_ext >&5
9786 ol_cv_pthread_threads=no
9790 cat > conftest.$ac_ext <<EOF
9791 #line 9792 "configure"
9792 #include "confdefs.h"
9793 /* pthread test headers */
9794 #include <pthread.h>
9796 #define NULL (void*)0
9799 static void *task(p)
9802 return (void *) (p == NULL);
9806 int main(argc, argv)
9811 /* pthread test function */
9816 #ifdef HAVE_PTHREADS_FINAL
9817 /* Final pthreads */
9818 pthread_attr_t attr;
9820 status = pthread_attr_init(&attr);
9821 if( status ) return status;
9823 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9825 #if defined( PTHREAD_CREATE_JOINABLE )
9826 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9828 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9831 #ifdef PTHREAD_CREATE_DETACHED
9833 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9836 if( status ) return status;
9839 status = pthread_create( &t, &attr, task, NULL );
9840 if( status ) return status;
9842 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9844 /* give thread a chance to complete */
9845 /* it should remain joinable and hence detachable */
9848 status = pthread_detach( t );
9849 if( status ) return status;
9854 /* Draft 4 pthreads */
9855 status = pthread_create( &t, pthread_attr_default, task, NULL );
9856 if( status ) return status;
9859 /* give thread a chance to complete */
9860 /* it should remain joinable and hence detachable */
9863 status = pthread_detach( &t );
9864 if( status ) return status;
9868 #ifdef HAVE_LINUX_THREADS
9869 pthread_kill_other_threads_np();
9877 if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9879 ol_cv_pthread_threads=yes
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9884 ol_cv_pthread_threads=no
9895 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
9897 if test $ol_cv_pthread_threads = yes ; then
9898 ol_link_pthreads="-threads"
9899 ol_link_threads=posix
9904 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
9905 if test "$ol_link_threads" = no ; then
9906 # try -lpthreads -lmach -lexc -lc_r
9907 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
9908 echo "configure:9909: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
9909 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
9910 echo $ac_n "(cached) $ac_c" 1>&6
9915 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
9917 if test "$cross_compiling" = yes; then
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* pthread test headers */
9922 #include <pthread.h>
9924 #define NULL (void*)0
9927 static void *task(p)
9930 return (void *) (p == NULL);
9935 /* pthread test function */
9940 #ifdef HAVE_PTHREADS_FINAL
9941 /* Final pthreads */
9942 pthread_attr_t attr;
9944 status = pthread_attr_init(&attr);
9945 if( status ) return status;
9947 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
9949 #if defined( PTHREAD_CREATE_JOINABLE )
9950 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
9952 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
9955 #ifdef PTHREAD_CREATE_DETACHED
9957 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
9960 if( status ) return status;
9963 status = pthread_create( &t, &attr, task, NULL );
9964 if( status ) return status;
9966 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
9968 /* give thread a chance to complete */
9969 /* it should remain joinable and hence detachable */
9972 status = pthread_detach( t );
9973 if( status ) return status;
9978 /* Draft 4 pthreads */
9979 status = pthread_create( &t, pthread_attr_default, task, NULL );
9980 if( status ) return status;
9983 /* give thread a chance to complete */
9984 /* it should remain joinable and hence detachable */
9987 status = pthread_detach( &t );
9988 if( status ) return status;
9992 #ifdef HAVE_LINUX_THREADS
9993 pthread_kill_other_threads_np();
10000 if { (eval echo configure:10001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10002 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10004 echo "configure: failed program was:" >&5
10005 cat conftest.$ac_ext >&5
10007 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10011 cat > conftest.$ac_ext <<EOF
10012 #line 10013 "configure"
10013 #include "confdefs.h"
10014 /* pthread test headers */
10015 #include <pthread.h>
10017 #define NULL (void*)0
10020 static void *task(p)
10023 return (void *) (p == NULL);
10027 int main(argc, argv)
10032 /* pthread test function */
10037 #ifdef HAVE_PTHREADS_FINAL
10038 /* Final pthreads */
10039 pthread_attr_t attr;
10041 status = pthread_attr_init(&attr);
10042 if( status ) return status;
10044 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10046 #if defined( PTHREAD_CREATE_JOINABLE )
10047 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10049 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10052 #ifdef PTHREAD_CREATE_DETACHED
10054 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10057 if( status ) return status;
10060 status = pthread_create( &t, &attr, task, NULL );
10061 if( status ) return status;
10063 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10065 /* give thread a chance to complete */
10066 /* it should remain joinable and hence detachable */
10069 status = pthread_detach( t );
10070 if( status ) return status;
10075 /* Draft 4 pthreads */
10076 status = pthread_create( &t, pthread_attr_default, task, NULL );
10077 if( status ) return status;
10080 /* give thread a chance to complete */
10081 /* it should remain joinable and hence detachable */
10084 status = pthread_detach( &t );
10085 if( status ) return status;
10089 #ifdef HAVE_LINUX_THREADS
10090 pthread_kill_other_threads_np();
10098 if { (eval echo configure:10099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10100 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
10102 echo "configure: failed program was:" >&5
10103 cat conftest.$ac_ext >&5
10105 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
10116 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
10118 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
10119 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
10120 ol_link_threads=posix
10124 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
10125 if test "$ol_link_threads" = no ; then
10126 # try -lpthreads -lmach -lexc
10127 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
10128 echo "configure:10129: checking for pthread link with -lpthreads -lmach -lexc" >&5
10129 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
10130 echo $ac_n "(cached) $ac_c" 1>&6
10135 LIBS="-lpthreads -lmach -lexc $LIBS"
10137 if test "$cross_compiling" = yes; then
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* pthread test headers */
10142 #include <pthread.h>
10144 #define NULL (void*)0
10147 static void *task(p)
10150 return (void *) (p == NULL);
10155 /* pthread test function */
10160 #ifdef HAVE_PTHREADS_FINAL
10161 /* Final pthreads */
10162 pthread_attr_t attr;
10164 status = pthread_attr_init(&attr);
10165 if( status ) return status;
10167 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10169 #if defined( PTHREAD_CREATE_JOINABLE )
10170 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10172 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10175 #ifdef PTHREAD_CREATE_DETACHED
10177 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10180 if( status ) return status;
10183 status = pthread_create( &t, &attr, task, NULL );
10184 if( status ) return status;
10186 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10188 /* give thread a chance to complete */
10189 /* it should remain joinable and hence detachable */
10192 status = pthread_detach( t );
10193 if( status ) return status;
10198 /* Draft 4 pthreads */
10199 status = pthread_create( &t, pthread_attr_default, task, NULL );
10200 if( status ) return status;
10203 /* give thread a chance to complete */
10204 /* it should remain joinable and hence detachable */
10207 status = pthread_detach( &t );
10208 if( status ) return status;
10212 #ifdef HAVE_LINUX_THREADS
10213 pthread_kill_other_threads_np();
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10222 ol_cv_pthread_lpthreads_lmach_lexc=yes
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10227 ol_cv_pthread_lpthreads_lmach_lexc=no
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10234 /* pthread test headers */
10235 #include <pthread.h>
10237 #define NULL (void*)0
10240 static void *task(p)
10243 return (void *) (p == NULL);
10247 int main(argc, argv)
10252 /* pthread test function */
10257 #ifdef HAVE_PTHREADS_FINAL
10258 /* Final pthreads */
10259 pthread_attr_t attr;
10261 status = pthread_attr_init(&attr);
10262 if( status ) return status;
10264 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10266 #if defined( PTHREAD_CREATE_JOINABLE )
10267 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10269 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10272 #ifdef PTHREAD_CREATE_DETACHED
10274 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10277 if( status ) return status;
10280 status = pthread_create( &t, &attr, task, NULL );
10281 if( status ) return status;
10283 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10285 /* give thread a chance to complete */
10286 /* it should remain joinable and hence detachable */
10289 status = pthread_detach( t );
10290 if( status ) return status;
10295 /* Draft 4 pthreads */
10296 status = pthread_create( &t, pthread_attr_default, task, NULL );
10297 if( status ) return status;
10300 /* give thread a chance to complete */
10301 /* it should remain joinable and hence detachable */
10304 status = pthread_detach( &t );
10305 if( status ) return status;
10309 #ifdef HAVE_LINUX_THREADS
10310 pthread_kill_other_threads_np();
10318 if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10320 ol_cv_pthread_lpthreads_lmach_lexc=yes
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10325 ol_cv_pthread_lpthreads_lmach_lexc=no
10336 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
10338 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
10339 ol_link_pthreads="-lpthreads -lmach -lexc"
10340 ol_link_threads=posix
10344 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
10345 if test "$ol_link_threads" = no ; then
10346 # try -lpthreads -lexc
10347 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
10348 echo "configure:10349: checking for pthread link with -lpthreads -lexc" >&5
10349 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
10350 echo $ac_n "(cached) $ac_c" 1>&6
10355 LIBS="-lpthreads -lexc $LIBS"
10357 if test "$cross_compiling" = yes; then
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 /* pthread test headers */
10362 #include <pthread.h>
10364 #define NULL (void*)0
10367 static void *task(p)
10370 return (void *) (p == NULL);
10375 /* pthread test function */
10380 #ifdef HAVE_PTHREADS_FINAL
10381 /* Final pthreads */
10382 pthread_attr_t attr;
10384 status = pthread_attr_init(&attr);
10385 if( status ) return status;
10387 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10389 #if defined( PTHREAD_CREATE_JOINABLE )
10390 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10392 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10395 #ifdef PTHREAD_CREATE_DETACHED
10397 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10400 if( status ) return status;
10403 status = pthread_create( &t, &attr, task, NULL );
10404 if( status ) return status;
10406 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10408 /* give thread a chance to complete */
10409 /* it should remain joinable and hence detachable */
10412 status = pthread_detach( t );
10413 if( status ) return status;
10418 /* Draft 4 pthreads */
10419 status = pthread_create( &t, pthread_attr_default, task, NULL );
10420 if( status ) return status;
10423 /* give thread a chance to complete */
10424 /* it should remain joinable and hence detachable */
10427 status = pthread_detach( &t );
10428 if( status ) return status;
10432 #ifdef HAVE_LINUX_THREADS
10433 pthread_kill_other_threads_np();
10440 if { (eval echo configure:10441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10442 ol_cv_pthread_lpthreads_lexc=yes
10444 echo "configure: failed program was:" >&5
10445 cat conftest.$ac_ext >&5
10447 ol_cv_pthread_lpthreads_lexc=no
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10454 /* pthread test headers */
10455 #include <pthread.h>
10457 #define NULL (void*)0
10460 static void *task(p)
10463 return (void *) (p == NULL);
10467 int main(argc, argv)
10472 /* pthread test function */
10477 #ifdef HAVE_PTHREADS_FINAL
10478 /* Final pthreads */
10479 pthread_attr_t attr;
10481 status = pthread_attr_init(&attr);
10482 if( status ) return status;
10484 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10486 #if defined( PTHREAD_CREATE_JOINABLE )
10487 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10489 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10492 #ifdef PTHREAD_CREATE_DETACHED
10494 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10497 if( status ) return status;
10500 status = pthread_create( &t, &attr, task, NULL );
10501 if( status ) return status;
10503 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10505 /* give thread a chance to complete */
10506 /* it should remain joinable and hence detachable */
10509 status = pthread_detach( t );
10510 if( status ) return status;
10515 /* Draft 4 pthreads */
10516 status = pthread_create( &t, pthread_attr_default, task, NULL );
10517 if( status ) return status;
10520 /* give thread a chance to complete */
10521 /* it should remain joinable and hence detachable */
10524 status = pthread_detach( &t );
10525 if( status ) return status;
10529 #ifdef HAVE_LINUX_THREADS
10530 pthread_kill_other_threads_np();
10538 if { (eval echo configure:10539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10540 ol_cv_pthread_lpthreads_lexc=yes
10542 echo "configure: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10545 ol_cv_pthread_lpthreads_lexc=no
10556 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
10558 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
10559 ol_link_pthreads="-lpthreads -lexc"
10560 ol_link_threads=posix
10565 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
10566 if test "$ol_link_threads" = no ; then
10568 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
10569 echo "configure:10570: checking for pthread link with -lpthreads" >&5
10570 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
10571 echo $ac_n "(cached) $ac_c" 1>&6
10576 LIBS="-lpthreads $LIBS"
10578 if test "$cross_compiling" = yes; then
10579 cat > conftest.$ac_ext <<EOF
10580 #line 10581 "configure"
10581 #include "confdefs.h"
10582 /* pthread test headers */
10583 #include <pthread.h>
10585 #define NULL (void*)0
10588 static void *task(p)
10591 return (void *) (p == NULL);
10596 /* pthread test function */
10601 #ifdef HAVE_PTHREADS_FINAL
10602 /* Final pthreads */
10603 pthread_attr_t attr;
10605 status = pthread_attr_init(&attr);
10606 if( status ) return status;
10608 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10610 #if defined( PTHREAD_CREATE_JOINABLE )
10611 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10613 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10616 #ifdef PTHREAD_CREATE_DETACHED
10618 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10621 if( status ) return status;
10624 status = pthread_create( &t, &attr, task, NULL );
10625 if( status ) return status;
10627 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10629 /* give thread a chance to complete */
10630 /* it should remain joinable and hence detachable */
10633 status = pthread_detach( t );
10634 if( status ) return status;
10639 /* Draft 4 pthreads */
10640 status = pthread_create( &t, pthread_attr_default, task, NULL );
10641 if( status ) return status;
10644 /* give thread a chance to complete */
10645 /* it should remain joinable and hence detachable */
10648 status = pthread_detach( &t );
10649 if( status ) return status;
10653 #ifdef HAVE_LINUX_THREADS
10654 pthread_kill_other_threads_np();
10661 if { (eval echo configure:10662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10663 ol_cv_pthread_lib_lpthreads=yes
10665 echo "configure: failed program was:" >&5
10666 cat conftest.$ac_ext >&5
10668 ol_cv_pthread_lib_lpthreads=no
10672 cat > conftest.$ac_ext <<EOF
10673 #line 10674 "configure"
10674 #include "confdefs.h"
10675 /* pthread test headers */
10676 #include <pthread.h>
10678 #define NULL (void*)0
10681 static void *task(p)
10684 return (void *) (p == NULL);
10688 int main(argc, argv)
10693 /* pthread test function */
10698 #ifdef HAVE_PTHREADS_FINAL
10699 /* Final pthreads */
10700 pthread_attr_t attr;
10702 status = pthread_attr_init(&attr);
10703 if( status ) return status;
10705 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
10707 #if defined( PTHREAD_CREATE_JOINABLE )
10708 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
10710 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
10713 #ifdef PTHREAD_CREATE_DETACHED
10715 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
10718 if( status ) return status;
10721 status = pthread_create( &t, &attr, task, NULL );
10722 if( status ) return status;
10724 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
10726 /* give thread a chance to complete */
10727 /* it should remain joinable and hence detachable */
10730 status = pthread_detach( t );
10731 if( status ) return status;
10736 /* Draft 4 pthreads */
10737 status = pthread_create( &t, pthread_attr_default, task, NULL );
10738 if( status ) return status;
10741 /* give thread a chance to complete */
10742 /* it should remain joinable and hence detachable */
10745 status = pthread_detach( &t );
10746 if( status ) return status;
10750 #ifdef HAVE_LINUX_THREADS
10751 pthread_kill_other_threads_np();
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10761 ol_cv_pthread_lib_lpthreads=yes
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10766 ol_cv_pthread_lib_lpthreads=no
10777 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
10779 if test $ol_cv_pthread_lib_lpthreads = yes ; then
10780 ol_link_pthreads="-lpthreads"
10781 ol_link_threads=posix
10786 if test $ol_link_threads != no ; then
10787 cat >> confdefs.h <<\EOF
10788 #define HAVE_PTHREADS 1
10792 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
10794 save_CPPFLAGS="$CPPFLAGS"
10796 LIBS="$LTHREAD_LIBS $LIBS"
10798 for ac_func in sched_yield pthread_yield
10800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10801 echo "configure:10802: checking for $ac_func" >&5
10802 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10803 echo $ac_n "(cached) $ac_c" 1>&6
10805 cat > conftest.$ac_ext <<EOF
10806 #line 10807 "configure"
10807 #include "confdefs.h"
10808 /* System header to define __stub macros and hopefully few prototypes,
10809 which can conflict with char $ac_func(); below. */
10810 #include <assert.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. */
10819 /* The GNU C library defines this for functions which it implements
10820 to always fail with ENOSYS. Some functions are actually named
10821 something starting with __ and the normal name is an alias. */
10822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10830 if { (eval echo configure:10831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10832 eval "ac_cv_func_$ac_func=yes"
10834 echo "configure: failed program was:" >&5
10835 cat conftest.$ac_ext >&5
10837 eval "ac_cv_func_$ac_func=no"
10842 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10843 echo "$ac_t""yes" 1>&6
10844 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10845 cat >> confdefs.h <<EOF
10846 #define $ac_tr_func 1
10850 echo "$ac_t""no" 1>&6
10855 if test $ac_cv_func_sched_yield = no -a \
10856 $ac_cv_func_pthread_yield = no ; then
10857 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
10858 echo "configure:10859: checking for sched_yield in -lrt" >&5
10859 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
10860 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10861 echo $ac_n "(cached) $ac_c" 1>&6
10863 ac_save_LIBS="$LIBS"
10865 cat > conftest.$ac_ext <<EOF
10866 #line 10867 "configure"
10867 #include "confdefs.h"
10868 /* Override any gcc2 internal prototype to avoid an error. */
10869 /* We use char because int might match the return type of a gcc2
10870 builtin and then its argument prototype would still apply. */
10871 char sched_yield();
10877 if { (eval echo configure:10878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10879 eval "ac_cv_lib_$ac_lib_var=yes"
10881 echo "configure: failed program was:" >&5
10882 cat conftest.$ac_ext >&5
10884 eval "ac_cv_lib_$ac_lib_var=no"
10887 LIBS="$ac_save_LIBS"
10890 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10891 echo "$ac_t""yes" 1>&6
10892 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
10893 cat >> confdefs.h <<\EOF
10894 #define HAVE_SCHED_YIELD 1
10897 ac_cv_func_sched_yield=yes
10899 echo "$ac_t""no" 1>&6
10900 ac_cv_func_sched_yield=no
10904 if test $ac_cv_func_sched_yield = no -a \
10905 $ac_cv_func_pthread_yield = no ; then
10906 for ac_func in thr_yield
10908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10909 echo "configure:10910: checking for $ac_func" >&5
10910 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10911 echo $ac_n "(cached) $ac_c" 1>&6
10913 cat > conftest.$ac_ext <<EOF
10914 #line 10915 "configure"
10915 #include "confdefs.h"
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func(); below. */
10918 #include <assert.h>
10919 /* Override any gcc2 internal prototype to avoid an error. */
10920 /* We use char because int might match the return type of a gcc2
10921 builtin and then its argument prototype would still apply. */
10927 /* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10938 if { (eval echo configure:10939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10940 eval "ac_cv_func_$ac_func=yes"
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 eval "ac_cv_func_$ac_func=no"
10950 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10951 echo "$ac_t""yes" 1>&6
10952 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10953 cat >> confdefs.h <<EOF
10954 #define $ac_tr_func 1
10958 echo "$ac_t""no" 1>&6
10963 if test $ac_cv_func_sched_yield = no -a \
10964 $ac_cv_func_pthread_yield = no -a \
10965 "$ac_cv_func_thr_yield" = no ; then
10966 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
10969 for ac_func in pthread_kill pthread_rwlock_destroy
10971 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10972 echo "configure:10973: checking for $ac_func" >&5
10973 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10974 echo $ac_n "(cached) $ac_c" 1>&6
10976 cat > conftest.$ac_ext <<EOF
10977 #line 10978 "configure"
10978 #include "confdefs.h"
10979 /* System header to define __stub macros and hopefully few prototypes,
10980 which can conflict with char $ac_func(); below. */
10981 #include <assert.h>
10982 /* Override any gcc2 internal prototype to avoid an error. */
10983 /* We use char because int might match the return type of a gcc2
10984 builtin and then its argument prototype would still apply. */
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11001 if { (eval echo configure:11002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11003 eval "ac_cv_func_$ac_func=yes"
11005 echo "configure: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11008 eval "ac_cv_func_$ac_func=no"
11013 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11014 echo "$ac_t""yes" 1>&6
11015 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11016 cat >> confdefs.h <<EOF
11017 #define $ac_tr_func 1
11021 echo "$ac_t""no" 1>&6
11026 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
11027 echo "configure:11028: checking for pthread_detach with <pthread.h>" >&5
11028 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
11029 echo $ac_n "(cached) $ac_c" 1>&6
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11036 #include <pthread.h>
11038 #define NULL (void*)0
11042 pthread_detach(NULL);
11045 if { (eval echo configure:11046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11047 ol_cv_func_pthread_detach=yes
11049 echo "configure: failed program was:" >&5
11050 cat conftest.$ac_ext >&5
11052 ol_cv_func_pthread_detach=no
11058 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
11060 if test $ol_cv_func_pthread_detach = no ; then
11061 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
11064 cat >> confdefs.h <<\EOF
11065 #define HAVE_PTHREAD_DETACH 1
11070 pthread_setconcurrency \
11071 pthread_getconcurrency \
11072 thr_setconcurrency \
11073 thr_getconcurrency \
11076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11077 echo "configure:11078: checking for $ac_func" >&5
11078 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11079 echo $ac_n "(cached) $ac_c" 1>&6
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func(); below. */
11086 #include <assert.h>
11087 /* Override any gcc2 internal prototype to avoid an error. */
11088 /* We use char because int might match the return type of a gcc2
11089 builtin and then its argument prototype would still apply. */
11095 /* The GNU C library defines this for functions which it implements
11096 to always fail with ENOSYS. Some functions are actually named
11097 something starting with __ and the normal name is an alias. */
11098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11106 if { (eval echo configure:11107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11108 eval "ac_cv_func_$ac_func=yes"
11110 echo "configure: failed program was:" >&5
11111 cat conftest.$ac_ext >&5
11113 eval "ac_cv_func_$ac_func=no"
11118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11119 echo "$ac_t""yes" 1>&6
11120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11121 cat >> confdefs.h <<EOF
11122 #define $ac_tr_func 1
11126 echo "$ac_t""no" 1>&6
11132 for ac_func in pthread_kill_other_threads_np
11134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11135 echo "configure:11136: checking for $ac_func" >&5
11136 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11137 echo $ac_n "(cached) $ac_c" 1>&6
11139 cat > conftest.$ac_ext <<EOF
11140 #line 11141 "configure"
11141 #include "confdefs.h"
11142 /* System header to define __stub macros and hopefully few prototypes,
11143 which can conflict with char $ac_func(); below. */
11144 #include <assert.h>
11145 /* Override any gcc2 internal prototype to avoid an error. */
11146 /* We use char because int might match the return type of a gcc2
11147 builtin and then its argument prototype would still apply. */
11153 /* The GNU C library defines this for functions which it implements
11154 to always fail with ENOSYS. Some functions are actually named
11155 something starting with __ and the normal name is an alias. */
11156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11166 eval "ac_cv_func_$ac_func=yes"
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 eval "ac_cv_func_$ac_func=no"
11176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11177 echo "$ac_t""yes" 1>&6
11178 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11179 cat >> confdefs.h <<EOF
11180 #define $ac_tr_func 1
11184 echo "$ac_t""no" 1>&6
11188 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
11189 echo "configure:11190: checking for LinuxThreads implementation" >&5
11190 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
11191 echo $ac_n "(cached) $ac_c" 1>&6
11193 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
11196 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
11201 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
11202 echo "configure:11203: checking for LinuxThreads consistency" >&5
11203 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
11204 echo $ac_n "(cached) $ac_c" 1>&6
11207 if test $ol_cv_header_linux_threads = yes -a \
11208 $ol_cv_sys_linux_threads = yes; then
11209 ol_cv_linux_threads=yes
11210 elif test $ol_cv_header_linux_threads = no -a \
11211 $ol_cv_sys_linux_threads = no; then
11212 ol_cv_linux_threads=no
11214 ol_cv_linux_threads=error
11219 echo "$ac_t""$ol_cv_linux_threads" 1>&6
11222 if test $ol_cv_linux_threads = error; then
11223 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
11226 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
11227 echo "configure:11228: checking if pthread_create() works" >&5
11228 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
11229 echo $ac_n "(cached) $ac_c" 1>&6
11232 if test "$cross_compiling" = yes; then
11233 ol_cv_pthread_create_works=yes
11235 cat > conftest.$ac_ext <<EOF
11236 #line 11237 "configure"
11237 #include "confdefs.h"
11238 /* pthread test headers */
11239 #include <pthread.h>
11241 #define NULL (void*)0
11244 static void *task(p)
11247 return (void *) (p == NULL);
11251 int main(argc, argv)
11256 /* pthread test function */
11261 #ifdef HAVE_PTHREADS_FINAL
11262 /* Final pthreads */
11263 pthread_attr_t attr;
11265 status = pthread_attr_init(&attr);
11266 if( status ) return status;
11268 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11270 #if defined( PTHREAD_CREATE_JOINABLE )
11271 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11273 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11276 #ifdef PTHREAD_CREATE_DETACHED
11278 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11281 if( status ) return status;
11284 status = pthread_create( &t, &attr, task, NULL );
11285 if( status ) return status;
11287 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11289 /* give thread a chance to complete */
11290 /* it should remain joinable and hence detachable */
11293 status = pthread_detach( t );
11294 if( status ) return status;
11299 /* Draft 4 pthreads */
11300 status = pthread_create( &t, pthread_attr_default, task, NULL );
11301 if( status ) return status;
11304 /* give thread a chance to complete */
11305 /* it should remain joinable and hence detachable */
11308 status = pthread_detach( &t );
11309 if( status ) return status;
11313 #ifdef HAVE_LINUX_THREADS
11314 pthread_kill_other_threads_np();
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11324 ol_cv_pthread_create_works=yes
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11329 ol_cv_pthread_create_works=no
11336 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
11338 if test $ol_cv_pthread_create_works = no ; then
11339 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
11342 if test $ol_with_yielding_select = auto ; then
11343 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
11344 echo "configure:11345: checking if select yields when using pthreads" >&5
11345 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
11346 echo $ac_n "(cached) $ac_c" 1>&6
11349 if test "$cross_compiling" = yes; then
11350 ol_cv_pthread_select_yields=cross
11352 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11356 #include <sys/types.h>
11357 #include <sys/time.h>
11358 #include <unistd.h>
11359 #include <pthread.h>
11361 #define NULL (void*) 0
11364 static int fildes[2];
11366 static void *task(p)
11378 FD_SET(fildes[0], &rfds);
11380 /* we're not interested in any fds */
11381 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
11388 exit(0); /* if we exit here, the select blocked the whole process */
11391 int main(argc, argv)
11397 /* create a pipe to select */
11398 if(pipe(&fildes[0])) {
11403 #ifdef HAVE_PTHREAD_SETCONCURRENCY
11404 (void) pthread_setconcurrency(2);
11406 #ifdef HAVE_THR_SETCONCURRENCY
11407 /* Set Solaris LWP concurrency to 2 */
11408 thr_setconcurrency(2);
11412 #if HAVE_PTHREADS_D4
11413 pthread_create(&t, pthread_attr_default, task, NULL);
11415 pthread_create(&t, NULL, task, NULL);
11418 #if HAVE_SCHED_YIELD
11419 sched_yield(); /* make sure task runs first */
11421 #ifdef HAVE_PTHREAD_YIELD
11422 pthread_yield(); /* make sure task runs first */
11429 if { (eval echo configure:11430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11431 ol_cv_pthread_select_yields=no
11433 echo "configure: failed program was:" >&5
11434 cat conftest.$ac_ext >&5
11436 ol_cv_pthread_select_yields=yes
11443 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
11445 if test $ol_cv_pthread_select_yields = cross ; then
11446 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
11449 if test $ol_cv_pthread_select_yields = yes ; then
11450 ol_with_yielding_select=yes
11454 CPPFLAGS="$save_CPPFLAGS"
11457 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
11461 if test $ol_with_threads = posix ; then
11462 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
11466 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11467 -o $ol_with_threads = mach ; then
11469 for ac_hdr in mach/cthreads.h
11471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11473 echo "configure:11474: checking for $ac_hdr" >&5
11474 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11475 echo $ac_n "(cached) $ac_c" 1>&6
11477 cat > conftest.$ac_ext <<EOF
11478 #line 11479 "configure"
11479 #include "confdefs.h"
11482 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11483 { (eval echo configure:11484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11484 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11485 if test -z "$ac_err"; then
11487 eval "ac_cv_header_$ac_safe=yes"
11490 echo "configure: failed program was:" >&5
11491 cat conftest.$ac_ext >&5
11493 eval "ac_cv_header_$ac_safe=no"
11497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11498 echo "$ac_t""yes" 1>&6
11499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11500 cat >> confdefs.h <<EOF
11501 #define $ac_tr_hdr 1
11505 echo "$ac_t""no" 1>&6
11509 if test $ac_cv_header_mach_cthreads_h = yes ; then
11510 ol_with_threads=found
11512 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
11513 echo "configure:11514: checking for cthread_fork" >&5
11514 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11517 cat > conftest.$ac_ext <<EOF
11518 #line 11519 "configure"
11519 #include "confdefs.h"
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char cthread_fork(); below. */
11522 #include <assert.h>
11523 /* Override any gcc2 internal prototype to avoid an error. */
11524 /* We use char because int might match the return type of a gcc2
11525 builtin and then its argument prototype would still apply. */
11526 char cthread_fork();
11531 /* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
11534 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
11542 if { (eval echo configure:11543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11544 eval "ac_cv_func_cthread_fork=yes"
11546 echo "configure: failed program was:" >&5
11547 cat conftest.$ac_ext >&5
11549 eval "ac_cv_func_cthread_fork=no"
11554 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
11555 echo "$ac_t""yes" 1>&6
11556 ol_link_threads=yes
11558 echo "$ac_t""no" 1>&6
11562 if test $ol_link_threads = no ; then
11563 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
11564 echo "configure:11565: checking for cthread_fork with -all_load" >&5
11565 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
11566 echo $ac_n "(cached) $ac_c" 1>&6
11570 LIBS="-all_load $LIBS"
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11574 #include <mach/cthreads.h>
11577 cthread_fork((void *)0, (void *)0);
11581 if { (eval echo configure:11582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11583 ol_cv_cthread_all_load=yes
11585 echo "configure: failed program was:" >&5
11586 cat conftest.$ac_ext >&5
11588 ol_cv_cthread_all_load=no
11595 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
11597 if test $ol_cv_cthread_all_load = yes ; then
11598 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
11599 ol_link_threads=mach
11603 if test $ol_link_threads != no ; then
11604 : check for cthread specific functionality here
11605 cat >> confdefs.h <<\EOF
11606 #define HAVE_MACH_CTHREADS 1
11610 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
11614 if test $ol_with_threads = mach ; then
11615 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
11619 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11620 -o $ol_with_threads = pth ; then
11622 for ac_hdr in pth.h
11624 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11625 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11626 echo "configure:11627: checking for $ac_hdr" >&5
11627 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11628 echo $ac_n "(cached) $ac_c" 1>&6
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11635 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11636 { (eval echo configure:11637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11637 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11638 if test -z "$ac_err"; then
11640 eval "ac_cv_header_$ac_safe=yes"
11643 echo "configure: failed program was:" >&5
11644 cat conftest.$ac_ext >&5
11646 eval "ac_cv_header_$ac_safe=no"
11650 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11651 echo "$ac_t""yes" 1>&6
11652 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11653 cat >> confdefs.h <<EOF
11654 #define $ac_tr_hdr 1
11658 echo "$ac_t""no" 1>&6
11663 if test $ac_cv_header_pth_h = yes ; then
11664 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
11665 echo "configure:11666: checking for pth_version in -lpth" >&5
11666 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
11667 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11668 echo $ac_n "(cached) $ac_c" 1>&6
11670 ac_save_LIBS="$LIBS"
11672 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11675 /* Override any gcc2 internal prototype to avoid an error. */
11676 /* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */
11678 char pth_version();
11684 if { (eval echo configure:11685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11686 eval "ac_cv_lib_$ac_lib_var=yes"
11688 echo "configure: failed program was:" >&5
11689 cat conftest.$ac_ext >&5
11691 eval "ac_cv_lib_$ac_lib_var=no"
11694 LIBS="$ac_save_LIBS"
11697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11698 echo "$ac_t""yes" 1>&6
11701 echo "$ac_t""no" 1>&6
11706 if test $have_pth = yes ; then
11707 cat >> confdefs.h <<\EOF
11708 #define HAVE_GNU_PTH 1
11711 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
11712 ol_link_threads=pth
11714 if test $ol_with_yielding_select = auto ; then
11715 ol_with_yielding_select=yes
11721 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11722 -o $ol_with_threads = lwp ; then
11724 for ac_hdr in thread.h synch.h
11726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11728 echo "configure:11729: checking for $ac_hdr" >&5
11729 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11732 cat > conftest.$ac_ext <<EOF
11733 #line 11734 "configure"
11734 #include "confdefs.h"
11737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11738 { (eval echo configure:11739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11740 if test -z "$ac_err"; then
11742 eval "ac_cv_header_$ac_safe=yes"
11745 echo "configure: failed program was:" >&5
11746 cat conftest.$ac_ext >&5
11748 eval "ac_cv_header_$ac_safe=no"
11752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11753 echo "$ac_t""yes" 1>&6
11754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11755 cat >> confdefs.h <<EOF
11756 #define $ac_tr_hdr 1
11760 echo "$ac_t""no" 1>&6
11764 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
11765 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
11766 echo "configure:11767: checking for thr_create in -lthread" >&5
11767 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
11768 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11771 ac_save_LIBS="$LIBS"
11772 LIBS="-lthread $LIBS"
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* Override any gcc2 internal prototype to avoid an error. */
11777 /* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11785 if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11787 eval "ac_cv_lib_$ac_lib_var=yes"
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11792 eval "ac_cv_lib_$ac_lib_var=no"
11795 LIBS="$ac_save_LIBS"
11798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
11802 echo "$ac_t""no" 1>&6
11807 if test $have_thr = yes ; then
11808 cat >> confdefs.h <<\EOF
11812 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
11813 ol_link_threads=thr
11815 if test $ol_with_yielding_select = auto ; then
11816 ol_with_yielding_select=yes
11820 thr_setconcurrency \
11821 thr_getconcurrency \
11824 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11825 echo "configure:11826: checking for $ac_func" >&5
11826 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11827 echo $ac_n "(cached) $ac_c" 1>&6
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11832 /* System header to define __stub macros and hopefully few prototypes,
11833 which can conflict with char $ac_func(); below. */
11834 #include <assert.h>
11835 /* Override any gcc2 internal prototype to avoid an error. */
11836 /* We use char because int might match the return type of a gcc2
11837 builtin and then its argument prototype would still apply. */
11843 /* The GNU C library defines this for functions which it implements
11844 to always fail with ENOSYS. Some functions are actually named
11845 something starting with __ and the normal name is an alias. */
11846 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11854 if { (eval echo configure:11855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11856 eval "ac_cv_func_$ac_func=yes"
11858 echo "configure: failed program was:" >&5
11859 cat conftest.$ac_ext >&5
11861 eval "ac_cv_func_$ac_func=no"
11866 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11867 echo "$ac_t""yes" 1>&6
11868 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11869 cat >> confdefs.h <<EOF
11870 #define $ac_tr_func 1
11874 echo "$ac_t""no" 1>&6
11881 for ac_hdr in lwp/lwp.h
11883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11885 echo "configure:11886: checking for $ac_hdr" >&5
11886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11887 echo $ac_n "(cached) $ac_c" 1>&6
11889 cat > conftest.$ac_ext <<EOF
11890 #line 11891 "configure"
11891 #include "confdefs.h"
11894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11895 { (eval echo configure:11896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11897 if test -z "$ac_err"; then
11899 eval "ac_cv_header_$ac_safe=yes"
11902 echo "configure: failed program was:" >&5
11903 cat conftest.$ac_ext >&5
11905 eval "ac_cv_header_$ac_safe=no"
11909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11912 cat >> confdefs.h <<EOF
11913 #define $ac_tr_hdr 1
11917 echo "$ac_t""no" 1>&6
11921 if test $ac_cv_header_lwp_lwp_h = yes ; then
11922 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
11923 echo "configure:11924: checking for lwp_create in -llwp" >&5
11924 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
11925 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11926 echo $ac_n "(cached) $ac_c" 1>&6
11928 ac_save_LIBS="$LIBS"
11930 cat > conftest.$ac_ext <<EOF
11931 #line 11932 "configure"
11932 #include "confdefs.h"
11933 /* Override any gcc2 internal prototype to avoid an error. */
11934 /* We use char because int might match the return type of a gcc2
11935 builtin and then its argument prototype would still apply. */
11942 if { (eval echo configure:11943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944 eval "ac_cv_lib_$ac_lib_var=yes"
11946 echo "configure: failed program was:" >&5
11947 cat conftest.$ac_ext >&5
11949 eval "ac_cv_lib_$ac_lib_var=no"
11952 LIBS="$ac_save_LIBS"
11955 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11956 echo "$ac_t""yes" 1>&6
11959 echo "$ac_t""no" 1>&6
11964 if test $have_lwp = yes ; then
11965 cat >> confdefs.h <<\EOF
11969 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
11970 ol_link_threads=lwp
11972 if test $ol_with_yielding_select = auto ; then
11973 ol_with_yielding_select=no
11979 if test $ol_with_yielding_select = yes ; then
11980 cat >> confdefs.h <<\EOF
11981 #define HAVE_YIELDING_SELECT 1
11986 if test $ol_with_threads = manual ; then
11987 ol_link_threads=yes
11989 echo "configure: warning: thread defines and link options must be set manually" 1>&2
11991 for ac_hdr in pthread.h sched.h
11993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11995 echo "configure:11996: checking for $ac_hdr" >&5
11996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11997 echo $ac_n "(cached) $ac_c" 1>&6
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12001 "configure"
12001 #include "confdefs.h"
12004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12005 { (eval echo configure:12006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12007 if test -z "$ac_err"; then
12009 eval "ac_cv_header_$ac_safe=yes"
12012 echo "configure: failed program was:" >&5
12013 cat conftest.$ac_ext >&5
12015 eval "ac_cv_header_$ac_safe=no"
12019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12020 echo "$ac_t""yes" 1>&6
12021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12022 cat >> confdefs.h <<EOF
12023 #define $ac_tr_hdr 1
12027 echo "$ac_t""no" 1>&6
12031 for ac_func in sched_yield pthread_yield
12033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12034 echo "configure:12035: checking for $ac_func" >&5
12035 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
12036 echo $ac_n "(cached) $ac_c" 1>&6
12038 cat > conftest.$ac_ext <<EOF
12039 #line 12040 "configure"
12040 #include "confdefs.h"
12041 /* System header to define __stub macros and hopefully few prototypes,
12042 which can conflict with char $ac_func(); below. */
12043 #include <assert.h>
12044 /* Override any gcc2 internal prototype to avoid an error. */
12045 /* We use char because int might match the return type of a gcc2
12046 builtin and then its argument prototype would still apply. */
12052 /* The GNU C library defines this for functions which it implements
12053 to always fail with ENOSYS. Some functions are actually named
12054 something starting with __ and the normal name is an alias. */
12055 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12063 if { (eval echo configure:12064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12065 eval "ac_cv_func_$ac_func=yes"
12067 echo "configure: failed program was:" >&5
12068 cat conftest.$ac_ext >&5
12070 eval "ac_cv_func_$ac_func=no"
12075 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12076 echo "$ac_t""yes" 1>&6
12077 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12078 cat >> confdefs.h <<EOF
12079 #define $ac_tr_func 1
12083 echo "$ac_t""no" 1>&6
12088 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
12089 echo "configure:12090: checking for LinuxThreads pthread.h" >&5
12090 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
12091 echo $ac_n "(cached) $ac_c" 1>&6
12093 cat > conftest.$ac_ext <<EOF
12094 #line 12095 "configure"
12095 #include "confdefs.h"
12096 #include <pthread.h>
12098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12099 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
12101 ol_cv_header_linux_threads=yes
12104 ol_cv_header_linux_threads=no
12111 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
12112 if test $ol_cv_header_linux_threads = yes; then
12113 cat >> confdefs.h <<\EOF
12114 #define HAVE_LINUX_THREADS 1
12120 for ac_hdr in mach/cthreads.h
12122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12124 echo "configure:12125: checking for $ac_hdr" >&5
12125 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12126 echo $ac_n "(cached) $ac_c" 1>&6
12128 cat > conftest.$ac_ext <<EOF
12129 #line 12130 "configure"
12130 #include "confdefs.h"
12133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12134 { (eval echo configure:12135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12136 if test -z "$ac_err"; then
12138 eval "ac_cv_header_$ac_safe=yes"
12141 echo "configure: failed program was:" >&5
12142 cat conftest.$ac_ext >&5
12144 eval "ac_cv_header_$ac_safe=no"
12148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12149 echo "$ac_t""yes" 1>&6
12150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12151 cat >> confdefs.h <<EOF
12152 #define $ac_tr_hdr 1
12156 echo "$ac_t""no" 1>&6
12160 for ac_hdr in lwp/lwp.h
12162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12164 echo "configure:12165: checking for $ac_hdr" >&5
12165 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12166 echo $ac_n "(cached) $ac_c" 1>&6
12168 cat > conftest.$ac_ext <<EOF
12169 #line 12170 "configure"
12170 #include "confdefs.h"
12173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12174 { (eval echo configure:12175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12176 if test -z "$ac_err"; then
12178 eval "ac_cv_header_$ac_safe=yes"
12181 echo "configure: failed program was:" >&5
12182 cat conftest.$ac_ext >&5
12184 eval "ac_cv_header_$ac_safe=no"
12188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12189 echo "$ac_t""yes" 1>&6
12190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12191 cat >> confdefs.h <<EOF
12192 #define $ac_tr_hdr 1
12196 echo "$ac_t""no" 1>&6
12200 for ac_hdr in thread.h synch.h
12202 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12203 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12204 echo "configure:12205: checking for $ac_hdr" >&5
12205 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12206 echo $ac_n "(cached) $ac_c" 1>&6
12208 cat > conftest.$ac_ext <<EOF
12209 #line 12210 "configure"
12210 #include "confdefs.h"
12213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12214 { (eval echo configure:12215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12216 if test -z "$ac_err"; then
12218 eval "ac_cv_header_$ac_safe=yes"
12221 echo "configure: failed program was:" >&5
12222 cat conftest.$ac_ext >&5
12224 eval "ac_cv_header_$ac_safe=no"
12228 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12229 echo "$ac_t""yes" 1>&6
12230 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12231 cat >> confdefs.h <<EOF
12232 #define $ac_tr_hdr 1
12236 echo "$ac_t""no" 1>&6
12242 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
12243 cat >> confdefs.h <<\EOF
12244 #define REENTRANT 1
12247 cat >> confdefs.h <<\EOF
12248 #define _REENTRANT 1
12251 cat >> confdefs.h <<\EOF
12252 #define THREAD_SAFE 1
12255 cat >> confdefs.h <<\EOF
12256 #define _THREAD_SAFE 1
12259 cat >> confdefs.h <<\EOF
12260 #define THREADSAFE 1
12263 cat >> confdefs.h <<\EOF
12264 #define _THREADSAFE 1
12267 cat >> confdefs.h <<\EOF
12268 #define _SGI_MP_SOURCE 1
12272 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
12273 echo "configure:12274: checking for thread specific errno" >&5
12274 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
12275 echo $ac_n "(cached) $ac_c" 1>&6
12278 cat > conftest.$ac_ext <<EOF
12279 #line 12280 "configure"
12280 #include "confdefs.h"
12286 if { (eval echo configure:12287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12288 ol_cv_errno_thread_specific=yes
12290 echo "configure: failed program was:" >&5
12291 cat conftest.$ac_ext >&5
12293 ol_cv_errno_thread_specific=no
12299 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
12301 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
12302 echo "configure:12303: checking for thread specific h_errno" >&5
12303 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
12304 echo $ac_n "(cached) $ac_c" 1>&6
12307 cat > conftest.$ac_ext <<EOF
12308 #line 12309 "configure"
12309 #include "confdefs.h"
12315 if { (eval echo configure:12316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12317 ol_cv_h_errno_thread_specific=yes
12319 echo "configure: failed program was:" >&5
12320 cat conftest.$ac_ext >&5
12322 ol_cv_h_errno_thread_specific=no
12328 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
12330 if test $ol_cv_errno_thread_specific != yes \
12331 -o $ol_cv_h_errno_thread_specific != yes ; then
12332 LIBS="$LTHREAD_LIBS $LIBS"
12338 if test $ol_link_threads = no ; then
12339 if test $ol_with_threads = yes ; then
12340 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
12343 if test $ol_with_threads = auto ; then
12344 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
12348 cat >> confdefs.h <<\EOF
12349 #define NO_THREADS 1
12355 if test $ol_link_threads != no ; then
12356 cat >> confdefs.h <<\EOF
12357 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
12364 if test $ol_with_ldbm_api = auto \
12365 -o $ol_with_ldbm_api = berkeley \
12366 -o $ol_with_ldbm_api = bcompat ; then
12368 if test $ol_with_ldbm_api = bcompat; then \
12369 ol_cv_berkeley_db=no
12370 for ac_hdr in db_185.h db.h
12372 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12373 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12374 echo "configure:12375: checking for $ac_hdr" >&5
12375 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12376 echo $ac_n "(cached) $ac_c" 1>&6
12378 cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12384 { (eval echo configure:12385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12386 if test -z "$ac_err"; then
12388 eval "ac_cv_header_$ac_safe=yes"
12391 echo "configure: failed program was:" >&5
12392 cat conftest.$ac_ext >&5
12394 eval "ac_cv_header_$ac_safe=no"
12398 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12399 echo "$ac_t""yes" 1>&6
12400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12401 cat >> confdefs.h <<EOF
12402 #define $ac_tr_hdr 1
12406 echo "$ac_t""no" 1>&6
12410 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
12411 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
12412 echo "configure:12413: checking if Berkeley DB header compatibility" >&5
12413 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
12414 echo $ac_n "(cached) $ac_c" 1>&6
12417 cat > conftest.$ac_ext <<EOF
12418 #line 12419 "configure"
12419 #include "confdefs.h"
12422 # include <db_185.h>
12427 /* this check could be improved */
12428 #ifndef DB_VERSION_MAJOR
12429 # define DB_VERSION_MAJOR 1
12432 #if DB_VERSION_MAJOR == 1
12437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12438 egrep "__db_version_1" >/dev/null 2>&1; then
12440 ol_cv_header_db1=yes
12443 ol_cv_header_db1=no
12449 echo "$ac_t""$ol_cv_header_db1" 1>&6
12451 if test $ol_cv_header_db1 = yes ; then
12453 if test $ol_cv_lib_db = no ; then
12454 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12455 echo "configure:12456: checking for Berkeley DB link (default)" >&5
12456 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12457 echo $ac_n "(cached) $ac_c" 1>&6
12462 LIBS="$ol_DB_LIB $LIBS"
12464 cat > conftest.$ac_ext <<EOF
12465 #line 12466 "configure"
12466 #include "confdefs.h"
12468 #ifdef HAVE_DB_185_H
12469 # include <db_185.h>
12474 #ifndef DB_VERSION_MAJOR
12475 # define DB_VERSION_MAJOR 1
12479 #define NULL ((void*)0)
12484 #if DB_VERSION_MAJOR > 1
12487 int major, minor, patch;
12489 version = db_version( &major, &minor, &patch );
12491 if( major != DB_VERSION_MAJOR ||
12492 minor < DB_VERSION_MINOR )
12494 printf("Berkeley DB version mismatch\n"
12495 "\texpected: %s\n\tgot: %s\n",
12496 DB_VERSION_STRING, version);
12502 #if DB_VERSION_MAJOR > 2
12503 db_env_create( NULL, 0 );
12504 #elif DB_VERSION_MAJOR > 1
12505 db_appexit( NULL );
12507 (void) dbopen( NULL, 0, 0, 0, NULL);
12512 if { (eval echo configure:12513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12516 echo "configure: failed program was:" >&5
12517 cat conftest.$ac_ext >&5
12527 echo "$ac_t""$ol_cv_db_none" 1>&6
12529 if test $ol_cv_db_none = yes ; then
12534 if test $ol_cv_lib_db = no ; then
12535 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12536 echo "configure:12537: checking for Berkeley DB link (-ldb)" >&5
12537 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12538 echo $ac_n "(cached) $ac_c" 1>&6
12543 LIBS="$ol_DB_LIB $LIBS"
12545 cat > conftest.$ac_ext <<EOF
12546 #line 12547 "configure"
12547 #include "confdefs.h"
12549 #ifdef HAVE_DB_185_H
12550 # include <db_185.h>
12555 #ifndef DB_VERSION_MAJOR
12556 # define DB_VERSION_MAJOR 1
12560 #define NULL ((void*)0)
12565 #if DB_VERSION_MAJOR > 1
12568 int major, minor, patch;
12570 version = db_version( &major, &minor, &patch );
12572 if( major != DB_VERSION_MAJOR ||
12573 minor < DB_VERSION_MINOR )
12575 printf("Berkeley DB version mismatch\n"
12576 "\texpected: %s\n\tgot: %s\n",
12577 DB_VERSION_STRING, version);
12583 #if DB_VERSION_MAJOR > 2
12584 db_env_create( NULL, 0 );
12585 #elif DB_VERSION_MAJOR > 1
12586 db_appexit( NULL );
12588 (void) dbopen( NULL, 0, 0, 0, NULL);
12593 if { (eval echo configure:12594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12597 echo "configure: failed program was:" >&5
12598 cat conftest.$ac_ext >&5
12608 echo "$ac_t""$ol_cv_db_db" 1>&6
12610 if test $ol_cv_db_db = yes ; then
12615 if test $ol_cv_lib_db = no ; then
12616 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
12617 echo "configure:12618: checking for Berkeley DB link (-ldb3)" >&5
12618 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12624 LIBS="$ol_DB_LIB $LIBS"
12626 cat > conftest.$ac_ext <<EOF
12627 #line 12628 "configure"
12628 #include "confdefs.h"
12630 #ifdef HAVE_DB_185_H
12631 # include <db_185.h>
12636 #ifndef DB_VERSION_MAJOR
12637 # define DB_VERSION_MAJOR 1
12641 #define NULL ((void*)0)
12646 #if DB_VERSION_MAJOR > 1
12649 int major, minor, patch;
12651 version = db_version( &major, &minor, &patch );
12653 if( major != DB_VERSION_MAJOR ||
12654 minor < DB_VERSION_MINOR )
12656 printf("Berkeley DB version mismatch\n"
12657 "\texpected: %s\n\tgot: %s\n",
12658 DB_VERSION_STRING, version);
12664 #if DB_VERSION_MAJOR > 2
12665 db_env_create( NULL, 0 );
12666 #elif DB_VERSION_MAJOR > 1
12667 db_appexit( NULL );
12669 (void) dbopen( NULL, 0, 0, 0, NULL);
12674 if { (eval echo configure:12675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12678 echo "configure: failed program was:" >&5
12679 cat conftest.$ac_ext >&5
12689 echo "$ac_t""$ol_cv_db_db3" 1>&6
12691 if test $ol_cv_db_db3 = yes ; then
12696 if test $ol_cv_lib_db = no ; then
12697 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
12698 echo "configure:12699: checking for Berkeley DB link (-ldb2)" >&5
12699 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
12700 echo $ac_n "(cached) $ac_c" 1>&6
12705 LIBS="$ol_DB_LIB $LIBS"
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12711 #ifdef HAVE_DB_185_H
12712 # include <db_185.h>
12717 #ifndef DB_VERSION_MAJOR
12718 # define DB_VERSION_MAJOR 1
12722 #define NULL ((void*)0)
12727 #if DB_VERSION_MAJOR > 1
12730 int major, minor, patch;
12732 version = db_version( &major, &minor, &patch );
12734 if( major != DB_VERSION_MAJOR ||
12735 minor < DB_VERSION_MINOR )
12737 printf("Berkeley DB version mismatch\n"
12738 "\texpected: %s\n\tgot: %s\n",
12739 DB_VERSION_STRING, version);
12745 #if DB_VERSION_MAJOR > 2
12746 db_env_create( NULL, 0 );
12747 #elif DB_VERSION_MAJOR > 1
12748 db_appexit( NULL );
12750 (void) dbopen( NULL, 0, 0, 0, NULL);
12755 if { (eval echo configure:12756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12759 echo "configure: failed program was:" >&5
12760 cat conftest.$ac_ext >&5
12770 echo "$ac_t""$ol_cv_db_db2" 1>&6
12772 if test $ol_cv_db_db2 = yes ; then
12777 if test $ol_cv_lib_db = no ; then
12778 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
12779 echo "configure:12780: checking for Berkeley DB link (-ldb1)" >&5
12780 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
12781 echo $ac_n "(cached) $ac_c" 1>&6
12786 LIBS="$ol_DB_LIB $LIBS"
12788 cat > conftest.$ac_ext <<EOF
12789 #line 12790 "configure"
12790 #include "confdefs.h"
12792 #ifdef HAVE_DB_185_H
12793 # include <db_185.h>
12798 #ifndef DB_VERSION_MAJOR
12799 # define DB_VERSION_MAJOR 1
12803 #define NULL ((void*)0)
12808 #if DB_VERSION_MAJOR > 1
12811 int major, minor, patch;
12813 version = db_version( &major, &minor, &patch );
12815 if( major != DB_VERSION_MAJOR ||
12816 minor < DB_VERSION_MINOR )
12818 printf("Berkeley DB version mismatch\n"
12819 "\texpected: %s\n\tgot: %s\n",
12820 DB_VERSION_STRING, version);
12826 #if DB_VERSION_MAJOR > 2
12827 db_env_create( NULL, 0 );
12828 #elif DB_VERSION_MAJOR > 1
12829 db_appexit( NULL );
12831 (void) dbopen( NULL, 0, 0, 0, NULL);
12836 if { (eval echo configure:12837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12840 echo "configure: failed program was:" >&5
12841 cat conftest.$ac_ext >&5
12851 echo "$ac_t""$ol_cv_db_db1" 1>&6
12853 if test $ol_cv_db_db1 = yes ; then
12859 if test "$ol_cv_lib_db" != no ; then
12860 ol_cv_berkeley_db=yes
12866 ol_cv_berkeley_db=no
12869 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12870 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12871 echo "configure:12872: checking for $ac_hdr" >&5
12872 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12873 echo $ac_n "(cached) $ac_c" 1>&6
12875 cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12881 { (eval echo configure:12882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12883 if test -z "$ac_err"; then
12885 eval "ac_cv_header_$ac_safe=yes"
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12891 eval "ac_cv_header_$ac_safe=no"
12895 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12896 echo "$ac_t""yes" 1>&6
12897 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12898 cat >> confdefs.h <<EOF
12899 #define $ac_tr_hdr 1
12903 echo "$ac_t""no" 1>&6
12907 if test $ac_cv_header_db_h = yes; then
12909 if test $ol_cv_lib_db = no ; then
12910 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
12911 echo "configure:12912: checking for Berkeley DB link (default)" >&5
12912 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
12913 echo $ac_n "(cached) $ac_c" 1>&6
12918 LIBS="$ol_DB_LIB $LIBS"
12920 cat > conftest.$ac_ext <<EOF
12921 #line 12922 "configure"
12922 #include "confdefs.h"
12924 #ifdef HAVE_DB_185_H
12925 # include <db_185.h>
12930 #ifndef DB_VERSION_MAJOR
12931 # define DB_VERSION_MAJOR 1
12935 #define NULL ((void*)0)
12940 #if DB_VERSION_MAJOR > 1
12943 int major, minor, patch;
12945 version = db_version( &major, &minor, &patch );
12947 if( major != DB_VERSION_MAJOR ||
12948 minor < DB_VERSION_MINOR )
12950 printf("Berkeley DB version mismatch\n"
12951 "\texpected: %s\n\tgot: %s\n",
12952 DB_VERSION_STRING, version);
12958 #if DB_VERSION_MAJOR > 2
12959 db_env_create( NULL, 0 );
12960 #elif DB_VERSION_MAJOR > 1
12961 db_appexit( NULL );
12963 (void) dbopen( NULL, 0, 0, 0, NULL);
12968 if { (eval echo configure:12969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12972 echo "configure: failed program was:" >&5
12973 cat conftest.$ac_ext >&5
12983 echo "$ac_t""$ol_cv_db_none" 1>&6
12985 if test $ol_cv_db_none = yes ; then
12990 if test $ol_cv_lib_db = no ; then
12991 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
12992 echo "configure:12993: checking for Berkeley DB link (-ldb)" >&5
12993 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12999 LIBS="$ol_DB_LIB $LIBS"
13001 cat > conftest.$ac_ext <<EOF
13002 #line 13003 "configure"
13003 #include "confdefs.h"
13005 #ifdef HAVE_DB_185_H
13006 # include <db_185.h>
13011 #ifndef DB_VERSION_MAJOR
13012 # define DB_VERSION_MAJOR 1
13016 #define NULL ((void*)0)
13021 #if DB_VERSION_MAJOR > 1
13024 int major, minor, patch;
13026 version = db_version( &major, &minor, &patch );
13028 if( major != DB_VERSION_MAJOR ||
13029 minor < DB_VERSION_MINOR )
13031 printf("Berkeley DB version mismatch\n"
13032 "\texpected: %s\n\tgot: %s\n",
13033 DB_VERSION_STRING, version);
13039 #if DB_VERSION_MAJOR > 2
13040 db_env_create( NULL, 0 );
13041 #elif DB_VERSION_MAJOR > 1
13042 db_appexit( NULL );
13044 (void) dbopen( NULL, 0, 0, 0, NULL);
13049 if { (eval echo configure:13050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13053 echo "configure: failed program was:" >&5
13054 cat conftest.$ac_ext >&5
13064 echo "$ac_t""$ol_cv_db_db" 1>&6
13066 if test $ol_cv_db_db = yes ; then
13071 if test $ol_cv_lib_db = no ; then
13072 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
13073 echo "configure:13074: checking for Berkeley DB link (-ldb3)" >&5
13074 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
13075 echo $ac_n "(cached) $ac_c" 1>&6
13080 LIBS="$ol_DB_LIB $LIBS"
13082 cat > conftest.$ac_ext <<EOF
13083 #line 13084 "configure"
13084 #include "confdefs.h"
13086 #ifdef HAVE_DB_185_H
13087 # include <db_185.h>
13092 #ifndef DB_VERSION_MAJOR
13093 # define DB_VERSION_MAJOR 1
13097 #define NULL ((void*)0)
13102 #if DB_VERSION_MAJOR > 1
13105 int major, minor, patch;
13107 version = db_version( &major, &minor, &patch );
13109 if( major != DB_VERSION_MAJOR ||
13110 minor < DB_VERSION_MINOR )
13112 printf("Berkeley DB version mismatch\n"
13113 "\texpected: %s\n\tgot: %s\n",
13114 DB_VERSION_STRING, version);
13120 #if DB_VERSION_MAJOR > 2
13121 db_env_create( NULL, 0 );
13122 #elif DB_VERSION_MAJOR > 1
13123 db_appexit( NULL );
13125 (void) dbopen( NULL, 0, 0, 0, NULL);
13130 if { (eval echo configure:13131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13134 echo "configure: failed program was:" >&5
13135 cat conftest.$ac_ext >&5
13145 echo "$ac_t""$ol_cv_db_db3" 1>&6
13147 if test $ol_cv_db_db3 = yes ; then
13152 if test $ol_cv_lib_db = no ; then
13153 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
13154 echo "configure:13155: checking for Berkeley DB link (-ldb2)" >&5
13155 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
13156 echo $ac_n "(cached) $ac_c" 1>&6
13161 LIBS="$ol_DB_LIB $LIBS"
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13167 #ifdef HAVE_DB_185_H
13168 # include <db_185.h>
13173 #ifndef DB_VERSION_MAJOR
13174 # define DB_VERSION_MAJOR 1
13178 #define NULL ((void*)0)
13183 #if DB_VERSION_MAJOR > 1
13186 int major, minor, patch;
13188 version = db_version( &major, &minor, &patch );
13190 if( major != DB_VERSION_MAJOR ||
13191 minor < DB_VERSION_MINOR )
13193 printf("Berkeley DB version mismatch\n"
13194 "\texpected: %s\n\tgot: %s\n",
13195 DB_VERSION_STRING, version);
13201 #if DB_VERSION_MAJOR > 2
13202 db_env_create( NULL, 0 );
13203 #elif DB_VERSION_MAJOR > 1
13204 db_appexit( NULL );
13206 (void) dbopen( NULL, 0, 0, 0, NULL);
13211 if { (eval echo configure:13212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13226 echo "$ac_t""$ol_cv_db_db2" 1>&6
13228 if test $ol_cv_db_db2 = yes ; then
13233 if test $ol_cv_lib_db = no ; then
13234 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
13235 echo "configure:13236: checking for Berkeley DB link (-ldb1)" >&5
13236 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
13237 echo $ac_n "(cached) $ac_c" 1>&6
13242 LIBS="$ol_DB_LIB $LIBS"
13244 cat > conftest.$ac_ext <<EOF
13245 #line 13246 "configure"
13246 #include "confdefs.h"
13248 #ifdef HAVE_DB_185_H
13249 # include <db_185.h>
13254 #ifndef DB_VERSION_MAJOR
13255 # define DB_VERSION_MAJOR 1
13259 #define NULL ((void*)0)
13264 #if DB_VERSION_MAJOR > 1
13267 int major, minor, patch;
13269 version = db_version( &major, &minor, &patch );
13271 if( major != DB_VERSION_MAJOR ||
13272 minor < DB_VERSION_MINOR )
13274 printf("Berkeley DB version mismatch\n"
13275 "\texpected: %s\n\tgot: %s\n",
13276 DB_VERSION_STRING, version);
13282 #if DB_VERSION_MAJOR > 2
13283 db_env_create( NULL, 0 );
13284 #elif DB_VERSION_MAJOR > 1
13285 db_appexit( NULL );
13287 (void) dbopen( NULL, 0, 0, 0, NULL);
13292 if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13307 echo "$ac_t""$ol_cv_db_db1" 1>&6
13309 if test $ol_cv_db_db1 = yes ; then
13315 if test "$ol_cv_lib_db" != no ; then
13316 ol_cv_berkeley_db=yes
13317 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
13318 echo "configure:13319: checking for Berkeley DB thread support" >&5
13319 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
13320 echo $ac_n "(cached) $ac_c" 1>&6
13324 if test $ol_cv_lib_db != yes ; then
13325 LIBS="$ol_cv_lib_db"
13328 if test "$cross_compiling" = yes; then
13329 ol_cv_berkeley_db_thread=cross
13331 cat > conftest.$ac_ext <<EOF
13332 #line 13333 "configure"
13333 #include "confdefs.h"
13335 #ifdef HAVE_DB_185_H
13341 #define NULL ((void *)0)
13346 u_int32_t flags = DB_CREATE |
13352 #if DB_VERSION_MAJOR > 2
13353 DB_ENV *env = NULL;
13355 rc = db_env_create( &env, 0 );
13357 flags |= DB_INIT_MPOOL;
13358 #ifdef DB_MPOOL_PRIVATE
13359 flags |= DB_MPOOL_PRIVATE;
13363 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13367 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
13368 rc = env->open( env, NULL, flags, 0 );
13370 rc = env->open( env, NULL, NULL, flags, 0 );
13374 rc = env->close( env, 0 );
13378 printf("BerkeleyDB: %s\n", db_strerror(rc) );
13384 memset( &env, '\0', sizeof(env) );
13386 rc = db_appinit( NULL, NULL, &env, flags );
13389 db_appexit( &env );
13392 unlink("__db_mpool.share");
13393 unlink("__db_lock.share");
13399 if { (eval echo configure:13400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13401 ol_cv_berkeley_db_thread=yes
13403 echo "configure: failed program was:" >&5
13404 cat conftest.$ac_ext >&5
13406 ol_cv_berkeley_db_thread=no
13414 if test $ol_cv_berkeley_db_thread != no ; then
13415 cat >> confdefs.h <<\EOF
13416 #define HAVE_BERKELEY_DB_THREAD 1
13423 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
13429 if test $ol_cv_berkeley_db != no ; then
13430 cat >> confdefs.h <<\EOF
13431 #define HAVE_BERKELEY_DB 1
13435 ol_link_ldbm=berkeley
13436 ol_with_ldbm_api=db
13438 if test $ol_with_ldbm_type = hash ; then
13439 cat >> confdefs.h <<\EOF
13440 #define LDBM_USE_DBHASH 1
13444 cat >> confdefs.h <<\EOF
13445 #define LDBM_USE_DBBTREE 1
13450 if test $ol_cv_lib_db != yes ; then
13451 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
13456 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
13457 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
13458 ol_with_ldbm_api=none
13461 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
13462 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
13463 echo "configure:13464: checking for MDBM library" >&5
13464 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
13465 echo $ac_n "(cached) $ac_c" 1>&6
13468 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
13469 echo "configure:13470: checking for mdbm_set_chain" >&5
13470 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
13471 echo $ac_n "(cached) $ac_c" 1>&6
13473 cat > conftest.$ac_ext <<EOF
13474 #line 13475 "configure"
13475 #include "confdefs.h"
13476 /* System header to define __stub macros and hopefully few prototypes,
13477 which can conflict with char mdbm_set_chain(); below. */
13478 #include <assert.h>
13479 /* Override any gcc2 internal prototype to avoid an error. */
13480 /* We use char because int might match the return type of a gcc2
13481 builtin and then its argument prototype would still apply. */
13482 char mdbm_set_chain();
13487 /* The GNU C library defines this for functions which it implements
13488 to always fail with ENOSYS. Some functions are actually named
13489 something starting with __ and the normal name is an alias. */
13490 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
13493 f = mdbm_set_chain;
13498 if { (eval echo configure:13499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13500 eval "ac_cv_func_mdbm_set_chain=yes"
13502 echo "configure: failed program was:" >&5
13503 cat conftest.$ac_ext >&5
13505 eval "ac_cv_func_mdbm_set_chain=no"
13510 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
13511 echo "$ac_t""yes" 1>&6
13514 echo "$ac_t""no" 1>&6
13516 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
13517 echo "configure:13518: checking for mdbm_set_chain in -lmdbm" >&5
13518 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
13519 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13520 echo $ac_n "(cached) $ac_c" 1>&6
13522 ac_save_LIBS="$LIBS"
13523 LIBS="-lmdbm $LIBS"
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 /* Override any gcc2 internal prototype to avoid an error. */
13528 /* We use char because int might match the return type of a gcc2
13529 builtin and then its argument prototype would still apply. */
13530 char mdbm_set_chain();
13536 if { (eval echo configure:13537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13538 eval "ac_cv_lib_$ac_lib_var=yes"
13540 echo "configure: failed program was:" >&5
13541 cat conftest.$ac_ext >&5
13543 eval "ac_cv_lib_$ac_lib_var=no"
13546 LIBS="$ac_save_LIBS"
13549 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13550 echo "$ac_t""yes" 1>&6
13551 ol_cv_lib_mdbm=-lmdbm
13553 echo "$ac_t""no" 1>&6
13564 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
13567 for ac_hdr in mdbm.h
13569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13571 echo "configure:13572: checking for $ac_hdr" >&5
13572 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13573 echo $ac_n "(cached) $ac_c" 1>&6
13575 cat > conftest.$ac_ext <<EOF
13576 #line 13577 "configure"
13577 #include "confdefs.h"
13580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13581 { (eval echo configure:13582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13583 if test -z "$ac_err"; then
13585 eval "ac_cv_header_$ac_safe=yes"
13588 echo "configure: failed program was:" >&5
13589 cat conftest.$ac_ext >&5
13591 eval "ac_cv_header_$ac_safe=no"
13595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13596 echo "$ac_t""yes" 1>&6
13597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13598 cat >> confdefs.h <<EOF
13599 #define $ac_tr_hdr 1
13603 echo "$ac_t""no" 1>&6
13607 echo $ac_n "checking for db""... $ac_c" 1>&6
13608 echo "configure:13609: checking for db" >&5
13609 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
13610 echo $ac_n "(cached) $ac_c" 1>&6
13613 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
13621 echo "$ac_t""$ol_cv_mdbm" 1>&6
13622 if test $ol_cv_mdbm = yes ; then
13623 cat >> confdefs.h <<\EOF
13624 #define HAVE_MDBM 1
13630 if test $ol_cv_mdbm = yes ; then
13632 ol_with_ldbm_api=mdbm
13633 if test $ol_cv_lib_mdbm != yes ; then
13634 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
13639 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
13640 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
13641 echo "configure:13642: checking for GDBM library" >&5
13642 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
13643 echo $ac_n "(cached) $ac_c" 1>&6
13646 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
13647 echo "configure:13648: checking for gdbm_open" >&5
13648 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
13649 echo $ac_n "(cached) $ac_c" 1>&6
13651 cat > conftest.$ac_ext <<EOF
13652 #line 13653 "configure"
13653 #include "confdefs.h"
13654 /* System header to define __stub macros and hopefully few prototypes,
13655 which can conflict with char gdbm_open(); below. */
13656 #include <assert.h>
13657 /* Override any gcc2 internal prototype to avoid an error. */
13658 /* We use char because int might match the return type of a gcc2
13659 builtin and then its argument prototype would still apply. */
13665 /* The GNU C library defines this for functions which it implements
13666 to always fail with ENOSYS. Some functions are actually named
13667 something starting with __ and the normal name is an alias. */
13668 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
13676 if { (eval echo configure:13677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13678 eval "ac_cv_func_gdbm_open=yes"
13680 echo "configure: failed program was:" >&5
13681 cat conftest.$ac_ext >&5
13683 eval "ac_cv_func_gdbm_open=no"
13688 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
13689 echo "$ac_t""yes" 1>&6
13692 echo "$ac_t""no" 1>&6
13694 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
13695 echo "configure:13696: checking for gdbm_open in -lgdbm" >&5
13696 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
13697 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13698 echo $ac_n "(cached) $ac_c" 1>&6
13700 ac_save_LIBS="$LIBS"
13701 LIBS="-lgdbm $LIBS"
13702 cat > conftest.$ac_ext <<EOF
13703 #line 13704 "configure"
13704 #include "confdefs.h"
13705 /* Override any gcc2 internal prototype to avoid an error. */
13706 /* We use char because int might match the return type of a gcc2
13707 builtin and then its argument prototype would still apply. */
13714 if { (eval echo configure:13715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13716 eval "ac_cv_lib_$ac_lib_var=yes"
13718 echo "configure: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13721 eval "ac_cv_lib_$ac_lib_var=no"
13724 LIBS="$ac_save_LIBS"
13727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13728 echo "$ac_t""yes" 1>&6
13729 ol_cv_lib_gdbm=-lgdbm
13731 echo "$ac_t""no" 1>&6
13742 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
13745 for ac_hdr in gdbm.h
13747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13749 echo "configure:13750: checking for $ac_hdr" >&5
13750 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
13753 cat > conftest.$ac_ext <<EOF
13754 #line 13755 "configure"
13755 #include "confdefs.h"
13758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13759 { (eval echo configure:13760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13761 if test -z "$ac_err"; then
13763 eval "ac_cv_header_$ac_safe=yes"
13766 echo "configure: failed program was:" >&5
13767 cat conftest.$ac_ext >&5
13769 eval "ac_cv_header_$ac_safe=no"
13773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13774 echo "$ac_t""yes" 1>&6
13775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13776 cat >> confdefs.h <<EOF
13777 #define $ac_tr_hdr 1
13781 echo "$ac_t""no" 1>&6
13785 echo $ac_n "checking for db""... $ac_c" 1>&6
13786 echo "configure:13787: checking for db" >&5
13787 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
13788 echo $ac_n "(cached) $ac_c" 1>&6
13791 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
13799 echo "$ac_t""$ol_cv_gdbm" 1>&6
13800 if test $ol_cv_gdbm = yes ; then
13801 cat >> confdefs.h <<\EOF
13802 #define HAVE_GDBM 1
13808 if test $ol_cv_gdbm = yes ; then
13810 ol_with_ldbm_api=gdbm
13812 if test $ol_cv_lib_gdbm != yes ; then
13813 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
13818 if test $ol_with_ldbm_api = ndbm ; then
13819 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
13820 echo "configure:13821: checking for NDBM library" >&5
13821 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
13822 echo $ac_n "(cached) $ac_c" 1>&6
13825 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
13826 echo "configure:13827: checking for dbm_open" >&5
13827 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
13828 echo $ac_n "(cached) $ac_c" 1>&6
13830 cat > conftest.$ac_ext <<EOF
13831 #line 13832 "configure"
13832 #include "confdefs.h"
13833 /* System header to define __stub macros and hopefully few prototypes,
13834 which can conflict with char dbm_open(); below. */
13835 #include <assert.h>
13836 /* Override any gcc2 internal prototype to avoid an error. */
13837 /* We use char because int might match the return type of a gcc2
13838 builtin and then its argument prototype would still apply. */
13844 /* The GNU C library defines this for functions which it implements
13845 to always fail with ENOSYS. Some functions are actually named
13846 something starting with __ and the normal name is an alias. */
13847 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
13855 if { (eval echo configure:13856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13857 eval "ac_cv_func_dbm_open=yes"
13859 echo "configure: failed program was:" >&5
13860 cat conftest.$ac_ext >&5
13862 eval "ac_cv_func_dbm_open=no"
13867 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
13868 echo "$ac_t""yes" 1>&6
13871 echo "$ac_t""no" 1>&6
13873 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
13874 echo "configure:13875: checking for dbm_open in -lndbm" >&5
13875 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13876 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13877 echo $ac_n "(cached) $ac_c" 1>&6
13879 ac_save_LIBS="$LIBS"
13880 LIBS="-lndbm $LIBS"
13881 cat > conftest.$ac_ext <<EOF
13882 #line 13883 "configure"
13883 #include "confdefs.h"
13884 /* Override any gcc2 internal prototype to avoid an error. */
13885 /* We use char because int might match the return type of a gcc2
13886 builtin and then its argument prototype would still apply. */
13893 if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13895 eval "ac_cv_lib_$ac_lib_var=yes"
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13900 eval "ac_cv_lib_$ac_lib_var=no"
13903 LIBS="$ac_save_LIBS"
13906 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13907 echo "$ac_t""yes" 1>&6
13908 ol_cv_lib_ndbm=-lndbm
13910 echo "$ac_t""no" 1>&6
13912 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
13913 echo "configure:13914: checking for dbm_open in -ldbm" >&5
13914 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
13915 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
13916 echo $ac_n "(cached) $ac_c" 1>&6
13918 ac_save_LIBS="$LIBS"
13920 cat > conftest.$ac_ext <<EOF
13921 #line 13922 "configure"
13922 #include "confdefs.h"
13923 /* Override any gcc2 internal prototype to avoid an error. */
13924 /* We use char because int might match the return type of a gcc2
13925 builtin and then its argument prototype would still apply. */
13932 if { (eval echo configure:13933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13934 eval "ac_cv_lib_$ac_lib_var=yes"
13936 echo "configure: failed program was:" >&5
13937 cat conftest.$ac_ext >&5
13939 eval "ac_cv_lib_$ac_lib_var=no"
13942 LIBS="$ac_save_LIBS"
13945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13946 echo "$ac_t""yes" 1>&6
13947 ol_cv_lib_ndbm=-ldbm
13949 echo "$ac_t""no" 1>&6
13962 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
13965 for ac_hdr in ndbm.h
13967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13969 echo "configure:13970: checking for $ac_hdr" >&5
13970 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
13971 echo $ac_n "(cached) $ac_c" 1>&6
13973 cat > conftest.$ac_ext <<EOF
13974 #line 13975 "configure"
13975 #include "confdefs.h"
13978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13979 { (eval echo configure:13980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13981 if test -z "$ac_err"; then
13983 eval "ac_cv_header_$ac_safe=yes"
13986 echo "configure: failed program was:" >&5
13987 cat conftest.$ac_ext >&5
13989 eval "ac_cv_header_$ac_safe=no"
13993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13994 echo "$ac_t""yes" 1>&6
13995 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13996 cat >> confdefs.h <<EOF
13997 #define $ac_tr_hdr 1
14001 echo "$ac_t""no" 1>&6
14005 echo $ac_n "checking for db""... $ac_c" 1>&6
14006 echo "configure:14007: checking for db" >&5
14007 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
14008 echo $ac_n "(cached) $ac_c" 1>&6
14011 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
14019 echo "$ac_t""$ol_cv_ndbm" 1>&6
14020 if test $ol_cv_ndbm = yes ; then
14021 cat >> confdefs.h <<\EOF
14022 #define HAVE_NDBM 1
14028 if test $ol_cv_ndbm = yes ; then
14030 ol_with_ldbm_api=ndbm
14032 if test $ol_cv_lib_ndbm != yes ; then
14033 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
14038 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
14039 echo "configure: warning: could not find suitable LDBM backend" 1>&2
14040 if test $ol_enable_ldbm = yes ; then
14041 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
14044 echo "configure: warning: disabling LDBM" 1>&2
14048 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
14049 LINK_BINS_DYNAMIC="yes"
14051 LINK_BINS_DYNAMIC="no"
14054 if test $ol_enable_wrappers != no ; then
14055 for ac_hdr in tcpd.h
14057 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14058 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14059 echo "configure:14060: checking for $ac_hdr" >&5
14060 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14061 echo $ac_n "(cached) $ac_c" 1>&6
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14068 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14069 { (eval echo configure:14070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14070 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14071 if test -z "$ac_err"; then
14073 eval "ac_cv_header_$ac_safe=yes"
14076 echo "configure: failed program was:" >&5
14077 cat conftest.$ac_ext >&5
14079 eval "ac_cv_header_$ac_safe=no"
14083 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14084 echo "$ac_t""yes" 1>&6
14085 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14086 cat >> confdefs.h <<EOF
14087 #define $ac_tr_hdr 1
14091 echo "$ac_t""no" 1>&6
14096 if test $ac_cv_header_tcpd_h != yes ; then
14099 cat > conftest.$ac_ext <<EOF
14100 #line 14101 "configure"
14101 #include "confdefs.h"
14103 int allow_severity = 0;
14104 int deny_severity = 0;
14110 if { (eval echo configure:14111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14114 echo "configure: failed program was:" >&5
14115 cat conftest.$ac_ext >&5
14122 if test $have_wrappers = yes ; then
14123 cat >> confdefs.h <<\EOF
14124 #define HAVE_TCPD 1
14129 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
14130 echo "configure:14131: checking for main in -lnsl" >&5
14131 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
14132 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14133 echo $ac_n "(cached) $ac_c" 1>&6
14135 ac_save_LIBS="$LIBS"
14137 cat > conftest.$ac_ext <<EOF
14138 #line 14139 "configure"
14139 #include "confdefs.h"
14145 if { (eval echo configure:14146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14147 eval "ac_cv_lib_$ac_lib_var=yes"
14149 echo "configure: failed program was:" >&5
14150 cat conftest.$ac_ext >&5
14152 eval "ac_cv_lib_$ac_lib_var=no"
14155 LIBS="$ac_save_LIBS"
14158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14159 echo "$ac_t""yes" 1>&6
14160 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
14161 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
14162 cat >> confdefs.h <<EOF
14163 #define $ac_tr_lib 1
14169 echo "$ac_t""no" 1>&6
14173 echo "configure: warning: could not find -lwrap" 1>&2
14174 if test $ol_enable_wrappers = yes ; then
14175 { echo "configure: error: could not find wrappers" 1>&2; exit 1; }
14178 echo "configure: warning: disabling wrappers support" 1>&2
14179 ol_enable_wrappers=no
14184 if test $ol_enable_syslog != no ; then
14185 echo $ac_n "checking for openlog""... $ac_c" 1>&6
14186 echo "configure:14187: checking for openlog" >&5
14187 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
14188 echo $ac_n "(cached) $ac_c" 1>&6
14190 cat > conftest.$ac_ext <<EOF
14191 #line 14192 "configure"
14192 #include "confdefs.h"
14193 /* System header to define __stub macros and hopefully few prototypes,
14194 which can conflict with char openlog(); below. */
14195 #include <assert.h>
14196 /* Override any gcc2 internal prototype to avoid an error. */
14197 /* We use char because int might match the return type of a gcc2
14198 builtin and then its argument prototype would still apply. */
14204 /* The GNU C library defines this for functions which it implements
14205 to always fail with ENOSYS. Some functions are actually named
14206 something starting with __ and the normal name is an alias. */
14207 #if defined (__stub_openlog) || defined (__stub___openlog)
14215 if { (eval echo configure:14216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14217 eval "ac_cv_func_openlog=yes"
14219 echo "configure: failed program was:" >&5
14220 cat conftest.$ac_ext >&5
14222 eval "ac_cv_func_openlog=no"
14227 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
14228 echo "$ac_t""yes" 1>&6
14231 echo "$ac_t""no" 1>&6
14234 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
14235 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
14237 ol_enable_syslog=$ac_cv_func_openlog
14241 if test $ol_enable_sql != no ; then
14242 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
14243 echo "configure:14244: checking for SQLDriverConnect in -liodbc" >&5
14244 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14246 echo $ac_n "(cached) $ac_c" 1>&6
14248 ac_save_LIBS="$LIBS"
14249 LIBS="-liodbc $LIBS"
14250 cat > conftest.$ac_ext <<EOF
14251 #line 14252 "configure"
14252 #include "confdefs.h"
14253 /* Override any gcc2 internal prototype to avoid an error. */
14254 /* We use char because int might match the return type of a gcc2
14255 builtin and then its argument prototype would still apply. */
14256 char SQLDriverConnect();
14262 if { (eval echo configure:14263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14264 eval "ac_cv_lib_$ac_lib_var=yes"
14266 echo "configure: failed program was:" >&5
14267 cat conftest.$ac_ext >&5
14269 eval "ac_cv_lib_$ac_lib_var=no"
14272 LIBS="$ac_save_LIBS"
14275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14276 echo "$ac_t""yes" 1>&6
14279 echo "$ac_t""no" 1>&6
14283 if test $have_iodbc = yes ; then
14284 ol_link_sql="-liodbc"
14286 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
14287 echo "configure:14288: checking for SQLDriverConnect in -lodbc" >&5
14288 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
14289 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14290 echo $ac_n "(cached) $ac_c" 1>&6
14292 ac_save_LIBS="$LIBS"
14293 LIBS="-lodbc $LIBS"
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 /* Override any gcc2 internal prototype to avoid an error. */
14298 /* We use char because int might match the return type of a gcc2
14299 builtin and then its argument prototype would still apply. */
14300 char SQLDriverConnect();
14306 if { (eval echo configure:14307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14308 eval "ac_cv_lib_$ac_lib_var=yes"
14310 echo "configure: failed program was:" >&5
14311 cat conftest.$ac_ext >&5
14313 eval "ac_cv_lib_$ac_lib_var=no"
14316 LIBS="$ac_save_LIBS"
14319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14320 echo "$ac_t""yes" 1>&6
14323 echo "$ac_t""no" 1>&6
14327 if test $have_odbc = yes ; then
14328 ol_link_sql="-lodbc"
14332 if test $ol_link_sql != no ; then
14333 SLAPD_SQL_LIBS="$ol_link_sql"
14335 elif test $ol_enable_sql != auto ; then
14336 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
14341 for ac_hdr in termcap.h ncurses.h
14343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14345 echo "configure:14346: checking for $ac_hdr" >&5
14346 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14347 echo $ac_n "(cached) $ac_c" 1>&6
14349 cat > conftest.$ac_ext <<EOF
14350 #line 14351 "configure"
14351 #include "confdefs.h"
14354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14355 { (eval echo configure:14356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14357 if test -z "$ac_err"; then
14359 eval "ac_cv_header_$ac_safe=yes"
14362 echo "configure: failed program was:" >&5
14363 cat conftest.$ac_ext >&5
14365 eval "ac_cv_header_$ac_safe=no"
14369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14370 echo "$ac_t""yes" 1>&6
14371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14372 cat >> confdefs.h <<EOF
14373 #define $ac_tr_hdr 1
14377 echo "$ac_t""no" 1>&6
14382 if test $ol_link_termcap = no ; then
14383 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
14384 echo "configure:14385: checking for tputs in -ltermcap" >&5
14385 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
14386 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14389 ac_save_LIBS="$LIBS"
14390 LIBS="-ltermcap $LIBS"
14391 cat > conftest.$ac_ext <<EOF
14392 #line 14393 "configure"
14393 #include "confdefs.h"
14394 /* Override any gcc2 internal prototype to avoid an error. */
14395 /* We use char because int might match the return type of a gcc2
14396 builtin and then its argument prototype would still apply. */
14403 if { (eval echo configure:14404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14405 eval "ac_cv_lib_$ac_lib_var=yes"
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14410 eval "ac_cv_lib_$ac_lib_var=no"
14413 LIBS="$ac_save_LIBS"
14416 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14417 echo "$ac_t""yes" 1>&6
14420 echo "$ac_t""no" 1>&6
14424 if test $have_termcap = yes ; then
14425 cat >> confdefs.h <<\EOF
14426 #define HAVE_TERMCAP 1
14429 ol_link_termcap=yes
14430 TERMCAP_LIBS=-ltermcap
14434 if test $ol_link_termcap = no ; then
14435 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
14436 echo "configure:14437: checking for initscr in -lncurses" >&5
14437 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
14438 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14439 echo $ac_n "(cached) $ac_c" 1>&6
14441 ac_save_LIBS="$LIBS"
14442 LIBS="-lncurses $LIBS"
14443 cat > conftest.$ac_ext <<EOF
14444 #line 14445 "configure"
14445 #include "confdefs.h"
14446 /* Override any gcc2 internal prototype to avoid an error. */
14447 /* We use char because int might match the return type of a gcc2
14448 builtin and then its argument prototype would still apply. */
14455 if { (eval echo configure:14456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14457 eval "ac_cv_lib_$ac_lib_var=yes"
14459 echo "configure: failed program was:" >&5
14460 cat conftest.$ac_ext >&5
14462 eval "ac_cv_lib_$ac_lib_var=no"
14465 LIBS="$ac_save_LIBS"
14468 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14469 echo "$ac_t""yes" 1>&6
14472 echo "$ac_t""no" 1>&6
14476 if test $have_ncurses = yes ; then
14477 cat >> confdefs.h <<\EOF
14478 #define HAVE_NCURSES 1
14481 ol_link_termcap=yes
14482 TERMCAP_LIBS=-lncurses
14486 if test $ol_link_termcap = no ; then
14487 cat >> confdefs.h <<\EOF
14488 #define NO_TERMCAP 1
14496 if test $ol_with_cyrus_sasl != no ; then
14497 for ac_hdr in sasl.h
14499 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14500 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14501 echo "configure:14502: checking for $ac_hdr" >&5
14502 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
14505 cat > conftest.$ac_ext <<EOF
14506 #line 14507 "configure"
14507 #include "confdefs.h"
14510 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14511 { (eval echo configure:14512: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14512 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14513 if test -z "$ac_err"; then
14515 eval "ac_cv_header_$ac_safe=yes"
14518 echo "configure: failed program was:" >&5
14519 cat conftest.$ac_ext >&5
14521 eval "ac_cv_header_$ac_safe=no"
14525 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14526 echo "$ac_t""yes" 1>&6
14527 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14528 cat >> confdefs.h <<EOF
14529 #define $ac_tr_hdr 1
14533 echo "$ac_t""no" 1>&6
14538 if test $ac_cv_header_sasl_h = yes ; then
14539 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
14540 echo "configure:14541: checking for sasl_client_init in -lsasl" >&5
14541 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
14542 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14543 echo $ac_n "(cached) $ac_c" 1>&6
14545 ac_save_LIBS="$LIBS"
14546 LIBS="-lsasl $LIBS"
14547 cat > conftest.$ac_ext <<EOF
14548 #line 14549 "configure"
14549 #include "confdefs.h"
14550 /* Override any gcc2 internal prototype to avoid an error. */
14551 /* We use char because int might match the return type of a gcc2
14552 builtin and then its argument prototype would still apply. */
14553 char sasl_client_init();
14559 if { (eval echo configure:14560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14561 eval "ac_cv_lib_$ac_lib_var=yes"
14563 echo "configure: failed program was:" >&5
14564 cat conftest.$ac_ext >&5
14566 eval "ac_cv_lib_$ac_lib_var=no"
14569 LIBS="$ac_save_LIBS"
14572 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14573 echo "$ac_t""yes" 1>&6
14574 have_cyrus_sasl=yes
14576 echo "$ac_t""no" 1>&6
14581 if test $have_cyrus_sasl != no ; then
14583 cat >> confdefs.h <<\EOF
14584 #define HAVE_CYRUS_SASL 1
14591 if test $ol_link_sasl = no ; then
14592 if test $ol_with_cyrus_sasl != auto ; then
14593 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
14595 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
14596 echo "configure: warning: SASL authentication not supported!" 1>&2
14597 if test $ol_link_tls = no ; then
14598 echo "configure: warning: Strong authentication not supported!" 1>&2
14602 elif test $ol_enable_spasswd != no ; then
14603 ol_link_spasswd=yes
14607 echo "configure: warning: SASL authentication not supported!" 1>&2
14608 if test $ol_link_tls = no ; then
14609 echo "configure: warning: Strong authentication not supported!" 1>&2
14613 if test $cross_compiling != yes ; then
14615 if test -r /dev/urandom ; then
14616 dev="/dev/urandom";
14617 elif test -r /idev/urandom ; then
14618 dev="/idev/urandom";
14619 elif test -r /dev/srandom ; then
14620 dev="/dev/srandom";
14621 elif test -r /dev/random ; then
14623 elif test -r /idev/random ; then
14624 dev="/idev/random";
14627 if test $dev != no ; then
14628 cat >> confdefs.h <<EOF
14629 #define URANDOM_DEVICE "$dev"
14636 if test $ol_with_fetch != no ; then
14638 LIBS="-lfetch -lcom_err $LIBS"
14639 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
14640 echo "configure:14641: checking fetch(3) library" >&5
14641 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
14642 echo $ac_n "(cached) $ac_c" 1>&6
14645 cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14649 #include <sys/param.h>
14653 struct url *u = fetchParseURL("file:///");
14656 if { (eval echo configure:14657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14658 ol_cv_lib_fetch=yes
14660 echo "configure: failed program was:" >&5
14661 cat conftest.$ac_ext >&5
14668 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
14670 if test $ol_cv_lib_fetch != no ; then
14671 ol_link_fetch="-lfetch -lcom_err"
14672 cat >> confdefs.h <<\EOF
14673 #define HAVE_FETCH 1
14679 if test $ol_cv_lib_fetch != no ; then
14680 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
14681 ol_link_fetch=freebsd
14683 elif test $ol_with_fetch != auto ; then
14684 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
14688 ol_link_readline=no
14689 if test $ol_with_readline != no ; then
14690 for ac_hdr in readline/readline.h readline/history.h
14692 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14694 echo "configure:14695: checking for $ac_hdr" >&5
14695 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
14696 echo $ac_n "(cached) $ac_c" 1>&6
14698 cat > conftest.$ac_ext <<EOF
14699 #line 14700 "configure"
14700 #include "confdefs.h"
14703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14704 { (eval echo configure:14705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14706 if test -z "$ac_err"; then
14708 eval "ac_cv_header_$ac_safe=yes"
14711 echo "configure: failed program was:" >&5
14712 cat conftest.$ac_ext >&5
14714 eval "ac_cv_header_$ac_safe=no"
14718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14719 echo "$ac_t""yes" 1>&6
14720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14721 cat >> confdefs.h <<EOF
14722 #define $ac_tr_hdr 1
14726 echo "$ac_t""no" 1>&6
14731 if test $ac_cv_header_readline_readline_h = yes ; then
14733 LIBS="$TERMCAP_LIBS $LIBS"
14734 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
14735 echo "configure:14736: checking for readline in -lreadline" >&5
14736 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
14737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14738 echo $ac_n "(cached) $ac_c" 1>&6
14740 ac_save_LIBS="$LIBS"
14741 LIBS="-lreadline $LIBS"
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14745 /* Override any gcc2 internal prototype to avoid an error. */
14746 /* We use char because int might match the return type of a gcc2
14747 builtin and then its argument prototype would still apply. */
14754 if { (eval echo configure:14755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14756 eval "ac_cv_lib_$ac_lib_var=yes"
14758 echo "configure: failed program was:" >&5
14759 cat conftest.$ac_ext >&5
14761 eval "ac_cv_lib_$ac_lib_var=no"
14764 LIBS="$ac_save_LIBS"
14767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14768 echo "$ac_t""yes" 1>&6
14771 echo "$ac_t""no" 1>&6
14777 if test $have_readline = yes ; then
14778 ol_with_readline=found
14779 ol_link_readline=yes
14781 READLINE_LIBS="-lreadline"
14786 if test $ol_link_readline = yes ; then
14787 cat >> confdefs.h <<\EOF
14788 #define HAVE_READLINE 1
14794 if test $ol_enable_crypt != no ; then
14795 echo $ac_n "checking for crypt""... $ac_c" 1>&6
14796 echo "configure:14797: checking for crypt" >&5
14797 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
14798 echo $ac_n "(cached) $ac_c" 1>&6
14800 cat > conftest.$ac_ext <<EOF
14801 #line 14802 "configure"
14802 #include "confdefs.h"
14803 /* System header to define __stub macros and hopefully few prototypes,
14804 which can conflict with char crypt(); below. */
14805 #include <assert.h>
14806 /* Override any gcc2 internal prototype to avoid an error. */
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14814 /* The GNU C library defines this for functions which it implements
14815 to always fail with ENOSYS. Some functions are actually named
14816 something starting with __ and the normal name is an alias. */
14817 #if defined (__stub_crypt) || defined (__stub___crypt)
14825 if { (eval echo configure:14826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14827 eval "ac_cv_func_crypt=yes"
14829 echo "configure: failed program was:" >&5
14830 cat conftest.$ac_ext >&5
14832 eval "ac_cv_func_crypt=no"
14837 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
14838 echo "$ac_t""yes" 1>&6
14841 echo "$ac_t""no" 1>&6
14843 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
14844 echo "configure:14845: checking for crypt in -lcrypt" >&5
14845 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
14846 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14847 echo $ac_n "(cached) $ac_c" 1>&6
14849 ac_save_LIBS="$LIBS"
14850 LIBS="-lcrypt $LIBS"
14851 cat > conftest.$ac_ext <<EOF
14852 #line 14853 "configure"
14853 #include "confdefs.h"
14854 /* Override any gcc2 internal prototype to avoid an error. */
14855 /* We use char because int might match the return type of a gcc2
14856 builtin and then its argument prototype would still apply. */
14863 if { (eval echo configure:14864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14865 eval "ac_cv_lib_$ac_lib_var=yes"
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14870 eval "ac_cv_lib_$ac_lib_var=no"
14873 LIBS="$ac_save_LIBS"
14876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14877 echo "$ac_t""yes" 1>&6
14878 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
14881 echo "$ac_t""no" 1>&6
14888 if test $have_crypt = yes ; then
14889 cat >> confdefs.h <<\EOF
14890 #define HAVE_CRYPT 1
14894 echo "configure: warning: could not find crypt" 1>&2
14895 if test $ol_enable_crypt = yes ; then
14896 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
14899 echo "configure: warning: disabling crypt support" 1>&2
14904 if test $ol_enable_proctitle != no ; then
14905 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
14906 echo "configure:14907: checking for setproctitle" >&5
14907 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
14908 echo $ac_n "(cached) $ac_c" 1>&6
14910 cat > conftest.$ac_ext <<EOF
14911 #line 14912 "configure"
14912 #include "confdefs.h"
14913 /* System header to define __stub macros and hopefully few prototypes,
14914 which can conflict with char setproctitle(); below. */
14915 #include <assert.h>
14916 /* Override any gcc2 internal prototype to avoid an error. */
14917 /* We use char because int might match the return type of a gcc2
14918 builtin and then its argument prototype would still apply. */
14919 char setproctitle();
14924 /* The GNU C library defines this for functions which it implements
14925 to always fail with ENOSYS. Some functions are actually named
14926 something starting with __ and the normal name is an alias. */
14927 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
14935 if { (eval echo configure:14936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14937 eval "ac_cv_func_setproctitle=yes"
14939 echo "configure: failed program was:" >&5
14940 cat conftest.$ac_ext >&5
14942 eval "ac_cv_func_setproctitle=no"
14947 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
14948 echo "$ac_t""yes" 1>&6
14949 have_setproctitle=yes
14951 echo "$ac_t""no" 1>&6
14953 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
14954 echo "configure:14955: checking for setproctitle in -lutil" >&5
14955 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
14956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14957 echo $ac_n "(cached) $ac_c" 1>&6
14959 ac_save_LIBS="$LIBS"
14960 LIBS="-lutil $LIBS"
14961 cat > conftest.$ac_ext <<EOF
14962 #line 14963 "configure"
14963 #include "confdefs.h"
14964 /* Override any gcc2 internal prototype to avoid an error. */
14965 /* We use char because int might match the return type of a gcc2
14966 builtin and then its argument prototype would still apply. */
14967 char setproctitle();
14973 if { (eval echo configure:14974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14975 eval "ac_cv_lib_$ac_lib_var=yes"
14977 echo "configure: failed program was:" >&5
14978 cat conftest.$ac_ext >&5
14980 eval "ac_cv_lib_$ac_lib_var=no"
14983 LIBS="$ac_save_LIBS"
14986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14987 echo "$ac_t""yes" 1>&6
14988 have_setproctitle=yes
14989 LUTIL_LIBS="$LUTIL_LIBS -lutil"
14991 echo "$ac_t""no" 1>&6
14992 have_setproctitle=no
14993 LIBOBJS="$LIBOBJS setproctitle.o"
14994 LIBSRCS="$LIBSRCS setproctitle.c"
15000 if test $have_setproctitle = yes ; then
15001 cat >> confdefs.h <<\EOF
15002 #define HAVE_SETPROCTITLE 1
15008 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15009 echo "configure:15010: checking for ANSI C header files" >&5
15010 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
15011 echo $ac_n "(cached) $ac_c" 1>&6
15013 cat > conftest.$ac_ext <<EOF
15014 #line 15015 "configure"
15015 #include "confdefs.h"
15016 #include <stdlib.h>
15017 #include <stdarg.h>
15018 #include <string.h>
15021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15022 { (eval echo configure:15023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15024 if test -z "$ac_err"; then
15026 ac_cv_header_stdc=yes
15029 echo "configure: failed program was:" >&5
15030 cat conftest.$ac_ext >&5
15032 ac_cv_header_stdc=no
15036 if test $ac_cv_header_stdc = yes; then
15037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15038 cat > conftest.$ac_ext <<EOF
15039 #line 15040 "configure"
15040 #include "confdefs.h"
15041 #include <string.h>
15043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15044 egrep "memchr" >/dev/null 2>&1; then
15048 ac_cv_header_stdc=no
15054 if test $ac_cv_header_stdc = yes; then
15055 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15056 cat > conftest.$ac_ext <<EOF
15057 #line 15058 "configure"
15058 #include "confdefs.h"
15059 #include <stdlib.h>
15061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15062 egrep "free" >/dev/null 2>&1; then
15066 ac_cv_header_stdc=no
15072 if test $ac_cv_header_stdc = yes; then
15073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15074 if test "$cross_compiling" = yes; then
15077 cat > conftest.$ac_ext <<EOF
15078 #line 15079 "configure"
15079 #include "confdefs.h"
15081 #if ((' ' & 0x0FF) == 0x020)
15082 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15083 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15085 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
15086 || ('j' <= (c) && (c) <= 'r') \
15087 || ('s' <= (c) && (c) <= 'z'))
15088 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15091 int main () { int i; for (i = 0; i < 256; i++)
15092 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15096 if { (eval echo configure:15097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15100 echo "configure: failed program was:" >&5
15101 cat conftest.$ac_ext >&5
15103 ac_cv_header_stdc=no
15111 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15112 if test $ac_cv_header_stdc = yes; then
15113 cat >> confdefs.h <<\EOF
15114 #define STDC_HEADERS 1
15119 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15120 echo "configure:15121: checking for mode_t" >&5
15121 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
15122 echo $ac_n "(cached) $ac_c" 1>&6
15124 cat > conftest.$ac_ext <<EOF
15125 #line 15126 "configure"
15126 #include "confdefs.h"
15127 #include <sys/types.h>
15129 #include <stdlib.h>
15130 #include <stddef.h>
15134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15135 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15137 eval "ac_cv_type_mode_t=yes"
15140 eval "ac_cv_type_mode_t=no"
15145 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
15146 echo "$ac_t""yes" 1>&6
15148 echo "$ac_t""no" 1>&6
15149 cat >> confdefs.h <<EOF
15155 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15156 echo "configure:15157: checking for off_t" >&5
15157 if eval "test \"\${ac_cv_type_off_t+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 #include <sys/types.h>
15165 #include <stdlib.h>
15166 #include <stddef.h>
15170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15171 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15173 eval "ac_cv_type_off_t=yes"
15176 eval "ac_cv_type_off_t=no"
15181 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
15182 echo "$ac_t""yes" 1>&6
15184 echo "$ac_t""no" 1>&6
15185 cat >> confdefs.h <<EOF
15191 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15192 echo "configure:15193: checking for pid_t" >&5
15193 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
15194 echo $ac_n "(cached) $ac_c" 1>&6
15196 cat > conftest.$ac_ext <<EOF
15197 #line 15198 "configure"
15198 #include "confdefs.h"
15199 #include <sys/types.h>
15201 #include <stdlib.h>
15202 #include <stddef.h>
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15209 eval "ac_cv_type_pid_t=yes"
15212 eval "ac_cv_type_pid_t=no"
15217 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
15218 echo "$ac_t""yes" 1>&6
15220 echo "$ac_t""no" 1>&6
15221 cat >> confdefs.h <<EOF
15227 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
15228 echo "configure:15229: checking for ptrdiff_t" >&5
15229 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
15230 echo $ac_n "(cached) $ac_c" 1>&6
15232 cat > conftest.$ac_ext <<EOF
15233 #line 15234 "configure"
15234 #include "confdefs.h"
15235 #include <stddef.h>
15240 if { (eval echo configure:15241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15242 am_cv_type_ptrdiff_t=yes
15244 echo "configure: failed program was:" >&5
15245 cat conftest.$ac_ext >&5
15247 am_cv_type_ptrdiff_t=no
15252 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
15253 if test $am_cv_type_ptrdiff_t = yes; then
15254 cat >> confdefs.h <<\EOF
15255 #define HAVE_PTRDIFF_T 1
15260 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
15261 echo "configure:15262: checking return type of signal handlers" >&5
15262 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
15263 echo $ac_n "(cached) $ac_c" 1>&6
15265 cat > conftest.$ac_ext <<EOF
15266 #line 15267 "configure"
15267 #include "confdefs.h"
15268 #include <sys/types.h>
15269 #include <signal.h>
15274 extern "C" void (*signal (int, void (*)(int)))(int);
15276 void (*signal ()) ();
15283 if { (eval echo configure:15284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15285 ac_cv_type_signal=void
15287 echo "configure: failed program was:" >&5
15288 cat conftest.$ac_ext >&5
15290 ac_cv_type_signal=int
15295 echo "$ac_t""$ac_cv_type_signal" 1>&6
15296 cat >> confdefs.h <<EOF
15297 #define RETSIGTYPE $ac_cv_type_signal
15301 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15302 echo "configure:15303: checking for size_t" >&5
15303 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
15304 echo $ac_n "(cached) $ac_c" 1>&6
15306 cat > conftest.$ac_ext <<EOF
15307 #line 15308 "configure"
15308 #include "confdefs.h"
15309 #include <sys/types.h>
15311 #include <stdlib.h>
15312 #include <stddef.h>
15316 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15317 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15319 eval "ac_cv_type_size_t=yes"
15322 eval "ac_cv_type_size_t=no"
15327 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
15328 echo "$ac_t""yes" 1>&6
15330 echo "$ac_t""no" 1>&6
15331 cat >> confdefs.h <<EOF
15332 #define size_t unsigned
15338 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
15339 echo "configure:15340: checking for ssize_t" >&5
15340 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
15341 echo $ac_n "(cached) $ac_c" 1>&6
15343 cat > conftest.$ac_ext <<EOF
15344 #line 15345 "configure"
15345 #include "confdefs.h"
15346 #include <sys/types.h>
15348 #include <stdlib.h>
15349 #include <stddef.h>
15353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15354 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15356 eval "ac_cv_type_ssize_t=yes"
15359 eval "ac_cv_type_ssize_t=no"
15364 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
15365 echo "$ac_t""yes" 1>&6
15367 echo "$ac_t""no" 1>&6
15368 cat >> confdefs.h <<EOF
15369 #define ssize_t signed int
15374 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
15375 echo "configure:15376: checking for caddr_t" >&5
15376 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
15377 echo $ac_n "(cached) $ac_c" 1>&6
15379 cat > conftest.$ac_ext <<EOF
15380 #line 15381 "configure"
15381 #include "confdefs.h"
15382 #include <sys/types.h>
15384 #include <stdlib.h>
15385 #include <stddef.h>
15389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15390 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15392 eval "ac_cv_type_caddr_t=yes"
15395 eval "ac_cv_type_caddr_t=no"
15400 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
15401 echo "$ac_t""yes" 1>&6
15403 echo "$ac_t""no" 1>&6
15404 cat >> confdefs.h <<EOF
15405 #define caddr_t char *
15411 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
15412 echo "configure:15413: checking for socklen_t" >&5
15413 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
15414 echo $ac_n "(cached) $ac_c" 1>&6
15416 cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15420 #ifdef HAVE_SYS_TYPES_H
15421 #include <sys/types.h>
15423 #ifdef HAVE_SYS_SOCKET_H
15424 #include <sys/socket.h>
15431 if { (eval echo configure:15432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15433 ol_cv_type_socklen_t=yes
15435 echo "configure: failed program was:" >&5
15436 cat conftest.$ac_ext >&5
15438 ol_cv_type_socklen_t=no
15443 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
15444 if test $ol_cv_type_socklen_t = no; then
15445 cat >> confdefs.h <<\EOF
15446 #define socklen_t int
15451 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
15452 echo "configure:15453: checking for member st_blksize in aggregate type struct stat" >&5
15453 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
15454 echo $ac_n "(cached) $ac_c" 1>&6
15456 cat > conftest.$ac_ext <<EOF
15457 #line 15458 "configure"
15458 #include "confdefs.h"
15459 #include <sys/types.h>
15460 #include <sys/stat.h>
15462 struct stat foo; foo.st_blksize;
15465 if { (eval echo configure:15466: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15467 ac_cv_c_struct_member_st_blksize=yes
15469 echo "configure: failed program was:" >&5
15470 cat conftest.$ac_ext >&5
15472 ac_cv_c_struct_member_st_blksize=no
15477 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
15478 st_blksize="$ac_cv_c_struct_member_st_blksize"
15479 if test $ac_cv_c_struct_member_st_blksize = yes; then
15480 cat >> confdefs.h <<\EOF
15481 #define HAVE_ST_BLKSIZE 1
15486 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
15487 echo "configure:15488: checking whether time.h and sys/time.h may both be included" >&5
15488 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
15489 echo $ac_n "(cached) $ac_c" 1>&6
15491 cat > conftest.$ac_ext <<EOF
15492 #line 15493 "configure"
15493 #include "confdefs.h"
15494 #include <sys/types.h>
15495 #include <sys/time.h>
15501 if { (eval echo configure:15502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15503 ac_cv_header_time=yes
15505 echo "configure: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15508 ac_cv_header_time=no
15513 echo "$ac_t""$ac_cv_header_time" 1>&6
15514 if test $ac_cv_header_time = yes; then
15515 cat >> confdefs.h <<\EOF
15516 #define TIME_WITH_SYS_TIME 1
15521 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
15522 echo "configure:15523: checking whether struct tm is in sys/time.h or time.h" >&5
15523 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
15524 echo $ac_n "(cached) $ac_c" 1>&6
15526 cat > conftest.$ac_ext <<EOF
15527 #line 15528 "configure"
15528 #include "confdefs.h"
15529 #include <sys/types.h>
15532 struct tm *tp; tp->tm_sec;
15535 if { (eval echo configure:15536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15537 ac_cv_struct_tm=time.h
15539 echo "configure: failed program was:" >&5
15540 cat conftest.$ac_ext >&5
15542 ac_cv_struct_tm=sys/time.h
15547 echo "$ac_t""$ac_cv_struct_tm" 1>&6
15548 if test $ac_cv_struct_tm = sys/time.h; then
15549 cat >> confdefs.h <<\EOF
15550 #define TM_IN_SYS_TIME 1
15555 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15556 echo "configure:15557: checking for uid_t in sys/types.h" >&5
15557 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
15558 echo $ac_n "(cached) $ac_c" 1>&6
15560 cat > conftest.$ac_ext <<EOF
15561 #line 15562 "configure"
15562 #include "confdefs.h"
15563 #include <sys/types.h>
15565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15566 egrep "uid_t" >/dev/null 2>&1; then
15568 ac_cv_type_uid_t=yes
15571 ac_cv_type_uid_t=no
15577 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15578 if test $ac_cv_type_uid_t = no; then
15579 cat >> confdefs.h <<\EOF
15583 cat >> confdefs.h <<\EOF
15589 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
15590 echo "configure:15591: checking for sig_atomic_t" >&5
15591 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
15592 echo $ac_n "(cached) $ac_c" 1>&6
15594 cat > conftest.$ac_ext <<EOF
15595 #line 15596 "configure"
15596 #include "confdefs.h"
15597 #include <signal.h>
15599 sig_atomic_t atomic;
15602 if { (eval echo configure:15603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15604 ol_cv_type_sig_atomic_t=yes
15606 echo "configure: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15609 ol_cv_type_sig_atomic_t=no
15614 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
15615 if test $ol_cv_type_sig_atomic_t = no; then
15616 cat >> confdefs.h <<\EOF
15617 #define sig_atomic_t int
15624 # test for pw_gecos in struct passwd
15625 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
15626 echo "configure:15627: checking struct passwd for pw_gecos" >&5
15627 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
15628 echo $ac_n "(cached) $ac_c" 1>&6
15631 cat > conftest.$ac_ext <<EOF
15632 #line 15633 "configure"
15633 #include "confdefs.h"
15638 pwd.pw_gecos = pwd.pw_name;
15642 if { (eval echo configure:15643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15644 ol_cv_struct_passwd_pw_gecos=yes
15646 echo "configure: failed program was:" >&5
15647 cat conftest.$ac_ext >&5
15649 ol_cv_struct_passwd_pw_gecos=no
15654 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
15655 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
15656 cat >> confdefs.h <<\EOF
15657 #define HAVE_PW_GECOS 1
15662 # test for pw_passwd in struct passwd
15663 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
15664 echo "configure:15665: checking struct passwd for pw_passwd" >&5
15665 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
15666 echo $ac_n "(cached) $ac_c" 1>&6
15669 cat > conftest.$ac_ext <<EOF
15670 #line 15671 "configure"
15671 #include "confdefs.h"
15676 pwd.pw_passwd = pwd.pw_name;
15680 if { (eval echo configure:15681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15682 ol_cv_struct_passwd_pw_passwd=yes
15684 echo "configure: failed program was:" >&5
15685 cat conftest.$ac_ext >&5
15687 ol_cv_struct_passwd_pw_passwd=no
15692 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
15693 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
15694 cat >> confdefs.h <<\EOF
15695 #define HAVE_PW_PASSWD 1
15701 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
15702 echo "configure:15703: checking if toupper() requires islower()" >&5
15703 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
15704 echo $ac_n "(cached) $ac_c" 1>&6
15707 if test "$cross_compiling" = yes; then
15708 ol_cv_c_upper_lower=safe
15710 cat > conftest.$ac_ext <<EOF
15711 #line 15712 "configure"
15712 #include "confdefs.h"
15717 if ('C' == toupper('C'))
15723 if { (eval echo configure:15724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15725 ol_cv_c_upper_lower=no
15727 echo "configure: failed program was:" >&5
15728 cat conftest.$ac_ext >&5
15730 ol_cv_c_upper_lower=yes
15737 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
15738 if test $ol_cv_c_upper_lower != no ; then
15739 cat >> confdefs.h <<\EOF
15740 #define C_UPPER_LOWER 1
15745 echo $ac_n "checking for working const""... $ac_c" 1>&6
15746 echo "configure:15747: checking for working const" >&5
15747 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
15748 echo $ac_n "(cached) $ac_c" 1>&6
15750 cat > conftest.$ac_ext <<EOF
15751 #line 15752 "configure"
15752 #include "confdefs.h"
15756 /* Ultrix mips cc rejects this. */
15757 typedef int charset[2]; const charset x;
15758 /* SunOS 4.1.1 cc rejects this. */
15759 char const *const *ccp;
15761 /* NEC SVR4.0.2 mips cc rejects this. */
15762 struct point {int x, y;};
15763 static struct point const zero = {0,0};
15764 /* AIX XL C 1.02.0.0 rejects this.
15765 It does not let you subtract one const X* pointer from another in an arm
15766 of an if-expression whose if-part is not a constant expression */
15767 const char *g = "string";
15768 ccp = &g + (g ? g-g : 0);
15769 /* HPUX 7.0 cc rejects these. */
15772 ccp = (char const *const *) p;
15773 { /* SCO 3.2v4 cc rejects this. */
15775 char const *s = 0 ? (char *) 0 : (char const *) 0;
15779 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15780 int x[] = {25, 17};
15781 const int *foo = &x[0];
15784 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15785 typedef const int *iptr;
15789 { /* AIX XL C 1.02.0.0 rejects this saying
15790 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15791 struct s { int j; const int *ap[3]; };
15792 struct s *b; b->j = 5;
15794 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15795 const int foo = 10;
15800 if { (eval echo configure:15801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15804 echo "configure: failed program was:" >&5
15805 cat conftest.$ac_ext >&5
15812 echo "$ac_t""$ac_cv_c_const" 1>&6
15813 if test $ac_cv_c_const = no; then
15814 cat >> confdefs.h <<\EOF
15820 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
15821 echo "configure:15822: checking if compiler understands volatile" >&5
15822 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
15823 echo $ac_n "(cached) $ac_c" 1>&6
15825 cat > conftest.$ac_ext <<EOF
15826 #line 15827 "configure"
15827 #include "confdefs.h"
15830 volatile int a; int * volatile b = x ? &y : &z;
15831 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
15835 if { (eval echo configure:15836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15837 ol_cv_c_volatile=yes
15839 echo "configure: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
15842 ol_cv_c_volatile=no
15847 echo "$ac_t""$ol_cv_c_volatile" 1>&6
15848 if test $ol_cv_c_volatile = yes; then
15851 cat >> confdefs.h <<\EOF
15858 if test $cross_compiling = yes ; then
15859 cat >> confdefs.h <<\EOF
15860 #define CROSS_COMPILING 1
15864 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
15865 echo "configure:15866: checking whether byte ordering is bigendian" >&5
15866 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
15867 echo $ac_n "(cached) $ac_c" 1>&6
15869 ac_cv_c_bigendian=unknown
15870 # See if sys/param.h defines the BYTE_ORDER macro.
15871 cat > conftest.$ac_ext <<EOF
15872 #line 15873 "configure"
15873 #include "confdefs.h"
15874 #include <sys/types.h>
15875 #include <sys/param.h>
15878 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15879 bogus endian macros
15883 if { (eval echo configure:15884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15885 # It does; now see whether it defined to BIG_ENDIAN or not.
15886 cat > conftest.$ac_ext <<EOF
15887 #line 15888 "configure"
15888 #include "confdefs.h"
15889 #include <sys/types.h>
15890 #include <sys/param.h>
15893 #if BYTE_ORDER != BIG_ENDIAN
15898 if { (eval echo configure:15899: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15900 ac_cv_c_bigendian=yes
15902 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15905 ac_cv_c_bigendian=no
15909 echo "configure: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15913 if test $ac_cv_c_bigendian = unknown; then
15914 if test "$cross_compiling" = yes; then
15915 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
15917 cat > conftest.$ac_ext <<EOF
15918 #line 15919 "configure"
15919 #include "confdefs.h"
15921 /* Are we little or big endian? From Harbison&Steele. */
15925 char c[sizeof (long)];
15928 exit (u.c[sizeof (long) - 1] == 1);
15931 if { (eval echo configure:15932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15933 ac_cv_c_bigendian=no
15935 echo "configure: failed program was:" >&5
15936 cat conftest.$ac_ext >&5
15938 ac_cv_c_bigendian=yes
15946 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15947 if test $ac_cv_c_bigendian = yes; then
15948 cat >> confdefs.h <<\EOF
15949 #define WORDS_BIGENDIAN 1
15956 echo $ac_n "checking size of short""... $ac_c" 1>&6
15957 echo "configure:15958: checking size of short" >&5
15958 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
15959 echo $ac_n "(cached) $ac_c" 1>&6
15961 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
15962 cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15965 #include "confdefs.h"
15966 #include <sys/types.h>
15970 switch (0) case 0: case (sizeof (short) == $ac_size):;
15973 if { (eval echo configure:15974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15975 ac_cv_sizeof_short=$ac_size
15977 echo "configure: failed program was:" >&5
15978 cat conftest.$ac_ext >&5
15981 if test x$ac_cv_sizeof_short != x ; then break; fi
15986 if test x$ac_cv_sizeof_short = x ; then
15987 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
15989 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
15990 cat >> confdefs.h <<EOF
15991 #define SIZEOF_SHORT $ac_cv_sizeof_short
15995 echo $ac_n "checking size of int""... $ac_c" 1>&6
15996 echo "configure:15997: checking size of int" >&5
15997 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
15998 echo $ac_n "(cached) $ac_c" 1>&6
16000 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16001 cat > conftest.$ac_ext <<EOF
16002 #line 16003 "configure"
16003 #include "confdefs.h"
16004 #include "confdefs.h"
16005 #include <sys/types.h>
16009 switch (0) case 0: case (sizeof (int) == $ac_size):;
16012 if { (eval echo configure:16013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16014 ac_cv_sizeof_int=$ac_size
16016 echo "configure: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16020 if test x$ac_cv_sizeof_int != x ; then break; fi
16025 if test x$ac_cv_sizeof_int = x ; then
16026 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
16028 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
16029 cat >> confdefs.h <<EOF
16030 #define SIZEOF_INT $ac_cv_sizeof_int
16034 echo $ac_n "checking size of long""... $ac_c" 1>&6
16035 echo "configure:16036: checking size of long" >&5
16036 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16039 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
16040 cat > conftest.$ac_ext <<EOF
16041 #line 16042 "configure"
16042 #include "confdefs.h"
16043 #include "confdefs.h"
16044 #include <sys/types.h>
16048 switch (0) case 0: case (sizeof (long) == $ac_size):;
16051 if { (eval echo configure:16052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16053 ac_cv_sizeof_long=$ac_size
16055 echo "configure: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16059 if test x$ac_cv_sizeof_long != x ; then break; fi
16064 if test x$ac_cv_sizeof_long = x ; then
16065 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
16067 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
16068 cat >> confdefs.h <<EOF
16069 #define SIZEOF_LONG $ac_cv_sizeof_long
16074 if test "$ac_cv_sizeof_int" -lt 4 ; then
16075 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
16077 cat >> confdefs.h <<\EOF
16078 #define LBER_INT_T long
16082 cat >> confdefs.h <<\EOF
16083 #define LBER_INT_T int
16088 cat >> confdefs.h <<\EOF
16089 #define LBER_LEN_T long
16092 cat >> confdefs.h <<\EOF
16093 #define LBER_SOCKET_T int
16096 cat >> confdefs.h <<\EOF
16097 #define LBER_TAG_T long
16101 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
16102 echo "configure:16103: checking for 8-bit clean memcmp" >&5
16103 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
16104 echo $ac_n "(cached) $ac_c" 1>&6
16106 if test "$cross_compiling" = yes; then
16107 ac_cv_func_memcmp_clean=no
16109 cat > conftest.$ac_ext <<EOF
16110 #line 16111 "configure"
16111 #include "confdefs.h"
16115 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
16116 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
16120 if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
16122 ac_cv_func_memcmp_clean=yes
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 ac_cv_func_memcmp_clean=no
16134 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
16135 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
16137 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16138 echo "configure:16139: checking for strftime" >&5
16139 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
16140 echo $ac_n "(cached) $ac_c" 1>&6
16142 cat > conftest.$ac_ext <<EOF
16143 #line 16144 "configure"
16144 #include "confdefs.h"
16145 /* System header to define __stub macros and hopefully few prototypes,
16146 which can conflict with char strftime(); below. */
16147 #include <assert.h>
16148 /* Override any gcc2 internal prototype to avoid an error. */
16149 /* We use char because int might match the return type of a gcc2
16150 builtin and then its argument prototype would still apply. */
16156 /* The GNU C library defines this for functions which it implements
16157 to always fail with ENOSYS. Some functions are actually named
16158 something starting with __ and the normal name is an alias. */
16159 #if defined (__stub_strftime) || defined (__stub___strftime)
16167 if { (eval echo configure:16168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16169 eval "ac_cv_func_strftime=yes"
16171 echo "configure: failed program was:" >&5
16172 cat conftest.$ac_ext >&5
16174 eval "ac_cv_func_strftime=no"
16179 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
16180 echo "$ac_t""yes" 1>&6
16181 cat >> confdefs.h <<\EOF
16182 #define HAVE_STRFTIME 1
16186 echo "$ac_t""no" 1>&6
16187 # strftime is in -lintl on SCO UNIX.
16188 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16189 echo "configure:16190: checking for strftime in -lintl" >&5
16190 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
16191 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16192 echo $ac_n "(cached) $ac_c" 1>&6
16194 ac_save_LIBS="$LIBS"
16195 LIBS="-lintl $LIBS"
16196 cat > conftest.$ac_ext <<EOF
16197 #line 16198 "configure"
16198 #include "confdefs.h"
16199 /* Override any gcc2 internal prototype to avoid an error. */
16200 /* We use char because int might match the return type of a gcc2
16201 builtin and then its argument prototype would still apply. */
16208 if { (eval echo configure:16209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16210 eval "ac_cv_lib_$ac_lib_var=yes"
16212 echo "configure: failed program was:" >&5
16213 cat conftest.$ac_ext >&5
16215 eval "ac_cv_lib_$ac_lib_var=no"
16218 LIBS="$ac_save_LIBS"
16221 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16222 echo "$ac_t""yes" 1>&6
16223 cat >> confdefs.h <<\EOF
16224 #define HAVE_STRFTIME 1
16227 LIBS="-lintl $LIBS"
16229 echo "$ac_t""no" 1>&6
16235 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
16236 echo "configure:16237: checking for inet_aton()" >&5
16237 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
16238 echo $ac_n "(cached) $ac_c" 1>&6
16240 cat > conftest.$ac_ext <<EOF
16241 #line 16242 "configure"
16242 #include "confdefs.h"
16244 #ifdef HAVE_SYS_TYPES_H
16245 # include <sys/types.h>
16247 #ifdef HAVE_SYS_SOCKET_H
16248 # include <sys/socket.h>
16249 # ifdef HAVE_SYS_SELECT_H
16250 # include <sys/select.h>
16252 # include <netinet/in.h>
16253 # ifdef HAVE_ARPA_INET_H
16254 # include <arpa/inet.h>
16260 int rc = inet_aton( "255.255.255.255", &in );
16263 if { (eval echo configure:16264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16265 ol_cv_func_inet_aton=yes
16267 echo "configure: failed program was:" >&5
16268 cat conftest.$ac_ext >&5
16270 ol_cv_func_inet_aton=no
16275 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
16276 if test $ol_cv_func_inet_aton != no; then
16277 cat >> confdefs.h <<\EOF
16278 #define HAVE_INET_ATON 1
16284 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
16285 echo "configure:16286: checking for _spawnlp" >&5
16286 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
16287 echo $ac_n "(cached) $ac_c" 1>&6
16289 cat > conftest.$ac_ext <<EOF
16290 #line 16291 "configure"
16291 #include "confdefs.h"
16292 /* System header to define __stub macros and hopefully few prototypes,
16293 which can conflict with char _spawnlp(); below. */
16294 #include <assert.h>
16295 /* Override any gcc2 internal prototype to avoid an error. */
16296 /* We use char because int might match the return type of a gcc2
16297 builtin and then its argument prototype would still apply. */
16303 /* The GNU C library defines this for functions which it implements
16304 to always fail with ENOSYS. Some functions are actually named
16305 something starting with __ and the normal name is an alias. */
16306 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
16314 if { (eval echo configure:16315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16316 eval "ac_cv_func__spawnlp=yes"
16318 echo "configure: failed program was:" >&5
16319 cat conftest.$ac_ext >&5
16321 eval "ac_cv_func__spawnlp=no"
16326 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
16327 echo "$ac_t""yes" 1>&6
16328 cat >> confdefs.h <<\EOF
16329 #define HAVE_SPAWNLP 1
16333 echo "$ac_t""no" 1>&6
16337 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
16338 echo "configure:16339: checking for _snprintf" >&5
16339 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
16340 echo $ac_n "(cached) $ac_c" 1>&6
16342 cat > conftest.$ac_ext <<EOF
16343 #line 16344 "configure"
16344 #include "confdefs.h"
16345 /* System header to define __stub macros and hopefully few prototypes,
16346 which can conflict with char _snprintf(); below. */
16347 #include <assert.h>
16348 /* Override any gcc2 internal prototype to avoid an error. */
16349 /* We use char because int might match the return type of a gcc2
16350 builtin and then its argument prototype would still apply. */
16356 /* The GNU C library defines this for functions which it implements
16357 to always fail with ENOSYS. Some functions are actually named
16358 something starting with __ and the normal name is an alias. */
16359 #if defined (__stub__snprintf) || defined (__stub____snprintf)
16367 if { (eval echo configure:16368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16369 eval "ac_cv_func__snprintf=yes"
16371 echo "configure: failed program was:" >&5
16372 cat conftest.$ac_ext >&5
16374 eval "ac_cv_func__snprintf=no"
16379 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
16380 echo "$ac_t""yes" 1>&6
16381 ac_cv_func_snprintf=yes
16382 cat >> confdefs.h <<\EOF
16383 #define snprintf _snprintf
16388 echo "$ac_t""no" 1>&6
16392 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
16393 echo "configure:16394: checking for _vsnprintf" >&5
16394 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
16395 echo $ac_n "(cached) $ac_c" 1>&6
16397 cat > conftest.$ac_ext <<EOF
16398 #line 16399 "configure"
16399 #include "confdefs.h"
16400 /* System header to define __stub macros and hopefully few prototypes,
16401 which can conflict with char _vsnprintf(); below. */
16402 #include <assert.h>
16403 /* Override any gcc2 internal prototype to avoid an error. */
16404 /* We use char because int might match the return type of a gcc2
16405 builtin and then its argument prototype would still apply. */
16411 /* The GNU C library defines this for functions which it implements
16412 to always fail with ENOSYS. Some functions are actually named
16413 something starting with __ and the normal name is an alias. */
16414 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
16422 if { (eval echo configure:16423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16424 eval "ac_cv_func__vsnprintf=yes"
16426 echo "configure: failed program was:" >&5
16427 cat conftest.$ac_ext >&5
16429 eval "ac_cv_func__vsnprintf=no"
16434 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
16435 echo "$ac_t""yes" 1>&6
16436 ac_cv_func_vsnprintf=yes
16437 cat >> confdefs.h <<\EOF
16438 #define vsnprintf _vsnprintf
16443 echo "$ac_t""no" 1>&6
16447 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
16448 echo "configure:16449: checking for vprintf" >&5
16449 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
16450 echo $ac_n "(cached) $ac_c" 1>&6
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16454 "configure"
16454 #include "confdefs.h"
16455 /* System header to define __stub macros and hopefully few prototypes,
16456 which can conflict with char vprintf(); below. */
16457 #include <assert.h>
16458 /* Override any gcc2 internal prototype to avoid an error. */
16459 /* We use char because int might match the return type of a gcc2
16460 builtin and then its argument prototype would still apply. */
16466 /* The GNU C library defines this for functions which it implements
16467 to always fail with ENOSYS. Some functions are actually named
16468 something starting with __ and the normal name is an alias. */
16469 #if defined (__stub_vprintf) || defined (__stub___vprintf)
16477 if { (eval echo configure:16478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16479 eval "ac_cv_func_vprintf=yes"
16481 echo "configure: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16484 eval "ac_cv_func_vprintf=no"
16489 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
16490 echo "$ac_t""yes" 1>&6
16491 cat >> confdefs.h <<\EOF
16492 #define HAVE_VPRINTF 1
16496 echo "$ac_t""no" 1>&6
16499 if test "$ac_cv_func_vprintf" != yes; then
16500 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
16501 echo "configure:16502: checking for _doprnt" >&5
16502 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
16503 echo $ac_n "(cached) $ac_c" 1>&6
16505 cat > conftest.$ac_ext <<EOF
16506 #line 16507 "configure"
16507 #include "confdefs.h"
16508 /* System header to define __stub macros and hopefully few prototypes,
16509 which can conflict with char _doprnt(); below. */
16510 #include <assert.h>
16511 /* Override any gcc2 internal prototype to avoid an error. */
16512 /* We use char because int might match the return type of a gcc2
16513 builtin and then its argument prototype would still apply. */
16519 /* The GNU C library defines this for functions which it implements
16520 to always fail with ENOSYS. Some functions are actually named
16521 something starting with __ and the normal name is an alias. */
16522 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16530 if { (eval echo configure:16531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16532 eval "ac_cv_func__doprnt=yes"
16534 echo "configure: failed program was:" >&5
16535 cat conftest.$ac_ext >&5
16537 eval "ac_cv_func__doprnt=no"
16542 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
16543 echo "$ac_t""yes" 1>&6
16544 cat >> confdefs.h <<\EOF
16545 #define HAVE_DOPRNT 1
16549 echo "$ac_t""no" 1>&6
16555 if test $ac_cv_func_vprintf = yes ; then
16556 for ac_func in vsnprintf vsprintf
16558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16559 echo "configure:16560: checking for $ac_func" >&5
16560 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16561 echo $ac_n "(cached) $ac_c" 1>&6
16563 cat > conftest.$ac_ext <<EOF
16564 #line 16565 "configure"
16565 #include "confdefs.h"
16566 /* System header to define __stub macros and hopefully few prototypes,
16567 which can conflict with char $ac_func(); below. */
16568 #include <assert.h>
16569 /* Override any gcc2 internal prototype to avoid an error. */
16570 /* We use char because int might match the return type of a gcc2
16571 builtin and then its argument prototype would still apply. */
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16588 if { (eval echo configure:16589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16590 eval "ac_cv_func_$ac_func=yes"
16592 echo "configure: failed program was:" >&5
16593 cat conftest.$ac_ext >&5
16595 eval "ac_cv_func_$ac_func=no"
16600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16601 echo "$ac_t""yes" 1>&6
16602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16603 cat >> confdefs.h <<EOF
16604 #define $ac_tr_func 1
16608 echo "$ac_t""no" 1>&6
16667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16668 echo "configure:16669: checking for $ac_func" >&5
16669 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16670 echo $ac_n "(cached) $ac_c" 1>&6
16672 cat > conftest.$ac_ext <<EOF
16673 #line 16674 "configure"
16674 #include "confdefs.h"
16675 /* System header to define __stub macros and hopefully few prototypes,
16676 which can conflict with char $ac_func(); below. */
16677 #include <assert.h>
16678 /* Override any gcc2 internal prototype to avoid an error. */
16679 /* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16686 /* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16697 if { (eval echo configure:16698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16699 eval "ac_cv_func_$ac_func=yes"
16701 echo "configure: failed program was:" >&5
16702 cat conftest.$ac_ext >&5
16704 eval "ac_cv_func_$ac_func=no"
16709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16710 echo "$ac_t""yes" 1>&6
16711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16712 cat >> confdefs.h <<EOF
16713 #define $ac_tr_func 1
16717 echo "$ac_t""no" 1>&6
16722 for ac_func in getopt tempnam
16724 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16725 echo "configure:16726: checking for $ac_func" >&5
16726 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16727 echo $ac_n "(cached) $ac_c" 1>&6
16729 cat > conftest.$ac_ext <<EOF
16730 #line 16731 "configure"
16731 #include "confdefs.h"
16732 /* System header to define __stub macros and hopefully few prototypes,
16733 which can conflict with char $ac_func(); below. */
16734 #include <assert.h>
16735 /* Override any gcc2 internal prototype to avoid an error. */
16736 /* We use char because int might match the return type of a gcc2
16737 builtin and then its argument prototype would still apply. */
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16754 if { (eval echo configure:16755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16756 eval "ac_cv_func_$ac_func=yes"
16758 echo "configure: failed program was:" >&5
16759 cat conftest.$ac_ext >&5
16761 eval "ac_cv_func_$ac_func=no"
16766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16767 echo "$ac_t""yes" 1>&6
16768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16769 cat >> confdefs.h <<EOF
16770 #define $ac_tr_func 1
16774 echo "$ac_t""no" 1>&6
16775 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
16781 if test "$ac_cv_func_getopt" != yes; then
16782 LIBSRCS="$LIBSRCS getopt.c"
16785 if test "$ac_cv_func_tempnam" != yes; then
16786 LIBSRCS="$LIBSRCS tempnam.c"
16789 # Check Configuration
16790 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
16791 echo "configure:16792: checking declaration of sys_errlist" >&5
16792 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
16793 echo $ac_n "(cached) $ac_c" 1>&6
16796 cat > conftest.$ac_ext <<EOF
16797 #line 16798 "configure"
16798 #include "confdefs.h"
16801 #include <sys/types.h>
16804 #include <stdlib.h>
16807 char *c = (char *) *sys_errlist
16810 if { (eval echo configure:16811: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16812 ol_cv_dcl_sys_errlist=yes
16813 ol_cv_have_sys_errlist=yes
16815 echo "configure: failed program was:" >&5
16816 cat conftest.$ac_ext >&5
16818 ol_cv_dcl_sys_errlist=no
16823 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
16825 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16826 if test $ol_cv_dcl_sys_errlist = no ; then
16827 cat >> confdefs.h <<\EOF
16828 #define DECL_SYS_ERRLIST 1
16832 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
16833 echo "configure:16834: checking existence of sys_errlist" >&5
16834 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
16835 echo $ac_n "(cached) $ac_c" 1>&6
16838 cat > conftest.$ac_ext <<EOF
16839 #line 16840 "configure"
16840 #include "confdefs.h"
16843 char *c = (char *) *sys_errlist
16846 if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16848 ol_cv_have_sys_errlist=yes
16850 echo "configure: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16853 ol_cv_have_sys_errlist=no
16858 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
16860 if test $ol_cv_have_sys_errlist = yes ; then
16861 cat >> confdefs.h <<\EOF
16862 #define HAVE_SYS_ERRLIST 1
16869 if test "$ol_enable_debug" != no ; then
16870 cat >> confdefs.h <<\EOF
16871 #define LDAP_DEBUG 1
16875 if test "$ol_enable_syslog" = yes ; then
16876 cat >> confdefs.h <<\EOF
16877 #define LDAP_SYSLOG 1
16881 if test "$ol_enable_cache" = no ; then
16882 cat >> confdefs.h <<\EOF
16883 #define LDAP_NOCACHE 1
16887 if test "$ol_link_kbind" != no ; then
16888 cat >> confdefs.h <<\EOF
16889 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
16893 if test "$ol_enable_proctitle" != no ; then
16894 cat >> confdefs.h <<\EOF
16895 #define LDAP_PROCTITLE 1
16899 if test "$ol_enable_referrals" != no ; then
16900 cat >> confdefs.h <<\EOF
16901 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
16905 if test "$ol_enable_local" != no; then
16906 cat >> confdefs.h <<\EOF
16907 #define LDAP_PF_LOCAL 1
16911 if test "$ol_link_ipv6" != no; then
16912 cat >> confdefs.h <<\EOF
16913 #define LDAP_PF_INET6 1
16917 if test "$ol_enable_cleartext" != no ; then
16918 cat >> confdefs.h <<\EOF
16919 #define SLAPD_CLEARTEXT 1
16923 if test "$ol_enable_crypt" != no ; then
16924 cat >> confdefs.h <<\EOF
16925 #define SLAPD_CRYPT 1
16929 if test "$ol_link_kpasswd" != no ; then
16930 cat >> confdefs.h <<\EOF
16931 #define SLAPD_KPASSWD 1
16935 if test "$ol_link_spasswd" != no ; then
16936 cat >> confdefs.h <<\EOF
16937 #define SLAPD_SPASSWD 1
16941 if test "$ol_enable_phonetic" != no ; then
16942 cat >> confdefs.h <<\EOF
16943 #define SLAPD_PHONETIC 1
16947 if test "$ol_enable_rlookups" != no ; then
16948 cat >> confdefs.h <<\EOF
16949 #define SLAPD_RLOOKUPS 1
16953 if test "$ol_enable_aci" != no ; then
16954 cat >> confdefs.h <<\EOF
16955 #define SLAPD_ACI_ENABLED 1
16960 if test "$ol_link_modules" != no ; then
16961 cat >> confdefs.h <<\EOF
16962 #define SLAPD_MODULES 1
16966 SLAPD_MODULES_LDFLAGS="-dlopen self"
16969 if test "$ol_link_dnssrv" != no ; then
16970 cat >> confdefs.h <<\EOF
16971 #define SLAPD_DNSSRV 1
16976 if test "$ol_with_dnssrv_module" != static ; then
16977 cat >> confdefs.h <<\EOF
16978 #define SLAPD_DNSSRV_DYNAMIC 1
16982 BUILD_DNSSRV_DYNAMIC=shared
16983 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
16987 if test "$ol_enable_ldap" != no ; then
16988 cat >> confdefs.h <<\EOF
16989 #define SLAPD_LDAP 1
16994 if test "$ol_with_ldap_module" != static ; then
16995 cat >> confdefs.h <<\EOF
16996 #define SLAPD_LDAP_DYNAMIC 1
17000 BUILD_LDAP_DYNAMIC=shared
17001 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
17005 if test "$ol_link_ldbm" != no ; then
17006 cat >> confdefs.h <<\EOF
17007 #define SLAPD_LDBM 1
17012 if test "$ol_with_ldbm_module" != static ; then
17013 cat >> confdefs.h <<\EOF
17014 #define SLAPD_LDBM_DYNAMIC 1
17018 BUILD_LDBM_DYNAMIC=shared
17019 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
17023 if test "$ol_enable_passwd" != no ; then
17024 cat >> confdefs.h <<\EOF
17025 #define SLAPD_PASSWD 1
17030 if test "$ol_with_passwd_module" != static ; then
17031 cat >> confdefs.h <<\EOF
17032 #define SLAPD_PASSWD_DYNAMIC 1
17036 BUILD_PASSWD_DYNAMIC=shared
17037 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
17041 if test "$ol_enable_shell" != no ; then
17042 cat >> confdefs.h <<\EOF
17043 #define SLAPD_SHELL 1
17048 if test "$ol_with_shell_module" != static ; then
17049 cat >> confdefs.h <<\EOF
17050 #define SLAPD_SHELL_DYNAMIC 1
17054 BUILD_SHELL_DYNAMIC=shared
17055 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
17059 if test "$ol_enable_sql" != no ; then
17060 cat >> confdefs.h <<\EOF
17061 #define SLAPD_SQL 1
17066 if test "$ol_with_sql_module" != static; then
17067 cat >> confdefs.h <<\EOF
17068 #define SLAPD_SQL_DYNAMIC 1
17072 BUILD_SQL_DYNAMIC=shared
17073 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
17077 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
17078 $BUILD_SLAPD = yes ; then
17083 if test "$LINK_BINS_DYNAMIC" = yes; then
17085 LT_LIB_LINKAGE=shared
17088 LT_LIB_LINKAGE=static
17091 if test "$ac_cv_mingw32" = yes ; then
17151 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17153 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17154 # Let make expand exec_prefix.
17155 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17157 # Any assignment to VPATH causes Sun make to only execute
17158 # the first set of double-colon rules, so remove it if not needed.
17159 # If there is a colon in the path, we need to keep it.
17160 if test "x$srcdir" = x.; then
17161 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17164 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17166 DEFS=-DHAVE_CONFIG_H
17168 # Without the "./", some shells look in PATH for config.status.
17169 : ${CONFIG_STATUS=./config.status}
17171 echo creating $CONFIG_STATUS
17172 rm -f $CONFIG_STATUS
17173 cat > $CONFIG_STATUS <<EOF
17175 # Generated automatically by configure.
17176 # Run this file to recreate the current configuration.
17177 # This directory was configured as follows,
17178 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17180 # $0 $ac_configure_args
17182 # Compiler output produced by configure, useful for debugging
17183 # configure, is in ./config.log if it exists.
17185 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17188 case "\$ac_option" in
17189 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17190 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17191 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17192 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17193 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
17195 -help | --help | --hel | --he | --h)
17196 echo "\$ac_cs_usage"; exit 0 ;;
17197 *) echo "\$ac_cs_usage"; exit 1 ;;
17201 ac_given_srcdir=$srcdir
17202 ac_given_INSTALL="$INSTALL"
17204 trap 'rm -fr `echo "\
17205 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17206 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17207 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17208 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17209 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17210 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17211 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17212 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17213 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17214 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17215 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17216 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17217 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17218 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17219 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17220 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17221 include/Makefile:build/top.mk:include/Makefile.in \
17222 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17223 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17224 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17225 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17226 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17227 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17228 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17229 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17230 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17231 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17232 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17233 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17234 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17235 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17236 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17237 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17238 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17239 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17240 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17241 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17242 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17243 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17244 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17245 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17247 cat >> $CONFIG_STATUS <<EOF
17249 # Protect against being on the right side of a sed subst in config.status.
17250 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17251 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17255 s%@CFLAGS@%$CFLAGS%g
17256 s%@CPPFLAGS@%$CPPFLAGS%g
17257 s%@CXXFLAGS@%$CXXFLAGS%g
17258 s%@FFLAGS@%$FFLAGS%g
17260 s%@LDFLAGS@%$LDFLAGS%g
17262 s%@exec_prefix@%$exec_prefix%g
17263 s%@prefix@%$prefix%g
17264 s%@program_transform_name@%$program_transform_name%g
17265 s%@bindir@%$bindir%g
17266 s%@sbindir@%$sbindir%g
17267 s%@libexecdir@%$libexecdir%g
17268 s%@datadir@%$datadir%g
17269 s%@sysconfdir@%$sysconfdir%g
17270 s%@sharedstatedir@%$sharedstatedir%g
17271 s%@localstatedir@%$localstatedir%g
17272 s%@libdir@%$libdir%g
17273 s%@includedir@%$includedir%g
17274 s%@oldincludedir@%$oldincludedir%g
17275 s%@infodir@%$infodir%g
17276 s%@mandir@%$mandir%g
17278 s%@host_alias@%$host_alias%g
17279 s%@host_cpu@%$host_cpu%g
17280 s%@host_vendor@%$host_vendor%g
17281 s%@host_os@%$host_os%g
17282 s%@target@%$target%g
17283 s%@target_alias@%$target_alias%g
17284 s%@target_cpu@%$target_cpu%g
17285 s%@target_vendor@%$target_vendor%g
17286 s%@target_os@%$target_os%g
17288 s%@build_alias@%$build_alias%g
17289 s%@build_cpu@%$build_cpu%g
17290 s%@build_vendor@%$build_vendor%g
17291 s%@build_os@%$build_os%g
17292 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
17293 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
17294 s%@INSTALL_DATA@%$INSTALL_DATA%g
17295 s%@PACKAGE@%$PACKAGE%g
17296 s%@VERSION@%$VERSION%g
17297 s%@ACLOCAL@%$ACLOCAL%g
17298 s%@AUTOCONF@%$AUTOCONF%g
17299 s%@AUTOMAKE@%$AUTOMAKE%g
17300 s%@AUTOHEADER@%$AUTOHEADER%g
17301 s%@MAKEINFO@%$MAKEINFO%g
17302 s%@install_sh@%$install_sh%g
17305 s%@AMTARFLAGS@%$AMTARFLAGS%g
17306 s%@SET_MAKE@%$SET_MAKE%g
17307 s%@top_builddir@%$top_builddir%g
17308 s%@ldap_subdir@%$ldap_subdir%g
17310 s%@RANLIB@%$RANLIB%g
17312 s%@DLLTOOL@%$DLLTOOL%g
17314 s%@OBJDUMP@%$OBJDUMP%g
17315 s%@LIBTOOL@%$LIBTOOL%g
17317 s%@SENDMAIL@%$SENDMAIL%g
17318 s%@EDITOR@%$EDITOR%g
17319 s%@FINGER@%$FINGER%g
17321 s%@EXEEXT@%$EXEEXT%g
17322 s%@OBJEXT@%$OBJEXT%g
17323 s%@OL_MKDEP@%$OL_MKDEP%g
17324 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
17325 s%@LIBOBJS@%$LIBOBJS%g
17326 s%@LIBSRCS@%$LIBSRCS%g
17328 s%@LIB_LINKAGE@%$LIB_LINKAGE%g
17329 s%@LT_LIB_LINKAGE@%$LT_LIB_LINKAGE%g
17330 s%@DYN_EXT@%$DYN_EXT%g
17331 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
17332 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
17333 s%@BUILD_LDAP@%$BUILD_LDAP%g
17334 s%@BUILD_LDBM@%$BUILD_LDBM%g
17335 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
17336 s%@BUILD_SHELL@%$BUILD_SHELL%g
17337 s%@BUILD_SQL@%$BUILD_SQL%g
17338 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
17339 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
17340 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
17341 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
17342 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
17343 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
17344 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
17345 s%@LDAP_LIBS@%$LDAP_LIBS%g
17346 s%@LDIF_LIBS@%$LDIF_LIBS%g
17347 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
17348 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
17349 s%@LDBM_LIBS@%$LDBM_LIBS%g
17350 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
17351 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
17352 s%@WRAP_LIBS@%$WRAP_LIBS%g
17353 s%@LINK_BINS_DYNAMIC@%$LINK_BINS_DYNAMIC%g
17354 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
17355 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
17356 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
17357 s%@KRB4_LIBS@%$KRB4_LIBS%g
17358 s%@KRB5_LIBS@%$KRB5_LIBS%g
17359 s%@READLINE_LIBS@%$READLINE_LIBS%g
17360 s%@SASL_LIBS@%$SASL_LIBS%g
17361 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
17362 s%@TLS_LIBS@%$TLS_LIBS%g
17363 s%@MODULES_LIBS@%$MODULES_LIBS%g
17364 s%@AUTH_LIBS@%$AUTH_LIBS%g
17365 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
17366 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
17367 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
17372 cat >> $CONFIG_STATUS <<\EOF
17374 # Split the substitutions into bite-sized pieces for seds with
17375 # small command number limits, like on Digital OSF/1 and HP-UX.
17376 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
17377 ac_file=1 # Number of current file.
17378 ac_beg=1 # First line for current file.
17379 ac_end=$ac_max_sed_cmds # Line after last line for current file.
17382 while $ac_more_lines; do
17383 if test $ac_beg -gt 1; then
17384 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
17386 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
17388 if test ! -s conftest.s$ac_file; then
17389 ac_more_lines=false
17390 rm -f conftest.s$ac_file
17392 if test -z "$ac_sed_cmds"; then
17393 ac_sed_cmds="sed -f conftest.s$ac_file"
17395 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
17397 ac_file=`expr $ac_file + 1`
17399 ac_end=`expr $ac_end + $ac_max_sed_cmds`
17402 if test -z "$ac_sed_cmds"; then
17407 cat >> $CONFIG_STATUS <<EOF
17409 CONFIG_FILES=\${CONFIG_FILES-"\
17410 Makefile:build/top.mk:Makefile.in:build/dir.mk \
17411 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
17412 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
17413 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
17414 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
17415 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
17416 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
17417 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
17418 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
17419 clients/fax500/Makefile:build/top.mk:clients/fax500/Makefile.in:build/rules.mk \
17420 clients/gopher/Makefile:build/top.mk:clients/gopher/Makefile.in:build/rules.mk \
17421 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
17422 clients/rcpt500/Makefile:build/top.mk:clients/rcpt500/Makefile.in:build/rules.mk \
17423 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
17424 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
17425 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
17426 include/Makefile:build/top.mk:include/Makefile.in \
17427 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
17428 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
17429 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
17430 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
17431 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
17432 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
17433 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
17434 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
17435 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
17436 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
17437 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
17438 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
17439 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
17440 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
17441 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
17442 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
17443 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
17444 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
17445 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
17446 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
17447 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
17448 contrib/Makefile:build/top.mk:contrib/Makefile.in:build/dir.mk \
17449 contrib/saucer/Makefile:build/top.mk:contrib/saucer/Makefile.in:build/rules.mk \
17452 cat >> $CONFIG_STATUS <<\EOF
17453 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
17454 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17456 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17457 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17458 *) ac_file_in="${ac_file}.in" ;;
17461 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
17463 # Remove last slash and all that follows it. Not all systems have dirname.
17464 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17465 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17466 # The file is in a subdirectory.
17467 test ! -d "$ac_dir" && mkdir "$ac_dir"
17468 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
17469 # A "../" for each directory in $ac_dir_suffix.
17470 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
17472 ac_dir_suffix= ac_dots=
17475 case "$ac_given_srcdir" in
17477 if test -z "$ac_dots"; then top_srcdir=.
17478 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
17479 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
17480 *) # Relative path.
17481 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
17482 top_srcdir="$ac_dots$ac_given_srcdir" ;;
17485 case "$ac_given_INSTALL" in
17486 [/$]*) INSTALL="$ac_given_INSTALL" ;;
17487 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
17490 echo creating "$ac_file"
17492 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
17494 *[Mm]akefile*) ac_comsub="1i\\
17495 # $configure_input" ;;
17499 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17501 s%@configure_input@%$configure_input%g
17502 s%@srcdir@%$srcdir%g
17503 s%@top_srcdir@%$top_srcdir%g
17504 s%@INSTALL@%$INSTALL%g
17505 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
17509 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17510 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17512 # ac_d sets the value in "#define NAME VALUE" lines.
17513 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17514 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
17517 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
17518 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17519 ac_uB='\([ ]\)%\1#\2define\3'
17522 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17523 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17524 ac_eB='$%\1#\2define\3'
17528 if test "${CONFIG_HEADERS+set}" != set; then
17530 cat >> $CONFIG_STATUS <<EOF
17531 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
17533 cat >> $CONFIG_STATUS <<\EOF
17535 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
17536 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17538 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
17539 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17540 *) ac_file_in="${ac_file}.in" ;;
17543 echo creating $ac_file
17545 rm -f conftest.frag conftest.in conftest.out
17546 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
17547 cat $ac_file_inputs > conftest.in
17551 # Transform confdefs.h into a sed script conftest.vals that substitutes
17552 # the proper values into config.h.in to produce config.h. And first:
17553 # Protect against being on the right side of a sed subst in config.status.
17554 # Protect against being in an unquoted here document in config.status.
17555 rm -f conftest.vals
17556 cat > conftest.hdr <<\EOF
17559 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
17563 sed -n -f conftest.hdr confdefs.h > conftest.vals
17566 # This sed command replaces #undef with comments. This is necessary, for
17567 # example, in the case of _POSIX_SOURCE, which is predefined and required
17568 # on some systems where configure will not decide to define it.
17569 cat >> conftest.vals <<\EOF
17570 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
17573 # Break up conftest.vals because some shells have a limit on
17574 # the size of here documents, and old seds have small limits too.
17576 rm -f conftest.tail
17579 ac_lines=`grep -c . conftest.vals`
17580 # grep -c gives empty output for an empty file on some AIX systems.
17581 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
17582 # Write a limited-size here document to conftest.frag.
17583 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
17584 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
17586 sed -f conftest.frag conftest.in > conftest.out
17588 mv conftest.out conftest.in
17589 ' >> $CONFIG_STATUS
17590 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
17591 rm -f conftest.vals
17592 mv conftest.tail conftest.vals
17594 rm -f conftest.vals
17596 cat >> $CONFIG_STATUS <<\EOF
17597 rm -f conftest.frag conftest.h
17598 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
17599 cat conftest.in >> conftest.h
17601 if cmp -s $ac_file conftest.h 2>/dev/null; then
17602 echo "$ac_file is unchanged"
17605 # Remove last slash and all that follows it. Not all systems have dirname.
17606 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
17607 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
17608 # The file is in a subdirectory.
17609 test ! -d "$ac_dir" && mkdir "$ac_dir"
17612 mv conftest.h $ac_file
17617 cat >> $CONFIG_STATUS <<EOF
17620 cat >> $CONFIG_STATUS <<\EOF
17623 echo Please \"make depend\" to build dependencies
17627 chmod +x $CONFIG_STATUS
17628 rm -fr confdefs* $ac_clean_files
17629 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1