3 # from OpenLDAP: pkg/ldap/configure.in,v 1.531 2004/04/14 15:48:26 ando Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
86 SLAPD Backend Options:"
88 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
90 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
92 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
94 --enable-ldap enable ldap backend no|yes|mod [no]"
96 --enable-ldbm enable ldbm backend no|yes|mod [no]"
98 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
100 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
102 --enable-meta enable metadirectory backend no|yes|mod [no]"
104 --enable-monitor enable monitor backend no|yes|mod [yes]"
106 --enable-null enable null backend no|yes|mod [no]"
108 --enable-passwd enable passwd backend no|yes|mod [no]"
110 --enable-perl enable perl backend no|yes|mod [no]"
112 --enable-relay enable relay backend no|yes|mod [yes]"
114 --enable-shell enable shell backend no|yes|mod [no]"
116 --enable-sql enable sql backend no|yes|mod [no]"
119 SLAPD Overlay Options:"
121 --enable-chain LDAP Chain Response no|yes|mod [no]"
123 --enable-denyop Deny Operation overlay no|yes|mod [no]"
125 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
127 --enable-lastmod Last Modification overlay no|yes|mod [no]"
129 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
131 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
133 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
136 SLURPD (Replication Daemon) Options:"
138 --enable-slurpd enable building slurpd [auto]"
141 Library Generation & Linking Options"
143 --enable-static[=PKGS] build static libraries [default=yes]"
145 --enable-shared[=PKGS] build shared libraries [default=yes]"
147 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
149 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
151 # Find the correct PATH separator. Usually this is `:', but
152 # DJGPP uses `;' like DOS.
153 if test "X${PATH_SEPARATOR+set}" != Xset; then
154 UNAME=${UNAME-`uname 2>/dev/null`}
156 *-DOS) lt_cv_sys_path_separator=';' ;;
157 *) lt_cv_sys_path_separator=':' ;;
159 PATH_SEPARATOR=$lt_cv_sys_path_separator
163 # Check that we are running under the correct shell.
164 SHELL=${CONFIG_SHELL-/bin/sh}
168 # Remove one level of quotation (which was required for Make).
169 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
174 if test "X$1" = X--no-reexec; then
175 # Discard the --no-reexec flag, and continue.
177 elif test "X$1" = X--fallback-echo; then
178 # Avoid inline document here, it may be left over
180 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
181 # Yippee, $echo works!
184 # Restart under the correct shell.
185 exec $SHELL "$0" --no-reexec ${1+"$@"}
188 if test "X$1" = X--fallback-echo; then
189 # used as fallback echo
197 # The HP-UX ksh and POSIX shell print the target directory to stdout
199 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
201 if test -z "$ECHO"; then
202 if test "X${echo_test_string+set}" != Xset; then
203 # find a string as large as possible, as long as the shell can cope with it
204 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
205 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
206 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
207 echo_test_string="`eval $cmd`" &&
208 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
215 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
216 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
217 test "X$echo_testing_string" = "X$echo_test_string"; then
220 # The Solaris, AIX, and Digital Unix default echo programs unquote
221 # backslashes. This makes it impossible to quote backslashes using
222 # echo "$something" | sed 's/\\/\\\\/g'
224 # So, first we look for a working echo in the user's PATH.
226 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
227 for dir in $PATH /usr/ucb; do
228 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
229 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
230 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
231 test "X$echo_testing_string" = "X$echo_test_string"; then
238 if test "X$echo" = Xecho; then
239 # We didn't find a better echo, so look for alternatives.
240 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
241 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
242 test "X$echo_testing_string" = "X$echo_test_string"; then
243 # This shell has a builtin print -r that does the trick.
245 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
246 test "X$CONFIG_SHELL" != X/bin/ksh; then
247 # If we have ksh, try running configure again with it.
248 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
249 export ORIGINAL_CONFIG_SHELL
250 CONFIG_SHELL=/bin/ksh
252 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
256 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
257 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
258 test "X$echo_testing_string" = "X$echo_test_string"; then
261 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
262 test "X$echo_testing_string" = 'X\t' &&
263 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
264 test "X$echo_testing_string" = "X$echo_test_string"; then
265 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
267 SHELL="$CONFIG_SHELL"
269 echo="$CONFIG_SHELL $0 --fallback-echo"
270 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
271 test "X$echo_testing_string" = 'X\t' &&
272 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
273 test "X$echo_testing_string" = "X$echo_test_string"; then
274 echo="$CONFIG_SHELL $0 --fallback-echo"
276 # maybe with a smaller string...
279 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
280 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
287 if test "$prev" != 'sed 50q "$0"'; then
288 echo_test_string=`eval $prev`
289 export echo_test_string
290 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
292 # Oops. We lost completely, so just stick with echo.
301 # Copy echo and quote the copy suitably for passing to libtool from
302 # the Makefile, instead of quoting the original, which is used later.
304 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
305 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
310 --disable-libtool-lock avoid locking (might break parallel builds)"
312 --with-pic try to use only PIC/non-PIC objects [default=use both]"
315 See INSTALL file for further details."
317 # Initialize some variables set by options.
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
321 cache_file=./config.cache
330 program_transform_name=s,x,x,
338 bindir='${exec_prefix}/bin'
339 sbindir='${exec_prefix}/sbin'
340 libexecdir='${exec_prefix}/libexec'
341 datadir='${prefix}/share'
342 sysconfdir='${prefix}/etc'
343 sharedstatedir='${prefix}/com'
344 localstatedir='${prefix}/var'
345 libdir='${exec_prefix}/lib'
346 includedir='${prefix}/include'
347 oldincludedir='/usr/include'
348 infodir='${prefix}/info'
349 mandir='${prefix}/man'
351 # Initialize some other variables.
354 SHELL=${CONFIG_SHELL-/bin/sh}
355 # Maximum number of lines to put in a shell here document.
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
370 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
374 # Accept the important Cygnus configure options, so we can diagnose typos.
378 -bindir | --bindir | --bindi | --bind | --bin | --bi)
380 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
381 bindir="$ac_optarg" ;;
383 -build | --build | --buil | --bui | --bu)
385 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
386 build="$ac_optarg" ;;
388 -cache-file | --cache-file | --cache-fil | --cache-fi \
389 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
390 ac_prev=cache_file ;;
391 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
392 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
393 cache_file="$ac_optarg" ;;
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
399 datadir="$ac_optarg" ;;
401 -disable-* | --disable-*)
402 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
407 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
408 eval "enable_${ac_feature}=no" ;;
410 -enable-* | --enable-*)
411 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
414 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
416 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
421 eval "enable_${ac_feature}='$ac_optarg'" ;;
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix="$ac_optarg" ;;
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
436 -help | --help | --hel | --he)
437 # Omit some internal or obsolete options to make the list less imposing.
438 # This message is too long to be a string in the A/UX 3.1 sh.
440 Usage: configure [options] [host]
441 Options: [defaults in brackets after descriptions]
443 --cache-file=FILE cache test results in FILE
444 --help print this message
445 --no-create do not create output files
446 --quiet, --silent do not print \`checking...' messages
447 --version print the version of autoconf that created configure
448 Directory and file names:
449 --prefix=PREFIX install architecture-independent files in PREFIX
451 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
453 --bindir=DIR user executables in DIR [EPREFIX/bin]
454 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
455 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
456 --datadir=DIR read-only architecture-independent data in DIR
458 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
459 --sharedstatedir=DIR modifiable architecture-independent data in DIR
461 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
462 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
463 --includedir=DIR C header files in DIR [PREFIX/include]
464 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
465 --infodir=DIR info documentation in DIR [PREFIX/info]
466 --mandir=DIR man documentation in DIR [PREFIX/man]
467 --srcdir=DIR find the sources in DIR [configure dir or ..]
468 --program-prefix=PREFIX prepend PREFIX to installed program names
469 --program-suffix=SUFFIX append SUFFIX to installed program names
470 --program-transform-name=PROGRAM
471 run sed PROGRAM on installed program names
475 --build=BUILD configure for building on BUILD [BUILD=HOST]
476 --host=HOST configure for HOST [guessed]
477 --target=TARGET configure for TARGET [TARGET=HOST]
478 Features and packages:
479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
483 --x-includes=DIR X include files are in DIR
484 --x-libraries=DIR X library files are in DIR
486 if test -n "$ac_help"; then
487 echo "--enable and --with options recognized:$ac_help"
491 -host | --host | --hos | --ho)
493 -host=* | --host=* | --hos=* | --ho=*)
496 -includedir | --includedir | --includedi | --included | --include \
497 | --includ | --inclu | --incl | --inc)
498 ac_prev=includedir ;;
499 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
500 | --includ=* | --inclu=* | --incl=* | --inc=*)
501 includedir="$ac_optarg" ;;
503 -infodir | --infodir | --infodi | --infod | --info | --inf)
505 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
506 infodir="$ac_optarg" ;;
508 -libdir | --libdir | --libdi | --libd)
510 -libdir=* | --libdir=* | --libdi=* | --libd=*)
511 libdir="$ac_optarg" ;;
513 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
514 | --libexe | --libex | --libe)
515 ac_prev=libexecdir ;;
516 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
517 | --libexe=* | --libex=* | --libe=*)
518 libexecdir="$ac_optarg" ;;
520 -localstatedir | --localstatedir | --localstatedi | --localstated \
521 | --localstate | --localstat | --localsta | --localst \
522 | --locals | --local | --loca | --loc | --lo)
523 ac_prev=localstatedir ;;
524 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
525 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
526 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
527 localstatedir="$ac_optarg" ;;
529 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
531 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
532 mandir="$ac_optarg" ;;
535 # Obsolete; use --without-fp.
538 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
542 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
543 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
546 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
547 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
548 | --oldin | --oldi | --old | --ol | --o)
549 ac_prev=oldincludedir ;;
550 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
551 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
552 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
553 oldincludedir="$ac_optarg" ;;
555 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
557 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
558 prefix="$ac_optarg" ;;
560 -program-prefix | --program-prefix | --program-prefi | --program-pref \
561 | --program-pre | --program-pr | --program-p)
562 ac_prev=program_prefix ;;
563 -program-prefix=* | --program-prefix=* | --program-prefi=* \
564 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
565 program_prefix="$ac_optarg" ;;
567 -program-suffix | --program-suffix | --program-suffi | --program-suff \
568 | --program-suf | --program-su | --program-s)
569 ac_prev=program_suffix ;;
570 -program-suffix=* | --program-suffix=* | --program-suffi=* \
571 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
572 program_suffix="$ac_optarg" ;;
574 -program-transform-name | --program-transform-name \
575 | --program-transform-nam | --program-transform-na \
576 | --program-transform-n | --program-transform- \
577 | --program-transform | --program-transfor \
578 | --program-transfo | --program-transf \
579 | --program-trans | --program-tran \
580 | --progr-tra | --program-tr | --program-t)
581 ac_prev=program_transform_name ;;
582 -program-transform-name=* | --program-transform-name=* \
583 | --program-transform-nam=* | --program-transform-na=* \
584 | --program-transform-n=* | --program-transform-=* \
585 | --program-transform=* | --program-transfor=* \
586 | --program-transfo=* | --program-transf=* \
587 | --program-trans=* | --program-tran=* \
588 | --progr-tra=* | --program-tr=* | --program-t=*)
589 program_transform_name="$ac_optarg" ;;
591 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
592 | -silent | --silent | --silen | --sile | --sil)
595 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
597 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
599 sbindir="$ac_optarg" ;;
601 -sharedstatedir | --sharedstatedir | --sharedstatedi \
602 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
603 | --sharedst | --shareds | --shared | --share | --shar \
605 ac_prev=sharedstatedir ;;
606 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
607 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
608 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
610 sharedstatedir="$ac_optarg" ;;
612 -site | --site | --sit)
614 -site=* | --site=* | --sit=*)
617 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
619 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
620 srcdir="$ac_optarg" ;;
622 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
623 | --syscon | --sysco | --sysc | --sys | --sy)
624 ac_prev=sysconfdir ;;
625 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
626 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
627 sysconfdir="$ac_optarg" ;;
629 -target | --target | --targe | --targ | --tar | --ta | --t)
631 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
632 target="$ac_optarg" ;;
634 -v | -verbose | --verbose | --verbos | --verbo | --verb)
637 -version | --version | --versio | --versi | --vers)
638 echo "configure generated by autoconf version 2.13.1"
642 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
643 # Reject names that are not valid shell variable names.
644 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
645 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
647 ac_package=`echo $ac_package| sed 's/-/_/g'`
652 eval "with_${ac_package}='$ac_optarg'" ;;
654 -without-* | --without-*)
655 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
656 # Reject names that are not valid shell variable names.
657 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
658 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
660 ac_package=`echo $ac_package| sed 's/-/_/g'`
661 eval "with_${ac_package}=no" ;;
664 # Obsolete; use --with-x.
667 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
668 | --x-incl | --x-inc | --x-in | --x-i)
669 ac_prev=x_includes ;;
670 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
671 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
672 x_includes="$ac_optarg" ;;
674 -x-libraries | --x-libraries | --x-librarie | --x-librari \
675 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
676 ac_prev=x_libraries ;;
677 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
678 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
679 x_libraries="$ac_optarg" ;;
681 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
685 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
686 echo "configure: warning: $ac_option: invalid host type" 1>&2
688 if test "x$nonopt" != xNONE; then
689 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
697 if test -n "$ac_prev"; then
698 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
701 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
703 # File descriptor usage:
706 # 2 errors and warnings
707 # 3 some systems may open it to /dev/tty
708 # 4 used on the Kubota Titan
709 # 6 checking for... messages and results
710 # 5 compiler messages saved in config.log
711 if test "$silent" = yes; then
719 This file contains any messages produced by compilers while
720 running configure, to aid debugging if configure makes a mistake.
723 # Strip out --no-create and --no-recursion so they do not pile up.
724 # Also quote any args containing shell metacharacters.
729 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
730 | --no-cr | --no-c) ;;
731 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
732 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
733 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
734 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
735 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
740 # Only set these to C if already set. These must not be set unconditionally
741 # because not all systems understand e.g. LANG=C (notably SCO).
742 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
743 # Non-C LC_CTYPE values break the ctype check.
744 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
745 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
746 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
747 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
749 # confdefs.h avoids OS command line length limits that DEFS can exceed.
750 rm -rf conftest* confdefs.h
751 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
754 # A filename unique to this package, relative to the directory that
755 # configure is in, which we can look for to find out if srcdir is correct.
756 ac_unique_file=build/version.sh
758 # Find the source files, if location was not specified.
759 if test -z "$srcdir"; then
760 ac_srcdir_defaulted=yes
761 # Try the directory containing this script, then its parent.
763 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
764 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
766 if test ! -r $srcdir/$ac_unique_file; then
770 ac_srcdir_defaulted=no
772 if test ! -r $srcdir/$ac_unique_file; then
773 if test "$ac_srcdir_defaulted" = yes; then
774 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
776 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
779 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
781 # Prefer explicitly selected file to automatically selected ones.
782 if test -z "$CONFIG_SITE"; then
783 if test "x$prefix" != xNONE; then
784 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
786 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
789 for ac_site_file in $CONFIG_SITE; do
790 if test -r "$ac_site_file"; then
791 echo "loading site script $ac_site_file"
798 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
799 ac_cpp='$CPP $CPPFLAGS'
800 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
801 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
802 cross_compiling=$ac_cv_prog_cc_cross
806 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
807 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
808 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
815 ac_n= ac_c='\c' ac_t=
819 # set unset (borrowed from autoconf 2.49c)
820 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
826 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
829 for ac_dir in build $srcdir/build; do
830 if test -f $ac_dir/install-sh; then
832 ac_install_sh="$ac_aux_dir/install-sh -c"
834 elif test -f $ac_dir/install.sh; then
836 ac_install_sh="$ac_aux_dir/install.sh -c"
838 elif test -f $ac_dir/shtool; then
840 ac_install_sh="$ac_aux_dir/shtool install -c"
844 if test -z "$ac_aux_dir"; then
845 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
847 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
848 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
849 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
851 eval `$ac_aux_dir/version.sh`
852 if test -z "$OL_STRING"; then
853 { echo "configure: error: could not determine version" 1>&2; exit 1; }
856 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
857 ac_cv_shtool="$ac_aux_dir/shtool"
859 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
862 SHTOOL="$ac_cv_shtool"
864 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
865 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
868 if test -d $ac_aux_dir/CVS; then
869 OPENLDAP_CVS="(from CVS sources) "
872 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
875 echo $ac_n "checking host system type""... $ac_c" 1>&6
876 echo "configure:877: checking host system type" >&5
877 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
879 # Make sure we can run config.sub.
880 if $ac_config_sub sun4 >/dev/null 2>&1; then :
881 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
884 ac_cv_host_alias=$host
885 case "$ac_cv_host_alias" in
889 if ac_cv_host_alias=`$ac_config_guess`; then :
890 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
892 *) ac_cv_host_alias=$nonopt ;;
896 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
897 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
898 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
899 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
901 echo $ac_n "(cached) $ac_c" 1>&6
904 echo "$ac_t""$ac_cv_host" 1>&6
907 host_alias=$ac_cv_host_alias
908 host_cpu=$ac_cv_host_cpu
909 host_vendor=$ac_cv_host_vendor
910 host_os=$ac_cv_host_os
916 echo $ac_n "checking target system type""... $ac_c" 1>&6
917 echo "configure:918: checking target system type" >&5
918 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
920 # Make sure we can run config.sub.
921 if $ac_config_sub sun4 >/dev/null 2>&1; then :
922 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
925 ac_cv_target_alias=$target
926 case "$ac_cv_target_alias" in
930 ac_cv_target_alias=$host_alias ;;
932 *) ac_cv_target_alias=$nonopt ;;
936 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
937 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
938 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
939 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
941 echo $ac_n "(cached) $ac_c" 1>&6
944 echo "$ac_t""$ac_cv_target" 1>&6
947 target_alias=$ac_cv_target_alias
948 target_cpu=$ac_cv_target_cpu
949 target_vendor=$ac_cv_target_vendor
950 target_os=$ac_cv_target_os
956 echo $ac_n "checking build system type""... $ac_c" 1>&6
957 echo "configure:958: checking build system type" >&5
958 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
960 # Make sure we can run config.sub.
961 if $ac_config_sub sun4 >/dev/null 2>&1; then :
962 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
965 ac_cv_build_alias=$build
966 case "$ac_cv_build_alias" in
970 ac_cv_build_alias=$host_alias ;;
972 *) ac_cv_build_alias=$nonopt ;;
976 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
977 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
981 echo $ac_n "(cached) $ac_c" 1>&6
984 echo "$ac_t""$ac_cv_build" 1>&6
987 build_alias=$ac_cv_build_alias
988 build_cpu=$ac_cv_build_cpu
989 build_vendor=$ac_cv_build_vendor
990 build_os=$ac_cv_build_os
996 # Do some error checking and defaulting for the host and target type.
998 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1001 # 1. You are not allowed to specify --host, --target, and nonopt at the
1003 # 2. Host defaults to nonopt.
1004 # 3. If nonopt is not specified, then host defaults to the current host,
1005 # as determined by config.guess.
1006 # 4. Target and build default to nonopt.
1007 # 5. If nonopt is not specified, then target and build default to host.
1009 # The aliases save the names the user supplied, while $host etc.
1010 # will get canonicalized.
1011 case $host---$target---$nonopt in
1012 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1013 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1016 test "$host_alias" != "$target_alias" &&
1017 test "$program_prefix$program_suffix$program_transform_name" = \
1019 program_prefix=${target_alias}-
1022 # Find a good install program. We prefer a C program (faster),
1023 # so one script is as good as another. But avoid the broken or
1024 # incompatible versions:
1025 # SysV /etc/install, /usr/sbin/install
1026 # SunOS /usr/etc/install
1027 # IRIX /sbin/install
1029 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1030 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1031 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1032 # ./install, which can be erroneously created by make from ./install.sh.
1033 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1034 echo "configure:1035: checking for a BSD compatible install" >&5
1035 if test -z "$INSTALL"; then
1036 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1040 for ac_dir in $PATH; do
1041 # Account for people who put trailing slashes in PATH elements.
1043 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1045 # OSF1 and SCO ODT 3.0 have their own names for install.
1046 # Don't use installbsd from OSF since it installs stuff as root
1048 for ac_prog in ginstall scoinst install; do
1049 if test -f $ac_dir/$ac_prog; then
1050 if test $ac_prog = install &&
1051 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1052 # AIX install. It has an incompatible calling convention.
1054 elif test $ac_prog = install &&
1055 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1056 # program-specific install script used by HP pwplus--don't use.
1059 ac_cv_path_install="$ac_dir/$ac_prog -c"
1070 if test "${ac_cv_path_install+set}" = set; then
1071 INSTALL="$ac_cv_path_install"
1073 # As a last resort, use the slow shell script. We don't cache a
1074 # path for INSTALL within a source directory, because that will
1075 # break other packages using the cache if that directory is
1076 # removed, or if the path is relative.
1077 INSTALL="$ac_install_sh"
1080 echo "$ac_t""$INSTALL" 1>&6
1082 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1083 # It thinks the first close brace ends the variable substitution.
1084 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1086 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1088 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1090 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1091 echo "configure:1092: checking whether build environment is sane" >&5
1094 echo timestamp > conftestfile
1095 # Do `set' in a subshell so we don't clobber the current shell's
1096 # arguments. Must try -L first in case configure is actually a
1097 # symlink; some systems play weird games with the mod time of symlinks
1098 # (eg FreeBSD returns the mod time of the symlink's containing
1101 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1102 if test "$*" = "X"; then
1104 set X `ls -t $srcdir/configure conftestfile`
1106 if test "$*" != "X $srcdir/configure conftestfile" \
1107 && test "$*" != "X conftestfile $srcdir/configure"; then
1109 # If neither matched, then we have a broken ls. This can happen
1110 # if, for instance, CONFIG_SHELL is bash and it inherits a
1111 # broken ls alias from the environment. This has actually
1112 # happened. Such a system could not be considered "sane".
1113 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1114 alias in your environment" 1>&2; exit 1; }
1117 test "$2" = conftestfile
1123 { echo "configure: error: newly created file is older than distributed files!
1124 Check your system clock" 1>&2; exit 1; }
1127 echo "$ac_t""yes" 1>&6
1128 if test "$program_transform_name" = s,x,x,; then
1129 program_transform_name=
1131 # Double any \ or $. echo might interpret backslashes.
1132 cat <<\EOF_SED > conftestsed
1133 s,\\,\\\\,g; s,\$,$$,g
1135 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1138 test "$program_prefix" != NONE &&
1139 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1140 # Use a double $ so make ignores it.
1141 test "$program_suffix" != NONE &&
1142 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1144 # sed with no file args requires a program.
1145 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1147 for ac_prog in mawk gawk nawk awk
1149 # Extract the first word of "$ac_prog", so it can be a program name with args.
1150 set dummy $ac_prog; ac_word=$2
1151 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1152 echo "configure:1153: checking for $ac_word" >&5
1153 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 if test -n "$AWK"; then
1157 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1159 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1161 for ac_dir in $ac_dummy; do
1162 test -z "$ac_dir" && ac_dir=.
1163 if test -f $ac_dir/$ac_word; then
1164 ac_cv_prog_AWK="$ac_prog"
1171 AWK="$ac_cv_prog_AWK"
1172 if test -n "$AWK"; then
1173 echo "$ac_t""$AWK" 1>&6
1175 echo "$ac_t""no" 1>&6
1178 test -n "$AWK" && break
1181 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1182 echo "configure:1183: checking whether ${MAKE-make} sets \${MAKE}" >&5
1183 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1184 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1187 cat > conftestmake <<\EOF
1189 @echo 'ac_maketemp="${MAKE}"'
1191 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1192 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1193 if test -n "$ac_maketemp"; then
1194 eval ac_cv_prog_make_${ac_make}_set=yes
1196 eval ac_cv_prog_make_${ac_make}_set=no
1200 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1201 echo "$ac_t""yes" 1>&6
1204 echo "$ac_t""no" 1>&6
1205 SET_MAKE="MAKE=${MAKE-make}"
1214 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1215 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1220 missing_dir=`cd $ac_aux_dir && pwd`
1221 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1222 echo "configure:1223: checking for working aclocal" >&5
1223 # Run test in a subshell; some versions of sh will print an error if
1224 # an executable is not found, even if stderr is redirected.
1225 # Redirect stdin to placate older versions of autoconf. Sigh.
1226 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1228 echo "$ac_t""found" 1>&6
1230 ACLOCAL="$missing_dir/missing aclocal"
1231 echo "$ac_t""missing" 1>&6
1234 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1235 echo "configure:1236: checking for working autoconf" >&5
1236 # Run test in a subshell; some versions of sh will print an error if
1237 # an executable is not found, even if stderr is redirected.
1238 # Redirect stdin to placate older versions of autoconf. Sigh.
1239 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1241 echo "$ac_t""found" 1>&6
1243 AUTOCONF="$missing_dir/missing autoconf"
1244 echo "$ac_t""missing" 1>&6
1247 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1248 echo "configure:1249: checking for working automake" >&5
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (automake --version) < /dev/null > /dev/null 2>&1; then
1254 echo "$ac_t""found" 1>&6
1256 AUTOMAKE="$missing_dir/missing automake"
1257 echo "$ac_t""missing" 1>&6
1260 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working autoheader" >&5
1262 # Run test in a subshell; some versions of sh will print an error if
1263 # an executable is not found, even if stderr is redirected.
1264 # Redirect stdin to placate older versions of autoconf. Sigh.
1265 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1266 AUTOHEADER=autoheader
1267 echo "$ac_t""found" 1>&6
1269 AUTOHEADER="$missing_dir/missing autoheader"
1270 echo "$ac_t""missing" 1>&6
1273 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working makeinfo" >&5
1275 # Run test in a subshell; some versions of sh will print an error if
1276 # an executable is not found, even if stderr is redirected.
1277 # Redirect stdin to placate older versions of autoconf. Sigh.
1278 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1280 echo "$ac_t""found" 1>&6
1282 MAKEINFO="$missing_dir/missing makeinfo"
1283 echo "$ac_t""missing" 1>&6
1286 install_sh="$missing_dir/install-sh"
1287 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1289 for ac_prog in gnutar gtar tar
1291 # Extract the first word of "$ac_prog", so it can be a program name with args.
1292 set dummy $ac_prog; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1298 if test -n "$AMTAR"; then
1299 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_AMTAR="$ac_prog"
1313 AMTAR="$ac_cv_prog_AMTAR"
1314 if test -n "$AMTAR"; then
1315 echo "$ac_t""$AMTAR" 1>&6
1317 echo "$ac_t""no" 1>&6
1320 test -n "$AMTAR" && break
1325 if test -n "$AMTAR"; then
1326 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1331 cat >> confdefs.h <<EOF
1332 #define OPENLDAP_PACKAGE "$PACKAGE"
1335 cat >> confdefs.h <<EOF
1336 #define OPENLDAP_VERSION "$VERSION"
1340 cat >> confdefs.h <<EOF
1341 #define LDAP_VENDOR_VERSION $OL_API_INC
1344 cat >> confdefs.h <<EOF
1345 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1348 cat >> confdefs.h <<EOF
1349 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1352 cat >> confdefs.h <<EOF
1353 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1357 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1359 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1361 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1365 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1366 echo "configure:1367: checking configure arguments" >&5
1371 ldap_subdir="/openldap"
1373 # Check whether --with-subdir or --without-subdir was given.
1374 if test "${with_subdir+set}" = set; then
1375 withval="$with_subdir"
1382 ldap_subdir="$withval"
1385 ldap_subdir="/$withval"
1392 # OpenLDAP --enable-debug
1393 # Check whether --enable-debug or --disable-debug was given.
1394 if test "${enable_debug+set}" = set; then
1395 enableval="$enable_debug"
1398 for ol_val in auto yes no ; do
1399 if test "$enableval" = "$ol_val" ; then
1403 if test "$ol_arg" = "invalid" ; then
1404 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1406 ol_enable_debug="$ol_arg"
1409 ol_enable_debug="yes"
1411 # end --enable-debug
1412 # OpenLDAP --enable-dynamic
1413 # Check whether --enable-dynamic or --disable-dynamic was given.
1414 if test "${enable_dynamic+set}" = set; then
1415 enableval="$enable_dynamic"
1418 for ol_val in auto yes no ; do
1419 if test "$enableval" = "$ol_val" ; then
1423 if test "$ol_arg" = "invalid" ; then
1424 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1426 ol_enable_dynamic="$ol_arg"
1429 ol_enable_dynamic="no"
1431 # end --enable-dynamic
1432 # OpenLDAP --enable-syslog
1433 # Check whether --enable-syslog or --disable-syslog was given.
1434 if test "${enable_syslog+set}" = set; then
1435 enableval="$enable_syslog"
1438 for ol_val in auto yes no ; do
1439 if test "$enableval" = "$ol_val" ; then
1443 if test "$ol_arg" = "invalid" ; then
1444 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1446 ol_enable_syslog="$ol_arg"
1449 ol_enable_syslog="auto"
1451 # end --enable-syslog
1452 # OpenLDAP --enable-proctitle
1453 # Check whether --enable-proctitle or --disable-proctitle was given.
1454 if test "${enable_proctitle+set}" = set; then
1455 enableval="$enable_proctitle"
1458 for ol_val in auto yes no ; do
1459 if test "$enableval" = "$ol_val" ; then
1463 if test "$ol_arg" = "invalid" ; then
1464 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1466 ol_enable_proctitle="$ol_arg"
1469 ol_enable_proctitle="yes"
1471 # end --enable-proctitle
1472 ol_enable_referrals=${ol_enable_referrals-no}
1473 ol_enable_kbind=${ol_enable_kbind-no}
1474 # OpenLDAP --enable-ipv6
1475 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1476 if test "${enable_ipv6+set}" = set; then
1477 enableval="$enable_ipv6"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1488 ol_enable_ipv6="$ol_arg"
1491 ol_enable_ipv6="auto"
1494 # OpenLDAP --enable-local
1495 # Check whether --enable-local or --disable-local was given.
1496 if test "${enable_local+set}" = set; then
1497 enableval="$enable_local"
1500 for ol_val in auto yes no ; do
1501 if test "$enableval" = "$ol_val" ; then
1505 if test "$ol_arg" = "invalid" ; then
1506 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1508 ol_enable_local="$ol_arg"
1511 ol_enable_local="auto"
1513 # end --enable-local
1516 # OpenLDAP --with-cyrus_sasl
1517 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1518 if test "${with_cyrus_sasl+set}" = set; then
1519 withval="$with_cyrus_sasl"
1522 for ol_val in auto yes no ; do
1523 if test "$withval" = "$ol_val" ; then
1527 if test "$ol_arg" = "invalid" ; then
1528 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1530 ol_with_cyrus_sasl="$ol_arg"
1533 ol_with_cyrus_sasl="auto"
1535 # end --with-cyrus_sasl
1537 # OpenLDAP --with-fetch
1538 # Check whether --with-fetch or --without-fetch was given.
1539 if test "${with_fetch+set}" = set; then
1540 withval="$with_fetch"
1543 for ol_val in auto yes no ; do
1544 if test "$withval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1551 ol_with_fetch="$ol_arg"
1554 ol_with_fetch="auto"
1558 ol_with_kerberos=${ol_with_kerberos-auto}
1559 # OpenLDAP --with-threads
1560 # Check whether --with-threads or --without-threads was given.
1561 if test "${with_threads+set}" = set; then
1562 withval="$with_threads"
1565 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1566 if test "$withval" = "$ol_val" ; then
1570 if test "$ol_arg" = "invalid" ; then
1571 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1573 ol_with_threads="$ol_arg"
1576 ol_with_threads="auto"
1578 # end --with-threads
1580 # OpenLDAP --with-tls
1581 # Check whether --with-tls or --without-tls was given.
1582 if test "${with_tls+set}" = set; then
1586 for ol_val in auto ssleay openssl yes no ; do
1587 if test "$withval" = "$ol_val" ; then
1591 if test "$ol_arg" = "invalid" ; then
1592 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1594 ol_with_tls="$ol_arg"
1601 # OpenLDAP --with-yielding_select
1602 # Check whether --with-yielding_select or --without-yielding_select was given.
1603 if test "${with_yielding_select+set}" = set; then
1604 withval="$with_yielding_select"
1607 for ol_val in auto yes no manual ; do
1608 if test "$withval" = "$ol_val" ; then
1612 if test "$ol_arg" = "invalid" ; then
1613 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1615 ol_with_yielding_select="$ol_arg"
1618 ol_with_yielding_select="auto"
1620 # end --with-yielding_select
1624 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1625 if test "${with_xxslapdoptions+set}" = set; then
1626 withval="$with_xxslapdoptions"
1630 # OpenLDAP --enable-slapd
1631 # Check whether --enable-slapd or --disable-slapd was given.
1632 if test "${enable_slapd+set}" = set; then
1633 enableval="$enable_slapd"
1636 for ol_val in auto yes no ; do
1637 if test "$enableval" = "$ol_val" ; then
1641 if test "$ol_arg" = "invalid" ; then
1642 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1644 ol_enable_slapd="$ol_arg"
1647 ol_enable_slapd="yes"
1649 # end --enable-slapd
1650 # OpenLDAP --enable-aci
1651 # Check whether --enable-aci or --disable-aci was given.
1652 if test "${enable_aci+set}" = set; then
1653 enableval="$enable_aci"
1656 for ol_val in auto yes no ; do
1657 if test "$enableval" = "$ol_val" ; then
1661 if test "$ol_arg" = "invalid" ; then
1662 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1664 ol_enable_aci="$ol_arg"
1670 # OpenLDAP --enable-cleartext
1671 # Check whether --enable-cleartext or --disable-cleartext was given.
1672 if test "${enable_cleartext+set}" = set; then
1673 enableval="$enable_cleartext"
1676 for ol_val in auto yes no ; do
1677 if test "$enableval" = "$ol_val" ; then
1681 if test "$ol_arg" = "invalid" ; then
1682 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1684 ol_enable_cleartext="$ol_arg"
1687 ol_enable_cleartext="yes"
1689 # end --enable-cleartext
1690 # OpenLDAP --enable-crypt
1691 # Check whether --enable-crypt or --disable-crypt was given.
1692 if test "${enable_crypt+set}" = set; then
1693 enableval="$enable_crypt"
1696 for ol_val in auto yes no ; do
1697 if test "$enableval" = "$ol_val" ; then
1701 if test "$ol_arg" = "invalid" ; then
1702 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1704 ol_enable_crypt="$ol_arg"
1707 ol_enable_crypt="no"
1709 # end --enable-crypt
1710 # OpenLDAP --enable-lmpasswd
1711 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1712 if test "${enable_lmpasswd+set}" = set; then
1713 enableval="$enable_lmpasswd"
1716 for ol_val in auto yes no ; do
1717 if test "$enableval" = "$ol_val" ; then
1721 if test "$ol_arg" = "invalid" ; then
1722 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1724 ol_enable_lmpasswd="$ol_arg"
1727 ol_enable_lmpasswd="no"
1729 # end --enable-lmpasswd
1730 # OpenLDAP --enable-spasswd
1731 # Check whether --enable-spasswd or --disable-spasswd was given.
1732 if test "${enable_spasswd+set}" = set; then
1733 enableval="$enable_spasswd"
1736 for ol_val in auto yes no ; do
1737 if test "$enableval" = "$ol_val" ; then
1741 if test "$ol_arg" = "invalid" ; then
1742 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1744 ol_enable_spasswd="$ol_arg"
1747 ol_enable_spasswd="no"
1749 # end --enable-spasswd
1750 # OpenLDAP --enable-modules
1751 # Check whether --enable-modules or --disable-modules was given.
1752 if test "${enable_modules+set}" = set; then
1753 enableval="$enable_modules"
1756 for ol_val in auto yes no ; do
1757 if test "$enableval" = "$ol_val" ; then
1761 if test "$ol_arg" = "invalid" ; then
1762 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1764 ol_enable_modules="$ol_arg"
1767 ol_enable_modules="no"
1769 # end --enable-modules
1770 ol_enable_multimaster=${ol_enable_multimaster-no}
1771 # OpenLDAP --enable-rewrite
1772 # Check whether --enable-rewrite or --disable-rewrite was given.
1773 if test "${enable_rewrite+set}" = set; then
1774 enableval="$enable_rewrite"
1777 for ol_val in auto yes no ; do
1778 if test "$enableval" = "$ol_val" ; then
1782 if test "$ol_arg" = "invalid" ; then
1783 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1785 ol_enable_rewrite="$ol_arg"
1788 ol_enable_rewrite="auto"
1790 # end --enable-rewrite
1791 # OpenLDAP --enable-rlookups
1792 # Check whether --enable-rlookups or --disable-rlookups was given.
1793 if test "${enable_rlookups+set}" = set; then
1794 enableval="$enable_rlookups"
1797 for ol_val in auto yes no ; do
1798 if test "$enableval" = "$ol_val" ; then
1802 if test "$ol_arg" = "invalid" ; then
1803 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1805 ol_enable_rlookups="$ol_arg"
1808 ol_enable_rlookups="no"
1810 # end --enable-rlookups
1811 # OpenLDAP --enable-slapi
1812 # Check whether --enable-slapi or --disable-slapi was given.
1813 if test "${enable_slapi+set}" = set; then
1814 enableval="$enable_slapi"
1817 for ol_val in auto yes no ; do
1818 if test "$enableval" = "$ol_val" ; then
1822 if test "$ol_arg" = "invalid" ; then
1823 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1825 ol_enable_slapi="$ol_arg"
1828 ol_enable_slapi="no"
1830 # end --enable-slapi
1831 # OpenLDAP --enable-slp
1832 # Check whether --enable-slp or --disable-slp was given.
1833 if test "${enable_slp+set}" = set; then
1834 enableval="$enable_slp"
1837 for ol_val in auto yes no ; do
1838 if test "$enableval" = "$ol_val" ; then
1842 if test "$ol_arg" = "invalid" ; then
1843 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1845 ol_enable_slp="$ol_arg"
1851 # OpenLDAP --enable-wrappers
1852 # Check whether --enable-wrappers or --disable-wrappers was given.
1853 if test "${enable_wrappers+set}" = set; then
1854 enableval="$enable_wrappers"
1857 for ol_val in auto yes no ; do
1858 if test "$enableval" = "$ol_val" ; then
1862 if test "$ol_arg" = "invalid" ; then
1863 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1865 ol_enable_wrappers="$ol_arg"
1868 ol_enable_wrappers="no"
1870 # end --enable-wrappers
1872 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1873 passwd perl relay shell sql"
1875 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
1876 if test "${with_xxslapoverlays+set}" = set; then
1877 withval="$with_xxslapoverlays"
1882 # OpenLDAP --enable-bdb
1883 # Check whether --enable-bdb or --disable-bdb was given.
1884 if test "${enable_bdb+set}" = set; then
1885 enableval="$enable_bdb"
1888 for ol_val in no yes mod ; do
1889 if test "$enableval" = "$ol_val" ; then
1893 if test "$ol_arg" = "invalid" ; then
1894 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1896 ol_enable_bdb="$ol_arg"
1902 # OpenLDAP --enable-dnssrv
1903 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1904 if test "${enable_dnssrv+set}" = set; then
1905 enableval="$enable_dnssrv"
1908 for ol_val in no yes mod ; do
1909 if test "$enableval" = "$ol_val" ; then
1913 if test "$ol_arg" = "invalid" ; then
1914 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1916 ol_enable_dnssrv="$ol_arg"
1919 ol_enable_dnssrv="no"
1921 # end --enable-dnssrv
1922 # OpenLDAP --enable-hdb
1923 # Check whether --enable-hdb or --disable-hdb was given.
1924 if test "${enable_hdb+set}" = set; then
1925 enableval="$enable_hdb"
1928 for ol_val in no yes mod ; do
1929 if test "$enableval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1936 ol_enable_hdb="$ol_arg"
1942 # OpenLDAP --enable-ldap
1943 # Check whether --enable-ldap or --disable-ldap was given.
1944 if test "${enable_ldap+set}" = set; then
1945 enableval="$enable_ldap"
1948 for ol_val in no yes mod ; do
1949 if test "$enableval" = "$ol_val" ; then
1953 if test "$ol_arg" = "invalid" ; then
1954 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
1956 ol_enable_ldap="$ol_arg"
1962 # OpenLDAP --enable-ldbm
1963 # Check whether --enable-ldbm or --disable-ldbm was given.
1964 if test "${enable_ldbm+set}" = set; then
1965 enableval="$enable_ldbm"
1968 for ol_val in no yes mod ; do
1969 if test "$enableval" = "$ol_val" ; then
1973 if test "$ol_arg" = "invalid" ; then
1974 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
1976 ol_enable_ldbm="$ol_arg"
1982 # OpenLDAP --with-ldbm_api
1983 # Check whether --with-ldbm_api or --without-ldbm_api was given.
1984 if test "${with_ldbm_api+set}" = set; then
1985 withval="$with_ldbm_api"
1988 for ol_val in auto berkeley bcompat mdbm gdbm ; do
1989 if test "$withval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
1996 ol_with_ldbm_api="$ol_arg"
1999 ol_with_ldbm_api="auto"
2001 # end --with-ldbm_api
2003 # OpenLDAP --with-ldbm_type
2004 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2005 if test "${with_ldbm_type+set}" = set; then
2006 withval="$with_ldbm_type"
2009 for ol_val in auto btree hash ; do
2010 if test "$withval" = "$ol_val" ; then
2014 if test "$ol_arg" = "invalid" ; then
2015 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2017 ol_with_ldbm_type="$ol_arg"
2020 ol_with_ldbm_type="auto"
2022 # end --with-ldbm_type
2024 # OpenLDAP --enable-meta
2025 # Check whether --enable-meta or --disable-meta was given.
2026 if test "${enable_meta+set}" = set; then
2027 enableval="$enable_meta"
2030 for ol_val in no yes mod ; do
2031 if test "$enableval" = "$ol_val" ; then
2035 if test "$ol_arg" = "invalid" ; then
2036 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2038 ol_enable_meta="$ol_arg"
2044 # OpenLDAP --enable-monitor
2045 # Check whether --enable-monitor or --disable-monitor was given.
2046 if test "${enable_monitor+set}" = set; then
2047 enableval="$enable_monitor"
2050 for ol_val in no yes mod ; do
2051 if test "$enableval" = "$ol_val" ; then
2055 if test "$ol_arg" = "invalid" ; then
2056 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2058 ol_enable_monitor="$ol_arg"
2061 ol_enable_monitor="yes"
2063 # end --enable-monitor
2064 # OpenLDAP --enable-null
2065 # Check whether --enable-null or --disable-null was given.
2066 if test "${enable_null+set}" = set; then
2067 enableval="$enable_null"
2070 for ol_val in no yes mod ; do
2071 if test "$enableval" = "$ol_val" ; then
2075 if test "$ol_arg" = "invalid" ; then
2076 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2078 ol_enable_null="$ol_arg"
2084 # OpenLDAP --enable-passwd
2085 # Check whether --enable-passwd or --disable-passwd was given.
2086 if test "${enable_passwd+set}" = set; then
2087 enableval="$enable_passwd"
2090 for ol_val in no yes mod ; do
2091 if test "$enableval" = "$ol_val" ; then
2095 if test "$ol_arg" = "invalid" ; then
2096 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2098 ol_enable_passwd="$ol_arg"
2101 ol_enable_passwd="no"
2103 # end --enable-passwd
2104 # OpenLDAP --enable-perl
2105 # Check whether --enable-perl or --disable-perl was given.
2106 if test "${enable_perl+set}" = set; then
2107 enableval="$enable_perl"
2110 for ol_val in no yes mod ; do
2111 if test "$enableval" = "$ol_val" ; then
2115 if test "$ol_arg" = "invalid" ; then
2116 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2118 ol_enable_perl="$ol_arg"
2124 # OpenLDAP --enable-relay
2125 # Check whether --enable-relay or --disable-relay was given.
2126 if test "${enable_relay+set}" = set; then
2127 enableval="$enable_relay"
2130 for ol_val in no yes mod ; do
2131 if test "$enableval" = "$ol_val" ; then
2135 if test "$ol_arg" = "invalid" ; then
2136 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2138 ol_enable_relay="$ol_arg"
2141 ol_enable_relay="yes"
2143 # end --enable-relay
2144 # OpenLDAP --enable-shell
2145 # Check whether --enable-shell or --disable-shell was given.
2146 if test "${enable_shell+set}" = set; then
2147 enableval="$enable_shell"
2150 for ol_val in no yes mod ; do
2151 if test "$enableval" = "$ol_val" ; then
2155 if test "$ol_arg" = "invalid" ; then
2156 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2158 ol_enable_shell="$ol_arg"
2161 ol_enable_shell="no"
2163 # end --enable-shell
2164 # OpenLDAP --enable-sql
2165 # Check whether --enable-sql or --disable-sql was given.
2166 if test "${enable_sql+set}" = set; then
2167 enableval="$enable_sql"
2170 for ol_val in no yes mod ; do
2171 if test "$enableval" = "$ol_val" ; then
2175 if test "$ol_arg" = "invalid" ; then
2176 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2178 ol_enable_sql="$ol_arg"
2185 Overlays="chain denyop dyngroup lastmod ppolicy proxycache rwm"
2187 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2188 if test "${with_xxslapoverlays+set}" = set; then
2189 withval="$with_xxslapoverlays"
2194 # OpenLDAP --enable-chain
2195 # Check whether --enable-chain or --disable-chain was given.
2196 if test "${enable_chain+set}" = set; then
2197 enableval="$enable_chain"
2200 for ol_val in no yes mod ; do
2201 if test "$enableval" = "$ol_val" ; then
2205 if test "$ol_arg" = "invalid" ; then
2206 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2208 ol_enable_chain="$ol_arg"
2211 ol_enable_chain="no"
2213 # end --enable-chain
2215 # OpenLDAP --enable-denyop
2216 # Check whether --enable-denyop or --disable-denyop was given.
2217 if test "${enable_denyop+set}" = set; then
2218 enableval="$enable_denyop"
2221 for ol_val in no yes mod ; do
2222 if test "$enableval" = "$ol_val" ; then
2226 if test "$ol_arg" = "invalid" ; then
2227 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2229 ol_enable_denyop="$ol_arg"
2232 ol_enable_denyop="no"
2234 # end --enable-denyop
2236 # OpenLDAP --enable-dyngroup
2237 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2238 if test "${enable_dyngroup+set}" = set; then
2239 enableval="$enable_dyngroup"
2242 for ol_val in no yes mod ; do
2243 if test "$enableval" = "$ol_val" ; then
2247 if test "$ol_arg" = "invalid" ; then
2248 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2250 ol_enable_dyngroup="$ol_arg"
2253 ol_enable_dyngroup="no"
2255 # end --enable-dyngroup
2257 # OpenLDAP --enable-lastmod
2258 # Check whether --enable-lastmod or --disable-lastmod was given.
2259 if test "${enable_lastmod+set}" = set; then
2260 enableval="$enable_lastmod"
2263 for ol_val in no yes mod ; do
2264 if test "$enableval" = "$ol_val" ; then
2268 if test "$ol_arg" = "invalid" ; then
2269 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2271 ol_enable_lastmod="$ol_arg"
2274 ol_enable_lastmod="no"
2276 # end --enable-lastmod
2278 # OpenLDAP --enable-ppolicy
2279 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2280 if test "${enable_ppolicy+set}" = set; then
2281 enableval="$enable_ppolicy"
2284 for ol_val in no yes mod ; do
2285 if test "$enableval" = "$ol_val" ; then
2289 if test "$ol_arg" = "invalid" ; then
2290 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2292 ol_enable_ppolicy="$ol_arg"
2295 ol_enable_ppolicy="no"
2297 # end --enable-ppolicy
2299 # OpenLDAP --enable-proxycache
2300 # Check whether --enable-proxycache or --disable-proxycache was given.
2301 if test "${enable_proxycache+set}" = set; then
2302 enableval="$enable_proxycache"
2305 for ol_val in no yes mod ; do
2306 if test "$enableval" = "$ol_val" ; then
2310 if test "$ol_arg" = "invalid" ; then
2311 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2313 ol_enable_proxycache="$ol_arg"
2316 ol_enable_proxycache="no"
2318 # end --enable-proxycache
2320 # OpenLDAP --enable-rwm
2321 # Check whether --enable-rwm or --disable-rwm was given.
2322 if test "${enable_rwm+set}" = set; then
2323 enableval="$enable_rwm"
2326 for ol_val in no yes mod ; do
2327 if test "$enableval" = "$ol_val" ; then
2331 if test "$ol_arg" = "invalid" ; then
2332 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2334 ol_enable_rwm="$ol_arg"
2342 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2343 if test "${with_xxslurpdoptions+set}" = set; then
2344 withval="$with_xxslurpdoptions"
2348 # OpenLDAP --enable-slurpd
2349 # Check whether --enable-slurpd or --disable-slurpd was given.
2350 if test "${enable_slurpd+set}" = set; then
2351 enableval="$enable_slurpd"
2354 for ol_val in auto yes no ; do
2355 if test "$enableval" = "$ol_val" ; then
2359 if test "$ol_arg" = "invalid" ; then
2360 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2362 ol_enable_slurpd="$ol_arg"
2365 ol_enable_slurpd="auto"
2367 # end --enable-slurpd
2369 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2370 if test "${with_xxliboptions+set}" = set; then
2371 withval="$with_xxliboptions"
2375 # Check whether --enable-static or --disable-static was given.
2376 if test "${enable_static+set}" = set; then
2377 enableval="$enable_static"
2378 p=${PACKAGE-default}
2380 yes) enable_static=yes ;;
2381 no) enable_static=no ;;
2384 # Look at the argument we got. We use all the common list separators.
2385 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2386 for pkg in $enableval; do
2387 if test "X$pkg" = "X$p"; then
2398 # Check whether --enable-shared or --disable-shared was given.
2399 if test "${enable_shared+set}" = set; then
2400 enableval="$enable_shared"
2401 p=${PACKAGE-default}
2403 yes) enable_shared=yes ;;
2404 no) enable_shared=no ;;
2407 # Look at the argument we got. We use all the common list separators.
2408 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2409 for pkg in $enableval; do
2410 if test "X$pkg" = "X$p"; then
2424 if test $ol_enable_slapd = no ; then
2425 if test $ol_enable_slapi = yes ; then
2426 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2428 for i in $Backends; do
2429 eval "ol_tmp=\$ol_enable_$i"
2430 if test $ol_tmp != no ; then
2431 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2432 eval "ol_enable_$i=no"
2435 if test $ol_enable_modules = yes ; then
2436 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2438 if test $ol_enable_multimaster = yes ; then
2439 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2441 if test $ol_enable_wrappers = yes ; then
2442 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2444 if test $ol_enable_rlookups = yes ; then
2445 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2447 if test $ol_enable_aci = yes ; then
2448 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2450 if test $ol_with_ldbm_api != auto ; then
2451 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2453 if test $ol_with_ldbm_type != auto ; then
2454 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2456 if test $ol_enable_slurpd = yes ; then
2457 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2459 if test $ol_enable_rewrite = yes ; then
2460 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2462 for i in $Overlays; do
2463 eval "ol_tmp=\$ol_enable_$i"
2464 if test $ol_tmp != no ; then
2465 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2466 eval "ol_enable_$i=no"
2470 # force settings to no
2473 ol_enable_modules=no
2474 ol_enable_multimaster=no
2475 ol_enable_rlookups=no
2477 ol_enable_wrappers=no
2480 ol_with_ldbm_type=no
2484 ol_enable_rewrite=no
2486 elif test $ol_enable_ldbm = no ; then
2488 if test $ol_with_ldbm_api != auto ; then
2489 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2492 if test $ol_with_ldbm_type != auto ; then
2493 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2496 if test $ol_enable_modules != yes -a \
2497 $ol_enable_bdb = no -a \
2498 $ol_enable_dnssrv = no -a \
2499 $ol_enable_hdb = no -a \
2500 $ol_enable_ldap = no -a \
2501 $ol_enable_meta = no -a \
2502 $ol_enable_monitor = no -a \
2503 $ol_enable_null = no -a \
2504 $ol_enable_passwd = no -a \
2505 $ol_enable_perl = no -a \
2506 $ol_enable_relay = no -a \
2507 $ol_enable_shell = no -a \
2508 $ol_enable_sql = no ; then
2510 if test $ol_enable_slapd = yes ; then
2511 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2513 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2519 ol_with_ldbm_type=no
2521 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2522 ol_with_ldbm_api=berkeley
2526 if test $ol_with_ldbm_api = gdbm -a \
2527 $ol_with_ldbm_type = btree ; then
2528 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2530 if test $ol_with_ldbm_api = mdbm -a \
2531 $ol_with_ldbm_type = btree ; then
2532 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2534 if test $ol_with_ldbm_api = ndbm -a \
2535 $ol_with_ldbm_type = btree ; then
2536 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2539 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2540 if test $ol_with_ldbm_api = auto ; then
2541 ol_with_ldbm_api=berkeley
2542 elif test $ol_with_ldbm_api != berkeley ; then
2543 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2546 elif test $ol_enable_bdb = auto ; then
2547 if test $ol_with_ldbm_api != berkeley \
2548 -o $ol_with_ldbm_api != auto ; then
2549 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2555 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2556 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2559 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2560 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2563 if test $ol_enable_slurpd = yes ; then
2564 if test $ol_with_threads = no ; then
2565 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2569 if test $ol_enable_lmpasswd = yes ; then
2570 if test $ol_with_tls = no ; then
2571 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2575 if test $ol_enable_kbind = yes ; then
2576 if test $ol_with_kerberos = no ; then
2577 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2578 elif test $ol_with_kerberos = auto ; then
2579 ol_with_kerberos=yes
2582 elif test $ol_enable_kbind = no ; then
2583 if test $ol_with_kerberos = auto ; then
2585 elif test $ol_with_kerberos != no ; then
2586 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2591 if test $ol_enable_spasswd = yes ; then
2592 if test $ol_with_cyrus_sasl = no ; then
2593 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2595 ol_with_cyrus_sasl=yes
2598 echo "$ac_t""done" 1>&6
2638 SLAPD_DYNAMIC_OVERLAYS=
2640 SLAPD_MODULES_LDFLAGS=
2641 SLAPD_MODULES_CPPFLAGS=
2643 SLAPD_STATIC_BACKENDS=
2644 SLAPD_DYNAMIC_BACKENDS=
2667 # Find a good install program. We prefer a C program (faster),
2668 # so one script is as good as another. But avoid the broken or
2669 # incompatible versions:
2670 # SysV /etc/install, /usr/sbin/install
2671 # SunOS /usr/etc/install
2672 # IRIX /sbin/install
2674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2677 # ./install, which can be erroneously created by make from ./install.sh.
2678 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2679 echo "configure:2680: checking for a BSD compatible install" >&5
2680 if test -z "$INSTALL"; then
2681 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2685 for ac_dir in $PATH; do
2686 # Account for people who put trailing slashes in PATH elements.
2688 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2690 # OSF1 and SCO ODT 3.0 have their own names for install.
2691 # Don't use installbsd from OSF since it installs stuff as root
2693 for ac_prog in ginstall scoinst install; do
2694 if test -f $ac_dir/$ac_prog; then
2695 if test $ac_prog = install &&
2696 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2697 # AIX install. It has an incompatible calling convention.
2699 elif test $ac_prog = install &&
2700 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2701 # program-specific install script used by HP pwplus--don't use.
2704 ac_cv_path_install="$ac_dir/$ac_prog -c"
2715 if test "${ac_cv_path_install+set}" = set; then
2716 INSTALL="$ac_cv_path_install"
2718 # As a last resort, use the slow shell script. We don't cache a
2719 # path for INSTALL within a source directory, because that will
2720 # break other packages using the cache if that directory is
2721 # removed, or if the path is relative.
2722 INSTALL="$ac_install_sh"
2725 echo "$ac_t""$INSTALL" 1>&6
2727 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2728 # It thinks the first close brace ends the variable substitution.
2729 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2731 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2733 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2736 cat >> confdefs.h <<\EOF
2737 #define HAVE_MKVERSION 1
2745 *-*-aix*) if test -z "$CC" ; then
2746 case "$ol_with_threads" in
2747 auto | yes | posix) ol_aix_threads=yes ;;
2753 if test $ol_aix_threads = yes ; then
2754 if test -z "${CC}" ; then
2755 for ac_prog in cc_r xlc_r cc
2757 # Extract the first word of "$ac_prog", so it can be a program name with args.
2758 set dummy $ac_prog; ac_word=$2
2759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2760 echo "configure:2761: checking for $ac_word" >&5
2761 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2769 for ac_dir in $ac_dummy; do
2770 test -z "$ac_dir" && ac_dir=.
2771 if test -f $ac_dir/$ac_word; then
2772 ac_cv_prog_CC="$ac_prog"
2780 if test -n "$CC"; then
2781 echo "$ac_t""$CC" 1>&6
2783 echo "$ac_t""no" 1>&6
2786 test -n "$CC" && break
2790 if test "$CC" = cc ; then
2791 if test $ol_with_threads != auto ; then
2792 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2794 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2800 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2801 ol_with_threads=posix
2802 ol_cv_pthread_create=yes
2806 if test -z "${CC}"; then
2807 for ac_prog in cc gcc
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2812 echo "configure:2813: checking for $ac_word" >&5
2813 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 if test -n "$CC"; then
2817 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2821 for ac_dir in $ac_dummy; do
2822 test -z "$ac_dir" && ac_dir=.
2823 if test -f $ac_dir/$ac_word; then
2824 ac_cv_prog_CC="$ac_prog"
2832 if test -n "$CC"; then
2833 echo "$ac_t""$CC" 1>&6
2835 echo "$ac_t""no" 1>&6
2838 test -n "$CC" && break
2840 test -n "$CC" || CC="missing"
2843 if test "${CC}" = "missing" ; then
2844 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2848 if test -z "${AR}"; then
2849 for ac_prog in ar gar
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2854 echo "configure:2855: checking for $ac_word" >&5
2855 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2856 echo $ac_n "(cached) $ac_c" 1>&6
2858 if test -n "$AR"; then
2859 ac_cv_prog_AR="$AR" # Let the user override the test.
2861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2863 for ac_dir in $ac_dummy; do
2864 test -z "$ac_dir" && ac_dir=.
2865 if test -f $ac_dir/$ac_word; then
2866 ac_cv_prog_AR="$ac_prog"
2874 if test -n "$AR"; then
2875 echo "$ac_t""$AR" 1>&6
2877 echo "$ac_t""no" 1>&6
2880 test -n "$AR" && break
2882 test -n "$AR" || AR="missing"
2885 if test "${AR}" = "missing" ; then
2886 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2892 # Find the correct PATH separator. Usually this is `:', but
2893 # DJGPP uses `;' like DOS.
2894 if test "X${PATH_SEPARATOR+set}" != Xset; then
2895 UNAME=${UNAME-`uname 2>/dev/null`}
2897 *-DOS) lt_cv_sys_path_separator=';' ;;
2898 *) lt_cv_sys_path_separator=':' ;;
2900 PATH_SEPARATOR=$lt_cv_sys_path_separator
2903 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2904 echo "configure:2905: checking for Cygwin environment" >&5
2905 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2906 echo $ac_n "(cached) $ac_c" 1>&6
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2915 #define __CYGWIN__ __CYGWIN32__
2920 if { (eval echo configure:2921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2932 echo "$ac_t""$ac_cv_cygwin" 1>&6
2934 test "$ac_cv_cygwin" = yes && CYGWIN=yes
2935 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2936 echo "configure:2937: checking for mingw32 environment" >&5
2937 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
2938 echo $ac_n "(cached) $ac_c" 1>&6
2940 cat > conftest.$ac_ext <<EOF
2941 #line 2942 "configure"
2942 #include "confdefs.h"
2948 if { (eval echo configure:2949: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2952 echo "configure: failed program was:" >&5
2953 cat conftest.$ac_ext >&5
2960 echo "$ac_t""$ac_cv_mingw32" 1>&6
2962 test "$ac_cv_mingw32" = yes && MINGW32=yes
2963 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
2964 echo "configure:2965: checking for EMX OS/2 environment" >&5
2965 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2976 if { (eval echo configure:2977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2988 echo "$ac_t""$ac_cv_emxos2" 1>&6
2990 test "$ac_cv_emxos2" = yes && EMXOS2=yes
2991 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2992 echo "configure:2993: checking how to run the C preprocessor" >&5
2993 # On Suns, sometimes $CPP names a directory.
2994 if test -n "$CPP" && test -d "$CPP"; then
2997 if test -z "$CPP"; then
2998 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 # This must be in double quotes, not single quotes, because CPP may get
3002 # substituted into the Makefile and "${CC-cc}" will confuse make.
3004 # On the NeXT, cc -E runs the code through the compiler's parser,
3005 # not just through cpp.
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3012 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3013 { (eval echo configure:3014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3014 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3015 if test -z "$ac_err"; then
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3022 CPP="${CC-cc} -E -traditional-cpp"
3023 cat > conftest.$ac_ext <<EOF
3024 #line 3025 "configure"
3025 #include "confdefs.h"
3029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3030 { (eval echo configure:3031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3032 if test -z "$ac_err"; then
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 CPP="${CC-cc} -nologo -E"
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3047 { (eval echo configure:3048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3049 if test -z "$ac_err"; then
3053 echo "configure: failed program was:" >&5
3054 cat conftest.$ac_ext >&5
3063 ac_cv_prog_CPP="$CPP"
3065 CPP="$ac_cv_prog_CPP"
3067 ac_cv_prog_CPP="$CPP"
3069 echo "$ac_t""$CPP" 1>&6
3071 # Check whether --enable-fast-install or --disable-fast-install was given.
3072 if test "${enable_fast_install+set}" = set; then
3073 enableval="$enable_fast_install"
3074 p=${PACKAGE-default}
3076 yes) enable_fast_install=yes ;;
3077 no) enable_fast_install=no ;;
3079 enable_fast_install=no
3080 # Look at the argument we got. We use all the common list separators.
3081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3082 for pkg in $enableval; do
3083 if test "X$pkg" = "X$p"; then
3084 enable_fast_install=yes
3091 enable_fast_install=yes
3094 # Extract the first word of "gcc", so it can be a program name with args.
3095 set dummy gcc; ac_word=$2
3096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3097 echo "configure:3098: checking for $ac_word" >&5
3098 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3099 echo $ac_n "(cached) $ac_c" 1>&6
3101 if test -n "$CC"; then
3102 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3106 for ac_dir in $ac_dummy; do
3107 test -z "$ac_dir" && ac_dir=.
3108 if test -f $ac_dir/$ac_word; then
3117 if test -n "$CC"; then
3118 echo "$ac_t""$CC" 1>&6
3120 echo "$ac_t""no" 1>&6
3123 if test -z "$CC"; then
3124 # Extract the first word of "cc", so it can be a program name with args.
3125 set dummy cc; ac_word=$2
3126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3127 echo "configure:3128: checking for $ac_word" >&5
3128 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 if test -n "$CC"; then
3132 ac_cv_prog_CC="$CC" # Let the user override the test.
3134 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3137 for ac_dir in $ac_dummy; do
3138 test -z "$ac_dir" && ac_dir=.
3139 if test -f $ac_dir/$ac_word; then
3140 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3141 ac_prog_rejected=yes
3149 if test $ac_prog_rejected = yes; then
3150 # We found a bogon in the path, so make sure we never use it.
3151 set dummy $ac_cv_prog_CC
3153 if test $# -gt 0; then
3154 # We chose a different compiler from the bogus one.
3155 # However, it has the same basename, so the bogon will be chosen
3156 # first if we set CC to just the basename; use the full file name.
3158 set dummy "$ac_dir/$ac_word" "$@"
3166 if test -n "$CC"; then
3167 echo "$ac_t""$CC" 1>&6
3169 echo "$ac_t""no" 1>&6
3172 if test -z "$CC"; then
3173 case "`uname -s`" in
3174 *win32* | *WIN32* | *CYGWIN*)
3175 # Extract the first word of "cl", so it can be a program name with args.
3176 set dummy cl; ac_word=$2
3177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3178 echo "configure:3179: checking for $ac_word" >&5
3179 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3187 for ac_dir in $ac_dummy; do
3188 test -z "$ac_dir" && ac_dir=.
3189 if test -f $ac_dir/$ac_word; then
3198 if test -n "$CC"; then
3199 echo "$ac_t""$CC" 1>&6
3201 echo "$ac_t""no" 1>&6
3206 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3209 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3210 echo "configure:3211: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3213 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3216 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3217 cross_compiling=$ac_cv_prog_cc_cross
3219 cat > conftest.$ac_ext << EOF
3221 #line 3222 "configure"
3222 #include "confdefs.h"
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 ac_cv_prog_cc_works=yes
3228 # If we can't run a trivial program, we are probably using a cross compiler.
3229 if (./conftest; exit) 2>/dev/null; then
3230 ac_cv_prog_cc_cross=no
3232 ac_cv_prog_cc_cross=yes
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3237 ac_cv_prog_cc_works=no
3241 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3244 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3245 cross_compiling=$ac_cv_prog_cc_cross
3247 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3248 if test $ac_cv_prog_cc_works = no; then
3249 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3251 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3252 echo "configure:3253: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3253 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3254 cross_compiling=$ac_cv_prog_cc_cross
3256 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3257 echo "configure:3258: checking whether we are using GNU C" >&5
3258 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3259 echo $ac_n "(cached) $ac_c" 1>&6
3261 cat > conftest.c <<EOF
3266 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3273 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3275 if test $ac_cv_prog_gcc = yes; then
3281 ac_test_CFLAGS="${CFLAGS+set}"
3282 ac_save_CFLAGS="$CFLAGS"
3284 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3285 echo "configure:3286: checking whether ${CC-cc} accepts -g" >&5
3286 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3287 echo $ac_n "(cached) $ac_c" 1>&6
3289 echo 'void f(){}' > conftest.c
3290 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3299 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3300 if test "$ac_test_CFLAGS" = set; then
3301 CFLAGS="$ac_save_CFLAGS"
3302 elif test $ac_cv_prog_cc_g = yes; then
3303 if test "$GCC" = yes; then
3309 if test "$GCC" = yes; then
3316 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3317 if test "${with_gnu_ld+set}" = set; then
3318 withval="$with_gnu_ld"
3319 test "$withval" = no || with_gnu_ld=yes
3325 if test "$GCC" = yes; then
3326 # Check if gcc -print-prog-name=ld gives a path.
3327 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3328 echo "configure:3329: checking for ld used by GCC" >&5
3331 # gcc leaves a trailing carriage return which upsets mingw
3332 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3334 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3337 # Accept absolute paths.
3338 [\\/]* | [A-Za-z]:[\\/]*)
3339 re_direlt='/[^/][^/]*/\.\./'
3340 # Canonicalize the path of ld
3341 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3342 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3343 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3345 test -z "$LD" && LD="$ac_prog"
3348 # If it fails, then pretend we aren't using GCC.
3352 # If it is relative, then search for the first ld in PATH.
3356 elif test "$with_gnu_ld" = yes; then
3357 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3358 echo "configure:3359: checking for GNU ld" >&5
3360 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3361 echo "configure:3362: checking for non-GNU ld" >&5
3363 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 if test -z "$LD"; then
3367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3368 for ac_dir in $PATH; do
3369 test -z "$ac_dir" && ac_dir=.
3370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3371 lt_cv_path_LD="$ac_dir/$ac_prog"
3372 # Check to see if the program is GNU ld. I'd rather use --version,
3373 # but apparently some GNU ld's only accept -v.
3374 # Break only if it was the GNU/non-GNU ld that we prefer.
3375 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3376 test "$with_gnu_ld" != no && break
3378 test "$with_gnu_ld" != yes && break
3384 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3389 if test -n "$LD"; then
3390 echo "$ac_t""$LD" 1>&6
3392 echo "$ac_t""no" 1>&6
3394 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3395 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3396 echo "configure:3397: checking if the linker ($LD) is GNU ld" >&5
3397 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3400 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3401 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3402 lt_cv_prog_gnu_ld=yes
3404 lt_cv_prog_gnu_ld=no
3408 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3409 with_gnu_ld=$lt_cv_prog_gnu_ld
3412 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3413 echo "configure:3414: checking for $LD option to reload object files" >&5
3414 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3415 echo $ac_n "(cached) $ac_c" 1>&6
3417 lt_cv_ld_reload_flag='-r'
3420 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3421 reload_flag=$lt_cv_ld_reload_flag
3422 test -n "$reload_flag" && reload_flag=" $reload_flag"
3424 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3425 echo "configure:3426: checking for BSD-compatible nm" >&5
3426 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3429 if test -n "$NM"; then
3430 # Let the user override the test.
3433 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3434 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3435 test -z "$ac_dir" && ac_dir=.
3436 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3437 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3438 # Check to see if the nm accepts a BSD-compat flag.
3439 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3440 # nm: unknown option "B" ignored
3441 # Tru64's nm complains that /dev/null is an invalid object file
3442 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3443 lt_cv_path_NM="$tmp_nm -B"
3445 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3446 lt_cv_path_NM="$tmp_nm -p"
3449 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3450 continue # so that we can try to find one that supports BSD flags
3455 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3460 echo "$ac_t""$NM" 1>&6
3462 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3463 echo "configure:3464: checking for a sed that does not truncate output" >&5
3464 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3467 # Loop through the user's path and test for sed and gsed.
3468 # Then use that list of sed's as ones to test for truncation.
3469 as_executable_p="test -f"
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_prog in sed gsed; do
3476 for ac_exec_ext in '' $ac_executable_extensions; do
3477 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3478 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3484 # Create a temporary directory, and hook for its removal unless debugging.
3487 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3488 trap '{ (exit 1); exit 1; }' 1 2 13 15
3491 # Create a (secure) tmp directory for tmp files.
3494 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3495 test -n "$tmp" && test -d "$tmp"
3498 tmp=$TMPDIR/sed$$-$RANDOM
3499 (umask 077 && mkdir $tmp)
3502 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3503 { (exit 1); exit 1; }
3507 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3508 # along with /bin/sed that truncates output.
3509 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3510 test ! -f ${_sed} && break
3511 cat /dev/null > "$tmp/sed.in"
3513 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3514 # Check for GNU sed and select it if it is found.
3515 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3516 lt_cv_path_SED=${_sed}
3520 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3521 mv "$tmp/sed.tmp" "$tmp/sed.in"
3522 cp "$tmp/sed.in" "$tmp/sed.nl"
3523 echo >>"$tmp/sed.nl"
3524 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3525 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3526 # 40000 chars as input seems more than enough
3527 test $_count -gt 10 && break
3528 _count=`expr $_count + 1`
3529 if test $_count -gt $_max; then
3531 lt_cv_path_SED=$_sed
3539 if test "X$SED" != "X"; then
3544 echo "$ac_t""$SED" 1>&6
3546 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3547 echo "configure:3548: checking whether ln -s works" >&5
3548 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3552 if ln -s X conftestdata 2>/dev/null
3555 ac_cv_prog_LN_S="ln -s"
3560 LN_S="$ac_cv_prog_LN_S"
3561 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3562 echo "$ac_t""yes" 1>&6
3564 echo "$ac_t""no" 1>&6
3567 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3568 echo "configure:3569: checking how to recognise dependent libraries" >&5
3569 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 lt_cv_file_magic_cmd='$MAGIC_CMD'
3573 lt_cv_file_magic_test_file=
3574 lt_cv_deplibs_check_method='unknown'
3575 # Need to set the preceding variable on all platforms that support
3576 # interlibrary dependencies.
3577 # 'none' -- dependencies not supported.
3578 # `unknown' -- same as none, but documents that we really don't know.
3579 # 'pass_all' -- all dependencies passed with no checks.
3580 # 'test_compile' -- check by making test program.
3581 # 'file_magic [[regex]]' -- check by looking for files in library path
3582 # which responds to the $file_magic_cmd with a given egrep regex.
3583 # If you have `file' or equivalent on your system and you're not sure
3584 # whether `pass_all' will *always* work, you probably want this one.
3588 lt_cv_deplibs_check_method=pass_all
3592 lt_cv_deplibs_check_method=pass_all
3596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3597 lt_cv_file_magic_cmd='/usr/bin/file -L'
3598 lt_cv_file_magic_test_file=/shlib/libc.so
3601 cygwin* | mingw* | pw32*)
3602 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3603 lt_cv_file_magic_cmd='$OBJDUMP -f'
3606 darwin* | rhapsody*)
3607 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3608 lt_cv_file_magic_cmd='/usr/bin/file -L'
3610 rhapsody* | darwin1.[012])
3611 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3614 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3620 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3623 # Not sure whether the presence of OpenBSD here was a mistake.
3624 # Let's accept both of them until this is cleared up.
3625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3626 lt_cv_file_magic_cmd=/usr/bin/file
3627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3631 lt_cv_deplibs_check_method=pass_all
3636 lt_cv_deplibs_check_method=pass_all
3640 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3641 lt_cv_file_magic_cmd=/usr/bin/file
3642 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3645 irix5* | irix6* | nonstopux*)
3647 irix5* | nonstopux*)
3648 # this will be overridden with pass_all, but let us keep it just in case
3649 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3653 *-32|*"-32 ") libmagic=32-bit;;
3654 *-n32|*"-n32 ") libmagic=N32;;
3655 *-64|*"-64 ") libmagic=64-bit;;
3656 *) libmagic=never-match;;
3658 # this will be overridden with pass_all, but let us keep it just in case
3659 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3662 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3663 lt_cv_deplibs_check_method=pass_all
3666 # This must be Linux ELF.
3669 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3670 lt_cv_deplibs_check_method=pass_all ;;
3672 # glibc up to 2.1.1 does not perform some relocations on ARM
3673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3675 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3679 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3680 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3682 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3687 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3688 lt_cv_file_magic_cmd=/usr/bin/file
3689 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3693 lt_cv_file_magic_cmd=/usr/bin/file
3694 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3695 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3698 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3703 lt_cv_deplibs_check_method=pass_all
3706 osf3* | osf4* | osf5*)
3707 # this will be overridden with pass_all, but let us keep it just in case
3708 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3709 lt_cv_file_magic_test_file=/shlib/libc.so
3710 lt_cv_deplibs_check_method=pass_all
3714 lt_cv_deplibs_check_method=pass_all
3718 lt_cv_deplibs_check_method=pass_all
3719 lt_cv_file_magic_test_file=/lib/libc.so
3722 sysv5uw[78]* | sysv4*uw2*)
3723 lt_cv_deplibs_check_method=pass_all
3726 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3727 case $host_vendor in
3729 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3730 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3733 lt_cv_deplibs_check_method=pass_all
3736 lt_cv_file_magic_cmd='/bin/file'
3737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3740 lt_cv_file_magic_cmd='/bin/file'
3741 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3742 lt_cv_file_magic_test_file=/lib/libc.so
3745 lt_cv_deplibs_check_method=pass_all
3753 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3754 file_magic_cmd=$lt_cv_file_magic_cmd
3755 deplibs_check_method=$lt_cv_deplibs_check_method
3757 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3758 echo "configure:3759: checking for object suffix" >&5
3759 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3760 echo $ac_n "(cached) $ac_c" 1>&6
3763 echo 'int i = 1;' > conftest.$ac_ext
3764 if { (eval echo configure:3765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3765 for ac_file in conftest.*; do
3768 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3772 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3777 echo "$ac_t""$ac_cv_objext" 1>&6
3778 OBJEXT=$ac_cv_objext
3779 ac_objext=$ac_cv_objext
3784 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3785 echo "configure:3786: checking for executable suffix" >&5
3786 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3787 echo $ac_n "(cached) $ac_c" 1>&6
3789 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3793 echo 'int main () { return 0; }' > conftest.$ac_ext
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3796 for file in conftest.*; do
3798 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3799 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3803 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3806 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3811 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3812 echo "$ac_t""${ac_cv_exeext}" 1>&6
3815 if test $host != $build; then
3816 ac_tool_prefix=${host_alias}-
3824 # Check for command to grab the raw symbol name followed by C symbol from nm.
3825 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3826 echo "configure:3827: checking command to parse $NM output" >&5
3827 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3831 # These are sane defaults that work on at least a few old systems.
3832 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3834 # Character class describing NM global symbol codes.
3835 symcode='[BCDEGRST]'
3837 # Regexp to match symbols that can be accessed directly from C.
3838 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3840 # Transform the above into a raw symbol and a C symbol.
3841 symxfrm='\1 \2\3 \3'
3843 # Transform an extracted symbol line into a proper C declaration
3844 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3846 # Transform an extracted symbol line into symbol name and symbol address
3847 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3849 # Define system-specific variables.
3854 cygwin* | mingw* | pw32*)
3855 symcode='[ABCDGISTW]'
3857 hpux*) # Its linker distinguishes data from code symbols
3858 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3859 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3862 symcode='[BCDEGRST]'
3865 symcode='[BCDEGQRST]'
3875 # Handle CRLF in mingw tool chain
3879 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3883 # If we're using GNU nm, then use its standard symbol codes.
3884 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3885 symcode='[ABCDGISTW]'
3888 # Try without a prefix undercore, then with it.
3889 for ac_symprfx in "" "_"; do
3891 # Write the raw and C identifiers.
3892 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3894 # Check to see that the pipe works correctly.
3897 cat > conftest.$ac_ext <<EOF
3902 void nm_test_func(){}
3906 int main(){nm_test_var='a';nm_test_func();return(0);}
3909 if { (eval echo configure:3910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3910 # Now try to grab the symbols.
3912 if { (eval echo configure:3913: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
3913 # Try sorting and uniquifying the output.
3914 if sort "$nlist" | uniq > "$nlist"T; then
3915 mv -f "$nlist"T "$nlist"
3920 # Make sure that we snagged all the symbols we need.
3921 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3922 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3923 cat <<EOF > conftest.$ac_ext
3929 # Now generate the symbol file.
3930 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3932 cat <<EOF >> conftest.$ac_ext
3933 #if defined (__STDC__) && __STDC__
3934 # define lt_ptr void *
3936 # define lt_ptr char *
3940 /* The mapping between symbol names and symbols. */
3945 lt_preloaded_symbols[] =
3948 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3949 cat <<\EOF >> conftest.$ac_ext
3957 # Now try linking the two files.
3958 mv conftest.$ac_objext conftstm.$ac_objext
3960 save_CFLAGS="$CFLAGS"
3961 LIBS="conftstm.$ac_objext"
3962 CFLAGS="$CFLAGS$no_builtin_flag"
3963 if { (eval echo configure:3964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
3967 CFLAGS="$save_CFLAGS"
3969 echo "cannot find nm_test_func in $nlist" >&5
3972 echo "cannot find nm_test_var in $nlist" >&5
3975 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3978 echo "$progname: failed program was:" >&5
3979 cat conftest.$ac_ext >&5
3981 rm -f conftest* conftst*
3983 # Do not use the global_symbol_pipe unless it works.
3984 if test "$pipe_works" = yes; then
3987 lt_cv_sys_global_symbol_pipe=
3993 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3994 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3995 global_symbol_to_cdecl=
3996 global_symbol_to_c_name_address=
3998 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3999 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4001 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4003 echo "$ac_t""failed" 1>&6
4005 echo "$ac_t""ok" 1>&6
4008 for ac_hdr in dlfcn.h
4010 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4011 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4012 echo "configure:4013: checking for $ac_hdr" >&5
4013 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4014 echo $ac_n "(cached) $ac_c" 1>&6
4016 cat > conftest.$ac_ext <<EOF
4017 #line 4018 "configure"
4018 #include "confdefs.h"
4021 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4022 { (eval echo configure:4023: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4023 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4024 if test -z "$ac_err"; then
4026 eval "ac_cv_header_$ac_safe=yes"
4029 echo "configure: failed program was:" >&5
4030 cat conftest.$ac_ext >&5
4032 eval "ac_cv_header_$ac_safe=no"
4036 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4037 echo "$ac_t""yes" 1>&6
4038 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4039 cat >> confdefs.h <<EOF
4040 #define $ac_tr_hdr 1
4044 echo "$ac_t""no" 1>&6
4053 # Only perform the check for file, if the check method requires it
4054 case $deplibs_check_method in
4056 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4057 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4058 echo "configure:4059: checking for ${ac_tool_prefix}file" >&5
4059 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4060 echo $ac_n "(cached) $ac_c" 1>&6
4064 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4067 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4070 ac_save_MAGIC_CMD="$MAGIC_CMD"
4071 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4072 ac_dummy="/usr/bin:$PATH"
4073 for ac_dir in $ac_dummy; do
4074 test -z "$ac_dir" && ac_dir=.
4075 if test -f $ac_dir/${ac_tool_prefix}file; then
4076 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4077 if test -n "$file_magic_test_file"; then
4078 case $deplibs_check_method in
4080 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4081 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4082 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4083 egrep "$file_magic_regex" > /dev/null; then
4088 *** Warning: the command libtool uses to detect shared libraries,
4089 *** $file_magic_cmd, produces output that libtool cannot recognize.
4090 *** The result is that libtool may fail to recognize shared libraries
4091 *** as such. This will affect the creation of libtool libraries that
4092 *** depend on shared libraries, but programs linked with such libtool
4093 *** libraries will work regardless of this problem. Nevertheless, you
4094 *** may want to report the problem to your system manager and/or to
4095 *** bug-libtool@gnu.org
4105 MAGIC_CMD="$ac_save_MAGIC_CMD"
4110 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4111 if test -n "$MAGIC_CMD"; then
4112 echo "$ac_t""$MAGIC_CMD" 1>&6
4114 echo "$ac_t""no" 1>&6
4117 if test -z "$lt_cv_path_MAGIC_CMD"; then
4118 if test -n "$ac_tool_prefix"; then
4119 echo $ac_n "checking for file""... $ac_c" 1>&6
4120 echo "configure:4121: checking for file" >&5
4121 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4126 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4129 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4132 ac_save_MAGIC_CMD="$MAGIC_CMD"
4133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4134 ac_dummy="/usr/bin:$PATH"
4135 for ac_dir in $ac_dummy; do
4136 test -z "$ac_dir" && ac_dir=.
4137 if test -f $ac_dir/file; then
4138 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4139 if test -n "$file_magic_test_file"; then
4140 case $deplibs_check_method in
4142 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4143 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4144 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4145 egrep "$file_magic_regex" > /dev/null; then
4150 *** Warning: the command libtool uses to detect shared libraries,
4151 *** $file_magic_cmd, produces output that libtool cannot recognize.
4152 *** The result is that libtool may fail to recognize shared libraries
4153 *** as such. This will affect the creation of libtool libraries that
4154 *** depend on shared libraries, but programs linked with such libtool
4155 *** libraries will work regardless of this problem. Nevertheless, you
4156 *** may want to report the problem to your system manager and/or to
4157 *** bug-libtool@gnu.org
4167 MAGIC_CMD="$ac_save_MAGIC_CMD"
4172 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4173 if test -n "$MAGIC_CMD"; then
4174 echo "$ac_t""$MAGIC_CMD" 1>&6
4176 echo "$ac_t""no" 1>&6
4188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4191 echo "configure:4192: checking for $ac_word" >&5
4192 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4193 echo $ac_n "(cached) $ac_c" 1>&6
4195 if test -n "$RANLIB"; then
4196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4198 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4200 for ac_dir in $ac_dummy; do
4201 test -z "$ac_dir" && ac_dir=.
4202 if test -f $ac_dir/$ac_word; then
4203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4210 RANLIB="$ac_cv_prog_RANLIB"
4211 if test -n "$RANLIB"; then
4212 echo "$ac_t""$RANLIB" 1>&6
4214 echo "$ac_t""no" 1>&6
4218 if test -z "$ac_cv_prog_RANLIB"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "ranlib", so it can be a program name with args.
4221 set dummy ranlib; ac_word=$2
4222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4223 echo "configure:4224: checking for $ac_word" >&5
4224 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4225 echo $ac_n "(cached) $ac_c" 1>&6
4227 if test -n "$RANLIB"; then
4228 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4232 for ac_dir in $ac_dummy; do
4233 test -z "$ac_dir" && ac_dir=.
4234 if test -f $ac_dir/$ac_word; then
4235 ac_cv_prog_RANLIB="ranlib"
4240 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4243 RANLIB="$ac_cv_prog_RANLIB"
4244 if test -n "$RANLIB"; then
4245 echo "$ac_t""$RANLIB" 1>&6
4247 echo "$ac_t""no" 1>&6
4255 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}strip; ac_word=$2
4257 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4258 echo "configure:4259: checking for $ac_word" >&5
4259 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4260 echo $ac_n "(cached) $ac_c" 1>&6
4262 if test -n "$STRIP"; then
4263 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4265 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4267 for ac_dir in $ac_dummy; do
4268 test -z "$ac_dir" && ac_dir=.
4269 if test -f $ac_dir/$ac_word; then
4270 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4277 STRIP="$ac_cv_prog_STRIP"
4278 if test -n "$STRIP"; then
4279 echo "$ac_t""$STRIP" 1>&6
4281 echo "$ac_t""no" 1>&6
4285 if test -z "$ac_cv_prog_STRIP"; then
4286 if test -n "$ac_tool_prefix"; then
4287 # Extract the first word of "strip", so it can be a program name with args.
4288 set dummy strip; ac_word=$2
4289 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4290 echo "configure:4291: checking for $ac_word" >&5
4291 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4292 echo $ac_n "(cached) $ac_c" 1>&6
4294 if test -n "$STRIP"; then
4295 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4299 for ac_dir in $ac_dummy; do
4300 test -z "$ac_dir" && ac_dir=.
4301 if test -f $ac_dir/$ac_word; then
4302 ac_cv_prog_STRIP="strip"
4307 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4310 STRIP="$ac_cv_prog_STRIP"
4311 if test -n "$STRIP"; then
4312 echo "$ac_t""$STRIP" 1>&6
4314 echo "$ac_t""no" 1>&6
4324 enable_win32_dll=yes
4326 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4327 if test "${enable_libtool_lock+set}" = set; then
4328 enableval="$enable_libtool_lock"
4332 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4334 # Some flags need to be propagated to the compiler or linker for good
4338 # Find out which ABI we are using.
4339 echo '#line 4340 "configure"' > conftest.$ac_ext
4340 if { (eval echo configure:4341: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4341 case `/usr/bin/file conftest.$ac_objext` in
4357 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4358 SAVE_CFLAGS="$CFLAGS"
4359 CFLAGS="$CFLAGS -belf"
4360 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4361 echo "configure:4362: checking whether the C compiler needs -belf" >&5
4362 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4363 echo $ac_n "(cached) $ac_c" 1>&6
4367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4368 ac_cpp='$CPP $CPPFLAGS'
4369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4371 cross_compiling=$ac_cv_prog_cc_cross
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4381 if { (eval echo configure:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4383 lt_cv_cc_needs_belf=yes
4385 echo "configure: failed program was:" >&5
4386 cat conftest.$ac_ext >&5
4388 lt_cv_cc_needs_belf=no
4392 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4395 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4396 cross_compiling=$ac_cv_prog_cc_cross
4400 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4401 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4402 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4403 CFLAGS="$SAVE_CFLAGS"
4407 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4408 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4409 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4411 echo "configure:4412: checking for $ac_word" >&5
4412 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4413 echo $ac_n "(cached) $ac_c" 1>&6
4415 if test -n "$DLLTOOL"; then
4416 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4420 for ac_dir in $ac_dummy; do
4421 test -z "$ac_dir" && ac_dir=.
4422 if test -f $ac_dir/$ac_word; then
4423 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4430 DLLTOOL="$ac_cv_prog_DLLTOOL"
4431 if test -n "$DLLTOOL"; then
4432 echo "$ac_t""$DLLTOOL" 1>&6
4434 echo "$ac_t""no" 1>&6
4438 if test -z "$ac_cv_prog_DLLTOOL"; then
4439 if test -n "$ac_tool_prefix"; then
4440 # Extract the first word of "dlltool", so it can be a program name with args.
4441 set dummy dlltool; ac_word=$2
4442 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4443 echo "configure:4444: checking for $ac_word" >&5
4444 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4445 echo $ac_n "(cached) $ac_c" 1>&6
4447 if test -n "$DLLTOOL"; then
4448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4452 for ac_dir in $ac_dummy; do
4453 test -z "$ac_dir" && ac_dir=.
4454 if test -f $ac_dir/$ac_word; then
4455 ac_cv_prog_DLLTOOL="dlltool"
4460 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4463 DLLTOOL="$ac_cv_prog_DLLTOOL"
4464 if test -n "$DLLTOOL"; then
4465 echo "$ac_t""$DLLTOOL" 1>&6
4467 echo "$ac_t""no" 1>&6
4475 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4476 set dummy ${ac_tool_prefix}as; ac_word=$2
4477 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4478 echo "configure:4479: checking for $ac_word" >&5
4479 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4482 if test -n "$AS"; then
4483 ac_cv_prog_AS="$AS" # Let the user override the test.
4485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4487 for ac_dir in $ac_dummy; do
4488 test -z "$ac_dir" && ac_dir=.
4489 if test -f $ac_dir/$ac_word; then
4490 ac_cv_prog_AS="${ac_tool_prefix}as"
4498 if test -n "$AS"; then
4499 echo "$ac_t""$AS" 1>&6
4501 echo "$ac_t""no" 1>&6
4505 if test -z "$ac_cv_prog_AS"; then
4506 if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "as", so it can be a program name with args.
4508 set dummy as; ac_word=$2
4509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4510 echo "configure:4511: checking for $ac_word" >&5
4511 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4512 echo $ac_n "(cached) $ac_c" 1>&6
4514 if test -n "$AS"; then
4515 ac_cv_prog_AS="$AS" # Let the user override the test.
4517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4519 for ac_dir in $ac_dummy; do
4520 test -z "$ac_dir" && ac_dir=.
4521 if test -f $ac_dir/$ac_word; then
4527 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4531 if test -n "$AS"; then
4532 echo "$ac_t""$AS" 1>&6
4534 echo "$ac_t""no" 1>&6
4542 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4543 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4545 echo "configure:4546: checking for $ac_word" >&5
4546 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4547 echo $ac_n "(cached) $ac_c" 1>&6
4549 if test -n "$OBJDUMP"; then
4550 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4554 for ac_dir in $ac_dummy; do
4555 test -z "$ac_dir" && ac_dir=.
4556 if test -f $ac_dir/$ac_word; then
4557 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4564 OBJDUMP="$ac_cv_prog_OBJDUMP"
4565 if test -n "$OBJDUMP"; then
4566 echo "$ac_t""$OBJDUMP" 1>&6
4568 echo "$ac_t""no" 1>&6
4572 if test -z "$ac_cv_prog_OBJDUMP"; then
4573 if test -n "$ac_tool_prefix"; then
4574 # Extract the first word of "objdump", so it can be a program name with args.
4575 set dummy objdump; ac_word=$2
4576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4577 echo "configure:4578: checking for $ac_word" >&5
4578 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 if test -n "$OBJDUMP"; then
4582 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4586 for ac_dir in $ac_dummy; do
4587 test -z "$ac_dir" && ac_dir=.
4588 if test -f $ac_dir/$ac_word; then
4589 ac_cv_prog_OBJDUMP="objdump"
4594 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4597 OBJDUMP="$ac_cv_prog_OBJDUMP"
4598 if test -n "$OBJDUMP"; then
4599 echo "$ac_t""$OBJDUMP" 1>&6
4601 echo "$ac_t""no" 1>&6
4610 # recent cygwin and mingw systems supply a stub DllMain which the user
4611 # can override, but on older systems we have to supply one
4612 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4613 echo "configure:4614: checking if libtool should supply DllMain function" >&5
4614 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4615 echo $ac_n "(cached) $ac_c" 1>&6
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4622 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4626 if { (eval echo configure:4627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4628 lt_cv_need_dllmain=no
4630 echo "configure: failed program was:" >&5
4631 cat conftest.$ac_ext >&5
4633 lt_cv_need_dllmain=yes
4638 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4641 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4642 # old mingw systems require "-dll" to link a DLL, while more recent ones
4644 SAVE_CFLAGS="$CFLAGS"
4645 CFLAGS="$CFLAGS -mdll"
4646 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4647 echo "configure:4648: checking how to link DLLs" >&5
4648 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4649 echo $ac_n "(cached) $ac_c" 1>&6
4651 cat > conftest.$ac_ext <<EOF
4652 #line 4653 "configure"
4653 #include "confdefs.h"
4659 if { (eval echo configure:4660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4661 lt_cv_cc_dll_switch=-mdll
4663 echo "configure: failed program was:" >&5
4664 cat conftest.$ac_ext >&5
4666 lt_cv_cc_dll_switch=-dll
4671 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4672 CFLAGS="$SAVE_CFLAGS" ;;
4673 *-*-cygwin* | *-*-pw32*)
4674 # cygwin systems need to pass --dll to the linker, and not link
4675 # crt.o which will require a WinMain@16 definition.
4676 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4682 # Sed substitution that helps us do robust quoting. It backslashifies
4683 # metacharacters that are still active within double-quoted strings.
4684 Xsed='sed -e s/^X//'
4685 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4687 # Same as above, but do not quote variable references.
4688 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4690 # Sed substitution to delay expansion of an escaped shell variable in a
4691 # double_quote_subst'ed string.
4692 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4698 default_ofile=libtool
4699 can_build_shared=yes
4701 # All known linkers require a `.a' archive for static linking (except M$VC,
4702 # which needs '.lib').
4704 ltmain="$ac_aux_dir/ltmain.sh"
4705 ofile="$default_ofile"
4706 with_gnu_ld="$lt_cv_prog_gnu_ld"
4707 need_locks="$enable_libtool_lock"
4710 old_CFLAGS="$CFLAGS"
4712 # Set sane defaults for various variables
4713 test -z "$AR" && AR=ar
4714 test -z "$AR_FLAGS" && AR_FLAGS=cru
4715 test -z "$AS" && AS=as
4716 test -z "$CC" && CC=cc
4717 test -z "$DLLTOOL" && DLLTOOL=dlltool
4718 test -z "$LD" && LD=ld
4719 test -z "$LN_S" && LN_S="ln -s"
4720 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4721 test -z "$NM" && NM=nm
4722 test -z "$OBJDUMP" && OBJDUMP=objdump
4723 test -z "$RANLIB" && RANLIB=:
4724 test -z "$STRIP" && STRIP=:
4725 test -z "$ac_objext" && ac_objext=o
4727 if test x"$host" != x"$build"; then
4728 ac_tool_prefix=${host_alias}-
4733 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4736 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4741 # AIX sometimes has problems with the GCC collect2 program. For some
4742 # reason, if we set the COLLECT_NAMES environment variable, the problems
4743 # vanish in a puff of smoke.
4744 if test "X${COLLECT_NAMES+set}" != Xset; then
4746 export COLLECT_NAMES
4751 # Determine commands to create old-style static archives.
4752 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4753 old_postinstall_cmds='chmod 644 $oldlib'
4754 old_postuninstall_cmds=
4756 if test -n "$RANLIB"; then
4759 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4762 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4765 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4768 # Allow CC to be a program name with arguments.
4772 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4773 echo "configure:4774: checking for objdir" >&5
4774 rm -f .libs 2>/dev/null
4775 mkdir .libs 2>/dev/null
4776 if test -d .libs; then
4779 # MS-DOS does not allow filenames that begin with a dot.
4782 rmdir .libs 2>/dev/null
4783 echo "$ac_t""$objdir" 1>&6
4786 # Check whether --with-pic or --without-pic was given.
4787 if test "${with_pic+set}" = set; then
4794 test -z "$pic_mode" && pic_mode=default
4796 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4797 # in isolation, and that seeing it set (from the cache) indicates that
4798 # the associated values are set (in the cache) correctly too.
4799 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4800 echo "configure:4801: checking for $compiler option to produce PIC" >&5
4801 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4802 echo $ac_n "(cached) $ac_c" 1>&6
4805 lt_cv_prog_cc_shlib=
4807 lt_cv_prog_cc_static=
4808 lt_cv_prog_cc_no_builtin=
4809 lt_cv_prog_cc_can_build_shared=$can_build_shared
4811 if test "$GCC" = yes; then
4812 lt_cv_prog_cc_wl='-Wl,'
4813 lt_cv_prog_cc_static='-static'
4817 # Below there is a dirty hack to force normal static linking with -ldl
4818 # The problem is because libdl dynamically linked with both libc and
4819 # libC (AIX C++ library), which obviously doesn't included in libraries
4820 # list by gcc. This cause undefined symbols with -static flags.
4821 # This hack allows C programs to be linked with "-static -ldl", but
4822 # not sure about C++ programs.
4823 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4826 # FIXME: we need at least 68020 code to build shared libraries, but
4827 # adding the `-m68020' flag to GCC prevents building anything better,
4829 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4831 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4832 # PIC is the default for these OSes.
4834 darwin* | rhapsody*)
4835 # PIC is the default on this platform
4836 # Common symbols not allowed in MH_DYLIB files
4837 lt_cv_prog_cc_pic='-fno-common'
4839 cygwin* | mingw* | pw32* | os2*)
4840 # This hack is so that the source file can tell whether it is being
4841 # built for inclusion in a dll (and should export symbols for example).
4842 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4845 if test -d /usr/nec; then
4846 lt_cv_prog_cc_pic=-Kconform_pic
4850 lt_cv_prog_cc_pic='-fPIC'
4854 # PORTME Check for PIC flags for the system compiler.
4856 aix3* | aix4* | aix5*)
4857 lt_cv_prog_cc_wl='-Wl,'
4858 # All AIX code is PIC.
4859 if test "$host_cpu" = ia64; then
4860 # AIX 5 now supports IA64 processor
4861 lt_cv_prog_cc_static='-Bstatic'
4863 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4867 hpux9* | hpux10* | hpux11*)
4868 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4869 lt_cv_prog_cc_wl='-Wl,'
4870 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4871 lt_cv_prog_cc_pic='+Z'
4874 irix5* | irix6* | nonstopux*)
4875 lt_cv_prog_cc_wl='-Wl,'
4876 lt_cv_prog_cc_static='-non_shared'
4877 # PIC (with -KPIC) is the default.
4880 cygwin* | mingw* | pw32* | os2*)
4881 # This hack is so that the source file can tell whether it is being
4882 # built for inclusion in a dll (and should export symbols for example).
4883 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4887 lt_cv_prog_cc_pic='-KPIC'
4888 lt_cv_prog_cc_static='-Bstatic'
4892 # XPLINK code is PIC by default
4895 osf3* | osf4* | osf5*)
4896 # All OSF/1 code is PIC.
4897 lt_cv_prog_cc_wl='-Wl,'
4898 lt_cv_prog_cc_static='-non_shared'
4902 lt_cv_prog_cc_pic='-Kpic'
4903 lt_cv_prog_cc_static='-dn'
4904 lt_cv_prog_cc_shlib='-belf'
4908 lt_cv_prog_cc_pic='-KPIC'
4909 lt_cv_prog_cc_static='-Bstatic'
4910 lt_cv_prog_cc_wl='-Wl,'
4914 lt_cv_prog_cc_pic='-PIC'
4915 lt_cv_prog_cc_static='-Bstatic'
4916 lt_cv_prog_cc_wl='-Qoption ld '
4919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4920 lt_cv_prog_cc_pic='-KPIC'
4921 lt_cv_prog_cc_static='-Bstatic'
4922 lt_cv_prog_cc_wl='-Wl,'
4926 lt_cv_prog_cc_pic='-pic'
4927 lt_cv_prog_cc_static='-Bstatic'
4931 if test -d /usr/nec ;then
4932 lt_cv_prog_cc_pic='-Kconform_pic'
4933 lt_cv_prog_cc_static='-Bstatic'
4938 lt_cv_prog_cc_can_build_shared=no
4945 if test -z "$lt_cv_prog_cc_pic"; then
4946 echo "$ac_t""none" 1>&6
4948 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
4950 # Check to make sure the pic_flag actually works.
4951 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
4952 echo "configure:4953: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4953 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6
4956 save_CFLAGS="$CFLAGS"
4957 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4958 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure"
4960 #include "confdefs.h"
4966 if { (eval echo configure:4967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4969 hpux9* | hpux10* | hpux11*)
4970 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4971 # they create non-PIC objects. So, if there were any warnings, we
4972 # assume that PIC is not supported.
4973 if test -s conftest.err; then
4974 lt_cv_prog_cc_pic_works=no
4976 lt_cv_prog_cc_pic_works=yes
4980 lt_cv_prog_cc_pic_works=yes
4985 echo "configure: failed program was:" >&5
4986 cat conftest.$ac_ext >&5
4988 lt_cv_prog_cc_pic_works=no
4992 CFLAGS="$save_CFLAGS"
4997 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4999 lt_cv_prog_cc_can_build_shared=no
5001 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5004 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5007 # Check for any special shared library compilation flags.
5008 if test -n "$lt_cv_prog_cc_shlib"; then
5009 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5010 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5012 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5013 lt_cv_prog_cc_can_build_shared=no
5017 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5018 echo "configure:5019: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5019 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5020 echo $ac_n "(cached) $ac_c" 1>&6
5022 lt_cv_prog_cc_static_works=no
5023 save_LDFLAGS="$LDFLAGS"
5024 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5025 cat > conftest.$ac_ext <<EOF
5026 #line 5027 "configure"
5027 #include "confdefs.h"
5033 if { (eval echo configure:5034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5035 lt_cv_prog_cc_static_works=yes
5037 echo "configure: failed program was:" >&5
5038 cat conftest.$ac_ext >&5
5041 LDFLAGS="$save_LDFLAGS"
5046 # Belt *and* braces to stop my trousers falling down:
5047 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5048 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5050 pic_flag="$lt_cv_prog_cc_pic"
5051 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5052 wl="$lt_cv_prog_cc_wl"
5053 link_static_flag="$lt_cv_prog_cc_static"
5054 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5055 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5058 # Check to see if options -o and -c are simultaneously supported by compiler
5059 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5060 echo "configure:5061: checking if $compiler supports -c -o file.$ac_objext" >&5
5061 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5062 echo $ac_n "(cached) $ac_c" 1>&6
5065 $rm -r conftest 2>/dev/null
5068 echo "int some_variable = 0;" > conftest.$ac_ext
5070 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5071 # that will create temporary files in the current directory regardless of
5072 # the output directory. Thus, making CWD read-only will cause this test
5073 # to fail, enabling locking or at least warning the user not to do parallel
5076 save_CFLAGS="$CFLAGS"
5077 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5079 if { (eval echo configure:5080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5080 # The compiler can only warn and ignore the option if not recognized
5081 # So say no if there are warnings
5082 if test -s out/conftest.err; then
5083 lt_cv_compiler_c_o=no
5085 lt_cv_compiler_c_o=yes
5088 # Append any errors to the config.log.
5089 cat out/conftest.err 1>&5
5090 lt_cv_compiler_c_o=no
5092 CFLAGS="$save_CFLAGS"
5098 $rm -r conftest 2>/dev/null
5102 compiler_c_o=$lt_cv_compiler_c_o
5103 echo "$ac_t""$compiler_c_o" 1>&6
5105 if test x"$compiler_c_o" = x"yes"; then
5106 # Check to see if we can write to a .lo
5107 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5108 echo "configure:5109: checking if $compiler supports -c -o file.lo" >&5
5109 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5110 echo $ac_n "(cached) $ac_c" 1>&6
5113 lt_cv_compiler_o_lo=no
5114 save_CFLAGS="$CFLAGS"
5115 CFLAGS="$CFLAGS -c -o conftest.lo"
5116 save_objext="$ac_objext"
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5123 int some_variable = 0;
5126 if { (eval echo configure:5127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5128 # The compiler can only warn and ignore the option if not recognized
5129 # So say no if there are warnings
5130 if test -s conftest.err; then
5131 lt_cv_compiler_o_lo=no
5133 lt_cv_compiler_o_lo=yes
5137 echo "configure: failed program was:" >&5
5138 cat conftest.$ac_ext >&5
5141 ac_objext="$save_objext"
5142 CFLAGS="$save_CFLAGS"
5146 compiler_o_lo=$lt_cv_compiler_o_lo
5147 echo "$ac_t""$compiler_o_lo" 1>&6
5152 # Check to see if we can do hard links to lock some files if needed
5153 hard_links="nottested"
5154 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5155 # do not overwrite the value of need_locks provided by the user
5156 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5157 echo "configure:5158: checking if we can lock with hard links" >&5
5160 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5162 ln conftest.a conftest.b 2>&5 || hard_links=no
5163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5164 echo "$ac_t""$hard_links" 1>&6
5165 if test "$hard_links" = no; then
5166 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5173 if test "$GCC" = yes; then
5174 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5175 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5176 echo "configure:5177: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5177 echo "int some_variable = 0;" > conftest.$ac_ext
5178 save_CFLAGS="$CFLAGS"
5179 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5180 compiler_rtti_exceptions=no
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5186 int some_variable = 0;
5189 if { (eval echo configure:5190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5191 # The compiler can only warn and ignore the option if not recognized
5192 # So say no if there are warnings
5193 if test -s conftest.err; then
5194 compiler_rtti_exceptions=no
5196 compiler_rtti_exceptions=yes
5200 echo "configure: failed program was:" >&5
5201 cat conftest.$ac_ext >&5
5204 CFLAGS="$save_CFLAGS"
5205 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5207 if test "$compiler_rtti_exceptions" = "yes"; then
5208 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5210 no_builtin_flag=' -fno-builtin'
5214 # See if the linker supports building shared libraries.
5215 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5216 echo "configure:5217: checking whether the linker ($LD) supports shared libraries" >&5
5218 allow_undefined_flag=
5220 need_lib_prefix=unknown
5221 need_version=unknown
5222 # when you set need_version to no, make sure it does not cause -set_version
5223 # flags to be left without arguments
5225 archive_expsym_cmds=
5226 old_archive_from_new_cmds=
5227 old_archive_from_expsyms_cmds=
5228 export_dynamic_flag_spec=
5229 whole_archive_flag_spec=
5230 thread_safe_flag_spec=
5231 hardcode_into_libs=no
5232 hardcode_libdir_flag_spec=
5233 hardcode_libdir_separator=
5236 hardcode_shlibpath_var=unsupported
5238 link_all_deplibs=unknown
5239 always_export_symbols=no
5240 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5241 # include_expsyms should be a list of space-separated symbols to be *always*
5242 # included in the symbol list
5244 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5245 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5246 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5247 # as well as any symbol that contains `d'.
5248 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5250 # platforms (ab)use it in PIC code, but their linkers get confused if
5251 # the symbol is explicitly referenced. Since portable code cannot
5252 # rely on this symbol name, it's probably fine to never include it in
5253 # preloaded symbol tables.
5254 extract_expsyms_cmds=
5257 cygwin* | mingw* | pw32*)
5258 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5259 # When not using gcc, we currently assume that we are using
5260 # Microsoft Visual C++.
5261 if test "$GCC" != yes; then
5271 if test "$with_gnu_ld" = yes; then
5272 # If archive_cmds runs LD, not CC, wlarc should be empty
5275 # See if GNU ld supports shared libraries.
5277 aix3* | aix4* | aix5*)
5278 # On AIX, the GNU linker is very broken
5279 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5283 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5284 *** to be unable to reliably create shared libraries on AIX.
5285 *** Therefore, libtool is disabling shared libraries support. If you
5286 *** really care for shared libraries, you may want to modify your PATH
5287 *** so that a non-GNU linker is found, and then restart.
5293 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5294 hardcode_libdir_flag_spec='-L$libdir'
5295 hardcode_minus_L=yes
5297 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5298 # that the semantics of dynamic libraries on AmigaOS, at least up
5299 # to version 4, is to share data among multiple programs linked
5300 # with the same dynamic library. Since this doesn't match the
5301 # behavior of shared libraries on other platforms, we can use
5307 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5308 allow_undefined_flag=unsupported
5309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5310 # support --undefined. This deserves some investigation. FIXME
5311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5317 cygwin* | mingw* | pw32*)
5318 # hardcode_libdir_flag_spec is actually meaningless, as there is
5319 # no search path for DLLs.
5320 hardcode_libdir_flag_spec='-L$libdir'
5321 allow_undefined_flag=unsupported
5322 always_export_symbols=yes
5324 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5325 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5326 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5327 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5328 else $CC -o impgen impgen.c ; fi)~
5329 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5331 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5333 # cygwin and mingw dlls have different entry points and sets of symbols
5335 # FIXME: what about values for MSVC?
5336 dll_entry=__cygwin_dll_entry@12
5337 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5341 dll_entry=_DllMainCRTStartup@12
5342 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5346 # mingw and cygwin differ, and it's simplest to just exclude the union
5347 # of the two symbol sets.
5348 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5350 # recent cygwin and mingw systems supply a stub DllMain which the user
5351 # can override, but on older systems we have to supply one (in ltdll.c)
5352 if test "x$lt_cv_need_dllmain" = "xyes"; then
5353 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5354 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5355 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5361 # Extract the symbol export list from an `--export-all' def file,
5362 # then regenerate the def file from the symbol export list, so that
5363 # the compiled dll only exports the symbol export list.
5364 # Be careful not to strip the DATA tag left be newer dlltools.
5365 export_symbols_cmds="$ltdll_cmds"'
5366 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5367 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5369 # If the export-symbols file already is a .def file (1st line
5370 # is EXPORTS), use it as is.
5371 # If DATA tags from a recent dlltool are present, honour them!
5372 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5373 cp $export_symbols $output_objdir/$soname-def;
5375 echo EXPORTS > $output_objdir/$soname-def;
5377 cat $export_symbols | while read symbol; do
5380 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5381 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5382 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5384 _lt_hint=`expr 1 + \$_lt_hint`;
5388 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5389 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5390 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5391 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5392 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5397 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5400 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5401 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5406 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5411 *** create shared libraries on Solaris systems. Therefore, libtool
5412 *** is disabling shared libraries support. We urge you to upgrade GNU
5413 *** binutils to release 2.9.1 or newer. Another option is to modify
5414 *** your PATH or compiler configuration so that the native linker is
5415 *** used, and then restart.
5418 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5427 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5430 hardcode_shlibpath_var=no
5434 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5436 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5443 if test "$ld_shlibs" = yes; then
5444 runpath_var=LD_RUN_PATH
5445 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5446 export_dynamic_flag_spec='${wl}--export-dynamic'
5448 cygwin* | mingw* | pw32*)
5449 # dlltool doesn't understand --whole-archive et. al.
5450 whole_archive_flag_spec=
5453 # ancient GNU ld didn't support --whole-archive et. al.
5454 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5455 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5457 whole_archive_flag_spec=
5463 # PORTME fill in a description of your system's linker (not GNU ld)
5466 allow_undefined_flag=unsupported
5467 always_export_symbols=yes
5468 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5469 # Note: this linker hardcodes the directories in LIBPATH if there
5470 # are no directories specified by -L.
5471 hardcode_minus_L=yes
5472 if test "$GCC" = yes && test -z "$link_static_flag"; then
5473 # Neither direct hardcoding nor static linking is supported with a
5475 hardcode_direct=unsupported
5480 if test "$host_cpu" = ia64; then
5481 # On IA64, the linker does run time linking by default, so we don't
5482 # have to do anything special.
5483 aix_use_runtimelinking=no
5484 exp_sym_flag='-Bexport'
5487 aix_use_runtimelinking=no
5489 # Test if we are trying to use run time linking or normal
5490 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5491 # need to do runtime linking.
5492 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5493 for ld_flag in $LDFLAGS; do
5496 aix_use_runtimelinking=yes
5503 exp_sym_flag='-bexport'
5504 no_entry_flag='-bnoentry'
5507 # When large executables or shared objects are built, AIX ld can
5508 # have problems creating the table of contents. If linking a library
5509 # or program results in "error TOC overflow" add -mminimal-toc to
5510 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5511 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5515 hardcode_libdir_separator=':'
5516 if test "$GCC" = yes; then
5517 case $host_os in aix4.[012]|aix4.[012].*)
5518 collect2name=`${CC} -print-prog-name=collect2`
5519 if test -f "$collect2name" && \
5520 strings "$collect2name" | grep resolve_lib_name >/dev/null
5522 # We have reworked collect2
5525 # We have old collect2
5526 hardcode_direct=unsupported
5527 # It fails to find uninstalled libraries when the uninstalled
5528 # path is not listed in the libpath. Setting hardcode_minus_L
5529 # to unsupported forces relinking
5530 hardcode_minus_L=yes
5531 hardcode_libdir_flag_spec='-L$libdir'
5532 hardcode_libdir_separator=
5536 shared_flag='-shared'
5539 if test "$host_cpu" = ia64; then
5540 shared_flag='${wl}-G'
5542 if test "$aix_use_runtimelinking" = yes; then
5543 shared_flag='${wl}-G'
5545 shared_flag='${wl}-bM:SRE'
5550 # It seems that -bexpall can do strange things, so it is better to
5551 # generate a list of symbols to export.
5552 always_export_symbols=yes
5553 if test "$aix_use_runtimelinking" = yes; then
5554 # Warning - without using the other runtime loading flags (-brtl),
5555 # -berok will link without error, but may produce a broken library.
5556 allow_undefined_flag='-berok'
5557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5558 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5560 if test "$host_cpu" = ia64; then
5561 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5562 allow_undefined_flag="-z nodefs"
5563 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5565 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5566 # Warning - without using the other run time loading flags,
5567 # -berok will link without error, but may produce a broken library.
5568 allow_undefined_flag='${wl}-berok'
5569 # This is a bit strange, but is similar to how AIX traditionally builds
5570 # it's shared libraries.
5571 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5577 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5578 hardcode_libdir_flag_spec='-L$libdir'
5579 hardcode_minus_L=yes
5580 # see comment about different semantics on the GNU ld section
5584 cygwin* | mingw* | pw32*)
5585 # When not using gcc, we currently assume that we are using
5586 # Microsoft Visual C++.
5587 # hardcode_libdir_flag_spec is actually meaningless, as there is
5588 # no search path for DLLs.
5589 hardcode_libdir_flag_spec=' '
5590 allow_undefined_flag=unsupported
5591 # Tell ltmain to make .lib files, not .a files.
5593 # FIXME: Setting linknames here is a bad hack.
5594 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5595 # The linker will automatically build a .lib file if we build a DLL.
5596 old_archive_from_new_cmds='true'
5597 # FIXME: Should let the user specify the lib program.
5598 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5599 fix_srcfile_path='`cygpath -w "$srcfile"`'
5602 darwin* | rhapsody*)
5604 rhapsody* | darwin1.[012])
5605 allow_undefined_flag='-undefined suppress'
5608 allow_undefined_flag='-flat_namespace -undefined suppress'
5611 # FIXME: Relying on posixy $() will cause problems for
5612 # cross-compilation, but unfortunately the echo tests do not
5613 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5614 # `"' quotes if we put them in here... so don't!
5615 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5616 # We need to add '_' to the symbols in $export_symbols first
5617 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5619 hardcode_shlibpath_var=no
5620 whole_archive_flag_spec='-all_load $convenience'
5627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5628 # support. Future versions do this automatically, but an explicit c++rt0.o
5629 # does not break anything, and helps significantly (at the cost of a little
5632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5633 hardcode_libdir_flag_spec='-R$libdir'
5635 hardcode_shlibpath_var=no
5638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5642 hardcode_minus_L=yes
5643 hardcode_shlibpath_var=no
5646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5649 hardcode_libdir_flag_spec='-R$libdir'
5651 hardcode_shlibpath_var=no
5654 hpux9* | hpux10* | hpux11*)
5656 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
5657 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5659 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5660 hardcode_libdir_separator=:
5662 hardcode_minus_L=yes # Not in the search PATH, but as the default
5663 # location of the library.
5664 export_dynamic_flag_spec='${wl}-E'
5667 irix5* | irix6* | nonstopux*)
5668 if test "$GCC" = yes; then
5669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5672 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5673 hardcode_libdir_flag_spec='-rpath $libdir'
5675 hardcode_libdir_separator=:
5676 link_all_deplibs=yes
5680 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5683 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5685 hardcode_libdir_flag_spec='-R$libdir'
5687 hardcode_shlibpath_var=no
5691 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5693 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5694 hardcode_libdir_separator=:
5695 hardcode_shlibpath_var=no
5700 hardcode_shlibpath_var=no
5701 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5703 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5704 export_dynamic_flag_spec='${wl}-E'
5707 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5708 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5709 hardcode_libdir_flag_spec='-R$libdir'
5712 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5720 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5721 cp \$linknames \$output_objdir && linknames=''"
5722 export_dynamic_flag_spec="-Wl,DLL"
5726 hardcode_libdir_flag_spec='-L$libdir'
5727 hardcode_minus_L=yes
5728 allow_undefined_flag=unsupported
5729 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5730 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5734 if test "$GCC" = yes; then
5735 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5736 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5738 allow_undefined_flag=' -expect_unresolved \*'
5739 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5741 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5742 hardcode_libdir_separator=:
5745 osf4* | osf5*) # as osf3* with the addition of -msym flag
5746 if test "$GCC" = yes; then
5747 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5748 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5751 allow_undefined_flag=' -expect_unresolved \*'
5752 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5753 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5754 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5756 #Both c and cxx compiler support -rpath directly
5757 hardcode_libdir_flag_spec='-rpath $libdir'
5759 hardcode_libdir_separator=:
5763 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5764 hardcode_shlibpath_var=no
5765 runpath_var=LD_RUN_PATH
5766 hardcode_runpath_var=yes
5767 export_dynamic_flag_spec='${wl}-Bexport'
5771 # gcc --version < 3.0 without binutils cannot create self contained
5772 # shared libraries reliably, requiring libgcc.a to resolve some of
5773 # the object symbols generated in some cases. Libraries that use
5774 # assert need libgcc.a to resolve __eprintf, for example. Linking
5775 # a copy of libgcc.a into every shared library to guarantee resolving
5776 # such symbols causes other problems: According to Tim Van Holder
5777 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5778 # (to the application) exception stack for one thing.
5779 no_undefined_flag=' -z defs'
5780 if test "$GCC" = yes; then
5781 case `$CC --version 2>/dev/null` in
5785 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5786 *** create self contained shared libraries on Solaris systems, without
5787 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5788 *** -no-undefined support, which will at least allow you to build shared
5789 *** libraries. However, you may find that when you link such libraries
5790 *** into an application without using GCC, you have to manually add
5791 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5792 *** upgrade to a newer version of GCC. Another option is to rebuild your
5793 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5800 # $CC -shared without GNU ld will not create a library from C++
5801 # object files and a static libstdc++, better avoid it by now
5802 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5803 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5804 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5805 hardcode_libdir_flag_spec='-R$libdir'
5806 hardcode_shlibpath_var=no
5808 solaris2.[0-5] | solaris2.[0-5].*) ;;
5809 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5810 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5812 link_all_deplibs=yes
5816 if test "x$host_vendor" = xsequent; then
5817 # Use $CC to link under sequent, because it throws in some extra .o
5818 # files that make .init and .fini sections work.
5819 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5821 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5823 hardcode_libdir_flag_spec='-L$libdir'
5825 hardcode_minus_L=yes
5826 hardcode_shlibpath_var=no
5830 case $host_vendor in
5832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5833 hardcode_direct=yes # is this really true???
5836 ## LD is ld it makes a PLAMLIB
5837 ## CC just makes a GrossModule.
5838 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5839 reload_cmds='$CC -r -o $output$reload_objs'
5843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5844 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5847 runpath_var='LD_RUN_PATH'
5848 hardcode_shlibpath_var=no
5852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5853 hardcode_shlibpath_var=no
5854 export_dynamic_flag_spec='-Bexport'
5858 no_undefined_flag=' -z text'
5859 # $CC -shared without GNU ld will not create a library from C++
5860 # object files and a static libstdc++, better avoid it by now
5861 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5862 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5863 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5864 hardcode_libdir_flag_spec=
5865 hardcode_shlibpath_var=no
5866 runpath_var='LD_RUN_PATH'
5870 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5871 hardcode_libdir_flag_spec='-L$libdir'
5872 hardcode_shlibpath_var=no
5876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5877 hardcode_libdir_flag_spec='-L$libdir'
5878 hardcode_shlibpath_var=no
5882 if test -d /usr/nec; then
5883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5884 hardcode_shlibpath_var=no
5885 runpath_var=LD_RUN_PATH
5886 hardcode_runpath_var=yes
5892 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5895 hardcode_shlibpath_var=no
5896 hardcode_runpath_var=yes
5897 runpath_var=LD_RUN_PATH
5900 sysv5uw7* | unixware7*)
5901 no_undefined_flag='${wl}-z ${wl}text'
5902 if test "$GCC" = yes; then
5903 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5905 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5907 runpath_var='LD_RUN_PATH'
5908 hardcode_shlibpath_var=no
5916 echo "$ac_t""$ld_shlibs" 1>&6
5917 test "$ld_shlibs" = no && can_build_shared=no
5919 # Check hardcoding attributes.
5920 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
5921 echo "configure:5922: checking how to hardcode library paths into programs" >&5
5923 if test -n "$hardcode_libdir_flag_spec" || \
5924 test -n "$runpath_var"; then
5926 # We can hardcode non-existant directories.
5927 if test "$hardcode_direct" != no &&
5928 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5929 # have to relink, otherwise we might link with an installed library
5930 # when we should be linking with a yet-to-be-installed one
5931 ## test "$hardcode_shlibpath_var" != no &&
5932 test "$hardcode_minus_L" != no; then
5933 # Linking always hardcodes the temporary library directory.
5934 hardcode_action=relink
5936 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5937 hardcode_action=immediate
5940 # We cannot hardcode anything, or else we can only hardcode existing
5942 hardcode_action=unsupported
5944 echo "$ac_t""$hardcode_action" 1>&6
5948 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
5949 echo "configure:5950: checking whether stripping libraries is possible" >&5
5950 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5951 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5952 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5953 echo "$ac_t""yes" 1>&6
5955 echo "$ac_t""no" 1>&6
5958 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5959 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5961 # PORTME Fill in your ld.so characteristics
5962 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
5963 echo "configure:5964: checking dynamic linker characteristics" >&5
5965 libname_spec='lib$name'
5972 shlibpath_overrides_runpath=unknown
5974 dynamic_linker="$host_os ld.so"
5975 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5976 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5981 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5982 shlibpath_var=LIBPATH
5984 # AIX has no versioning support, so we append a major version to the name.
5985 soname_spec='${libname}${release}.so$major'
5992 hardcode_into_libs=yes
5993 if test "$host_cpu" = ia64; then
5994 # AIX 5 supports IA64
5995 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5996 shlibpath_var=LD_LIBRARY_PATH
5998 # With GCC up to 2.95.x, collect2 would create an import file
5999 # for dependence libraries. The import file would start with
6000 # the line `#! .'. This would cause the generated library to
6001 # depend on `.', always an invalid library. This was fixed in
6002 # development snapshots of GCC prior to 3.0.
6004 aix4 | aix4.[01] | aix4.[01].*)
6005 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6007 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6014 # AIX (on Power*) has no versioning support, so currently we can
6015 # not hardcode correct soname into executable. Probably we can
6016 # add versioning support to collect2, so additional links can
6017 # be useful in future.
6018 if test "$aix_use_runtimelinking" = yes; then
6019 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6020 # instead of lib<name>.a to let people know that these are not
6021 # typical AIX shared libraries.
6022 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6024 # We preserve .a as extension for shared libraries through AIX4.2
6025 # and later when we are not doing run time linking.
6026 library_names_spec='${libname}${release}.a $libname.a'
6027 soname_spec='${libname}${release}.so$major'
6029 shlibpath_var=LIBPATH
6031 hardcode_into_libs=yes
6035 library_names_spec='$libname.ixlibrary $libname.a'
6036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6037 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6041 library_names_spec='${libname}.so'
6042 dynamic_linker="$host_os ld.so"
6043 shlibpath_var=LIBRARY_PATH
6049 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6050 soname_spec='${libname}${release}.so$major'
6051 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6052 shlibpath_var=LD_LIBRARY_PATH
6053 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6054 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6055 export_dynamic_flag_spec=-rdynamic
6056 # the default ld.so.conf also contains /usr/contrib/lib and
6057 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6058 # libtool to hard-code these into programs
6061 cygwin* | mingw* | pw32*)
6062 version_type=windows
6065 case $GCC,$host_os in
6067 library_names_spec='$libname.dll.a'
6068 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6069 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6070 dldir=$destdir/`dirname \$dlpath`~
6071 test -d \$dldir || mkdir -p \$dldir~
6072 $install_prog .libs/$dlname \$dldir/$dlname'
6073 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6074 dlpath=$dir/\$dldll~
6078 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6079 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6082 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6085 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6088 dynamic_linker='Win32 ld.exe'
6089 # FIXME: first we should search . and the directory the executable is in
6093 darwin* | rhapsody*)
6094 dynamic_linker="$host_os dyld"
6098 # FIXME: Relying on posixy $() will cause problems for
6099 # cross-compilation, but unfortunately the echo tests do not
6100 # yet detect zsh echo's removal of \ escapes.
6101 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6102 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6103 shlibpath_overrides_runpath=yes
6104 shlibpath_var=DYLD_LIBRARY_PATH
6112 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6113 version_type=freebsd-$objformat
6114 case $version_type in
6116 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6121 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6125 shlibpath_var=LD_LIBRARY_PATH
6128 shlibpath_overrides_runpath=yes
6131 shlibpath_overrides_runpath=no
6132 hardcode_into_libs=yes
6141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6142 soname_spec='${libname}${release}.so$major'
6143 shlibpath_var=LD_LIBRARY_PATH
6144 hardcode_into_libs=yes
6147 hpux9* | hpux10* | hpux11*)
6148 # Give a soname corresponding to the major version so that dld.sl refuses to
6149 # link against other versions.
6150 dynamic_linker="$host_os dld.sl"
6154 shlibpath_var=SHLIB_PATH
6155 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6156 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6157 soname_spec='${libname}${release}.sl$major'
6158 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6159 postinstall_cmds='chmod 555 $lib'
6162 irix5* | irix6* | nonstopux*)
6164 nonstopux*) version_type=nonstopux ;;
6165 *) version_type=irix ;;
6169 soname_spec='${libname}${release}.so$major'
6170 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6172 irix5* | nonstopux*)
6176 case $LD in # libtool.m4 will add one of these switches to LD
6177 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6178 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6179 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6180 *) libsuff= shlibsuff= libmagic=never-match;;
6184 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6185 shlibpath_overrides_runpath=no
6186 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6187 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6190 # No shared lib support for Linux oldld, aout, or coff.
6191 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6195 # This must be Linux ELF.
6200 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6201 soname_spec='${libname}${release}.so$major'
6202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6203 shlibpath_var=LD_LIBRARY_PATH
6204 shlibpath_overrides_runpath=no
6205 # This implies no fast_install, which is unacceptable.
6206 # Some rework will be needed to allow for fast_install
6207 # before this can be enabled.
6208 hardcode_into_libs=yes
6210 # We used to test for /lib/ld.so.1 and disable shared libraries on
6211 # powerpc, because MkLinux only supported shared libraries with the
6212 # GNU dynamic linker. Since this was broken with cross compilers,
6213 # most powerpc-linux boxes support dynamic linking these days and
6214 # people can always --disable-shared, the test was removed, and we
6215 # assume the GNU/Linux dynamic linker is in use.
6216 dynamic_linker='GNU/Linux ld.so'
6223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6224 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6226 dynamic_linker='NetBSD (a.out) ld.so'
6228 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6229 soname_spec='${libname}${release}.so$major'
6230 dynamic_linker='NetBSD ld.elf_so'
6232 shlibpath_var=LD_LIBRARY_PATH
6233 shlibpath_overrides_runpath=yes
6234 hardcode_into_libs=yes
6239 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6240 shlibpath_var=LD_LIBRARY_PATH
6241 shlibpath_overrides_runpath=yes
6248 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6250 openbsd2.[89] | openbsd2.[89].*)
6251 shlibpath_overrides_runpath=no
6254 shlibpath_overrides_runpath=yes
6258 shlibpath_overrides_runpath=yes
6260 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6261 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6262 shlibpath_var=LD_LIBRARY_PATH
6268 shlibpath_overrides_runpath=yes
6269 shlibpath_var=LIBPATH
6270 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6271 # the library's exports are in libname.x; this is the file that must
6272 # actually be linked with to use a DLL.
6273 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6277 libname_spec='$name'
6279 library_names_spec='$libname.dll $libname.a'
6280 dynamic_linker='OS/2 ld.exe'
6281 shlibpath_var=LIBPATH
6284 osf3* | osf4* | osf5*)
6287 soname_spec='${libname}${release}.so$major'
6288 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6289 shlibpath_var=LD_LIBRARY_PATH
6290 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6291 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6292 hardcode_into_libs=yes
6297 soname_spec='${libname}${release}.so$major'
6298 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6299 shlibpath_var=LD_LIBRARY_PATH
6306 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6307 soname_spec='${libname}${release}.so$major'
6308 shlibpath_var=LD_LIBRARY_PATH
6309 shlibpath_overrides_runpath=yes
6310 hardcode_into_libs=yes
6311 # ldd complains unless libraries are executable
6312 postinstall_cmds='chmod +x $lib'
6317 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6319 shlibpath_var=LD_LIBRARY_PATH
6320 shlibpath_overrides_runpath=yes
6321 if test "$with_gnu_ld" = yes; then
6327 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6329 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6330 soname_spec='${libname}${release}.so$major'
6331 shlibpath_var=LD_LIBRARY_PATH
6332 case $host_vendor in
6334 shlibpath_overrides_runpath=no
6336 export_dynamic_flag_spec='${wl}-Blargedynsym'
6337 runpath_var=LD_RUN_PATH
6345 shlibpath_overrides_runpath=no
6346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6353 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6354 soname_spec='${libname}${release}.so$major'
6355 shlibpath_var=LD_LIBRARY_PATH
6362 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6363 soname_spec='${libname}${release}.so$major'
6364 shlibpath_var=LD_LIBRARY_PATH
6368 if test -d /usr/nec ;then
6370 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6371 soname_spec='$libname.so.$major'
6372 shlibpath_var=LD_LIBRARY_PATH
6380 echo "$ac_t""$dynamic_linker" 1>&6
6381 test "$dynamic_linker" = no && can_build_shared=no
6383 # Report the final consequences.
6384 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6385 echo "configure:6386: checking if libtool supports shared libraries" >&5
6386 echo "$ac_t""$can_build_shared" 1>&6
6388 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6389 echo "configure:6390: checking whether to build shared libraries" >&5
6390 test "$can_build_shared" = "no" && enable_shared=no
6392 # On AIX, shared libraries and static libraries use the same namespace, and
6393 # are all built from PIC.
6396 test "$enable_shared" = yes && enable_static=no
6397 if test -n "$RANLIB"; then
6398 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6399 postinstall_cmds='$RANLIB $lib'
6404 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6405 test "$enable_shared" = yes && enable_static=no
6409 echo "$ac_t""$enable_shared" 1>&6
6411 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6412 echo "configure:6413: checking whether to build static libraries" >&5
6413 # Make sure either enable_shared or enable_static is yes.
6414 test "$enable_shared" = yes || enable_static=yes
6415 echo "$ac_t""$enable_static" 1>&6
6417 if test "$hardcode_action" = relink; then
6418 # Fast installation is not supported
6419 enable_fast_install=no
6420 elif test "$shlibpath_overrides_runpath" = yes ||
6421 test "$enable_shared" = no; then
6422 # Fast installation is not necessary
6423 enable_fast_install=needless
6426 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6427 if test "$GCC" = yes; then
6428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6431 if test "x$enable_dlopen" != xyes; then
6432 enable_dlopen=unknown
6433 enable_dlopen_self=unknown
6434 enable_dlopen_self_static=unknown
6441 lt_cv_dlopen="load_add_on"
6443 lt_cv_dlopen_self=yes
6446 cygwin* | mingw* | pw32*)
6447 lt_cv_dlopen="LoadLibrary"
6452 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6453 echo "configure:6454: checking for dllload" >&5
6454 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6455 echo $ac_n "(cached) $ac_c" 1>&6
6457 cat > conftest.$ac_ext <<EOF
6458 #line 6459 "configure"
6459 #include "confdefs.h"
6460 /* System header to define __stub macros and hopefully few prototypes,
6461 which can conflict with char dllload(); below. */
6463 /* Override any gcc2 internal prototype to avoid an error. */
6464 /* We use char because int might match the return type of a gcc2
6465 builtin and then its argument prototype would still apply. */
6471 /* The GNU C library defines this for functions which it implements
6472 to always fail with ENOSYS. Some functions are actually named
6473 something starting with __ and the normal name is an alias. */
6474 #if defined (__stub_dllload) || defined (__stub___dllload)
6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6484 eval "ac_cv_func_dllload=yes"
6486 echo "configure: failed program was:" >&5
6487 cat conftest.$ac_ext >&5
6489 eval "ac_cv_func_dllload=no"
6494 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6495 echo "$ac_t""yes" 1>&6
6496 lt_cv_dlopen="dllload"
6498 echo "$ac_t""no" 1>&6
6499 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6500 echo "configure:6501: checking for shl_load" >&5
6501 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6502 echo $ac_n "(cached) $ac_c" 1>&6
6504 cat > conftest.$ac_ext <<EOF
6505 #line 6506 "configure"
6506 #include "confdefs.h"
6507 /* System header to define __stub macros and hopefully few prototypes,
6508 which can conflict with char shl_load(); below. */
6510 /* Override any gcc2 internal prototype to avoid an error. */
6511 /* We use char because int might match the return type of a gcc2
6512 builtin and then its argument prototype would still apply. */
6518 /* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
6521 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6529 if { (eval echo configure:6530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6531 eval "ac_cv_func_shl_load=yes"
6533 echo "configure: failed program was:" >&5
6534 cat conftest.$ac_ext >&5
6536 eval "ac_cv_func_shl_load=no"
6541 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6542 echo "$ac_t""yes" 1>&6
6543 lt_cv_dlopen="shl_load"
6545 echo "$ac_t""no" 1>&6
6546 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6547 echo "configure:6548: checking for shl_load in -ldld" >&5
6548 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6549 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 ac_save_LIBS="$LIBS"
6554 cat > conftest.$ac_ext <<EOF
6555 #line 6556 "configure"
6556 #include "confdefs.h"
6557 /* Override any gcc2 internal prototype to avoid an error. */
6558 /* We use char because int might match the return type of a gcc2
6559 builtin and then its argument prototype would still apply. */
6566 if { (eval echo configure:6567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6568 eval "ac_cv_lib_$ac_lib_var=yes"
6570 echo "configure: failed program was:" >&5
6571 cat conftest.$ac_ext >&5
6573 eval "ac_cv_lib_$ac_lib_var=no"
6576 LIBS="$ac_save_LIBS"
6579 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6580 echo "$ac_t""yes" 1>&6
6581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6583 echo "$ac_t""no" 1>&6
6584 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6585 echo "configure:6586: checking for dlopen" >&5
6586 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6587 echo $ac_n "(cached) $ac_c" 1>&6
6589 cat > conftest.$ac_ext <<EOF
6590 #line 6591 "configure"
6591 #include "confdefs.h"
6592 /* System header to define __stub macros and hopefully few prototypes,
6593 which can conflict with char dlopen(); below. */
6595 /* Override any gcc2 internal prototype to avoid an error. */
6596 /* We use char because int might match the return type of a gcc2
6597 builtin and then its argument prototype would still apply. */
6603 /* The GNU C library defines this for functions which it implements
6604 to always fail with ENOSYS. Some functions are actually named
6605 something starting with __ and the normal name is an alias. */
6606 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6614 if { (eval echo configure:6615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6616 eval "ac_cv_func_dlopen=yes"
6618 echo "configure: failed program was:" >&5
6619 cat conftest.$ac_ext >&5
6621 eval "ac_cv_func_dlopen=no"
6626 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6627 echo "$ac_t""yes" 1>&6
6628 lt_cv_dlopen="dlopen"
6630 echo "$ac_t""no" 1>&6
6631 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6632 echo "configure:6633: checking for dlopen in -ldl" >&5
6633 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6634 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6635 echo $ac_n "(cached) $ac_c" 1>&6
6637 ac_save_LIBS="$LIBS"
6639 cat > conftest.$ac_ext <<EOF
6640 #line 6641 "configure"
6641 #include "confdefs.h"
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. */
6651 if { (eval echo configure:6652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6653 eval "ac_cv_lib_$ac_lib_var=yes"
6655 echo "configure: failed program was:" >&5
6656 cat conftest.$ac_ext >&5
6658 eval "ac_cv_lib_$ac_lib_var=no"
6661 LIBS="$ac_save_LIBS"
6664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6665 echo "$ac_t""yes" 1>&6
6666 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6668 echo "$ac_t""no" 1>&6
6669 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6670 echo "configure:6671: checking for dlopen in -lsvld" >&5
6671 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6672 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6673 echo $ac_n "(cached) $ac_c" 1>&6
6675 ac_save_LIBS="$LIBS"
6677 cat > conftest.$ac_ext <<EOF
6678 #line 6679 "configure"
6679 #include "confdefs.h"
6680 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6689 if { (eval echo configure:6690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6691 eval "ac_cv_lib_$ac_lib_var=yes"
6693 echo "configure: failed program was:" >&5
6694 cat conftest.$ac_ext >&5
6696 eval "ac_cv_lib_$ac_lib_var=no"
6699 LIBS="$ac_save_LIBS"
6702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6703 echo "$ac_t""yes" 1>&6
6704 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6706 echo "$ac_t""no" 1>&6
6707 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6708 echo "configure:6709: checking for dld_link in -ldld" >&5
6709 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6710 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6711 echo $ac_n "(cached) $ac_c" 1>&6
6713 ac_save_LIBS="$LIBS"
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6718 /* Override any gcc2 internal prototype to avoid an error. */
6719 /* We use char because int might match the return type of a gcc2
6720 builtin and then its argument prototype would still apply. */
6727 if { (eval echo configure:6728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6729 eval "ac_cv_lib_$ac_lib_var=yes"
6731 echo "configure: failed program was:" >&5
6732 cat conftest.$ac_ext >&5
6734 eval "ac_cv_lib_$ac_lib_var=no"
6737 LIBS="$ac_save_LIBS"
6740 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6741 echo "$ac_t""yes" 1>&6
6742 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6744 echo "$ac_t""no" 1>&6
6768 if test "x$lt_cv_dlopen" != xno; then
6774 case $lt_cv_dlopen in
6776 save_CPPFLAGS="$CPPFLAGS"
6777 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6779 save_LDFLAGS="$LDFLAGS"
6780 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6783 LIBS="$lt_cv_dlopen_libs $LIBS"
6785 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6786 echo "configure:6787: checking whether a program can dlopen itself" >&5
6787 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6788 echo $ac_n "(cached) $ac_c" 1>&6
6790 if test "$cross_compiling" = yes; then :
6791 lt_cv_dlopen_self=cross
6793 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6794 lt_status=$lt_dlunknown
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6806 # define LT_DLGLOBAL RTLD_GLOBAL
6809 # define LT_DLGLOBAL DL_GLOBAL
6811 # define LT_DLGLOBAL 0
6815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6816 find out it does not work in some platform. */
6817 #ifndef LT_DLLAZY_OR_NOW
6819 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6822 # define LT_DLLAZY_OR_NOW DL_LAZY
6825 # define LT_DLLAZY_OR_NOW RTLD_NOW
6828 # define LT_DLLAZY_OR_NOW DL_NOW
6830 # define LT_DLLAZY_OR_NOW 0
6838 extern "C" void exit (int);
6841 void fnord() { int i=42;}
6844 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6845 int status = $lt_dlunknown;
6849 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6850 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6851 /* dlclose (self); */
6857 if { (eval echo configure:6858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6858 (./conftest; exit; ) 2>/dev/null
6861 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6862 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6863 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6866 # compilation failed
6867 lt_cv_dlopen_self=no
6875 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6877 if test "x$lt_cv_dlopen_self" = xyes; then
6878 LDFLAGS="$LDFLAGS $link_static_flag"
6879 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6880 echo "configure:6881: checking whether a statically linked program can dlopen itself" >&5
6881 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6882 echo $ac_n "(cached) $ac_c" 1>&6
6884 if test "$cross_compiling" = yes; then :
6885 lt_cv_dlopen_self_static=cross
6887 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6888 lt_status=$lt_dlunknown
6889 cat > conftest.$ac_ext <<EOF
6890 #line 6891 "configure"
6891 #include "confdefs.h"
6900 # define LT_DLGLOBAL RTLD_GLOBAL
6903 # define LT_DLGLOBAL DL_GLOBAL
6905 # define LT_DLGLOBAL 0
6909 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6910 find out it does not work in some platform. */
6911 #ifndef LT_DLLAZY_OR_NOW
6913 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6916 # define LT_DLLAZY_OR_NOW DL_LAZY
6919 # define LT_DLLAZY_OR_NOW RTLD_NOW
6922 # define LT_DLLAZY_OR_NOW DL_NOW
6924 # define LT_DLLAZY_OR_NOW 0
6932 extern "C" void exit (int);
6935 void fnord() { int i=42;}
6938 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6939 int status = $lt_dlunknown;
6943 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6944 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6945 /* dlclose (self); */
6951 if { (eval echo configure:6952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6952 (./conftest; exit; ) 2>/dev/null
6955 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6956 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6957 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6960 # compilation failed
6961 lt_cv_dlopen_self_static=no
6969 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6972 CPPFLAGS="$save_CPPFLAGS"
6973 LDFLAGS="$save_LDFLAGS"
6978 case $lt_cv_dlopen_self in
6979 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6980 *) enable_dlopen_self=unknown ;;
6983 case $lt_cv_dlopen_self_static in
6984 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6985 *) enable_dlopen_self_static=unknown ;;
6990 if test "$enable_shared" = yes && test "$GCC" = yes; then
6991 case $archive_cmds in
6993 # FIXME: we may have to deal with multi-command sequences.
6996 # Test whether the compiler implicitly links with -lc since on some
6997 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6998 # to ld, don't add -lc before -lgcc.
6999 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7000 echo "configure:7001: checking whether -lc should be explicitly linked in" >&5
7001 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7002 echo $ac_n "(cached) $ac_c" 1>&6
7005 echo 'static int dummy;' > conftest.$ac_ext
7007 if { (eval echo configure:7008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7010 libobjs=conftest.$ac_objext
7012 wl=$lt_cv_prog_cc_wl
7018 save_allow_undefined_flag=$allow_undefined_flag
7019 allow_undefined_flag=
7020 if { (eval echo configure:7021: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
7022 lt_cv_archive_cmds_need_lc=no
7024 lt_cv_archive_cmds_need_lc=yes
7026 allow_undefined_flag=$save_allow_undefined_flag
7028 cat conftest.err 1>&5
7032 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7036 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7038 # The second clause should only fire when bootstrapping the
7039 # libtool distribution, otherwise you forgot to ship ltmain.sh
7040 # with your package, and you will get complaints that there are
7041 # no rules to generate ltmain.sh.
7042 if test -f "$ltmain"; then
7045 # If there is no Makefile yet, we rely on a make rule to execute
7046 # `config.status --recheck' to rerun these tests and create the
7047 # libtool script then.
7048 test -f Makefile && make "$ltmain"
7051 if test -f "$ltmain"; then
7052 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7055 echo creating $ofile
7057 # Now quote all the things that may contain metacharacters while being
7058 # careful not to overquote the AC_SUBSTed values. We take copies of the
7059 # variables and quote the copies for generation of the libtool script.
7060 for var in echo old_CC old_CFLAGS SED \
7061 AR AR_FLAGS CC LD LN_S NM SHELL \
7062 reload_flag reload_cmds wl \
7063 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7064 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7065 library_names_spec soname_spec \
7066 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7067 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7068 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7069 old_striplib striplib file_magic_cmd export_symbols_cmds \
7070 deplibs_check_method allow_undefined_flag no_undefined_flag \
7071 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7072 global_symbol_to_c_name_address \
7073 hardcode_libdir_flag_spec hardcode_libdir_separator \
7074 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7075 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7078 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7079 old_postinstall_cmds | old_postuninstall_cmds | \
7080 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7081 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7082 postinstall_cmds | postuninstall_cmds | \
7083 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7084 # Double-quote double-evaled strings.
7085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7088 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7093 cat <<__EOF__ > "${ofile}T"
7096 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7097 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7098 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7100 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7101 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7103 # This program is free software; you can redistribute it and/or modify
7104 # it under the terms of the GNU General Public License as published by
7105 # the Free Software Foundation; either version 2 of the License, or
7106 # (at your option) any later version.
7108 # This program is distributed in the hope that it will be useful, but
7109 # WITHOUT ANY WARRANTY; without even the implied warranty of
7110 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7111 # General Public License for more details.
7113 # You should have received a copy of the GNU General Public License
7114 # along with this program; if not, write to the Free Software
7115 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7117 # As a special exception to the GNU General Public License, if you
7118 # distribute this file as part of a program that contains a
7119 # configuration script generated by Autoconf, you may include it under
7120 # the same distribution terms that you use for the rest of that program.
7122 # A sed that does not truncate output.
7125 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7126 Xsed="${SED} -e s/^X//"
7128 # The HP-UX ksh and POSIX shell print the target directory to stdout
7130 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7132 # ### BEGIN LIBTOOL CONFIG
7134 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7136 # Shell to use when invoking shell scripts.
7139 # Whether or not to build shared libraries.
7140 build_libtool_libs=$enable_shared
7142 # Whether or not to build static libraries.
7143 build_old_libs=$enable_static
7145 # Whether or not to add -lc for building shared libraries.
7146 build_libtool_need_lc=$need_lc
7148 # Whether or not to optimize for fast installation.
7149 fast_install=$enable_fast_install
7152 host_alias=$host_alias
7155 # An echo program that does not interpret backslashes.
7160 AR_FLAGS=$lt_AR_FLAGS
7162 # The default C compiler.
7165 # Is the compiler the GNU C compiler?
7168 # The linker used to build libraries.
7171 # Whether we need hard or soft links.
7174 # A BSD-compatible nm program.
7177 # A symbol stripping program
7180 # Used to examine libraries when file_magic_cmd begins "file"
7181 MAGIC_CMD=$MAGIC_CMD
7183 # Used on cygwin: DLL creation program.
7186 # Used on cygwin: object dumper.
7189 # Used on cygwin: assembler.
7192 # The name of the directory that contains temporary libtool files.
7195 # How to create reloadable object files.
7196 reload_flag=$lt_reload_flag
7197 reload_cmds=$lt_reload_cmds
7199 # How to pass a linker flag through the compiler.
7202 # Object file suffix (normally "o").
7205 # Old archive suffix (normally "a").
7208 # Executable file suffix (normally "").
7211 # Additional compiler flags for building library objects.
7212 pic_flag=$lt_pic_flag
7215 # Does compiler simultaneously support -c and -o options?
7216 compiler_c_o=$lt_compiler_c_o
7218 # Can we write directly to a .lo ?
7219 compiler_o_lo=$lt_compiler_o_lo
7221 # Must we lock files when doing compilation ?
7222 need_locks=$lt_need_locks
7224 # Do we need the lib prefix for modules?
7225 need_lib_prefix=$need_lib_prefix
7227 # Do we need a version for libraries?
7228 need_version=$need_version
7230 # Whether dlopen is supported.
7231 dlopen_support=$enable_dlopen
7233 # Whether dlopen of programs is supported.
7234 dlopen_self=$enable_dlopen_self
7236 # Whether dlopen of statically linked programs is supported.
7237 dlopen_self_static=$enable_dlopen_self_static
7239 # Compiler flag to prevent dynamic linking.
7240 link_static_flag=$lt_link_static_flag
7242 # Compiler flag to turn off builtin functions.
7243 no_builtin_flag=$lt_no_builtin_flag
7245 # Compiler flag to allow reflexive dlopens.
7246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7248 # Compiler flag to generate shared objects directly from archives.
7249 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7251 # Compiler flag to generate thread-safe objects.
7252 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7254 # Library versioning type.
7255 version_type=$version_type
7257 # Format of library name prefix.
7258 libname_spec=$lt_libname_spec
7260 # List of archive names. First name is the real one, the rest are links.
7261 # The last name is the one that the linker finds with -lNAME.
7262 library_names_spec=$lt_library_names_spec
7264 # The coded name of the library, if different from the real name.
7265 soname_spec=$lt_soname_spec
7267 # Commands used to build and install an old-style archive.
7269 old_archive_cmds=$lt_old_archive_cmds
7270 old_postinstall_cmds=$lt_old_postinstall_cmds
7271 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7273 # Create an old-style archive from a shared archive.
7274 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7276 # Create a temporary old-style archive to link instead of a shared archive.
7277 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7279 # Commands used to build and install a shared archive.
7280 archive_cmds=$lt_archive_cmds
7281 archive_expsym_cmds=$lt_archive_expsym_cmds
7282 postinstall_cmds=$lt_postinstall_cmds
7283 postuninstall_cmds=$lt_postuninstall_cmds
7285 # Commands to strip libraries.
7286 old_striplib=$lt_old_striplib
7287 striplib=$lt_striplib
7289 # Method to check whether dependent libraries are shared objects.
7290 deplibs_check_method=$lt_deplibs_check_method
7292 # Command to use when deplibs_check_method == file_magic.
7293 file_magic_cmd=$lt_file_magic_cmd
7295 # Flag that allows shared libraries with undefined symbols to be built.
7296 allow_undefined_flag=$lt_allow_undefined_flag
7298 # Flag that forces no undefined symbols.
7299 no_undefined_flag=$lt_no_undefined_flag
7301 # Commands used to finish a libtool library installation in a directory.
7302 finish_cmds=$lt_finish_cmds
7304 # Same as above, but a single script fragment to be evaled but not shown.
7305 finish_eval=$lt_finish_eval
7307 # Take the output of nm and produce a listing of raw symbols and C names.
7308 global_symbol_pipe=$lt_global_symbol_pipe
7310 # Transform the output of nm in a proper C declaration
7311 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7313 # Transform the output of nm in a C name address pair
7314 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7316 # This is the shared library runtime path variable.
7317 runpath_var=$runpath_var
7319 # This is the shared library path variable.
7320 shlibpath_var=$shlibpath_var
7322 # Is shlibpath searched before the hard-coded library search path?
7323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7325 # How to hardcode a shared library path into an executable.
7326 hardcode_action=$hardcode_action
7328 # Whether we should hardcode library paths into libraries.
7329 hardcode_into_libs=$hardcode_into_libs
7331 # Flag to hardcode \$libdir into a binary during linking.
7332 # This must work even if \$libdir does not exist.
7333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7335 # Whether we need a single -rpath flag with a separated argument.
7336 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7338 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7340 hardcode_direct=$hardcode_direct
7342 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7344 hardcode_minus_L=$hardcode_minus_L
7346 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7347 # the resulting binary.
7348 hardcode_shlibpath_var=$hardcode_shlibpath_var
7350 # Variables whose values should be saved in libtool wrapper scripts and
7351 # restored at relink time.
7352 variables_saved_for_relink="$variables_saved_for_relink"
7354 # Whether libtool must link a program against all its dependency libraries.
7355 link_all_deplibs=$link_all_deplibs
7357 # Compile-time system search path for libraries
7358 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7360 # Run-time system search path for libraries
7361 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7363 # Fix the shell variable \$srcfile for the compiler.
7364 fix_srcfile_path="$fix_srcfile_path"
7366 # Set to yes if exported symbols are required.
7367 always_export_symbols=$always_export_symbols
7369 # The commands to list exported symbols.
7370 export_symbols_cmds=$lt_export_symbols_cmds
7372 # The commands to extract the exported symbol list from a shared archive.
7373 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7375 # Symbols that should not be listed in the preloaded symbols.
7376 exclude_expsyms=$lt_exclude_expsyms
7378 # Symbols that must always be exported.
7379 include_expsyms=$lt_include_expsyms
7381 # ### END LIBTOOL CONFIG
7387 cat <<\EOF >> "${ofile}T"
7389 # AIX sometimes has problems with the GCC collect2 program. For some
7390 # reason, if we set the COLLECT_NAMES environment variable, the problems
7391 # vanish in a puff of smoke.
7392 if test "X${COLLECT_NAMES+set}" != Xset; then
7394 export COLLECT_NAMES
7401 cygwin* | mingw* | pw32* | os2*)
7402 cat <<'EOF' >> "${ofile}T"
7403 # This is a source program that is used to create dlls on Windows
7404 # Don't remove nor modify the starting and closing comments
7405 # /* ltdll.c starts here */
7406 # #define WIN32_LEAN_AND_MEAN
7407 # #include <windows.h>
7408 # #undef WIN32_LEAN_AND_MEAN
7409 # #include <stdio.h>
7411 # #ifndef __CYGWIN__
7412 # # ifdef __CYGWIN32__
7413 # # define __CYGWIN__ __CYGWIN32__
7417 # #ifdef __cplusplus
7420 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7421 # #ifdef __cplusplus
7426 # #include <cygwin/cygwin_dll.h>
7427 # DECLARE_CYGWIN_DLL( DllMain );
7429 # HINSTANCE __hDllInstance_base;
7432 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7434 # __hDllInstance_base = hInst;
7437 # /* ltdll.c ends here */
7438 # This is a source program that is used to create import libraries
7439 # on Windows for dlls which lack them. Don't remove nor modify the
7440 # starting and closing comments
7441 # /* impgen.c starts here */
7442 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7444 # This file is part of GNU libtool.
7446 # This program is free software; you can redistribute it and/or modify
7447 # it under the terms of the GNU General Public License as published by
7448 # the Free Software Foundation; either version 2 of the License, or
7449 # (at your option) any later version.
7451 # This program is distributed in the hope that it will be useful,
7452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7454 # GNU General Public License for more details.
7456 # You should have received a copy of the GNU General Public License
7457 # along with this program; if not, write to the Free Software
7458 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7461 # #include <stdio.h> /* for printf() */
7462 # #include <unistd.h> /* for open(), lseek(), read() */
7463 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7464 # #include <string.h> /* for strdup() */
7466 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7468 # #define O_BINARY 0
7471 # static unsigned int
7472 # pe_get16 (fd, offset)
7476 # unsigned char b[2];
7477 # lseek (fd, offset, SEEK_SET);
7479 # return b[0] + (b[1]<<8);
7482 # static unsigned int
7483 # pe_get32 (fd, offset)
7487 # unsigned char b[4];
7488 # lseek (fd, offset, SEEK_SET);
7490 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7493 # static unsigned int
7497 # unsigned char *b = ptr;
7498 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7507 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7508 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7509 # unsigned long name_rvas, nexp;
7510 # unsigned char *expdata, *erva;
7511 # char *filename, *dll_name;
7513 # filename = argv[1];
7515 # dll = open(filename, O_RDONLY|O_BINARY);
7519 # dll_name = filename;
7521 # for (i=0; filename[i]; i++)
7522 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7523 # dll_name = filename + i +1;
7525 # pe_header_offset = pe_get32 (dll, 0x3c);
7526 # opthdr_ofs = pe_header_offset + 4 + 20;
7527 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7529 # if (num_entries < 1) /* no exports */
7532 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7533 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7534 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7535 # secptr = (pe_header_offset + 4 + 20 +
7536 # pe_get16 (dll, pe_header_offset + 4 + 16));
7539 # for (i = 0; i < nsections; i++)
7542 # unsigned long secptr1 = secptr + 40 * i;
7543 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7544 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7545 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7546 # lseek(dll, secptr1, SEEK_SET);
7547 # read(dll, sname, 8);
7548 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7550 # expptr = fptr + (export_rva - vaddr);
7551 # if (export_rva + export_size > vaddr + vsize)
7552 # export_size = vsize - (export_rva - vaddr);
7557 # expdata = (unsigned char*)malloc(export_size);
7558 # lseek (dll, expptr, SEEK_SET);
7559 # read (dll, expdata, export_size);
7560 # erva = expdata - export_rva;
7562 # nexp = pe_as32 (expdata+24);
7563 # name_rvas = pe_as32 (expdata+32);
7565 # printf ("EXPORTS\n");
7566 # for (i = 0; i<nexp; i++)
7568 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7569 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7574 # /* impgen.c ends here */
7580 # We use sed instead of cat because bash on DJGPP gets confused if
7581 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7582 # text mode, it properly converts lines to CR/LF. This bash problem
7583 # is reportedly fixed, but why not run on old versions too?
7584 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7586 mv -f "${ofile}T" "$ofile" || \
7587 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7595 # This can be used to rebuild libtool when needed
7596 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7598 # Always use our own libtool.
7599 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7601 # Prevent multiple expansion
7605 # test for ln hardlink support
7606 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7607 echo "configure:7608: checking whether ln works" >&5
7608 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7609 echo $ac_n "(cached) $ac_c" 1>&6
7611 rm -f conftest.src conftest.dst
7612 echo "conftest" > conftest.src
7613 if ln conftest.src conftest.dst 2>/dev/null
7615 ol_cv_prog_LN_H="ln"
7617 ol_cv_prog_LN_H="cp"
7619 rm -f conftest.src conftest.dst
7622 LN_H="$ol_cv_prog_LN_H"
7623 if test "$ol_cv_prog_LN_H" = "ln"; then
7624 echo "$ac_t""yes" 1>&6
7626 echo "$ac_t""no" 1>&6
7629 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7630 echo "configure:7631: checking whether ln -s works" >&5
7631 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7632 echo $ac_n "(cached) $ac_c" 1>&6
7635 if ln -s X conftestdata 2>/dev/null
7638 ac_cv_prog_LN_S="ln -s"
7643 LN_S="$ac_cv_prog_LN_S"
7644 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7645 echo "$ac_t""yes" 1>&6
7647 echo "$ac_t""no" 1>&6
7652 if test $ol_enable_perl != no ; then
7653 # Extract the first word of "perl", so it can be a program name with args.
7654 set dummy perl; ac_word=$2
7655 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7656 echo "configure:7657: checking for $ac_word" >&5
7657 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7658 echo $ac_n "(cached) $ac_c" 1>&6
7662 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7665 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7668 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7670 for ac_dir in $ac_dummy; do
7671 test -z "$ac_dir" && ac_dir=.
7672 if test -f $ac_dir/$ac_word; then
7673 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7678 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7682 PERLBIN="$ac_cv_path_PERLBIN"
7683 if test -n "$PERLBIN"; then
7684 echo "$ac_t""$PERLBIN" 1>&6
7686 echo "$ac_t""no" 1>&6
7690 if test "no$PERLBIN" = "no" ; then
7691 if test $ol_enable_perl = yes ; then
7692 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7696 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7697 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7699 if test x"$ol_enable_perl" = "xyes" ; then
7700 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7702 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7708 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7709 echo "configure:7710: checking how to run the C preprocessor" >&5
7710 # On Suns, sometimes $CPP names a directory.
7711 if test -n "$CPP" && test -d "$CPP"; then
7714 if test -z "$CPP"; then
7715 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7716 echo $ac_n "(cached) $ac_c" 1>&6
7718 # This must be in double quotes, not single quotes, because CPP may get
7719 # substituted into the Makefile and "${CC-cc}" will confuse make.
7721 # On the NeXT, cc -E runs the code through the compiler's parser,
7722 # not just through cpp.
7723 cat > conftest.$ac_ext <<EOF
7724 #line 7725 "configure"
7725 #include "confdefs.h"
7729 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7730 { (eval echo configure:7731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7731 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7732 if test -z "$ac_err"; then
7736 echo "configure: failed program was:" >&5
7737 cat conftest.$ac_ext >&5
7739 CPP="${CC-cc} -E -traditional-cpp"
7740 cat > conftest.$ac_ext <<EOF
7741 #line 7742 "configure"
7742 #include "confdefs.h"
7746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7747 { (eval echo configure:7748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7749 if test -z "$ac_err"; then
7753 echo "configure: failed program was:" >&5
7754 cat conftest.$ac_ext >&5
7756 CPP="${CC-cc} -nologo -E"
7757 cat > conftest.$ac_ext <<EOF
7758 #line 7759 "configure"
7759 #include "confdefs.h"
7763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7764 { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7766 if test -z "$ac_err"; then
7770 echo "configure: failed program was:" >&5
7771 cat conftest.$ac_ext >&5
7780 ac_cv_prog_CPP="$CPP"
7782 CPP="$ac_cv_prog_CPP"
7784 ac_cv_prog_CPP="$CPP"
7786 echo "$ac_t""$CPP" 1>&6
7790 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7791 echo "configure:7792: checking for Cygwin environment" >&5
7792 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7793 echo $ac_n "(cached) $ac_c" 1>&6
7795 cat > conftest.$ac_ext <<EOF
7796 #line 7797 "configure"
7797 #include "confdefs.h"
7802 #define __CYGWIN__ __CYGWIN32__
7807 if { (eval echo configure:7808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7811 echo "configure: failed program was:" >&5
7812 cat conftest.$ac_ext >&5
7819 echo "$ac_t""$ac_cv_cygwin" 1>&6
7821 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7822 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7823 echo "configure:7824: checking for mingw32 environment" >&5
7824 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7827 cat > conftest.$ac_ext <<EOF
7828 #line 7829 "configure"
7829 #include "confdefs.h"
7835 if { (eval echo configure:7836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7839 echo "configure: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7847 echo "$ac_t""$ac_cv_mingw32" 1>&6
7849 test "$ac_cv_mingw32" = yes && MINGW32=yes
7853 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7854 echo "configure:7855: checking for executable suffix" >&5
7855 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7856 echo $ac_n "(cached) $ac_c" 1>&6
7858 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7862 echo 'int main () { return 0; }' > conftest.$ac_ext
7864 if { (eval echo configure:7865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7865 for file in conftest.*; do
7867 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7868 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7872 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7875 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7880 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7881 echo "$ac_t""${ac_cv_exeext}" 1>&6
7884 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7885 echo "configure:7886: checking for object suffix" >&5
7886 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7887 echo $ac_n "(cached) $ac_c" 1>&6
7890 echo 'int i = 1;' > conftest.$ac_ext
7891 if { (eval echo configure:7892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7892 for ac_file in conftest.*; do
7895 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7899 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7904 echo "$ac_t""$ac_cv_objext" 1>&6
7905 OBJEXT=$ac_cv_objext
7906 ac_objext=$ac_cv_objext
7909 cat >> confdefs.h <<EOF
7910 #define EXEEXT "${EXEEXT}"
7914 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7915 echo "configure:7916: checking for be_app in -lbe" >&5
7916 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7917 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7918 echo $ac_n "(cached) $ac_c" 1>&6
7920 ac_save_LIBS="$LIBS"
7921 LIBS="-lbe -lroot -lnet $LIBS"
7922 cat > conftest.$ac_ext <<EOF
7923 #line 7924 "configure"
7924 #include "confdefs.h"
7925 /* Override any gcc2 internal prototype to avoid an error. */
7926 /* We use char because int might match the return type of a gcc2
7927 builtin and then its argument prototype would still apply. */
7934 if { (eval echo configure:7935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7936 eval "ac_cv_lib_$ac_lib_var=yes"
7938 echo "configure: failed program was:" >&5
7939 cat conftest.$ac_ext >&5
7941 eval "ac_cv_lib_$ac_lib_var=no"
7944 LIBS="$ac_save_LIBS"
7947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7948 echo "$ac_t""yes" 1>&6
7949 LIBS="$LIBS -lbe -lroot -lnet"
7951 echo "$ac_t""no" 1>&6
7959 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
7960 echo "configure:7961: checking for ${CC-cc} option to accept ANSI C" >&5
7961 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7964 am_cv_prog_cc_stdc=no
7966 # Don't try gcc -ansi; that turns off useful extensions and
7967 # breaks some systems' header files.
7968 # AIX -qlanglvl=ansi
7969 # Ultrix and OSF/1 -std1
7970 # HP-UX 10.20 and later -Ae
7971 # HP-UX older versions -Aa -D_HPUX_SOURCE
7972 # SVR4 -Xc -D__EXTENSIONS__
7973 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7975 CC="$ac_save_CC $ac_arg"
7976 cat > conftest.$ac_ext <<EOF
7977 #line 7978 "configure"
7978 #include "confdefs.h"
7981 #include <sys/types.h>
7982 #include <sys/stat.h>
7983 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7984 struct buf { int x; };
7985 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7986 static char *e (p, i)
7992 static char *f (char * (*g) (char **, int), char **p, ...)
7997 s = g (p, va_arg (v,int));
8001 int test (int i, double x);
8002 struct s1 {int (*f) (int a);};
8003 struct s2 {int (*f) (double a);};
8004 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8010 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8014 if { (eval echo configure:8015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8016 am_cv_prog_cc_stdc="$ac_arg"; break
8018 echo "configure: failed program was:" >&5
8019 cat conftest.$ac_ext >&5
8027 if test -z "$am_cv_prog_cc_stdc"; then
8028 echo "$ac_t""none needed" 1>&6
8030 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8032 case "x$am_cv_prog_cc_stdc" in
8034 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8037 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8038 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8041 # test for make depend flag
8044 if test -z "${MKDEP}"; then
8046 if test -z "${MKDEP_FLAGS}"; then
8047 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8048 echo "configure:8049: checking for ${OL_MKDEP} depend flag" >&5
8049 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8054 for flag in "-M" "-xM"; do
8055 cat > conftest.c <<EOF
8058 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8059 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8061 if test ! -f conftest."${ac_object}" ; then
8063 OL_MKDEP_FLAGS="$flag"
8072 echo "$ac_t""$ol_cv_mkdep" 1>&6
8075 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8080 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8085 if test "${ol_cv_mkdep}" = no ; then
8086 # this will soon become an error
8087 echo "configure: warning: do not know how to generate dependencies" 1>&2
8090 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8091 echo "configure:8092: checking for afopen in -ls" >&5
8092 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8093 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8094 echo $ac_n "(cached) $ac_c" 1>&6
8096 ac_save_LIBS="$LIBS"
8098 cat > conftest.$ac_ext <<EOF
8099 #line 8100 "configure"
8100 #include "confdefs.h"
8101 /* Override any gcc2 internal prototype to avoid an error. */
8102 /* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8110 if { (eval echo configure:8111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8112 eval "ac_cv_lib_$ac_lib_var=yes"
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8117 eval "ac_cv_lib_$ac_lib_var=no"
8120 LIBS="$ac_save_LIBS"
8123 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8124 echo "$ac_t""yes" 1>&6
8127 cat >> confdefs.h <<\EOF
8128 #define HAVE_AIX_SECURITY 1
8133 echo "$ac_t""no" 1>&6
8139 ac_cv_func_getopt=no
8140 cat >> confdefs.h <<\EOF
8141 #define BOTH_STRINGS_H 1
8148 if test $ol_enable_modules != no ; then
8149 for ac_hdr in ltdl.h
8151 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8152 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8153 echo "configure:8154: checking for $ac_hdr" >&5
8154 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8155 echo $ac_n "(cached) $ac_c" 1>&6
8157 cat > conftest.$ac_ext <<EOF
8158 #line 8159 "configure"
8159 #include "confdefs.h"
8162 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8163 { (eval echo configure:8164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8164 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8165 if test -z "$ac_err"; then
8167 eval "ac_cv_header_$ac_safe=yes"
8170 echo "configure: failed program was:" >&5
8171 cat conftest.$ac_ext >&5
8173 eval "ac_cv_header_$ac_safe=no"
8177 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8178 echo "$ac_t""yes" 1>&6
8179 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8180 cat >> confdefs.h <<EOF
8181 #define $ac_tr_hdr 1
8185 echo "$ac_t""no" 1>&6
8190 if test $ac_cv_header_ltdl_h = no ; then
8191 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8194 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8195 echo "configure:8196: checking for lt_dlinit in -lltdl" >&5
8196 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8197 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8198 echo $ac_n "(cached) $ac_c" 1>&6
8200 ac_save_LIBS="$LIBS"
8202 cat > conftest.$ac_ext <<EOF
8203 #line 8204 "configure"
8204 #include "confdefs.h"
8205 /* Override any gcc2 internal prototype to avoid an error. */
8206 /* We use char because int might match the return type of a gcc2
8207 builtin and then its argument prototype would still apply. */
8214 if { (eval echo configure:8215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8216 eval "ac_cv_lib_$ac_lib_var=yes"
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8221 eval "ac_cv_lib_$ac_lib_var=no"
8224 LIBS="$ac_save_LIBS"
8227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8231 cat >> confdefs.h <<\EOF
8232 #define HAVE_LIBLTDL 1
8237 echo "$ac_t""no" 1>&6
8241 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8242 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8247 for i in $Backends; do
8248 eval "ol_tmp=\$ol_enable_$i"
8249 if test $ol_tmp = mod ; then
8250 echo "configure: warning: building static $i backend" 1>&2
8251 eval "ol_enable_$i=yes"
8254 for i in $Overlays; do
8255 eval "ol_tmp=\$ol_enable_$i"
8256 if test $ol_tmp = mod ; then
8257 echo "configure: warning: building static $i overlay" 1>&2
8258 eval "ol_enable_$i=yes"
8264 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8265 echo "configure:8266: checking for EBCDIC" >&5
8266 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8267 echo $ac_n "(cached) $ac_c" 1>&6
8270 cat > conftest.$ac_ext <<EOF
8271 #line 8272 "configure"
8272 #include "confdefs.h"
8275 #include <__ASCII__/generate_error.h>
8279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8280 { (eval echo configure:8281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8282 if test -z "$ac_err"; then
8284 ol_cv_cpp_ebcdic=yes
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8295 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8296 if test $ol_cv_cpp_ebcdic = yes ; then
8297 cat >> confdefs.h <<\EOF
8298 #define HAVE_EBCDIC 1
8303 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8304 echo "configure:8305: checking for ANSI C header files" >&5
8305 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8306 echo $ac_n "(cached) $ac_c" 1>&6
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8317 { (eval echo configure:8318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8319 if test -z "$ac_err"; then
8321 ol_cv_header_stdc=yes
8324 echo "configure: failed program was:" >&5
8325 cat conftest.$ac_ext >&5
8327 ol_cv_header_stdc=no
8331 if test $ol_cv_header_stdc = yes; then
8332 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8333 cat > conftest.$ac_ext <<EOF
8334 #line 8335 "configure"
8335 #include "confdefs.h"
8338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8339 egrep "memchr" >/dev/null 2>&1; then
8343 ol_cv_header_stdc=no
8349 if test $ol_cv_header_stdc = yes; then
8350 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8351 cat > conftest.$ac_ext <<EOF
8352 #line 8353 "configure"
8353 #include "confdefs.h"
8356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8357 egrep "free" >/dev/null 2>&1; then
8361 ol_cv_header_stdc=no
8367 if test $ol_cv_header_stdc = yes; then
8368 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8369 if test "$cross_compiling" = yes; then
8372 cat > conftest.$ac_ext <<EOF
8373 #line 8374 "configure"
8374 #include "confdefs.h"
8377 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8378 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8380 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8381 || ('j' <= (c) && (c) <= 'r') \
8382 || ('s' <= (c) && (c) <= 'z'))
8383 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8385 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8386 int main () { int i; for (i = 0; i < 256; i++)
8387 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8391 if { (eval echo configure:8392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8395 echo "configure: failed program was:" >&5
8396 cat conftest.$ac_ext >&5
8398 ol_cv_header_stdc=no
8406 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8407 if test $ol_cv_header_stdc = yes; then
8408 cat >> confdefs.h <<\EOF
8409 #define STDC_HEADERS 1
8413 ac_cv_header_stdc=disable
8416 if test $ol_cv_header_stdc != yes; then
8417 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8421 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8423 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8424 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8425 echo "configure:8426: checking for $ac_hdr that defines DIR" >&5
8426 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8427 echo $ac_n "(cached) $ac_c" 1>&6
8429 cat > conftest.$ac_ext <<EOF
8430 #line 8431 "configure"
8431 #include "confdefs.h"
8432 #include <sys/types.h>
8438 if { (eval echo configure:8439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8440 eval "ac_cv_header_dirent_$ac_safe=yes"
8442 echo "configure: failed program was:" >&5
8443 cat conftest.$ac_ext >&5
8445 eval "ac_cv_header_dirent_$ac_safe=no"
8449 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8450 echo "$ac_t""yes" 1>&6
8451 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8452 cat >> confdefs.h <<EOF
8453 #define $ac_tr_hdr 1
8455 ac_header_dirent=$ac_hdr; break
8457 echo "$ac_t""no" 1>&6
8460 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8461 if test $ac_header_dirent = dirent.h; then
8462 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8463 echo "configure:8464: checking for opendir in -ldir" >&5
8464 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8465 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8468 ac_save_LIBS="$LIBS"
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8473 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8482 if { (eval echo configure:8483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8484 eval "ac_cv_lib_$ac_lib_var=yes"
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 eval "ac_cv_lib_$ac_lib_var=no"
8492 LIBS="$ac_save_LIBS"
8495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8496 echo "$ac_t""yes" 1>&6
8499 echo "$ac_t""no" 1>&6
8503 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8504 echo "configure:8505: checking for opendir in -lx" >&5
8505 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8506 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8507 echo $ac_n "(cached) $ac_c" 1>&6
8509 ac_save_LIBS="$LIBS"
8511 cat > conftest.$ac_ext <<EOF
8512 #line 8513 "configure"
8513 #include "confdefs.h"
8514 /* Override any gcc2 internal prototype to avoid an error. */
8515 /* We use char because int might match the return type of a gcc2
8516 builtin and then its argument prototype would still apply. */
8523 if { (eval echo configure:8524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8525 eval "ac_cv_lib_$ac_lib_var=yes"
8527 echo "configure: failed program was:" >&5
8528 cat conftest.$ac_ext >&5
8530 eval "ac_cv_lib_$ac_lib_var=no"
8533 LIBS="$ac_save_LIBS"
8536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8537 echo "$ac_t""yes" 1>&6
8540 echo "$ac_t""no" 1>&6
8545 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8546 echo "configure:8547: checking for sys/wait.h that is POSIX.1 compatible" >&5
8547 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8548 echo $ac_n "(cached) $ac_c" 1>&6
8550 cat > conftest.$ac_ext <<EOF
8551 #line 8552 "configure"
8552 #include "confdefs.h"
8553 #include <sys/types.h>
8554 #include <sys/wait.h>
8556 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8559 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8564 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8567 if { (eval echo configure:8568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8569 ac_cv_header_sys_wait_h=yes
8571 echo "configure: failed program was:" >&5
8572 cat conftest.$ac_ext >&5
8574 ac_cv_header_sys_wait_h=no
8579 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8580 if test $ac_cv_header_sys_wait_h = yes; then
8581 cat >> confdefs.h <<\EOF
8582 #define HAVE_SYS_WAIT_H 1
8587 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8588 echo "configure:8589: checking POSIX termios" >&5
8589 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8590 echo $ac_n "(cached) $ac_c" 1>&6
8592 cat > conftest.$ac_ext <<EOF
8593 #line 8594 "configure"
8594 #include "confdefs.h"
8595 #include <sys/types.h>
8597 #include <termios.h>
8599 /* SunOS 4.0.3 has termios.h but not the library calls. */
8603 if { (eval echo configure:8604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8605 am_cv_sys_posix_termios=yes
8607 echo "configure: failed program was:" >&5
8608 cat conftest.$ac_ext >&5
8610 am_cv_sys_posix_termios=no
8615 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8618 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8619 echo "configure:8620: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8620 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8621 echo $ac_n "(cached) $ac_c" 1>&6
8623 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8625 gwinsz_in_termios_h=no
8626 if test $am_cv_sys_posix_termios = yes; then
8627 cat > conftest.$ac_ext <<EOF
8628 #line 8629 "configure"
8629 #include "confdefs.h"
8630 #include <sys/types.h>
8631 # include <termios.h>
8637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8638 egrep "yes" >/dev/null 2>&1; then
8640 gwinsz_in_termios_h=yes
8646 if test $gwinsz_in_termios_h = no; then
8647 cat > conftest.$ac_ext <<EOF
8648 #line 8649 "configure"
8649 #include "confdefs.h"
8650 #include <sys/types.h>
8651 # include <sys/ioctl.h>
8657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8658 egrep "yes" >/dev/null 2>&1; then
8660 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8668 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8669 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8670 cat >> confdefs.h <<\EOF
8671 #define GWINSZ_IN_SYS_IOCTL 1
8676 if test $am_cv_sys_posix_termios = yes ; then
8677 cat >> confdefs.h <<\EOF
8678 #define HAVE_POSIX_TERMIOS 1
8734 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8735 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8736 echo "configure:8737: checking for $ac_hdr" >&5
8737 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8738 echo $ac_n "(cached) $ac_c" 1>&6
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8745 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8746 { (eval echo configure:8747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8747 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8748 if test -z "$ac_err"; then
8750 eval "ac_cv_header_$ac_safe=yes"
8753 echo "configure: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8756 eval "ac_cv_header_$ac_safe=no"
8760 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8761 echo "$ac_t""yes" 1>&6
8762 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8763 cat >> confdefs.h <<EOF
8764 #define $ac_tr_hdr 1
8768 echo "$ac_t""no" 1>&6
8775 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8776 echo "configure:8777: checking for sigset in -lV3" >&5
8777 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8778 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8779 echo $ac_n "(cached) $ac_c" 1>&6
8781 ac_save_LIBS="$LIBS"
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8785 "configure"
8785 #include "confdefs.h"
8786 /* Override any gcc2 internal prototype to avoid an error. */
8787 /* We use char because int might match the return type of a gcc2
8788 builtin and then its argument prototype would still apply. */
8795 if { (eval echo configure:8796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8797 eval "ac_cv_lib_$ac_lib_var=yes"
8799 echo "configure: failed program was:" >&5
8800 cat conftest.$ac_ext >&5
8802 eval "ac_cv_lib_$ac_lib_var=no"
8805 LIBS="$ac_save_LIBS"
8808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8809 echo "$ac_t""yes" 1>&6
8810 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8811 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8812 cat >> confdefs.h <<EOF
8813 #define $ac_tr_lib 1
8819 echo "$ac_t""no" 1>&6
8823 if test "$ac_cv_header_winsock_h" = yes; then
8824 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8825 echo "configure:8826: checking for winsock" >&5
8826 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8830 for curlib in ws2_32 wsock32; do
8831 LIBS="$LIBS -l$curlib"
8832 cat > conftest.$ac_ext <<EOF
8833 #line 8834 "configure"
8834 #include "confdefs.h"
8835 #include <winsock.h>
8840 select(0,NULL,NULL,NULL,NULL);
8842 gethostname(NULL,0);
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8857 if test $ol_cv_winsock = yes; then
8858 cat >> confdefs.h <<\EOF
8859 #define HAVE_WINSOCK 1
8862 ac_cv_func_socket=yes
8863 ac_cv_func_select=yes
8864 ac_cv_func_closesocket=yes
8865 ac_cv_func_gethostname=yes
8866 if test $curlib = ws2_32; then
8867 ol_cv_winsock=winsock2
8868 cat >> confdefs.h <<\EOF
8869 #define HAVE_WINSOCK2 1
8879 echo "$ac_t""$ol_cv_winsock" 1>&6
8883 echo $ac_n "checking for socket""... $ac_c" 1>&6
8884 echo "configure:8885: checking for socket" >&5
8885 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8886 echo $ac_n "(cached) $ac_c" 1>&6
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 /* System header to define __stub macros and hopefully few prototypes,
8892 which can conflict with char socket(); below. */
8894 /* Override any gcc2 internal prototype to avoid an error. */
8895 /* We use char because int might match the return type of a gcc2
8896 builtin and then its argument prototype would still apply. */
8902 /* The GNU C library defines this for functions which it implements
8903 to always fail with ENOSYS. Some functions are actually named
8904 something starting with __ and the normal name is an alias. */
8905 #if defined (__stub_socket) || defined (__stub___socket)
8913 if { (eval echo configure:8914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8915 eval "ac_cv_func_socket=yes"
8917 echo "configure: failed program was:" >&5
8918 cat conftest.$ac_ext >&5
8920 eval "ac_cv_func_socket=no"
8925 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8926 echo "$ac_t""yes" 1>&6
8929 echo "$ac_t""no" 1>&6
8931 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8932 echo "configure:8933: checking for main in -lsocket" >&5
8933 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8935 echo $ac_n "(cached) $ac_c" 1>&6
8937 ac_save_LIBS="$LIBS"
8938 LIBS="-lsocket $LIBS"
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8947 if { (eval echo configure:8948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8949 eval "ac_cv_lib_$ac_lib_var=yes"
8951 echo "configure: failed program was:" >&5
8952 cat conftest.$ac_ext >&5
8954 eval "ac_cv_lib_$ac_lib_var=no"
8957 LIBS="$ac_save_LIBS"
8960 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8961 echo "$ac_t""yes" 1>&6
8962 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8963 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8964 cat >> confdefs.h <<EOF
8965 #define $ac_tr_lib 1
8968 LIBS="-lsocket $LIBS"
8971 echo "$ac_t""no" 1>&6
8974 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
8975 echo "configure:8976: checking for main in -lnet" >&5
8976 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
8977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8978 echo $ac_n "(cached) $ac_c" 1>&6
8980 ac_save_LIBS="$LIBS"
8982 cat > conftest.$ac_ext <<EOF
8983 #line 8984 "configure"
8984 #include "confdefs.h"
8990 if { (eval echo configure:8991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8992 eval "ac_cv_lib_$ac_lib_var=yes"
8994 echo "configure: failed program was:" >&5
8995 cat conftest.$ac_ext >&5
8997 eval "ac_cv_lib_$ac_lib_var=no"
9000 LIBS="$ac_save_LIBS"
9003 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9004 echo "$ac_t""yes" 1>&6
9005 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9006 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9007 cat >> confdefs.h <<EOF
9008 #define $ac_tr_lib 1
9014 echo "$ac_t""no" 1>&6
9017 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9018 echo "configure:9019: checking for main in -lnsl_s" >&5
9019 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9020 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9021 echo $ac_n "(cached) $ac_c" 1>&6
9023 ac_save_LIBS="$LIBS"
9024 LIBS="-lnsl_s $LIBS"
9025 cat > conftest.$ac_ext <<EOF
9026 #line 9027 "configure"
9027 #include "confdefs.h"
9033 if { (eval echo configure:9034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9035 eval "ac_cv_lib_$ac_lib_var=yes"
9037 echo "configure: failed program was:" >&5
9038 cat conftest.$ac_ext >&5
9040 eval "ac_cv_lib_$ac_lib_var=no"
9043 LIBS="$ac_save_LIBS"
9046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9047 echo "$ac_t""yes" 1>&6
9048 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9049 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9050 cat >> confdefs.h <<EOF
9051 #define $ac_tr_lib 1
9054 LIBS="-lnsl_s $LIBS"
9057 echo "$ac_t""no" 1>&6
9060 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9061 echo "configure:9062: checking for main in -lnsl" >&5
9062 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9063 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9064 echo $ac_n "(cached) $ac_c" 1>&6
9066 ac_save_LIBS="$LIBS"
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9076 if { (eval echo configure:9077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9078 eval "ac_cv_lib_$ac_lib_var=yes"
9080 echo "configure: failed program was:" >&5
9081 cat conftest.$ac_ext >&5
9083 eval "ac_cv_lib_$ac_lib_var=no"
9086 LIBS="$ac_save_LIBS"
9089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9090 echo "$ac_t""yes" 1>&6
9091 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9093 cat >> confdefs.h <<EOF
9094 #define $ac_tr_lib 1
9100 echo "$ac_t""no" 1>&6
9103 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9104 echo "configure:9105: checking for socket in -linet" >&5
9105 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9106 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9109 ac_save_LIBS="$LIBS"
9111 cat > conftest.$ac_ext <<EOF
9112 #line 9113 "configure"
9113 #include "confdefs.h"
9114 /* Override any gcc2 internal prototype to avoid an error. */
9115 /* We use char because int might match the return type of a gcc2
9116 builtin and then its argument prototype would still apply. */
9123 if { (eval echo configure:9124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9125 eval "ac_cv_lib_$ac_lib_var=yes"
9127 echo "configure: failed program was:" >&5
9128 cat conftest.$ac_ext >&5
9130 eval "ac_cv_lib_$ac_lib_var=no"
9133 LIBS="$ac_save_LIBS"
9136 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9137 echo "$ac_t""yes" 1>&6
9138 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9139 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9140 cat >> confdefs.h <<EOF
9141 #define $ac_tr_lib 1
9147 echo "$ac_t""no" 1>&6
9150 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9151 echo "configure:9152: checking for main in -lgen" >&5
9152 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9154 echo $ac_n "(cached) $ac_c" 1>&6
9156 ac_save_LIBS="$LIBS"
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9166 if { (eval echo configure:9167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9168 eval "ac_cv_lib_$ac_lib_var=yes"
9170 echo "configure: failed program was:" >&5
9171 cat conftest.$ac_ext >&5
9173 eval "ac_cv_lib_$ac_lib_var=no"
9176 LIBS="$ac_save_LIBS"
9179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9180 echo "$ac_t""yes" 1>&6
9181 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9183 cat >> confdefs.h <<EOF
9184 #define $ac_tr_lib 1
9190 echo "$ac_t""no" 1>&6
9197 echo $ac_n "checking for select""... $ac_c" 1>&6
9198 echo "configure:9199: checking for select" >&5
9199 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9200 echo $ac_n "(cached) $ac_c" 1>&6
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9205 /* System header to define __stub macros and hopefully few prototypes,
9206 which can conflict with char select(); below. */
9208 /* Override any gcc2 internal prototype to avoid an error. */
9209 /* We use char because int might match the return type of a gcc2
9210 builtin and then its argument prototype would still apply. */
9216 /* The GNU C library defines this for functions which it implements
9217 to always fail with ENOSYS. Some functions are actually named
9218 something starting with __ and the normal name is an alias. */
9219 #if defined (__stub_select) || defined (__stub___select)
9227 if { (eval echo configure:9228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9229 eval "ac_cv_func_select=yes"
9231 echo "configure: failed program was:" >&5
9232 cat conftest.$ac_ext >&5
9234 eval "ac_cv_func_select=no"
9239 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9240 echo "$ac_t""yes" 1>&6
9243 echo "$ac_t""no" 1>&6
9244 { echo "configure: error: select() required." 1>&2; exit 1; }
9248 if test "${ac_cv_header_winsock_h}" != yes; then
9249 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9250 echo "configure:9251: checking types of arguments for select()" >&5
9251 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9252 echo $ac_n "(cached) $ac_c" 1>&6
9254 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9257 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9258 echo $ac_n "(cached) $ac_c" 1>&6
9260 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9261 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9262 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9263 cat > conftest.$ac_ext <<EOF
9264 #line 9265 "configure"
9265 #include "confdefs.h"
9266 #ifdef HAVE_SYS_TYPES_H
9267 #include <sys/types.h>
9269 #ifdef HAVE_SYS_TIME_H
9270 #include <sys/time.h>
9272 #ifdef HAVE_SYS_SELECT_H
9273 #include <sys/select.h>
9275 #ifdef HAVE_SYS_SOCKET_H
9276 #include <sys/socket.h>
9278 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);
9283 if { (eval echo configure:9284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9285 ac_not_found=no ; break 3
9287 echo "configure: failed program was:" >&5
9288 cat conftest.$ac_ext >&5
9302 if test "$ac_not_found" = yes; then
9303 ac_cv_func_select_arg1=int
9304 ac_cv_func_select_arg234='int *'
9305 ac_cv_func_select_arg5='struct timeval *'
9307 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9308 cat >> confdefs.h <<EOF
9309 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9312 cat >> confdefs.h <<EOF
9313 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9316 cat >> confdefs.h <<EOF
9317 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9324 for ac_hdr in regex.h
9326 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9327 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9328 echo "configure:9329: checking for $ac_hdr" >&5
9329 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9330 echo $ac_n "(cached) $ac_c" 1>&6
9332 cat > conftest.$ac_ext <<EOF
9333 #line 9334 "configure"
9334 #include "confdefs.h"
9337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9338 { (eval echo configure:9339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9340 if test -z "$ac_err"; then
9342 eval "ac_cv_header_$ac_safe=yes"
9345 echo "configure: failed program was:" >&5
9346 cat conftest.$ac_ext >&5
9348 eval "ac_cv_header_$ac_safe=no"
9352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9353 echo "$ac_t""yes" 1>&6
9354 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9355 cat >> confdefs.h <<EOF
9356 #define $ac_tr_hdr 1
9360 echo "$ac_t""no" 1>&6
9364 if test "$ac_cv_header_regex_h" != yes ; then
9365 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9368 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9369 echo "configure:9370: checking for library containing regfree" >&5
9370 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9371 echo $ac_n "(cached) $ac_c" 1>&6
9373 ac_func_search_save_LIBS="$LIBS"
9374 ac_cv_search_regfree="no"
9375 cat > conftest.$ac_ext <<EOF
9376 #line 9377 "configure"
9377 #include "confdefs.h"
9378 /* Override any gcc2 internal prototype to avoid an error. */
9379 /* We use char because int might match the return type of a gcc2
9380 builtin and then its argument prototype would still apply. */
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9389 ac_cv_search_regfree="none required"
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9395 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9396 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9397 cat > conftest.$ac_ext <<EOF
9398 #line 9399 "configure"
9399 #include "confdefs.h"
9400 /* Override any gcc2 internal prototype to avoid an error. */
9401 /* We use char because int might match the return type of a gcc2
9402 builtin and then its argument prototype would still apply. */
9409 if { (eval echo configure:9410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9411 ac_cv_search_regfree="-l$ac_lib"
9414 echo "configure: failed program was:" >&5
9415 cat conftest.$ac_ext >&5
9419 LIBS="$ac_func_search_save_LIBS"
9422 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9423 if test "$ac_cv_search_regfree" != "no"; then
9424 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9427 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9431 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9432 echo "configure:9433: checking for compatible POSIX regex" >&5
9433 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9434 echo $ac_n "(cached) $ac_c" 1>&6
9437 if test "$cross_compiling" = yes; then
9438 ol_cv_c_posix_regex=cross
9440 cat > conftest.$ac_ext <<EOF
9441 #line 9442 "configure"
9442 #include "confdefs.h"
9444 #include <sys/types.h>
9446 static char *pattern, *string;
9454 if(regcomp(&re, pattern, 0)) {
9458 string = "ALL MATCH";
9460 rc = regexec(&re, string, 0, (void*)0, 0);
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9469 ol_cv_c_posix_regex=yes
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9474 ol_cv_c_posix_regex=no
9481 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9483 if test "$ol_cv_c_posix_regex" = no ; then
9484 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9489 for ac_hdr in sys/uuid.h
9491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9493 echo "configure:9494: checking for $ac_hdr" >&5
9494 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9495 echo $ac_n "(cached) $ac_c" 1>&6
9497 cat > conftest.$ac_ext <<EOF
9498 #line 9499 "configure"
9499 #include "confdefs.h"
9502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9503 { (eval echo configure:9504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9505 if test -z "$ac_err"; then
9507 eval "ac_cv_header_$ac_safe=yes"
9510 echo "configure: failed program was:" >&5
9511 cat conftest.$ac_ext >&5
9513 eval "ac_cv_header_$ac_safe=no"
9517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9518 echo "$ac_t""yes" 1>&6
9519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9520 cat >> confdefs.h <<EOF
9521 #define $ac_tr_hdr 1
9525 echo "$ac_t""no" 1>&6
9529 if test $ac_cv_header_sys_uuid_h = yes ; then
9532 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9533 echo "configure:9534: checking for library containing uuid_to_str" >&5
9534 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9535 echo $ac_n "(cached) $ac_c" 1>&6
9537 ac_func_search_save_LIBS="$LIBS"
9538 ac_cv_search_uuid_to_str="no"
9539 cat > conftest.$ac_ext <<EOF
9540 #line 9541 "configure"
9541 #include "confdefs.h"
9542 /* Override any gcc2 internal prototype to avoid an error. */
9543 /* We use char because int might match the return type of a gcc2
9544 builtin and then its argument prototype would still apply. */
9551 if { (eval echo configure:9552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9553 ac_cv_search_uuid_to_str="none required"
9555 echo "configure: failed program was:" >&5
9556 cat conftest.$ac_ext >&5
9559 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9561 cat > conftest.$ac_ext <<EOF
9562 #line 9563 "configure"
9563 #include "confdefs.h"
9564 /* Override any gcc2 internal prototype to avoid an error. */
9565 /* We use char because int might match the return type of a gcc2
9566 builtin and then its argument prototype would still apply. */
9573 if { (eval echo configure:9574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9575 ac_cv_search_uuid_to_str="-l$ac_lib"
9578 echo "configure: failed program was:" >&5
9579 cat conftest.$ac_ext >&5
9583 LIBS="$ac_func_search_save_LIBS"
9586 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9587 if test "$ac_cv_search_uuid_to_str" != "no"; then
9588 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9595 if test have_uuid = yes ; then
9596 cat >> confdefs.h <<\EOF
9597 #define HAVE_UUID_TO_STR 1
9601 test "$ac_cv_search_uuid_to_str" = "none required" || \
9602 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9606 if test $have_uuid = no ; then
9607 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9608 echo "configure:9609: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9610 LIBS="$LIBS -lrpcrt4"
9611 cat > conftest.$ac_ext <<EOF
9612 #line 9613 "configure"
9613 #include "confdefs.h"
9615 int __stdcall UuidCreate(void *);
9616 int __stdcall UuidToStringA(void *,void **);
9625 if { (eval echo configure:9626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9629 echo "configure: failed program was:" >&5
9630 cat conftest.$ac_ext >&5
9635 if test $need_rpcrt = yes; then
9636 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9639 echo "$ac_t""$need_rpcrt" 1>&6
9643 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9644 echo "configure:9645: checking for res_query" >&5
9645 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9646 echo $ac_n "(cached) $ac_c" 1>&6
9648 cat > conftest.$ac_ext <<EOF
9649 #line 9650 "configure"
9650 #include "confdefs.h"
9651 /* System header to define __stub macros and hopefully few prototypes,
9652 which can conflict with char res_query(); below. */
9654 /* Override any gcc2 internal prototype to avoid an error. */
9655 /* We use char because int might match the return type of a gcc2
9656 builtin and then its argument prototype would still apply. */
9662 /* The GNU C library defines this for functions which it implements
9663 to always fail with ENOSYS. Some functions are actually named
9664 something starting with __ and the normal name is an alias. */
9665 #if defined (__stub_res_query) || defined (__stub___res_query)
9673 if { (eval echo configure:9674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9675 eval "ac_cv_func_res_query=yes"
9677 echo "configure: failed program was:" >&5
9678 cat conftest.$ac_ext >&5
9680 eval "ac_cv_func_res_query=no"
9685 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9686 echo "$ac_t""yes" 1>&6
9689 echo "$ac_t""no" 1>&6
9692 if test $ac_cv_func_res_query = no ; then
9693 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9694 echo "configure:9695: checking for __res_query" >&5
9695 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9698 cat > conftest.$ac_ext <<EOF
9699 #line 9700 "configure"
9700 #include "confdefs.h"
9701 /* System header to define __stub macros and hopefully few prototypes,
9702 which can conflict with char __res_query(); below. */
9704 /* Override any gcc2 internal prototype to avoid an error. */
9705 /* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9712 /* The GNU C library defines this for functions which it implements
9713 to always fail with ENOSYS. Some functions are actually named
9714 something starting with __ and the normal name is an alias. */
9715 #if defined (__stub___res_query) || defined (__stub_____res_query)
9723 if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9725 eval "ac_cv_func___res_query=yes"
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 eval "ac_cv_func___res_query=no"
9735 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9736 echo "$ac_t""yes" 1>&6
9739 echo "$ac_t""no" 1>&6
9742 ac_cv_func_res_query=$ac_cv_func___res_query
9745 if test $ac_cv_func_res_query = no ; then
9746 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9747 echo "configure:9748: checking for res_query in -lbind" >&5
9748 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9749 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9750 echo $ac_n "(cached) $ac_c" 1>&6
9752 ac_save_LIBS="$LIBS"
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9756 "configure"
9756 #include "confdefs.h"
9757 /* Override any gcc2 internal prototype to avoid an error. */
9758 /* We use char because int might match the return type of a gcc2
9759 builtin and then its argument prototype would still apply. */
9766 if { (eval echo configure:9767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9768 eval "ac_cv_lib_$ac_lib_var=yes"
9770 echo "configure: failed program was:" >&5
9771 cat conftest.$ac_ext >&5
9773 eval "ac_cv_lib_$ac_lib_var=no"
9776 LIBS="$ac_save_LIBS"
9779 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9780 echo "$ac_t""yes" 1>&6
9781 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9782 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9783 cat >> confdefs.h <<EOF
9784 #define $ac_tr_lib 1
9790 echo "$ac_t""no" 1>&6
9793 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9796 if test $ac_cv_func_res_query = no ; then
9797 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9798 echo "configure:9799: checking for __res_query in -lbind" >&5
9799 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9800 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9801 echo $ac_n "(cached) $ac_c" 1>&6
9803 ac_save_LIBS="$LIBS"
9805 cat > conftest.$ac_ext <<EOF
9806 #line 9807 "configure"
9807 #include "confdefs.h"
9808 /* Override any gcc2 internal prototype to avoid an error. */
9809 /* We use char because int might match the return type of a gcc2
9810 builtin and then its argument prototype would still apply. */
9817 if { (eval echo configure:9818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9819 eval "ac_cv_lib_$ac_lib_var=yes"
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9824 eval "ac_cv_lib_$ac_lib_var=no"
9827 LIBS="$ac_save_LIBS"
9830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9831 echo "$ac_t""yes" 1>&6
9832 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9833 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9834 cat >> confdefs.h <<EOF
9835 #define $ac_tr_lib 1
9841 echo "$ac_t""no" 1>&6
9844 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9847 if test $ac_cv_func_res_query = no ; then
9848 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9849 echo "configure:9850: checking for res_query in -lresolv" >&5
9850 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9851 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9854 ac_save_LIBS="$LIBS"
9855 LIBS="-lresolv $LIBS"
9856 cat > conftest.$ac_ext <<EOF
9857 #line 9858 "configure"
9858 #include "confdefs.h"
9859 /* Override any gcc2 internal prototype to avoid an error. */
9860 /* We use char because int might match the return type of a gcc2
9861 builtin and then its argument prototype would still apply. */
9868 if { (eval echo configure:9869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9870 eval "ac_cv_lib_$ac_lib_var=yes"
9872 echo "configure: failed program was:" >&5
9873 cat conftest.$ac_ext >&5
9875 eval "ac_cv_lib_$ac_lib_var=no"
9878 LIBS="$ac_save_LIBS"
9881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9882 echo "$ac_t""yes" 1>&6
9883 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9884 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9885 cat >> confdefs.h <<EOF
9886 #define $ac_tr_lib 1
9889 LIBS="-lresolv $LIBS"
9892 echo "$ac_t""no" 1>&6
9895 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9898 if test $ac_cv_func_res_query = no ; then
9899 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9900 echo "configure:9901: checking for __res_query in -lresolv" >&5
9901 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9902 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9905 ac_save_LIBS="$LIBS"
9906 LIBS="-lresolv $LIBS"
9907 cat > conftest.$ac_ext <<EOF
9908 #line 9909 "configure"
9909 #include "confdefs.h"
9910 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9919 if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9921 eval "ac_cv_lib_$ac_lib_var=yes"
9923 echo "configure: failed program was:" >&5
9924 cat conftest.$ac_ext >&5
9926 eval "ac_cv_lib_$ac_lib_var=no"
9929 LIBS="$ac_save_LIBS"
9932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9933 echo "$ac_t""yes" 1>&6
9934 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9935 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9936 cat >> confdefs.h <<EOF
9937 #define $ac_tr_lib 1
9940 LIBS="-lresolv $LIBS"
9943 echo "$ac_t""no" 1>&6
9946 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
9949 if test "$ac_cv_func_res_query" = yes ; then
9950 cat >> confdefs.h <<\EOF
9951 #define HAVE_RES_QUERY 1
9955 if test $ol_enable_dnssrv != no ; then
9960 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
9961 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
9964 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
9966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9967 echo "configure:9968: checking for $ac_func" >&5
9968 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9969 echo $ac_n "(cached) $ac_c" 1>&6
9971 cat > conftest.$ac_ext <<EOF
9972 #line 9973 "configure"
9973 #include "confdefs.h"
9974 /* System header to define __stub macros and hopefully few prototypes,
9975 which can conflict with char $ac_func(); below. */
9977 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9985 /* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9998 eval "ac_cv_func_$ac_func=yes"
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10003 eval "ac_cv_func_$ac_func=no"
10008 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10009 echo "$ac_t""yes" 1>&6
10010 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10011 cat >> confdefs.h <<EOF
10012 #define $ac_tr_func 1
10016 echo "$ac_t""no" 1>&6
10022 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10023 if test $ol_enable_ipv6 = yes ; then
10024 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10026 elif test $ol_enable_ipv6 != no ; then
10027 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10028 echo "configure:10029: checking INET6_ADDRSTRLEN" >&5
10029 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10030 echo $ac_n "(cached) $ac_c" 1>&6
10033 cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10037 # include <netinet/in.h>
10038 # ifdef INET6_ADDRSTRLEN
10039 __has_inet6_addrstrlen__;
10043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10044 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10046 ol_cv_inet6_addrstrlen=yes
10049 ol_cv_inet6_addrstrlen=no
10055 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10058 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10059 echo "configure:10060: checking struct sockaddr_storage" >&5
10060 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10064 cat > conftest.$ac_ext <<EOF
10065 #line 10066 "configure"
10066 #include "confdefs.h"
10068 #include <sys/types.h>
10069 #include <sys/socket.h>
10073 struct sockaddr_storage ss;
10077 if { (eval echo configure:10078: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10079 ol_cv_struct_sockaddr_storage=yes
10081 echo "configure: failed program was:" >&5
10082 cat conftest.$ac_ext >&5
10084 ol_cv_struct_sockaddr_storage=no
10089 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10091 if test $ol_cv_inet6_addrstrlen = yes \
10092 -a $ol_cv_struct_sockaddr_storage = yes ; then
10094 elif test $ol_enable_ipv6 = yes \
10095 -a $ol_cv_inet6_addrstrlen = no ; then
10096 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10097 elif test $ol_enable_ipv6 = yes \
10098 -a $ol_cv_struct_sockaddr_storage = no ; then
10099 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10103 if test $ol_enable_local != no ; then
10104 for ac_hdr in sys/un.h
10106 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10107 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10108 echo "configure:10109: checking for $ac_hdr" >&5
10109 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10110 echo $ac_n "(cached) $ac_c" 1>&6
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10117 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10118 { (eval echo configure:10119: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10119 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10120 if test -z "$ac_err"; then
10122 eval "ac_cv_header_$ac_safe=yes"
10125 echo "configure: failed program was:" >&5
10126 cat conftest.$ac_ext >&5
10128 eval "ac_cv_header_$ac_safe=no"
10132 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10133 echo "$ac_t""yes" 1>&6
10134 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10135 cat >> confdefs.h <<EOF
10136 #define $ac_tr_hdr 1
10140 echo "$ac_t""no" 1>&6
10145 if test $ol_enable_local = auto ; then
10146 ol_enable_local=$ac_cv_header_sys_un_h
10147 elif test $ac_cv_header_sys_un_h = no ; then
10148 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10156 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10157 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10158 -o $ol_with_kerberos = k425 ; then
10160 for ac_hdr in krb5.h
10162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10164 echo "configure:10165: checking for $ac_hdr" >&5
10165 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10166 echo $ac_n "(cached) $ac_c" 1>&6
10168 cat > conftest.$ac_ext <<EOF
10169 #line 10170 "configure"
10170 #include "confdefs.h"
10173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10174 { (eval echo configure:10175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10176 if test -z "$ac_err"; then
10178 eval "ac_cv_header_$ac_safe=yes"
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10184 eval "ac_cv_header_$ac_safe=no"
10188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10191 cat >> confdefs.h <<EOF
10192 #define $ac_tr_hdr 1
10196 echo "$ac_t""no" 1>&6
10201 if test $ac_cv_header_krb5_h = yes ; then
10202 for ac_hdr in heim_err.h
10204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10206 echo "configure:10207: checking for $ac_hdr" >&5
10207 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10208 echo $ac_n "(cached) $ac_c" 1>&6
10210 cat > conftest.$ac_ext <<EOF
10211 #line 10212 "configure"
10212 #include "confdefs.h"
10215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10216 { (eval echo configure:10217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10218 if test -z "$ac_err"; then
10220 eval "ac_cv_header_$ac_safe=yes"
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10226 eval "ac_cv_header_$ac_safe=no"
10230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10231 echo "$ac_t""yes" 1>&6
10232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10233 cat >> confdefs.h <<EOF
10234 #define $ac_tr_hdr 1
10238 echo "$ac_t""no" 1>&6
10242 if test $ac_cv_header_heim_err_h = yes ; then
10248 if test $krb5_impl = mit; then
10249 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10250 echo "configure:10251: checking for main in -lk5crypto" >&5
10251 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10252 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10253 echo $ac_n "(cached) $ac_c" 1>&6
10255 ac_save_LIBS="$LIBS"
10256 LIBS="-lk5crypto $LIBS"
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10259 "configure"
10259 #include "confdefs.h"
10265 if { (eval echo configure:10266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10267 eval "ac_cv_lib_$ac_lib_var=yes"
10269 echo "configure: failed program was:" >&5
10270 cat conftest.$ac_ext >&5
10272 eval "ac_cv_lib_$ac_lib_var=no"
10275 LIBS="$ac_save_LIBS"
10278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10279 echo "$ac_t""yes" 1>&6
10280 krb5crypto=k5crypto
10282 echo "$ac_t""no" 1>&6
10287 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10288 echo "configure:10289: checking for main in -lkrb5" >&5
10289 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10290 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10291 echo $ac_n "(cached) $ac_c" 1>&6
10293 ac_save_LIBS="$LIBS"
10294 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10295 cat > conftest.$ac_ext <<EOF
10296 #line 10297 "configure"
10297 #include "confdefs.h"
10303 if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10305 eval "ac_cv_lib_$ac_lib_var=yes"
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10310 eval "ac_cv_lib_$ac_lib_var=no"
10313 LIBS="$ac_save_LIBS"
10316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10317 echo "$ac_t""yes" 1>&6
10319 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10321 echo "$ac_t""no" 1>&6
10326 elif test $krb5_impl = heimdal; then
10327 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10328 echo "configure:10329: checking for main in -ldes" >&5
10329 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10330 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10331 echo $ac_n "(cached) $ac_c" 1>&6
10333 ac_save_LIBS="$LIBS"
10335 cat > conftest.$ac_ext <<EOF
10336 #line 10337 "configure"
10337 #include "confdefs.h"
10343 if { (eval echo configure:10344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10345 eval "ac_cv_lib_$ac_lib_var=yes"
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10350 eval "ac_cv_lib_$ac_lib_var=no"
10353 LIBS="$ac_save_LIBS"
10356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10357 echo "$ac_t""yes" 1>&6
10360 echo "$ac_t""no" 1>&6
10365 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10366 echo "configure:10367: checking for main in -lkrb5" >&5
10367 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10368 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10369 echo $ac_n "(cached) $ac_c" 1>&6
10371 ac_save_LIBS="$LIBS"
10372 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10373 cat > conftest.$ac_ext <<EOF
10374 #line 10375 "configure"
10375 #include "confdefs.h"
10381 if { (eval echo configure:10382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 eval "ac_cv_lib_$ac_lib_var=yes"
10385 echo "configure: failed program was:" >&5
10386 cat conftest.$ac_ext >&5
10388 eval "ac_cv_lib_$ac_lib_var=no"
10391 LIBS="$ac_save_LIBS"
10394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10395 echo "$ac_t""yes" 1>&6
10397 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10399 echo "$ac_t""no" 1>&6
10404 cat >> confdefs.h <<\EOF
10405 #define HAVE_HEIMDAL_KERBEROS 1
10411 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10414 if test $have_krb5 = yes ; then
10417 cat >> confdefs.h <<\EOF
10418 #define HAVE_KRB5 1
10422 if test $ol_with_kerberos = k5only ; then
10423 ol_with_kerberos=found
10426 elif test $ol_with_kerberos != auto ; then
10427 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10433 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10434 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10436 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10439 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10440 echo "configure:10441: checking for $ac_hdr" >&5
10441 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10442 echo $ac_n "(cached) $ac_c" 1>&6
10444 cat > conftest.$ac_ext <<EOF
10445 #line 10446 "configure"
10446 #include "confdefs.h"
10449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10450 { (eval echo configure:10451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10452 if test -z "$ac_err"; then
10454 eval "ac_cv_header_$ac_safe=yes"
10457 echo "configure: failed program was:" >&5
10458 cat conftest.$ac_ext >&5
10460 eval "ac_cv_header_$ac_safe=no"
10464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10465 echo "$ac_t""yes" 1>&6
10466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10467 cat >> confdefs.h <<EOF
10468 #define $ac_tr_hdr 1
10472 echo "$ac_t""no" 1>&6
10477 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10478 if test $krb5_impl = mit; then
10479 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10480 echo "configure:10481: checking for main in -lkrb4" >&5
10481 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10482 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10485 ac_save_LIBS="$LIBS"
10486 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10487 cat > conftest.$ac_ext <<EOF
10488 #line 10489 "configure"
10489 #include "confdefs.h"
10495 if { (eval echo configure:10496: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10497 eval "ac_cv_lib_$ac_lib_var=yes"
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 eval "ac_cv_lib_$ac_lib_var=no"
10505 LIBS="$ac_save_LIBS"
10508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10509 echo "$ac_t""yes" 1>&6
10511 KRB4_LIBS="-lkrb4 -ldes425"
10513 echo "$ac_t""no" 1>&6
10518 elif test $krb5_impl = heimdal; then
10519 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10520 echo "configure:10521: checking for main in -lkrb4" >&5
10521 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10522 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10523 echo $ac_n "(cached) $ac_c" 1>&6
10525 ac_save_LIBS="$LIBS"
10526 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10527 cat > conftest.$ac_ext <<EOF
10528 #line 10529 "configure"
10529 #include "confdefs.h"
10535 if { (eval echo configure:10536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10537 eval "ac_cv_lib_$ac_lib_var=yes"
10539 echo "configure: failed program was:" >&5
10540 cat conftest.$ac_ext >&5
10542 eval "ac_cv_lib_$ac_lib_var=no"
10545 LIBS="$ac_save_LIBS"
10548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10549 echo "$ac_t""yes" 1>&6
10553 echo "$ac_t""no" 1>&6
10560 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10563 if test $have_k425 = yes ; then
10564 ol_with_kerberos=found
10567 cat >> confdefs.h <<\EOF
10568 #define HAVE_KRB425 1
10571 cat >> confdefs.h <<\EOF
10572 #define HAVE_KRB4 1
10576 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10577 echo "configure:10578: checking for des_debug in Kerberos libraries" >&5
10578 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10583 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10588 #include <kerberosIV/krb.h>
10589 #include <kerberosIV/des.h>
10590 extern int des_debug;
10598 if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10600 ol_cv_var_des_debug=yes
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10605 ol_cv_var_des_debug=no
10612 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10614 if test $ol_cv_var_des_debug = yes ; then
10615 cat >> confdefs.h <<\EOF
10616 #define HAVE_DES_DEBUG 1
10626 if test $ol_link_krb5 = yes ; then
10627 ol_with_kerberos=found
10630 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10631 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10633 for ac_hdr in krb.h des.h krb-archaeology.h
10635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10637 echo "configure:10638: checking for $ac_hdr" >&5
10638 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10639 echo $ac_n "(cached) $ac_c" 1>&6
10641 cat > conftest.$ac_ext <<EOF
10642 #line 10643 "configure"
10643 #include "confdefs.h"
10646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10647 { (eval echo configure:10648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10649 if test -z "$ac_err"; then
10651 eval "ac_cv_header_$ac_safe=yes"
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10657 eval "ac_cv_header_$ac_safe=no"
10661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10664 cat >> confdefs.h <<EOF
10665 #define $ac_tr_hdr 1
10669 echo "$ac_t""no" 1>&6
10674 if test $ac_cv_header_krb_h = yes ; then
10675 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10676 echo "configure:10677: checking for main in -lkrb" >&5
10677 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10678 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10679 echo $ac_n "(cached) $ac_c" 1>&6
10681 ac_save_LIBS="$LIBS"
10682 LIBS="-lkrb -ldes $LIBS"
10683 cat > conftest.$ac_ext <<EOF
10684 #line 10685 "configure"
10685 #include "confdefs.h"
10691 if { (eval echo configure:10692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10693 eval "ac_cv_lib_$ac_lib_var=yes"
10695 echo "configure: failed program was:" >&5
10696 cat conftest.$ac_ext >&5
10698 eval "ac_cv_lib_$ac_lib_var=no"
10701 LIBS="$ac_save_LIBS"
10704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10705 echo "$ac_t""yes" 1>&6
10708 echo "$ac_t""no" 1>&6
10713 if test $have_k4 = yes ; then
10714 ol_with_kerberos=found
10717 cat >> confdefs.h <<\EOF
10718 #define HAVE_KRB4 1
10722 KRB4_LIBS="-lkrb -ldes"
10724 if test $ac_cv_header_krb_archaeology_h = yes ; then
10725 cat >> confdefs.h <<\EOF
10726 #define HAVE_KTH_KERBEROS 1
10734 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10737 elif test $ol_enable_kbind = yes ; then
10738 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10741 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10742 cat >> confdefs.h <<\EOF
10743 #define HAVE_KERBEROS 1
10747 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10748 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10752 if test $ol_with_tls != no ; then
10753 for ac_hdr in openssl/ssl.h ssl.h
10755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10757 echo "configure:10758: checking for $ac_hdr" >&5
10758 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10759 echo $ac_n "(cached) $ac_c" 1>&6
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10767 { (eval echo configure:10768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10769 if test -z "$ac_err"; then
10771 eval "ac_cv_header_$ac_safe=yes"
10774 echo "configure: failed program was:" >&5
10775 cat conftest.$ac_ext >&5
10777 eval "ac_cv_header_$ac_safe=no"
10781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10782 echo "$ac_t""yes" 1>&6
10783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10784 cat >> confdefs.h <<EOF
10785 #define $ac_tr_hdr 1
10789 echo "$ac_t""no" 1>&6
10794 if test $ac_cv_header_openssl_ssl_h = yes \
10795 -o $ac_cv_header_ssl_h = yes ; then
10796 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10797 echo "configure:10798: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10798 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10799 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10800 echo $ac_n "(cached) $ac_c" 1>&6
10802 ac_save_LIBS="$LIBS"
10803 LIBS="-lssl -lcrypto $LIBS"
10804 cat > conftest.$ac_ext <<EOF
10805 #line 10806 "configure"
10806 #include "confdefs.h"
10807 /* Override any gcc2 internal prototype to avoid an error. */
10808 /* We use char because int might match the return type of a gcc2
10809 builtin and then its argument prototype would still apply. */
10810 char SSLeay_add_ssl_algorithms();
10813 SSLeay_add_ssl_algorithms()
10816 if { (eval echo configure:10817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10818 eval "ac_cv_lib_$ac_lib_var=yes"
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10823 eval "ac_cv_lib_$ac_lib_var=no"
10826 LIBS="$ac_save_LIBS"
10829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10830 echo "$ac_t""yes" 1>&6
10834 echo "$ac_t""no" 1>&6
10839 if test $have_ssleay = no ; then
10840 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10841 echo "configure:10842: checking for SSL_library_init in -lssl" >&5
10842 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10843 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10844 echo $ac_n "(cached) $ac_c" 1>&6
10846 ac_save_LIBS="$LIBS"
10847 LIBS="-lssl -lcrypto $LIBS"
10848 cat > conftest.$ac_ext <<EOF
10849 #line 10850 "configure"
10850 #include "confdefs.h"
10851 /* Override any gcc2 internal prototype to avoid an error. */
10852 /* We use char because int might match the return type of a gcc2
10853 builtin and then its argument prototype would still apply. */
10854 char SSL_library_init();
10860 if { (eval echo configure:10861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10862 eval "ac_cv_lib_$ac_lib_var=yes"
10864 echo "configure: failed program was:" >&5
10865 cat conftest.$ac_ext >&5
10867 eval "ac_cv_lib_$ac_lib_var=no"
10870 LIBS="$ac_save_LIBS"
10873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10874 echo "$ac_t""yes" 1>&6
10878 echo "$ac_t""no" 1>&6
10884 if test $have_ssleay = no ; then
10885 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10886 echo "configure:10887: checking for ssl3_accept in -lssl" >&5
10887 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10888 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10891 ac_save_LIBS="$LIBS"
10892 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10893 cat > conftest.$ac_ext <<EOF
10894 #line 10895 "configure"
10895 #include "confdefs.h"
10896 /* Override any gcc2 internal prototype to avoid an error. */
10897 /* We use char because int might match the return type of a gcc2
10898 builtin and then its argument prototype would still apply. */
10899 char ssl3_accept();
10905 if { (eval echo configure:10906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10907 eval "ac_cv_lib_$ac_lib_var=yes"
10909 echo "configure: failed program was:" >&5
10910 cat conftest.$ac_ext >&5
10912 eval "ac_cv_lib_$ac_lib_var=no"
10915 LIBS="$ac_save_LIBS"
10918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10919 echo "$ac_t""yes" 1>&6
10923 echo "$ac_t""no" 1>&6
10929 if test $have_ssleay = yes ; then
10933 cat >> confdefs.h <<\EOF
10934 #define HAVE_SSLEAY 1
10938 if test $need_rsaref = yes; then
10939 cat >> confdefs.h <<\EOF
10940 #define HAVE_RSAREF 1
10944 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10946 TLS_LIBS="-lssl -lcrypto"
10952 echo "configure: warning: TLS data protection not supported!" 1>&2
10956 if test $ol_link_tls = yes ; then
10957 cat >> confdefs.h <<\EOF
10963 elif test $ol_with_tls = auto ; then
10964 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10965 echo "configure: warning: TLS data protection not supported!" 1>&2
10967 elif test $ol_with_tls != no ; then
10968 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10971 if test $ol_enable_lmpasswd != no; then
10972 if test $ol_link_tls != yes ; then
10973 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10976 cat >> confdefs.h <<\EOF
10977 #define SLAPD_LMHASH 1
10984 if test $ol_with_threads = auto -o $ol_with_threads = yes \
10985 -o $ol_with_threads = nt ; then
10988 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
10989 echo "configure:10990: checking for _beginthread" >&5
10990 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
10991 echo $ac_n "(cached) $ac_c" 1>&6
10993 cat > conftest.$ac_ext <<EOF
10994 #line 10995 "configure"
10995 #include "confdefs.h"
10996 /* System header to define __stub macros and hopefully few prototypes,
10997 which can conflict with char _beginthread(); below. */
10998 #include <assert.h>
10999 /* Override any gcc2 internal prototype to avoid an error. */
11000 /* We use char because int might match the return type of a gcc2
11001 builtin and then its argument prototype would still apply. */
11002 char _beginthread();
11007 /* The GNU C library defines this for functions which it implements
11008 to always fail with ENOSYS. Some functions are actually named
11009 something starting with __ and the normal name is an alias. */
11010 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11018 if { (eval echo configure:11019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11020 eval "ac_cv_func__beginthread=yes"
11022 echo "configure: failed program was:" >&5
11023 cat conftest.$ac_ext >&5
11025 eval "ac_cv_func__beginthread=no"
11030 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11031 echo "$ac_t""yes" 1>&6
11034 echo "$ac_t""no" 1>&6
11038 if test $ac_cv_func__beginthread = yes ; then
11039 cat >> confdefs.h <<\EOF
11040 #define HAVE_NT_THREADS 1
11043 ol_cv_nt_threads=yes
11047 if test "$ol_cv_nt_threads" = yes ; then
11049 ol_with_threads=found
11050 ol_with_yielding_select=yes
11052 cat >> confdefs.h <<\EOF
11053 #define HAVE_NT_SERVICE_MANAGER 1
11056 cat >> confdefs.h <<\EOF
11057 #define HAVE_NT_EVENT_LOG 1
11062 if test $ol_with_threads = nt ; then
11063 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11067 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11068 -o $ol_with_threads = posix ; then
11070 for ac_hdr in pthread.h
11072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11074 echo "configure:11075: checking for $ac_hdr" >&5
11075 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11076 echo $ac_n "(cached) $ac_c" 1>&6
11078 cat > conftest.$ac_ext <<EOF
11079 #line 11080 "configure"
11080 #include "confdefs.h"
11083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11084 { (eval echo configure:11085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11086 if test -z "$ac_err"; then
11088 eval "ac_cv_header_$ac_safe=yes"
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11094 eval "ac_cv_header_$ac_safe=no"
11098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11099 echo "$ac_t""yes" 1>&6
11100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11101 cat >> confdefs.h <<EOF
11102 #define $ac_tr_hdr 1
11106 echo "$ac_t""no" 1>&6
11111 if test $ac_cv_header_pthread_h = yes ; then
11112 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11113 echo "configure:11114: checking POSIX thread version" >&5
11114 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11115 echo $ac_n "(cached) $ac_c" 1>&6
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11122 # include <pthread.h>
11126 int i = PTHREAD_CREATE_JOINABLE;
11130 if { (eval echo configure:11131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11133 cat > conftest.$ac_ext <<EOF
11134 #line 11135 "configure"
11135 #include "confdefs.h"
11136 #include <pthread.h>
11138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11139 egrep "pthread_detach" >/dev/null 2>&1; then
11141 ol_cv_pthread_version=10
11144 ol_cv_pthread_version=8
11149 echo "configure: failed program was:" >&5
11150 cat conftest.$ac_ext >&5
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11155 "configure"
11155 #include "confdefs.h"
11157 # include <pthread.h>
11158 # ifdef PTHREAD_CREATE_UNDETACHED
11163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11164 egrep "draft7" >/dev/null 2>&1; then
11166 ol_cv_pthread_version=7
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11172 "configure"
11172 #include "confdefs.h"
11173 #include <pthread.h>
11175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11176 egrep "pthread_attr_init" >/dev/null 2>&1; then
11178 ol_cv_pthread_version=6
11182 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure"
11184 #include "confdefs.h"
11186 # include <pthread.h>
11187 #ifdef PTHREAD_MUTEX_INITIALIZER
11192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11193 egrep "draft5" >/dev/null 2>&1; then
11195 ol_cv_pthread_version=5
11198 ol_cv_pthread_version=4
11213 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11216 if test $ol_cv_pthread_version != 0 ; then
11217 cat >> confdefs.h <<EOF
11218 #define HAVE_PTHREADS $ol_cv_pthread_version
11222 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11225 # consider threads found
11226 ol_with_threads=found
11229 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11230 echo "configure:11231: checking for LinuxThreads pthread.h" >&5
11231 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11232 echo $ac_n "(cached) $ac_c" 1>&6
11234 cat > conftest.$ac_ext <<EOF
11235 #line 11236 "configure"
11236 #include "confdefs.h"
11237 #include <pthread.h>
11239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11240 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11242 ol_cv_header_linux_threads=yes
11245 ol_cv_header_linux_threads=no
11252 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11253 if test $ol_cv_header_linux_threads = yes; then
11254 cat >> confdefs.h <<\EOF
11255 #define HAVE_LINUX_THREADS 1
11261 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11262 echo "configure:11263: checking for GNU Pth pthread.h" >&5
11263 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 #include <pthread.h>
11270 #ifdef _POSIX_THREAD_IS_GNU_PTH
11275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11276 egrep "__gnu_pth__" >/dev/null 2>&1; then
11278 ol_cv_header_gnu_pth_pthread_h=yes
11281 ol_cv_header_gnu_pth_pthread_h=no
11288 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11291 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11292 for ac_hdr in sched.h
11294 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11296 echo "configure:11297: checking for $ac_hdr" >&5
11297 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11298 echo $ac_n "(cached) $ac_c" 1>&6
11300 cat > conftest.$ac_ext <<EOF
11301 #line 11302 "configure"
11302 #include "confdefs.h"
11305 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11306 { (eval echo configure:11307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11307 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11308 if test -z "$ac_err"; then
11310 eval "ac_cv_header_$ac_safe=yes"
11313 echo "configure: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11316 eval "ac_cv_header_$ac_safe=no"
11320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11321 echo "$ac_t""yes" 1>&6
11322 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11323 cat >> confdefs.h <<EOF
11324 #define $ac_tr_hdr 1
11328 echo "$ac_t""no" 1>&6
11335 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11336 echo "configure:11337: checking for pthread_create in default libraries" >&5
11337 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11338 echo $ac_n "(cached) $ac_c" 1>&6
11341 if test "$cross_compiling" = yes; then
11342 cat > conftest.$ac_ext <<EOF
11343 #line 11344 "configure"
11344 #include "confdefs.h"
11345 /* pthread test headers */
11346 #include <pthread.h>
11347 #if HAVE_PTHREADS < 7
11351 #define NULL (void*)0
11354 static void *task(p)
11357 return (void *) (p == NULL);
11362 /* pthread test function */
11363 #ifndef PTHREAD_CREATE_DETACHED
11364 #define PTHREAD_CREATE_DETACHED 1
11368 int detach = PTHREAD_CREATE_DETACHED;
11370 #if HAVE_PTHREADS > 4
11371 /* Final pthreads */
11372 pthread_attr_t attr;
11374 status = pthread_attr_init(&attr);
11375 if( status ) return status;
11377 #if HAVE_PTHREADS < 7
11378 status = pthread_attr_setdetachstate(&attr, &detach);
11379 if( status < 0 ) status = errno;
11381 status = pthread_attr_setdetachstate(&attr, detach);
11383 if( status ) return status;
11384 status = pthread_create( &t, &attr, task, NULL );
11385 #if HAVE_PTHREADS < 7
11386 if( status < 0 ) status = errno;
11388 if( status ) return status;
11390 /* Draft 4 pthreads */
11391 status = pthread_create( &t, pthread_attr_default, task, NULL );
11392 if( status ) return errno;
11394 /* give thread a chance to complete */
11395 /* it should remain joinable and hence detachable */
11398 status = pthread_detach( &t );
11399 if( status ) return errno;
11402 #ifdef HAVE_LINUX_THREADS
11403 pthread_kill_other_threads_np();
11410 if { (eval echo configure:11411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11412 ol_cv_pthread_create=yes
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11417 ol_cv_pthread_create=no
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11424 /* pthread test headers */
11425 #include <pthread.h>
11426 #if HAVE_PTHREADS < 7
11430 #define NULL (void*)0
11433 static void *task(p)
11436 return (void *) (p == NULL);
11440 int main(argc, argv)
11445 /* pthread test function */
11446 #ifndef PTHREAD_CREATE_DETACHED
11447 #define PTHREAD_CREATE_DETACHED 1
11451 int detach = PTHREAD_CREATE_DETACHED;
11453 #if HAVE_PTHREADS > 4
11454 /* Final pthreads */
11455 pthread_attr_t attr;
11457 status = pthread_attr_init(&attr);
11458 if( status ) return status;
11460 #if HAVE_PTHREADS < 7
11461 status = pthread_attr_setdetachstate(&attr, &detach);
11462 if( status < 0 ) status = errno;
11464 status = pthread_attr_setdetachstate(&attr, detach);
11466 if( status ) return status;
11467 status = pthread_create( &t, &attr, task, NULL );
11468 #if HAVE_PTHREADS < 7
11469 if( status < 0 ) status = errno;
11471 if( status ) return status;
11473 /* Draft 4 pthreads */
11474 status = pthread_create( &t, pthread_attr_default, task, NULL );
11475 if( status ) return errno;
11477 /* give thread a chance to complete */
11478 /* it should remain joinable and hence detachable */
11481 status = pthread_detach( &t );
11482 if( status ) return errno;
11485 #ifdef HAVE_LINUX_THREADS
11486 pthread_kill_other_threads_np();
11494 if { (eval echo configure:11495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11496 ol_cv_pthread_create=yes
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11501 ol_cv_pthread_create=no
11508 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11510 if test $ol_cv_pthread_create != no ; then
11511 ol_link_threads=posix
11512 ol_link_pthreads=""
11515 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11516 if test "$ol_link_threads" = no ; then
11518 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11519 echo "configure:11520: checking for pthread link with -kthread" >&5
11520 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11526 LIBS="-kthread $LIBS"
11528 if test "$cross_compiling" = yes; then
11529 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure"
11531 #include "confdefs.h"
11532 /* pthread test headers */
11533 #include <pthread.h>
11534 #if HAVE_PTHREADS < 7
11538 #define NULL (void*)0
11541 static void *task(p)
11544 return (void *) (p == NULL);
11549 /* pthread test function */
11550 #ifndef PTHREAD_CREATE_DETACHED
11551 #define PTHREAD_CREATE_DETACHED 1
11555 int detach = PTHREAD_CREATE_DETACHED;
11557 #if HAVE_PTHREADS > 4
11558 /* Final pthreads */
11559 pthread_attr_t attr;
11561 status = pthread_attr_init(&attr);
11562 if( status ) return status;
11564 #if HAVE_PTHREADS < 7
11565 status = pthread_attr_setdetachstate(&attr, &detach);
11566 if( status < 0 ) status = errno;
11568 status = pthread_attr_setdetachstate(&attr, detach);
11570 if( status ) return status;
11571 status = pthread_create( &t, &attr, task, NULL );
11572 #if HAVE_PTHREADS < 7
11573 if( status < 0 ) status = errno;
11575 if( status ) return status;
11577 /* Draft 4 pthreads */
11578 status = pthread_create( &t, pthread_attr_default, task, NULL );
11579 if( status ) return errno;
11581 /* give thread a chance to complete */
11582 /* it should remain joinable and hence detachable */
11585 status = pthread_detach( &t );
11586 if( status ) return errno;
11589 #ifdef HAVE_LINUX_THREADS
11590 pthread_kill_other_threads_np();
11597 if { (eval echo configure:11598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11599 ol_cv_pthread_kthread=yes
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 ol_cv_pthread_kthread=no
11608 cat > conftest.$ac_ext <<EOF
11609 #line 11610 "configure"
11610 #include "confdefs.h"
11611 /* pthread test headers */
11612 #include <pthread.h>
11613 #if HAVE_PTHREADS < 7
11617 #define NULL (void*)0
11620 static void *task(p)
11623 return (void *) (p == NULL);
11627 int main(argc, argv)
11632 /* pthread test function */
11633 #ifndef PTHREAD_CREATE_DETACHED
11634 #define PTHREAD_CREATE_DETACHED 1
11638 int detach = PTHREAD_CREATE_DETACHED;
11640 #if HAVE_PTHREADS > 4
11641 /* Final pthreads */
11642 pthread_attr_t attr;
11644 status = pthread_attr_init(&attr);
11645 if( status ) return status;
11647 #if HAVE_PTHREADS < 7
11648 status = pthread_attr_setdetachstate(&attr, &detach);
11649 if( status < 0 ) status = errno;
11651 status = pthread_attr_setdetachstate(&attr, detach);
11653 if( status ) return status;
11654 status = pthread_create( &t, &attr, task, NULL );
11655 #if HAVE_PTHREADS < 7
11656 if( status < 0 ) status = errno;
11658 if( status ) return status;
11660 /* Draft 4 pthreads */
11661 status = pthread_create( &t, pthread_attr_default, task, NULL );
11662 if( status ) return errno;
11664 /* give thread a chance to complete */
11665 /* it should remain joinable and hence detachable */
11668 status = pthread_detach( &t );
11669 if( status ) return errno;
11672 #ifdef HAVE_LINUX_THREADS
11673 pthread_kill_other_threads_np();
11681 if { (eval echo configure:11682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11683 ol_cv_pthread_kthread=yes
11685 echo "configure: failed program was:" >&5
11686 cat conftest.$ac_ext >&5
11688 ol_cv_pthread_kthread=no
11699 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11701 if test $ol_cv_pthread_kthread = yes ; then
11702 ol_link_pthreads="-kthread"
11703 ol_link_threads=posix
11707 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11708 if test "$ol_link_threads" = no ; then
11710 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11711 echo "configure:11712: checking for pthread link with -pthread" >&5
11712 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11713 echo $ac_n "(cached) $ac_c" 1>&6
11718 LIBS="-pthread $LIBS"
11720 if test "$cross_compiling" = yes; then
11721 cat > conftest.$ac_ext <<EOF
11722 #line 11723 "configure"
11723 #include "confdefs.h"
11724 /* pthread test headers */
11725 #include <pthread.h>
11726 #if HAVE_PTHREADS < 7
11730 #define NULL (void*)0
11733 static void *task(p)
11736 return (void *) (p == NULL);
11741 /* pthread test function */
11742 #ifndef PTHREAD_CREATE_DETACHED
11743 #define PTHREAD_CREATE_DETACHED 1
11747 int detach = PTHREAD_CREATE_DETACHED;
11749 #if HAVE_PTHREADS > 4
11750 /* Final pthreads */
11751 pthread_attr_t attr;
11753 status = pthread_attr_init(&attr);
11754 if( status ) return status;
11756 #if HAVE_PTHREADS < 7
11757 status = pthread_attr_setdetachstate(&attr, &detach);
11758 if( status < 0 ) status = errno;
11760 status = pthread_attr_setdetachstate(&attr, detach);
11762 if( status ) return status;
11763 status = pthread_create( &t, &attr, task, NULL );
11764 #if HAVE_PTHREADS < 7
11765 if( status < 0 ) status = errno;
11767 if( status ) return status;
11769 /* Draft 4 pthreads */
11770 status = pthread_create( &t, pthread_attr_default, task, NULL );
11771 if( status ) return errno;
11773 /* give thread a chance to complete */
11774 /* it should remain joinable and hence detachable */
11777 status = pthread_detach( &t );
11778 if( status ) return errno;
11781 #ifdef HAVE_LINUX_THREADS
11782 pthread_kill_other_threads_np();
11789 if { (eval echo configure:11790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11791 ol_cv_pthread_pthread=yes
11793 echo "configure: failed program was:" >&5
11794 cat conftest.$ac_ext >&5
11796 ol_cv_pthread_pthread=no
11800 cat > conftest.$ac_ext <<EOF
11801 #line 11802 "configure"
11802 #include "confdefs.h"
11803 /* pthread test headers */
11804 #include <pthread.h>
11805 #if HAVE_PTHREADS < 7
11809 #define NULL (void*)0
11812 static void *task(p)
11815 return (void *) (p == NULL);
11819 int main(argc, argv)
11824 /* pthread test function */
11825 #ifndef PTHREAD_CREATE_DETACHED
11826 #define PTHREAD_CREATE_DETACHED 1
11830 int detach = PTHREAD_CREATE_DETACHED;
11832 #if HAVE_PTHREADS > 4
11833 /* Final pthreads */
11834 pthread_attr_t attr;
11836 status = pthread_attr_init(&attr);
11837 if( status ) return status;
11839 #if HAVE_PTHREADS < 7
11840 status = pthread_attr_setdetachstate(&attr, &detach);
11841 if( status < 0 ) status = errno;
11843 status = pthread_attr_setdetachstate(&attr, detach);
11845 if( status ) return status;
11846 status = pthread_create( &t, &attr, task, NULL );
11847 #if HAVE_PTHREADS < 7
11848 if( status < 0 ) status = errno;
11850 if( status ) return status;
11852 /* Draft 4 pthreads */
11853 status = pthread_create( &t, pthread_attr_default, task, NULL );
11854 if( status ) return errno;
11856 /* give thread a chance to complete */
11857 /* it should remain joinable and hence detachable */
11860 status = pthread_detach( &t );
11861 if( status ) return errno;
11864 #ifdef HAVE_LINUX_THREADS
11865 pthread_kill_other_threads_np();
11873 if { (eval echo configure:11874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11875 ol_cv_pthread_pthread=yes
11877 echo "configure: failed program was:" >&5
11878 cat conftest.$ac_ext >&5
11880 ol_cv_pthread_pthread=no
11891 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
11893 if test $ol_cv_pthread_pthread = yes ; then
11894 ol_link_pthreads="-pthread"
11895 ol_link_threads=posix
11899 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
11900 if test "$ol_link_threads" = no ; then
11902 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
11903 echo "configure:11904: checking for pthread link with -pthreads" >&5
11904 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
11905 echo $ac_n "(cached) $ac_c" 1>&6
11910 LIBS="-pthreads $LIBS"
11912 if test "$cross_compiling" = yes; then
11913 cat > conftest.$ac_ext <<EOF
11914 #line 11915 "configure"
11915 #include "confdefs.h"
11916 /* pthread test headers */
11917 #include <pthread.h>
11918 #if HAVE_PTHREADS < 7
11922 #define NULL (void*)0
11925 static void *task(p)
11928 return (void *) (p == NULL);
11933 /* pthread test function */
11934 #ifndef PTHREAD_CREATE_DETACHED
11935 #define PTHREAD_CREATE_DETACHED 1
11939 int detach = PTHREAD_CREATE_DETACHED;
11941 #if HAVE_PTHREADS > 4
11942 /* Final pthreads */
11943 pthread_attr_t attr;
11945 status = pthread_attr_init(&attr);
11946 if( status ) return status;
11948 #if HAVE_PTHREADS < 7
11949 status = pthread_attr_setdetachstate(&attr, &detach);
11950 if( status < 0 ) status = errno;
11952 status = pthread_attr_setdetachstate(&attr, detach);
11954 if( status ) return status;
11955 status = pthread_create( &t, &attr, task, NULL );
11956 #if HAVE_PTHREADS < 7
11957 if( status < 0 ) status = errno;
11959 if( status ) return status;
11961 /* Draft 4 pthreads */
11962 status = pthread_create( &t, pthread_attr_default, task, NULL );
11963 if( status ) return errno;
11965 /* give thread a chance to complete */
11966 /* it should remain joinable and hence detachable */
11969 status = pthread_detach( &t );
11970 if( status ) return errno;
11973 #ifdef HAVE_LINUX_THREADS
11974 pthread_kill_other_threads_np();
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11983 ol_cv_pthread_pthreads=yes
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11988 ol_cv_pthread_pthreads=no
11992 cat > conftest.$ac_ext <<EOF
11993 #line 11994 "configure"
11994 #include "confdefs.h"
11995 /* pthread test headers */
11996 #include <pthread.h>
11997 #if HAVE_PTHREADS < 7
12001 #define NULL (void*)0
12004 static void *task(p)
12007 return (void *) (p == NULL);
12011 int main(argc, argv)
12016 /* pthread test function */
12017 #ifndef PTHREAD_CREATE_DETACHED
12018 #define PTHREAD_CREATE_DETACHED 1
12022 int detach = PTHREAD_CREATE_DETACHED;
12024 #if HAVE_PTHREADS > 4
12025 /* Final pthreads */
12026 pthread_attr_t attr;
12028 status = pthread_attr_init(&attr);
12029 if( status ) return status;
12031 #if HAVE_PTHREADS < 7
12032 status = pthread_attr_setdetachstate(&attr, &detach);
12033 if( status < 0 ) status = errno;
12035 status = pthread_attr_setdetachstate(&attr, detach);
12037 if( status ) return status;
12038 status = pthread_create( &t, &attr, task, NULL );
12039 #if HAVE_PTHREADS < 7
12040 if( status < 0 ) status = errno;
12042 if( status ) return status;
12044 /* Draft 4 pthreads */
12045 status = pthread_create( &t, pthread_attr_default, task, NULL );
12046 if( status ) return errno;
12048 /* give thread a chance to complete */
12049 /* it should remain joinable and hence detachable */
12052 status = pthread_detach( &t );
12053 if( status ) return errno;
12056 #ifdef HAVE_LINUX_THREADS
12057 pthread_kill_other_threads_np();
12065 if { (eval echo configure:12066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12067 ol_cv_pthread_pthreads=yes
12069 echo "configure: failed program was:" >&5
12070 cat conftest.$ac_ext >&5
12072 ol_cv_pthread_pthreads=no
12083 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12085 if test $ol_cv_pthread_pthreads = yes ; then
12086 ol_link_pthreads="-pthreads"
12087 ol_link_threads=posix
12091 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12092 if test "$ol_link_threads" = no ; then
12094 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12095 echo "configure:12096: checking for pthread link with -mthreads" >&5
12096 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12102 LIBS="-mthreads $LIBS"
12104 if test "$cross_compiling" = yes; then
12105 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure"
12107 #include "confdefs.h"
12108 /* pthread test headers */
12109 #include <pthread.h>
12110 #if HAVE_PTHREADS < 7
12114 #define NULL (void*)0
12117 static void *task(p)
12120 return (void *) (p == NULL);
12125 /* pthread test function */
12126 #ifndef PTHREAD_CREATE_DETACHED
12127 #define PTHREAD_CREATE_DETACHED 1
12131 int detach = PTHREAD_CREATE_DETACHED;
12133 #if HAVE_PTHREADS > 4
12134 /* Final pthreads */
12135 pthread_attr_t attr;
12137 status = pthread_attr_init(&attr);
12138 if( status ) return status;
12140 #if HAVE_PTHREADS < 7
12141 status = pthread_attr_setdetachstate(&attr, &detach);
12142 if( status < 0 ) status = errno;
12144 status = pthread_attr_setdetachstate(&attr, detach);
12146 if( status ) return status;
12147 status = pthread_create( &t, &attr, task, NULL );
12148 #if HAVE_PTHREADS < 7
12149 if( status < 0 ) status = errno;
12151 if( status ) return status;
12153 /* Draft 4 pthreads */
12154 status = pthread_create( &t, pthread_attr_default, task, NULL );
12155 if( status ) return errno;
12157 /* give thread a chance to complete */
12158 /* it should remain joinable and hence detachable */
12161 status = pthread_detach( &t );
12162 if( status ) return errno;
12165 #ifdef HAVE_LINUX_THREADS
12166 pthread_kill_other_threads_np();
12173 if { (eval echo configure:12174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12175 ol_cv_pthread_mthreads=yes
12177 echo "configure: failed program was:" >&5
12178 cat conftest.$ac_ext >&5
12180 ol_cv_pthread_mthreads=no
12184 cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 /* pthread test headers */
12188 #include <pthread.h>
12189 #if HAVE_PTHREADS < 7
12193 #define NULL (void*)0
12196 static void *task(p)
12199 return (void *) (p == NULL);
12203 int main(argc, argv)
12208 /* pthread test function */
12209 #ifndef PTHREAD_CREATE_DETACHED
12210 #define PTHREAD_CREATE_DETACHED 1
12214 int detach = PTHREAD_CREATE_DETACHED;
12216 #if HAVE_PTHREADS > 4
12217 /* Final pthreads */
12218 pthread_attr_t attr;
12220 status = pthread_attr_init(&attr);
12221 if( status ) return status;
12223 #if HAVE_PTHREADS < 7
12224 status = pthread_attr_setdetachstate(&attr, &detach);
12225 if( status < 0 ) status = errno;
12227 status = pthread_attr_setdetachstate(&attr, detach);
12229 if( status ) return status;
12230 status = pthread_create( &t, &attr, task, NULL );
12231 #if HAVE_PTHREADS < 7
12232 if( status < 0 ) status = errno;
12234 if( status ) return status;
12236 /* Draft 4 pthreads */
12237 status = pthread_create( &t, pthread_attr_default, task, NULL );
12238 if( status ) return errno;
12240 /* give thread a chance to complete */
12241 /* it should remain joinable and hence detachable */
12244 status = pthread_detach( &t );
12245 if( status ) return errno;
12248 #ifdef HAVE_LINUX_THREADS
12249 pthread_kill_other_threads_np();
12257 if { (eval echo configure:12258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12259 ol_cv_pthread_mthreads=yes
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12264 ol_cv_pthread_mthreads=no
12275 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12277 if test $ol_cv_pthread_mthreads = yes ; then
12278 ol_link_pthreads="-mthreads"
12279 ol_link_threads=posix
12283 # Pthread try link: -thread (ol_cv_pthread_thread)
12284 if test "$ol_link_threads" = no ; then
12286 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12287 echo "configure:12288: checking for pthread link with -thread" >&5
12288 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12289 echo $ac_n "(cached) $ac_c" 1>&6
12294 LIBS="-thread $LIBS"
12296 if test "$cross_compiling" = yes; then
12297 cat > conftest.$ac_ext <<EOF
12298 #line 12299 "configure"
12299 #include "confdefs.h"
12300 /* pthread test headers */
12301 #include <pthread.h>
12302 #if HAVE_PTHREADS < 7
12306 #define NULL (void*)0
12309 static void *task(p)
12312 return (void *) (p == NULL);
12317 /* pthread test function */
12318 #ifndef PTHREAD_CREATE_DETACHED
12319 #define PTHREAD_CREATE_DETACHED 1
12323 int detach = PTHREAD_CREATE_DETACHED;
12325 #if HAVE_PTHREADS > 4
12326 /* Final pthreads */
12327 pthread_attr_t attr;
12329 status = pthread_attr_init(&attr);
12330 if( status ) return status;
12332 #if HAVE_PTHREADS < 7
12333 status = pthread_attr_setdetachstate(&attr, &detach);
12334 if( status < 0 ) status = errno;
12336 status = pthread_attr_setdetachstate(&attr, detach);
12338 if( status ) return status;
12339 status = pthread_create( &t, &attr, task, NULL );
12340 #if HAVE_PTHREADS < 7
12341 if( status < 0 ) status = errno;
12343 if( status ) return status;
12345 /* Draft 4 pthreads */
12346 status = pthread_create( &t, pthread_attr_default, task, NULL );
12347 if( status ) return errno;
12349 /* give thread a chance to complete */
12350 /* it should remain joinable and hence detachable */
12353 status = pthread_detach( &t );
12354 if( status ) return errno;
12357 #ifdef HAVE_LINUX_THREADS
12358 pthread_kill_other_threads_np();
12365 if { (eval echo configure:12366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12367 ol_cv_pthread_thread=yes
12369 echo "configure: failed program was:" >&5
12370 cat conftest.$ac_ext >&5
12372 ol_cv_pthread_thread=no
12376 cat > conftest.$ac_ext <<EOF
12377 #line 12378 "configure"
12378 #include "confdefs.h"
12379 /* pthread test headers */
12380 #include <pthread.h>
12381 #if HAVE_PTHREADS < 7
12385 #define NULL (void*)0
12388 static void *task(p)
12391 return (void *) (p == NULL);
12395 int main(argc, argv)
12400 /* pthread test function */
12401 #ifndef PTHREAD_CREATE_DETACHED
12402 #define PTHREAD_CREATE_DETACHED 1
12406 int detach = PTHREAD_CREATE_DETACHED;
12408 #if HAVE_PTHREADS > 4
12409 /* Final pthreads */
12410 pthread_attr_t attr;
12412 status = pthread_attr_init(&attr);
12413 if( status ) return status;
12415 #if HAVE_PTHREADS < 7
12416 status = pthread_attr_setdetachstate(&attr, &detach);
12417 if( status < 0 ) status = errno;
12419 status = pthread_attr_setdetachstate(&attr, detach);
12421 if( status ) return status;
12422 status = pthread_create( &t, &attr, task, NULL );
12423 #if HAVE_PTHREADS < 7
12424 if( status < 0 ) status = errno;
12426 if( status ) return status;
12428 /* Draft 4 pthreads */
12429 status = pthread_create( &t, pthread_attr_default, task, NULL );
12430 if( status ) return errno;
12432 /* give thread a chance to complete */
12433 /* it should remain joinable and hence detachable */
12436 status = pthread_detach( &t );
12437 if( status ) return errno;
12440 #ifdef HAVE_LINUX_THREADS
12441 pthread_kill_other_threads_np();
12449 if { (eval echo configure:12450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12451 ol_cv_pthread_thread=yes
12453 echo "configure: failed program was:" >&5
12454 cat conftest.$ac_ext >&5
12456 ol_cv_pthread_thread=no
12467 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12469 if test $ol_cv_pthread_thread = yes ; then
12470 ol_link_pthreads="-thread"
12471 ol_link_threads=posix
12476 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12477 if test "$ol_link_threads" = no ; then
12478 # try -lpthread -lmach -lexc -lc_r
12479 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12480 echo "configure:12481: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12481 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12482 echo $ac_n "(cached) $ac_c" 1>&6
12487 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12489 if test "$cross_compiling" = yes; then
12490 cat > conftest.$ac_ext <<EOF
12491 #line 12492 "configure"
12492 #include "confdefs.h"
12493 /* pthread test headers */
12494 #include <pthread.h>
12495 #if HAVE_PTHREADS < 7
12499 #define NULL (void*)0
12502 static void *task(p)
12505 return (void *) (p == NULL);
12510 /* pthread test function */
12511 #ifndef PTHREAD_CREATE_DETACHED
12512 #define PTHREAD_CREATE_DETACHED 1
12516 int detach = PTHREAD_CREATE_DETACHED;
12518 #if HAVE_PTHREADS > 4
12519 /* Final pthreads */
12520 pthread_attr_t attr;
12522 status = pthread_attr_init(&attr);
12523 if( status ) return status;
12525 #if HAVE_PTHREADS < 7
12526 status = pthread_attr_setdetachstate(&attr, &detach);
12527 if( status < 0 ) status = errno;
12529 status = pthread_attr_setdetachstate(&attr, detach);
12531 if( status ) return status;
12532 status = pthread_create( &t, &attr, task, NULL );
12533 #if HAVE_PTHREADS < 7
12534 if( status < 0 ) status = errno;
12536 if( status ) return status;
12538 /* Draft 4 pthreads */
12539 status = pthread_create( &t, pthread_attr_default, task, NULL );
12540 if( status ) return errno;
12542 /* give thread a chance to complete */
12543 /* it should remain joinable and hence detachable */
12546 status = pthread_detach( &t );
12547 if( status ) return errno;
12550 #ifdef HAVE_LINUX_THREADS
12551 pthread_kill_other_threads_np();
12558 if { (eval echo configure:12559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12560 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12562 echo "configure: failed program was:" >&5
12563 cat conftest.$ac_ext >&5
12565 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 /* pthread test headers */
12573 #include <pthread.h>
12574 #if HAVE_PTHREADS < 7
12578 #define NULL (void*)0
12581 static void *task(p)
12584 return (void *) (p == NULL);
12588 int main(argc, argv)
12593 /* pthread test function */
12594 #ifndef PTHREAD_CREATE_DETACHED
12595 #define PTHREAD_CREATE_DETACHED 1
12599 int detach = PTHREAD_CREATE_DETACHED;
12601 #if HAVE_PTHREADS > 4
12602 /* Final pthreads */
12603 pthread_attr_t attr;
12605 status = pthread_attr_init(&attr);
12606 if( status ) return status;
12608 #if HAVE_PTHREADS < 7
12609 status = pthread_attr_setdetachstate(&attr, &detach);
12610 if( status < 0 ) status = errno;
12612 status = pthread_attr_setdetachstate(&attr, detach);
12614 if( status ) return status;
12615 status = pthread_create( &t, &attr, task, NULL );
12616 #if HAVE_PTHREADS < 7
12617 if( status < 0 ) status = errno;
12619 if( status ) return status;
12621 /* Draft 4 pthreads */
12622 status = pthread_create( &t, pthread_attr_default, task, NULL );
12623 if( status ) return errno;
12625 /* give thread a chance to complete */
12626 /* it should remain joinable and hence detachable */
12629 status = pthread_detach( &t );
12630 if( status ) return errno;
12633 #ifdef HAVE_LINUX_THREADS
12634 pthread_kill_other_threads_np();
12642 if { (eval echo configure:12643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12644 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12646 echo "configure: failed program was:" >&5
12647 cat conftest.$ac_ext >&5
12649 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12660 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12662 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12663 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12664 ol_link_threads=posix
12668 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12669 if test "$ol_link_threads" = no ; then
12670 # try -lpthread -lmach -lexc
12671 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12672 echo "configure:12673: checking for pthread link with -lpthread -lmach -lexc" >&5
12673 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12674 echo $ac_n "(cached) $ac_c" 1>&6
12679 LIBS="-lpthread -lmach -lexc $LIBS"
12681 if test "$cross_compiling" = yes; then
12682 cat > conftest.$ac_ext <<EOF
12683 #line 12684 "configure"
12684 #include "confdefs.h"
12685 /* pthread test headers */
12686 #include <pthread.h>
12687 #if HAVE_PTHREADS < 7
12691 #define NULL (void*)0
12694 static void *task(p)
12697 return (void *) (p == NULL);
12702 /* pthread test function */
12703 #ifndef PTHREAD_CREATE_DETACHED
12704 #define PTHREAD_CREATE_DETACHED 1
12708 int detach = PTHREAD_CREATE_DETACHED;
12710 #if HAVE_PTHREADS > 4
12711 /* Final pthreads */
12712 pthread_attr_t attr;
12714 status = pthread_attr_init(&attr);
12715 if( status ) return status;
12717 #if HAVE_PTHREADS < 7
12718 status = pthread_attr_setdetachstate(&attr, &detach);
12719 if( status < 0 ) status = errno;
12721 status = pthread_attr_setdetachstate(&attr, detach);
12723 if( status ) return status;
12724 status = pthread_create( &t, &attr, task, NULL );
12725 #if HAVE_PTHREADS < 7
12726 if( status < 0 ) status = errno;
12728 if( status ) return status;
12730 /* Draft 4 pthreads */
12731 status = pthread_create( &t, pthread_attr_default, task, NULL );
12732 if( status ) return errno;
12734 /* give thread a chance to complete */
12735 /* it should remain joinable and hence detachable */
12738 status = pthread_detach( &t );
12739 if( status ) return errno;
12742 #ifdef HAVE_LINUX_THREADS
12743 pthread_kill_other_threads_np();
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12752 ol_cv_pthread_lpthread_lmach_lexc=yes
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 ol_cv_pthread_lpthread_lmach_lexc=no
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12764 /* pthread test headers */
12765 #include <pthread.h>
12766 #if HAVE_PTHREADS < 7
12770 #define NULL (void*)0
12773 static void *task(p)
12776 return (void *) (p == NULL);
12780 int main(argc, argv)
12785 /* pthread test function */
12786 #ifndef PTHREAD_CREATE_DETACHED
12787 #define PTHREAD_CREATE_DETACHED 1
12791 int detach = PTHREAD_CREATE_DETACHED;
12793 #if HAVE_PTHREADS > 4
12794 /* Final pthreads */
12795 pthread_attr_t attr;
12797 status = pthread_attr_init(&attr);
12798 if( status ) return status;
12800 #if HAVE_PTHREADS < 7
12801 status = pthread_attr_setdetachstate(&attr, &detach);
12802 if( status < 0 ) status = errno;
12804 status = pthread_attr_setdetachstate(&attr, detach);
12806 if( status ) return status;
12807 status = pthread_create( &t, &attr, task, NULL );
12808 #if HAVE_PTHREADS < 7
12809 if( status < 0 ) status = errno;
12811 if( status ) return status;
12813 /* Draft 4 pthreads */
12814 status = pthread_create( &t, pthread_attr_default, task, NULL );
12815 if( status ) return errno;
12817 /* give thread a chance to complete */
12818 /* it should remain joinable and hence detachable */
12821 status = pthread_detach( &t );
12822 if( status ) return errno;
12825 #ifdef HAVE_LINUX_THREADS
12826 pthread_kill_other_threads_np();
12834 if { (eval echo configure:12835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12836 ol_cv_pthread_lpthread_lmach_lexc=yes
12838 echo "configure: failed program was:" >&5
12839 cat conftest.$ac_ext >&5
12841 ol_cv_pthread_lpthread_lmach_lexc=no
12852 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
12854 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
12855 ol_link_pthreads="-lpthread -lmach -lexc"
12856 ol_link_threads=posix
12861 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
12862 if test "$ol_link_threads" = no ; then
12863 # try -lpthread -Wl,-woff,85
12864 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
12865 echo "configure:12866: checking for pthread link with -lpthread -Wl,-woff,85" >&5
12866 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12872 LIBS="-lpthread -Wl,-woff,85 $LIBS"
12874 if test "$cross_compiling" = yes; then
12875 cat > conftest.$ac_ext <<EOF
12876 #line 12877 "configure"
12877 #include "confdefs.h"
12878 /* pthread test headers */
12879 #include <pthread.h>
12880 #if HAVE_PTHREADS < 7
12884 #define NULL (void*)0
12887 static void *task(p)
12890 return (void *) (p == NULL);
12895 /* pthread test function */
12896 #ifndef PTHREAD_CREATE_DETACHED
12897 #define PTHREAD_CREATE_DETACHED 1
12901 int detach = PTHREAD_CREATE_DETACHED;
12903 #if HAVE_PTHREADS > 4
12904 /* Final pthreads */
12905 pthread_attr_t attr;
12907 status = pthread_attr_init(&attr);
12908 if( status ) return status;
12910 #if HAVE_PTHREADS < 7
12911 status = pthread_attr_setdetachstate(&attr, &detach);
12912 if( status < 0 ) status = errno;
12914 status = pthread_attr_setdetachstate(&attr, detach);
12916 if( status ) return status;
12917 status = pthread_create( &t, &attr, task, NULL );
12918 #if HAVE_PTHREADS < 7
12919 if( status < 0 ) status = errno;
12921 if( status ) return status;
12923 /* Draft 4 pthreads */
12924 status = pthread_create( &t, pthread_attr_default, task, NULL );
12925 if( status ) return errno;
12927 /* give thread a chance to complete */
12928 /* it should remain joinable and hence detachable */
12931 status = pthread_detach( &t );
12932 if( status ) return errno;
12935 #ifdef HAVE_LINUX_THREADS
12936 pthread_kill_other_threads_np();
12943 if { (eval echo configure:12944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12945 ol_cv_pthread_lib_lpthread_woff=yes
12947 echo "configure: failed program was:" >&5
12948 cat conftest.$ac_ext >&5
12950 ol_cv_pthread_lib_lpthread_woff=no
12954 cat > conftest.$ac_ext <<EOF
12955 #line 12956 "configure"
12956 #include "confdefs.h"
12957 /* pthread test headers */
12958 #include <pthread.h>
12959 #if HAVE_PTHREADS < 7
12963 #define NULL (void*)0
12966 static void *task(p)
12969 return (void *) (p == NULL);
12973 int main(argc, argv)
12978 /* pthread test function */
12979 #ifndef PTHREAD_CREATE_DETACHED
12980 #define PTHREAD_CREATE_DETACHED 1
12984 int detach = PTHREAD_CREATE_DETACHED;
12986 #if HAVE_PTHREADS > 4
12987 /* Final pthreads */
12988 pthread_attr_t attr;
12990 status = pthread_attr_init(&attr);
12991 if( status ) return status;
12993 #if HAVE_PTHREADS < 7
12994 status = pthread_attr_setdetachstate(&attr, &detach);
12995 if( status < 0 ) status = errno;
12997 status = pthread_attr_setdetachstate(&attr, detach);
12999 if( status ) return status;
13000 status = pthread_create( &t, &attr, task, NULL );
13001 #if HAVE_PTHREADS < 7
13002 if( status < 0 ) status = errno;
13004 if( status ) return status;
13006 /* Draft 4 pthreads */
13007 status = pthread_create( &t, pthread_attr_default, task, NULL );
13008 if( status ) return errno;
13010 /* give thread a chance to complete */
13011 /* it should remain joinable and hence detachable */
13014 status = pthread_detach( &t );
13015 if( status ) return errno;
13018 #ifdef HAVE_LINUX_THREADS
13019 pthread_kill_other_threads_np();
13027 if { (eval echo configure:13028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13029 ol_cv_pthread_lib_lpthread_woff=yes
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13034 ol_cv_pthread_lib_lpthread_woff=no
13045 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13047 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13048 ol_link_pthreads="-lpthread -Wl,-woff,85"
13049 ol_link_threads=posix
13054 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13055 if test "$ol_link_threads" = no ; then
13057 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13058 echo "configure:13059: checking for pthread link with -lpthread" >&5
13059 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13060 echo $ac_n "(cached) $ac_c" 1>&6
13065 LIBS="-lpthread $LIBS"
13067 if test "$cross_compiling" = yes; then
13068 cat > conftest.$ac_ext <<EOF
13069 #line 13070 "configure"
13070 #include "confdefs.h"
13071 /* pthread test headers */
13072 #include <pthread.h>
13073 #if HAVE_PTHREADS < 7
13077 #define NULL (void*)0
13080 static void *task(p)
13083 return (void *) (p == NULL);
13088 /* pthread test function */
13089 #ifndef PTHREAD_CREATE_DETACHED
13090 #define PTHREAD_CREATE_DETACHED 1
13094 int detach = PTHREAD_CREATE_DETACHED;
13096 #if HAVE_PTHREADS > 4
13097 /* Final pthreads */
13098 pthread_attr_t attr;
13100 status = pthread_attr_init(&attr);
13101 if( status ) return status;
13103 #if HAVE_PTHREADS < 7
13104 status = pthread_attr_setdetachstate(&attr, &detach);
13105 if( status < 0 ) status = errno;
13107 status = pthread_attr_setdetachstate(&attr, detach);
13109 if( status ) return status;
13110 status = pthread_create( &t, &attr, task, NULL );
13111 #if HAVE_PTHREADS < 7
13112 if( status < 0 ) status = errno;
13114 if( status ) return status;
13116 /* Draft 4 pthreads */
13117 status = pthread_create( &t, pthread_attr_default, task, NULL );
13118 if( status ) return errno;
13120 /* give thread a chance to complete */
13121 /* it should remain joinable and hence detachable */
13124 status = pthread_detach( &t );
13125 if( status ) return errno;
13128 #ifdef HAVE_LINUX_THREADS
13129 pthread_kill_other_threads_np();
13136 if { (eval echo configure:13137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13138 ol_cv_pthread_lpthread=yes
13140 echo "configure: failed program was:" >&5
13141 cat conftest.$ac_ext >&5
13143 ol_cv_pthread_lpthread=no
13147 cat > conftest.$ac_ext <<EOF
13148 #line 13149 "configure"
13149 #include "confdefs.h"
13150 /* pthread test headers */
13151 #include <pthread.h>
13152 #if HAVE_PTHREADS < 7
13156 #define NULL (void*)0
13159 static void *task(p)
13162 return (void *) (p == NULL);
13166 int main(argc, argv)
13171 /* pthread test function */
13172 #ifndef PTHREAD_CREATE_DETACHED
13173 #define PTHREAD_CREATE_DETACHED 1
13177 int detach = PTHREAD_CREATE_DETACHED;
13179 #if HAVE_PTHREADS > 4
13180 /* Final pthreads */
13181 pthread_attr_t attr;
13183 status = pthread_attr_init(&attr);
13184 if( status ) return status;
13186 #if HAVE_PTHREADS < 7
13187 status = pthread_attr_setdetachstate(&attr, &detach);
13188 if( status < 0 ) status = errno;
13190 status = pthread_attr_setdetachstate(&attr, detach);
13192 if( status ) return status;
13193 status = pthread_create( &t, &attr, task, NULL );
13194 #if HAVE_PTHREADS < 7
13195 if( status < 0 ) status = errno;
13197 if( status ) return status;
13199 /* Draft 4 pthreads */
13200 status = pthread_create( &t, pthread_attr_default, task, NULL );
13201 if( status ) return errno;
13203 /* give thread a chance to complete */
13204 /* it should remain joinable and hence detachable */
13207 status = pthread_detach( &t );
13208 if( status ) return errno;
13211 #ifdef HAVE_LINUX_THREADS
13212 pthread_kill_other_threads_np();
13220 if { (eval echo configure:13221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13222 ol_cv_pthread_lpthread=yes
13224 echo "configure: failed program was:" >&5
13225 cat conftest.$ac_ext >&5
13227 ol_cv_pthread_lpthread=no
13238 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13240 if test $ol_cv_pthread_lpthread = yes ; then
13241 ol_link_pthreads="-lpthread"
13242 ol_link_threads=posix
13246 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13247 if test "$ol_link_threads" = no ; then
13249 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13250 echo "configure:13251: checking for pthread link with -lc_r" >&5
13251 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13252 echo $ac_n "(cached) $ac_c" 1>&6
13259 if test "$cross_compiling" = yes; then
13260 cat > conftest.$ac_ext <<EOF
13261 #line 13262 "configure"
13262 #include "confdefs.h"
13263 /* pthread test headers */
13264 #include <pthread.h>
13265 #if HAVE_PTHREADS < 7
13269 #define NULL (void*)0
13272 static void *task(p)
13275 return (void *) (p == NULL);
13280 /* pthread test function */
13281 #ifndef PTHREAD_CREATE_DETACHED
13282 #define PTHREAD_CREATE_DETACHED 1
13286 int detach = PTHREAD_CREATE_DETACHED;
13288 #if HAVE_PTHREADS > 4
13289 /* Final pthreads */
13290 pthread_attr_t attr;
13292 status = pthread_attr_init(&attr);
13293 if( status ) return status;
13295 #if HAVE_PTHREADS < 7
13296 status = pthread_attr_setdetachstate(&attr, &detach);
13297 if( status < 0 ) status = errno;
13299 status = pthread_attr_setdetachstate(&attr, detach);
13301 if( status ) return status;
13302 status = pthread_create( &t, &attr, task, NULL );
13303 #if HAVE_PTHREADS < 7
13304 if( status < 0 ) status = errno;
13306 if( status ) return status;
13308 /* Draft 4 pthreads */
13309 status = pthread_create( &t, pthread_attr_default, task, NULL );
13310 if( status ) return errno;
13312 /* give thread a chance to complete */
13313 /* it should remain joinable and hence detachable */
13316 status = pthread_detach( &t );
13317 if( status ) return errno;
13320 #ifdef HAVE_LINUX_THREADS
13321 pthread_kill_other_threads_np();
13328 if { (eval echo configure:13329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13330 ol_cv_pthread_lc_r=yes
13332 echo "configure: failed program was:" >&5
13333 cat conftest.$ac_ext >&5
13335 ol_cv_pthread_lc_r=no
13339 cat > conftest.$ac_ext <<EOF
13340 #line 13341 "configure"
13341 #include "confdefs.h"
13342 /* pthread test headers */
13343 #include <pthread.h>
13344 #if HAVE_PTHREADS < 7
13348 #define NULL (void*)0
13351 static void *task(p)
13354 return (void *) (p == NULL);
13358 int main(argc, argv)
13363 /* pthread test function */
13364 #ifndef PTHREAD_CREATE_DETACHED
13365 #define PTHREAD_CREATE_DETACHED 1
13369 int detach = PTHREAD_CREATE_DETACHED;
13371 #if HAVE_PTHREADS > 4
13372 /* Final pthreads */
13373 pthread_attr_t attr;
13375 status = pthread_attr_init(&attr);
13376 if( status ) return status;
13378 #if HAVE_PTHREADS < 7
13379 status = pthread_attr_setdetachstate(&attr, &detach);
13380 if( status < 0 ) status = errno;
13382 status = pthread_attr_setdetachstate(&attr, detach);
13384 if( status ) return status;
13385 status = pthread_create( &t, &attr, task, NULL );
13386 #if HAVE_PTHREADS < 7
13387 if( status < 0 ) status = errno;
13389 if( status ) return status;
13391 /* Draft 4 pthreads */
13392 status = pthread_create( &t, pthread_attr_default, task, NULL );
13393 if( status ) return errno;
13395 /* give thread a chance to complete */
13396 /* it should remain joinable and hence detachable */
13399 status = pthread_detach( &t );
13400 if( status ) return errno;
13403 #ifdef HAVE_LINUX_THREADS
13404 pthread_kill_other_threads_np();
13412 if { (eval echo configure:13413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13414 ol_cv_pthread_lc_r=yes
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13419 ol_cv_pthread_lc_r=no
13430 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13432 if test $ol_cv_pthread_lc_r = yes ; then
13433 ol_link_pthreads="-lc_r"
13434 ol_link_threads=posix
13439 # Pthread try link: -threads (ol_cv_pthread_threads)
13440 if test "$ol_link_threads" = no ; then
13442 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13443 echo "configure:13444: checking for pthread link with -threads" >&5
13444 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13445 echo $ac_n "(cached) $ac_c" 1>&6
13450 LIBS="-threads $LIBS"
13452 if test "$cross_compiling" = yes; then
13453 cat > conftest.$ac_ext <<EOF
13454 #line 13455 "configure"
13455 #include "confdefs.h"
13456 /* pthread test headers */
13457 #include <pthread.h>
13458 #if HAVE_PTHREADS < 7
13462 #define NULL (void*)0
13465 static void *task(p)
13468 return (void *) (p == NULL);
13473 /* pthread test function */
13474 #ifndef PTHREAD_CREATE_DETACHED
13475 #define PTHREAD_CREATE_DETACHED 1
13479 int detach = PTHREAD_CREATE_DETACHED;
13481 #if HAVE_PTHREADS > 4
13482 /* Final pthreads */
13483 pthread_attr_t attr;
13485 status = pthread_attr_init(&attr);
13486 if( status ) return status;
13488 #if HAVE_PTHREADS < 7
13489 status = pthread_attr_setdetachstate(&attr, &detach);
13490 if( status < 0 ) status = errno;
13492 status = pthread_attr_setdetachstate(&attr, detach);
13494 if( status ) return status;
13495 status = pthread_create( &t, &attr, task, NULL );
13496 #if HAVE_PTHREADS < 7
13497 if( status < 0 ) status = errno;
13499 if( status ) return status;
13501 /* Draft 4 pthreads */
13502 status = pthread_create( &t, pthread_attr_default, task, NULL );
13503 if( status ) return errno;
13505 /* give thread a chance to complete */
13506 /* it should remain joinable and hence detachable */
13509 status = pthread_detach( &t );
13510 if( status ) return errno;
13513 #ifdef HAVE_LINUX_THREADS
13514 pthread_kill_other_threads_np();
13521 if { (eval echo configure:13522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13523 ol_cv_pthread_threads=yes
13525 echo "configure: failed program was:" >&5
13526 cat conftest.$ac_ext >&5
13528 ol_cv_pthread_threads=no
13532 cat > conftest.$ac_ext <<EOF
13533 #line 13534 "configure"
13534 #include "confdefs.h"
13535 /* pthread test headers */
13536 #include <pthread.h>
13537 #if HAVE_PTHREADS < 7
13541 #define NULL (void*)0
13544 static void *task(p)
13547 return (void *) (p == NULL);
13551 int main(argc, argv)
13556 /* pthread test function */
13557 #ifndef PTHREAD_CREATE_DETACHED
13558 #define PTHREAD_CREATE_DETACHED 1
13562 int detach = PTHREAD_CREATE_DETACHED;
13564 #if HAVE_PTHREADS > 4
13565 /* Final pthreads */
13566 pthread_attr_t attr;
13568 status = pthread_attr_init(&attr);
13569 if( status ) return status;
13571 #if HAVE_PTHREADS < 7
13572 status = pthread_attr_setdetachstate(&attr, &detach);
13573 if( status < 0 ) status = errno;
13575 status = pthread_attr_setdetachstate(&attr, detach);
13577 if( status ) return status;
13578 status = pthread_create( &t, &attr, task, NULL );
13579 #if HAVE_PTHREADS < 7
13580 if( status < 0 ) status = errno;
13582 if( status ) return status;
13584 /* Draft 4 pthreads */
13585 status = pthread_create( &t, pthread_attr_default, task, NULL );
13586 if( status ) return errno;
13588 /* give thread a chance to complete */
13589 /* it should remain joinable and hence detachable */
13592 status = pthread_detach( &t );
13593 if( status ) return errno;
13596 #ifdef HAVE_LINUX_THREADS
13597 pthread_kill_other_threads_np();
13605 if { (eval echo configure:13606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13607 ol_cv_pthread_threads=yes
13609 echo "configure: failed program was:" >&5
13610 cat conftest.$ac_ext >&5
13612 ol_cv_pthread_threads=no
13623 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13625 if test $ol_cv_pthread_threads = yes ; then
13626 ol_link_pthreads="-threads"
13627 ol_link_threads=posix
13632 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13633 if test "$ol_link_threads" = no ; then
13634 # try -lpthreads -lmach -lexc -lc_r
13635 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13636 echo "configure:13637: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13637 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13638 echo $ac_n "(cached) $ac_c" 1>&6
13643 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13645 if test "$cross_compiling" = yes; then
13646 cat > conftest.$ac_ext <<EOF
13647 #line 13648 "configure"
13648 #include "confdefs.h"
13649 /* pthread test headers */
13650 #include <pthread.h>
13651 #if HAVE_PTHREADS < 7
13655 #define NULL (void*)0
13658 static void *task(p)
13661 return (void *) (p == NULL);
13666 /* pthread test function */
13667 #ifndef PTHREAD_CREATE_DETACHED
13668 #define PTHREAD_CREATE_DETACHED 1
13672 int detach = PTHREAD_CREATE_DETACHED;
13674 #if HAVE_PTHREADS > 4
13675 /* Final pthreads */
13676 pthread_attr_t attr;
13678 status = pthread_attr_init(&attr);
13679 if( status ) return status;
13681 #if HAVE_PTHREADS < 7
13682 status = pthread_attr_setdetachstate(&attr, &detach);
13683 if( status < 0 ) status = errno;
13685 status = pthread_attr_setdetachstate(&attr, detach);
13687 if( status ) return status;
13688 status = pthread_create( &t, &attr, task, NULL );
13689 #if HAVE_PTHREADS < 7
13690 if( status < 0 ) status = errno;
13692 if( status ) return status;
13694 /* Draft 4 pthreads */
13695 status = pthread_create( &t, pthread_attr_default, task, NULL );
13696 if( status ) return errno;
13698 /* give thread a chance to complete */
13699 /* it should remain joinable and hence detachable */
13702 status = pthread_detach( &t );
13703 if( status ) return errno;
13706 #ifdef HAVE_LINUX_THREADS
13707 pthread_kill_other_threads_np();
13714 if { (eval echo configure:13715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13716 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13718 echo "configure: failed program was:" >&5
13719 cat conftest.$ac_ext >&5
13721 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13725 cat > conftest.$ac_ext <<EOF
13726 #line 13727 "configure"
13727 #include "confdefs.h"
13728 /* pthread test headers */
13729 #include <pthread.h>
13730 #if HAVE_PTHREADS < 7
13734 #define NULL (void*)0
13737 static void *task(p)
13740 return (void *) (p == NULL);
13744 int main(argc, argv)
13749 /* pthread test function */
13750 #ifndef PTHREAD_CREATE_DETACHED
13751 #define PTHREAD_CREATE_DETACHED 1
13755 int detach = PTHREAD_CREATE_DETACHED;
13757 #if HAVE_PTHREADS > 4
13758 /* Final pthreads */
13759 pthread_attr_t attr;
13761 status = pthread_attr_init(&attr);
13762 if( status ) return status;
13764 #if HAVE_PTHREADS < 7
13765 status = pthread_attr_setdetachstate(&attr, &detach);
13766 if( status < 0 ) status = errno;
13768 status = pthread_attr_setdetachstate(&attr, detach);
13770 if( status ) return status;
13771 status = pthread_create( &t, &attr, task, NULL );
13772 #if HAVE_PTHREADS < 7
13773 if( status < 0 ) status = errno;
13775 if( status ) return status;
13777 /* Draft 4 pthreads */
13778 status = pthread_create( &t, pthread_attr_default, task, NULL );
13779 if( status ) return errno;
13781 /* give thread a chance to complete */
13782 /* it should remain joinable and hence detachable */
13785 status = pthread_detach( &t );
13786 if( status ) return errno;
13789 #ifdef HAVE_LINUX_THREADS
13790 pthread_kill_other_threads_np();
13798 if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13800 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13805 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13816 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
13818 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
13819 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
13820 ol_link_threads=posix
13824 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
13825 if test "$ol_link_threads" = no ; then
13826 # try -lpthreads -lmach -lexc
13827 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
13828 echo "configure:13829: checking for pthread link with -lpthreads -lmach -lexc" >&5
13829 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
13830 echo $ac_n "(cached) $ac_c" 1>&6
13835 LIBS="-lpthreads -lmach -lexc $LIBS"
13837 if test "$cross_compiling" = yes; then
13838 cat > conftest.$ac_ext <<EOF
13839 #line 13840 "configure"
13840 #include "confdefs.h"
13841 /* pthread test headers */
13842 #include <pthread.h>
13843 #if HAVE_PTHREADS < 7
13847 #define NULL (void*)0
13850 static void *task(p)
13853 return (void *) (p == NULL);
13858 /* pthread test function */
13859 #ifndef PTHREAD_CREATE_DETACHED
13860 #define PTHREAD_CREATE_DETACHED 1
13864 int detach = PTHREAD_CREATE_DETACHED;
13866 #if HAVE_PTHREADS > 4
13867 /* Final pthreads */
13868 pthread_attr_t attr;
13870 status = pthread_attr_init(&attr);
13871 if( status ) return status;
13873 #if HAVE_PTHREADS < 7
13874 status = pthread_attr_setdetachstate(&attr, &detach);
13875 if( status < 0 ) status = errno;
13877 status = pthread_attr_setdetachstate(&attr, detach);
13879 if( status ) return status;
13880 status = pthread_create( &t, &attr, task, NULL );
13881 #if HAVE_PTHREADS < 7
13882 if( status < 0 ) status = errno;
13884 if( status ) return status;
13886 /* Draft 4 pthreads */
13887 status = pthread_create( &t, pthread_attr_default, task, NULL );
13888 if( status ) return errno;
13890 /* give thread a chance to complete */
13891 /* it should remain joinable and hence detachable */
13894 status = pthread_detach( &t );
13895 if( status ) return errno;
13898 #ifdef HAVE_LINUX_THREADS
13899 pthread_kill_other_threads_np();
13906 if { (eval echo configure:13907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13908 ol_cv_pthread_lpthreads_lmach_lexc=yes
13910 echo "configure: failed program was:" >&5
13911 cat conftest.$ac_ext >&5
13913 ol_cv_pthread_lpthreads_lmach_lexc=no
13917 cat > conftest.$ac_ext <<EOF
13918 #line 13919 "configure"
13919 #include "confdefs.h"
13920 /* pthread test headers */
13921 #include <pthread.h>
13922 #if HAVE_PTHREADS < 7
13926 #define NULL (void*)0
13929 static void *task(p)
13932 return (void *) (p == NULL);
13936 int main(argc, argv)
13941 /* pthread test function */
13942 #ifndef PTHREAD_CREATE_DETACHED
13943 #define PTHREAD_CREATE_DETACHED 1
13947 int detach = PTHREAD_CREATE_DETACHED;
13949 #if HAVE_PTHREADS > 4
13950 /* Final pthreads */
13951 pthread_attr_t attr;
13953 status = pthread_attr_init(&attr);
13954 if( status ) return status;
13956 #if HAVE_PTHREADS < 7
13957 status = pthread_attr_setdetachstate(&attr, &detach);
13958 if( status < 0 ) status = errno;
13960 status = pthread_attr_setdetachstate(&attr, detach);
13962 if( status ) return status;
13963 status = pthread_create( &t, &attr, task, NULL );
13964 #if HAVE_PTHREADS < 7
13965 if( status < 0 ) status = errno;
13967 if( status ) return status;
13969 /* Draft 4 pthreads */
13970 status = pthread_create( &t, pthread_attr_default, task, NULL );
13971 if( status ) return errno;
13973 /* give thread a chance to complete */
13974 /* it should remain joinable and hence detachable */
13977 status = pthread_detach( &t );
13978 if( status ) return errno;
13981 #ifdef HAVE_LINUX_THREADS
13982 pthread_kill_other_threads_np();
13990 if { (eval echo configure:13991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13992 ol_cv_pthread_lpthreads_lmach_lexc=yes
13994 echo "configure: failed program was:" >&5
13995 cat conftest.$ac_ext >&5
13997 ol_cv_pthread_lpthreads_lmach_lexc=no
14008 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14010 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14011 ol_link_pthreads="-lpthreads -lmach -lexc"
14012 ol_link_threads=posix
14016 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14017 if test "$ol_link_threads" = no ; then
14018 # try -lpthreads -lexc
14019 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14020 echo "configure:14021: checking for pthread link with -lpthreads -lexc" >&5
14021 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14022 echo $ac_n "(cached) $ac_c" 1>&6
14027 LIBS="-lpthreads -lexc $LIBS"
14029 if test "$cross_compiling" = yes; then
14030 cat > conftest.$ac_ext <<EOF
14031 #line 14032 "configure"
14032 #include "confdefs.h"
14033 /* pthread test headers */
14034 #include <pthread.h>
14035 #if HAVE_PTHREADS < 7
14039 #define NULL (void*)0
14042 static void *task(p)
14045 return (void *) (p == NULL);
14050 /* pthread test function */
14051 #ifndef PTHREAD_CREATE_DETACHED
14052 #define PTHREAD_CREATE_DETACHED 1
14056 int detach = PTHREAD_CREATE_DETACHED;
14058 #if HAVE_PTHREADS > 4
14059 /* Final pthreads */
14060 pthread_attr_t attr;
14062 status = pthread_attr_init(&attr);
14063 if( status ) return status;
14065 #if HAVE_PTHREADS < 7
14066 status = pthread_attr_setdetachstate(&attr, &detach);
14067 if( status < 0 ) status = errno;
14069 status = pthread_attr_setdetachstate(&attr, detach);
14071 if( status ) return status;
14072 status = pthread_create( &t, &attr, task, NULL );
14073 #if HAVE_PTHREADS < 7
14074 if( status < 0 ) status = errno;
14076 if( status ) return status;
14078 /* Draft 4 pthreads */
14079 status = pthread_create( &t, pthread_attr_default, task, NULL );
14080 if( status ) return errno;
14082 /* give thread a chance to complete */
14083 /* it should remain joinable and hence detachable */
14086 status = pthread_detach( &t );
14087 if( status ) return errno;
14090 #ifdef HAVE_LINUX_THREADS
14091 pthread_kill_other_threads_np();
14098 if { (eval echo configure:14099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14100 ol_cv_pthread_lpthreads_lexc=yes
14102 echo "configure: failed program was:" >&5
14103 cat conftest.$ac_ext >&5
14105 ol_cv_pthread_lpthreads_lexc=no
14109 cat > conftest.$ac_ext <<EOF
14110 #line 14111 "configure"
14111 #include "confdefs.h"
14112 /* pthread test headers */
14113 #include <pthread.h>
14114 #if HAVE_PTHREADS < 7
14118 #define NULL (void*)0
14121 static void *task(p)
14124 return (void *) (p == NULL);
14128 int main(argc, argv)
14133 /* pthread test function */
14134 #ifndef PTHREAD_CREATE_DETACHED
14135 #define PTHREAD_CREATE_DETACHED 1
14139 int detach = PTHREAD_CREATE_DETACHED;
14141 #if HAVE_PTHREADS > 4
14142 /* Final pthreads */
14143 pthread_attr_t attr;
14145 status = pthread_attr_init(&attr);
14146 if( status ) return status;
14148 #if HAVE_PTHREADS < 7
14149 status = pthread_attr_setdetachstate(&attr, &detach);
14150 if( status < 0 ) status = errno;
14152 status = pthread_attr_setdetachstate(&attr, detach);
14154 if( status ) return status;
14155 status = pthread_create( &t, &attr, task, NULL );
14156 #if HAVE_PTHREADS < 7
14157 if( status < 0 ) status = errno;
14159 if( status ) return status;
14161 /* Draft 4 pthreads */
14162 status = pthread_create( &t, pthread_attr_default, task, NULL );
14163 if( status ) return errno;
14165 /* give thread a chance to complete */
14166 /* it should remain joinable and hence detachable */
14169 status = pthread_detach( &t );
14170 if( status ) return errno;
14173 #ifdef HAVE_LINUX_THREADS
14174 pthread_kill_other_threads_np();
14182 if { (eval echo configure:14183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14184 ol_cv_pthread_lpthreads_lexc=yes
14186 echo "configure: failed program was:" >&5
14187 cat conftest.$ac_ext >&5
14189 ol_cv_pthread_lpthreads_lexc=no
14200 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14202 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14203 ol_link_pthreads="-lpthreads -lexc"
14204 ol_link_threads=posix
14209 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14210 if test "$ol_link_threads" = no ; then
14212 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14213 echo "configure:14214: checking for pthread link with -lpthreads" >&5
14214 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14220 LIBS="-lpthreads $LIBS"
14222 if test "$cross_compiling" = yes; then
14223 cat > conftest.$ac_ext <<EOF
14224 #line 14225 "configure"
14225 #include "confdefs.h"
14226 /* pthread test headers */
14227 #include <pthread.h>
14228 #if HAVE_PTHREADS < 7
14232 #define NULL (void*)0
14235 static void *task(p)
14238 return (void *) (p == NULL);
14243 /* pthread test function */
14244 #ifndef PTHREAD_CREATE_DETACHED
14245 #define PTHREAD_CREATE_DETACHED 1
14249 int detach = PTHREAD_CREATE_DETACHED;
14251 #if HAVE_PTHREADS > 4
14252 /* Final pthreads */
14253 pthread_attr_t attr;
14255 status = pthread_attr_init(&attr);
14256 if( status ) return status;
14258 #if HAVE_PTHREADS < 7
14259 status = pthread_attr_setdetachstate(&attr, &detach);
14260 if( status < 0 ) status = errno;
14262 status = pthread_attr_setdetachstate(&attr, detach);
14264 if( status ) return status;
14265 status = pthread_create( &t, &attr, task, NULL );
14266 #if HAVE_PTHREADS < 7
14267 if( status < 0 ) status = errno;
14269 if( status ) return status;
14271 /* Draft 4 pthreads */
14272 status = pthread_create( &t, pthread_attr_default, task, NULL );
14273 if( status ) return errno;
14275 /* give thread a chance to complete */
14276 /* it should remain joinable and hence detachable */
14279 status = pthread_detach( &t );
14280 if( status ) return errno;
14283 #ifdef HAVE_LINUX_THREADS
14284 pthread_kill_other_threads_np();
14291 if { (eval echo configure:14292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14293 ol_cv_pthread_lib_lpthreads=yes
14295 echo "configure: failed program was:" >&5
14296 cat conftest.$ac_ext >&5
14298 ol_cv_pthread_lib_lpthreads=no
14302 cat > conftest.$ac_ext <<EOF
14303 #line 14304 "configure"
14304 #include "confdefs.h"
14305 /* pthread test headers */
14306 #include <pthread.h>
14307 #if HAVE_PTHREADS < 7
14311 #define NULL (void*)0
14314 static void *task(p)
14317 return (void *) (p == NULL);
14321 int main(argc, argv)
14326 /* pthread test function */
14327 #ifndef PTHREAD_CREATE_DETACHED
14328 #define PTHREAD_CREATE_DETACHED 1
14332 int detach = PTHREAD_CREATE_DETACHED;
14334 #if HAVE_PTHREADS > 4
14335 /* Final pthreads */
14336 pthread_attr_t attr;
14338 status = pthread_attr_init(&attr);
14339 if( status ) return status;
14341 #if HAVE_PTHREADS < 7
14342 status = pthread_attr_setdetachstate(&attr, &detach);
14343 if( status < 0 ) status = errno;
14345 status = pthread_attr_setdetachstate(&attr, detach);
14347 if( status ) return status;
14348 status = pthread_create( &t, &attr, task, NULL );
14349 #if HAVE_PTHREADS < 7
14350 if( status < 0 ) status = errno;
14352 if( status ) return status;
14354 /* Draft 4 pthreads */
14355 status = pthread_create( &t, pthread_attr_default, task, NULL );
14356 if( status ) return errno;
14358 /* give thread a chance to complete */
14359 /* it should remain joinable and hence detachable */
14362 status = pthread_detach( &t );
14363 if( status ) return errno;
14366 #ifdef HAVE_LINUX_THREADS
14367 pthread_kill_other_threads_np();
14375 if { (eval echo configure:14376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14377 ol_cv_pthread_lib_lpthreads=yes
14379 echo "configure: failed program was:" >&5
14380 cat conftest.$ac_ext >&5
14382 ol_cv_pthread_lib_lpthreads=no
14393 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14395 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14396 ol_link_pthreads="-lpthreads"
14397 ol_link_threads=posix
14402 if test $ol_link_threads != no ; then
14403 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14405 save_CPPFLAGS="$CPPFLAGS"
14407 LIBS="$LTHREAD_LIBS $LIBS"
14409 for ac_func in sched_yield pthread_yield thr_yield
14411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14412 echo "configure:14413: checking for $ac_func" >&5
14413 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14416 cat > conftest.$ac_ext <<EOF
14417 #line 14418 "configure"
14418 #include "confdefs.h"
14419 /* System header to define __stub macros and hopefully few prototypes,
14420 which can conflict with char $ac_func(); below. */
14421 #include <assert.h>
14422 /* Override any gcc2 internal prototype to avoid an error. */
14423 /* We use char because int might match the return type of a gcc2
14424 builtin and then its argument prototype would still apply. */
14430 /* The GNU C library defines this for functions which it implements
14431 to always fail with ENOSYS. Some functions are actually named
14432 something starting with __ and the normal name is an alias. */
14433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14441 if { (eval echo configure:14442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14443 eval "ac_cv_func_$ac_func=yes"
14445 echo "configure: failed program was:" >&5
14446 cat conftest.$ac_ext >&5
14448 eval "ac_cv_func_$ac_func=no"
14453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14454 echo "$ac_t""yes" 1>&6
14455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14456 cat >> confdefs.h <<EOF
14457 #define $ac_tr_func 1
14461 echo "$ac_t""no" 1>&6
14466 if test $ac_cv_func_sched_yield = no -a \
14467 $ac_cv_func_pthread_yield = no -a \
14468 $ac_cv_func_thr_yield = no ; then
14469 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14470 echo "configure:14471: checking for sched_yield in -lrt" >&5
14471 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14472 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14473 echo $ac_n "(cached) $ac_c" 1>&6
14475 ac_save_LIBS="$LIBS"
14477 cat > conftest.$ac_ext <<EOF
14478 #line 14479 "configure"
14479 #include "confdefs.h"
14480 /* Override any gcc2 internal prototype to avoid an error. */
14481 /* We use char because int might match the return type of a gcc2
14482 builtin and then its argument prototype would still apply. */
14483 char sched_yield();
14489 if { (eval echo configure:14490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14491 eval "ac_cv_lib_$ac_lib_var=yes"
14493 echo "configure: failed program was:" >&5
14494 cat conftest.$ac_ext >&5
14496 eval "ac_cv_lib_$ac_lib_var=no"
14499 LIBS="$ac_save_LIBS"
14502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14503 echo "$ac_t""yes" 1>&6
14504 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14505 cat >> confdefs.h <<\EOF
14506 #define HAVE_SCHED_YIELD 1
14509 ac_cv_func_sched_yield=yes
14511 echo "$ac_t""no" 1>&6
14512 ac_cv_func_sched_yield=no
14516 if test $ac_cv_func_sched_yield = no -a \
14517 $ac_cv_func_pthread_yield = no -a \
14518 "$ac_cv_func_thr_yield" = no ; then
14519 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14522 for ac_func in pthread_kill pthread_rwlock_destroy
14524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14525 echo "configure:14526: checking for $ac_func" >&5
14526 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
14529 cat > conftest.$ac_ext <<EOF
14530 #line 14531 "configure"
14531 #include "confdefs.h"
14532 /* System header to define __stub macros and hopefully few prototypes,
14533 which can conflict with char $ac_func(); below. */
14534 #include <assert.h>
14535 /* Override any gcc2 internal prototype to avoid an error. */
14536 /* We use char because int might match the return type of a gcc2
14537 builtin and then its argument prototype would still apply. */
14543 /* The GNU C library defines this for functions which it implements
14544 to always fail with ENOSYS. Some functions are actually named
14545 something starting with __ and the normal name is an alias. */
14546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14554 if { (eval echo configure:14555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14556 eval "ac_cv_func_$ac_func=yes"
14558 echo "configure: failed program was:" >&5
14559 cat conftest.$ac_ext >&5
14561 eval "ac_cv_func_$ac_func=no"
14566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14567 echo "$ac_t""yes" 1>&6
14568 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14569 cat >> confdefs.h <<EOF
14570 #define $ac_tr_func 1
14574 echo "$ac_t""no" 1>&6
14579 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14580 echo "configure:14581: checking for pthread_detach with <pthread.h>" >&5
14581 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14582 echo $ac_n "(cached) $ac_c" 1>&6
14585 cat > conftest.$ac_ext <<EOF
14586 #line 14587 "configure"
14587 #include "confdefs.h"
14589 #include <pthread.h>
14591 #define NULL (void*)0
14595 pthread_detach(NULL);
14598 if { (eval echo configure:14599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14600 ol_cv_func_pthread_detach=yes
14602 echo "configure: failed program was:" >&5
14603 cat conftest.$ac_ext >&5
14605 ol_cv_func_pthread_detach=no
14611 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14613 if test $ol_cv_func_pthread_detach = no ; then
14614 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14617 cat >> confdefs.h <<\EOF
14618 #define HAVE_PTHREAD_DETACH 1
14623 pthread_setconcurrency \
14624 pthread_getconcurrency \
14625 thr_setconcurrency \
14626 thr_getconcurrency \
14629 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14630 echo "configure:14631: checking for $ac_func" >&5
14631 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14632 echo $ac_n "(cached) $ac_c" 1>&6
14634 cat > conftest.$ac_ext <<EOF
14635 #line 14636 "configure"
14636 #include "confdefs.h"
14637 /* System header to define __stub macros and hopefully few prototypes,
14638 which can conflict with char $ac_func(); below. */
14639 #include <assert.h>
14640 /* Override any gcc2 internal prototype to avoid an error. */
14641 /* We use char because int might match the return type of a gcc2
14642 builtin and then its argument prototype would still apply. */
14648 /* The GNU C library defines this for functions which it implements
14649 to always fail with ENOSYS. Some functions are actually named
14650 something starting with __ and the normal name is an alias. */
14651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14659 if { (eval echo configure:14660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14661 eval "ac_cv_func_$ac_func=yes"
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14666 eval "ac_cv_func_$ac_func=no"
14671 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14672 echo "$ac_t""yes" 1>&6
14673 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14674 cat >> confdefs.h <<EOF
14675 #define $ac_tr_func 1
14679 echo "$ac_t""no" 1>&6
14685 for ac_func in pthread_kill_other_threads_np
14687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14688 echo "configure:14689: checking for $ac_func" >&5
14689 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14690 echo $ac_n "(cached) $ac_c" 1>&6
14692 cat > conftest.$ac_ext <<EOF
14693 #line 14694 "configure"
14694 #include "confdefs.h"
14695 /* System header to define __stub macros and hopefully few prototypes,
14696 which can conflict with char $ac_func(); below. */
14697 #include <assert.h>
14698 /* Override any gcc2 internal prototype to avoid an error. */
14699 /* We use char because int might match the return type of a gcc2
14700 builtin and then its argument prototype would still apply. */
14706 /* The GNU C library defines this for functions which it implements
14707 to always fail with ENOSYS. Some functions are actually named
14708 something starting with __ and the normal name is an alias. */
14709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14717 if { (eval echo configure:14718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14719 eval "ac_cv_func_$ac_func=yes"
14721 echo "configure: failed program was:" >&5
14722 cat conftest.$ac_ext >&5
14724 eval "ac_cv_func_$ac_func=no"
14729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14730 echo "$ac_t""yes" 1>&6
14731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14732 cat >> confdefs.h <<EOF
14733 #define $ac_tr_func 1
14737 echo "$ac_t""no" 1>&6
14741 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
14742 echo "configure:14743: checking for LinuxThreads implementation" >&5
14743 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
14744 echo $ac_n "(cached) $ac_c" 1>&6
14746 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
14749 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
14754 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
14755 echo "configure:14756: checking for LinuxThreads consistency" >&5
14756 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
14757 echo $ac_n "(cached) $ac_c" 1>&6
14760 if test $ol_cv_header_linux_threads = yes -a \
14761 $ol_cv_sys_linux_threads = yes; then
14762 ol_cv_linux_threads=yes
14763 elif test $ol_cv_header_linux_threads = no -a \
14764 $ol_cv_sys_linux_threads = no; then
14765 ol_cv_linux_threads=no
14767 ol_cv_linux_threads=error
14772 echo "$ac_t""$ol_cv_linux_threads" 1>&6
14775 if test $ol_cv_linux_threads = error; then
14776 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
14779 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
14780 echo "configure:14781: checking if pthread_create() works" >&5
14781 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
14782 echo $ac_n "(cached) $ac_c" 1>&6
14785 if test "$cross_compiling" = yes; then
14786 ol_cv_pthread_create_works=yes
14788 cat > conftest.$ac_ext <<EOF
14789 #line 14790 "configure"
14790 #include "confdefs.h"
14791 /* pthread test headers */
14792 #include <pthread.h>
14793 #if HAVE_PTHREADS < 7
14797 #define NULL (void*)0
14800 static void *task(p)
14803 return (void *) (p == NULL);
14807 int main(argc, argv)
14812 /* pthread test function */
14813 #ifndef PTHREAD_CREATE_DETACHED
14814 #define PTHREAD_CREATE_DETACHED 1
14818 int detach = PTHREAD_CREATE_DETACHED;
14820 #if HAVE_PTHREADS > 4
14821 /* Final pthreads */
14822 pthread_attr_t attr;
14824 status = pthread_attr_init(&attr);
14825 if( status ) return status;
14827 #if HAVE_PTHREADS < 7
14828 status = pthread_attr_setdetachstate(&attr, &detach);
14829 if( status < 0 ) status = errno;
14831 status = pthread_attr_setdetachstate(&attr, detach);
14833 if( status ) return status;
14834 status = pthread_create( &t, &attr, task, NULL );
14835 #if HAVE_PTHREADS < 7
14836 if( status < 0 ) status = errno;
14838 if( status ) return status;
14840 /* Draft 4 pthreads */
14841 status = pthread_create( &t, pthread_attr_default, task, NULL );
14842 if( status ) return errno;
14844 /* give thread a chance to complete */
14845 /* it should remain joinable and hence detachable */
14848 status = pthread_detach( &t );
14849 if( status ) return errno;
14852 #ifdef HAVE_LINUX_THREADS
14853 pthread_kill_other_threads_np();
14861 if { (eval echo configure:14862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14863 ol_cv_pthread_create_works=yes
14865 echo "configure: failed program was:" >&5
14866 cat conftest.$ac_ext >&5
14868 ol_cv_pthread_create_works=no
14875 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
14877 if test $ol_cv_pthread_create_works = no ; then
14878 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
14881 if test $ol_with_yielding_select = auto ; then
14882 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
14883 echo "configure:14884: checking if select yields when using pthreads" >&5
14884 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14888 if test "$cross_compiling" = yes; then
14889 ol_cv_pthread_select_yields=cross
14891 cat > conftest.$ac_ext <<EOF
14892 #line 14893 "configure"
14893 #include "confdefs.h"
14895 #include <sys/types.h>
14896 #include <sys/time.h>
14897 #include <unistd.h>
14898 #include <pthread.h>
14900 #define NULL (void*) 0
14903 static int fildes[2];
14905 static void *task(p)
14917 FD_SET(fildes[0], &rfds);
14919 /* we're not interested in any fds */
14920 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
14927 exit(0); /* if we exit here, the select blocked the whole process */
14930 int main(argc, argv)
14936 /* create a pipe to select */
14937 if(pipe(&fildes[0])) {
14942 #ifdef HAVE_PTHREAD_SETCONCURRENCY
14943 (void) pthread_setconcurrency(2);
14945 #ifdef HAVE_THR_SETCONCURRENCY
14946 /* Set Solaris LWP concurrency to 2 */
14947 thr_setconcurrency(2);
14951 #if HAVE_PTHREADS < 6
14952 pthread_create(&t, pthread_attr_default, task, NULL);
14954 pthread_create(&t, NULL, task, NULL);
14957 /* make sure task runs first */
14960 #elif defined( HAVE_SCHED_YIELD )
14962 #elif defined( HAVE_PTHREAD_YIELD )
14969 if { (eval echo configure:14970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14971 ol_cv_pthread_select_yields=no
14973 echo "configure: failed program was:" >&5
14974 cat conftest.$ac_ext >&5
14976 ol_cv_pthread_select_yields=yes
14983 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
14985 if test $ol_cv_pthread_select_yields = cross ; then
14986 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
14989 if test $ol_cv_pthread_select_yields = yes ; then
14990 ol_with_yielding_select=yes
14994 CPPFLAGS="$save_CPPFLAGS"
14997 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15001 if test $ol_with_threads = posix ; then
15002 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15006 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15007 -o $ol_with_threads = mach ; then
15009 for ac_hdr in mach/cthreads.h cthreads.h
15011 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15012 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15013 echo "configure:15014: checking for $ac_hdr" >&5
15014 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15015 echo $ac_n "(cached) $ac_c" 1>&6
15017 cat > conftest.$ac_ext <<EOF
15018 #line 15019 "configure"
15019 #include "confdefs.h"
15022 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15023 { (eval echo configure:15024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15024 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15025 if test -z "$ac_err"; then
15027 eval "ac_cv_header_$ac_safe=yes"
15030 echo "configure: failed program was:" >&5
15031 cat conftest.$ac_ext >&5
15033 eval "ac_cv_header_$ac_safe=no"
15037 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15038 echo "$ac_t""yes" 1>&6
15039 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15040 cat >> confdefs.h <<EOF
15041 #define $ac_tr_hdr 1
15045 echo "$ac_t""no" 1>&6
15049 if test $ac_cv_header_mach_cthreads_h = yes ; then
15050 ol_with_threads=found
15052 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15053 echo "configure:15054: checking for cthread_fork" >&5
15054 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15057 cat > conftest.$ac_ext <<EOF
15058 #line 15059 "configure"
15059 #include "confdefs.h"
15060 /* System header to define __stub macros and hopefully few prototypes,
15061 which can conflict with char cthread_fork(); below. */
15062 #include <assert.h>
15063 /* Override any gcc2 internal prototype to avoid an error. */
15064 /* We use char because int might match the return type of a gcc2
15065 builtin and then its argument prototype would still apply. */
15066 char cthread_fork();
15071 /* The GNU C library defines this for functions which it implements
15072 to always fail with ENOSYS. Some functions are actually named
15073 something starting with __ and the normal name is an alias. */
15074 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15082 if { (eval echo configure:15083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15084 eval "ac_cv_func_cthread_fork=yes"
15086 echo "configure: failed program was:" >&5
15087 cat conftest.$ac_ext >&5
15089 eval "ac_cv_func_cthread_fork=no"
15094 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15095 echo "$ac_t""yes" 1>&6
15096 ol_link_threads=yes
15098 echo "$ac_t""no" 1>&6
15102 if test $ol_link_threads = no ; then
15103 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15104 echo "configure:15105: checking for cthread_fork with -all_load" >&5
15105 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15110 LIBS="-all_load $LIBS"
15111 cat > conftest.$ac_ext <<EOF
15112 #line 15113 "configure"
15113 #include "confdefs.h"
15114 #include <mach/cthreads.h>
15117 cthread_fork((void *)0, (void *)0);
15121 if { (eval echo configure:15122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15123 ol_cv_cthread_all_load=yes
15125 echo "configure: failed program was:" >&5
15126 cat conftest.$ac_ext >&5
15128 ol_cv_cthread_all_load=no
15135 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15137 if test $ol_cv_cthread_all_load = yes ; then
15138 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15139 ol_link_threads=mach
15140 ol_with_threads=found
15144 elif test $ac_cv_header_cthreads_h = yes ; then
15146 ol_with_threads=found
15149 LIBS="$LIBS -lthreads"
15150 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15151 echo "configure:15152: checking for cthread_fork" >&5
15152 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15153 echo $ac_n "(cached) $ac_c" 1>&6
15155 cat > conftest.$ac_ext <<EOF
15156 #line 15157 "configure"
15157 #include "confdefs.h"
15158 /* System header to define __stub macros and hopefully few prototypes,
15159 which can conflict with char cthread_fork(); below. */
15160 #include <assert.h>
15161 /* Override any gcc2 internal prototype to avoid an error. */
15162 /* We use char because int might match the return type of a gcc2
15163 builtin and then its argument prototype would still apply. */
15164 char cthread_fork();
15169 /* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15182 eval "ac_cv_func_cthread_fork=yes"
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15187 eval "ac_cv_func_cthread_fork=no"
15192 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 ol_link_threads=yes
15196 echo "$ac_t""no" 1>&6
15201 if test $ol_link_threads = yes ; then
15202 LTHREAD_LIBS="-lthreads"
15203 ol_link_threads=mach
15204 ol_with_threads=found
15206 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15209 elif test $ol_with_threads = mach ; then
15210 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15213 if test $ol_link_threads = mach ; then
15214 cat >> confdefs.h <<\EOF
15215 #define HAVE_MACH_CTHREADS 1
15218 elif test $ol_with_threads = found ; then
15219 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15223 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15224 -o $ol_with_threads = pth ; then
15226 for ac_hdr in pth.h
15228 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15229 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15230 echo "configure:15231: checking for $ac_hdr" >&5
15231 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15232 echo $ac_n "(cached) $ac_c" 1>&6
15234 cat > conftest.$ac_ext <<EOF
15235 #line 15236 "configure"
15236 #include "confdefs.h"
15239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15240 { (eval echo configure:15241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15242 if test -z "$ac_err"; then
15244 eval "ac_cv_header_$ac_safe=yes"
15247 echo "configure: failed program was:" >&5
15248 cat conftest.$ac_ext >&5
15250 eval "ac_cv_header_$ac_safe=no"
15254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15255 echo "$ac_t""yes" 1>&6
15256 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15257 cat >> confdefs.h <<EOF
15258 #define $ac_tr_hdr 1
15262 echo "$ac_t""no" 1>&6
15267 if test $ac_cv_header_pth_h = yes ; then
15268 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15269 echo "configure:15270: checking for pth_version in -lpth" >&5
15270 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15271 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15272 echo $ac_n "(cached) $ac_c" 1>&6
15274 ac_save_LIBS="$LIBS"
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 /* Override any gcc2 internal prototype to avoid an error. */
15280 /* We use char because int might match the return type of a gcc2
15281 builtin and then its argument prototype would still apply. */
15282 char pth_version();
15288 if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15290 eval "ac_cv_lib_$ac_lib_var=yes"
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15295 eval "ac_cv_lib_$ac_lib_var=no"
15298 LIBS="$ac_save_LIBS"
15301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15302 echo "$ac_t""yes" 1>&6
15305 echo "$ac_t""no" 1>&6
15310 if test $have_pth = yes ; then
15311 cat >> confdefs.h <<\EOF
15312 #define HAVE_GNU_PTH 1
15315 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15316 ol_link_threads=pth
15317 ol_with_threads=found
15319 if test $ol_with_yielding_select = auto ; then
15320 ol_with_yielding_select=yes
15326 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15327 -o $ol_with_threads = lwp ; then
15329 for ac_hdr in thread.h synch.h
15331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15333 echo "configure:15334: checking for $ac_hdr" >&5
15334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15335 echo $ac_n "(cached) $ac_c" 1>&6
15337 cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15343 { (eval echo configure:15344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15345 if test -z "$ac_err"; then
15347 eval "ac_cv_header_$ac_safe=yes"
15350 echo "configure: failed program was:" >&5
15351 cat conftest.$ac_ext >&5
15353 eval "ac_cv_header_$ac_safe=no"
15357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15358 echo "$ac_t""yes" 1>&6
15359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15360 cat >> confdefs.h <<EOF
15361 #define $ac_tr_hdr 1
15365 echo "$ac_t""no" 1>&6
15369 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15370 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15371 echo "configure:15372: checking for thr_create in -lthread" >&5
15372 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15373 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15374 echo $ac_n "(cached) $ac_c" 1>&6
15376 ac_save_LIBS="$LIBS"
15377 LIBS="-lthread $LIBS"
15378 cat > conftest.$ac_ext <<EOF
15379 #line 15380 "configure"
15380 #include "confdefs.h"
15381 /* Override any gcc2 internal prototype to avoid an error. */
15382 /* We use char because int might match the return type of a gcc2
15383 builtin and then its argument prototype would still apply. */
15390 if { (eval echo configure:15391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15392 eval "ac_cv_lib_$ac_lib_var=yes"
15394 echo "configure: failed program was:" >&5
15395 cat conftest.$ac_ext >&5
15397 eval "ac_cv_lib_$ac_lib_var=no"
15400 LIBS="$ac_save_LIBS"
15403 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15404 echo "$ac_t""yes" 1>&6
15407 echo "$ac_t""no" 1>&6
15412 if test $have_thr = yes ; then
15413 cat >> confdefs.h <<\EOF
15417 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15418 ol_link_threads=thr
15420 if test $ol_with_yielding_select = auto ; then
15421 ol_with_yielding_select=yes
15425 thr_setconcurrency \
15426 thr_getconcurrency \
15429 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15430 echo "configure:15431: checking for $ac_func" >&5
15431 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15432 echo $ac_n "(cached) $ac_c" 1>&6
15434 cat > conftest.$ac_ext <<EOF
15435 #line 15436 "configure"
15436 #include "confdefs.h"
15437 /* System header to define __stub macros and hopefully few prototypes,
15438 which can conflict with char $ac_func(); below. */
15439 #include <assert.h>
15440 /* Override any gcc2 internal prototype to avoid an error. */
15441 /* We use char because int might match the return type of a gcc2
15442 builtin and then its argument prototype would still apply. */
15448 /* The GNU C library defines this for functions which it implements
15449 to always fail with ENOSYS. Some functions are actually named
15450 something starting with __ and the normal name is an alias. */
15451 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15459 if { (eval echo configure:15460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15461 eval "ac_cv_func_$ac_func=yes"
15463 echo "configure: failed program was:" >&5
15464 cat conftest.$ac_ext >&5
15466 eval "ac_cv_func_$ac_func=no"
15471 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15472 echo "$ac_t""yes" 1>&6
15473 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15474 cat >> confdefs.h <<EOF
15475 #define $ac_tr_func 1
15479 echo "$ac_t""no" 1>&6
15486 for ac_hdr in lwp/lwp.h
15488 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15489 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15490 echo "configure:15491: checking for $ac_hdr" >&5
15491 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15492 echo $ac_n "(cached) $ac_c" 1>&6
15494 cat > conftest.$ac_ext <<EOF
15495 #line 15496 "configure"
15496 #include "confdefs.h"
15499 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15500 { (eval echo configure:15501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15501 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15502 if test -z "$ac_err"; then
15504 eval "ac_cv_header_$ac_safe=yes"
15507 echo "configure: failed program was:" >&5
15508 cat conftest.$ac_ext >&5
15510 eval "ac_cv_header_$ac_safe=no"
15514 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15515 echo "$ac_t""yes" 1>&6
15516 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15517 cat >> confdefs.h <<EOF
15518 #define $ac_tr_hdr 1
15522 echo "$ac_t""no" 1>&6
15526 if test $ac_cv_header_lwp_lwp_h = yes ; then
15527 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15528 echo "configure:15529: checking for lwp_create in -llwp" >&5
15529 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15531 echo $ac_n "(cached) $ac_c" 1>&6
15533 ac_save_LIBS="$LIBS"
15535 cat > conftest.$ac_ext <<EOF
15536 #line 15537 "configure"
15537 #include "confdefs.h"
15538 /* Override any gcc2 internal prototype to avoid an error. */
15539 /* We use char because int might match the return type of a gcc2
15540 builtin and then its argument prototype would still apply. */
15547 if { (eval echo configure:15548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15549 eval "ac_cv_lib_$ac_lib_var=yes"
15551 echo "configure: failed program was:" >&5
15552 cat conftest.$ac_ext >&5
15554 eval "ac_cv_lib_$ac_lib_var=no"
15557 LIBS="$ac_save_LIBS"
15560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15561 echo "$ac_t""yes" 1>&6
15564 echo "$ac_t""no" 1>&6
15569 if test $have_lwp = yes ; then
15570 cat >> confdefs.h <<\EOF
15574 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15575 ol_link_threads=lwp
15577 if test $ol_with_yielding_select = auto ; then
15578 ol_with_yielding_select=no
15584 if test $ol_with_yielding_select = yes ; then
15585 cat >> confdefs.h <<\EOF
15586 #define HAVE_YIELDING_SELECT 1
15591 if test $ol_with_threads = manual ; then
15592 ol_link_threads=yes
15594 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15596 for ac_hdr in pthread.h sched.h
15598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15600 echo "configure:15601: checking for $ac_hdr" >&5
15601 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15602 echo $ac_n "(cached) $ac_c" 1>&6
15604 cat > conftest.$ac_ext <<EOF
15605 #line 15606 "configure"
15606 #include "confdefs.h"
15609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15610 { (eval echo configure:15611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15612 if test -z "$ac_err"; then
15614 eval "ac_cv_header_$ac_safe=yes"
15617 echo "configure: failed program was:" >&5
15618 cat conftest.$ac_ext >&5
15620 eval "ac_cv_header_$ac_safe=no"
15624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15625 echo "$ac_t""yes" 1>&6
15626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15627 cat >> confdefs.h <<EOF
15628 #define $ac_tr_hdr 1
15632 echo "$ac_t""no" 1>&6
15636 for ac_func in sched_yield pthread_yield
15638 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15639 echo "configure:15640: checking for $ac_func" >&5
15640 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 /* System header to define __stub macros and hopefully few prototypes,
15647 which can conflict with char $ac_func(); below. */
15648 #include <assert.h>
15649 /* Override any gcc2 internal prototype to avoid an error. */
15650 /* We use char because int might match the return type of a gcc2
15651 builtin and then its argument prototype would still apply. */
15657 /* The GNU C library defines this for functions which it implements
15658 to always fail with ENOSYS. Some functions are actually named
15659 something starting with __ and the normal name is an alias. */
15660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15668 if { (eval echo configure:15669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15670 eval "ac_cv_func_$ac_func=yes"
15672 echo "configure: failed program was:" >&5
15673 cat conftest.$ac_ext >&5
15675 eval "ac_cv_func_$ac_func=no"
15680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15681 echo "$ac_t""yes" 1>&6
15682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15683 cat >> confdefs.h <<EOF
15684 #define $ac_tr_func 1
15688 echo "$ac_t""no" 1>&6
15693 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15694 echo "configure:15695: checking for LinuxThreads pthread.h" >&5
15695 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15696 echo $ac_n "(cached) $ac_c" 1>&6
15698 cat > conftest.$ac_ext <<EOF
15699 #line 15700 "configure"
15700 #include "confdefs.h"
15701 #include <pthread.h>
15703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15704 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15706 ol_cv_header_linux_threads=yes
15709 ol_cv_header_linux_threads=no
15716 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15717 if test $ol_cv_header_linux_threads = yes; then
15718 cat >> confdefs.h <<\EOF
15719 #define HAVE_LINUX_THREADS 1
15725 for ac_hdr in mach/cthreads.h
15727 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15728 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15729 echo "configure:15730: checking for $ac_hdr" >&5
15730 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15733 cat > conftest.$ac_ext <<EOF
15734 #line 15735 "configure"
15735 #include "confdefs.h"
15738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15739 { (eval echo configure:15740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15741 if test -z "$ac_err"; then
15743 eval "ac_cv_header_$ac_safe=yes"
15746 echo "configure: failed program was:" >&5
15747 cat conftest.$ac_ext >&5
15749 eval "ac_cv_header_$ac_safe=no"
15753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15754 echo "$ac_t""yes" 1>&6
15755 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15756 cat >> confdefs.h <<EOF
15757 #define $ac_tr_hdr 1
15761 echo "$ac_t""no" 1>&6
15765 for ac_hdr in lwp/lwp.h
15767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15769 echo "configure:15770: checking for $ac_hdr" >&5
15770 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15771 echo $ac_n "(cached) $ac_c" 1>&6
15773 cat > conftest.$ac_ext <<EOF
15774 #line 15775 "configure"
15775 #include "confdefs.h"
15778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15779 { (eval echo configure:15780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15781 if test -z "$ac_err"; then
15783 eval "ac_cv_header_$ac_safe=yes"
15786 echo "configure: failed program was:" >&5
15787 cat conftest.$ac_ext >&5
15789 eval "ac_cv_header_$ac_safe=no"
15793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15794 echo "$ac_t""yes" 1>&6
15795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15796 cat >> confdefs.h <<EOF
15797 #define $ac_tr_hdr 1
15801 echo "$ac_t""no" 1>&6
15805 for ac_hdr in thread.h synch.h
15807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15809 echo "configure:15810: checking for $ac_hdr" >&5
15810 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15811 echo $ac_n "(cached) $ac_c" 1>&6
15813 cat > conftest.$ac_ext <<EOF
15814 #line 15815 "configure"
15815 #include "confdefs.h"
15818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15819 { (eval echo configure:15820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15821 if test -z "$ac_err"; then
15823 eval "ac_cv_header_$ac_safe=yes"
15826 echo "configure: failed program was:" >&5
15827 cat conftest.$ac_ext >&5
15829 eval "ac_cv_header_$ac_safe=no"
15833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15834 echo "$ac_t""yes" 1>&6
15835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15836 cat >> confdefs.h <<EOF
15837 #define $ac_tr_hdr 1
15841 echo "$ac_t""no" 1>&6
15847 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
15848 cat >> confdefs.h <<\EOF
15849 #define REENTRANT 1
15852 cat >> confdefs.h <<\EOF
15853 #define _REENTRANT 1
15856 cat >> confdefs.h <<\EOF
15857 #define THREAD_SAFE 1
15860 cat >> confdefs.h <<\EOF
15861 #define _THREAD_SAFE 1
15864 cat >> confdefs.h <<\EOF
15865 #define THREADSAFE 1
15868 cat >> confdefs.h <<\EOF
15869 #define _THREADSAFE 1
15872 cat >> confdefs.h <<\EOF
15873 #define _SGI_MP_SOURCE 1
15877 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
15878 echo "configure:15879: checking for thread specific errno" >&5
15879 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
15880 echo $ac_n "(cached) $ac_c" 1>&6
15883 cat > conftest.$ac_ext <<EOF
15884 #line 15885 "configure"
15885 #include "confdefs.h"
15891 if { (eval echo configure:15892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15893 ol_cv_errno_thread_specific=yes
15895 echo "configure: failed program was:" >&5
15896 cat conftest.$ac_ext >&5
15898 ol_cv_errno_thread_specific=no
15904 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
15906 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
15907 echo "configure:15908: checking for thread specific h_errno" >&5
15908 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
15909 echo $ac_n "(cached) $ac_c" 1>&6
15912 cat > conftest.$ac_ext <<EOF
15913 #line 15914 "configure"
15914 #include "confdefs.h"
15920 if { (eval echo configure:15921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15922 ol_cv_h_errno_thread_specific=yes
15924 echo "configure: failed program was:" >&5
15925 cat conftest.$ac_ext >&5
15927 ol_cv_h_errno_thread_specific=no
15933 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
15935 if test $ol_cv_errno_thread_specific != yes \
15936 -o $ol_cv_h_errno_thread_specific != yes ; then
15937 LIBS="$LTHREAD_LIBS $LIBS"
15943 if test $ol_link_threads = no ; then
15944 if test $ol_with_threads = yes ; then
15945 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
15948 if test $ol_with_threads = auto ; then
15949 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
15953 cat >> confdefs.h <<\EOF
15954 #define NO_THREADS 1
15960 if test $ol_link_threads != no ; then
15961 cat >> confdefs.h <<\EOF
15962 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
15969 gethostbyname_r gethostbyaddr_r \
15972 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15973 echo "configure:15974: checking for $ac_func" >&5
15974 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15975 echo $ac_n "(cached) $ac_c" 1>&6
15977 cat > conftest.$ac_ext <<EOF
15978 #line 15979 "configure"
15979 #include "confdefs.h"
15980 /* System header to define __stub macros and hopefully few prototypes,
15981 which can conflict with char $ac_func(); below. */
15982 #include <assert.h>
15983 /* Override any gcc2 internal prototype to avoid an error. */
15984 /* We use char because int might match the return type of a gcc2
15985 builtin and then its argument prototype would still apply. */
15991 /* The GNU C library defines this for functions which it implements
15992 to always fail with ENOSYS. Some functions are actually named
15993 something starting with __ and the normal name is an alias. */
15994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16002 if { (eval echo configure:16003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16004 eval "ac_cv_func_$ac_func=yes"
16006 echo "configure: failed program was:" >&5
16007 cat conftest.$ac_ext >&5
16009 eval "ac_cv_func_$ac_func=no"
16014 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16015 echo "$ac_t""yes" 1>&6
16016 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16017 cat >> confdefs.h <<EOF
16018 #define $ac_tr_func 1
16022 echo "$ac_t""no" 1>&6
16027 if test "$ac_cv_func_ctime_r" = no ; then
16028 ol_cv_func_ctime_r_nargs=0
16030 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16031 echo "configure:16032: checking number of arguments of ctime_r" >&5
16032 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16033 echo $ac_n "(cached) $ac_c" 1>&6
16035 cat > conftest.$ac_ext <<EOF
16036 #line 16037 "configure"
16037 #include "confdefs.h"
16040 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16043 if { (eval echo configure:16044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16045 ol_cv_func_ctime_r_nargs3=yes
16047 echo "configure: failed program was:" >&5
16048 cat conftest.$ac_ext >&5
16050 ol_cv_func_ctime_r_nargs3=no
16054 cat > conftest.$ac_ext <<EOF
16055 #line 16056 "configure"
16056 #include "confdefs.h"
16059 time_t ti; char *buffer; ctime_r(&ti,buffer);
16062 if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16064 ol_cv_func_ctime_r_nargs2=yes
16066 echo "configure: failed program was:" >&5
16067 cat conftest.$ac_ext >&5
16069 ol_cv_func_ctime_r_nargs2=no
16073 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16074 $ol_cv_func_ctime_r_nargs2 = no ; then
16076 ol_cv_func_ctime_r_nargs=3
16078 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16079 $ol_cv_func_ctime_r_nargs2 = yes ; then
16081 ol_cv_func_ctime_r_nargs=2
16084 ol_cv_func_ctime_r_nargs=0
16089 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16091 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16092 cat >> confdefs.h <<EOF
16093 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16100 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16101 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16102 echo "configure:16103: checking number of arguments of gethostbyname_r" >&5
16103 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16104 echo $ac_n "(cached) $ac_c" 1>&6
16106 cat > conftest.$ac_ext <<EOF
16107 #line 16108 "configure"
16108 #include "confdefs.h"
16109 #include <sys/types.h>
16110 #include <sys/socket.h>
16111 #include <netinet/in.h>
16113 #define BUFSIZE (sizeof(struct hostent)+10)
16115 struct hostent hent; char buffer[BUFSIZE];
16116 int bufsize=BUFSIZE;int h_errno;
16117 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16118 buffer, bufsize, &h_errno);
16121 if { (eval echo configure:16122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16123 ol_cv_func_gethostbyname_r_nargs5=yes
16125 echo "configure: failed program was:" >&5
16126 cat conftest.$ac_ext >&5
16128 ol_cv_func_gethostbyname_r_nargs5=no
16132 cat > conftest.$ac_ext <<EOF
16133 #line 16134 "configure"
16134 #include "confdefs.h"
16135 #include <sys/types.h>
16136 #include <sys/socket.h>
16137 #include <netinet/in.h>
16139 #define BUFSIZE (sizeof(struct hostent)+10)
16141 struct hostent hent;struct hostent *rhent;
16142 char buffer[BUFSIZE];
16143 int bufsize=BUFSIZE;int h_errno;
16144 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16148 if { (eval echo configure:16149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16150 ol_cv_func_gethostbyname_r_nargs6=yes
16152 echo "configure: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16155 ol_cv_func_gethostbyname_r_nargs6=no
16159 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16160 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16162 ol_cv_func_gethostbyname_r_nargs=5
16164 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16165 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16167 ol_cv_func_gethostbyname_r_nargs=6
16170 ol_cv_func_gethostbyname_r_nargs=0
16175 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16176 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16177 cat >> confdefs.h <<EOF
16178 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16184 ol_cv_func_gethostbyname_r_nargs=0
16187 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16188 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16189 echo "configure:16190: checking number of arguments of gethostbyaddr_r" >&5
16190 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16191 echo $ac_n "(cached) $ac_c" 1>&6
16193 cat > conftest.$ac_ext <<EOF
16194 #line 16195 "configure"
16195 #include "confdefs.h"
16196 #include <sys/types.h>
16197 #include <sys/socket.h>
16198 #include <netinet/in.h>
16200 #define BUFSIZE (sizeof(struct hostent)+10)
16202 struct hostent hent; char buffer[BUFSIZE];
16203 struct in_addr add;
16204 size_t alen=sizeof(struct in_addr);
16205 int bufsize=BUFSIZE;int h_errno;
16206 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16207 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16210 if { (eval echo configure:16211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16212 ol_cv_func_gethostbyaddr_r_nargs7=yes
16214 echo "configure: failed program was:" >&5
16215 cat conftest.$ac_ext >&5
16217 ol_cv_func_gethostbyaddr_r_nargs7=no
16221 cat > conftest.$ac_ext <<EOF
16222 #line 16223 "configure"
16223 #include "confdefs.h"
16224 #include <sys/types.h>
16225 #include <sys/socket.h>
16226 #include <netinet/in.h>
16228 #define BUFSIZE (sizeof(struct hostent)+10)
16230 struct hostent hent;
16231 struct hostent *rhent; char buffer[BUFSIZE];
16232 struct in_addr add;
16233 size_t alen=sizeof(struct in_addr);
16234 int bufsize=BUFSIZE;int h_errno;
16235 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16236 alen, AF_INET, &hent, buffer, bufsize,
16240 if { (eval echo configure:16241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16242 ol_cv_func_gethostbyaddr_r_nargs8=yes
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16247 ol_cv_func_gethostbyaddr_r_nargs8=no
16251 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16252 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16254 ol_cv_func_gethostbyaddr_r_nargs=7
16256 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16257 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16259 ol_cv_func_gethostbyaddr_r_nargs=8
16262 ol_cv_func_gethostbyaddr_r_nargs=0
16267 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16268 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16269 cat >> confdefs.h <<EOF
16270 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16276 ol_cv_func_gethostbyaddr_r_nargs=0
16281 if test $ol_with_ldbm_api = auto \
16282 -o $ol_with_ldbm_api = berkeley \
16283 -o $ol_with_ldbm_api = bcompat ; then
16285 if test $ol_with_ldbm_api = bcompat; then \
16286 for ac_hdr in db_185.h db.h
16288 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16289 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16290 echo "configure:16291: checking for $ac_hdr" >&5
16291 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16292 echo $ac_n "(cached) $ac_c" 1>&6
16294 cat > conftest.$ac_ext <<EOF
16295 #line 16296 "configure"
16296 #include "confdefs.h"
16299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16300 { (eval echo configure:16301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16302 if test -z "$ac_err"; then
16304 eval "ac_cv_header_$ac_safe=yes"
16307 echo "configure: failed program was:" >&5
16308 cat conftest.$ac_ext >&5
16310 eval "ac_cv_header_$ac_safe=no"
16314 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16315 echo "$ac_t""yes" 1>&6
16316 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16317 cat >> confdefs.h <<EOF
16318 #define $ac_tr_hdr 1
16322 echo "$ac_t""no" 1>&6
16326 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16327 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16328 echo "configure:16329: checking if Berkeley DB header compatibility" >&5
16329 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16330 echo $ac_n "(cached) $ac_c" 1>&6
16333 cat > conftest.$ac_ext <<EOF
16334 #line 16335 "configure"
16335 #include "confdefs.h"
16338 # include <db_185.h>
16343 /* this check could be improved */
16344 #ifndef DB_VERSION_MAJOR
16345 # define DB_VERSION_MAJOR 1
16348 #if DB_VERSION_MAJOR == 1
16353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16354 egrep "__db_version_1" >/dev/null 2>&1; then
16356 ol_cv_header_db1=yes
16359 ol_cv_header_db1=no
16365 echo "$ac_t""$ol_cv_header_db1" 1>&6
16367 if test $ol_cv_header_db1 = yes ; then
16369 if test $ol_cv_lib_db = no ; then
16370 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16371 echo "configure:16372: checking for Berkeley DB link (default)" >&5
16372 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16373 echo $ac_n "(cached) $ac_c" 1>&6
16378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16380 cat > conftest.$ac_ext <<EOF
16381 #line 16382 "configure"
16382 #include "confdefs.h"
16384 #ifdef HAVE_DB_185_H
16385 # include <db_185.h>
16390 #ifndef DB_VERSION_MAJOR
16391 # define DB_VERSION_MAJOR 1
16395 #define NULL ((void*)0)
16400 #if DB_VERSION_MAJOR > 1
16403 int major, minor, patch;
16405 version = db_version( &major, &minor, &patch );
16407 if( major != DB_VERSION_MAJOR ||
16408 minor < DB_VERSION_MINOR )
16410 printf("Berkeley DB version mismatch\n"
16411 "\texpected: %s\n\tgot: %s\n",
16412 DB_VERSION_STRING, version);
16418 #if DB_VERSION_MAJOR > 2
16419 db_env_create( NULL, 0 );
16420 #elif DB_VERSION_MAJOR > 1
16421 db_appexit( NULL );
16423 (void) dbopen( NULL, 0, 0, 0, NULL);
16428 if { (eval echo configure:16429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16432 echo "configure: failed program was:" >&5
16433 cat conftest.$ac_ext >&5
16443 echo "$ac_t""$ol_cv_db_none" 1>&6
16445 if test $ol_cv_db_none = yes ; then
16450 if test $ol_cv_lib_db = no ; then
16451 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16452 echo "configure:16453: checking for Berkeley DB link (-ldb42)" >&5
16453 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16454 echo $ac_n "(cached) $ac_c" 1>&6
16459 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16461 cat > conftest.$ac_ext <<EOF
16462 #line 16463 "configure"
16463 #include "confdefs.h"
16465 #ifdef HAVE_DB_185_H
16466 # include <db_185.h>
16471 #ifndef DB_VERSION_MAJOR
16472 # define DB_VERSION_MAJOR 1
16476 #define NULL ((void*)0)
16481 #if DB_VERSION_MAJOR > 1
16484 int major, minor, patch;
16486 version = db_version( &major, &minor, &patch );
16488 if( major != DB_VERSION_MAJOR ||
16489 minor < DB_VERSION_MINOR )
16491 printf("Berkeley DB version mismatch\n"
16492 "\texpected: %s\n\tgot: %s\n",
16493 DB_VERSION_STRING, version);
16499 #if DB_VERSION_MAJOR > 2
16500 db_env_create( NULL, 0 );
16501 #elif DB_VERSION_MAJOR > 1
16502 db_appexit( NULL );
16504 (void) dbopen( NULL, 0, 0, 0, NULL);
16509 if { (eval echo configure:16510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16513 echo "configure: failed program was:" >&5
16514 cat conftest.$ac_ext >&5
16524 echo "$ac_t""$ol_cv_db_db42" 1>&6
16526 if test $ol_cv_db_db42 = yes ; then
16527 ol_cv_lib_db=-ldb42
16531 if test $ol_cv_lib_db = no ; then
16532 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16533 echo "configure:16534: checking for Berkeley DB link (-ldb-42)" >&5
16534 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
16540 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16542 cat > conftest.$ac_ext <<EOF
16543 #line 16544 "configure"
16544 #include "confdefs.h"
16546 #ifdef HAVE_DB_185_H
16547 # include <db_185.h>
16552 #ifndef DB_VERSION_MAJOR
16553 # define DB_VERSION_MAJOR 1
16557 #define NULL ((void*)0)
16562 #if DB_VERSION_MAJOR > 1
16565 int major, minor, patch;
16567 version = db_version( &major, &minor, &patch );
16569 if( major != DB_VERSION_MAJOR ||
16570 minor < DB_VERSION_MINOR )
16572 printf("Berkeley DB version mismatch\n"
16573 "\texpected: %s\n\tgot: %s\n",
16574 DB_VERSION_STRING, version);
16580 #if DB_VERSION_MAJOR > 2
16581 db_env_create( NULL, 0 );
16582 #elif DB_VERSION_MAJOR > 1
16583 db_appexit( NULL );
16585 (void) dbopen( NULL, 0, 0, 0, NULL);
16590 if { (eval echo configure:16591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16594 echo "configure: failed program was:" >&5
16595 cat conftest.$ac_ext >&5
16605 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16607 if test $ol_cv_db_db_42 = yes ; then
16608 ol_cv_lib_db=-ldb-42
16612 if test $ol_cv_lib_db = no ; then
16613 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16614 echo "configure:16615: checking for Berkeley DB link (-ldb-4.2)" >&5
16615 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16616 echo $ac_n "(cached) $ac_c" 1>&6
16621 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16623 cat > conftest.$ac_ext <<EOF
16624 #line 16625 "configure"
16625 #include "confdefs.h"
16627 #ifdef HAVE_DB_185_H
16628 # include <db_185.h>
16633 #ifndef DB_VERSION_MAJOR
16634 # define DB_VERSION_MAJOR 1
16638 #define NULL ((void*)0)
16643 #if DB_VERSION_MAJOR > 1
16646 int major, minor, patch;
16648 version = db_version( &major, &minor, &patch );
16650 if( major != DB_VERSION_MAJOR ||
16651 minor < DB_VERSION_MINOR )
16653 printf("Berkeley DB version mismatch\n"
16654 "\texpected: %s\n\tgot: %s\n",
16655 DB_VERSION_STRING, version);
16661 #if DB_VERSION_MAJOR > 2
16662 db_env_create( NULL, 0 );
16663 #elif DB_VERSION_MAJOR > 1
16664 db_appexit( NULL );
16666 (void) dbopen( NULL, 0, 0, 0, NULL);
16671 if { (eval echo configure:16672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16673 ol_cv_db_db_4_dot_2=yes
16675 echo "configure: failed program was:" >&5
16676 cat conftest.$ac_ext >&5
16678 ol_cv_db_db_4_dot_2=no
16686 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16688 if test $ol_cv_db_db_4_dot_2 = yes ; then
16689 ol_cv_lib_db=-ldb-4.2
16693 if test $ol_cv_lib_db = no ; then
16694 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16695 echo "configure:16696: checking for Berkeley DB link (-ldb-4-2)" >&5
16696 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16697 echo $ac_n "(cached) $ac_c" 1>&6
16702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16704 cat > conftest.$ac_ext <<EOF
16705 #line 16706 "configure"
16706 #include "confdefs.h"
16708 #ifdef HAVE_DB_185_H
16709 # include <db_185.h>
16714 #ifndef DB_VERSION_MAJOR
16715 # define DB_VERSION_MAJOR 1
16719 #define NULL ((void*)0)
16724 #if DB_VERSION_MAJOR > 1
16727 int major, minor, patch;
16729 version = db_version( &major, &minor, &patch );
16731 if( major != DB_VERSION_MAJOR ||
16732 minor < DB_VERSION_MINOR )
16734 printf("Berkeley DB version mismatch\n"
16735 "\texpected: %s\n\tgot: %s\n",
16736 DB_VERSION_STRING, version);
16742 #if DB_VERSION_MAJOR > 2
16743 db_env_create( NULL, 0 );
16744 #elif DB_VERSION_MAJOR > 1
16745 db_appexit( NULL );
16747 (void) dbopen( NULL, 0, 0, 0, NULL);
16752 if { (eval echo configure:16753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16754 ol_cv_db_db_4_2=yes
16756 echo "configure: failed program was:" >&5
16757 cat conftest.$ac_ext >&5
16767 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
16769 if test $ol_cv_db_db_4_2 = yes ; then
16770 ol_cv_lib_db=-ldb-4-2
16774 if test $ol_cv_lib_db = no ; then
16775 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
16776 echo "configure:16777: checking for Berkeley DB link (-ldb-4)" >&5
16777 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
16778 echo $ac_n "(cached) $ac_c" 1>&6
16783 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16785 cat > conftest.$ac_ext <<EOF
16786 #line 16787 "configure"
16787 #include "confdefs.h"
16789 #ifdef HAVE_DB_185_H
16790 # include <db_185.h>
16795 #ifndef DB_VERSION_MAJOR
16796 # define DB_VERSION_MAJOR 1
16800 #define NULL ((void*)0)
16805 #if DB_VERSION_MAJOR > 1
16808 int major, minor, patch;
16810 version = db_version( &major, &minor, &patch );
16812 if( major != DB_VERSION_MAJOR ||
16813 minor < DB_VERSION_MINOR )
16815 printf("Berkeley DB version mismatch\n"
16816 "\texpected: %s\n\tgot: %s\n",
16817 DB_VERSION_STRING, version);
16823 #if DB_VERSION_MAJOR > 2
16824 db_env_create( NULL, 0 );
16825 #elif DB_VERSION_MAJOR > 1
16826 db_appexit( NULL );
16828 (void) dbopen( NULL, 0, 0, 0, NULL);
16833 if { (eval echo configure:16834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16837 echo "configure: failed program was:" >&5
16838 cat conftest.$ac_ext >&5
16848 echo "$ac_t""$ol_cv_db_db_4" 1>&6
16850 if test $ol_cv_db_db_4 = yes ; then
16851 ol_cv_lib_db=-ldb-4
16855 if test $ol_cv_lib_db = no ; then
16856 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
16857 echo "configure:16858: checking for Berkeley DB link (-ldb4)" >&5
16858 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
16859 echo $ac_n "(cached) $ac_c" 1>&6
16864 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16866 cat > conftest.$ac_ext <<EOF
16867 #line 16868 "configure"
16868 #include "confdefs.h"
16870 #ifdef HAVE_DB_185_H
16871 # include <db_185.h>
16876 #ifndef DB_VERSION_MAJOR
16877 # define DB_VERSION_MAJOR 1
16881 #define NULL ((void*)0)
16886 #if DB_VERSION_MAJOR > 1
16889 int major, minor, patch;
16891 version = db_version( &major, &minor, &patch );
16893 if( major != DB_VERSION_MAJOR ||
16894 minor < DB_VERSION_MINOR )
16896 printf("Berkeley DB version mismatch\n"
16897 "\texpected: %s\n\tgot: %s\n",
16898 DB_VERSION_STRING, version);
16904 #if DB_VERSION_MAJOR > 2
16905 db_env_create( NULL, 0 );
16906 #elif DB_VERSION_MAJOR > 1
16907 db_appexit( NULL );
16909 (void) dbopen( NULL, 0, 0, 0, NULL);
16914 if { (eval echo configure:16915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16918 echo "configure: failed program was:" >&5
16919 cat conftest.$ac_ext >&5
16929 echo "$ac_t""$ol_cv_db_db4" 1>&6
16931 if test $ol_cv_db_db4 = yes ; then
16936 if test $ol_cv_lib_db = no ; then
16937 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16938 echo "configure:16939: checking for Berkeley DB link (-ldb)" >&5
16939 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16940 echo $ac_n "(cached) $ac_c" 1>&6
16945 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16947 cat > conftest.$ac_ext <<EOF
16948 #line 16949 "configure"
16949 #include "confdefs.h"
16951 #ifdef HAVE_DB_185_H
16952 # include <db_185.h>
16957 #ifndef DB_VERSION_MAJOR
16958 # define DB_VERSION_MAJOR 1
16962 #define NULL ((void*)0)
16967 #if DB_VERSION_MAJOR > 1
16970 int major, minor, patch;
16972 version = db_version( &major, &minor, &patch );
16974 if( major != DB_VERSION_MAJOR ||
16975 minor < DB_VERSION_MINOR )
16977 printf("Berkeley DB version mismatch\n"
16978 "\texpected: %s\n\tgot: %s\n",
16979 DB_VERSION_STRING, version);
16985 #if DB_VERSION_MAJOR > 2
16986 db_env_create( NULL, 0 );
16987 #elif DB_VERSION_MAJOR > 1
16988 db_appexit( NULL );
16990 (void) dbopen( NULL, 0, 0, 0, NULL);
16995 if { (eval echo configure:16996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16999 echo "configure: failed program was:" >&5
17000 cat conftest.$ac_ext >&5
17010 echo "$ac_t""$ol_cv_db_db" 1>&6
17012 if test $ol_cv_db_db = yes ; then
17017 if test $ol_cv_lib_db = no ; then
17018 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17019 echo "configure:17020: checking for Berkeley DB link (-ldb41)" >&5
17020 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17021 echo $ac_n "(cached) $ac_c" 1>&6
17026 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17028 cat > conftest.$ac_ext <<EOF
17029 #line 17030 "configure"
17030 #include "confdefs.h"
17032 #ifdef HAVE_DB_185_H
17033 # include <db_185.h>
17038 #ifndef DB_VERSION_MAJOR
17039 # define DB_VERSION_MAJOR 1
17043 #define NULL ((void*)0)
17048 #if DB_VERSION_MAJOR > 1
17051 int major, minor, patch;
17053 version = db_version( &major, &minor, &patch );
17055 if( major != DB_VERSION_MAJOR ||
17056 minor < DB_VERSION_MINOR )
17058 printf("Berkeley DB version mismatch\n"
17059 "\texpected: %s\n\tgot: %s\n",
17060 DB_VERSION_STRING, version);
17066 #if DB_VERSION_MAJOR > 2
17067 db_env_create( NULL, 0 );
17068 #elif DB_VERSION_MAJOR > 1
17069 db_appexit( NULL );
17071 (void) dbopen( NULL, 0, 0, 0, NULL);
17076 if { (eval echo configure:17077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17080 echo "configure: failed program was:" >&5
17081 cat conftest.$ac_ext >&5
17091 echo "$ac_t""$ol_cv_db_db41" 1>&6
17093 if test $ol_cv_db_db41 = yes ; then
17094 ol_cv_lib_db=-ldb41
17098 if test $ol_cv_lib_db = no ; then
17099 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17100 echo "configure:17101: checking for Berkeley DB link (-ldb-41)" >&5
17101 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17102 echo $ac_n "(cached) $ac_c" 1>&6
17107 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17109 cat > conftest.$ac_ext <<EOF
17110 #line 17111 "configure"
17111 #include "confdefs.h"
17113 #ifdef HAVE_DB_185_H
17114 # include <db_185.h>
17119 #ifndef DB_VERSION_MAJOR
17120 # define DB_VERSION_MAJOR 1
17124 #define NULL ((void*)0)
17129 #if DB_VERSION_MAJOR > 1
17132 int major, minor, patch;
17134 version = db_version( &major, &minor, &patch );
17136 if( major != DB_VERSION_MAJOR ||
17137 minor < DB_VERSION_MINOR )
17139 printf("Berkeley DB version mismatch\n"
17140 "\texpected: %s\n\tgot: %s\n",
17141 DB_VERSION_STRING, version);
17147 #if DB_VERSION_MAJOR > 2
17148 db_env_create( NULL, 0 );
17149 #elif DB_VERSION_MAJOR > 1
17150 db_appexit( NULL );
17152 (void) dbopen( NULL, 0, 0, 0, NULL);
17157 if { (eval echo configure:17158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17161 echo "configure: failed program was:" >&5
17162 cat conftest.$ac_ext >&5
17172 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17174 if test $ol_cv_db_db_41 = yes ; then
17175 ol_cv_lib_db=-ldb-41
17179 if test $ol_cv_lib_db = no ; then
17180 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17181 echo "configure:17182: checking for Berkeley DB link (-ldb-4.1)" >&5
17182 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17183 echo $ac_n "(cached) $ac_c" 1>&6
17188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17190 cat > conftest.$ac_ext <<EOF
17191 #line 17192 "configure"
17192 #include "confdefs.h"
17194 #ifdef HAVE_DB_185_H
17195 # include <db_185.h>
17200 #ifndef DB_VERSION_MAJOR
17201 # define DB_VERSION_MAJOR 1
17205 #define NULL ((void*)0)
17210 #if DB_VERSION_MAJOR > 1
17213 int major, minor, patch;
17215 version = db_version( &major, &minor, &patch );
17217 if( major != DB_VERSION_MAJOR ||
17218 minor < DB_VERSION_MINOR )
17220 printf("Berkeley DB version mismatch\n"
17221 "\texpected: %s\n\tgot: %s\n",
17222 DB_VERSION_STRING, version);
17228 #if DB_VERSION_MAJOR > 2
17229 db_env_create( NULL, 0 );
17230 #elif DB_VERSION_MAJOR > 1
17231 db_appexit( NULL );
17233 (void) dbopen( NULL, 0, 0, 0, NULL);
17238 if { (eval echo configure:17239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17240 ol_cv_db_db_4_dot_1=yes
17242 echo "configure: failed program was:" >&5
17243 cat conftest.$ac_ext >&5
17245 ol_cv_db_db_4_dot_1=no
17253 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17255 if test $ol_cv_db_db_4_dot_1 = yes ; then
17256 ol_cv_lib_db=-ldb-4.1
17260 if test $ol_cv_lib_db = no ; then
17261 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17262 echo "configure:17263: checking for Berkeley DB link (-ldb-4-1)" >&5
17263 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17264 echo $ac_n "(cached) $ac_c" 1>&6
17269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17271 cat > conftest.$ac_ext <<EOF
17272 #line 17273 "configure"
17273 #include "confdefs.h"
17275 #ifdef HAVE_DB_185_H
17276 # include <db_185.h>
17281 #ifndef DB_VERSION_MAJOR
17282 # define DB_VERSION_MAJOR 1
17286 #define NULL ((void*)0)
17291 #if DB_VERSION_MAJOR > 1
17294 int major, minor, patch;
17296 version = db_version( &major, &minor, &patch );
17298 if( major != DB_VERSION_MAJOR ||
17299 minor < DB_VERSION_MINOR )
17301 printf("Berkeley DB version mismatch\n"
17302 "\texpected: %s\n\tgot: %s\n",
17303 DB_VERSION_STRING, version);
17309 #if DB_VERSION_MAJOR > 2
17310 db_env_create( NULL, 0 );
17311 #elif DB_VERSION_MAJOR > 1
17312 db_appexit( NULL );
17314 (void) dbopen( NULL, 0, 0, 0, NULL);
17319 if { (eval echo configure:17320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17321 ol_cv_db_db_4_1=yes
17323 echo "configure: failed program was:" >&5
17324 cat conftest.$ac_ext >&5
17334 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17336 if test $ol_cv_db_db_4_1 = yes ; then
17337 ol_cv_lib_db=-ldb-4-1
17341 if test $ol_cv_lib_db = no ; then
17342 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17343 echo "configure:17344: checking for Berkeley DB link (-ldb3)" >&5
17344 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17345 echo $ac_n "(cached) $ac_c" 1>&6
17350 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17352 cat > conftest.$ac_ext <<EOF
17353 #line 17354 "configure"
17354 #include "confdefs.h"
17356 #ifdef HAVE_DB_185_H
17357 # include <db_185.h>
17362 #ifndef DB_VERSION_MAJOR
17363 # define DB_VERSION_MAJOR 1
17367 #define NULL ((void*)0)
17372 #if DB_VERSION_MAJOR > 1
17375 int major, minor, patch;
17377 version = db_version( &major, &minor, &patch );
17379 if( major != DB_VERSION_MAJOR ||
17380 minor < DB_VERSION_MINOR )
17382 printf("Berkeley DB version mismatch\n"
17383 "\texpected: %s\n\tgot: %s\n",
17384 DB_VERSION_STRING, version);
17390 #if DB_VERSION_MAJOR > 2
17391 db_env_create( NULL, 0 );
17392 #elif DB_VERSION_MAJOR > 1
17393 db_appexit( NULL );
17395 (void) dbopen( NULL, 0, 0, 0, NULL);
17400 if { (eval echo configure:17401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17404 echo "configure: failed program was:" >&5
17405 cat conftest.$ac_ext >&5
17415 echo "$ac_t""$ol_cv_db_db3" 1>&6
17417 if test $ol_cv_db_db3 = yes ; then
17422 if test $ol_cv_lib_db = no ; then
17423 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17424 echo "configure:17425: checking for Berkeley DB link (-ldb-3)" >&5
17425 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17426 echo $ac_n "(cached) $ac_c" 1>&6
17431 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17433 cat > conftest.$ac_ext <<EOF
17434 #line 17435 "configure"
17435 #include "confdefs.h"
17437 #ifdef HAVE_DB_185_H
17438 # include <db_185.h>
17443 #ifndef DB_VERSION_MAJOR
17444 # define DB_VERSION_MAJOR 1
17448 #define NULL ((void*)0)
17453 #if DB_VERSION_MAJOR > 1
17456 int major, minor, patch;
17458 version = db_version( &major, &minor, &patch );
17460 if( major != DB_VERSION_MAJOR ||
17461 minor < DB_VERSION_MINOR )
17463 printf("Berkeley DB version mismatch\n"
17464 "\texpected: %s\n\tgot: %s\n",
17465 DB_VERSION_STRING, version);
17471 #if DB_VERSION_MAJOR > 2
17472 db_env_create( NULL, 0 );
17473 #elif DB_VERSION_MAJOR > 1
17474 db_appexit( NULL );
17476 (void) dbopen( NULL, 0, 0, 0, NULL);
17481 if { (eval echo configure:17482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17485 echo "configure: failed program was:" >&5
17486 cat conftest.$ac_ext >&5
17496 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17498 if test $ol_cv_db_db_3 = yes ; then
17499 ol_cv_lib_db=-ldb-3
17503 if test $ol_cv_lib_db = no ; then
17504 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17505 echo "configure:17506: checking for Berkeley DB link (-ldb2)" >&5
17506 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17507 echo $ac_n "(cached) $ac_c" 1>&6
17512 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17514 cat > conftest.$ac_ext <<EOF
17515 #line 17516 "configure"
17516 #include "confdefs.h"
17518 #ifdef HAVE_DB_185_H
17519 # include <db_185.h>
17524 #ifndef DB_VERSION_MAJOR
17525 # define DB_VERSION_MAJOR 1
17529 #define NULL ((void*)0)
17534 #if DB_VERSION_MAJOR > 1
17537 int major, minor, patch;
17539 version = db_version( &major, &minor, &patch );
17541 if( major != DB_VERSION_MAJOR ||
17542 minor < DB_VERSION_MINOR )
17544 printf("Berkeley DB version mismatch\n"
17545 "\texpected: %s\n\tgot: %s\n",
17546 DB_VERSION_STRING, version);
17552 #if DB_VERSION_MAJOR > 2
17553 db_env_create( NULL, 0 );
17554 #elif DB_VERSION_MAJOR > 1
17555 db_appexit( NULL );
17557 (void) dbopen( NULL, 0, 0, 0, NULL);
17562 if { (eval echo configure:17563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17566 echo "configure: failed program was:" >&5
17567 cat conftest.$ac_ext >&5
17577 echo "$ac_t""$ol_cv_db_db2" 1>&6
17579 if test $ol_cv_db_db2 = yes ; then
17584 if test $ol_cv_lib_db = no ; then
17585 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17586 echo "configure:17587: checking for Berkeley DB link (-ldb-2)" >&5
17587 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17588 echo $ac_n "(cached) $ac_c" 1>&6
17593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17595 cat > conftest.$ac_ext <<EOF
17596 #line 17597 "configure"
17597 #include "confdefs.h"
17599 #ifdef HAVE_DB_185_H
17600 # include <db_185.h>
17605 #ifndef DB_VERSION_MAJOR
17606 # define DB_VERSION_MAJOR 1
17610 #define NULL ((void*)0)
17615 #if DB_VERSION_MAJOR > 1
17618 int major, minor, patch;
17620 version = db_version( &major, &minor, &patch );
17622 if( major != DB_VERSION_MAJOR ||
17623 minor < DB_VERSION_MINOR )
17625 printf("Berkeley DB version mismatch\n"
17626 "\texpected: %s\n\tgot: %s\n",
17627 DB_VERSION_STRING, version);
17633 #if DB_VERSION_MAJOR > 2
17634 db_env_create( NULL, 0 );
17635 #elif DB_VERSION_MAJOR > 1
17636 db_appexit( NULL );
17638 (void) dbopen( NULL, 0, 0, 0, NULL);
17643 if { (eval echo configure:17644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17647 echo "configure: failed program was:" >&5
17648 cat conftest.$ac_ext >&5
17658 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17660 if test $ol_cv_db_db_2 = yes ; then
17661 ol_cv_lib_db=-ldb-2
17665 if test $ol_cv_lib_db = no ; then
17666 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17667 echo "configure:17668: checking for Berkeley DB link (-ldb1)" >&5
17668 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
17674 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17676 cat > conftest.$ac_ext <<EOF
17677 #line 17678 "configure"
17678 #include "confdefs.h"
17680 #ifdef HAVE_DB_185_H
17681 # include <db_185.h>
17686 #ifndef DB_VERSION_MAJOR
17687 # define DB_VERSION_MAJOR 1
17691 #define NULL ((void*)0)
17696 #if DB_VERSION_MAJOR > 1
17699 int major, minor, patch;
17701 version = db_version( &major, &minor, &patch );
17703 if( major != DB_VERSION_MAJOR ||
17704 minor < DB_VERSION_MINOR )
17706 printf("Berkeley DB version mismatch\n"
17707 "\texpected: %s\n\tgot: %s\n",
17708 DB_VERSION_STRING, version);
17714 #if DB_VERSION_MAJOR > 2
17715 db_env_create( NULL, 0 );
17716 #elif DB_VERSION_MAJOR > 1
17717 db_appexit( NULL );
17719 (void) dbopen( NULL, 0, 0, 0, NULL);
17724 if { (eval echo configure:17725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17728 echo "configure: failed program was:" >&5
17729 cat conftest.$ac_ext >&5
17739 echo "$ac_t""$ol_cv_db_db1" 1>&6
17741 if test $ol_cv_db_db1 = yes ; then
17746 if test $ol_cv_lib_db = no ; then
17747 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
17748 echo "configure:17749: checking for Berkeley DB link (-ldb-1)" >&5
17749 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
17750 echo $ac_n "(cached) $ac_c" 1>&6
17755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17757 cat > conftest.$ac_ext <<EOF
17758 #line 17759 "configure"
17759 #include "confdefs.h"
17761 #ifdef HAVE_DB_185_H
17762 # include <db_185.h>
17767 #ifndef DB_VERSION_MAJOR
17768 # define DB_VERSION_MAJOR 1
17772 #define NULL ((void*)0)
17777 #if DB_VERSION_MAJOR > 1
17780 int major, minor, patch;
17782 version = db_version( &major, &minor, &patch );
17784 if( major != DB_VERSION_MAJOR ||
17785 minor < DB_VERSION_MINOR )
17787 printf("Berkeley DB version mismatch\n"
17788 "\texpected: %s\n\tgot: %s\n",
17789 DB_VERSION_STRING, version);
17795 #if DB_VERSION_MAJOR > 2
17796 db_env_create( NULL, 0 );
17797 #elif DB_VERSION_MAJOR > 1
17798 db_appexit( NULL );
17800 (void) dbopen( NULL, 0, 0, 0, NULL);
17805 if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17809 echo "configure: failed program was:" >&5
17810 cat conftest.$ac_ext >&5
17820 echo "$ac_t""$ol_cv_db_db_1" 1>&6
17822 if test $ol_cv_db_db_1 = yes ; then
17823 ol_cv_lib_db=-ldb-1
17828 if test "$ol_cv_lib_db" != no ; then
17829 ol_cv_berkeley_db=yes
17835 ol_cv_berkeley_db=no
17838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17840 echo "configure:17841: checking for $ac_hdr" >&5
17841 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17842 echo $ac_n "(cached) $ac_c" 1>&6
17844 cat > conftest.$ac_ext <<EOF
17845 #line 17846 "configure"
17846 #include "confdefs.h"
17849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17850 { (eval echo configure:17851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17852 if test -z "$ac_err"; then
17854 eval "ac_cv_header_$ac_safe=yes"
17857 echo "configure: failed program was:" >&5
17858 cat conftest.$ac_ext >&5
17860 eval "ac_cv_header_$ac_safe=no"
17864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17865 echo "$ac_t""yes" 1>&6
17866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17867 cat >> confdefs.h <<EOF
17868 #define $ac_tr_hdr 1
17872 echo "$ac_t""no" 1>&6
17876 if test $ac_cv_header_db_h = yes; then
17878 if test $ol_cv_lib_db = no ; then
17879 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17880 echo "configure:17881: checking for Berkeley DB link (default)" >&5
17881 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17882 echo $ac_n "(cached) $ac_c" 1>&6
17887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17889 cat > conftest.$ac_ext <<EOF
17890 #line 17891 "configure"
17891 #include "confdefs.h"
17893 #ifdef HAVE_DB_185_H
17894 # include <db_185.h>
17899 #ifndef DB_VERSION_MAJOR
17900 # define DB_VERSION_MAJOR 1
17904 #define NULL ((void*)0)
17909 #if DB_VERSION_MAJOR > 1
17912 int major, minor, patch;
17914 version = db_version( &major, &minor, &patch );
17916 if( major != DB_VERSION_MAJOR ||
17917 minor < DB_VERSION_MINOR )
17919 printf("Berkeley DB version mismatch\n"
17920 "\texpected: %s\n\tgot: %s\n",
17921 DB_VERSION_STRING, version);
17927 #if DB_VERSION_MAJOR > 2
17928 db_env_create( NULL, 0 );
17929 #elif DB_VERSION_MAJOR > 1
17930 db_appexit( NULL );
17932 (void) dbopen( NULL, 0, 0, 0, NULL);
17937 if { (eval echo configure:17938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17941 echo "configure: failed program was:" >&5
17942 cat conftest.$ac_ext >&5
17952 echo "$ac_t""$ol_cv_db_none" 1>&6
17954 if test $ol_cv_db_none = yes ; then
17959 if test $ol_cv_lib_db = no ; then
17960 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17961 echo "configure:17962: checking for Berkeley DB link (-ldb42)" >&5
17962 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17963 echo $ac_n "(cached) $ac_c" 1>&6
17968 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17970 cat > conftest.$ac_ext <<EOF
17971 #line 17972 "configure"
17972 #include "confdefs.h"
17974 #ifdef HAVE_DB_185_H
17975 # include <db_185.h>
17980 #ifndef DB_VERSION_MAJOR
17981 # define DB_VERSION_MAJOR 1
17985 #define NULL ((void*)0)
17990 #if DB_VERSION_MAJOR > 1
17993 int major, minor, patch;
17995 version = db_version( &major, &minor, &patch );
17997 if( major != DB_VERSION_MAJOR ||
17998 minor < DB_VERSION_MINOR )
18000 printf("Berkeley DB version mismatch\n"
18001 "\texpected: %s\n\tgot: %s\n",
18002 DB_VERSION_STRING, version);
18008 #if DB_VERSION_MAJOR > 2
18009 db_env_create( NULL, 0 );
18010 #elif DB_VERSION_MAJOR > 1
18011 db_appexit( NULL );
18013 (void) dbopen( NULL, 0, 0, 0, NULL);
18018 if { (eval echo configure:18019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18022 echo "configure: failed program was:" >&5
18023 cat conftest.$ac_ext >&5
18033 echo "$ac_t""$ol_cv_db_db42" 1>&6
18035 if test $ol_cv_db_db42 = yes ; then
18036 ol_cv_lib_db=-ldb42
18040 if test $ol_cv_lib_db = no ; then
18041 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18042 echo "configure:18043: checking for Berkeley DB link (-ldb-42)" >&5
18043 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18044 echo $ac_n "(cached) $ac_c" 1>&6
18049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18051 cat > conftest.$ac_ext <<EOF
18052 #line 18053 "configure"
18053 #include "confdefs.h"
18055 #ifdef HAVE_DB_185_H
18056 # include <db_185.h>
18061 #ifndef DB_VERSION_MAJOR
18062 # define DB_VERSION_MAJOR 1
18066 #define NULL ((void*)0)
18071 #if DB_VERSION_MAJOR > 1
18074 int major, minor, patch;
18076 version = db_version( &major, &minor, &patch );
18078 if( major != DB_VERSION_MAJOR ||
18079 minor < DB_VERSION_MINOR )
18081 printf("Berkeley DB version mismatch\n"
18082 "\texpected: %s\n\tgot: %s\n",
18083 DB_VERSION_STRING, version);
18089 #if DB_VERSION_MAJOR > 2
18090 db_env_create( NULL, 0 );
18091 #elif DB_VERSION_MAJOR > 1
18092 db_appexit( NULL );
18094 (void) dbopen( NULL, 0, 0, 0, NULL);
18099 if { (eval echo configure:18100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18103 echo "configure: failed program was:" >&5
18104 cat conftest.$ac_ext >&5
18114 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18116 if test $ol_cv_db_db_42 = yes ; then
18117 ol_cv_lib_db=-ldb-42
18121 if test $ol_cv_lib_db = no ; then
18122 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18123 echo "configure:18124: checking for Berkeley DB link (-ldb-4.2)" >&5
18124 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18125 echo $ac_n "(cached) $ac_c" 1>&6
18130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18132 cat > conftest.$ac_ext <<EOF
18133 #line 18134 "configure"
18134 #include "confdefs.h"
18136 #ifdef HAVE_DB_185_H
18137 # include <db_185.h>
18142 #ifndef DB_VERSION_MAJOR
18143 # define DB_VERSION_MAJOR 1
18147 #define NULL ((void*)0)
18152 #if DB_VERSION_MAJOR > 1
18155 int major, minor, patch;
18157 version = db_version( &major, &minor, &patch );
18159 if( major != DB_VERSION_MAJOR ||
18160 minor < DB_VERSION_MINOR )
18162 printf("Berkeley DB version mismatch\n"
18163 "\texpected: %s\n\tgot: %s\n",
18164 DB_VERSION_STRING, version);
18170 #if DB_VERSION_MAJOR > 2
18171 db_env_create( NULL, 0 );
18172 #elif DB_VERSION_MAJOR > 1
18173 db_appexit( NULL );
18175 (void) dbopen( NULL, 0, 0, 0, NULL);
18180 if { (eval echo configure:18181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18182 ol_cv_db_db_4_dot_2=yes
18184 echo "configure: failed program was:" >&5
18185 cat conftest.$ac_ext >&5
18187 ol_cv_db_db_4_dot_2=no
18195 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18197 if test $ol_cv_db_db_4_dot_2 = yes ; then
18198 ol_cv_lib_db=-ldb-4.2
18202 if test $ol_cv_lib_db = no ; then
18203 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18204 echo "configure:18205: checking for Berkeley DB link (-ldb-4-2)" >&5
18205 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18206 echo $ac_n "(cached) $ac_c" 1>&6
18211 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18213 cat > conftest.$ac_ext <<EOF
18214 #line 18215 "configure"
18215 #include "confdefs.h"
18217 #ifdef HAVE_DB_185_H
18218 # include <db_185.h>
18223 #ifndef DB_VERSION_MAJOR
18224 # define DB_VERSION_MAJOR 1
18228 #define NULL ((void*)0)
18233 #if DB_VERSION_MAJOR > 1
18236 int major, minor, patch;
18238 version = db_version( &major, &minor, &patch );
18240 if( major != DB_VERSION_MAJOR ||
18241 minor < DB_VERSION_MINOR )
18243 printf("Berkeley DB version mismatch\n"
18244 "\texpected: %s\n\tgot: %s\n",
18245 DB_VERSION_STRING, version);
18251 #if DB_VERSION_MAJOR > 2
18252 db_env_create( NULL, 0 );
18253 #elif DB_VERSION_MAJOR > 1
18254 db_appexit( NULL );
18256 (void) dbopen( NULL, 0, 0, 0, NULL);
18261 if { (eval echo configure:18262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18263 ol_cv_db_db_4_2=yes
18265 echo "configure: failed program was:" >&5
18266 cat conftest.$ac_ext >&5
18276 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18278 if test $ol_cv_db_db_4_2 = yes ; then
18279 ol_cv_lib_db=-ldb-4-2
18283 if test $ol_cv_lib_db = no ; then
18284 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18285 echo "configure:18286: checking for Berkeley DB link (-ldb-4)" >&5
18286 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18292 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18294 cat > conftest.$ac_ext <<EOF
18295 #line 18296 "configure"
18296 #include "confdefs.h"
18298 #ifdef HAVE_DB_185_H
18299 # include <db_185.h>
18304 #ifndef DB_VERSION_MAJOR
18305 # define DB_VERSION_MAJOR 1
18309 #define NULL ((void*)0)
18314 #if DB_VERSION_MAJOR > 1
18317 int major, minor, patch;
18319 version = db_version( &major, &minor, &patch );
18321 if( major != DB_VERSION_MAJOR ||
18322 minor < DB_VERSION_MINOR )
18324 printf("Berkeley DB version mismatch\n"
18325 "\texpected: %s\n\tgot: %s\n",
18326 DB_VERSION_STRING, version);
18332 #if DB_VERSION_MAJOR > 2
18333 db_env_create( NULL, 0 );
18334 #elif DB_VERSION_MAJOR > 1
18335 db_appexit( NULL );
18337 (void) dbopen( NULL, 0, 0, 0, NULL);
18342 if { (eval echo configure:18343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18346 echo "configure: failed program was:" >&5
18347 cat conftest.$ac_ext >&5
18357 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18359 if test $ol_cv_db_db_4 = yes ; then
18360 ol_cv_lib_db=-ldb-4
18364 if test $ol_cv_lib_db = no ; then
18365 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18366 echo "configure:18367: checking for Berkeley DB link (-ldb4)" >&5
18367 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18368 echo $ac_n "(cached) $ac_c" 1>&6
18373 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18375 cat > conftest.$ac_ext <<EOF
18376 #line 18377 "configure"
18377 #include "confdefs.h"
18379 #ifdef HAVE_DB_185_H
18380 # include <db_185.h>
18385 #ifndef DB_VERSION_MAJOR
18386 # define DB_VERSION_MAJOR 1
18390 #define NULL ((void*)0)
18395 #if DB_VERSION_MAJOR > 1
18398 int major, minor, patch;
18400 version = db_version( &major, &minor, &patch );
18402 if( major != DB_VERSION_MAJOR ||
18403 minor < DB_VERSION_MINOR )
18405 printf("Berkeley DB version mismatch\n"
18406 "\texpected: %s\n\tgot: %s\n",
18407 DB_VERSION_STRING, version);
18413 #if DB_VERSION_MAJOR > 2
18414 db_env_create( NULL, 0 );
18415 #elif DB_VERSION_MAJOR > 1
18416 db_appexit( NULL );
18418 (void) dbopen( NULL, 0, 0, 0, NULL);
18423 if { (eval echo configure:18424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18427 echo "configure: failed program was:" >&5
18428 cat conftest.$ac_ext >&5
18438 echo "$ac_t""$ol_cv_db_db4" 1>&6
18440 if test $ol_cv_db_db4 = yes ; then
18445 if test $ol_cv_lib_db = no ; then
18446 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18447 echo "configure:18448: checking for Berkeley DB link (-ldb)" >&5
18448 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18449 echo $ac_n "(cached) $ac_c" 1>&6
18454 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18456 cat > conftest.$ac_ext <<EOF
18457 #line 18458 "configure"
18458 #include "confdefs.h"
18460 #ifdef HAVE_DB_185_H
18461 # include <db_185.h>
18466 #ifndef DB_VERSION_MAJOR
18467 # define DB_VERSION_MAJOR 1
18471 #define NULL ((void*)0)
18476 #if DB_VERSION_MAJOR > 1
18479 int major, minor, patch;
18481 version = db_version( &major, &minor, &patch );
18483 if( major != DB_VERSION_MAJOR ||
18484 minor < DB_VERSION_MINOR )
18486 printf("Berkeley DB version mismatch\n"
18487 "\texpected: %s\n\tgot: %s\n",
18488 DB_VERSION_STRING, version);
18494 #if DB_VERSION_MAJOR > 2
18495 db_env_create( NULL, 0 );
18496 #elif DB_VERSION_MAJOR > 1
18497 db_appexit( NULL );
18499 (void) dbopen( NULL, 0, 0, 0, NULL);
18504 if { (eval echo configure:18505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18508 echo "configure: failed program was:" >&5
18509 cat conftest.$ac_ext >&5
18519 echo "$ac_t""$ol_cv_db_db" 1>&6
18521 if test $ol_cv_db_db = yes ; then
18526 if test $ol_cv_lib_db = no ; then
18527 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18528 echo "configure:18529: checking for Berkeley DB link (-ldb41)" >&5
18529 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18530 echo $ac_n "(cached) $ac_c" 1>&6
18535 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18537 cat > conftest.$ac_ext <<EOF
18538 #line 18539 "configure"
18539 #include "confdefs.h"
18541 #ifdef HAVE_DB_185_H
18542 # include <db_185.h>
18547 #ifndef DB_VERSION_MAJOR
18548 # define DB_VERSION_MAJOR 1
18552 #define NULL ((void*)0)
18557 #if DB_VERSION_MAJOR > 1
18560 int major, minor, patch;
18562 version = db_version( &major, &minor, &patch );
18564 if( major != DB_VERSION_MAJOR ||
18565 minor < DB_VERSION_MINOR )
18567 printf("Berkeley DB version mismatch\n"
18568 "\texpected: %s\n\tgot: %s\n",
18569 DB_VERSION_STRING, version);
18575 #if DB_VERSION_MAJOR > 2
18576 db_env_create( NULL, 0 );
18577 #elif DB_VERSION_MAJOR > 1
18578 db_appexit( NULL );
18580 (void) dbopen( NULL, 0, 0, 0, NULL);
18585 if { (eval echo configure:18586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18589 echo "configure: failed program was:" >&5
18590 cat conftest.$ac_ext >&5
18600 echo "$ac_t""$ol_cv_db_db41" 1>&6
18602 if test $ol_cv_db_db41 = yes ; then
18603 ol_cv_lib_db=-ldb41
18607 if test $ol_cv_lib_db = no ; then
18608 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18609 echo "configure:18610: checking for Berkeley DB link (-ldb-41)" >&5
18610 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18611 echo $ac_n "(cached) $ac_c" 1>&6
18616 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18618 cat > conftest.$ac_ext <<EOF
18619 #line 18620 "configure"
18620 #include "confdefs.h"
18622 #ifdef HAVE_DB_185_H
18623 # include <db_185.h>
18628 #ifndef DB_VERSION_MAJOR
18629 # define DB_VERSION_MAJOR 1
18633 #define NULL ((void*)0)
18638 #if DB_VERSION_MAJOR > 1
18641 int major, minor, patch;
18643 version = db_version( &major, &minor, &patch );
18645 if( major != DB_VERSION_MAJOR ||
18646 minor < DB_VERSION_MINOR )
18648 printf("Berkeley DB version mismatch\n"
18649 "\texpected: %s\n\tgot: %s\n",
18650 DB_VERSION_STRING, version);
18656 #if DB_VERSION_MAJOR > 2
18657 db_env_create( NULL, 0 );
18658 #elif DB_VERSION_MAJOR > 1
18659 db_appexit( NULL );
18661 (void) dbopen( NULL, 0, 0, 0, NULL);
18666 if { (eval echo configure:18667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18670 echo "configure: failed program was:" >&5
18671 cat conftest.$ac_ext >&5
18681 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18683 if test $ol_cv_db_db_41 = yes ; then
18684 ol_cv_lib_db=-ldb-41
18688 if test $ol_cv_lib_db = no ; then
18689 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18690 echo "configure:18691: checking for Berkeley DB link (-ldb-4.1)" >&5
18691 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18692 echo $ac_n "(cached) $ac_c" 1>&6
18697 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18699 cat > conftest.$ac_ext <<EOF
18700 #line 18701 "configure"
18701 #include "confdefs.h"
18703 #ifdef HAVE_DB_185_H
18704 # include <db_185.h>
18709 #ifndef DB_VERSION_MAJOR
18710 # define DB_VERSION_MAJOR 1
18714 #define NULL ((void*)0)
18719 #if DB_VERSION_MAJOR > 1
18722 int major, minor, patch;
18724 version = db_version( &major, &minor, &patch );
18726 if( major != DB_VERSION_MAJOR ||
18727 minor < DB_VERSION_MINOR )
18729 printf("Berkeley DB version mismatch\n"
18730 "\texpected: %s\n\tgot: %s\n",
18731 DB_VERSION_STRING, version);
18737 #if DB_VERSION_MAJOR > 2
18738 db_env_create( NULL, 0 );
18739 #elif DB_VERSION_MAJOR > 1
18740 db_appexit( NULL );
18742 (void) dbopen( NULL, 0, 0, 0, NULL);
18747 if { (eval echo configure:18748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18749 ol_cv_db_db_4_dot_1=yes
18751 echo "configure: failed program was:" >&5
18752 cat conftest.$ac_ext >&5
18754 ol_cv_db_db_4_dot_1=no
18762 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18764 if test $ol_cv_db_db_4_dot_1 = yes ; then
18765 ol_cv_lib_db=-ldb-4.1
18769 if test $ol_cv_lib_db = no ; then
18770 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18771 echo "configure:18772: checking for Berkeley DB link (-ldb-4-1)" >&5
18772 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18773 echo $ac_n "(cached) $ac_c" 1>&6
18778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18780 cat > conftest.$ac_ext <<EOF
18781 #line 18782 "configure"
18782 #include "confdefs.h"
18784 #ifdef HAVE_DB_185_H
18785 # include <db_185.h>
18790 #ifndef DB_VERSION_MAJOR
18791 # define DB_VERSION_MAJOR 1
18795 #define NULL ((void*)0)
18800 #if DB_VERSION_MAJOR > 1
18803 int major, minor, patch;
18805 version = db_version( &major, &minor, &patch );
18807 if( major != DB_VERSION_MAJOR ||
18808 minor < DB_VERSION_MINOR )
18810 printf("Berkeley DB version mismatch\n"
18811 "\texpected: %s\n\tgot: %s\n",
18812 DB_VERSION_STRING, version);
18818 #if DB_VERSION_MAJOR > 2
18819 db_env_create( NULL, 0 );
18820 #elif DB_VERSION_MAJOR > 1
18821 db_appexit( NULL );
18823 (void) dbopen( NULL, 0, 0, 0, NULL);
18828 if { (eval echo configure:18829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18830 ol_cv_db_db_4_1=yes
18832 echo "configure: failed program was:" >&5
18833 cat conftest.$ac_ext >&5
18843 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18845 if test $ol_cv_db_db_4_1 = yes ; then
18846 ol_cv_lib_db=-ldb-4-1
18850 if test $ol_cv_lib_db = no ; then
18851 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18852 echo "configure:18853: checking for Berkeley DB link (-ldb3)" >&5
18853 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18854 echo $ac_n "(cached) $ac_c" 1>&6
18859 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18861 cat > conftest.$ac_ext <<EOF
18862 #line 18863 "configure"
18863 #include "confdefs.h"
18865 #ifdef HAVE_DB_185_H
18866 # include <db_185.h>
18871 #ifndef DB_VERSION_MAJOR
18872 # define DB_VERSION_MAJOR 1
18876 #define NULL ((void*)0)
18881 #if DB_VERSION_MAJOR > 1
18884 int major, minor, patch;
18886 version = db_version( &major, &minor, &patch );
18888 if( major != DB_VERSION_MAJOR ||
18889 minor < DB_VERSION_MINOR )
18891 printf("Berkeley DB version mismatch\n"
18892 "\texpected: %s\n\tgot: %s\n",
18893 DB_VERSION_STRING, version);
18899 #if DB_VERSION_MAJOR > 2
18900 db_env_create( NULL, 0 );
18901 #elif DB_VERSION_MAJOR > 1
18902 db_appexit( NULL );
18904 (void) dbopen( NULL, 0, 0, 0, NULL);
18909 if { (eval echo configure:18910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18913 echo "configure: failed program was:" >&5
18914 cat conftest.$ac_ext >&5
18924 echo "$ac_t""$ol_cv_db_db3" 1>&6
18926 if test $ol_cv_db_db3 = yes ; then
18931 if test $ol_cv_lib_db = no ; then
18932 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18933 echo "configure:18934: checking for Berkeley DB link (-ldb-3)" >&5
18934 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18935 echo $ac_n "(cached) $ac_c" 1>&6
18940 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18942 cat > conftest.$ac_ext <<EOF
18943 #line 18944 "configure"
18944 #include "confdefs.h"
18946 #ifdef HAVE_DB_185_H
18947 # include <db_185.h>
18952 #ifndef DB_VERSION_MAJOR
18953 # define DB_VERSION_MAJOR 1
18957 #define NULL ((void*)0)
18962 #if DB_VERSION_MAJOR > 1
18965 int major, minor, patch;
18967 version = db_version( &major, &minor, &patch );
18969 if( major != DB_VERSION_MAJOR ||
18970 minor < DB_VERSION_MINOR )
18972 printf("Berkeley DB version mismatch\n"
18973 "\texpected: %s\n\tgot: %s\n",
18974 DB_VERSION_STRING, version);
18980 #if DB_VERSION_MAJOR > 2
18981 db_env_create( NULL, 0 );
18982 #elif DB_VERSION_MAJOR > 1
18983 db_appexit( NULL );
18985 (void) dbopen( NULL, 0, 0, 0, NULL);
18990 if { (eval echo configure:18991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18994 echo "configure: failed program was:" >&5
18995 cat conftest.$ac_ext >&5
19005 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19007 if test $ol_cv_db_db_3 = yes ; then
19008 ol_cv_lib_db=-ldb-3
19012 if test $ol_cv_lib_db = no ; then
19013 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19014 echo "configure:19015: checking for Berkeley DB link (-ldb2)" >&5
19015 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19016 echo $ac_n "(cached) $ac_c" 1>&6
19021 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19023 cat > conftest.$ac_ext <<EOF
19024 #line 19025 "configure"
19025 #include "confdefs.h"
19027 #ifdef HAVE_DB_185_H
19028 # include <db_185.h>
19033 #ifndef DB_VERSION_MAJOR
19034 # define DB_VERSION_MAJOR 1
19038 #define NULL ((void*)0)
19043 #if DB_VERSION_MAJOR > 1
19046 int major, minor, patch;
19048 version = db_version( &major, &minor, &patch );
19050 if( major != DB_VERSION_MAJOR ||
19051 minor < DB_VERSION_MINOR )
19053 printf("Berkeley DB version mismatch\n"
19054 "\texpected: %s\n\tgot: %s\n",
19055 DB_VERSION_STRING, version);
19061 #if DB_VERSION_MAJOR > 2
19062 db_env_create( NULL, 0 );
19063 #elif DB_VERSION_MAJOR > 1
19064 db_appexit( NULL );
19066 (void) dbopen( NULL, 0, 0, 0, NULL);
19071 if { (eval echo configure:19072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19075 echo "configure: failed program was:" >&5
19076 cat conftest.$ac_ext >&5
19086 echo "$ac_t""$ol_cv_db_db2" 1>&6
19088 if test $ol_cv_db_db2 = yes ; then
19093 if test $ol_cv_lib_db = no ; then
19094 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19095 echo "configure:19096: checking for Berkeley DB link (-ldb-2)" >&5
19096 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19097 echo $ac_n "(cached) $ac_c" 1>&6
19102 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19104 cat > conftest.$ac_ext <<EOF
19105 #line 19106 "configure"
19106 #include "confdefs.h"
19108 #ifdef HAVE_DB_185_H
19109 # include <db_185.h>
19114 #ifndef DB_VERSION_MAJOR
19115 # define DB_VERSION_MAJOR 1
19119 #define NULL ((void*)0)
19124 #if DB_VERSION_MAJOR > 1
19127 int major, minor, patch;
19129 version = db_version( &major, &minor, &patch );
19131 if( major != DB_VERSION_MAJOR ||
19132 minor < DB_VERSION_MINOR )
19134 printf("Berkeley DB version mismatch\n"
19135 "\texpected: %s\n\tgot: %s\n",
19136 DB_VERSION_STRING, version);
19142 #if DB_VERSION_MAJOR > 2
19143 db_env_create( NULL, 0 );
19144 #elif DB_VERSION_MAJOR > 1
19145 db_appexit( NULL );
19147 (void) dbopen( NULL, 0, 0, 0, NULL);
19152 if { (eval echo configure:19153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19156 echo "configure: failed program was:" >&5
19157 cat conftest.$ac_ext >&5
19167 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19169 if test $ol_cv_db_db_2 = yes ; then
19170 ol_cv_lib_db=-ldb-2
19174 if test $ol_cv_lib_db = no ; then
19175 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19176 echo "configure:19177: checking for Berkeley DB link (-ldb1)" >&5
19177 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19178 echo $ac_n "(cached) $ac_c" 1>&6
19183 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19185 cat > conftest.$ac_ext <<EOF
19186 #line 19187 "configure"
19187 #include "confdefs.h"
19189 #ifdef HAVE_DB_185_H
19190 # include <db_185.h>
19195 #ifndef DB_VERSION_MAJOR
19196 # define DB_VERSION_MAJOR 1
19200 #define NULL ((void*)0)
19205 #if DB_VERSION_MAJOR > 1
19208 int major, minor, patch;
19210 version = db_version( &major, &minor, &patch );
19212 if( major != DB_VERSION_MAJOR ||
19213 minor < DB_VERSION_MINOR )
19215 printf("Berkeley DB version mismatch\n"
19216 "\texpected: %s\n\tgot: %s\n",
19217 DB_VERSION_STRING, version);
19223 #if DB_VERSION_MAJOR > 2
19224 db_env_create( NULL, 0 );
19225 #elif DB_VERSION_MAJOR > 1
19226 db_appexit( NULL );
19228 (void) dbopen( NULL, 0, 0, 0, NULL);
19233 if { (eval echo configure:19234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19237 echo "configure: failed program was:" >&5
19238 cat conftest.$ac_ext >&5
19248 echo "$ac_t""$ol_cv_db_db1" 1>&6
19250 if test $ol_cv_db_db1 = yes ; then
19255 if test $ol_cv_lib_db = no ; then
19256 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19257 echo "configure:19258: checking for Berkeley DB link (-ldb-1)" >&5
19258 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19259 echo $ac_n "(cached) $ac_c" 1>&6
19264 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19266 cat > conftest.$ac_ext <<EOF
19267 #line 19268 "configure"
19268 #include "confdefs.h"
19270 #ifdef HAVE_DB_185_H
19271 # include <db_185.h>
19276 #ifndef DB_VERSION_MAJOR
19277 # define DB_VERSION_MAJOR 1
19281 #define NULL ((void*)0)
19286 #if DB_VERSION_MAJOR > 1
19289 int major, minor, patch;
19291 version = db_version( &major, &minor, &patch );
19293 if( major != DB_VERSION_MAJOR ||
19294 minor < DB_VERSION_MINOR )
19296 printf("Berkeley DB version mismatch\n"
19297 "\texpected: %s\n\tgot: %s\n",
19298 DB_VERSION_STRING, version);
19304 #if DB_VERSION_MAJOR > 2
19305 db_env_create( NULL, 0 );
19306 #elif DB_VERSION_MAJOR > 1
19307 db_appexit( NULL );
19309 (void) dbopen( NULL, 0, 0, 0, NULL);
19314 if { (eval echo configure:19315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19318 echo "configure: failed program was:" >&5
19319 cat conftest.$ac_ext >&5
19329 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19331 if test $ol_cv_db_db_1 = yes ; then
19332 ol_cv_lib_db=-ldb-1
19337 if test "$ol_cv_lib_db" != no ; then
19338 ol_cv_berkeley_db=yes
19339 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19340 echo "configure:19341: checking for Berkeley DB thread support" >&5
19341 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19342 echo $ac_n "(cached) $ac_c" 1>&6
19346 LIBS="$LTHREAD_LIBS $LIBS"
19347 if test $ol_cv_lib_db != yes ; then
19348 LIBS="$ol_cv_lib_db $LIBS"
19351 if test "$cross_compiling" = yes; then
19352 ol_cv_berkeley_db_thread=cross
19354 cat > conftest.$ac_ext <<EOF
19355 #line 19356 "configure"
19356 #include "confdefs.h"
19358 #ifdef HAVE_DB_185_H
19364 #define NULL ((void *)0)
19369 u_int32_t flags = DB_CREATE |
19375 #if DB_VERSION_MAJOR > 2
19376 DB_ENV *env = NULL;
19378 rc = db_env_create( &env, 0 );
19380 flags |= DB_INIT_MPOOL;
19381 #ifdef DB_MPOOL_PRIVATE
19382 flags |= DB_MPOOL_PRIVATE;
19386 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19390 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19391 rc = env->open( env, NULL, flags, 0 );
19393 rc = env->open( env, NULL, NULL, flags, 0 );
19397 rc = env->close( env, 0 );
19401 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19407 memset( &env, '\0', sizeof(env) );
19409 rc = db_appinit( NULL, NULL, &env, flags );
19412 db_appexit( &env );
19415 unlink("__db_mpool.share");
19416 unlink("__db_lock.share");
19422 if { (eval echo configure:19423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19424 ol_cv_berkeley_db_thread=yes
19426 echo "configure: failed program was:" >&5
19427 cat conftest.$ac_ext >&5
19429 ol_cv_berkeley_db_thread=no
19439 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19441 if test $ol_cv_berkeley_db_thread != no ; then
19442 cat >> confdefs.h <<\EOF
19443 #define HAVE_BERKELEY_DB_THREAD 1
19453 if test $ol_cv_berkeley_db != no ; then
19454 cat >> confdefs.h <<\EOF
19455 #define HAVE_BERKELEY_DB 1
19459 ol_link_ldbm=berkeley
19460 ol_with_ldbm_api=berkeley
19462 if test $ol_with_ldbm_type = hash ; then
19463 cat >> confdefs.h <<\EOF
19464 #define LDBM_USE_DBHASH 1
19468 cat >> confdefs.h <<\EOF
19469 #define LDBM_USE_DBBTREE 1
19474 if test $ol_cv_lib_db != yes ; then
19475 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19480 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19481 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19482 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19483 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19484 echo "configure:19485: checking Berkeley DB version for BDB backend" >&5
19485 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19486 echo $ac_n "(cached) $ac_c" 1>&6
19489 cat > conftest.$ac_ext <<EOF
19490 #line 19491 "configure"
19491 #include "confdefs.h"
19495 /* this check could be improved */
19496 #ifndef DB_VERSION_MAJOR
19497 # define DB_VERSION_MAJOR 1
19499 #ifndef DB_VERSION_MINOR
19500 # define DB_VERSION_MINOR 0
19503 /* require 4.2 or later */
19504 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19505 __db_version_compat
19509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19510 egrep "__db_version_compat" >/dev/null 2>&1; then
19512 ol_cv_bdb_compat=yes
19515 ol_cv_bdb_compat=no
19521 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19524 if test $ol_cv_bdb_compat = yes ; then
19526 elif test $ol_enable_bdb = yes ; then
19527 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19532 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19533 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19536 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19537 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19538 ol_with_ldbm_api=none
19541 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19542 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19543 echo "configure:19544: checking for MDBM library" >&5
19544 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19545 echo $ac_n "(cached) $ac_c" 1>&6
19548 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19549 echo "configure:19550: checking for mdbm_set_chain" >&5
19550 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19551 echo $ac_n "(cached) $ac_c" 1>&6
19553 cat > conftest.$ac_ext <<EOF
19554 #line 19555 "configure"
19555 #include "confdefs.h"
19556 /* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char mdbm_set_chain(); below. */
19558 #include <assert.h>
19559 /* Override any gcc2 internal prototype to avoid an error. */
19560 /* We use char because int might match the return type of a gcc2
19561 builtin and then its argument prototype would still apply. */
19562 char mdbm_set_chain();
19567 /* The GNU C library defines this for functions which it implements
19568 to always fail with ENOSYS. Some functions are actually named
19569 something starting with __ and the normal name is an alias. */
19570 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19573 f = mdbm_set_chain;
19578 if { (eval echo configure:19579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19580 eval "ac_cv_func_mdbm_set_chain=yes"
19582 echo "configure: failed program was:" >&5
19583 cat conftest.$ac_ext >&5
19585 eval "ac_cv_func_mdbm_set_chain=no"
19590 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19591 echo "$ac_t""yes" 1>&6
19594 echo "$ac_t""no" 1>&6
19596 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19597 echo "configure:19598: checking for mdbm_set_chain in -lmdbm" >&5
19598 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19599 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19600 echo $ac_n "(cached) $ac_c" 1>&6
19602 ac_save_LIBS="$LIBS"
19603 LIBS="-lmdbm $LIBS"
19604 cat > conftest.$ac_ext <<EOF
19605 #line 19606 "configure"
19606 #include "confdefs.h"
19607 /* Override any gcc2 internal prototype to avoid an error. */
19608 /* We use char because int might match the return type of a gcc2
19609 builtin and then its argument prototype would still apply. */
19610 char mdbm_set_chain();
19616 if { (eval echo configure:19617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19618 eval "ac_cv_lib_$ac_lib_var=yes"
19620 echo "configure: failed program was:" >&5
19621 cat conftest.$ac_ext >&5
19623 eval "ac_cv_lib_$ac_lib_var=no"
19626 LIBS="$ac_save_LIBS"
19629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19630 echo "$ac_t""yes" 1>&6
19631 ol_cv_lib_mdbm=-lmdbm
19633 echo "$ac_t""no" 1>&6
19644 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19647 for ac_hdr in mdbm.h
19649 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19650 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19651 echo "configure:19652: checking for $ac_hdr" >&5
19652 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19653 echo $ac_n "(cached) $ac_c" 1>&6
19655 cat > conftest.$ac_ext <<EOF
19656 #line 19657 "configure"
19657 #include "confdefs.h"
19660 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19661 { (eval echo configure:19662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19662 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19663 if test -z "$ac_err"; then
19665 eval "ac_cv_header_$ac_safe=yes"
19668 echo "configure: failed program was:" >&5
19669 cat conftest.$ac_ext >&5
19671 eval "ac_cv_header_$ac_safe=no"
19675 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19676 echo "$ac_t""yes" 1>&6
19677 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19678 cat >> confdefs.h <<EOF
19679 #define $ac_tr_hdr 1
19683 echo "$ac_t""no" 1>&6
19687 echo $ac_n "checking for db""... $ac_c" 1>&6
19688 echo "configure:19689: checking for db" >&5
19689 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19690 echo $ac_n "(cached) $ac_c" 1>&6
19693 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19701 echo "$ac_t""$ol_cv_mdbm" 1>&6
19702 if test $ol_cv_mdbm = yes ; then
19703 cat >> confdefs.h <<\EOF
19704 #define HAVE_MDBM 1
19710 if test $ol_cv_mdbm = yes ; then
19712 ol_with_ldbm_api=mdbm
19713 if test $ol_cv_lib_mdbm != yes ; then
19714 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
19719 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
19720 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
19721 echo "configure:19722: checking for GDBM library" >&5
19722 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
19723 echo $ac_n "(cached) $ac_c" 1>&6
19726 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
19727 echo "configure:19728: checking for gdbm_open" >&5
19728 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
19729 echo $ac_n "(cached) $ac_c" 1>&6
19731 cat > conftest.$ac_ext <<EOF
19732 #line 19733 "configure"
19733 #include "confdefs.h"
19734 /* System header to define __stub macros and hopefully few prototypes,
19735 which can conflict with char gdbm_open(); below. */
19736 #include <assert.h>
19737 /* Override any gcc2 internal prototype to avoid an error. */
19738 /* We use char because int might match the return type of a gcc2
19739 builtin and then its argument prototype would still apply. */
19745 /* The GNU C library defines this for functions which it implements
19746 to always fail with ENOSYS. Some functions are actually named
19747 something starting with __ and the normal name is an alias. */
19748 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
19756 if { (eval echo configure:19757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19758 eval "ac_cv_func_gdbm_open=yes"
19760 echo "configure: failed program was:" >&5
19761 cat conftest.$ac_ext >&5
19763 eval "ac_cv_func_gdbm_open=no"
19768 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
19769 echo "$ac_t""yes" 1>&6
19772 echo "$ac_t""no" 1>&6
19774 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
19775 echo "configure:19776: checking for gdbm_open in -lgdbm" >&5
19776 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
19777 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19778 echo $ac_n "(cached) $ac_c" 1>&6
19780 ac_save_LIBS="$LIBS"
19781 LIBS="-lgdbm $LIBS"
19782 cat > conftest.$ac_ext <<EOF
19783 #line 19784 "configure"
19784 #include "confdefs.h"
19785 /* Override any gcc2 internal prototype to avoid an error. */
19786 /* We use char because int might match the return type of a gcc2
19787 builtin and then its argument prototype would still apply. */
19794 if { (eval echo configure:19795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19796 eval "ac_cv_lib_$ac_lib_var=yes"
19798 echo "configure: failed program was:" >&5
19799 cat conftest.$ac_ext >&5
19801 eval "ac_cv_lib_$ac_lib_var=no"
19804 LIBS="$ac_save_LIBS"
19807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19808 echo "$ac_t""yes" 1>&6
19809 ol_cv_lib_gdbm=-lgdbm
19811 echo "$ac_t""no" 1>&6
19822 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
19825 for ac_hdr in gdbm.h
19827 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19828 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19829 echo "configure:19830: checking for $ac_hdr" >&5
19830 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19831 echo $ac_n "(cached) $ac_c" 1>&6
19833 cat > conftest.$ac_ext <<EOF
19834 #line 19835 "configure"
19835 #include "confdefs.h"
19838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19839 { (eval echo configure:19840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19840 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19841 if test -z "$ac_err"; then
19843 eval "ac_cv_header_$ac_safe=yes"
19846 echo "configure: failed program was:" >&5
19847 cat conftest.$ac_ext >&5
19849 eval "ac_cv_header_$ac_safe=no"
19853 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19854 echo "$ac_t""yes" 1>&6
19855 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19856 cat >> confdefs.h <<EOF
19857 #define $ac_tr_hdr 1
19861 echo "$ac_t""no" 1>&6
19865 echo $ac_n "checking for db""... $ac_c" 1>&6
19866 echo "configure:19867: checking for db" >&5
19867 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
19868 echo $ac_n "(cached) $ac_c" 1>&6
19871 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
19879 echo "$ac_t""$ol_cv_gdbm" 1>&6
19880 if test $ol_cv_gdbm = yes ; then
19881 cat >> confdefs.h <<\EOF
19882 #define HAVE_GDBM 1
19888 if test $ol_cv_gdbm = yes ; then
19890 ol_with_ldbm_api=gdbm
19892 if test $ol_cv_lib_gdbm != yes ; then
19893 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
19898 if test $ol_with_ldbm_api = ndbm ; then
19899 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
19900 echo "configure:19901: checking for NDBM library" >&5
19901 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
19902 echo $ac_n "(cached) $ac_c" 1>&6
19905 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
19906 echo "configure:19907: checking for dbm_open" >&5
19907 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
19908 echo $ac_n "(cached) $ac_c" 1>&6
19910 cat > conftest.$ac_ext <<EOF
19911 #line 19912 "configure"
19912 #include "confdefs.h"
19913 /* System header to define __stub macros and hopefully few prototypes,
19914 which can conflict with char dbm_open(); below. */
19915 #include <assert.h>
19916 /* Override any gcc2 internal prototype to avoid an error. */
19917 /* We use char because int might match the return type of a gcc2
19918 builtin and then its argument prototype would still apply. */
19924 /* The GNU C library defines this for functions which it implements
19925 to always fail with ENOSYS. Some functions are actually named
19926 something starting with __ and the normal name is an alias. */
19927 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
19935 if { (eval echo configure:19936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19937 eval "ac_cv_func_dbm_open=yes"
19939 echo "configure: failed program was:" >&5
19940 cat conftest.$ac_ext >&5
19942 eval "ac_cv_func_dbm_open=no"
19947 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
19948 echo "$ac_t""yes" 1>&6
19951 echo "$ac_t""no" 1>&6
19953 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
19954 echo "configure:19955: checking for dbm_open in -lndbm" >&5
19955 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19957 echo $ac_n "(cached) $ac_c" 1>&6
19959 ac_save_LIBS="$LIBS"
19960 LIBS="-lndbm $LIBS"
19961 cat > conftest.$ac_ext <<EOF
19962 #line 19963 "configure"
19963 #include "confdefs.h"
19964 /* Override any gcc2 internal prototype to avoid an error. */
19965 /* We use char because int might match the return type of a gcc2
19966 builtin and then its argument prototype would still apply. */
19973 if { (eval echo configure:19974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19975 eval "ac_cv_lib_$ac_lib_var=yes"
19977 echo "configure: failed program was:" >&5
19978 cat conftest.$ac_ext >&5
19980 eval "ac_cv_lib_$ac_lib_var=no"
19983 LIBS="$ac_save_LIBS"
19986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19987 echo "$ac_t""yes" 1>&6
19988 ol_cv_lib_ndbm=-lndbm
19990 echo "$ac_t""no" 1>&6
19992 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
19993 echo "configure:19994: checking for dbm_open in -ldbm" >&5
19994 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
19995 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19996 echo $ac_n "(cached) $ac_c" 1>&6
19998 ac_save_LIBS="$LIBS"
20000 cat > conftest.$ac_ext <<EOF
20001 #line 20002 "configure"
20002 #include "confdefs.h"
20003 /* Override any gcc2 internal prototype to avoid an error. */
20004 /* We use char because int might match the return type of a gcc2
20005 builtin and then its argument prototype would still apply. */
20012 if { (eval echo configure:20013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20014 eval "ac_cv_lib_$ac_lib_var=yes"
20016 echo "configure: failed program was:" >&5
20017 cat conftest.$ac_ext >&5
20019 eval "ac_cv_lib_$ac_lib_var=no"
20022 LIBS="$ac_save_LIBS"
20025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20026 echo "$ac_t""yes" 1>&6
20027 ol_cv_lib_ndbm=-ldbm
20029 echo "$ac_t""no" 1>&6
20042 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20045 for ac_hdr in ndbm.h
20047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20049 echo "configure:20050: checking for $ac_hdr" >&5
20050 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20051 echo $ac_n "(cached) $ac_c" 1>&6
20053 cat > conftest.$ac_ext <<EOF
20054 #line 20055 "configure"
20055 #include "confdefs.h"
20058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20059 { (eval echo configure:20060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20061 if test -z "$ac_err"; then
20063 eval "ac_cv_header_$ac_safe=yes"
20066 echo "configure: failed program was:" >&5
20067 cat conftest.$ac_ext >&5
20069 eval "ac_cv_header_$ac_safe=no"
20073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20074 echo "$ac_t""yes" 1>&6
20075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20076 cat >> confdefs.h <<EOF
20077 #define $ac_tr_hdr 1
20081 echo "$ac_t""no" 1>&6
20085 echo $ac_n "checking for db""... $ac_c" 1>&6
20086 echo "configure:20087: checking for db" >&5
20087 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20088 echo $ac_n "(cached) $ac_c" 1>&6
20091 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20099 echo "$ac_t""$ol_cv_ndbm" 1>&6
20100 if test $ol_cv_ndbm = yes ; then
20101 cat >> confdefs.h <<\EOF
20102 #define HAVE_NDBM 1
20108 if test $ol_cv_ndbm = yes ; then
20110 ol_with_ldbm_api=ndbm
20112 if test $ol_cv_lib_ndbm != yes ; then
20113 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20118 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20119 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20120 if test $ol_enable_ldbm = yes ; then
20121 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20124 echo "configure: warning: disabling LDBM" 1>&2
20129 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20130 BUILD_LIBS_DYNAMIC=shared
20131 cat >> confdefs.h <<\EOF
20132 #define LDAP_LIBS_DYNAMIC 1
20137 BUILD_LIBS_DYNAMIC=static
20141 if test $ol_enable_wrappers != no ; then
20142 for ac_hdr in tcpd.h
20144 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20145 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20146 echo "configure:20147: checking for $ac_hdr" >&5
20147 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20148 echo $ac_n "(cached) $ac_c" 1>&6
20150 cat > conftest.$ac_ext <<EOF
20151 #line 20152 "configure"
20152 #include "confdefs.h"
20155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20156 { (eval echo configure:20157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20158 if test -z "$ac_err"; then
20160 eval "ac_cv_header_$ac_safe=yes"
20163 echo "configure: failed program was:" >&5
20164 cat conftest.$ac_ext >&5
20166 eval "ac_cv_header_$ac_safe=no"
20170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20171 echo "$ac_t""yes" 1>&6
20172 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20173 cat >> confdefs.h <<EOF
20174 #define $ac_tr_hdr 1
20177 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20178 echo "configure:20179: checking for TCP wrappers library" >&5
20180 LIBS="$LIBS -lwrap"
20181 cat > conftest.$ac_ext <<EOF
20182 #line 20183 "configure"
20183 #include "confdefs.h"
20186 int allow_severity = 0;
20187 int deny_severity = 0;
20189 struct request_info *req;
20197 if { (eval echo configure:20198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20199 echo "$ac_t""-lwrap" 1>&6
20203 echo "configure: failed program was:" >&5
20204 cat conftest.$ac_ext >&5
20208 cat > conftest.$ac_ext <<EOF
20209 #line 20210 "configure"
20210 #include "confdefs.h"
20213 int allow_severity = 0;
20214 int deny_severity = 0;
20216 struct request_info *req;
20224 if { (eval echo configure:20225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20226 echo "$ac_t""-lwrap -lnsl" 1>&6
20228 LIBS="$save_LIBS -lnsl"
20230 echo "configure: failed program was:" >&5
20231 cat conftest.$ac_ext >&5
20234 echo "$ac_t""no" 1>&6
20242 echo "$ac_t""no" 1>&6
20248 if test $have_wrappers = yes ; then
20249 cat >> confdefs.h <<\EOF
20250 #define HAVE_TCPD 1
20254 elif test $ol_enable_wrappers = yes ; then
20255 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20257 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20262 if test $ol_enable_syslog != no ; then
20263 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20264 echo "configure:20265: checking for openlog" >&5
20265 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20266 echo $ac_n "(cached) $ac_c" 1>&6
20268 cat > conftest.$ac_ext <<EOF
20269 #line 20270 "configure"
20270 #include "confdefs.h"
20271 /* System header to define __stub macros and hopefully few prototypes,
20272 which can conflict with char openlog(); below. */
20273 #include <assert.h>
20274 /* Override any gcc2 internal prototype to avoid an error. */
20275 /* We use char because int might match the return type of a gcc2
20276 builtin and then its argument prototype would still apply. */
20282 /* The GNU C library defines this for functions which it implements
20283 to always fail with ENOSYS. Some functions are actually named
20284 something starting with __ and the normal name is an alias. */
20285 #if defined (__stub_openlog) || defined (__stub___openlog)
20293 if { (eval echo configure:20294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20295 eval "ac_cv_func_openlog=yes"
20297 echo "configure: failed program was:" >&5
20298 cat conftest.$ac_ext >&5
20300 eval "ac_cv_func_openlog=no"
20305 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20306 echo "$ac_t""yes" 1>&6
20309 echo "$ac_t""no" 1>&6
20312 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20313 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20315 ol_enable_syslog=$ac_cv_func_openlog
20320 if test $ol_enable_sql != no ; then
20321 for ac_hdr in sql.h sqlext.h
20323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20325 echo "configure:20326: checking for $ac_hdr" >&5
20326 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20327 echo $ac_n "(cached) $ac_c" 1>&6
20329 cat > conftest.$ac_ext <<EOF
20330 #line 20331 "configure"
20331 #include "confdefs.h"
20334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20335 { (eval echo configure:20336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20337 if test -z "$ac_err"; then
20339 eval "ac_cv_header_$ac_safe=yes"
20342 echo "configure: failed program was:" >&5
20343 cat conftest.$ac_ext >&5
20345 eval "ac_cv_header_$ac_safe=no"
20349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20350 echo "$ac_t""yes" 1>&6
20351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20352 cat >> confdefs.h <<EOF
20353 #define $ac_tr_hdr 1
20357 echo "$ac_t""no" 1>&6
20358 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20364 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20365 echo "configure:20366: checking for SQLDriverConnect in -liodbc" >&5
20366 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20367 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20368 echo $ac_n "(cached) $ac_c" 1>&6
20370 ac_save_LIBS="$LIBS"
20371 LIBS="-liodbc $LIBS"
20372 cat > conftest.$ac_ext <<EOF
20373 #line 20374 "configure"
20374 #include "confdefs.h"
20375 /* Override any gcc2 internal prototype to avoid an error. */
20376 /* We use char because int might match the return type of a gcc2
20377 builtin and then its argument prototype would still apply. */
20378 char SQLDriverConnect();
20384 if { (eval echo configure:20385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20386 eval "ac_cv_lib_$ac_lib_var=yes"
20388 echo "configure: failed program was:" >&5
20389 cat conftest.$ac_ext >&5
20391 eval "ac_cv_lib_$ac_lib_var=no"
20394 LIBS="$ac_save_LIBS"
20397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20398 echo "$ac_t""yes" 1>&6
20401 echo "$ac_t""no" 1>&6
20405 if test $have_iodbc = yes ; then
20406 ol_link_sql="-liodbc"
20408 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20409 echo "configure:20410: checking for SQLDriverConnect in -lodbc" >&5
20410 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20411 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20412 echo $ac_n "(cached) $ac_c" 1>&6
20414 ac_save_LIBS="$LIBS"
20415 LIBS="-lodbc $LIBS"
20416 cat > conftest.$ac_ext <<EOF
20417 #line 20418 "configure"
20418 #include "confdefs.h"
20419 /* Override any gcc2 internal prototype to avoid an error. */
20420 /* We use char because int might match the return type of a gcc2
20421 builtin and then its argument prototype would still apply. */
20422 char SQLDriverConnect();
20428 if { (eval echo configure:20429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20430 eval "ac_cv_lib_$ac_lib_var=yes"
20432 echo "configure: failed program was:" >&5
20433 cat conftest.$ac_ext >&5
20435 eval "ac_cv_lib_$ac_lib_var=no"
20438 LIBS="$ac_save_LIBS"
20441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20442 echo "$ac_t""yes" 1>&6
20445 echo "$ac_t""no" 1>&6
20449 if test $have_odbc = yes ; then
20450 ol_link_sql="-lodbc"
20454 if test $ol_link_sql != no ; then
20455 SLAPD_SQL_LIBS="$ol_link_sql"
20457 elif test $ol_enable_sql != auto ; then
20458 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20464 if test $ol_with_cyrus_sasl != no ; then
20465 for ac_hdr in sasl/sasl.h sasl.h
20467 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20468 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20469 echo "configure:20470: checking for $ac_hdr" >&5
20470 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20471 echo $ac_n "(cached) $ac_c" 1>&6
20473 cat > conftest.$ac_ext <<EOF
20474 #line 20475 "configure"
20475 #include "confdefs.h"
20478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20479 { (eval echo configure:20480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20481 if test -z "$ac_err"; then
20483 eval "ac_cv_header_$ac_safe=yes"
20486 echo "configure: failed program was:" >&5
20487 cat conftest.$ac_ext >&5
20489 eval "ac_cv_header_$ac_safe=no"
20493 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20494 echo "$ac_t""yes" 1>&6
20495 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20496 cat >> confdefs.h <<EOF
20497 #define $ac_tr_hdr 1
20501 echo "$ac_t""no" 1>&6
20506 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20507 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20508 echo "configure:20509: checking for sasl_client_init in -lsasl2" >&5
20509 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20510 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20511 echo $ac_n "(cached) $ac_c" 1>&6
20513 ac_save_LIBS="$LIBS"
20514 LIBS="-lsasl2 $LIBS"
20515 cat > conftest.$ac_ext <<EOF
20516 #line 20517 "configure"
20517 #include "confdefs.h"
20518 /* Override any gcc2 internal prototype to avoid an error. */
20519 /* We use char because int might match the return type of a gcc2
20520 builtin and then its argument prototype would still apply. */
20521 char sasl_client_init();
20527 if { (eval echo configure:20528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20529 eval "ac_cv_lib_$ac_lib_var=yes"
20531 echo "configure: failed program was:" >&5
20532 cat conftest.$ac_ext >&5
20534 eval "ac_cv_lib_$ac_lib_var=no"
20537 LIBS="$ac_save_LIBS"
20540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20541 echo "$ac_t""yes" 1>&6
20542 ol_link_sasl="-lsasl2"
20544 echo "$ac_t""no" 1>&6
20545 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20546 echo "configure:20547: checking for sasl_client_init in -lsasl" >&5
20547 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20548 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20549 echo $ac_n "(cached) $ac_c" 1>&6
20551 ac_save_LIBS="$LIBS"
20552 LIBS="-lsasl $LIBS"
20553 cat > conftest.$ac_ext <<EOF
20554 #line 20555 "configure"
20555 #include "confdefs.h"
20556 /* Override any gcc2 internal prototype to avoid an error. */
20557 /* We use char because int might match the return type of a gcc2
20558 builtin and then its argument prototype would still apply. */
20559 char sasl_client_init();
20565 if { (eval echo configure:20566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20567 eval "ac_cv_lib_$ac_lib_var=yes"
20569 echo "configure: failed program was:" >&5
20570 cat conftest.$ac_ext >&5
20572 eval "ac_cv_lib_$ac_lib_var=no"
20575 LIBS="$ac_save_LIBS"
20578 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20579 echo "$ac_t""yes" 1>&6
20580 ol_link_sasl="-lsasl"
20582 echo "$ac_t""no" 1>&6
20589 if test $ol_link_sasl = no ; then
20590 if test $ol_with_cyrus_sasl != auto ; then
20591 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20593 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20594 echo "configure: warning: SASL authentication not supported!" 1>&2
20595 if test $ol_link_tls = no ; then
20596 echo "configure: warning: Strong authentication not supported!" 1>&2
20600 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20601 echo "configure:20602: checking Cyrus SASL library version" >&5
20602 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20603 echo $ac_n "(cached) $ac_c" 1>&6
20606 cat > conftest.$ac_ext <<EOF
20607 #line 20608 "configure"
20608 #include "confdefs.h"
20610 #ifdef HAVE_SASL_SASL_H
20611 #include <sasl/sasl.h>
20616 /* Require 2.1.15+ */
20617 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20618 char *__sasl_compat = "2.2+ or better okay (we guess)";
20619 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20620 && SASL_VERSION_STEP >=15
20621 char *__sasl_compat = "2.1.15+ or better okay";
20625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20626 egrep "__sasl_compat" >/dev/null 2>&1; then
20628 ol_cv_sasl_compat=yes
20631 ol_cv_sasl_compat=no
20637 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20639 if test $ol_cv_sasl_compat = no ; then
20641 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
20644 cat >> confdefs.h <<\EOF
20645 #define HAVE_CYRUS_SASL 1
20648 SASL_LIBS="$ol_link_sasl"
20649 if test $ol_enable_spasswd != no ; then
20650 ol_link_spasswd=yes
20653 ac_save_LIBS="$LIBS"
20654 LIBS="$LIBS $ol_link_sasl"
20655 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20656 echo "configure:20657: checking for sasl_version" >&5
20657 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20658 echo $ac_n "(cached) $ac_c" 1>&6
20660 cat > conftest.$ac_ext <<EOF
20661 #line 20662 "configure"
20662 #include "confdefs.h"
20663 /* System header to define __stub macros and hopefully few prototypes,
20664 which can conflict with char sasl_version(); below. */
20665 #include <assert.h>
20666 /* Override any gcc2 internal prototype to avoid an error. */
20667 /* We use char because int might match the return type of a gcc2
20668 builtin and then its argument prototype would still apply. */
20669 char sasl_version();
20674 /* The GNU C library defines this for functions which it implements
20675 to always fail with ENOSYS. Some functions are actually named
20676 something starting with __ and the normal name is an alias. */
20677 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20685 if { (eval echo configure:20686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20687 eval "ac_cv_func_sasl_version=yes"
20689 echo "configure: failed program was:" >&5
20690 cat conftest.$ac_ext >&5
20692 eval "ac_cv_func_sasl_version=no"
20697 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20698 echo "$ac_t""yes" 1>&6
20699 cat >> confdefs.h <<\EOF
20700 #define HAVE_SASL_VERSION 1
20704 echo "$ac_t""no" 1>&6
20707 LIBS="$ac_save_LIBS"
20711 echo "configure: warning: SASL authentication not supported!" 1>&2
20712 if test $ol_link_tls = no ; then
20713 echo "configure: warning: Strong authentication not supported!" 1>&2
20717 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
20719 if test -r /dev/urandom ; then
20720 dev="/dev/urandom";
20721 elif test -r /idev/urandom ; then
20722 dev="/idev/urandom";
20723 elif test -r /dev/srandom ; then
20724 dev="/dev/srandom";
20725 elif test -r /dev/random ; then
20727 elif test -r /idev/random ; then
20728 dev="/idev/random";
20731 if test $dev != no ; then
20732 cat >> confdefs.h <<EOF
20733 #define URANDOM_DEVICE "$dev"
20740 if test $ol_with_fetch != no ; then
20742 LIBS="-lfetch -lcom_err $LIBS"
20743 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
20744 echo "configure:20745: checking fetch(3) library" >&5
20745 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
20746 echo $ac_n "(cached) $ac_c" 1>&6
20749 cat > conftest.$ac_ext <<EOF
20750 #line 20751 "configure"
20751 #include "confdefs.h"
20753 #include <sys/param.h>
20757 struct url *u = fetchParseURL("file:///");
20760 if { (eval echo configure:20761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20762 ol_cv_lib_fetch=yes
20764 echo "configure: failed program was:" >&5
20765 cat conftest.$ac_ext >&5
20772 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
20774 if test $ol_cv_lib_fetch != no ; then
20775 ol_link_fetch="-lfetch -lcom_err"
20776 cat >> confdefs.h <<\EOF
20777 #define HAVE_FETCH 1
20783 if test $ol_cv_lib_fetch != no ; then
20784 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
20785 ol_link_fetch=freebsd
20787 elif test $ol_with_fetch != auto ; then
20788 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
20792 if test $ol_enable_crypt != no ; then
20794 LIBS="$TLS_LIBS $LIBS"
20796 echo $ac_n "checking for crypt""... $ac_c" 1>&6
20797 echo "configure:20798: checking for crypt" >&5
20798 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
20799 echo $ac_n "(cached) $ac_c" 1>&6
20801 cat > conftest.$ac_ext <<EOF
20802 #line 20803 "configure"
20803 #include "confdefs.h"
20804 /* System header to define __stub macros and hopefully few prototypes,
20805 which can conflict with char crypt(); below. */
20806 #include <assert.h>
20807 /* Override any gcc2 internal prototype to avoid an error. */
20808 /* We use char because int might match the return type of a gcc2
20809 builtin and then its argument prototype would still apply. */
20815 /* The GNU C library defines this for functions which it implements
20816 to always fail with ENOSYS. Some functions are actually named
20817 something starting with __ and the normal name is an alias. */
20818 #if defined (__stub_crypt) || defined (__stub___crypt)
20826 if { (eval echo configure:20827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20828 eval "ac_cv_func_crypt=yes"
20830 echo "configure: failed program was:" >&5
20831 cat conftest.$ac_ext >&5
20833 eval "ac_cv_func_crypt=no"
20838 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
20839 echo "$ac_t""yes" 1>&6
20842 echo "$ac_t""no" 1>&6
20845 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
20846 echo "configure:20847: checking for crypt in -lcrypt" >&5
20847 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
20848 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20849 echo $ac_n "(cached) $ac_c" 1>&6
20851 ac_save_LIBS="$LIBS"
20852 LIBS="-lcrypt $LIBS"
20853 cat > conftest.$ac_ext <<EOF
20854 #line 20855 "configure"
20855 #include "confdefs.h"
20856 /* Override any gcc2 internal prototype to avoid an error. */
20857 /* We use char because int might match the return type of a gcc2
20858 builtin and then its argument prototype would still apply. */
20865 if { (eval echo configure:20866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20867 eval "ac_cv_lib_$ac_lib_var=yes"
20869 echo "configure: failed program was:" >&5
20870 cat conftest.$ac_ext >&5
20872 eval "ac_cv_lib_$ac_lib_var=no"
20875 LIBS="$ac_save_LIBS"
20878 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20879 echo "$ac_t""yes" 1>&6
20880 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
20883 echo "$ac_t""no" 1>&6
20892 if test $have_crypt = yes ; then
20893 cat >> confdefs.h <<\EOF
20894 #define HAVE_CRYPT 1
20898 echo "configure: warning: could not find crypt" 1>&2
20899 if test $ol_enable_crypt = yes ; then
20900 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
20903 echo "configure: warning: disabling crypt support" 1>&2
20908 if test $ol_enable_proctitle != no ; then
20909 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
20910 echo "configure:20911: checking for setproctitle" >&5
20911 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
20912 echo $ac_n "(cached) $ac_c" 1>&6
20914 cat > conftest.$ac_ext <<EOF
20915 #line 20916 "configure"
20916 #include "confdefs.h"
20917 /* System header to define __stub macros and hopefully few prototypes,
20918 which can conflict with char setproctitle(); below. */
20919 #include <assert.h>
20920 /* Override any gcc2 internal prototype to avoid an error. */
20921 /* We use char because int might match the return type of a gcc2
20922 builtin and then its argument prototype would still apply. */
20923 char setproctitle();
20928 /* The GNU C library defines this for functions which it implements
20929 to always fail with ENOSYS. Some functions are actually named
20930 something starting with __ and the normal name is an alias. */
20931 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
20939 if { (eval echo configure:20940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20941 eval "ac_cv_func_setproctitle=yes"
20943 echo "configure: failed program was:" >&5
20944 cat conftest.$ac_ext >&5
20946 eval "ac_cv_func_setproctitle=no"
20951 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
20952 echo "$ac_t""yes" 1>&6
20953 have_setproctitle=yes
20955 echo "$ac_t""no" 1>&6
20957 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
20958 echo "configure:20959: checking for setproctitle in -lutil" >&5
20959 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
20960 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20961 echo $ac_n "(cached) $ac_c" 1>&6
20963 ac_save_LIBS="$LIBS"
20964 LIBS="-lutil $LIBS"
20965 cat > conftest.$ac_ext <<EOF
20966 #line 20967 "configure"
20967 #include "confdefs.h"
20968 /* Override any gcc2 internal prototype to avoid an error. */
20969 /* We use char because int might match the return type of a gcc2
20970 builtin and then its argument prototype would still apply. */
20971 char setproctitle();
20977 if { (eval echo configure:20978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20979 eval "ac_cv_lib_$ac_lib_var=yes"
20981 echo "configure: failed program was:" >&5
20982 cat conftest.$ac_ext >&5
20984 eval "ac_cv_lib_$ac_lib_var=no"
20987 LIBS="$ac_save_LIBS"
20990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20991 echo "$ac_t""yes" 1>&6
20992 have_setproctitle=yes
20993 LUTIL_LIBS="$LUTIL_LIBS -lutil"
20995 echo "$ac_t""no" 1>&6
20996 have_setproctitle=no
20997 LIBOBJS="$LIBOBJS setproctitle.o"
20998 LIBSRCS="$LIBSRCS setproctitle.c"
21004 if test $have_setproctitle = yes ; then
21005 cat >> confdefs.h <<\EOF
21006 #define HAVE_SETPROCTITLE 1
21012 if test $ol_enable_slp != no ; then
21013 for ac_hdr in slp.h
21015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21017 echo "configure:21018: checking for $ac_hdr" >&5
21018 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21019 echo $ac_n "(cached) $ac_c" 1>&6
21021 cat > conftest.$ac_ext <<EOF
21022 #line 21023 "configure"
21023 #include "confdefs.h"
21026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21027 { (eval echo configure:21028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21029 if test -z "$ac_err"; then
21031 eval "ac_cv_header_$ac_safe=yes"
21034 echo "configure: failed program was:" >&5
21035 cat conftest.$ac_ext >&5
21037 eval "ac_cv_header_$ac_safe=no"
21041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21042 echo "$ac_t""yes" 1>&6
21043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21044 cat >> confdefs.h <<EOF
21045 #define $ac_tr_hdr 1
21049 echo "$ac_t""no" 1>&6
21054 if test $ac_cv_header_slp_h = yes ; then
21055 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21056 echo "configure:21057: checking for SLPOpen in -lslp" >&5
21057 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21058 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21059 echo $ac_n "(cached) $ac_c" 1>&6
21061 ac_save_LIBS="$LIBS"
21063 cat > conftest.$ac_ext <<EOF
21064 #line 21065 "configure"
21065 #include "confdefs.h"
21066 /* Override any gcc2 internal prototype to avoid an error. */
21067 /* We use char because int might match the return type of a gcc2
21068 builtin and then its argument prototype would still apply. */
21075 if { (eval echo configure:21076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21077 eval "ac_cv_lib_$ac_lib_var=yes"
21079 echo "configure: failed program was:" >&5
21080 cat conftest.$ac_ext >&5
21082 eval "ac_cv_lib_$ac_lib_var=no"
21085 LIBS="$ac_save_LIBS"
21088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21089 echo "$ac_t""yes" 1>&6
21092 echo "$ac_t""no" 1>&6
21096 if test $have_slp = yes ; then
21097 cat >> confdefs.h <<\EOF
21101 SLAPD_SLP_LIBS=-lslp
21104 elif test $ol_enable_slp = yes ; then
21105 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21110 echo $ac_n "checking long long""... $ac_c" 1>&6
21111 echo "configure:21112: checking long long" >&5
21112 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21113 echo $ac_n "(cached) $ac_c" 1>&6
21116 cat > conftest.$ac_ext <<EOF
21117 #line 21118 "configure"
21118 #include "confdefs.h"
21124 if { (eval echo configure:21125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21126 ol_cv_type_long_long=yes
21128 echo "configure: failed program was:" >&5
21129 cat conftest.$ac_ext >&5
21131 ol_cv_type_long_long=no
21136 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21137 if test $ol_cv_type_long_long = yes; then
21138 cat >> confdefs.h <<\EOF
21139 #define HAVE_LONG_LONG 1
21144 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21145 echo "configure:21146: checking for ANSI C header files" >&5
21146 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21147 echo $ac_n "(cached) $ac_c" 1>&6
21149 cat > conftest.$ac_ext <<EOF
21150 #line 21151 "configure"
21151 #include "confdefs.h"
21152 #include <stdlib.h>
21153 #include <stdarg.h>
21154 #include <string.h>
21157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21158 { (eval echo configure:21159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21160 if test -z "$ac_err"; then
21162 ac_cv_header_stdc=yes
21165 echo "configure: failed program was:" >&5
21166 cat conftest.$ac_ext >&5
21168 ac_cv_header_stdc=no
21172 if test $ac_cv_header_stdc = yes; then
21173 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21174 cat > conftest.$ac_ext <<EOF
21175 #line 21176 "configure"
21176 #include "confdefs.h"
21177 #include <string.h>
21179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21180 egrep "memchr" >/dev/null 2>&1; then
21184 ac_cv_header_stdc=no
21190 if test $ac_cv_header_stdc = yes; then
21191 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21192 cat > conftest.$ac_ext <<EOF
21193 #line 21194 "configure"
21194 #include "confdefs.h"
21195 #include <stdlib.h>
21197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21198 egrep "free" >/dev/null 2>&1; then
21202 ac_cv_header_stdc=no
21208 if test $ac_cv_header_stdc = yes; then
21209 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21210 if test "$cross_compiling" = yes; then
21213 cat > conftest.$ac_ext <<EOF
21214 #line 21215 "configure"
21215 #include "confdefs.h"
21217 #if ((' ' & 0x0FF) == 0x020)
21218 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21219 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21221 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21222 || ('j' <= (c) && (c) <= 'r') \
21223 || ('s' <= (c) && (c) <= 'z'))
21224 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21226 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21227 int main () { int i; for (i = 0; i < 256; i++)
21228 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21232 if { (eval echo configure:21233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21236 echo "configure: failed program was:" >&5
21237 cat conftest.$ac_ext >&5
21239 ac_cv_header_stdc=no
21247 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21248 if test $ac_cv_header_stdc = yes; then
21249 cat >> confdefs.h <<\EOF
21250 #define STDC_HEADERS 1
21255 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21256 echo "configure:21257: checking for mode_t" >&5
21257 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21258 echo $ac_n "(cached) $ac_c" 1>&6
21260 cat > conftest.$ac_ext <<EOF
21261 #line 21262 "configure"
21262 #include "confdefs.h"
21263 #include <sys/types.h>
21265 #include <stdlib.h>
21266 #include <stddef.h>
21270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21271 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21273 eval "ac_cv_type_mode_t=yes"
21276 eval "ac_cv_type_mode_t=no"
21281 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21282 echo "$ac_t""yes" 1>&6
21284 echo "$ac_t""no" 1>&6
21285 cat >> confdefs.h <<EOF
21291 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21292 echo "configure:21293: checking for off_t" >&5
21293 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21294 echo $ac_n "(cached) $ac_c" 1>&6
21296 cat > conftest.$ac_ext <<EOF
21297 #line 21298 "configure"
21298 #include "confdefs.h"
21299 #include <sys/types.h>
21301 #include <stdlib.h>
21302 #include <stddef.h>
21306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21307 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21309 eval "ac_cv_type_off_t=yes"
21312 eval "ac_cv_type_off_t=no"
21317 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21318 echo "$ac_t""yes" 1>&6
21320 echo "$ac_t""no" 1>&6
21321 cat >> confdefs.h <<EOF
21327 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21328 echo "configure:21329: checking for pid_t" >&5
21329 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21330 echo $ac_n "(cached) $ac_c" 1>&6
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21335 #include <sys/types.h>
21337 #include <stdlib.h>
21338 #include <stddef.h>
21342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21343 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21345 eval "ac_cv_type_pid_t=yes"
21348 eval "ac_cv_type_pid_t=no"
21353 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21354 echo "$ac_t""yes" 1>&6
21356 echo "$ac_t""no" 1>&6
21357 cat >> confdefs.h <<EOF
21363 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21364 echo "configure:21365: checking for ptrdiff_t" >&5
21365 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21366 echo $ac_n "(cached) $ac_c" 1>&6
21368 cat > conftest.$ac_ext <<EOF
21369 #line 21370 "configure"
21370 #include "confdefs.h"
21371 #include <stddef.h>
21376 if { (eval echo configure:21377: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21378 am_cv_type_ptrdiff_t=yes
21380 echo "configure: failed program was:" >&5
21381 cat conftest.$ac_ext >&5
21383 am_cv_type_ptrdiff_t=no
21388 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21389 if test $am_cv_type_ptrdiff_t = yes; then
21390 cat >> confdefs.h <<\EOF
21391 #define HAVE_PTRDIFF_T 1
21396 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21397 echo "configure:21398: checking return type of signal handlers" >&5
21398 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21399 echo $ac_n "(cached) $ac_c" 1>&6
21401 cat > conftest.$ac_ext <<EOF
21402 #line 21403 "configure"
21403 #include "confdefs.h"
21404 #include <sys/types.h>
21405 #include <signal.h>
21410 extern "C" void (*signal (int, void (*)(int)))(int);
21412 void (*signal ()) ();
21419 if { (eval echo configure:21420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21421 ac_cv_type_signal=void
21423 echo "configure: failed program was:" >&5
21424 cat conftest.$ac_ext >&5
21426 ac_cv_type_signal=int
21431 echo "$ac_t""$ac_cv_type_signal" 1>&6
21432 cat >> confdefs.h <<EOF
21433 #define RETSIGTYPE $ac_cv_type_signal
21437 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21438 echo "configure:21439: checking for size_t" >&5
21439 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21440 echo $ac_n "(cached) $ac_c" 1>&6
21442 cat > conftest.$ac_ext <<EOF
21443 #line 21444 "configure"
21444 #include "confdefs.h"
21445 #include <sys/types.h>
21447 #include <stdlib.h>
21448 #include <stddef.h>
21452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21453 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21455 eval "ac_cv_type_size_t=yes"
21458 eval "ac_cv_type_size_t=no"
21463 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21464 echo "$ac_t""yes" 1>&6
21466 echo "$ac_t""no" 1>&6
21467 cat >> confdefs.h <<EOF
21468 #define size_t unsigned
21474 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21475 echo "configure:21476: checking for ssize_t" >&5
21476 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21477 echo $ac_n "(cached) $ac_c" 1>&6
21479 cat > conftest.$ac_ext <<EOF
21480 #line 21481 "configure"
21481 #include "confdefs.h"
21482 #include <sys/types.h>
21484 #include <stdlib.h>
21485 #include <stddef.h>
21489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21490 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21492 eval "ac_cv_type_ssize_t=yes"
21495 eval "ac_cv_type_ssize_t=no"
21500 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21501 echo "$ac_t""yes" 1>&6
21503 echo "$ac_t""no" 1>&6
21504 cat >> confdefs.h <<EOF
21505 #define ssize_t signed int
21510 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21511 echo "configure:21512: checking for caddr_t" >&5
21512 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21513 echo $ac_n "(cached) $ac_c" 1>&6
21515 cat > conftest.$ac_ext <<EOF
21516 #line 21517 "configure"
21517 #include "confdefs.h"
21518 #include <sys/types.h>
21520 #include <stdlib.h>
21521 #include <stddef.h>
21525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21526 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21528 eval "ac_cv_type_caddr_t=yes"
21531 eval "ac_cv_type_caddr_t=no"
21536 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21537 echo "$ac_t""yes" 1>&6
21539 echo "$ac_t""no" 1>&6
21540 cat >> confdefs.h <<EOF
21541 #define caddr_t char *
21547 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21548 echo "configure:21549: checking for socklen_t" >&5
21549 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21550 echo $ac_n "(cached) $ac_c" 1>&6
21552 cat > conftest.$ac_ext <<EOF
21553 #line 21554 "configure"
21554 #include "confdefs.h"
21556 #ifdef HAVE_SYS_TYPES_H
21557 #include <sys/types.h>
21559 #ifdef HAVE_SYS_SOCKET_H
21560 #include <sys/socket.h>
21567 if { (eval echo configure:21568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21569 ol_cv_type_socklen_t=yes
21571 echo "configure: failed program was:" >&5
21572 cat conftest.$ac_ext >&5
21574 ol_cv_type_socklen_t=no
21579 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21580 if test $ol_cv_type_socklen_t = no; then
21581 cat >> confdefs.h <<\EOF
21582 #define socklen_t int
21587 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21588 echo "configure:21589: checking for member st_blksize in aggregate type struct stat" >&5
21589 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21590 echo $ac_n "(cached) $ac_c" 1>&6
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21595 #include <sys/types.h>
21596 #include <sys/stat.h>
21598 struct stat foo; foo.st_blksize;
21601 if { (eval echo configure:21602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21603 ac_cv_c_struct_member_st_blksize=yes
21605 echo "configure: failed program was:" >&5
21606 cat conftest.$ac_ext >&5
21608 ac_cv_c_struct_member_st_blksize=no
21613 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21614 st_blksize="$ac_cv_c_struct_member_st_blksize"
21615 if test $ac_cv_c_struct_member_st_blksize = yes; then
21616 cat >> confdefs.h <<\EOF
21617 #define HAVE_ST_BLKSIZE 1
21622 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21623 echo "configure:21624: checking whether time.h and sys/time.h may both be included" >&5
21624 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21625 echo $ac_n "(cached) $ac_c" 1>&6
21627 cat > conftest.$ac_ext <<EOF
21628 #line 21629 "configure"
21629 #include "confdefs.h"
21630 #include <sys/types.h>
21631 #include <sys/time.h>
21637 if { (eval echo configure:21638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21639 ac_cv_header_time=yes
21641 echo "configure: failed program was:" >&5
21642 cat conftest.$ac_ext >&5
21644 ac_cv_header_time=no
21649 echo "$ac_t""$ac_cv_header_time" 1>&6
21650 if test $ac_cv_header_time = yes; then
21651 cat >> confdefs.h <<\EOF
21652 #define TIME_WITH_SYS_TIME 1
21657 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21658 echo "configure:21659: checking whether struct tm is in sys/time.h or time.h" >&5
21659 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21660 echo $ac_n "(cached) $ac_c" 1>&6
21662 cat > conftest.$ac_ext <<EOF
21663 #line 21664 "configure"
21664 #include "confdefs.h"
21665 #include <sys/types.h>
21668 struct tm *tp; tp->tm_sec;
21671 if { (eval echo configure:21672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21673 ac_cv_struct_tm=time.h
21675 echo "configure: failed program was:" >&5
21676 cat conftest.$ac_ext >&5
21678 ac_cv_struct_tm=sys/time.h
21683 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21684 if test $ac_cv_struct_tm = sys/time.h; then
21685 cat >> confdefs.h <<\EOF
21686 #define TM_IN_SYS_TIME 1
21691 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21692 echo "configure:21693: checking for uid_t in sys/types.h" >&5
21693 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21694 echo $ac_n "(cached) $ac_c" 1>&6
21696 cat > conftest.$ac_ext <<EOF
21697 #line 21698 "configure"
21698 #include "confdefs.h"
21699 #include <sys/types.h>
21701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21702 egrep "uid_t" >/dev/null 2>&1; then
21704 ac_cv_type_uid_t=yes
21707 ac_cv_type_uid_t=no
21713 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
21714 if test $ac_cv_type_uid_t = no; then
21715 cat >> confdefs.h <<\EOF
21719 cat >> confdefs.h <<\EOF
21725 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
21726 echo "configure:21727: checking for sig_atomic_t" >&5
21727 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
21728 echo $ac_n "(cached) $ac_c" 1>&6
21730 cat > conftest.$ac_ext <<EOF
21731 #line 21732 "configure"
21732 #include "confdefs.h"
21733 #include <signal.h>
21735 sig_atomic_t atomic;
21738 if { (eval echo configure:21739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21740 ol_cv_type_sig_atomic_t=yes
21742 echo "configure: failed program was:" >&5
21743 cat conftest.$ac_ext >&5
21745 ol_cv_type_sig_atomic_t=no
21750 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
21751 if test $ol_cv_type_sig_atomic_t = no; then
21752 cat >> confdefs.h <<\EOF
21753 #define sig_atomic_t int
21760 # test for pw_gecos in struct passwd
21761 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
21762 echo "configure:21763: checking struct passwd for pw_gecos" >&5
21763 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
21764 echo $ac_n "(cached) $ac_c" 1>&6
21767 cat > conftest.$ac_ext <<EOF
21768 #line 21769 "configure"
21769 #include "confdefs.h"
21774 pwd.pw_gecos = pwd.pw_name;
21778 if { (eval echo configure:21779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21780 ol_cv_struct_passwd_pw_gecos=yes
21782 echo "configure: failed program was:" >&5
21783 cat conftest.$ac_ext >&5
21785 ol_cv_struct_passwd_pw_gecos=no
21790 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
21791 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
21792 cat >> confdefs.h <<\EOF
21793 #define HAVE_PW_GECOS 1
21798 # test for pw_passwd in struct passwd
21799 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
21800 echo "configure:21801: checking struct passwd for pw_passwd" >&5
21801 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
21802 echo $ac_n "(cached) $ac_c" 1>&6
21805 cat > conftest.$ac_ext <<EOF
21806 #line 21807 "configure"
21807 #include "confdefs.h"
21812 pwd.pw_passwd = pwd.pw_name;
21816 if { (eval echo configure:21817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21818 ol_cv_struct_passwd_pw_passwd=yes
21820 echo "configure: failed program was:" >&5
21821 cat conftest.$ac_ext >&5
21823 ol_cv_struct_passwd_pw_passwd=no
21828 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
21829 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
21830 cat >> confdefs.h <<\EOF
21831 #define HAVE_PW_PASSWD 1
21837 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
21838 echo "configure:21839: checking if toupper() requires islower()" >&5
21839 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
21840 echo $ac_n "(cached) $ac_c" 1>&6
21843 if test "$cross_compiling" = yes; then
21844 ol_cv_c_upper_lower=safe
21846 cat > conftest.$ac_ext <<EOF
21847 #line 21848 "configure"
21848 #include "confdefs.h"
21853 if ('C' == toupper('C'))
21859 if { (eval echo configure:21860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21861 ol_cv_c_upper_lower=no
21863 echo "configure: failed program was:" >&5
21864 cat conftest.$ac_ext >&5
21866 ol_cv_c_upper_lower=yes
21873 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
21874 if test $ol_cv_c_upper_lower != no ; then
21875 cat >> confdefs.h <<\EOF
21876 #define C_UPPER_LOWER 1
21881 echo $ac_n "checking for working const""... $ac_c" 1>&6
21882 echo "configure:21883: checking for working const" >&5
21883 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
21884 echo $ac_n "(cached) $ac_c" 1>&6
21886 cat > conftest.$ac_ext <<EOF
21887 #line 21888 "configure"
21888 #include "confdefs.h"
21892 /* Ultrix mips cc rejects this. */
21893 typedef int charset[2]; const charset x;
21894 /* SunOS 4.1.1 cc rejects this. */
21895 char const *const *ccp;
21897 /* NEC SVR4.0.2 mips cc rejects this. */
21898 struct point {int x, y;};
21899 static struct point const zero = {0,0};
21900 /* AIX XL C 1.02.0.0 rejects this.
21901 It does not let you subtract one const X* pointer from another in an arm
21902 of an if-expression whose if-part is not a constant expression */
21903 const char *g = "string";
21904 ccp = &g + (g ? g-g : 0);
21905 /* HPUX 7.0 cc rejects these. */
21908 ccp = (char const *const *) p;
21909 { /* SCO 3.2v4 cc rejects this. */
21911 char const *s = 0 ? (char *) 0 : (char const *) 0;
21915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21916 int x[] = {25, 17};
21917 const int *foo = &x[0];
21920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21921 typedef const int *iptr;
21925 { /* AIX XL C 1.02.0.0 rejects this saying
21926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21927 struct s { int j; const int *ap[3]; };
21928 struct s *b; b->j = 5;
21930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21931 const int foo = 10;
21936 if { (eval echo configure:21937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21940 echo "configure: failed program was:" >&5
21941 cat conftest.$ac_ext >&5
21948 echo "$ac_t""$ac_cv_c_const" 1>&6
21949 if test $ac_cv_c_const = no; then
21950 cat >> confdefs.h <<\EOF
21956 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
21957 echo "configure:21958: checking if compiler understands volatile" >&5
21958 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
21959 echo $ac_n "(cached) $ac_c" 1>&6
21961 cat > conftest.$ac_ext <<EOF
21962 #line 21963 "configure"
21963 #include "confdefs.h"
21966 volatile int a; int * volatile b = x ? &y : &z;
21967 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
21971 if { (eval echo configure:21972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21973 ol_cv_c_volatile=yes
21975 echo "configure: failed program was:" >&5
21976 cat conftest.$ac_ext >&5
21978 ol_cv_c_volatile=no
21983 echo "$ac_t""$ol_cv_c_volatile" 1>&6
21984 if test $ol_cv_c_volatile = yes; then
21987 cat >> confdefs.h <<\EOF
21994 if test $cross_compiling = yes ; then
21995 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
21996 cat >> confdefs.h <<\EOF
21997 #define CROSS_COMPILING 1
22001 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22002 echo "configure:22003: checking whether byte ordering is bigendian" >&5
22003 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22004 echo $ac_n "(cached) $ac_c" 1>&6
22006 ac_cv_c_bigendian=unknown
22007 # See if sys/param.h defines the BYTE_ORDER macro.
22008 cat > conftest.$ac_ext <<EOF
22009 #line 22010 "configure"
22010 #include "confdefs.h"
22011 #include <sys/types.h>
22012 #include <sys/param.h>
22015 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22016 bogus endian macros
22020 if { (eval echo configure:22021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22022 # It does; now see whether it defined to BIG_ENDIAN or not.
22023 cat > conftest.$ac_ext <<EOF
22024 #line 22025 "configure"
22025 #include "confdefs.h"
22026 #include <sys/types.h>
22027 #include <sys/param.h>
22030 #if BYTE_ORDER != BIG_ENDIAN
22035 if { (eval echo configure:22036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22037 ac_cv_c_bigendian=yes
22039 echo "configure: failed program was:" >&5
22040 cat conftest.$ac_ext >&5
22042 ac_cv_c_bigendian=no
22046 echo "configure: failed program was:" >&5
22047 cat conftest.$ac_ext >&5
22050 if test $ac_cv_c_bigendian = unknown; then
22051 if test "$cross_compiling" = yes; then
22052 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22054 cat > conftest.$ac_ext <<EOF
22055 #line 22056 "configure"
22056 #include "confdefs.h"
22058 /* Are we little or big endian? From Harbison&Steele. */
22062 char c[sizeof (long)];
22065 exit (u.c[sizeof (long) - 1] == 1);
22068 if { (eval echo configure:22069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22070 ac_cv_c_bigendian=no
22072 echo "configure: failed program was:" >&5
22073 cat conftest.$ac_ext >&5
22075 ac_cv_c_bigendian=yes
22083 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22084 if test $ac_cv_c_bigendian = yes; then
22085 cat >> confdefs.h <<\EOF
22086 #define WORDS_BIGENDIAN 1
22093 echo $ac_n "checking size of short""... $ac_c" 1>&6
22094 echo "configure:22095: checking size of short" >&5
22095 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22096 echo $ac_n "(cached) $ac_c" 1>&6
22098 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22099 cat > conftest.$ac_ext <<EOF
22100 #line 22101 "configure"
22101 #include "confdefs.h"
22102 #include "confdefs.h"
22103 #include <stdlib.h>
22104 #include <sys/types.h>
22108 switch (0) case 0: case (sizeof (short) == $ac_size):;
22111 if { (eval echo configure:22112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22113 ac_cv_sizeof_short=$ac_size
22115 echo "configure: failed program was:" >&5
22116 cat conftest.$ac_ext >&5
22119 if test x$ac_cv_sizeof_short != x ; then break; fi
22124 if test x$ac_cv_sizeof_short = x ; then
22125 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22127 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22128 cat >> confdefs.h <<EOF
22129 #define SIZEOF_SHORT $ac_cv_sizeof_short
22133 echo $ac_n "checking size of int""... $ac_c" 1>&6
22134 echo "configure:22135: checking size of int" >&5
22135 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22136 echo $ac_n "(cached) $ac_c" 1>&6
22138 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22139 cat > conftest.$ac_ext <<EOF
22140 #line 22141 "configure"
22141 #include "confdefs.h"
22142 #include "confdefs.h"
22143 #include <stdlib.h>
22144 #include <sys/types.h>
22148 switch (0) case 0: case (sizeof (int) == $ac_size):;
22151 if { (eval echo configure:22152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22153 ac_cv_sizeof_int=$ac_size
22155 echo "configure: failed program was:" >&5
22156 cat conftest.$ac_ext >&5
22159 if test x$ac_cv_sizeof_int != x ; then break; fi
22164 if test x$ac_cv_sizeof_int = x ; then
22165 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22167 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22168 cat >> confdefs.h <<EOF
22169 #define SIZEOF_INT $ac_cv_sizeof_int
22173 echo $ac_n "checking size of long""... $ac_c" 1>&6
22174 echo "configure:22175: checking size of long" >&5
22175 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22176 echo $ac_n "(cached) $ac_c" 1>&6
22178 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22179 cat > conftest.$ac_ext <<EOF
22180 #line 22181 "configure"
22181 #include "confdefs.h"
22182 #include "confdefs.h"
22183 #include <stdlib.h>
22184 #include <sys/types.h>
22188 switch (0) case 0: case (sizeof (long) == $ac_size):;
22191 if { (eval echo configure:22192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22193 ac_cv_sizeof_long=$ac_size
22195 echo "configure: failed program was:" >&5
22196 cat conftest.$ac_ext >&5
22199 if test x$ac_cv_sizeof_long != x ; then break; fi
22204 if test x$ac_cv_sizeof_long = x ; then
22205 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22207 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22208 cat >> confdefs.h <<EOF
22209 #define SIZEOF_LONG $ac_cv_sizeof_long
22213 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
22214 echo "configure:22215: checking size of wchar_t" >&5
22215 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
22216 echo $ac_n "(cached) $ac_c" 1>&6
22218 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22219 cat > conftest.$ac_ext <<EOF
22220 #line 22221 "configure"
22221 #include "confdefs.h"
22222 #include "confdefs.h"
22223 #include <stdlib.h>
22224 #include <sys/types.h>
22228 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
22231 if { (eval echo configure:22232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22233 ac_cv_sizeof_wchar_t=$ac_size
22235 echo "configure: failed program was:" >&5
22236 cat conftest.$ac_ext >&5
22239 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
22244 if test x$ac_cv_sizeof_wchar_t = x ; then
22245 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
22247 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
22248 cat >> confdefs.h <<EOF
22249 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
22254 if test "$ac_cv_sizeof_int" -lt 4 ; then
22255 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22257 cat >> confdefs.h <<\EOF
22258 #define LBER_INT_T long
22262 cat >> confdefs.h <<\EOF
22263 #define LBER_INT_T int
22268 cat >> confdefs.h <<\EOF
22269 #define LBER_LEN_T long
22272 cat >> confdefs.h <<\EOF
22273 #define LBER_SOCKET_T int
22276 cat >> confdefs.h <<\EOF
22277 #define LBER_TAG_T long
22281 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22282 echo "configure:22283: checking for 8-bit clean memcmp" >&5
22283 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22284 echo $ac_n "(cached) $ac_c" 1>&6
22286 if test "$cross_compiling" = yes; then
22287 ac_cv_func_memcmp_clean=no
22289 cat > conftest.$ac_ext <<EOF
22290 #line 22291 "configure"
22291 #include "confdefs.h"
22295 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22296 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22300 if { (eval echo configure:22301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22302 ac_cv_func_memcmp_clean=yes
22304 echo "configure: failed program was:" >&5
22305 cat conftest.$ac_ext >&5
22307 ac_cv_func_memcmp_clean=no
22314 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22315 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22317 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22318 echo "configure:22319: checking for strftime" >&5
22319 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22320 echo $ac_n "(cached) $ac_c" 1>&6
22322 cat > conftest.$ac_ext <<EOF
22323 #line 22324 "configure"
22324 #include "confdefs.h"
22325 /* System header to define __stub macros and hopefully few prototypes,
22326 which can conflict with char strftime(); below. */
22327 #include <assert.h>
22328 /* Override any gcc2 internal prototype to avoid an error. */
22329 /* We use char because int might match the return type of a gcc2
22330 builtin and then its argument prototype would still apply. */
22336 /* The GNU C library defines this for functions which it implements
22337 to always fail with ENOSYS. Some functions are actually named
22338 something starting with __ and the normal name is an alias. */
22339 #if defined (__stub_strftime) || defined (__stub___strftime)
22347 if { (eval echo configure:22348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22349 eval "ac_cv_func_strftime=yes"
22351 echo "configure: failed program was:" >&5
22352 cat conftest.$ac_ext >&5
22354 eval "ac_cv_func_strftime=no"
22359 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22360 echo "$ac_t""yes" 1>&6
22361 cat >> confdefs.h <<\EOF
22362 #define HAVE_STRFTIME 1
22366 echo "$ac_t""no" 1>&6
22367 # strftime is in -lintl on SCO UNIX.
22368 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22369 echo "configure:22370: checking for strftime in -lintl" >&5
22370 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22371 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22372 echo $ac_n "(cached) $ac_c" 1>&6
22374 ac_save_LIBS="$LIBS"
22375 LIBS="-lintl $LIBS"
22376 cat > conftest.$ac_ext <<EOF
22377 #line 22378 "configure"
22378 #include "confdefs.h"
22379 /* Override any gcc2 internal prototype to avoid an error. */
22380 /* We use char because int might match the return type of a gcc2
22381 builtin and then its argument prototype would still apply. */
22388 if { (eval echo configure:22389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22390 eval "ac_cv_lib_$ac_lib_var=yes"
22392 echo "configure: failed program was:" >&5
22393 cat conftest.$ac_ext >&5
22395 eval "ac_cv_lib_$ac_lib_var=no"
22398 LIBS="$ac_save_LIBS"
22401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22402 echo "$ac_t""yes" 1>&6
22403 cat >> confdefs.h <<\EOF
22404 #define HAVE_STRFTIME 1
22407 LIBS="-lintl $LIBS"
22409 echo "$ac_t""no" 1>&6
22415 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22416 echo "configure:22417: checking for inet_aton()" >&5
22417 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22418 echo $ac_n "(cached) $ac_c" 1>&6
22420 cat > conftest.$ac_ext <<EOF
22421 #line 22422 "configure"
22422 #include "confdefs.h"
22424 #ifdef HAVE_SYS_TYPES_H
22425 # include <sys/types.h>
22427 #ifdef HAVE_SYS_SOCKET_H
22428 # include <sys/socket.h>
22429 # ifdef HAVE_SYS_SELECT_H
22430 # include <sys/select.h>
22432 # include <netinet/in.h>
22433 # ifdef HAVE_ARPA_INET_H
22434 # include <arpa/inet.h>
22440 int rc = inet_aton( "255.255.255.255", &in );
22443 if { (eval echo configure:22444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22445 ol_cv_func_inet_aton=yes
22447 echo "configure: failed program was:" >&5
22448 cat conftest.$ac_ext >&5
22450 ol_cv_func_inet_aton=no
22455 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22456 if test $ol_cv_func_inet_aton != no; then
22457 cat >> confdefs.h <<\EOF
22458 #define HAVE_INET_ATON 1
22464 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22465 echo "configure:22466: checking for _spawnlp" >&5
22466 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22467 echo $ac_n "(cached) $ac_c" 1>&6
22469 cat > conftest.$ac_ext <<EOF
22470 #line 22471 "configure"
22471 #include "confdefs.h"
22472 /* System header to define __stub macros and hopefully few prototypes,
22473 which can conflict with char _spawnlp(); below. */
22474 #include <assert.h>
22475 /* Override any gcc2 internal prototype to avoid an error. */
22476 /* We use char because int might match the return type of a gcc2
22477 builtin and then its argument prototype would still apply. */
22483 /* The GNU C library defines this for functions which it implements
22484 to always fail with ENOSYS. Some functions are actually named
22485 something starting with __ and the normal name is an alias. */
22486 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22494 if { (eval echo configure:22495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22496 eval "ac_cv_func__spawnlp=yes"
22498 echo "configure: failed program was:" >&5
22499 cat conftest.$ac_ext >&5
22501 eval "ac_cv_func__spawnlp=no"
22506 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22507 echo "$ac_t""yes" 1>&6
22508 cat >> confdefs.h <<\EOF
22509 #define HAVE_SPAWNLP 1
22513 echo "$ac_t""no" 1>&6
22517 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22518 echo "configure:22519: checking for _snprintf" >&5
22519 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22520 echo $ac_n "(cached) $ac_c" 1>&6
22522 cat > conftest.$ac_ext <<EOF
22523 #line 22524 "configure"
22524 #include "confdefs.h"
22525 /* System header to define __stub macros and hopefully few prototypes,
22526 which can conflict with char _snprintf(); below. */
22527 #include <assert.h>
22528 /* Override any gcc2 internal prototype to avoid an error. */
22529 /* We use char because int might match the return type of a gcc2
22530 builtin and then its argument prototype would still apply. */
22536 /* The GNU C library defines this for functions which it implements
22537 to always fail with ENOSYS. Some functions are actually named
22538 something starting with __ and the normal name is an alias. */
22539 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22547 if { (eval echo configure:22548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22549 eval "ac_cv_func__snprintf=yes"
22551 echo "configure: failed program was:" >&5
22552 cat conftest.$ac_ext >&5
22554 eval "ac_cv_func__snprintf=no"
22559 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22560 echo "$ac_t""yes" 1>&6
22561 ac_cv_func_snprintf=yes
22562 cat >> confdefs.h <<\EOF
22563 #define snprintf _snprintf
22568 echo "$ac_t""no" 1>&6
22572 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22573 echo "configure:22574: checking for _vsnprintf" >&5
22574 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22575 echo $ac_n "(cached) $ac_c" 1>&6
22577 cat > conftest.$ac_ext <<EOF
22578 #line 22579 "configure"
22579 #include "confdefs.h"
22580 /* System header to define __stub macros and hopefully few prototypes,
22581 which can conflict with char _vsnprintf(); below. */
22582 #include <assert.h>
22583 /* Override any gcc2 internal prototype to avoid an error. */
22584 /* We use char because int might match the return type of a gcc2
22585 builtin and then its argument prototype would still apply. */
22591 /* The GNU C library defines this for functions which it implements
22592 to always fail with ENOSYS. Some functions are actually named
22593 something starting with __ and the normal name is an alias. */
22594 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22602 if { (eval echo configure:22603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22604 eval "ac_cv_func__vsnprintf=yes"
22606 echo "configure: failed program was:" >&5
22607 cat conftest.$ac_ext >&5
22609 eval "ac_cv_func__vsnprintf=no"
22614 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22615 echo "$ac_t""yes" 1>&6
22616 ac_cv_func_vsnprintf=yes
22617 cat >> confdefs.h <<\EOF
22618 #define vsnprintf _vsnprintf
22623 echo "$ac_t""no" 1>&6
22627 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22628 echo "configure:22629: checking for vprintf" >&5
22629 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22630 echo $ac_n "(cached) $ac_c" 1>&6
22632 cat > conftest.$ac_ext <<EOF
22633 #line 22634 "configure"
22634 #include "confdefs.h"
22635 /* System header to define __stub macros and hopefully few prototypes,
22636 which can conflict with char vprintf(); below. */
22637 #include <assert.h>
22638 /* Override any gcc2 internal prototype to avoid an error. */
22639 /* We use char because int might match the return type of a gcc2
22640 builtin and then its argument prototype would still apply. */
22646 /* The GNU C library defines this for functions which it implements
22647 to always fail with ENOSYS. Some functions are actually named
22648 something starting with __ and the normal name is an alias. */
22649 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22657 if { (eval echo configure:22658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22659 eval "ac_cv_func_vprintf=yes"
22661 echo "configure: failed program was:" >&5
22662 cat conftest.$ac_ext >&5
22664 eval "ac_cv_func_vprintf=no"
22669 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22670 echo "$ac_t""yes" 1>&6
22671 cat >> confdefs.h <<\EOF
22672 #define HAVE_VPRINTF 1
22676 echo "$ac_t""no" 1>&6
22679 if test "$ac_cv_func_vprintf" != yes; then
22680 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22681 echo "configure:22682: checking for _doprnt" >&5
22682 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22683 echo $ac_n "(cached) $ac_c" 1>&6
22685 cat > conftest.$ac_ext <<EOF
22686 #line 22687 "configure"
22687 #include "confdefs.h"
22688 /* System header to define __stub macros and hopefully few prototypes,
22689 which can conflict with char _doprnt(); below. */
22690 #include <assert.h>
22691 /* Override any gcc2 internal prototype to avoid an error. */
22692 /* We use char because int might match the return type of a gcc2
22693 builtin and then its argument prototype would still apply. */
22699 /* The GNU C library defines this for functions which it implements
22700 to always fail with ENOSYS. Some functions are actually named
22701 something starting with __ and the normal name is an alias. */
22702 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22710 if { (eval echo configure:22711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22712 eval "ac_cv_func__doprnt=yes"
22714 echo "configure: failed program was:" >&5
22715 cat conftest.$ac_ext >&5
22717 eval "ac_cv_func__doprnt=no"
22722 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22723 echo "$ac_t""yes" 1>&6
22724 cat >> confdefs.h <<\EOF
22725 #define HAVE_DOPRNT 1
22729 echo "$ac_t""no" 1>&6
22735 if test $ac_cv_func_vprintf = yes ; then
22736 for ac_func in snprintf vsnprintf
22738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22739 echo "configure:22740: checking for $ac_func" >&5
22740 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22741 echo $ac_n "(cached) $ac_c" 1>&6
22743 cat > conftest.$ac_ext <<EOF
22744 #line 22745 "configure"
22745 #include "confdefs.h"
22746 /* System header to define __stub macros and hopefully few prototypes,
22747 which can conflict with char $ac_func(); below. */
22748 #include <assert.h>
22749 /* Override any gcc2 internal prototype to avoid an error. */
22750 /* We use char because int might match the return type of a gcc2
22751 builtin and then its argument prototype would still apply. */
22757 /* The GNU C library defines this for functions which it implements
22758 to always fail with ENOSYS. Some functions are actually named
22759 something starting with __ and the normal name is an alias. */
22760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22768 if { (eval echo configure:22769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22770 eval "ac_cv_func_$ac_func=yes"
22772 echo "configure: failed program was:" >&5
22773 cat conftest.$ac_ext >&5
22775 eval "ac_cv_func_$ac_func=no"
22780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22781 echo "$ac_t""yes" 1>&6
22782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22783 cat >> confdefs.h <<EOF
22784 #define $ac_tr_func 1
22788 echo "$ac_t""no" 1>&6
22853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22854 echo "configure:22855: checking for $ac_func" >&5
22855 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22856 echo $ac_n "(cached) $ac_c" 1>&6
22858 cat > conftest.$ac_ext <<EOF
22859 #line 22860 "configure"
22860 #include "confdefs.h"
22861 /* System header to define __stub macros and hopefully few prototypes,
22862 which can conflict with char $ac_func(); below. */
22863 #include <assert.h>
22864 /* Override any gcc2 internal prototype to avoid an error. */
22865 /* We use char because int might match the return type of a gcc2
22866 builtin and then its argument prototype would still apply. */
22872 /* The GNU C library defines this for functions which it implements
22873 to always fail with ENOSYS. Some functions are actually named
22874 something starting with __ and the normal name is an alias. */
22875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22883 if { (eval echo configure:22884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22885 eval "ac_cv_func_$ac_func=yes"
22887 echo "configure: failed program was:" >&5
22888 cat conftest.$ac_ext >&5
22890 eval "ac_cv_func_$ac_func=no"
22895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22896 echo "$ac_t""yes" 1>&6
22897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22898 cat >> confdefs.h <<EOF
22899 #define $ac_tr_func 1
22903 echo "$ac_t""no" 1>&6
22908 for ac_func in getopt getpeereid
22910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22911 echo "configure:22912: checking for $ac_func" >&5
22912 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22913 echo $ac_n "(cached) $ac_c" 1>&6
22915 cat > conftest.$ac_ext <<EOF
22916 #line 22917 "configure"
22917 #include "confdefs.h"
22918 /* System header to define __stub macros and hopefully few prototypes,
22919 which can conflict with char $ac_func(); below. */
22920 #include <assert.h>
22921 /* Override any gcc2 internal prototype to avoid an error. */
22922 /* We use char because int might match the return type of a gcc2
22923 builtin and then its argument prototype would still apply. */
22929 /* The GNU C library defines this for functions which it implements
22930 to always fail with ENOSYS. Some functions are actually named
22931 something starting with __ and the normal name is an alias. */
22932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22940 if { (eval echo configure:22941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22942 eval "ac_cv_func_$ac_func=yes"
22944 echo "configure: failed program was:" >&5
22945 cat conftest.$ac_ext >&5
22947 eval "ac_cv_func_$ac_func=no"
22952 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
22953 echo "$ac_t""yes" 1>&6
22954 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22955 cat >> confdefs.h <<EOF
22956 #define $ac_tr_func 1
22960 echo "$ac_t""no" 1>&6
22961 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
22967 if test "$ac_cv_func_getopt" != yes; then
22968 LIBSRCS="$LIBSRCS getopt.c"
22970 if test "$ac_cv_func_getpeereid" != yes; then
22971 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
22972 echo "configure:22973: checking for msg_accrights in msghdr" >&5
22973 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
22974 echo $ac_n "(cached) $ac_c" 1>&6
22976 cat > conftest.$ac_ext <<EOF
22977 #line 22978 "configure"
22978 #include "confdefs.h"
22979 #include <sys/socket.h>
22981 struct msghdr m; m.msg_accrightslen=0
22984 if { (eval echo configure:22985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22986 ol_cv_msghdr_msg_accrights=yes
22988 echo "configure: failed program was:" >&5
22989 cat conftest.$ac_ext >&5
22991 ol_cv_msghdr_msg_accrights=no
22997 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
22998 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
22999 cat >> confdefs.h <<\EOF
23000 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23005 LIBSRCS="$LIBSRCS getpeereid.c"
23007 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23008 if test "$ac_cv_func_snprintf" != yes; then
23009 cat >> confdefs.h <<\EOF
23010 #define snprintf ber_pvt_snprintf
23014 if test "$ac_cv_func_vsnprintf" != yes; then
23015 cat >> confdefs.h <<\EOF
23016 #define vsnprintf ber_pvt_vsnprintf
23022 # Check Configuration
23023 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23024 echo "configure:23025: checking declaration of sys_errlist" >&5
23025 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23026 echo $ac_n "(cached) $ac_c" 1>&6
23029 cat > conftest.$ac_ext <<EOF
23030 #line 23031 "configure"
23031 #include "confdefs.h"
23034 #include <sys/types.h>
23037 #include <stdlib.h>
23040 char *c = (char *) *sys_errlist
23043 if { (eval echo configure:23044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23045 ol_cv_dcl_sys_errlist=yes
23046 ol_cv_have_sys_errlist=yes
23048 echo "configure: failed program was:" >&5
23049 cat conftest.$ac_ext >&5
23051 ol_cv_dcl_sys_errlist=no
23056 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23058 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23059 if test $ol_cv_dcl_sys_errlist = no ; then
23060 cat >> confdefs.h <<\EOF
23061 #define DECL_SYS_ERRLIST 1
23065 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23066 echo "configure:23067: checking existence of sys_errlist" >&5
23067 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23068 echo $ac_n "(cached) $ac_c" 1>&6
23071 cat > conftest.$ac_ext <<EOF
23072 #line 23073 "configure"
23073 #include "confdefs.h"
23076 char *c = (char *) *sys_errlist
23079 if { (eval echo configure:23080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23081 ol_cv_have_sys_errlist=yes
23083 echo "configure: failed program was:" >&5
23084 cat conftest.$ac_ext >&5
23086 ol_cv_have_sys_errlist=no
23091 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23093 if test $ol_cv_have_sys_errlist = yes ; then
23094 cat >> confdefs.h <<\EOF
23095 #define HAVE_SYS_ERRLIST 1
23102 if test "$ol_enable_slapi" != no ; then
23103 for ac_hdr in ltdl.h
23105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23107 echo "configure:23108: checking for $ac_hdr" >&5
23108 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23109 echo $ac_n "(cached) $ac_c" 1>&6
23111 cat > conftest.$ac_ext <<EOF
23112 #line 23113 "configure"
23113 #include "confdefs.h"
23116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23117 { (eval echo configure:23118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23119 if test -z "$ac_err"; then
23121 eval "ac_cv_header_$ac_safe=yes"
23124 echo "configure: failed program was:" >&5
23125 cat conftest.$ac_ext >&5
23127 eval "ac_cv_header_$ac_safe=no"
23131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23132 echo "$ac_t""yes" 1>&6
23133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23134 cat >> confdefs.h <<EOF
23135 #define $ac_tr_hdr 1
23139 echo "$ac_t""no" 1>&6
23144 if test $ac_cv_header_ltdl_h != yes ; then
23145 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23147 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23148 echo "configure:23149: checking for lt_dlinit in -lltdl" >&5
23149 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23150 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23151 echo $ac_n "(cached) $ac_c" 1>&6
23153 ac_save_LIBS="$LIBS"
23154 LIBS="-lltdl $LIBS"
23155 cat > conftest.$ac_ext <<EOF
23156 #line 23157 "configure"
23157 #include "confdefs.h"
23158 /* Override any gcc2 internal prototype to avoid an error. */
23159 /* We use char because int might match the return type of a gcc2
23160 builtin and then its argument prototype would still apply. */
23167 if { (eval echo configure:23168: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23169 eval "ac_cv_lib_$ac_lib_var=yes"
23171 echo "configure: failed program was:" >&5
23172 cat conftest.$ac_ext >&5
23174 eval "ac_cv_lib_$ac_lib_var=no"
23177 LIBS="$ac_save_LIBS"
23180 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23181 echo "$ac_t""yes" 1>&6
23184 LIBSLAPI=libslapi.a
23185 LIBSLAPITOOLS=../libslapi.a
23186 cat >> confdefs.h <<\EOF
23187 #define HAVE_LIBLTDL 1
23192 echo "$ac_t""no" 1>&6
23193 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23197 cat >> confdefs.h <<\EOF
23198 #define LDAP_SLAPI 1
23203 if test "$ol_enable_debug" != no ; then
23204 cat >> confdefs.h <<\EOF
23205 #define LDAP_DEBUG 1
23209 if test "$ol_enable_syslog" = yes ; then
23210 cat >> confdefs.h <<\EOF
23211 #define LDAP_SYSLOG 1
23215 if test "$ol_link_kbind" != no ; then
23216 cat >> confdefs.h <<\EOF
23217 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23221 if test "$ol_enable_proctitle" != no ; then
23222 cat >> confdefs.h <<\EOF
23223 #define LDAP_PROCTITLE 1
23227 if test "$ol_enable_referrals" != no ; then
23228 cat >> confdefs.h <<\EOF
23229 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23233 if test "$ol_enable_local" != no; then
23234 cat >> confdefs.h <<\EOF
23235 #define LDAP_PF_LOCAL 1
23239 if test "$ol_link_ipv6" != no; then
23240 cat >> confdefs.h <<\EOF
23241 #define LDAP_PF_INET6 1
23245 if test "$ol_enable_cleartext" != no ; then
23246 cat >> confdefs.h <<\EOF
23247 #define SLAPD_CLEARTEXT 1
23251 if test "$ol_enable_crypt" != no ; then
23252 cat >> confdefs.h <<\EOF
23253 #define SLAPD_CRYPT 1
23257 if test "$ol_link_spasswd" != no ; then
23258 cat >> confdefs.h <<\EOF
23259 #define SLAPD_SPASSWD 1
23263 if test "$ol_enable_multimaster" != no ; then
23264 cat >> confdefs.h <<\EOF
23265 #define SLAPD_MULTIMASTER 1
23269 if test "$ol_enable_rlookups" != no ; then
23270 cat >> confdefs.h <<\EOF
23271 #define SLAPD_RLOOKUPS 1
23275 if test "$ol_enable_aci" != no ; then
23276 cat >> confdefs.h <<\EOF
23277 #define SLAPD_ACI_ENABLED 1
23282 if test "$ol_link_modules" != no ; then
23283 cat >> confdefs.h <<\EOF
23284 #define SLAPD_MODULES 1
23288 SLAPD_MODULES_LDFLAGS="-dlopen self"
23291 cat >> confdefs.h <<\EOF
23292 #define SLAPD_MOD_STATIC 1
23295 cat >> confdefs.h <<\EOF
23296 #define SLAPD_MOD_DYNAMIC 2
23300 if test "$ol_enable_bdb" != no ; then
23302 BUILD_BDB=$ol_enable_bdb
23303 if test "$ol_enable_bdb" = mod ; then
23304 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23305 MFLAG=SLAPD_MOD_DYNAMIC
23307 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23308 MFLAG=SLAPD_MOD_STATIC
23310 cat >> confdefs.h <<EOF
23311 #define SLAPD_BDB $MFLAG
23316 if test "$ol_enable_dnssrv" != no ; then
23318 BUILD_DNSSRV=$ol_enable_dnssrv
23319 if test "$ol_enable_dnssrv" = mod ; then
23320 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23321 MFLAG=SLAPD_MOD_DYNAMIC
23323 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23324 MFLAG=SLAPD_MOD_STATIC
23326 cat >> confdefs.h <<EOF
23327 #define SLAPD_DNSSRV $MFLAG
23332 if test "$ol_enable_hdb" != no ; then
23334 BUILD_HDB=$ol_enable_hdb
23335 if test "$ol_enable_hdb" = mod ; then
23336 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23337 MFLAG=SLAPD_MOD_DYNAMIC
23339 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23340 MFLAG=SLAPD_MOD_STATIC
23342 cat >> confdefs.h <<EOF
23343 #define SLAPD_HDB $MFLAG
23348 if test "$ol_enable_ldap" != no ; then
23350 BUILD_LDAP=$ol_enable_ldap
23351 if test "$ol_enable_ldap" = mod ; then
23352 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23353 MFLAG=SLAPD_MOD_DYNAMIC
23355 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23356 MFLAG=SLAPD_MOD_STATIC
23358 cat >> confdefs.h <<EOF
23359 #define SLAPD_LDAP $MFLAG
23364 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23366 BUILD_LDBM=$ol_enable_ldbm
23367 if test "$ol_enable_ldbm" = mod ; then
23368 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23369 MFLAG=SLAPD_MOD_DYNAMIC
23371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23372 MFLAG=SLAPD_MOD_STATIC
23374 cat >> confdefs.h <<EOF
23375 #define SLAPD_LDBM $MFLAG
23380 if test "$ol_enable_meta" != no ; then
23382 BUILD_META=$ol_enable_meta
23384 if test "$ol_enable_meta" = mod ; then
23385 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23386 MFLAG=SLAPD_MOD_DYNAMIC
23388 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23389 MFLAG=SLAPD_MOD_STATIC
23391 cat >> confdefs.h <<EOF
23392 #define SLAPD_META $MFLAG
23397 if test "$ol_enable_monitor" != no ; then
23399 BUILD_MONITOR=$ol_enable_monitor
23400 if test "$ol_enable_monitor" = mod ; then
23401 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23402 MFLAG=SLAPD_MOD_DYNAMIC
23404 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23405 MFLAG=SLAPD_MOD_STATIC
23407 cat >> confdefs.h <<EOF
23408 #define SLAPD_MONITOR $MFLAG
23413 if test "$ol_enable_null" != no ; then
23415 BUILD_NULL=$ol_enable_null
23416 if test "$ol_enable_null" = mod ; then
23417 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23418 MFLAG=SLAPD_MOD_DYNAMIC
23420 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23421 MFLAG=SLAPD_MOD_STATIC
23423 cat >> confdefs.h <<EOF
23424 #define SLAPD_NULL $MFLAG
23429 if test "$ol_enable_passwd" != no ; then
23431 BUILD_PASSWD=$ol_enable_passwd
23432 if test "$ol_enable_passwd" = mod ; then
23433 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23434 MFLAG=SLAPD_MOD_DYNAMIC
23436 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23437 MFLAG=SLAPD_MOD_STATIC
23439 cat >> confdefs.h <<EOF
23440 #define SLAPD_PASSWD $MFLAG
23445 if test "$ol_link_perl" != no ; then
23447 BUILD_PERL=$ol_enable_perl
23448 if test "$ol_enable_perl" = mod ; then
23449 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23450 MFLAG=SLAPD_MOD_DYNAMIC
23452 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23453 MFLAG=SLAPD_MOD_STATIC
23455 cat >> confdefs.h <<EOF
23456 #define SLAPD_PERL $MFLAG
23461 if test "$ol_enable_relay" != no ; then
23463 BUILD_RELAY=$ol_enable_relay
23464 if test "$ol_enable_relay" = mod ; then
23465 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23466 MFLAG=SLAPD_MOD_DYNAMIC
23468 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23469 MFLAG=SLAPD_MOD_STATIC
23471 cat >> confdefs.h <<EOF
23472 #define SLAPD_RELAY $MFLAG
23477 if test "$ol_enable_shell" != no ; then
23478 if test "$ol_link_thread" != no ; then
23479 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23482 BUILD_SHELL=$ol_enable_shell
23483 if test "$ol_enable_shell" = mod ; then
23484 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23485 MFLAG=SLAPD_MOD_DYNAMIC
23487 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23488 MFLAG=SLAPD_MOD_STATIC
23490 cat >> confdefs.h <<EOF
23491 #define SLAPD_SHELL $MFLAG
23496 if test "$ol_link_sql" != no ; then
23498 BUILD_SQL=$ol_enable_sql
23499 if test "$ol_enable_sql" = mod; then
23500 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23501 MFLAG=SLAPD_MOD_DYNAMIC
23503 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23504 MFLAG=SLAPD_MOD_STATIC
23506 cat >> confdefs.h <<EOF
23507 #define SLAPD_SQL $MFLAG
23512 if test "$ol_enable_chain" != no ; then
23513 BUILD_CHAIN=$ol_enable_chain
23514 if test "$ol_enable_chain" = mod ; then
23515 MFLAG=SLAPD_MOD_DYNAMIC
23516 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
23518 MFLAG=SLAPD_MOD_STATIC
23520 cat >> confdefs.h <<EOF
23521 #define SLAPD_OVER_CHAIN $MFLAG
23526 if test "$ol_enable_denyop" != no ; then
23527 BUILD_DENYOP=$ol_enable_denyop
23528 if test "$ol_enable_denyop" = mod ; then
23529 MFLAG=SLAPD_MOD_DYNAMIC
23530 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
23532 MFLAG=SLAPD_MOD_STATIC
23534 cat >> confdefs.h <<EOF
23535 #define SLAPD_OVER_DENYOP $MFLAG
23540 if test "$ol_enable_dyngroup" != no ; then
23541 BUILD_DYNGROUP=$ol_enable_dyngroup
23542 if test "$ol_enable_dyngroup" = mod ; then
23543 MFLAG=SLAPD_MOD_DYNAMIC
23544 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23546 MFLAG=SLAPD_MOD_STATIC
23548 cat >> confdefs.h <<EOF
23549 #define SLAPD_OVER_DYNGROUP $MFLAG
23554 if test "$ol_enable_lastmod" != no ; then
23555 BUILD_LASTMOD=$ol_enable_lastmod
23556 if test "$ol_enable_lastmod" = mod ; then
23557 MFLAG=SLAPD_MOD_DYNAMIC
23558 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
23560 MFLAG=SLAPD_MOD_STATIC
23562 cat >> confdefs.h <<EOF
23563 #define SLAPD_OVER_LASTMOD $MFLAG
23568 if test "$ol_enable_ppolicy" != no ; then
23569 BUILD_PPOLICY=$ol_enable_ppolicy
23570 if test "$ol_enable_ppolicy" = mod ; then
23571 MFLAG=SLAPD_MOD_DYNAMIC
23572 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
23574 MFLAG=SLAPD_MOD_STATIC
23576 cat >> confdefs.h <<EOF
23577 #define SLAPD_OVER_PPOLICY $MFLAG
23582 if test "$ol_enable_proxycache" != no ; then
23583 BUILD_PROXYCACHE=$ol_enable_proxycache
23584 if test "$ol_enable_proxycache" = mod ; then
23585 MFLAG=SLAPD_MOD_DYNAMIC
23586 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23588 MFLAG=SLAPD_MOD_STATIC
23590 cat >> confdefs.h <<EOF
23591 #define SLAPD_OVER_PROXYCACHE $MFLAG
23596 if test "$ol_enable_rwm" != no ; then
23598 BUILD_RWM=$ol_enable_rwm
23599 if test "$ol_enable_rwm" = mod ; then
23600 MFLAG=SLAPD_MOD_DYNAMIC
23601 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23603 MFLAG=SLAPD_MOD_STATIC
23605 cat >> confdefs.h <<EOF
23606 #define SLAPD_OVER_RWM $MFLAG
23611 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23612 $BUILD_SLAPD = yes ; then
23616 if test "$ol_enable_rewrite" != no ; then
23617 cat >> confdefs.h <<\EOF
23618 #define ENABLE_REWRITE 1
23624 if test "$ol_enable_slapi" != no ; then
23625 cat >> confdefs.h <<\EOF
23626 #define ENABLE_SLAPI 1
23630 SLAPD_SLAPI_DEPEND=libslapi.a
23635 if test "$ac_cv_mingw32" = yes ; then
23637 SLAPD_MODULES_LDFLAGS=
23642 if test -z "$SLAPD_STATIC_BACKENDS"; then
23643 SLAPD_NO_STATIC='#'
23714 # Check whether --with-xxinstall or --without-xxinstall was given.
23715 if test "${with_xxinstall+set}" = set; then
23716 withval="$with_xxinstall"
23724 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23726 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23727 # Let make expand exec_prefix.
23728 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23730 # Any assignment to VPATH causes Sun make to only execute
23731 # the first set of double-colon rules, so remove it if not needed.
23732 # If there is a colon in the path, we need to keep it.
23733 if test "x$srcdir" = x.; then
23734 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23737 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23739 DEFS=-DHAVE_CONFIG_H
23741 # Without the "./", some shells look in PATH for config.status.
23742 : ${CONFIG_STATUS=./config.status}
23744 echo creating $CONFIG_STATUS
23745 rm -f $CONFIG_STATUS
23746 cat > $CONFIG_STATUS <<EOF
23748 # Generated automatically by configure.
23749 # Run this file to recreate the current configuration.
23750 # This directory was configured as follows,
23751 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23753 # $0 $ac_configure_args
23755 # Compiler output produced by configure, useful for debugging
23756 # configure, is in ./config.log if it exists.
23758 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23761 case "\$ac_option" in
23762 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23763 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23764 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23765 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23766 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
23768 -help | --help | --hel | --he | --h)
23769 echo "\$ac_cs_usage"; exit 0 ;;
23770 *) echo "\$ac_cs_usage"; exit 1 ;;
23774 ac_given_srcdir=$srcdir
23775 ac_given_INSTALL="$INSTALL"
23777 trap 'rm -fr `echo "\
23778 Makefile:build/top.mk:Makefile.in:build/dir.mk \
23779 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
23780 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
23781 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
23782 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
23783 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
23784 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
23785 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
23786 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
23787 include/Makefile:build/top.mk:include/Makefile.in \
23788 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
23789 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
23790 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
23791 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
23792 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
23793 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
23794 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
23795 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
23796 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
23797 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
23798 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
23799 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
23800 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
23801 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
23802 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
23803 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
23804 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
23805 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
23806 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
23807 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
23808 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
23809 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
23810 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
23811 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
23812 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
23813 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
23814 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
23816 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
23817 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
23819 cat >> $CONFIG_STATUS <<EOF
23821 # Protect against being on the right side of a sed subst in config.status.
23822 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
23823 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
23827 s%@CFLAGS@%$CFLAGS%g
23828 s%@CPPFLAGS@%$CPPFLAGS%g
23829 s%@CXXFLAGS@%$CXXFLAGS%g
23830 s%@FFLAGS@%$FFLAGS%g
23832 s%@LDFLAGS@%$LDFLAGS%g
23834 s%@exec_prefix@%$exec_prefix%g
23835 s%@prefix@%$prefix%g
23836 s%@program_transform_name@%$program_transform_name%g
23837 s%@bindir@%$bindir%g
23838 s%@sbindir@%$sbindir%g
23839 s%@libexecdir@%$libexecdir%g
23840 s%@datadir@%$datadir%g
23841 s%@sysconfdir@%$sysconfdir%g
23842 s%@sharedstatedir@%$sharedstatedir%g
23843 s%@localstatedir@%$localstatedir%g
23844 s%@libdir@%$libdir%g
23845 s%@includedir@%$includedir%g
23846 s%@oldincludedir@%$oldincludedir%g
23847 s%@infodir@%$infodir%g
23848 s%@mandir@%$mandir%g
23850 s%@host_alias@%$host_alias%g
23851 s%@host_cpu@%$host_cpu%g
23852 s%@host_vendor@%$host_vendor%g
23853 s%@host_os@%$host_os%g
23854 s%@target@%$target%g
23855 s%@target_alias@%$target_alias%g
23856 s%@target_cpu@%$target_cpu%g
23857 s%@target_vendor@%$target_vendor%g
23858 s%@target_os@%$target_os%g
23860 s%@build_alias@%$build_alias%g
23861 s%@build_cpu@%$build_cpu%g
23862 s%@build_vendor@%$build_vendor%g
23863 s%@build_os@%$build_os%g
23864 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
23865 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
23866 s%@INSTALL_DATA@%$INSTALL_DATA%g
23867 s%@PACKAGE@%$PACKAGE%g
23868 s%@VERSION@%$VERSION%g
23869 s%@ACLOCAL@%$ACLOCAL%g
23870 s%@AUTOCONF@%$AUTOCONF%g
23871 s%@AUTOMAKE@%$AUTOMAKE%g
23872 s%@AUTOHEADER@%$AUTOHEADER%g
23873 s%@MAKEINFO@%$MAKEINFO%g
23874 s%@install_sh@%$install_sh%g
23877 s%@AMTARFLAGS@%$AMTARFLAGS%g
23878 s%@SET_MAKE@%$SET_MAKE%g
23879 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
23880 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
23881 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
23882 s%@top_builddir@%$top_builddir%g
23883 s%@ldap_subdir@%$ldap_subdir%g
23887 s%@OBJEXT@%$OBJEXT%g
23888 s%@EXEEXT@%$EXEEXT%g
23890 s%@RANLIB@%$RANLIB%g
23892 s%@DLLTOOL@%$DLLTOOL%g
23894 s%@OBJDUMP@%$OBJDUMP%g
23896 s%@LIBTOOL@%$LIBTOOL%g
23898 s%@PERLBIN@%$PERLBIN%g
23899 s%@OL_MKDEP@%$OL_MKDEP%g
23900 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
23901 s%@LTSTATIC@%$LTSTATIC%g
23902 s%@LIBOBJS@%$LIBOBJS%g
23903 s%@LIBSRCS@%$LIBSRCS%g
23905 s%@WITH_TLS@%$WITH_TLS%g
23906 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
23907 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
23908 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
23909 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
23910 s%@BUILD_BDB@%$BUILD_BDB%g
23911 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
23912 s%@BUILD_HDB@%$BUILD_HDB%g
23913 s%@BUILD_LDAP@%$BUILD_LDAP%g
23914 s%@BUILD_LDBM@%$BUILD_LDBM%g
23915 s%@BUILD_META@%$BUILD_META%g
23916 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
23917 s%@BUILD_NULL@%$BUILD_NULL%g
23918 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
23919 s%@BUILD_RELAY@%$BUILD_RELAY%g
23920 s%@BUILD_PERL@%$BUILD_PERL%g
23921 s%@BUILD_SHELL@%$BUILD_SHELL%g
23922 s%@BUILD_SQL@%$BUILD_SQL%g
23923 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
23924 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
23925 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
23926 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
23927 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
23928 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
23929 s%@BUILD_RWM@%$BUILD_RWM%g
23930 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
23931 s%@LDAP_LIBS@%$LDAP_LIBS%g
23932 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
23933 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
23934 s%@LDBM_LIBS@%$LDBM_LIBS%g
23935 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
23936 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
23937 s%@WRAP_LIBS@%$WRAP_LIBS%g
23938 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
23939 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
23940 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
23941 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
23942 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
23943 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
23944 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
23945 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
23946 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
23947 s%@KRB4_LIBS@%$KRB4_LIBS%g
23948 s%@KRB5_LIBS@%$KRB5_LIBS%g
23949 s%@SASL_LIBS@%$SASL_LIBS%g
23950 s%@TLS_LIBS@%$TLS_LIBS%g
23951 s%@MODULES_LIBS@%$MODULES_LIBS%g
23952 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
23953 s%@LIBSLAPI@%$LIBSLAPI%g
23954 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
23955 s%@AUTH_LIBS@%$AUTH_LIBS%g
23956 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
23957 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
23958 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
23959 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
23964 cat >> $CONFIG_STATUS <<\EOF
23966 # Split the substitutions into bite-sized pieces for seds with
23967 # small command number limits, like on Digital OSF/1 and HP-UX.
23968 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
23969 ac_file=1 # Number of current file.
23970 ac_beg=1 # First line for current file.
23971 ac_end=$ac_max_sed_cmds # Line after last line for current file.
23974 while $ac_more_lines; do
23975 if test $ac_beg -gt 1; then
23976 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
23978 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
23980 if test ! -s conftest.s$ac_file; then
23981 ac_more_lines=false
23982 rm -f conftest.s$ac_file
23984 if test -z "$ac_sed_cmds"; then
23985 ac_sed_cmds="sed -f conftest.s$ac_file"
23987 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
23989 ac_file=`expr $ac_file + 1`
23991 ac_end=`expr $ac_end + $ac_max_sed_cmds`
23994 if test -z "$ac_sed_cmds"; then
23999 cat >> $CONFIG_STATUS <<EOF
24001 CONFIG_FILES=\${CONFIG_FILES-"\
24002 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24003 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24004 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24005 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24006 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24007 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24008 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24009 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24010 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24011 include/Makefile:build/top.mk:include/Makefile.in \
24012 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24013 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24014 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24015 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24016 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24017 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24018 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24019 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24020 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24021 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24022 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24023 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24024 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24025 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24026 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24027 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24028 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24029 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24030 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24031 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24032 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24033 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24034 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24035 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24036 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24037 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24038 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24040 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24043 cat >> $CONFIG_STATUS <<\EOF
24044 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24045 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24047 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24048 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24049 *) ac_file_in="${ac_file}.in" ;;
24052 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24054 # Remove last slash and all that follows it. Not all systems have dirname.
24055 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24056 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24057 # The file is in a subdirectory.
24058 test ! -d "$ac_dir" && mkdir "$ac_dir"
24059 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24060 # A "../" for each directory in $ac_dir_suffix.
24061 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24063 ac_dir_suffix= ac_dots=
24066 case "$ac_given_srcdir" in
24068 if test -z "$ac_dots"; then top_srcdir=.
24069 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24070 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24071 *) # Relative path.
24072 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24073 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24076 case "$ac_given_INSTALL" in
24077 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24078 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24081 echo creating "$ac_file"
24083 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24085 *[Mm]akefile*) ac_comsub="1i\\
24086 # $configure_input" ;;
24090 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24092 s%@configure_input@%$configure_input%g
24093 s%@srcdir@%$srcdir%g
24094 s%@top_srcdir@%$top_srcdir%g
24095 s%@INSTALL@%$INSTALL%g
24096 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24100 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24101 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24103 # ac_d sets the value in "#define NAME VALUE" lines.
24104 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24105 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24108 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24109 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24110 ac_uB='\([ ]\)%\1#\2define\3'
24113 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24114 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24115 ac_eB='$%\1#\2define\3'
24119 if test "${CONFIG_HEADERS+set}" != set; then
24121 cat >> $CONFIG_STATUS <<EOF
24122 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24124 cat >> $CONFIG_STATUS <<\EOF
24126 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24127 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24129 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24130 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24131 *) ac_file_in="${ac_file}.in" ;;
24134 echo creating $ac_file
24136 rm -f conftest.frag conftest.in conftest.out
24137 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24138 cat $ac_file_inputs > conftest.in
24142 # Transform confdefs.h into a sed script conftest.vals that substitutes
24143 # the proper values into config.h.in to produce config.h. And first:
24144 # Protect against being on the right side of a sed subst in config.status.
24145 # Protect against being in an unquoted here document in config.status.
24146 rm -f conftest.vals
24147 cat > conftest.hdr <<\EOF
24150 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24154 sed -n -f conftest.hdr confdefs.h > conftest.vals
24157 # This sed command replaces #undef with comments. This is necessary, for
24158 # example, in the case of _POSIX_SOURCE, which is predefined and required
24159 # on some systems where configure will not decide to define it.
24160 cat >> conftest.vals <<\EOF
24161 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24164 # Break up conftest.vals because some shells have a limit on
24165 # the size of here documents, and old seds have small limits too.
24167 rm -f conftest.tail
24170 ac_lines=`grep -c . conftest.vals`
24171 # grep -c gives empty output for an empty file on some AIX systems.
24172 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24173 # Write a limited-size here document to conftest.frag.
24174 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24175 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24177 sed -f conftest.frag conftest.in > conftest.out
24179 mv conftest.out conftest.in
24180 ' >> $CONFIG_STATUS
24181 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24182 rm -f conftest.vals
24183 mv conftest.tail conftest.vals
24185 rm -f conftest.vals
24187 cat >> $CONFIG_STATUS <<\EOF
24188 rm -f conftest.frag conftest.h
24189 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24190 cat conftest.in >> conftest.h
24192 if cmp -s $ac_file conftest.h 2>/dev/null; then
24193 echo "$ac_file is unchanged"
24196 # Remove last slash and all that follows it. Not all systems have dirname.
24197 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24198 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24199 # The file is in a subdirectory.
24200 test ! -d "$ac_dir" && mkdir "$ac_dir"
24203 mv conftest.h $ac_file
24208 cat >> $CONFIG_STATUS <<EOF
24211 cat >> $CONFIG_STATUS <<\EOF
24215 echo Please run \"make depend\" to build dependencies
24219 chmod +x $CONFIG_STATUS
24220 rm -fr confdefs* $ac_clean_files
24221 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1