3 # from OpenLDAP: pkg/ldap/configure.in,v 1.493 2003/11/25 22:20:44 kurt Exp
5 # Copyright 1998-2003 The OpenLDAP Foundation.
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted only as authorized by the OpenLDAP
12 # A copy of this license is available in the file LICENSE in the
13 # top-level directory of the distribution or, alternatively, at
14 # <http://www.OpenLDAP.org/license.html>.
16 echo "Copyright 1998-2003 The OpenLDAP Foundation. All rights reserved."
17 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
19 # Guess values for system-dependent variables and create Makefiles.
20 # Generated automatically using autoconf version 2.13.1
21 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
23 # This configure script is free software; the Free Software Foundation
24 # gives unlimited permission to copy, distribute and modify it.
28 ac_default_prefix=/usr/local
29 # Any additions from configure.in:
30 ac_default_prefix=/usr/local
32 --with-subdir=DIR change default subdirectory used for installs"
34 --enable-debug enable debugging [yes]"
36 --enable-dynamic enable linking built binaries with dynamic libs [no]"
38 --enable-syslog enable syslog support [auto]"
40 --enable-proctitle enable proctitle support [yes]"
42 --enable-ipv6 enable IPv6 support [auto]"
44 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
46 --enable-x-compile enable cross compiling [no]"
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 back-meta [no]"
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]"
85 --enable-bdb enable Berkeley DB backend [yes]"
87 --with-bdb-module module type static|dynamic [static]"
89 --enable-dnssrv enable dnssrv backend [no]"
91 --with-dnssrv-module module type static|dynamic [static]"
93 --enable-hdb enable Hierarchical DB backend [no]"
95 --with-hdb-module module type static|dynamic [static]"
97 --enable-ldap enable ldap backend [no]"
99 --with-ldap-module module type static|dynamic [static]"
101 --enable-ldbm enable ldbm backend [no]"
103 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
105 --with-ldbm-module module type static|dynamic [static]"
107 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
109 --enable-meta enable metadirectory backend [no]"
111 --with-meta-module module type static|dynamic [static]"
113 --enable-monitor enable monitor backend [yes]"
115 --with-monitor-module module type static|dynamic [static]"
117 --enable-null enable null backend [no]"
119 --with-null-module module type static|dynamic [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type static|dynamic [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type static|dynamic [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type static|dynamic [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type static|dynamic [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type static|dynamic [static]"
142 SLURPD (Replication Daemon) Options:"
144 --enable-slurpd enable building slurpd [auto]"
147 Library Generation & Linking Options"
149 --enable-static[=PKGS] build static libraries [default=yes]"
151 --enable-shared[=PKGS] build shared libraries [default=yes]"
153 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
155 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
157 # Find the correct PATH separator. Usually this is `:', but
158 # DJGPP uses `;' like DOS.
159 if test "X${PATH_SEPARATOR+set}" != Xset; then
160 UNAME=${UNAME-`uname 2>/dev/null`}
162 *-DOS) lt_cv_sys_path_separator=';' ;;
163 *) lt_cv_sys_path_separator=':' ;;
165 PATH_SEPARATOR=$lt_cv_sys_path_separator
169 # Check that we are running under the correct shell.
170 SHELL=${CONFIG_SHELL-/bin/sh}
174 # Remove one level of quotation (which was required for Make).
175 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
180 if test "X$1" = X--no-reexec; then
181 # Discard the --no-reexec flag, and continue.
183 elif test "X$1" = X--fallback-echo; then
184 # Avoid inline document here, it may be left over
186 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
187 # Yippee, $echo works!
190 # Restart under the correct shell.
191 exec $SHELL "$0" --no-reexec ${1+"$@"}
194 if test "X$1" = X--fallback-echo; then
195 # used as fallback echo
203 # The HP-UX ksh and POSIX shell print the target directory to stdout
205 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
207 if test -z "$ECHO"; then
208 if test "X${echo_test_string+set}" != Xset; then
209 # find a string as large as possible, as long as the shell can cope with it
210 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
211 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
212 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
213 echo_test_string="`eval $cmd`" &&
214 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
221 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
222 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
223 test "X$echo_testing_string" = "X$echo_test_string"; then
226 # The Solaris, AIX, and Digital Unix default echo programs unquote
227 # backslashes. This makes it impossible to quote backslashes using
228 # echo "$something" | sed 's/\\/\\\\/g'
230 # So, first we look for a working echo in the user's PATH.
232 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
233 for dir in $PATH /usr/ucb; do
234 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
235 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
236 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
237 test "X$echo_testing_string" = "X$echo_test_string"; then
244 if test "X$echo" = Xecho; then
245 # We didn't find a better echo, so look for alternatives.
246 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
247 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
248 test "X$echo_testing_string" = "X$echo_test_string"; then
249 # This shell has a builtin print -r that does the trick.
251 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
252 test "X$CONFIG_SHELL" != X/bin/ksh; then
253 # If we have ksh, try running configure again with it.
254 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
255 export ORIGINAL_CONFIG_SHELL
256 CONFIG_SHELL=/bin/ksh
258 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
262 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
263 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
264 test "X$echo_testing_string" = "X$echo_test_string"; then
267 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
268 test "X$echo_testing_string" = 'X\t' &&
269 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
270 test "X$echo_testing_string" = "X$echo_test_string"; then
271 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
273 SHELL="$CONFIG_SHELL"
275 echo="$CONFIG_SHELL $0 --fallback-echo"
276 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
277 test "X$echo_testing_string" = 'X\t' &&
278 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
279 test "X$echo_testing_string" = "X$echo_test_string"; then
280 echo="$CONFIG_SHELL $0 --fallback-echo"
282 # maybe with a smaller string...
285 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
286 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
293 if test "$prev" != 'sed 50q "$0"'; then
294 echo_test_string=`eval $prev`
295 export echo_test_string
296 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
298 # Oops. We lost completely, so just stick with echo.
307 # Copy echo and quote the copy suitably for passing to libtool from
308 # the Makefile, instead of quoting the original, which is used later.
310 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
311 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
316 --disable-libtool-lock avoid locking (might break parallel builds)"
318 --with-pic try to use only PIC/non-PIC objects [default=use both]"
321 See INSTALL file for further details."
323 # Initialize some variables set by options.
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
327 cache_file=./config.cache
336 program_transform_name=s,x,x,
344 bindir='${exec_prefix}/bin'
345 sbindir='${exec_prefix}/sbin'
346 libexecdir='${exec_prefix}/libexec'
347 datadir='${prefix}/share'
348 sysconfdir='${prefix}/etc'
349 sharedstatedir='${prefix}/com'
350 localstatedir='${prefix}/var'
351 libdir='${exec_prefix}/lib'
352 includedir='${prefix}/include'
353 oldincludedir='/usr/include'
354 infodir='${prefix}/info'
355 mandir='${prefix}/man'
357 # Initialize some other variables.
360 SHELL=${CONFIG_SHELL-/bin/sh}
361 # Maximum number of lines to put in a shell here document.
368 # If the previous option needs an argument, assign it.
369 if test -n "$ac_prev"; then
370 eval "$ac_prev=\$ac_option"
376 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
380 # Accept the important Cygnus configure options, so we can diagnose typos.
384 -bindir | --bindir | --bindi | --bind | --bin | --bi)
386 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
387 bindir="$ac_optarg" ;;
389 -build | --build | --buil | --bui | --bu)
391 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
392 build="$ac_optarg" ;;
394 -cache-file | --cache-file | --cache-fil | --cache-fi \
395 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
396 ac_prev=cache_file ;;
397 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
398 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
399 cache_file="$ac_optarg" ;;
401 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
403 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
405 datadir="$ac_optarg" ;;
407 -disable-* | --disable-*)
408 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
409 # Reject names that are not valid shell variable names.
410 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
411 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
413 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
414 eval "enable_${ac_feature}=no" ;;
416 -enable-* | --enable-*)
417 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
418 # Reject names that are not valid shell variable names.
419 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
420 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
422 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
427 eval "enable_${ac_feature}='$ac_optarg'" ;;
429 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
430 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
431 | --exec | --exe | --ex)
432 ac_prev=exec_prefix ;;
433 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
434 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
435 | --exec=* | --exe=* | --ex=*)
436 exec_prefix="$ac_optarg" ;;
438 -gas | --gas | --ga | --g)
439 # Obsolete; use --with-gas.
442 -help | --help | --hel | --he)
443 # Omit some internal or obsolete options to make the list less imposing.
444 # This message is too long to be a string in the A/UX 3.1 sh.
446 Usage: configure [options] [host]
447 Options: [defaults in brackets after descriptions]
449 --cache-file=FILE cache test results in FILE
450 --help print this message
451 --no-create do not create output files
452 --quiet, --silent do not print \`checking...' messages
453 --version print the version of autoconf that created configure
454 Directory and file names:
455 --prefix=PREFIX install architecture-independent files in PREFIX
457 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
459 --bindir=DIR user executables in DIR [EPREFIX/bin]
460 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
461 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
462 --datadir=DIR read-only architecture-independent data in DIR
464 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
465 --sharedstatedir=DIR modifiable architecture-independent data in DIR
467 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
468 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
469 --includedir=DIR C header files in DIR [PREFIX/include]
470 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
471 --infodir=DIR info documentation in DIR [PREFIX/info]
472 --mandir=DIR man documentation in DIR [PREFIX/man]
473 --srcdir=DIR find the sources in DIR [configure dir or ..]
474 --program-prefix=PREFIX prepend PREFIX to installed program names
475 --program-suffix=SUFFIX append SUFFIX to installed program names
476 --program-transform-name=PROGRAM
477 run sed PROGRAM on installed program names
481 --build=BUILD configure for building on BUILD [BUILD=HOST]
482 --host=HOST configure for HOST [guessed]
483 --target=TARGET configure for TARGET [TARGET=HOST]
484 Features and packages:
485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
489 --x-includes=DIR X include files are in DIR
490 --x-libraries=DIR X library files are in DIR
492 if test -n "$ac_help"; then
493 echo "--enable and --with options recognized:$ac_help"
497 -host | --host | --hos | --ho)
499 -host=* | --host=* | --hos=* | --ho=*)
502 -includedir | --includedir | --includedi | --included | --include \
503 | --includ | --inclu | --incl | --inc)
504 ac_prev=includedir ;;
505 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
506 | --includ=* | --inclu=* | --incl=* | --inc=*)
507 includedir="$ac_optarg" ;;
509 -infodir | --infodir | --infodi | --infod | --info | --inf)
511 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
512 infodir="$ac_optarg" ;;
514 -libdir | --libdir | --libdi | --libd)
516 -libdir=* | --libdir=* | --libdi=* | --libd=*)
517 libdir="$ac_optarg" ;;
519 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
520 | --libexe | --libex | --libe)
521 ac_prev=libexecdir ;;
522 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
523 | --libexe=* | --libex=* | --libe=*)
524 libexecdir="$ac_optarg" ;;
526 -localstatedir | --localstatedir | --localstatedi | --localstated \
527 | --localstate | --localstat | --localsta | --localst \
528 | --locals | --local | --loca | --loc | --lo)
529 ac_prev=localstatedir ;;
530 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
531 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
532 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
533 localstatedir="$ac_optarg" ;;
535 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
537 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
538 mandir="$ac_optarg" ;;
541 # Obsolete; use --without-fp.
544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
552 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
553 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
554 | --oldin | --oldi | --old | --ol | --o)
555 ac_prev=oldincludedir ;;
556 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
557 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
558 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
559 oldincludedir="$ac_optarg" ;;
561 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
563 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
564 prefix="$ac_optarg" ;;
566 -program-prefix | --program-prefix | --program-prefi | --program-pref \
567 | --program-pre | --program-pr | --program-p)
568 ac_prev=program_prefix ;;
569 -program-prefix=* | --program-prefix=* | --program-prefi=* \
570 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
571 program_prefix="$ac_optarg" ;;
573 -program-suffix | --program-suffix | --program-suffi | --program-suff \
574 | --program-suf | --program-su | --program-s)
575 ac_prev=program_suffix ;;
576 -program-suffix=* | --program-suffix=* | --program-suffi=* \
577 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
578 program_suffix="$ac_optarg" ;;
580 -program-transform-name | --program-transform-name \
581 | --program-transform-nam | --program-transform-na \
582 | --program-transform-n | --program-transform- \
583 | --program-transform | --program-transfor \
584 | --program-transfo | --program-transf \
585 | --program-trans | --program-tran \
586 | --progr-tra | --program-tr | --program-t)
587 ac_prev=program_transform_name ;;
588 -program-transform-name=* | --program-transform-name=* \
589 | --program-transform-nam=* | --program-transform-na=* \
590 | --program-transform-n=* | --program-transform-=* \
591 | --program-transform=* | --program-transfor=* \
592 | --program-transfo=* | --program-transf=* \
593 | --program-trans=* | --program-tran=* \
594 | --progr-tra=* | --program-tr=* | --program-t=*)
595 program_transform_name="$ac_optarg" ;;
597 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
598 | -silent | --silent | --silen | --sile | --sil)
601 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
603 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
605 sbindir="$ac_optarg" ;;
607 -sharedstatedir | --sharedstatedir | --sharedstatedi \
608 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
609 | --sharedst | --shareds | --shared | --share | --shar \
611 ac_prev=sharedstatedir ;;
612 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
613 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
614 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
616 sharedstatedir="$ac_optarg" ;;
618 -site | --site | --sit)
620 -site=* | --site=* | --sit=*)
623 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
625 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
626 srcdir="$ac_optarg" ;;
628 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
629 | --syscon | --sysco | --sysc | --sys | --sy)
630 ac_prev=sysconfdir ;;
631 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
632 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
633 sysconfdir="$ac_optarg" ;;
635 -target | --target | --targe | --targ | --tar | --ta | --t)
637 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
638 target="$ac_optarg" ;;
640 -v | -verbose | --verbose | --verbos | --verbo | --verb)
643 -version | --version | --versio | --versi | --vers)
644 echo "configure generated by autoconf version 2.13.1"
648 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
649 # Reject names that are not valid shell variable names.
650 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
651 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
653 ac_package=`echo $ac_package| sed 's/-/_/g'`
658 eval "with_${ac_package}='$ac_optarg'" ;;
660 -without-* | --without-*)
661 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
662 # Reject names that are not valid shell variable names.
663 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
664 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
666 ac_package=`echo $ac_package| sed 's/-/_/g'`
667 eval "with_${ac_package}=no" ;;
670 # Obsolete; use --with-x.
673 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
674 | --x-incl | --x-inc | --x-in | --x-i)
675 ac_prev=x_includes ;;
676 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
677 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
678 x_includes="$ac_optarg" ;;
680 -x-libraries | --x-libraries | --x-librarie | --x-librari \
681 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
682 ac_prev=x_libraries ;;
683 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
684 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
685 x_libraries="$ac_optarg" ;;
687 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
691 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
692 echo "configure: warning: $ac_option: invalid host type" 1>&2
694 if test "x$nonopt" != xNONE; then
695 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
703 if test -n "$ac_prev"; then
704 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
707 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
709 # File descriptor usage:
712 # 2 errors and warnings
713 # 3 some systems may open it to /dev/tty
714 # 4 used on the Kubota Titan
715 # 6 checking for... messages and results
716 # 5 compiler messages saved in config.log
717 if test "$silent" = yes; then
725 This file contains any messages produced by compilers while
726 running configure, to aid debugging if configure makes a mistake.
729 # Strip out --no-create and --no-recursion so they do not pile up.
730 # Also quote any args containing shell metacharacters.
735 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
736 | --no-cr | --no-c) ;;
737 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
738 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
739 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
740 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
741 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
746 # Only set these to C if already set. These must not be set unconditionally
747 # because not all systems understand e.g. LANG=C (notably SCO).
748 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
749 # Non-C LC_CTYPE values break the ctype check.
750 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
751 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
752 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
753 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
755 # confdefs.h avoids OS command line length limits that DEFS can exceed.
756 rm -rf conftest* confdefs.h
757 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
760 # A filename unique to this package, relative to the directory that
761 # configure is in, which we can look for to find out if srcdir is correct.
762 ac_unique_file=build/version.sh
764 # Find the source files, if location was not specified.
765 if test -z "$srcdir"; then
766 ac_srcdir_defaulted=yes
767 # Try the directory containing this script, then its parent.
769 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
770 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
772 if test ! -r $srcdir/$ac_unique_file; then
776 ac_srcdir_defaulted=no
778 if test ! -r $srcdir/$ac_unique_file; then
779 if test "$ac_srcdir_defaulted" = yes; then
780 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
782 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
785 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
787 # Prefer explicitly selected file to automatically selected ones.
788 if test -z "$CONFIG_SITE"; then
789 if test "x$prefix" != xNONE; then
790 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
792 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
795 for ac_site_file in $CONFIG_SITE; do
796 if test -r "$ac_site_file"; then
797 echo "loading site script $ac_site_file"
804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
805 ac_cpp='$CPP $CPPFLAGS'
806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
808 cross_compiling=$ac_cv_prog_cc_cross
812 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
813 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
814 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
821 ac_n= ac_c='\c' ac_t=
825 # set unset (borrowed from autoconf 2.49c)
826 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
832 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
835 for ac_dir in build $srcdir/build; do
836 if test -f $ac_dir/install-sh; then
838 ac_install_sh="$ac_aux_dir/install-sh -c"
840 elif test -f $ac_dir/install.sh; then
842 ac_install_sh="$ac_aux_dir/install.sh -c"
844 elif test -f $ac_dir/shtool; then
846 ac_install_sh="$ac_aux_dir/shtool install -c"
850 if test -z "$ac_aux_dir"; then
851 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
853 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
854 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
855 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
857 eval `$ac_aux_dir/version.sh`
858 if test -z "$OL_STRING"; then
859 { echo "configure: error: could not determine version" 1>&2; exit 1; }
862 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
863 ac_cv_shtool="$ac_aux_dir/shtool"
865 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
868 SHTOOL="$ac_cv_shtool"
870 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
871 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
874 if test -d $ac_aux_dir/CVS; then
875 OPENLDAP_CVS="(from CVS sources) "
878 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
881 echo $ac_n "checking host system type""... $ac_c" 1>&6
882 echo "configure:883: checking host system type" >&5
883 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
885 # Make sure we can run config.sub.
886 if $ac_config_sub sun4 >/dev/null 2>&1; then :
887 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
890 ac_cv_host_alias=$host
891 case "$ac_cv_host_alias" in
895 if ac_cv_host_alias=`$ac_config_guess`; then :
896 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
898 *) ac_cv_host_alias=$nonopt ;;
902 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
903 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
904 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
905 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
907 echo $ac_n "(cached) $ac_c" 1>&6
910 echo "$ac_t""$ac_cv_host" 1>&6
913 host_alias=$ac_cv_host_alias
914 host_cpu=$ac_cv_host_cpu
915 host_vendor=$ac_cv_host_vendor
916 host_os=$ac_cv_host_os
922 echo $ac_n "checking target system type""... $ac_c" 1>&6
923 echo "configure:924: checking target system type" >&5
924 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
926 # Make sure we can run config.sub.
927 if $ac_config_sub sun4 >/dev/null 2>&1; then :
928 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
931 ac_cv_target_alias=$target
932 case "$ac_cv_target_alias" in
936 ac_cv_target_alias=$host_alias ;;
938 *) ac_cv_target_alias=$nonopt ;;
942 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
943 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
944 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
945 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
947 echo $ac_n "(cached) $ac_c" 1>&6
950 echo "$ac_t""$ac_cv_target" 1>&6
953 target_alias=$ac_cv_target_alias
954 target_cpu=$ac_cv_target_cpu
955 target_vendor=$ac_cv_target_vendor
956 target_os=$ac_cv_target_os
962 echo $ac_n "checking build system type""... $ac_c" 1>&6
963 echo "configure:964: checking build system type" >&5
964 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
966 # Make sure we can run config.sub.
967 if $ac_config_sub sun4 >/dev/null 2>&1; then :
968 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
971 ac_cv_build_alias=$build
972 case "$ac_cv_build_alias" in
976 ac_cv_build_alias=$host_alias ;;
978 *) ac_cv_build_alias=$nonopt ;;
982 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
983 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
987 echo $ac_n "(cached) $ac_c" 1>&6
990 echo "$ac_t""$ac_cv_build" 1>&6
993 build_alias=$ac_cv_build_alias
994 build_cpu=$ac_cv_build_cpu
995 build_vendor=$ac_cv_build_vendor
996 build_os=$ac_cv_build_os
1002 # Do some error checking and defaulting for the host and target type.
1004 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1007 # 1. You are not allowed to specify --host, --target, and nonopt at the
1009 # 2. Host defaults to nonopt.
1010 # 3. If nonopt is not specified, then host defaults to the current host,
1011 # as determined by config.guess.
1012 # 4. Target and build default to nonopt.
1013 # 5. If nonopt is not specified, then target and build default to host.
1015 # The aliases save the names the user supplied, while $host etc.
1016 # will get canonicalized.
1017 case $host---$target---$nonopt in
1018 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1019 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1022 test "$host_alias" != "$target_alias" &&
1023 test "$program_prefix$program_suffix$program_transform_name" = \
1025 program_prefix=${target_alias}-
1028 # Find a good install program. We prefer a C program (faster),
1029 # so one script is as good as another. But avoid the broken or
1030 # incompatible versions:
1031 # SysV /etc/install, /usr/sbin/install
1032 # SunOS /usr/etc/install
1033 # IRIX /sbin/install
1035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1038 # ./install, which can be erroneously created by make from ./install.sh.
1039 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1040 echo "configure:1041: checking for a BSD compatible install" >&5
1041 if test -z "$INSTALL"; then
1042 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1045 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1046 for ac_dir in $PATH; do
1047 # Account for people who put trailing slashes in PATH elements.
1049 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1051 # OSF1 and SCO ODT 3.0 have their own names for install.
1052 # Don't use installbsd from OSF since it installs stuff as root
1054 for ac_prog in ginstall scoinst install; do
1055 if test -f $ac_dir/$ac_prog; then
1056 if test $ac_prog = install &&
1057 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1058 # AIX install. It has an incompatible calling convention.
1060 elif test $ac_prog = install &&
1061 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1062 # program-specific install script used by HP pwplus--don't use.
1065 ac_cv_path_install="$ac_dir/$ac_prog -c"
1076 if test "${ac_cv_path_install+set}" = set; then
1077 INSTALL="$ac_cv_path_install"
1079 # As a last resort, use the slow shell script. We don't cache a
1080 # path for INSTALL within a source directory, because that will
1081 # break other packages using the cache if that directory is
1082 # removed, or if the path is relative.
1083 INSTALL="$ac_install_sh"
1086 echo "$ac_t""$INSTALL" 1>&6
1088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1089 # It thinks the first close brace ends the variable substitution.
1090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1096 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether build environment is sane" >&5
1100 echo timestamp > conftestfile
1101 # Do `set' in a subshell so we don't clobber the current shell's
1102 # arguments. Must try -L first in case configure is actually a
1103 # symlink; some systems play weird games with the mod time of symlinks
1104 # (eg FreeBSD returns the mod time of the symlink's containing
1107 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1108 if test "$*" = "X"; then
1110 set X `ls -t $srcdir/configure conftestfile`
1112 if test "$*" != "X $srcdir/configure conftestfile" \
1113 && test "$*" != "X conftestfile $srcdir/configure"; then
1115 # If neither matched, then we have a broken ls. This can happen
1116 # if, for instance, CONFIG_SHELL is bash and it inherits a
1117 # broken ls alias from the environment. This has actually
1118 # happened. Such a system could not be considered "sane".
1119 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1120 alias in your environment" 1>&2; exit 1; }
1123 test "$2" = conftestfile
1129 { echo "configure: error: newly created file is older than distributed files!
1130 Check your system clock" 1>&2; exit 1; }
1133 echo "$ac_t""yes" 1>&6
1134 if test "$program_transform_name" = s,x,x,; then
1135 program_transform_name=
1137 # Double any \ or $. echo might interpret backslashes.
1138 cat <<\EOF_SED > conftestsed
1139 s,\\,\\\\,g; s,\$,$$,g
1141 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1144 test "$program_prefix" != NONE &&
1145 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1146 # Use a double $ so make ignores it.
1147 test "$program_suffix" != NONE &&
1148 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1150 # sed with no file args requires a program.
1151 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1153 for ac_prog in mawk gawk nawk awk
1155 # Extract the first word of "$ac_prog", so it can be a program name with args.
1156 set dummy $ac_prog; ac_word=$2
1157 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1158 echo "configure:1159: checking for $ac_word" >&5
1159 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1160 echo $ac_n "(cached) $ac_c" 1>&6
1162 if test -n "$AWK"; then
1163 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1167 for ac_dir in $ac_dummy; do
1168 test -z "$ac_dir" && ac_dir=.
1169 if test -f $ac_dir/$ac_word; then
1170 ac_cv_prog_AWK="$ac_prog"
1177 AWK="$ac_cv_prog_AWK"
1178 if test -n "$AWK"; then
1179 echo "$ac_t""$AWK" 1>&6
1181 echo "$ac_t""no" 1>&6
1184 test -n "$AWK" && break
1187 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1188 echo "configure:1189: checking whether ${MAKE-make} sets \${MAKE}" >&5
1189 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1190 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1191 echo $ac_n "(cached) $ac_c" 1>&6
1193 cat > conftestmake <<\EOF
1195 @echo 'ac_maketemp="${MAKE}"'
1197 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1198 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1199 if test -n "$ac_maketemp"; then
1200 eval ac_cv_prog_make_${ac_make}_set=yes
1202 eval ac_cv_prog_make_${ac_make}_set=no
1206 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1207 echo "$ac_t""yes" 1>&6
1210 echo "$ac_t""no" 1>&6
1211 SET_MAKE="MAKE=${MAKE-make}"
1220 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1221 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1226 missing_dir=`cd $ac_aux_dir && pwd`
1227 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1228 echo "configure:1229: checking for working aclocal" >&5
1229 # Run test in a subshell; some versions of sh will print an error if
1230 # an executable is not found, even if stderr is redirected.
1231 # Redirect stdin to placate older versions of autoconf. Sigh.
1232 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1234 echo "$ac_t""found" 1>&6
1236 ACLOCAL="$missing_dir/missing aclocal"
1237 echo "$ac_t""missing" 1>&6
1240 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1241 echo "configure:1242: checking for working autoconf" >&5
1242 # Run test in a subshell; some versions of sh will print an error if
1243 # an executable is not found, even if stderr is redirected.
1244 # Redirect stdin to placate older versions of autoconf. Sigh.
1245 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1247 echo "$ac_t""found" 1>&6
1249 AUTOCONF="$missing_dir/missing autoconf"
1250 echo "$ac_t""missing" 1>&6
1253 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1254 echo "configure:1255: checking for working automake" >&5
1255 # Run test in a subshell; some versions of sh will print an error if
1256 # an executable is not found, even if stderr is redirected.
1257 # Redirect stdin to placate older versions of autoconf. Sigh.
1258 if (automake --version) < /dev/null > /dev/null 2>&1; then
1260 echo "$ac_t""found" 1>&6
1262 AUTOMAKE="$missing_dir/missing automake"
1263 echo "$ac_t""missing" 1>&6
1266 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1267 echo "configure:1268: checking for working autoheader" >&5
1268 # Run test in a subshell; some versions of sh will print an error if
1269 # an executable is not found, even if stderr is redirected.
1270 # Redirect stdin to placate older versions of autoconf. Sigh.
1271 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1272 AUTOHEADER=autoheader
1273 echo "$ac_t""found" 1>&6
1275 AUTOHEADER="$missing_dir/missing autoheader"
1276 echo "$ac_t""missing" 1>&6
1279 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1280 echo "configure:1281: checking for working makeinfo" >&5
1281 # Run test in a subshell; some versions of sh will print an error if
1282 # an executable is not found, even if stderr is redirected.
1283 # Redirect stdin to placate older versions of autoconf. Sigh.
1284 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1286 echo "$ac_t""found" 1>&6
1288 MAKEINFO="$missing_dir/missing makeinfo"
1289 echo "$ac_t""missing" 1>&6
1292 install_sh="$missing_dir/install-sh"
1293 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1295 for ac_prog in gnutar gtar tar
1297 # Extract the first word of "$ac_prog", so it can be a program name with args.
1298 set dummy $ac_prog; ac_word=$2
1299 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1300 echo "configure:1301: checking for $ac_word" >&5
1301 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1302 echo $ac_n "(cached) $ac_c" 1>&6
1304 if test -n "$AMTAR"; then
1305 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1307 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1309 for ac_dir in $ac_dummy; do
1310 test -z "$ac_dir" && ac_dir=.
1311 if test -f $ac_dir/$ac_word; then
1312 ac_cv_prog_AMTAR="$ac_prog"
1319 AMTAR="$ac_cv_prog_AMTAR"
1320 if test -n "$AMTAR"; then
1321 echo "$ac_t""$AMTAR" 1>&6
1323 echo "$ac_t""no" 1>&6
1326 test -n "$AMTAR" && break
1331 if test -n "$AMTAR"; then
1332 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1337 cat >> confdefs.h <<EOF
1338 #define OPENLDAP_PACKAGE "$PACKAGE"
1341 cat >> confdefs.h <<EOF
1342 #define OPENLDAP_VERSION "$VERSION"
1346 cat >> confdefs.h <<EOF
1347 #define LDAP_VENDOR_VERSION $OL_API_INC
1350 cat >> confdefs.h <<EOF
1351 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1354 cat >> confdefs.h <<EOF
1355 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1358 cat >> confdefs.h <<EOF
1359 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1363 OPENLDAP_LIBVERSION=$OL_API_LIB
1365 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1369 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1370 echo "configure:1371: checking configure arguments" >&5
1375 ldap_subdir="/openldap"
1377 # Check whether --with-subdir or --without-subdir was given.
1378 if test "${with_subdir+set}" = set; then
1379 withval="$with_subdir"
1386 ldap_subdir="$withval"
1389 ldap_subdir="/$withval"
1396 # OpenLDAP --enable-debug
1397 # Check whether --enable-debug or --disable-debug was given.
1398 if test "${enable_debug+set}" = set; then
1399 enableval="$enable_debug"
1402 for ol_val in auto yes no ; do
1403 if test "$enableval" = "$ol_val" ; then
1407 if test "$ol_arg" = "invalid" ; then
1408 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1410 ol_enable_debug="$ol_arg"
1413 ol_enable_debug="yes"
1415 # end --enable-debug
1416 # OpenLDAP --enable-dynamic
1417 # Check whether --enable-dynamic or --disable-dynamic was given.
1418 if test "${enable_dynamic+set}" = set; then
1419 enableval="$enable_dynamic"
1422 for ol_val in auto yes no ; do
1423 if test "$enableval" = "$ol_val" ; then
1427 if test "$ol_arg" = "invalid" ; then
1428 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1430 ol_enable_dynamic="$ol_arg"
1433 ol_enable_dynamic="no"
1435 # end --enable-dynamic
1436 # OpenLDAP --enable-syslog
1437 # Check whether --enable-syslog or --disable-syslog was given.
1438 if test "${enable_syslog+set}" = set; then
1439 enableval="$enable_syslog"
1442 for ol_val in auto yes no ; do
1443 if test "$enableval" = "$ol_val" ; then
1447 if test "$ol_arg" = "invalid" ; then
1448 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1450 ol_enable_syslog="$ol_arg"
1453 ol_enable_syslog="auto"
1455 # end --enable-syslog
1456 # OpenLDAP --enable-proctitle
1457 # Check whether --enable-proctitle or --disable-proctitle was given.
1458 if test "${enable_proctitle+set}" = set; then
1459 enableval="$enable_proctitle"
1462 for ol_val in auto yes no ; do
1463 if test "$enableval" = "$ol_val" ; then
1467 if test "$ol_arg" = "invalid" ; then
1468 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1470 ol_enable_proctitle="$ol_arg"
1473 ol_enable_proctitle="yes"
1475 # end --enable-proctitle
1476 ol_enable_referrals=${ol_enable_referrals-no}
1477 ol_enable_kbind=${ol_enable_kbind-no}
1478 # OpenLDAP --enable-ipv6
1479 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1480 if test "${enable_ipv6+set}" = set; then
1481 enableval="$enable_ipv6"
1484 for ol_val in auto yes no ; do
1485 if test "$enableval" = "$ol_val" ; then
1489 if test "$ol_arg" = "invalid" ; then
1490 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1492 ol_enable_ipv6="$ol_arg"
1495 ol_enable_ipv6="auto"
1498 # OpenLDAP --enable-local
1499 # Check whether --enable-local or --disable-local was given.
1500 if test "${enable_local+set}" = set; then
1501 enableval="$enable_local"
1504 for ol_val in auto yes no ; do
1505 if test "$enableval" = "$ol_val" ; then
1509 if test "$ol_arg" = "invalid" ; then
1510 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1512 ol_enable_local="$ol_arg"
1515 ol_enable_local="auto"
1517 # end --enable-local
1518 # OpenLDAP --enable-x_compile
1519 # Check whether --enable-x_compile or --disable-x_compile was given.
1520 if test "${enable_x_compile+set}" = set; then
1521 enableval="$enable_x_compile"
1524 for ol_val in yes no ; do
1525 if test "$enableval" = "$ol_val" ; then
1529 if test "$ol_arg" = "invalid" ; then
1530 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1532 ol_enable_x_compile="$ol_arg"
1535 ol_enable_x_compile="no"
1537 # end --enable-x_compile
1540 # OpenLDAP --with-cyrus_sasl
1541 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1542 if test "${with_cyrus_sasl+set}" = set; then
1543 withval="$with_cyrus_sasl"
1546 for ol_val in auto yes no ; do
1547 if test "$withval" = "$ol_val" ; then
1551 if test "$ol_arg" = "invalid" ; then
1552 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1554 ol_with_cyrus_sasl="$ol_arg"
1557 ol_with_cyrus_sasl="auto"
1559 # end --with-cyrus_sasl
1561 # OpenLDAP --with-fetch
1562 # Check whether --with-fetch or --without-fetch was given.
1563 if test "${with_fetch+set}" = set; then
1564 withval="$with_fetch"
1567 for ol_val in auto yes no ; do
1568 if test "$withval" = "$ol_val" ; then
1572 if test "$ol_arg" = "invalid" ; then
1573 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1575 ol_with_fetch="$ol_arg"
1578 ol_with_fetch="auto"
1582 ol_with_kerberos=${ol_with_kerberos-auto}
1583 # OpenLDAP --with-threads
1584 # Check whether --with-threads or --without-threads was given.
1585 if test "${with_threads+set}" = set; then
1586 withval="$with_threads"
1589 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1590 if test "$withval" = "$ol_val" ; then
1594 if test "$ol_arg" = "invalid" ; then
1595 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1597 ol_with_threads="$ol_arg"
1600 ol_with_threads="auto"
1602 # end --with-threads
1604 # OpenLDAP --with-tls
1605 # Check whether --with-tls or --without-tls was given.
1606 if test "${with_tls+set}" = set; then
1610 for ol_val in auto ssleay openssl yes no ; do
1611 if test "$withval" = "$ol_val" ; then
1615 if test "$ol_arg" = "invalid" ; then
1616 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1618 ol_with_tls="$ol_arg"
1625 # OpenLDAP --with-yielding_select
1626 # Check whether --with-yielding_select or --without-yielding_select was given.
1627 if test "${with_yielding_select+set}" = set; then
1628 withval="$with_yielding_select"
1631 for ol_val in auto yes no manual ; do
1632 if test "$withval" = "$ol_val" ; then
1636 if test "$ol_arg" = "invalid" ; then
1637 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1639 ol_with_yielding_select="$ol_arg"
1642 ol_with_yielding_select="auto"
1644 # end --with-yielding_select
1648 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1649 if test "${with_xxslapdoptions+set}" = set; then
1650 withval="$with_xxslapdoptions"
1654 # OpenLDAP --enable-slapd
1655 # Check whether --enable-slapd or --disable-slapd was given.
1656 if test "${enable_slapd+set}" = set; then
1657 enableval="$enable_slapd"
1660 for ol_val in auto yes no ; do
1661 if test "$enableval" = "$ol_val" ; then
1665 if test "$ol_arg" = "invalid" ; then
1666 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1668 ol_enable_slapd="$ol_arg"
1671 ol_enable_slapd="yes"
1673 # end --enable-slapd
1674 # OpenLDAP --enable-aci
1675 # Check whether --enable-aci or --disable-aci was given.
1676 if test "${enable_aci+set}" = set; then
1677 enableval="$enable_aci"
1680 for ol_val in auto yes no ; do
1681 if test "$enableval" = "$ol_val" ; then
1685 if test "$ol_arg" = "invalid" ; then
1686 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1688 ol_enable_aci="$ol_arg"
1694 # OpenLDAP --enable-cleartext
1695 # Check whether --enable-cleartext or --disable-cleartext was given.
1696 if test "${enable_cleartext+set}" = set; then
1697 enableval="$enable_cleartext"
1700 for ol_val in auto yes no ; do
1701 if test "$enableval" = "$ol_val" ; then
1705 if test "$ol_arg" = "invalid" ; then
1706 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1708 ol_enable_cleartext="$ol_arg"
1711 ol_enable_cleartext="yes"
1713 # end --enable-cleartext
1714 # OpenLDAP --enable-crypt
1715 # Check whether --enable-crypt or --disable-crypt was given.
1716 if test "${enable_crypt+set}" = set; then
1717 enableval="$enable_crypt"
1720 for ol_val in auto yes no ; do
1721 if test "$enableval" = "$ol_val" ; then
1725 if test "$ol_arg" = "invalid" ; then
1726 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1728 ol_enable_crypt="$ol_arg"
1731 ol_enable_crypt="no"
1733 # end --enable-crypt
1734 ol_enable_kpasswd=${ol_enable_kpasswd-no}
1735 # OpenLDAP --enable-lmpasswd
1736 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1737 if test "${enable_lmpasswd+set}" = set; then
1738 enableval="$enable_lmpasswd"
1741 for ol_val in auto yes no ; do
1742 if test "$enableval" = "$ol_val" ; then
1746 if test "$ol_arg" = "invalid" ; then
1747 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1749 ol_enable_lmpasswd="$ol_arg"
1752 ol_enable_lmpasswd="no"
1754 # end --enable-lmpasswd
1755 # OpenLDAP --enable-spasswd
1756 # Check whether --enable-spasswd or --disable-spasswd was given.
1757 if test "${enable_spasswd+set}" = set; then
1758 enableval="$enable_spasswd"
1761 for ol_val in auto yes no ; do
1762 if test "$enableval" = "$ol_val" ; then
1766 if test "$ol_arg" = "invalid" ; then
1767 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1769 ol_enable_spasswd="$ol_arg"
1772 ol_enable_spasswd="no"
1774 # end --enable-spasswd
1775 # OpenLDAP --enable-modules
1776 # Check whether --enable-modules or --disable-modules was given.
1777 if test "${enable_modules+set}" = set; then
1778 enableval="$enable_modules"
1781 for ol_val in auto yes no ; do
1782 if test "$enableval" = "$ol_val" ; then
1786 if test "$ol_arg" = "invalid" ; then
1787 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1789 ol_enable_modules="$ol_arg"
1792 ol_enable_modules="no"
1794 # end --enable-modules
1795 ol_enable_multimaster=${ol_enable_multimaster-no}
1796 # OpenLDAP --enable-rewrite
1797 # Check whether --enable-rewrite or --disable-rewrite was given.
1798 if test "${enable_rewrite+set}" = set; then
1799 enableval="$enable_rewrite"
1802 for ol_val in auto yes no ; do
1803 if test "$enableval" = "$ol_val" ; then
1807 if test "$ol_arg" = "invalid" ; then
1808 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1810 ol_enable_rewrite="$ol_arg"
1813 ol_enable_rewrite="no"
1815 # end --enable-rewrite
1816 # OpenLDAP --enable-rlookups
1817 # Check whether --enable-rlookups or --disable-rlookups was given.
1818 if test "${enable_rlookups+set}" = set; then
1819 enableval="$enable_rlookups"
1822 for ol_val in auto yes no ; do
1823 if test "$enableval" = "$ol_val" ; then
1827 if test "$ol_arg" = "invalid" ; then
1828 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1830 ol_enable_rlookups="$ol_arg"
1833 ol_enable_rlookups="no"
1835 # end --enable-rlookups
1836 # OpenLDAP --enable-slapi
1837 # Check whether --enable-slapi or --disable-slapi was given.
1838 if test "${enable_slapi+set}" = set; then
1839 enableval="$enable_slapi"
1842 for ol_val in auto yes no ; do
1843 if test "$enableval" = "$ol_val" ; then
1847 if test "$ol_arg" = "invalid" ; then
1848 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1850 ol_enable_slapi="$ol_arg"
1853 ol_enable_slapi="no"
1855 # end --enable-slapi
1856 # OpenLDAP --enable-slp
1857 # Check whether --enable-slp or --disable-slp was given.
1858 if test "${enable_slp+set}" = set; then
1859 enableval="$enable_slp"
1862 for ol_val in auto yes no ; do
1863 if test "$enableval" = "$ol_val" ; then
1867 if test "$ol_arg" = "invalid" ; then
1868 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1870 ol_enable_slp="$ol_arg"
1876 # OpenLDAP --enable-wrappers
1877 # Check whether --enable-wrappers or --disable-wrappers was given.
1878 if test "${enable_wrappers+set}" = set; then
1879 enableval="$enable_wrappers"
1882 for ol_val in auto yes no ; do
1883 if test "$enableval" = "$ol_val" ; then
1887 if test "$ol_arg" = "invalid" ; then
1888 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1890 ol_enable_wrappers="$ol_arg"
1893 ol_enable_wrappers="no"
1895 # end --enable-wrappers
1898 # OpenLDAP --enable-bdb
1899 # Check whether --enable-bdb or --disable-bdb was given.
1900 if test "${enable_bdb+set}" = set; then
1901 enableval="$enable_bdb"
1904 for ol_val in auto yes no ; do
1905 if test "$enableval" = "$ol_val" ; then
1909 if test "$ol_arg" = "invalid" ; then
1910 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1912 ol_enable_bdb="$ol_arg"
1918 # OpenLDAP --with-bdb_module
1919 # Check whether --with-bdb_module or --without-bdb_module was given.
1920 if test "${with_bdb_module+set}" = set; then
1921 withval="$with_bdb_module"
1924 for ol_val in static dynamic ; do
1925 if test "$withval" = "$ol_val" ; then
1929 if test "$ol_arg" = "invalid" ; then
1930 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1932 ol_with_bdb_module="$ol_arg"
1935 ol_with_bdb_module="static"
1937 # end --with-bdb_module
1939 # OpenLDAP --enable-dnssrv
1940 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1941 if test "${enable_dnssrv+set}" = set; then
1942 enableval="$enable_dnssrv"
1945 for ol_val in auto yes no ; do
1946 if test "$enableval" = "$ol_val" ; then
1950 if test "$ol_arg" = "invalid" ; then
1951 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1953 ol_enable_dnssrv="$ol_arg"
1956 ol_enable_dnssrv="no"
1958 # end --enable-dnssrv
1959 # OpenLDAP --with-dnssrv_module
1960 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1961 if test "${with_dnssrv_module+set}" = set; then
1962 withval="$with_dnssrv_module"
1965 for ol_val in static dynamic ; do
1966 if test "$withval" = "$ol_val" ; then
1970 if test "$ol_arg" = "invalid" ; then
1971 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1973 ol_with_dnssrv_module="$ol_arg"
1976 ol_with_dnssrv_module="static"
1978 # end --with-dnssrv_module
1980 # OpenLDAP --enable-hdb
1981 # Check whether --enable-hdb or --disable-hdb was given.
1982 if test "${enable_hdb+set}" = set; then
1983 enableval="$enable_hdb"
1986 for ol_val in auto yes no ; do
1987 if test "$enableval" = "$ol_val" ; then
1991 if test "$ol_arg" = "invalid" ; then
1992 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1994 ol_enable_hdb="$ol_arg"
2000 # OpenLDAP --with-hdb_module
2001 # Check whether --with-hdb_module or --without-hdb_module was given.
2002 if test "${with_hdb_module+set}" = set; then
2003 withval="$with_hdb_module"
2006 for ol_val in static dynamic ; do
2007 if test "$withval" = "$ol_val" ; then
2011 if test "$ol_arg" = "invalid" ; then
2012 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2014 ol_with_hdb_module="$ol_arg"
2017 ol_with_hdb_module="static"
2019 # end --with-hdb_module
2021 # OpenLDAP --enable-ldap
2022 # Check whether --enable-ldap or --disable-ldap was given.
2023 if test "${enable_ldap+set}" = set; then
2024 enableval="$enable_ldap"
2027 for ol_val in auto yes no ; do
2028 if test "$enableval" = "$ol_val" ; then
2032 if test "$ol_arg" = "invalid" ; then
2033 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2035 ol_enable_ldap="$ol_arg"
2041 # OpenLDAP --with-ldap_module
2042 # Check whether --with-ldap_module or --without-ldap_module was given.
2043 if test "${with_ldap_module+set}" = set; then
2044 withval="$with_ldap_module"
2047 for ol_val in static dynamic ; do
2048 if test "$withval" = "$ol_val" ; then
2052 if test "$ol_arg" = "invalid" ; then
2053 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2055 ol_with_ldap_module="$ol_arg"
2058 ol_with_ldap_module="static"
2060 # end --with-ldap_module
2062 # OpenLDAP --enable-ldbm
2063 # Check whether --enable-ldbm or --disable-ldbm was given.
2064 if test "${enable_ldbm+set}" = set; then
2065 enableval="$enable_ldbm"
2068 for ol_val in auto yes no ; do
2069 if test "$enableval" = "$ol_val" ; then
2073 if test "$ol_arg" = "invalid" ; then
2074 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2076 ol_enable_ldbm="$ol_arg"
2082 # OpenLDAP --with-ldbm_api
2083 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2084 if test "${with_ldbm_api+set}" = set; then
2085 withval="$with_ldbm_api"
2088 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2089 if test "$withval" = "$ol_val" ; then
2093 if test "$ol_arg" = "invalid" ; then
2094 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2096 ol_with_ldbm_api="$ol_arg"
2099 ol_with_ldbm_api="auto"
2101 # end --with-ldbm_api
2103 # OpenLDAP --with-ldbm_module
2104 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2105 if test "${with_ldbm_module+set}" = set; then
2106 withval="$with_ldbm_module"
2109 for ol_val in static dynamic ; do
2110 if test "$withval" = "$ol_val" ; then
2114 if test "$ol_arg" = "invalid" ; then
2115 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2117 ol_with_ldbm_module="$ol_arg"
2120 ol_with_ldbm_module="static"
2122 # end --with-ldbm_module
2124 # OpenLDAP --with-ldbm_type
2125 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2126 if test "${with_ldbm_type+set}" = set; then
2127 withval="$with_ldbm_type"
2130 for ol_val in auto btree hash ; do
2131 if test "$withval" = "$ol_val" ; then
2135 if test "$ol_arg" = "invalid" ; then
2136 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2138 ol_with_ldbm_type="$ol_arg"
2141 ol_with_ldbm_type="auto"
2143 # end --with-ldbm_type
2145 # OpenLDAP --enable-meta
2146 # Check whether --enable-meta or --disable-meta was given.
2147 if test "${enable_meta+set}" = set; then
2148 enableval="$enable_meta"
2151 for ol_val in auto yes no ; do
2152 if test "$enableval" = "$ol_val" ; then
2156 if test "$ol_arg" = "invalid" ; then
2157 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2159 ol_enable_meta="$ol_arg"
2165 # OpenLDAP --with-meta_module
2166 # Check whether --with-meta_module or --without-meta_module was given.
2167 if test "${with_meta_module+set}" = set; then
2168 withval="$with_meta_module"
2171 for ol_val in static dynamic ; do
2172 if test "$withval" = "$ol_val" ; then
2176 if test "$ol_arg" = "invalid" ; then
2177 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2179 ol_with_meta_module="$ol_arg"
2182 ol_with_meta_module="static"
2184 # end --with-meta_module
2186 # OpenLDAP --enable-monitor
2187 # Check whether --enable-monitor or --disable-monitor was given.
2188 if test "${enable_monitor+set}" = set; then
2189 enableval="$enable_monitor"
2192 for ol_val in auto yes no ; do
2193 if test "$enableval" = "$ol_val" ; then
2197 if test "$ol_arg" = "invalid" ; then
2198 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2200 ol_enable_monitor="$ol_arg"
2203 ol_enable_monitor="yes"
2205 # end --enable-monitor
2206 # OpenLDAP --with-monitor_module
2207 # Check whether --with-monitor_module or --without-monitor_module was given.
2208 if test "${with_monitor_module+set}" = set; then
2209 withval="$with_monitor_module"
2212 for ol_val in static dynamic ; do
2213 if test "$withval" = "$ol_val" ; then
2217 if test "$ol_arg" = "invalid" ; then
2218 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2220 ol_with_monitor_module="$ol_arg"
2223 ol_with_monitor_module="static"
2225 # end --with-monitor_module
2227 # OpenLDAP --enable-null
2228 # Check whether --enable-null or --disable-null was given.
2229 if test "${enable_null+set}" = set; then
2230 enableval="$enable_null"
2233 for ol_val in auto yes no ; do
2234 if test "$enableval" = "$ol_val" ; then
2238 if test "$ol_arg" = "invalid" ; then
2239 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2241 ol_enable_null="$ol_arg"
2247 # OpenLDAP --with-null_module
2248 # Check whether --with-null_module or --without-null_module was given.
2249 if test "${with_null_module+set}" = set; then
2250 withval="$with_null_module"
2253 for ol_val in static dynamic ; do
2254 if test "$withval" = "$ol_val" ; then
2258 if test "$ol_arg" = "invalid" ; then
2259 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2261 ol_with_null_module="$ol_arg"
2264 ol_with_null_module="static"
2266 # end --with-null_module
2268 # OpenLDAP --enable-passwd
2269 # Check whether --enable-passwd or --disable-passwd was given.
2270 if test "${enable_passwd+set}" = set; then
2271 enableval="$enable_passwd"
2274 for ol_val in auto yes no ; do
2275 if test "$enableval" = "$ol_val" ; then
2279 if test "$ol_arg" = "invalid" ; then
2280 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2282 ol_enable_passwd="$ol_arg"
2285 ol_enable_passwd="no"
2287 # end --enable-passwd
2288 # OpenLDAP --with-passwd_module
2289 # Check whether --with-passwd_module or --without-passwd_module was given.
2290 if test "${with_passwd_module+set}" = set; then
2291 withval="$with_passwd_module"
2294 for ol_val in static dynamic ; do
2295 if test "$withval" = "$ol_val" ; then
2299 if test "$ol_arg" = "invalid" ; then
2300 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2302 ol_with_passwd_module="$ol_arg"
2305 ol_with_passwd_module="static"
2307 # end --with-passwd_module
2309 # OpenLDAP --enable-perl
2310 # Check whether --enable-perl or --disable-perl was given.
2311 if test "${enable_perl+set}" = set; then
2312 enableval="$enable_perl"
2315 for ol_val in auto yes no ; do
2316 if test "$enableval" = "$ol_val" ; then
2320 if test "$ol_arg" = "invalid" ; then
2321 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2323 ol_enable_perl="$ol_arg"
2329 # OpenLDAP --with-perl_module
2330 # Check whether --with-perl_module or --without-perl_module was given.
2331 if test "${with_perl_module+set}" = set; then
2332 withval="$with_perl_module"
2335 for ol_val in static dynamic ; do
2336 if test "$withval" = "$ol_val" ; then
2340 if test "$ol_arg" = "invalid" ; then
2341 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2343 ol_with_perl_module="$ol_arg"
2346 ol_with_perl_module="static"
2348 # end --with-perl_module
2350 # OpenLDAP --enable-shell
2351 # Check whether --enable-shell or --disable-shell was given.
2352 if test "${enable_shell+set}" = set; then
2353 enableval="$enable_shell"
2356 for ol_val in auto yes no ; do
2357 if test "$enableval" = "$ol_val" ; then
2361 if test "$ol_arg" = "invalid" ; then
2362 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2364 ol_enable_shell="$ol_arg"
2367 ol_enable_shell="no"
2369 # end --enable-shell
2370 # OpenLDAP --with-shell_module
2371 # Check whether --with-shell_module or --without-shell_module was given.
2372 if test "${with_shell_module+set}" = set; then
2373 withval="$with_shell_module"
2376 for ol_val in static dynamic ; do
2377 if test "$withval" = "$ol_val" ; then
2381 if test "$ol_arg" = "invalid" ; then
2382 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2384 ol_with_shell_module="$ol_arg"
2387 ol_with_shell_module="static"
2389 # end --with-shell_module
2391 # OpenLDAP --enable-sql
2392 # Check whether --enable-sql or --disable-sql was given.
2393 if test "${enable_sql+set}" = set; then
2394 enableval="$enable_sql"
2397 for ol_val in auto yes no ; do
2398 if test "$enableval" = "$ol_val" ; then
2402 if test "$ol_arg" = "invalid" ; then
2403 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2405 ol_enable_sql="$ol_arg"
2411 # OpenLDAP --with-sql_module
2412 # Check whether --with-sql_module or --without-sql_module was given.
2413 if test "${with_sql_module+set}" = set; then
2414 withval="$with_sql_module"
2417 for ol_val in static dynamic ; do
2418 if test "$withval" = "$ol_val" ; then
2422 if test "$ol_arg" = "invalid" ; then
2423 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2425 ol_with_sql_module="$ol_arg"
2428 ol_with_sql_module="static"
2430 # end --with-sql_module
2432 # OpenLDAP --enable-tcl
2433 # Check whether --enable-tcl or --disable-tcl was given.
2434 if test "${enable_tcl+set}" = set; then
2435 enableval="$enable_tcl"
2438 for ol_val in auto yes no ; do
2439 if test "$enableval" = "$ol_val" ; then
2443 if test "$ol_arg" = "invalid" ; then
2444 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2446 ol_enable_tcl="$ol_arg"
2452 # OpenLDAP --with-tcl_module
2453 # Check whether --with-tcl_module or --without-tcl_module was given.
2454 if test "${with_tcl_module+set}" = set; then
2455 withval="$with_tcl_module"
2458 for ol_val in static dynamic ; do
2459 if test "$withval" = "$ol_val" ; then
2463 if test "$ol_arg" = "invalid" ; then
2464 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2466 ol_with_tcl_module="$ol_arg"
2469 ol_with_tcl_module="static"
2471 # end --with-tcl_module
2474 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2475 if test "${with_xxslurpdoptions+set}" = set; then
2476 withval="$with_xxslurpdoptions"
2480 # OpenLDAP --enable-slurpd
2481 # Check whether --enable-slurpd or --disable-slurpd was given.
2482 if test "${enable_slurpd+set}" = set; then
2483 enableval="$enable_slurpd"
2486 for ol_val in auto yes no ; do
2487 if test "$enableval" = "$ol_val" ; then
2491 if test "$ol_arg" = "invalid" ; then
2492 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2494 ol_enable_slurpd="$ol_arg"
2497 ol_enable_slurpd="auto"
2499 # end --enable-slurpd
2501 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2502 if test "${with_xxliboptions+set}" = set; then
2503 withval="$with_xxliboptions"
2507 # Check whether --enable-static or --disable-static was given.
2508 if test "${enable_static+set}" = set; then
2509 enableval="$enable_static"
2510 p=${PACKAGE-default}
2512 yes) enable_static=yes ;;
2513 no) enable_static=no ;;
2516 # Look at the argument we got. We use all the common list separators.
2517 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2518 for pkg in $enableval; do
2519 if test "X$pkg" = "X$p"; then
2530 # Check whether --enable-shared or --disable-shared was given.
2531 if test "${enable_shared+set}" = set; then
2532 enableval="$enable_shared"
2533 p=${PACKAGE-default}
2535 yes) enable_shared=yes ;;
2536 no) enable_shared=no ;;
2539 # Look at the argument we got. We use all the common list separators.
2540 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2541 for pkg in $enableval; do
2542 if test "X$pkg" = "X$p"; then
2556 if test $ol_enable_slapd = no ; then
2557 if test $ol_enable_slapi = yes ; then
2558 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2560 if test $ol_enable_bdb = yes ; then
2561 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2563 if test $ol_enable_dnssrv = yes ; then
2564 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2566 if test $ol_enable_hdb = yes ; then
2567 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2569 if test $ol_enable_ldap = yes ; then
2570 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2572 if test $ol_enable_ldbm = yes ; then
2573 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2575 if test $ol_enable_meta = yes ; then
2576 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2578 if test $ol_enable_monitor = yes ; then
2579 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2581 if test $ol_enable_null = yes ; then
2582 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2584 if test $ol_enable_passwd = yes ; then
2585 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2587 if test $ol_enable_perl = yes ; then
2588 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2590 if test $ol_enable_shell = yes ; then
2591 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2593 if test $ol_enable_tcl = yes ; then
2594 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2596 if test $ol_enable_sql = yes ; then
2597 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2599 if test $ol_enable_modules = yes ; then
2600 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2602 if test $ol_enable_multimaster = yes ; then
2603 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2605 if test $ol_enable_wrappers = yes ; then
2606 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2608 if test $ol_enable_rlookups = yes ; then
2609 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2611 if test $ol_enable_aci = yes ; then
2612 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2614 if test $ol_with_ldbm_api != auto ; then
2615 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2617 if test $ol_with_ldbm_type != auto ; then
2618 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2620 if test $ol_with_bdb_module != static ; then
2621 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2623 if test $ol_with_dnssrv_module != static ; then
2624 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2626 if test $ol_with_hdb_module != static ; then
2627 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2629 if test $ol_with_ldap_module != static ; then
2630 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2632 if test $ol_with_ldbm_module != static ; then
2633 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2635 if test $ol_with_meta_module != static ; then
2636 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2638 if test $ol_with_monitor_module != static ; then
2639 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2641 if test $ol_with_null_module != static ; then
2642 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2644 if test $ol_with_passwd_module != static ; then
2645 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2647 if test $ol_with_perl_module != static ; then
2648 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2650 if test $ol_with_shell_module != static ; then
2651 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2653 if test $ol_with_tcl_module != static ; then
2654 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2656 if test $ol_with_sql_module != static ; then
2657 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2659 if test $ol_enable_slurpd = yes ; then
2660 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2662 if test $ol_enable_rewrite = yes ; then
2663 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2666 # force settings to no
2674 ol_enable_monitor=no
2682 ol_enable_modules=no
2683 ol_enable_multimaster=no
2684 ol_enable_rlookups=no
2686 ol_enable_wrappers=no
2687 ol_enable_dynamic=no
2690 ol_with_ldbm_type=no
2692 ol_with_bdb_module=static
2693 ol_with_dnssrv_module=static
2694 ol_with_hdb_module=static
2695 ol_with_ldap_module=static
2696 ol_with_ldbm_module=static
2697 ol_with_meta_module=static
2698 ol_with_monitor_module=static
2699 ol_with_null_module=static
2700 ol_with_passwd_module=static
2701 ol_with_perl_module=static
2702 ol_with_shell_module=static
2703 ol_with_tcl_module=static
2704 ol_with_sql_module=static
2708 ol_enable_rewrite=no
2710 elif test $ol_enable_ldbm = no ; then
2712 if test $ol_with_ldbm_api != auto ; then
2713 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2716 if test $ol_with_ldbm_type != auto ; then
2717 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2720 if test $ol_with_ldbm_module != static ; then
2721 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2724 if test $ol_enable_modules != yes -a \
2725 $ol_enable_bdb = no -a \
2726 $ol_enable_dnssrv = no -a \
2727 $ol_enable_hdb = no -a \
2728 $ol_enable_ldap = no -a \
2729 $ol_enable_meta = no -a \
2730 $ol_enable_monitor = no -a \
2731 $ol_enable_null = no -a \
2732 $ol_enable_passwd = no -a \
2733 $ol_enable_perl = no -a \
2734 $ol_enable_shell = no -a \
2735 $ol_enable_sql = no -a \
2736 $ol_enable_tcl = no ; then
2738 if test $ol_enable_slapd = yes ; then
2739 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2741 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2747 ol_with_ldbm_type=no
2748 ol_with_ldbm_module=static
2750 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2751 ol_with_ldbm_api=berkeley
2755 if test $ol_with_ldbm_api = gdbm -a \
2756 $ol_with_ldbm_type = btree ; then
2757 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2759 if test $ol_with_ldbm_api = mdbm -a \
2760 $ol_with_ldbm_type = btree ; then
2761 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2763 if test $ol_with_ldbm_api = ndbm -a \
2764 $ol_with_ldbm_type = btree ; then
2765 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2768 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2769 if test $ol_with_ldbm_api = auto ; then
2770 ol_with_ldbm_api=berkeley
2771 elif test $ol_with_ldbm_api != berkeley ; then
2772 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2775 elif test $ol_enable_bdb = auto ; then
2776 if test $ol_with_ldbm_api != berkeley \
2777 -o $ol_with_ldbm_api != auto ; then
2778 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2784 if test $ol_enable_slurpd = yes ; then
2785 if test $ol_with_threads = no ; then
2786 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2790 if test $ol_enable_lmpasswd = yes ; then
2791 if test $ol_with_tls = no ; then
2792 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2796 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2797 if test $ol_with_kerberos = no ; then
2798 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2799 elif test $ol_with_kerberos = auto ; then
2800 ol_with_kerberos=yes
2803 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2804 if test $ol_with_kerberos = auto ; then
2806 elif test $ol_with_kerberos != no ; then
2807 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2812 if test $ol_enable_spasswd = yes ; then
2813 if test $ol_with_cyrus_sasl = no ; then
2814 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2816 ol_with_cyrus_sasl=yes
2819 echo "$ac_t""done" 1>&6
2852 BUILD_BDB_DYNAMIC=static
2853 BUILD_DNSSRV_DYNAMIC=static
2854 BUILD_HDB_DYNAMIC=static
2855 BUILD_LDAP_DYNAMIC=static
2856 BUILD_LDBM_DYNAMIC=static
2857 BUILD_META_DYNAMIC=static
2858 BUILD_MONITOR_DYNAMIC=static
2859 BUILD_NULL_DYNAMIC=static
2860 BUILD_PASSWD_DYNAMIC=static
2861 BUILD_PERL_DYNAMIC=static
2862 BUILD_SHELL_DYNAMIC=static
2863 BUILD_TCL_DYNAMIC=static
2864 BUILD_SQL_DYNAMIC=static
2866 SLAPD_MODULES_LDFLAGS=
2867 SLAPD_MODULES_CPPFLAGS=
2869 SLAPD_STATIC_BACKENDS=
2870 SLAPD_DYNAMIC_BACKENDS=
2895 # Find a good install program. We prefer a C program (faster),
2896 # so one script is as good as another. But avoid the broken or
2897 # incompatible versions:
2898 # SysV /etc/install, /usr/sbin/install
2899 # SunOS /usr/etc/install
2900 # IRIX /sbin/install
2902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2907 echo "configure:2908: checking for a BSD compatible install" >&5
2908 if test -z "$INSTALL"; then
2909 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2912 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2913 for ac_dir in $PATH; do
2914 # Account for people who put trailing slashes in PATH elements.
2916 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2918 # OSF1 and SCO ODT 3.0 have their own names for install.
2919 # Don't use installbsd from OSF since it installs stuff as root
2921 for ac_prog in ginstall scoinst install; do
2922 if test -f $ac_dir/$ac_prog; then
2923 if test $ac_prog = install &&
2924 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2925 # AIX install. It has an incompatible calling convention.
2927 elif test $ac_prog = install &&
2928 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2929 # program-specific install script used by HP pwplus--don't use.
2932 ac_cv_path_install="$ac_dir/$ac_prog -c"
2943 if test "${ac_cv_path_install+set}" = set; then
2944 INSTALL="$ac_cv_path_install"
2946 # As a last resort, use the slow shell script. We don't cache a
2947 # path for INSTALL within a source directory, because that will
2948 # break other packages using the cache if that directory is
2949 # removed, or if the path is relative.
2950 INSTALL="$ac_install_sh"
2953 echo "$ac_t""$INSTALL" 1>&6
2955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2956 # It thinks the first close brace ends the variable substitution.
2957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2964 cat >> confdefs.h <<\EOF
2965 #define HAVE_MKVERSION 1
2973 *-*-aix*) if test -z "$CC" ; then
2974 case "$ol_with_threads" in
2975 auto | yes | posix) ol_aix_threads=yes ;;
2981 if test $ol_aix_threads = yes ; then
2982 if test -z "${CC}" ; then
2983 for ac_prog in cc_r xlc_r cc
2985 # Extract the first word of "$ac_prog", so it can be a program name with args.
2986 set dummy $ac_prog; ac_word=$2
2987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2988 echo "configure:2989: checking for $ac_word" >&5
2989 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2995 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2997 for ac_dir in $ac_dummy; do
2998 test -z "$ac_dir" && ac_dir=.
2999 if test -f $ac_dir/$ac_word; then
3000 ac_cv_prog_CC="$ac_prog"
3008 if test -n "$CC"; then
3009 echo "$ac_t""$CC" 1>&6
3011 echo "$ac_t""no" 1>&6
3014 test -n "$CC" && break
3018 if test "$CC" = cc ; then
3019 if test $ol_with_threads != auto ; then
3020 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3022 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3028 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3029 ol_with_threads=posix
3030 ol_cv_pthread_create=yes
3034 if test -z "${CC}"; then
3035 for ac_prog in cc gcc
3037 # Extract the first word of "$ac_prog", so it can be a program name with args.
3038 set dummy $ac_prog; ac_word=$2
3039 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_word" >&5
3041 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3047 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3049 for ac_dir in $ac_dummy; do
3050 test -z "$ac_dir" && ac_dir=.
3051 if test -f $ac_dir/$ac_word; then
3052 ac_cv_prog_CC="$ac_prog"
3060 if test -n "$CC"; then
3061 echo "$ac_t""$CC" 1>&6
3063 echo "$ac_t""no" 1>&6
3066 test -n "$CC" && break
3068 test -n "$CC" || CC="missing"
3071 if test "${CC}" = "missing" ; then
3072 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3076 if test -z "${AR}"; then
3077 for ac_prog in ar gar
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3082 echo "configure:3083: checking for $ac_word" >&5
3083 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 if test -n "$AR"; then
3087 ac_cv_prog_AR="$AR" # Let the user override the test.
3089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3091 for ac_dir in $ac_dummy; do
3092 test -z "$ac_dir" && ac_dir=.
3093 if test -f $ac_dir/$ac_word; then
3094 ac_cv_prog_AR="$ac_prog"
3102 if test -n "$AR"; then
3103 echo "$ac_t""$AR" 1>&6
3105 echo "$ac_t""no" 1>&6
3108 test -n "$AR" && break
3110 test -n "$AR" || AR="missing"
3113 if test "${AR}" = "missing" ; then
3114 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3120 # Find the correct PATH separator. Usually this is `:', but
3121 # DJGPP uses `;' like DOS.
3122 if test "X${PATH_SEPARATOR+set}" != Xset; then
3123 UNAME=${UNAME-`uname 2>/dev/null`}
3125 *-DOS) lt_cv_sys_path_separator=';' ;;
3126 *) lt_cv_sys_path_separator=':' ;;
3128 PATH_SEPARATOR=$lt_cv_sys_path_separator
3131 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3132 echo "configure:3133: checking for Cygwin environment" >&5
3133 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 cat > conftest.$ac_ext <<EOF
3137 #line 3138 "configure"
3138 #include "confdefs.h"
3143 #define __CYGWIN__ __CYGWIN32__
3148 if { (eval echo configure:3149: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3152 echo "configure: failed program was:" >&5
3153 cat conftest.$ac_ext >&5
3160 echo "$ac_t""$ac_cv_cygwin" 1>&6
3162 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3163 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3164 echo "configure:3165: checking for mingw32 environment" >&5
3165 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 cat > conftest.$ac_ext <<EOF
3169 #line 3170 "configure"
3170 #include "confdefs.h"
3176 if { (eval echo configure:3177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3180 echo "configure: failed program was:" >&5
3181 cat conftest.$ac_ext >&5
3188 echo "$ac_t""$ac_cv_mingw32" 1>&6
3190 test "$ac_cv_mingw32" = yes && MINGW32=yes
3191 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3192 echo "configure:3193: checking for EMX OS/2 environment" >&5
3193 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3204 if { (eval echo configure:3205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3216 echo "$ac_t""$ac_cv_emxos2" 1>&6
3218 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3219 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3220 echo "configure:3221: checking how to run the C preprocessor" >&5
3221 # On Suns, sometimes $CPP names a directory.
3222 if test -n "$CPP" && test -d "$CPP"; then
3225 if test -z "$CPP"; then
3226 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 # This must be in double quotes, not single quotes, because CPP may get
3230 # substituted into the Makefile and "${CC-cc}" will confuse make.
3232 # On the NeXT, cc -E runs the code through the compiler's parser,
3233 # not just through cpp.
3234 cat > conftest.$ac_ext <<EOF
3235 #line 3236 "configure"
3236 #include "confdefs.h"
3240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3241 { (eval echo configure:3242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3243 if test -z "$ac_err"; then
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3250 CPP="${CC-cc} -E -traditional-cpp"
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3257 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3258 { (eval echo configure:3259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3259 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3260 if test -z "$ac_err"; then
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3267 CPP="${CC-cc} -nologo -E"
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3275 { (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3277 if test -z "$ac_err"; then
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3291 ac_cv_prog_CPP="$CPP"
3293 CPP="$ac_cv_prog_CPP"
3295 ac_cv_prog_CPP="$CPP"
3297 echo "$ac_t""$CPP" 1>&6
3299 # Check whether --enable-fast-install or --disable-fast-install was given.
3300 if test "${enable_fast_install+set}" = set; then
3301 enableval="$enable_fast_install"
3302 p=${PACKAGE-default}
3304 yes) enable_fast_install=yes ;;
3305 no) enable_fast_install=no ;;
3307 enable_fast_install=no
3308 # Look at the argument we got. We use all the common list separators.
3309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3310 for pkg in $enableval; do
3311 if test "X$pkg" = "X$p"; then
3312 enable_fast_install=yes
3319 enable_fast_install=yes
3322 # Extract the first word of "gcc", so it can be a program name with args.
3323 set dummy gcc; ac_word=$2
3324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3325 echo "configure:3326: checking for $ac_word" >&5
3326 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3327 echo $ac_n "(cached) $ac_c" 1>&6
3329 if test -n "$CC"; then
3330 ac_cv_prog_CC="$CC" # Let the user override the test.
3332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3334 for ac_dir in $ac_dummy; do
3335 test -z "$ac_dir" && ac_dir=.
3336 if test -f $ac_dir/$ac_word; then
3345 if test -n "$CC"; then
3346 echo "$ac_t""$CC" 1>&6
3348 echo "$ac_t""no" 1>&6
3351 if test -z "$CC"; then
3352 # Extract the first word of "cc", so it can be a program name with args.
3353 set dummy cc; ac_word=$2
3354 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3355 echo "configure:3356: checking for $ac_word" >&5
3356 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 if test -n "$CC"; then
3360 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3365 for ac_dir in $ac_dummy; do
3366 test -z "$ac_dir" && ac_dir=.
3367 if test -f $ac_dir/$ac_word; then
3368 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3369 ac_prog_rejected=yes
3377 if test $ac_prog_rejected = yes; then
3378 # We found a bogon in the path, so make sure we never use it.
3379 set dummy $ac_cv_prog_CC
3381 if test $# -gt 0; then
3382 # We chose a different compiler from the bogus one.
3383 # However, it has the same basename, so the bogon will be chosen
3384 # first if we set CC to just the basename; use the full file name.
3386 set dummy "$ac_dir/$ac_word" "$@"
3394 if test -n "$CC"; then
3395 echo "$ac_t""$CC" 1>&6
3397 echo "$ac_t""no" 1>&6
3400 if test -z "$CC"; then
3401 case "`uname -s`" in
3402 *win32* | *WIN32* | *CYGWIN*)
3403 # Extract the first word of "cl", so it can be a program name with args.
3404 set dummy cl; ac_word=$2
3405 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3406 echo "configure:3407: checking for $ac_word" >&5
3407 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3415 for ac_dir in $ac_dummy; do
3416 test -z "$ac_dir" && ac_dir=.
3417 if test -f $ac_dir/$ac_word; then
3426 if test -n "$CC"; then
3427 echo "$ac_t""$CC" 1>&6
3429 echo "$ac_t""no" 1>&6
3434 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3437 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3438 echo "configure:3439: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3441 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3444 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3445 cross_compiling=$ac_cv_prog_cc_cross
3447 cat > conftest.$ac_ext << EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3454 if { (eval echo configure:3455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3455 ac_cv_prog_cc_works=yes
3456 # If we can't run a trivial program, we are probably using a cross compiler.
3457 if (./conftest; exit) 2>/dev/null; then
3458 ac_cv_prog_cc_cross=no
3460 ac_cv_prog_cc_cross=yes
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3465 ac_cv_prog_cc_works=no
3469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3473 cross_compiling=$ac_cv_prog_cc_cross
3475 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3476 if test $ac_cv_prog_cc_works = no; then
3477 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3479 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3480 echo "configure:3481: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3481 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3482 cross_compiling=$ac_cv_prog_cc_cross
3484 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3485 echo "configure:3486: checking whether we are using GNU C" >&5
3486 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3489 cat > conftest.c <<EOF
3494 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3501 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3503 if test $ac_cv_prog_gcc = yes; then
3509 ac_test_CFLAGS="${CFLAGS+set}"
3510 ac_save_CFLAGS="$CFLAGS"
3512 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3513 echo "configure:3514: checking whether ${CC-cc} accepts -g" >&5
3514 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3517 echo 'void f(){}' > conftest.c
3518 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3527 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3528 if test "$ac_test_CFLAGS" = set; then
3529 CFLAGS="$ac_save_CFLAGS"
3530 elif test $ac_cv_prog_cc_g = yes; then
3531 if test "$GCC" = yes; then
3537 if test "$GCC" = yes; then
3544 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3545 if test "${with_gnu_ld+set}" = set; then
3546 withval="$with_gnu_ld"
3547 test "$withval" = no || with_gnu_ld=yes
3553 if test "$GCC" = yes; then
3554 # Check if gcc -print-prog-name=ld gives a path.
3555 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3556 echo "configure:3557: checking for ld used by GCC" >&5
3559 # gcc leaves a trailing carriage return which upsets mingw
3560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3565 # Accept absolute paths.
3566 [\\/]* | [A-Za-z]:[\\/]*)
3567 re_direlt='/[^/][^/]*/\.\./'
3568 # Canonicalize the path of ld
3569 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3570 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3571 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3573 test -z "$LD" && LD="$ac_prog"
3576 # If it fails, then pretend we aren't using GCC.
3580 # If it is relative, then search for the first ld in PATH.
3584 elif test "$with_gnu_ld" = yes; then
3585 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3586 echo "configure:3587: checking for GNU ld" >&5
3588 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3589 echo "configure:3590: checking for non-GNU ld" >&5
3591 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 if test -z "$LD"; then
3595 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3596 for ac_dir in $PATH; do
3597 test -z "$ac_dir" && ac_dir=.
3598 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3599 lt_cv_path_LD="$ac_dir/$ac_prog"
3600 # Check to see if the program is GNU ld. I'd rather use --version,
3601 # but apparently some GNU ld's only accept -v.
3602 # Break only if it was the GNU/non-GNU ld that we prefer.
3603 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3604 test "$with_gnu_ld" != no && break
3606 test "$with_gnu_ld" != yes && break
3612 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3617 if test -n "$LD"; then
3618 echo "$ac_t""$LD" 1>&6
3620 echo "$ac_t""no" 1>&6
3622 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3623 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3624 echo "configure:3625: checking if the linker ($LD) is GNU ld" >&5
3625 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3626 echo $ac_n "(cached) $ac_c" 1>&6
3628 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3629 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3630 lt_cv_prog_gnu_ld=yes
3632 lt_cv_prog_gnu_ld=no
3636 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3637 with_gnu_ld=$lt_cv_prog_gnu_ld
3640 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3641 echo "configure:3642: checking for $LD option to reload object files" >&5
3642 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3645 lt_cv_ld_reload_flag='-r'
3648 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3649 reload_flag=$lt_cv_ld_reload_flag
3650 test -n "$reload_flag" && reload_flag=" $reload_flag"
3652 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3653 echo "configure:3654: checking for BSD-compatible nm" >&5
3654 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3655 echo $ac_n "(cached) $ac_c" 1>&6
3657 if test -n "$NM"; then
3658 # Let the user override the test.
3661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3662 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3663 test -z "$ac_dir" && ac_dir=.
3664 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3665 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3666 # Check to see if the nm accepts a BSD-compat flag.
3667 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3668 # nm: unknown option "B" ignored
3669 # Tru64's nm complains that /dev/null is an invalid object file
3670 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3671 lt_cv_path_NM="$tmp_nm -B"
3673 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3674 lt_cv_path_NM="$tmp_nm -p"
3677 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3678 continue # so that we can try to find one that supports BSD flags
3683 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3688 echo "$ac_t""$NM" 1>&6
3690 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3691 echo "configure:3692: checking for a sed that does not truncate output" >&5
3692 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3693 echo $ac_n "(cached) $ac_c" 1>&6
3695 # Loop through the user's path and test for sed and gsed.
3696 # Then use that list of sed's as ones to test for truncation.
3697 as_executable_p="test -f"
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 test -z "$as_dir" && as_dir=.
3703 for ac_prog in sed gsed; do
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3706 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3712 # Create a temporary directory, and hook for its removal unless debugging.
3715 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3716 trap '{ (exit 1); exit 1; }' 1 2 13 15
3719 # Create a (secure) tmp directory for tmp files.
3722 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3723 test -n "$tmp" && test -d "$tmp"
3726 tmp=$TMPDIR/sed$$-$RANDOM
3727 (umask 077 && mkdir $tmp)
3730 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3731 { (exit 1); exit 1; }
3735 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3736 # along with /bin/sed that truncates output.
3737 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3738 test ! -f ${_sed} && break
3739 cat /dev/null > "$tmp/sed.in"
3741 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3742 # Check for GNU sed and select it if it is found.
3743 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3744 lt_cv_path_SED=${_sed}
3748 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3749 mv "$tmp/sed.tmp" "$tmp/sed.in"
3750 cp "$tmp/sed.in" "$tmp/sed.nl"
3751 echo >>"$tmp/sed.nl"
3752 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3753 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3754 # 40000 chars as input seems more than enough
3755 test $_count -gt 10 && break
3756 _count=`expr $_count + 1`
3757 if test $_count -gt $_max; then
3759 lt_cv_path_SED=$_sed
3767 if test "X$SED" != "X"; then
3772 echo "$ac_t""$SED" 1>&6
3774 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3775 echo "configure:3776: checking whether ln -s works" >&5
3776 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3777 echo $ac_n "(cached) $ac_c" 1>&6
3780 if ln -s X conftestdata 2>/dev/null
3783 ac_cv_prog_LN_S="ln -s"
3788 LN_S="$ac_cv_prog_LN_S"
3789 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3790 echo "$ac_t""yes" 1>&6
3792 echo "$ac_t""no" 1>&6
3795 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3796 echo "configure:3797: checking how to recognise dependent libraries" >&5
3797 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3800 lt_cv_file_magic_cmd='$MAGIC_CMD'
3801 lt_cv_file_magic_test_file=
3802 lt_cv_deplibs_check_method='unknown'
3803 # Need to set the preceding variable on all platforms that support
3804 # interlibrary dependencies.
3805 # 'none' -- dependencies not supported.
3806 # `unknown' -- same as none, but documents that we really don't know.
3807 # 'pass_all' -- all dependencies passed with no checks.
3808 # 'test_compile' -- check by making test program.
3809 # 'file_magic [[regex]]' -- check by looking for files in library path
3810 # which responds to the $file_magic_cmd with a given egrep regex.
3811 # If you have `file' or equivalent on your system and you're not sure
3812 # whether `pass_all' will *always* work, you probably want this one.
3816 lt_cv_deplibs_check_method=pass_all
3820 lt_cv_deplibs_check_method=pass_all
3824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3825 lt_cv_file_magic_cmd='/usr/bin/file -L'
3826 lt_cv_file_magic_test_file=/shlib/libc.so
3829 cygwin* | mingw* | pw32*)
3830 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3831 lt_cv_file_magic_cmd='$OBJDUMP -f'
3834 darwin* | rhapsody*)
3835 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3836 lt_cv_file_magic_cmd='/usr/bin/file -L'
3838 rhapsody* | darwin1.[012])
3839 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3842 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3848 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3851 # Not sure whether the presence of OpenBSD here was a mistake.
3852 # Let's accept both of them until this is cleared up.
3853 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3854 lt_cv_file_magic_cmd=/usr/bin/file
3855 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3859 lt_cv_deplibs_check_method=pass_all
3864 lt_cv_deplibs_check_method=pass_all
3868 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3869 lt_cv_file_magic_cmd=/usr/bin/file
3870 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3873 irix5* | irix6* | nonstopux*)
3875 irix5* | nonstopux*)
3876 # this will be overridden with pass_all, but let us keep it just in case
3877 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3881 *-32|*"-32 ") libmagic=32-bit;;
3882 *-n32|*"-n32 ") libmagic=N32;;
3883 *-64|*"-64 ") libmagic=64-bit;;
3884 *) libmagic=never-match;;
3886 # this will be overridden with pass_all, but let us keep it just in case
3887 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3890 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3891 lt_cv_deplibs_check_method=pass_all
3894 # This must be Linux ELF.
3897 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3898 lt_cv_deplibs_check_method=pass_all ;;
3900 # glibc up to 2.1.1 does not perform some relocations on ARM
3901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3903 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3907 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3908 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3910 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3915 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3916 lt_cv_file_magic_cmd=/usr/bin/file
3917 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3921 lt_cv_file_magic_cmd=/usr/bin/file
3922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3923 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3926 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3930 osf3* | osf4* | osf5*)
3931 # this will be overridden with pass_all, but let us keep it just in case
3932 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3933 lt_cv_file_magic_test_file=/shlib/libc.so
3934 lt_cv_deplibs_check_method=pass_all
3938 lt_cv_deplibs_check_method=pass_all
3942 lt_cv_deplibs_check_method=pass_all
3943 lt_cv_file_magic_test_file=/lib/libc.so
3946 sysv5uw[78]* | sysv4*uw2*)
3947 lt_cv_deplibs_check_method=pass_all
3950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3951 case $host_vendor in
3953 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]'
3954 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3957 lt_cv_deplibs_check_method=pass_all
3960 lt_cv_file_magic_cmd='/bin/file'
3961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3964 lt_cv_file_magic_cmd='/bin/file'
3965 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3966 lt_cv_file_magic_test_file=/lib/libc.so
3969 lt_cv_deplibs_check_method=pass_all
3977 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3978 file_magic_cmd=$lt_cv_file_magic_cmd
3979 deplibs_check_method=$lt_cv_deplibs_check_method
3981 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3982 echo "configure:3983: checking for object suffix" >&5
3983 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3984 echo $ac_n "(cached) $ac_c" 1>&6
3987 echo 'int i = 1;' > conftest.$ac_ext
3988 if { (eval echo configure:3989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3989 for ac_file in conftest.*; do
3992 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3996 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4001 echo "$ac_t""$ac_cv_objext" 1>&6
4002 OBJEXT=$ac_cv_objext
4003 ac_objext=$ac_cv_objext
4008 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4009 echo "configure:4010: checking for executable suffix" >&5
4010 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4011 echo $ac_n "(cached) $ac_c" 1>&6
4013 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4017 echo 'int main () { return 0; }' > conftest.$ac_ext
4019 if { (eval echo configure:4020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4020 for file in conftest.*; do
4022 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4023 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4027 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4030 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4035 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4036 echo "$ac_t""${ac_cv_exeext}" 1>&6
4039 if test $host != $build; then
4040 ac_tool_prefix=${host_alias}-
4048 # Check for command to grab the raw symbol name followed by C symbol from nm.
4049 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4050 echo "configure:4051: checking command to parse $NM output" >&5
4051 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4052 echo $ac_n "(cached) $ac_c" 1>&6
4055 # These are sane defaults that work on at least a few old systems.
4056 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4058 # Character class describing NM global symbol codes.
4059 symcode='[BCDEGRST]'
4061 # Regexp to match symbols that can be accessed directly from C.
4062 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4064 # Transform the above into a raw symbol and a C symbol.
4065 symxfrm='\1 \2\3 \3'
4067 # Transform an extracted symbol line into a proper C declaration
4068 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4070 # Transform an extracted symbol line into symbol name and symbol address
4071 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'"
4073 # Define system-specific variables.
4078 cygwin* | mingw* | pw32*)
4079 symcode='[ABCDGISTW]'
4081 hpux*) # Its linker distinguishes data from code symbols
4082 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4083 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'"
4086 symcode='[BCDEGRST]'
4089 symcode='[BCDEGQRST]'
4099 # Handle CRLF in mingw tool chain
4103 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4107 # If we're using GNU nm, then use its standard symbol codes.
4108 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4109 symcode='[ABCDGISTW]'
4112 # Try without a prefix undercore, then with it.
4113 for ac_symprfx in "" "_"; do
4115 # Write the raw and C identifiers.
4116 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4118 # Check to see that the pipe works correctly.
4121 cat > conftest.$ac_ext <<EOF
4126 void nm_test_func(){}
4130 int main(){nm_test_var='a';nm_test_func();return(0);}
4133 if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4134 # Now try to grab the symbols.
4136 if { (eval echo configure:4137: \"$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
4137 # Try sorting and uniquifying the output.
4138 if sort "$nlist" | uniq > "$nlist"T; then
4139 mv -f "$nlist"T "$nlist"
4144 # Make sure that we snagged all the symbols we need.
4145 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4146 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4147 cat <<EOF > conftest.$ac_ext
4153 # Now generate the symbol file.
4154 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4156 cat <<EOF >> conftest.$ac_ext
4157 #if defined (__STDC__) && __STDC__
4158 # define lt_ptr void *
4160 # define lt_ptr char *
4164 /* The mapping between symbol names and symbols. */
4169 lt_preloaded_symbols[] =
4172 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4173 cat <<\EOF >> conftest.$ac_ext
4181 # Now try linking the two files.
4182 mv conftest.$ac_objext conftstm.$ac_objext
4184 save_CFLAGS="$CFLAGS"
4185 LIBS="conftstm.$ac_objext"
4186 CFLAGS="$CFLAGS$no_builtin_flag"
4187 if { (eval echo configure:4188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4191 CFLAGS="$save_CFLAGS"
4193 echo "cannot find nm_test_func in $nlist" >&5
4196 echo "cannot find nm_test_var in $nlist" >&5
4199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4202 echo "$progname: failed program was:" >&5
4203 cat conftest.$ac_ext >&5
4205 rm -f conftest* conftst*
4207 # Do not use the global_symbol_pipe unless it works.
4208 if test "$pipe_works" = yes; then
4211 lt_cv_sys_global_symbol_pipe=
4217 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4218 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4219 global_symbol_to_cdecl=
4220 global_symbol_to_c_name_address=
4222 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4223 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4225 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4227 echo "$ac_t""failed" 1>&6
4229 echo "$ac_t""ok" 1>&6
4232 for ac_hdr in dlfcn.h
4234 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4235 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4236 echo "configure:4237: checking for $ac_hdr" >&5
4237 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4238 echo $ac_n "(cached) $ac_c" 1>&6
4240 cat > conftest.$ac_ext <<EOF
4241 #line 4242 "configure"
4242 #include "confdefs.h"
4245 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4246 { (eval echo configure:4247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4247 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4248 if test -z "$ac_err"; then
4250 eval "ac_cv_header_$ac_safe=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_header_$ac_safe=no"
4260 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4263 cat >> confdefs.h <<EOF
4264 #define $ac_tr_hdr 1
4268 echo "$ac_t""no" 1>&6
4277 # Only perform the check for file, if the check method requires it
4278 case $deplibs_check_method in
4280 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4281 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4282 echo "configure:4283: checking for ${ac_tool_prefix}file" >&5
4283 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4284 echo $ac_n "(cached) $ac_c" 1>&6
4288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4294 ac_save_MAGIC_CMD="$MAGIC_CMD"
4295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4296 ac_dummy="/usr/bin:$PATH"
4297 for ac_dir in $ac_dummy; do
4298 test -z "$ac_dir" && ac_dir=.
4299 if test -f $ac_dir/${ac_tool_prefix}file; then
4300 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4301 if test -n "$file_magic_test_file"; then
4302 case $deplibs_check_method in
4304 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4305 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4306 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4307 egrep "$file_magic_regex" > /dev/null; then
4312 *** Warning: the command libtool uses to detect shared libraries,
4313 *** $file_magic_cmd, produces output that libtool cannot recognize.
4314 *** The result is that libtool may fail to recognize shared libraries
4315 *** as such. This will affect the creation of libtool libraries that
4316 *** depend on shared libraries, but programs linked with such libtool
4317 *** libraries will work regardless of this problem. Nevertheless, you
4318 *** may want to report the problem to your system manager and/or to
4319 *** bug-libtool@gnu.org
4329 MAGIC_CMD="$ac_save_MAGIC_CMD"
4334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4335 if test -n "$MAGIC_CMD"; then
4336 echo "$ac_t""$MAGIC_CMD" 1>&6
4338 echo "$ac_t""no" 1>&6
4341 if test -z "$lt_cv_path_MAGIC_CMD"; then
4342 if test -n "$ac_tool_prefix"; then
4343 echo $ac_n "checking for file""... $ac_c" 1>&6
4344 echo "configure:4345: checking for file" >&5
4345 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4346 echo $ac_n "(cached) $ac_c" 1>&6
4350 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4353 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4356 ac_save_MAGIC_CMD="$MAGIC_CMD"
4357 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4358 ac_dummy="/usr/bin:$PATH"
4359 for ac_dir in $ac_dummy; do
4360 test -z "$ac_dir" && ac_dir=.
4361 if test -f $ac_dir/file; then
4362 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4363 if test -n "$file_magic_test_file"; then
4364 case $deplibs_check_method in
4366 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4369 egrep "$file_magic_regex" > /dev/null; then
4374 *** Warning: the command libtool uses to detect shared libraries,
4375 *** $file_magic_cmd, produces output that libtool cannot recognize.
4376 *** The result is that libtool may fail to recognize shared libraries
4377 *** as such. This will affect the creation of libtool libraries that
4378 *** depend on shared libraries, but programs linked with such libtool
4379 *** libraries will work regardless of this problem. Nevertheless, you
4380 *** may want to report the problem to your system manager and/or to
4381 *** bug-libtool@gnu.org
4391 MAGIC_CMD="$ac_save_MAGIC_CMD"
4396 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4397 if test -n "$MAGIC_CMD"; then
4398 echo "$ac_t""$MAGIC_CMD" 1>&6
4400 echo "$ac_t""no" 1>&6
4412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4414 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4415 echo "configure:4416: checking for $ac_word" >&5
4416 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 if test -n "$RANLIB"; then
4420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4422 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4424 for ac_dir in $ac_dummy; do
4425 test -z "$ac_dir" && ac_dir=.
4426 if test -f $ac_dir/$ac_word; then
4427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4434 RANLIB="$ac_cv_prog_RANLIB"
4435 if test -n "$RANLIB"; then
4436 echo "$ac_t""$RANLIB" 1>&6
4438 echo "$ac_t""no" 1>&6
4442 if test -z "$ac_cv_prog_RANLIB"; then
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "ranlib", so it can be a program name with args.
4445 set dummy ranlib; ac_word=$2
4446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_word" >&5
4448 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 if test -n "$RANLIB"; then
4452 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4456 for ac_dir in $ac_dummy; do
4457 test -z "$ac_dir" && ac_dir=.
4458 if test -f $ac_dir/$ac_word; then
4459 ac_cv_prog_RANLIB="ranlib"
4464 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4467 RANLIB="$ac_cv_prog_RANLIB"
4468 if test -n "$RANLIB"; then
4469 echo "$ac_t""$RANLIB" 1>&6
4471 echo "$ac_t""no" 1>&6
4479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4480 set dummy ${ac_tool_prefix}strip; ac_word=$2
4481 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4482 echo "configure:4483: checking for $ac_word" >&5
4483 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4486 if test -n "$STRIP"; then
4487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4489 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4491 for ac_dir in $ac_dummy; do
4492 test -z "$ac_dir" && ac_dir=.
4493 if test -f $ac_dir/$ac_word; then
4494 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4501 STRIP="$ac_cv_prog_STRIP"
4502 if test -n "$STRIP"; then
4503 echo "$ac_t""$STRIP" 1>&6
4505 echo "$ac_t""no" 1>&6
4509 if test -z "$ac_cv_prog_STRIP"; then
4510 if test -n "$ac_tool_prefix"; then
4511 # Extract the first word of "strip", so it can be a program name with args.
4512 set dummy strip; ac_word=$2
4513 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4514 echo "configure:4515: checking for $ac_word" >&5
4515 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 if test -n "$STRIP"; then
4519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4521 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4523 for ac_dir in $ac_dummy; do
4524 test -z "$ac_dir" && ac_dir=.
4525 if test -f $ac_dir/$ac_word; then
4526 ac_cv_prog_STRIP="strip"
4531 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4534 STRIP="$ac_cv_prog_STRIP"
4535 if test -n "$STRIP"; then
4536 echo "$ac_t""$STRIP" 1>&6
4538 echo "$ac_t""no" 1>&6
4548 enable_win32_dll=yes
4550 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4551 if test "${enable_libtool_lock+set}" = set; then
4552 enableval="$enable_libtool_lock"
4556 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4558 # Some flags need to be propagated to the compiler or linker for good
4562 # Find out which ABI we are using.
4563 echo '#line 4564 "configure"' > conftest.$ac_ext
4564 if { (eval echo configure:4565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4565 case `/usr/bin/file conftest.$ac_objext` in
4581 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4582 SAVE_CFLAGS="$CFLAGS"
4583 CFLAGS="$CFLAGS -belf"
4584 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4585 echo "configure:4586: checking whether the C compiler needs -belf" >&5
4586 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4592 ac_cpp='$CPP $CPPFLAGS'
4593 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4594 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4595 cross_compiling=$ac_cv_prog_cc_cross
4597 cat > conftest.$ac_ext <<EOF
4598 #line 4599 "configure"
4599 #include "confdefs.h"
4605 if { (eval echo configure:4606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4607 lt_cv_cc_needs_belf=yes
4609 echo "configure: failed program was:" >&5
4610 cat conftest.$ac_ext >&5
4612 lt_cv_cc_needs_belf=no
4616 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4619 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4620 cross_compiling=$ac_cv_prog_cc_cross
4624 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4625 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4627 CFLAGS="$SAVE_CFLAGS"
4631 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4632 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4634 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4635 echo "configure:4636: checking for $ac_word" >&5
4636 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4639 if test -n "$DLLTOOL"; then
4640 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4644 for ac_dir in $ac_dummy; do
4645 test -z "$ac_dir" && ac_dir=.
4646 if test -f $ac_dir/$ac_word; then
4647 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4654 DLLTOOL="$ac_cv_prog_DLLTOOL"
4655 if test -n "$DLLTOOL"; then
4656 echo "$ac_t""$DLLTOOL" 1>&6
4658 echo "$ac_t""no" 1>&6
4662 if test -z "$ac_cv_prog_DLLTOOL"; then
4663 if test -n "$ac_tool_prefix"; then
4664 # Extract the first word of "dlltool", so it can be a program name with args.
4665 set dummy dlltool; ac_word=$2
4666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_word" >&5
4668 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 if test -n "$DLLTOOL"; then
4672 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4676 for ac_dir in $ac_dummy; do
4677 test -z "$ac_dir" && ac_dir=.
4678 if test -f $ac_dir/$ac_word; then
4679 ac_cv_prog_DLLTOOL="dlltool"
4684 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4687 DLLTOOL="$ac_cv_prog_DLLTOOL"
4688 if test -n "$DLLTOOL"; then
4689 echo "$ac_t""$DLLTOOL" 1>&6
4691 echo "$ac_t""no" 1>&6
4699 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4700 set dummy ${ac_tool_prefix}as; ac_word=$2
4701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4702 echo "configure:4703: checking for $ac_word" >&5
4703 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4704 echo $ac_n "(cached) $ac_c" 1>&6
4706 if test -n "$AS"; then
4707 ac_cv_prog_AS="$AS" # Let the user override the test.
4709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4711 for ac_dir in $ac_dummy; do
4712 test -z "$ac_dir" && ac_dir=.
4713 if test -f $ac_dir/$ac_word; then
4714 ac_cv_prog_AS="${ac_tool_prefix}as"
4722 if test -n "$AS"; then
4723 echo "$ac_t""$AS" 1>&6
4725 echo "$ac_t""no" 1>&6
4729 if test -z "$ac_cv_prog_AS"; then
4730 if test -n "$ac_tool_prefix"; then
4731 # Extract the first word of "as", so it can be a program name with args.
4732 set dummy as; ac_word=$2
4733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_word" >&5
4735 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 if test -n "$AS"; then
4739 ac_cv_prog_AS="$AS" # Let the user override the test.
4741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4743 for ac_dir in $ac_dummy; do
4744 test -z "$ac_dir" && ac_dir=.
4745 if test -f $ac_dir/$ac_word; then
4751 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4755 if test -n "$AS"; then
4756 echo "$ac_t""$AS" 1>&6
4758 echo "$ac_t""no" 1>&6
4766 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4767 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4769 echo "configure:4770: checking for $ac_word" >&5
4770 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 if test -n "$OBJDUMP"; then
4774 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4778 for ac_dir in $ac_dummy; do
4779 test -z "$ac_dir" && ac_dir=.
4780 if test -f $ac_dir/$ac_word; then
4781 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4788 OBJDUMP="$ac_cv_prog_OBJDUMP"
4789 if test -n "$OBJDUMP"; then
4790 echo "$ac_t""$OBJDUMP" 1>&6
4792 echo "$ac_t""no" 1>&6
4796 if test -z "$ac_cv_prog_OBJDUMP"; then
4797 if test -n "$ac_tool_prefix"; then
4798 # Extract the first word of "objdump", so it can be a program name with args.
4799 set dummy objdump; ac_word=$2
4800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4801 echo "configure:4802: checking for $ac_word" >&5
4802 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4805 if test -n "$OBJDUMP"; then
4806 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4808 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4810 for ac_dir in $ac_dummy; do
4811 test -z "$ac_dir" && ac_dir=.
4812 if test -f $ac_dir/$ac_word; then
4813 ac_cv_prog_OBJDUMP="objdump"
4818 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4821 OBJDUMP="$ac_cv_prog_OBJDUMP"
4822 if test -n "$OBJDUMP"; then
4823 echo "$ac_t""$OBJDUMP" 1>&6
4825 echo "$ac_t""no" 1>&6
4834 # recent cygwin and mingw systems supply a stub DllMain which the user
4835 # can override, but on older systems we have to supply one
4836 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4837 echo "configure:4838: checking if libtool should supply DllMain function" >&5
4838 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4839 echo $ac_n "(cached) $ac_c" 1>&6
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4846 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4850 if { (eval echo configure:4851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4852 lt_cv_need_dllmain=no
4854 echo "configure: failed program was:" >&5
4855 cat conftest.$ac_ext >&5
4857 lt_cv_need_dllmain=yes
4862 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4865 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4866 # old mingw systems require "-dll" to link a DLL, while more recent ones
4868 SAVE_CFLAGS="$CFLAGS"
4869 CFLAGS="$CFLAGS -mdll"
4870 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4871 echo "configure:4872: checking how to link DLLs" >&5
4872 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4873 echo $ac_n "(cached) $ac_c" 1>&6
4875 cat > conftest.$ac_ext <<EOF
4876 #line 4877 "configure"
4877 #include "confdefs.h"
4883 if { (eval echo configure:4884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4885 lt_cv_cc_dll_switch=-mdll
4887 echo "configure: failed program was:" >&5
4888 cat conftest.$ac_ext >&5
4890 lt_cv_cc_dll_switch=-dll
4895 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4896 CFLAGS="$SAVE_CFLAGS" ;;
4897 *-*-cygwin* | *-*-pw32*)
4898 # cygwin systems need to pass --dll to the linker, and not link
4899 # crt.o which will require a WinMain@16 definition.
4900 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4906 # Sed substitution that helps us do robust quoting. It backslashifies
4907 # metacharacters that are still active within double-quoted strings.
4908 Xsed='sed -e s/^X//'
4909 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4911 # Same as above, but do not quote variable references.
4912 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4914 # Sed substitution to delay expansion of an escaped shell variable in a
4915 # double_quote_subst'ed string.
4916 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4922 default_ofile=libtool
4923 can_build_shared=yes
4925 # All known linkers require a `.a' archive for static linking (except M$VC,
4926 # which needs '.lib').
4928 ltmain="$ac_aux_dir/ltmain.sh"
4929 ofile="$default_ofile"
4930 with_gnu_ld="$lt_cv_prog_gnu_ld"
4931 need_locks="$enable_libtool_lock"
4934 old_CFLAGS="$CFLAGS"
4936 # Set sane defaults for various variables
4937 test -z "$AR" && AR=ar
4938 test -z "$AR_FLAGS" && AR_FLAGS=cru
4939 test -z "$AS" && AS=as
4940 test -z "$CC" && CC=cc
4941 test -z "$DLLTOOL" && DLLTOOL=dlltool
4942 test -z "$LD" && LD=ld
4943 test -z "$LN_S" && LN_S="ln -s"
4944 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4945 test -z "$NM" && NM=nm
4946 test -z "$OBJDUMP" && OBJDUMP=objdump
4947 test -z "$RANLIB" && RANLIB=:
4948 test -z "$STRIP" && STRIP=:
4949 test -z "$ac_objext" && ac_objext=o
4951 if test x"$host" != x"$build"; then
4952 ac_tool_prefix=${host_alias}-
4957 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4960 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4965 # AIX sometimes has problems with the GCC collect2 program. For some
4966 # reason, if we set the COLLECT_NAMES environment variable, the problems
4967 # vanish in a puff of smoke.
4968 if test "X${COLLECT_NAMES+set}" != Xset; then
4970 export COLLECT_NAMES
4975 # Determine commands to create old-style static archives.
4976 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4977 old_postinstall_cmds='chmod 644 $oldlib'
4978 old_postuninstall_cmds=
4980 if test -n "$RANLIB"; then
4983 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4986 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4989 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4992 # Allow CC to be a program name with arguments.
4996 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4997 echo "configure:4998: checking for objdir" >&5
4998 rm -f .libs 2>/dev/null
4999 mkdir .libs 2>/dev/null
5000 if test -d .libs; then
5003 # MS-DOS does not allow filenames that begin with a dot.
5006 rmdir .libs 2>/dev/null
5007 echo "$ac_t""$objdir" 1>&6
5010 # Check whether --with-pic or --without-pic was given.
5011 if test "${with_pic+set}" = set; then
5018 test -z "$pic_mode" && pic_mode=default
5020 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5021 # in isolation, and that seeing it set (from the cache) indicates that
5022 # the associated values are set (in the cache) correctly too.
5023 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5024 echo "configure:5025: checking for $compiler option to produce PIC" >&5
5025 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5026 echo $ac_n "(cached) $ac_c" 1>&6
5029 lt_cv_prog_cc_shlib=
5031 lt_cv_prog_cc_static=
5032 lt_cv_prog_cc_no_builtin=
5033 lt_cv_prog_cc_can_build_shared=$can_build_shared
5035 if test "$GCC" = yes; then
5036 lt_cv_prog_cc_wl='-Wl,'
5037 lt_cv_prog_cc_static='-static'
5041 # Below there is a dirty hack to force normal static linking with -ldl
5042 # The problem is because libdl dynamically linked with both libc and
5043 # libC (AIX C++ library), which obviously doesn't included in libraries
5044 # list by gcc. This cause undefined symbols with -static flags.
5045 # This hack allows C programs to be linked with "-static -ldl", but
5046 # not sure about C++ programs.
5047 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5050 # FIXME: we need at least 68020 code to build shared libraries, but
5051 # adding the `-m68020' flag to GCC prevents building anything better,
5053 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5056 # PIC is the default for these OSes.
5058 darwin* | rhapsody*)
5059 # PIC is the default on this platform
5060 # Common symbols not allowed in MH_DYLIB files
5061 lt_cv_prog_cc_pic='-fno-common'
5063 cygwin* | mingw* | pw32* | os2*)
5064 # This hack is so that the source file can tell whether it is being
5065 # built for inclusion in a dll (and should export symbols for example).
5066 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5069 if test -d /usr/nec; then
5070 lt_cv_prog_cc_pic=-Kconform_pic
5074 lt_cv_prog_cc_pic='-fPIC'
5078 # PORTME Check for PIC flags for the system compiler.
5080 aix3* | aix4* | aix5*)
5081 lt_cv_prog_cc_wl='-Wl,'
5082 # All AIX code is PIC.
5083 if test "$host_cpu" = ia64; then
5084 # AIX 5 now supports IA64 processor
5085 lt_cv_prog_cc_static='-Bstatic'
5087 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5091 hpux9* | hpux10* | hpux11*)
5092 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5093 lt_cv_prog_cc_wl='-Wl,'
5094 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5095 lt_cv_prog_cc_pic='+Z'
5098 irix5* | irix6* | nonstopux*)
5099 lt_cv_prog_cc_wl='-Wl,'
5100 lt_cv_prog_cc_static='-non_shared'
5101 # PIC (with -KPIC) is the default.
5104 cygwin* | mingw* | pw32* | os2*)
5105 # This hack is so that the source file can tell whether it is being
5106 # built for inclusion in a dll (and should export symbols for example).
5107 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5111 lt_cv_prog_cc_pic='-KPIC'
5112 lt_cv_prog_cc_static='-Bstatic'
5115 osf3* | osf4* | osf5*)
5116 # All OSF/1 code is PIC.
5117 lt_cv_prog_cc_wl='-Wl,'
5118 lt_cv_prog_cc_static='-non_shared'
5122 lt_cv_prog_cc_pic='-Kpic'
5123 lt_cv_prog_cc_static='-dn'
5124 lt_cv_prog_cc_shlib='-belf'
5128 lt_cv_prog_cc_pic='-KPIC'
5129 lt_cv_prog_cc_static='-Bstatic'
5130 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_pic='-PIC'
5135 lt_cv_prog_cc_static='-Bstatic'
5136 lt_cv_prog_cc_wl='-Qoption ld '
5139 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5140 lt_cv_prog_cc_pic='-KPIC'
5141 lt_cv_prog_cc_static='-Bstatic'
5142 lt_cv_prog_cc_wl='-Wl,'
5146 lt_cv_prog_cc_pic='-pic'
5147 lt_cv_prog_cc_static='-Bstatic'
5151 if test -d /usr/nec ;then
5152 lt_cv_prog_cc_pic='-Kconform_pic'
5153 lt_cv_prog_cc_static='-Bstatic'
5158 lt_cv_prog_cc_can_build_shared=no
5165 if test -z "$lt_cv_prog_cc_pic"; then
5166 echo "$ac_t""none" 1>&6
5168 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5170 # Check to make sure the pic_flag actually works.
5171 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5172 echo "configure:5173: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5173 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5174 echo $ac_n "(cached) $ac_c" 1>&6
5176 save_CFLAGS="$CFLAGS"
5177 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5178 cat > conftest.$ac_ext <<EOF
5179 #line 5180 "configure"
5180 #include "confdefs.h"
5186 if { (eval echo configure:5187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5189 hpux9* | hpux10* | hpux11*)
5190 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5191 # they create non-PIC objects. So, if there were any warnings, we
5192 # assume that PIC is not supported.
5193 if test -s conftest.err; then
5194 lt_cv_prog_cc_pic_works=no
5196 lt_cv_prog_cc_pic_works=yes
5200 lt_cv_prog_cc_pic_works=yes
5205 echo "configure: failed program was:" >&5
5206 cat conftest.$ac_ext >&5
5208 lt_cv_prog_cc_pic_works=no
5212 CFLAGS="$save_CFLAGS"
5217 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5219 lt_cv_prog_cc_can_build_shared=no
5221 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5224 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5227 # Check for any special shared library compilation flags.
5228 if test -n "$lt_cv_prog_cc_shlib"; then
5229 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5230 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5232 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5233 lt_cv_prog_cc_can_build_shared=no
5237 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5238 echo "configure:5239: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5239 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 lt_cv_prog_cc_static_works=no
5243 save_LDFLAGS="$LDFLAGS"
5244 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5245 cat > conftest.$ac_ext <<EOF
5246 #line 5247 "configure"
5247 #include "confdefs.h"
5253 if { (eval echo configure:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5255 lt_cv_prog_cc_static_works=yes
5257 echo "configure: failed program was:" >&5
5258 cat conftest.$ac_ext >&5
5261 LDFLAGS="$save_LDFLAGS"
5266 # Belt *and* braces to stop my trousers falling down:
5267 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5268 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5270 pic_flag="$lt_cv_prog_cc_pic"
5271 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5272 wl="$lt_cv_prog_cc_wl"
5273 link_static_flag="$lt_cv_prog_cc_static"
5274 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5275 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5278 # Check to see if options -o and -c are simultaneously supported by compiler
5279 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5280 echo "configure:5281: checking if $compiler supports -c -o file.$ac_objext" >&5
5281 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5282 echo $ac_n "(cached) $ac_c" 1>&6
5285 $rm -r conftest 2>/dev/null
5288 echo "int some_variable = 0;" > conftest.$ac_ext
5290 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5291 # that will create temporary files in the current directory regardless of
5292 # the output directory. Thus, making CWD read-only will cause this test
5293 # to fail, enabling locking or at least warning the user not to do parallel
5296 save_CFLAGS="$CFLAGS"
5297 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5299 if { (eval echo configure:5300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5300 # The compiler can only warn and ignore the option if not recognized
5301 # So say no if there are warnings
5302 if test -s out/conftest.err; then
5303 lt_cv_compiler_c_o=no
5305 lt_cv_compiler_c_o=yes
5308 # Append any errors to the config.log.
5309 cat out/conftest.err 1>&5
5310 lt_cv_compiler_c_o=no
5312 CFLAGS="$save_CFLAGS"
5318 $rm -r conftest 2>/dev/null
5322 compiler_c_o=$lt_cv_compiler_c_o
5323 echo "$ac_t""$compiler_c_o" 1>&6
5325 if test x"$compiler_c_o" = x"yes"; then
5326 # Check to see if we can write to a .lo
5327 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5328 echo "configure:5329: checking if $compiler supports -c -o file.lo" >&5
5329 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5330 echo $ac_n "(cached) $ac_c" 1>&6
5333 lt_cv_compiler_o_lo=no
5334 save_CFLAGS="$CFLAGS"
5335 CFLAGS="$CFLAGS -c -o conftest.lo"
5336 save_objext="$ac_objext"
5338 cat > conftest.$ac_ext <<EOF
5339 #line 5340 "configure"
5340 #include "confdefs.h"
5343 int some_variable = 0;
5346 if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5348 # The compiler can only warn and ignore the option if not recognized
5349 # So say no if there are warnings
5350 if test -s conftest.err; then
5351 lt_cv_compiler_o_lo=no
5353 lt_cv_compiler_o_lo=yes
5357 echo "configure: failed program was:" >&5
5358 cat conftest.$ac_ext >&5
5361 ac_objext="$save_objext"
5362 CFLAGS="$save_CFLAGS"
5366 compiler_o_lo=$lt_cv_compiler_o_lo
5367 echo "$ac_t""$compiler_o_lo" 1>&6
5372 # Check to see if we can do hard links to lock some files if needed
5373 hard_links="nottested"
5374 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5375 # do not overwrite the value of need_locks provided by the user
5376 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5377 echo "configure:5378: checking if we can lock with hard links" >&5
5380 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5382 ln conftest.a conftest.b 2>&5 || hard_links=no
5383 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5384 echo "$ac_t""$hard_links" 1>&6
5385 if test "$hard_links" = no; then
5386 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5393 if test "$GCC" = yes; then
5394 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5395 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5396 echo "configure:5397: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5397 echo "int some_variable = 0;" > conftest.$ac_ext
5398 save_CFLAGS="$CFLAGS"
5399 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5400 compiler_rtti_exceptions=no
5401 cat > conftest.$ac_ext <<EOF
5402 #line 5403 "configure"
5403 #include "confdefs.h"
5406 int some_variable = 0;
5409 if { (eval echo configure:5410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5411 # The compiler can only warn and ignore the option if not recognized
5412 # So say no if there are warnings
5413 if test -s conftest.err; then
5414 compiler_rtti_exceptions=no
5416 compiler_rtti_exceptions=yes
5420 echo "configure: failed program was:" >&5
5421 cat conftest.$ac_ext >&5
5424 CFLAGS="$save_CFLAGS"
5425 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5427 if test "$compiler_rtti_exceptions" = "yes"; then
5428 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5430 no_builtin_flag=' -fno-builtin'
5434 # See if the linker supports building shared libraries.
5435 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5436 echo "configure:5437: checking whether the linker ($LD) supports shared libraries" >&5
5438 allow_undefined_flag=
5440 need_lib_prefix=unknown
5441 need_version=unknown
5442 # when you set need_version to no, make sure it does not cause -set_version
5443 # flags to be left without arguments
5445 archive_expsym_cmds=
5446 old_archive_from_new_cmds=
5447 old_archive_from_expsyms_cmds=
5448 export_dynamic_flag_spec=
5449 whole_archive_flag_spec=
5450 thread_safe_flag_spec=
5451 hardcode_into_libs=no
5452 hardcode_libdir_flag_spec=
5453 hardcode_libdir_separator=
5456 hardcode_shlibpath_var=unsupported
5458 link_all_deplibs=unknown
5459 always_export_symbols=no
5460 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5461 # include_expsyms should be a list of space-separated symbols to be *always*
5462 # included in the symbol list
5464 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5465 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5466 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5467 # as well as any symbol that contains `d'.
5468 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5470 # platforms (ab)use it in PIC code, but their linkers get confused if
5471 # the symbol is explicitly referenced. Since portable code cannot
5472 # rely on this symbol name, it's probably fine to never include it in
5473 # preloaded symbol tables.
5474 extract_expsyms_cmds=
5477 cygwin* | mingw* | pw32*)
5478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5479 # When not using gcc, we currently assume that we are using
5480 # Microsoft Visual C++.
5481 if test "$GCC" != yes; then
5491 if test "$with_gnu_ld" = yes; then
5492 # If archive_cmds runs LD, not CC, wlarc should be empty
5495 # See if GNU ld supports shared libraries.
5497 aix3* | aix4* | aix5*)
5498 # On AIX, the GNU linker is very broken
5499 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5503 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5504 *** to be unable to reliably create shared libraries on AIX.
5505 *** Therefore, libtool is disabling shared libraries support. If you
5506 *** really care for shared libraries, you may want to modify your PATH
5507 *** so that a non-GNU linker is found, and then restart.
5513 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)'
5514 hardcode_libdir_flag_spec='-L$libdir'
5515 hardcode_minus_L=yes
5517 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5518 # that the semantics of dynamic libraries on AmigaOS, at least up
5519 # to version 4, is to share data among multiple programs linked
5520 # with the same dynamic library. Since this doesn't match the
5521 # behavior of shared libraries on other platforms, we can use
5527 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5528 allow_undefined_flag=unsupported
5529 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5530 # support --undefined. This deserves some investigation. FIXME
5531 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5537 cygwin* | mingw* | pw32*)
5538 # hardcode_libdir_flag_spec is actually meaningless, as there is
5539 # no search path for DLLs.
5540 hardcode_libdir_flag_spec='-L$libdir'
5541 allow_undefined_flag=unsupported
5542 always_export_symbols=yes
5544 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5545 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5546 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5547 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5548 else $CC -o impgen impgen.c ; fi)~
5549 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5551 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5553 # cygwin and mingw dlls have different entry points and sets of symbols
5555 # FIXME: what about values for MSVC?
5556 dll_entry=__cygwin_dll_entry@12
5557 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5561 dll_entry=_DllMainCRTStartup@12
5562 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5566 # mingw and cygwin differ, and it's simplest to just exclude the union
5567 # of the two symbol sets.
5568 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5570 # recent cygwin and mingw systems supply a stub DllMain which the user
5571 # can override, but on older systems we have to supply one (in ltdll.c)
5572 if test "x$lt_cv_need_dllmain" = "xyes"; then
5573 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5574 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~
5575 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5581 # Extract the symbol export list from an `--export-all' def file,
5582 # then regenerate the def file from the symbol export list, so that
5583 # the compiled dll only exports the symbol export list.
5584 # Be careful not to strip the DATA tag left be newer dlltools.
5585 export_symbols_cmds="$ltdll_cmds"'
5586 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5587 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5589 # If the export-symbols file already is a .def file (1st line
5590 # is EXPORTS), use it as is.
5591 # If DATA tags from a recent dlltool are present, honour them!
5592 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5593 cp $export_symbols $output_objdir/$soname-def;
5595 echo EXPORTS > $output_objdir/$soname-def;
5597 cat $export_symbols | while read symbol; do
5600 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5601 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5602 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5604 _lt_hint=`expr 1 + \$_lt_hint`;
5608 $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~
5609 $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~
5610 $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~
5611 $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~
5612 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5616 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5617 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5620 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5621 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5626 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5630 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5631 *** create shared libraries on Solaris systems. Therefore, libtool
5632 *** is disabling shared libraries support. We urge you to upgrade GNU
5633 *** binutils to release 2.9.1 or newer. Another option is to modify
5634 *** your PATH or compiler configuration so that the native linker is
5635 *** used, and then restart.
5638 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5639 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5640 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5647 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5650 hardcode_shlibpath_var=no
5654 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5663 if test "$ld_shlibs" = yes; then
5664 runpath_var=LD_RUN_PATH
5665 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5666 export_dynamic_flag_spec='${wl}--export-dynamic'
5668 cygwin* | mingw* | pw32*)
5669 # dlltool doesn't understand --whole-archive et. al.
5670 whole_archive_flag_spec=
5673 # ancient GNU ld didn't support --whole-archive et. al.
5674 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5675 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5677 whole_archive_flag_spec=
5683 # PORTME fill in a description of your system's linker (not GNU ld)
5686 allow_undefined_flag=unsupported
5687 always_export_symbols=yes
5688 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'
5689 # Note: this linker hardcodes the directories in LIBPATH if there
5690 # are no directories specified by -L.
5691 hardcode_minus_L=yes
5692 if test "$GCC" = yes && test -z "$link_static_flag"; then
5693 # Neither direct hardcoding nor static linking is supported with a
5695 hardcode_direct=unsupported
5700 if test "$host_cpu" = ia64; then
5701 # On IA64, the linker does run time linking by default, so we don't
5702 # have to do anything special.
5703 aix_use_runtimelinking=no
5704 exp_sym_flag='-Bexport'
5707 aix_use_runtimelinking=no
5709 # Test if we are trying to use run time linking or normal
5710 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5711 # need to do runtime linking.
5712 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5713 for ld_flag in $LDFLAGS; do
5716 aix_use_runtimelinking=yes
5723 exp_sym_flag='-bexport'
5724 no_entry_flag='-bnoentry'
5727 # When large executables or shared objects are built, AIX ld can
5728 # have problems creating the table of contents. If linking a library
5729 # or program results in "error TOC overflow" add -mminimal-toc to
5730 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5731 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5735 hardcode_libdir_separator=':'
5736 if test "$GCC" = yes; then
5737 case $host_os in aix4.[012]|aix4.[012].*)
5738 collect2name=`${CC} -print-prog-name=collect2`
5739 if test -f "$collect2name" && \
5740 strings "$collect2name" | grep resolve_lib_name >/dev/null
5742 # We have reworked collect2
5745 # We have old collect2
5746 hardcode_direct=unsupported
5747 # It fails to find uninstalled libraries when the uninstalled
5748 # path is not listed in the libpath. Setting hardcode_minus_L
5749 # to unsupported forces relinking
5750 hardcode_minus_L=yes
5751 hardcode_libdir_flag_spec='-L$libdir'
5752 hardcode_libdir_separator=
5756 shared_flag='-shared'
5759 if test "$host_cpu" = ia64; then
5760 shared_flag='${wl}-G'
5762 if test "$aix_use_runtimelinking" = yes; then
5763 shared_flag='${wl}-G'
5765 shared_flag='${wl}-bM:SRE'
5770 # It seems that -bexpall can do strange things, so it is better to
5771 # generate a list of symbols to export.
5772 always_export_symbols=yes
5773 if test "$aix_use_runtimelinking" = yes; then
5774 # Warning - without using the other runtime loading flags (-brtl),
5775 # -berok will link without error, but may produce a broken library.
5776 allow_undefined_flag='-berok'
5777 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5778 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"
5780 if test "$host_cpu" = ia64; then
5781 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5782 allow_undefined_flag="-z nodefs"
5783 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"
5785 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5786 # Warning - without using the other run time loading flags,
5787 # -berok will link without error, but may produce a broken library.
5788 allow_undefined_flag='${wl}-berok'
5789 # This is a bit strange, but is similar to how AIX traditionally builds
5790 # it's shared libraries.
5791 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'
5797 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)'
5798 hardcode_libdir_flag_spec='-L$libdir'
5799 hardcode_minus_L=yes
5800 # see comment about different semantics on the GNU ld section
5804 cygwin* | mingw* | pw32*)
5805 # When not using gcc, we currently assume that we are using
5806 # Microsoft Visual C++.
5807 # hardcode_libdir_flag_spec is actually meaningless, as there is
5808 # no search path for DLLs.
5809 hardcode_libdir_flag_spec=' '
5810 allow_undefined_flag=unsupported
5811 # Tell ltmain to make .lib files, not .a files.
5813 # FIXME: Setting linknames here is a bad hack.
5814 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5815 # The linker will automatically build a .lib file if we build a DLL.
5816 old_archive_from_new_cmds='true'
5817 # FIXME: Should let the user specify the lib program.
5818 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5819 fix_srcfile_path='`cygpath -w "$srcfile"`'
5822 darwin* | rhapsody*)
5824 rhapsody* | darwin1.[012])
5825 allow_undefined_flag='-undefined suppress'
5828 allow_undefined_flag='-flat_namespace -undefined suppress'
5831 # FIXME: Relying on posixy $() will cause problems for
5832 # cross-compilation, but unfortunately the echo tests do not
5833 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5834 # `"' quotes if we put them in here... so don't!
5835 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)'
5836 # We need to add '_' to the symbols in $export_symbols first
5837 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5839 hardcode_shlibpath_var=no
5840 whole_archive_flag_spec='-all_load $convenience'
5847 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5848 # support. Future versions do this automatically, but an explicit c++rt0.o
5849 # does not break anything, and helps significantly (at the cost of a little
5852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5853 hardcode_libdir_flag_spec='-R$libdir'
5855 hardcode_shlibpath_var=no
5858 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5862 hardcode_minus_L=yes
5863 hardcode_shlibpath_var=no
5866 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5868 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5869 hardcode_libdir_flag_spec='-R$libdir'
5871 hardcode_shlibpath_var=no
5874 hpux9* | hpux10* | hpux11*)
5876 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' ;;
5877 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5879 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5880 hardcode_libdir_separator=:
5882 hardcode_minus_L=yes # Not in the search PATH, but as the default
5883 # location of the library.
5884 export_dynamic_flag_spec='${wl}-E'
5887 irix5* | irix6* | nonstopux*)
5888 if test "$GCC" = yes; then
5889 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'
5890 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5892 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'
5893 hardcode_libdir_flag_spec='-rpath $libdir'
5895 hardcode_libdir_separator=:
5896 link_all_deplibs=yes
5900 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5903 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5905 hardcode_libdir_flag_spec='-R$libdir'
5907 hardcode_shlibpath_var=no
5911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5914 hardcode_libdir_separator=:
5915 hardcode_shlibpath_var=no
5920 hardcode_shlibpath_var=no
5921 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5922 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5923 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5924 export_dynamic_flag_spec='${wl}-E'
5927 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5928 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5929 hardcode_libdir_flag_spec='-R$libdir'
5932 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5933 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5940 hardcode_libdir_flag_spec='-L$libdir'
5941 hardcode_minus_L=yes
5942 allow_undefined_flag=unsupported
5943 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'
5944 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5948 if test "$GCC" = yes; then
5949 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5950 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'
5952 allow_undefined_flag=' -expect_unresolved \*'
5953 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'
5955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5956 hardcode_libdir_separator=:
5959 osf4* | osf5*) # as osf3* with the addition of -msym flag
5960 if test "$GCC" = yes; then
5961 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5962 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'
5963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5965 allow_undefined_flag=' -expect_unresolved \*'
5966 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'
5967 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5968 $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'
5970 #Both c and cxx compiler support -rpath directly
5971 hardcode_libdir_flag_spec='-rpath $libdir'
5973 hardcode_libdir_separator=:
5977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5978 hardcode_shlibpath_var=no
5979 runpath_var=LD_RUN_PATH
5980 hardcode_runpath_var=yes
5981 export_dynamic_flag_spec='${wl}-Bexport'
5985 # gcc --version < 3.0 without binutils cannot create self contained
5986 # shared libraries reliably, requiring libgcc.a to resolve some of
5987 # the object symbols generated in some cases. Libraries that use
5988 # assert need libgcc.a to resolve __eprintf, for example. Linking
5989 # a copy of libgcc.a into every shared library to guarantee resolving
5990 # such symbols causes other problems: According to Tim Van Holder
5991 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5992 # (to the application) exception stack for one thing.
5993 no_undefined_flag=' -z defs'
5994 if test "$GCC" = yes; then
5995 case `$CC --version 2>/dev/null` in
5999 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6000 *** create self contained shared libraries on Solaris systems, without
6001 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6002 *** -no-undefined support, which will at least allow you to build shared
6003 *** libraries. However, you may find that when you link such libraries
6004 *** into an application without using GCC, you have to manually add
6005 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6006 *** upgrade to a newer version of GCC. Another option is to rebuild your
6007 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6014 # $CC -shared without GNU ld will not create a library from C++
6015 # object files and a static libstdc++, better avoid it by now
6016 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6017 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6019 hardcode_libdir_flag_spec='-R$libdir'
6020 hardcode_shlibpath_var=no
6022 solaris2.[0-5] | solaris2.[0-5].*) ;;
6023 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6024 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6026 link_all_deplibs=yes
6030 if test "x$host_vendor" = xsequent; then
6031 # Use $CC to link under sequent, because it throws in some extra .o
6032 # files that make .init and .fini sections work.
6033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6037 hardcode_libdir_flag_spec='-L$libdir'
6039 hardcode_minus_L=yes
6040 hardcode_shlibpath_var=no
6044 case $host_vendor in
6046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6047 hardcode_direct=yes # is this really true???
6050 ## LD is ld it makes a PLAMLIB
6051 ## CC just makes a GrossModule.
6052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6053 reload_cmds='$CC -r -o $output$reload_objs'
6057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6061 runpath_var='LD_RUN_PATH'
6062 hardcode_shlibpath_var=no
6066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6067 hardcode_shlibpath_var=no
6068 export_dynamic_flag_spec='-Bexport'
6072 no_undefined_flag=' -z text'
6073 # $CC -shared without GNU ld will not create a library from C++
6074 # object files and a static libstdc++, better avoid it by now
6075 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6076 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6078 hardcode_libdir_flag_spec=
6079 hardcode_shlibpath_var=no
6080 runpath_var='LD_RUN_PATH'
6084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6085 hardcode_libdir_flag_spec='-L$libdir'
6086 hardcode_shlibpath_var=no
6090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6091 hardcode_libdir_flag_spec='-L$libdir'
6092 hardcode_shlibpath_var=no
6096 if test -d /usr/nec; then
6097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6098 hardcode_shlibpath_var=no
6099 runpath_var=LD_RUN_PATH
6100 hardcode_runpath_var=yes
6106 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6109 hardcode_shlibpath_var=no
6110 hardcode_runpath_var=yes
6111 runpath_var=LD_RUN_PATH
6114 sysv5uw7* | unixware7*)
6115 no_undefined_flag='${wl}-z ${wl}text'
6116 if test "$GCC" = yes; then
6117 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6119 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6121 runpath_var='LD_RUN_PATH'
6122 hardcode_shlibpath_var=no
6130 echo "$ac_t""$ld_shlibs" 1>&6
6131 test "$ld_shlibs" = no && can_build_shared=no
6133 # Check hardcoding attributes.
6134 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6135 echo "configure:6136: checking how to hardcode library paths into programs" >&5
6137 if test -n "$hardcode_libdir_flag_spec" || \
6138 test -n "$runpath_var"; then
6140 # We can hardcode non-existant directories.
6141 if test "$hardcode_direct" != no &&
6142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6143 # have to relink, otherwise we might link with an installed library
6144 # when we should be linking with a yet-to-be-installed one
6145 ## test "$hardcode_shlibpath_var" != no &&
6146 test "$hardcode_minus_L" != no; then
6147 # Linking always hardcodes the temporary library directory.
6148 hardcode_action=relink
6150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6151 hardcode_action=immediate
6154 # We cannot hardcode anything, or else we can only hardcode existing
6156 hardcode_action=unsupported
6158 echo "$ac_t""$hardcode_action" 1>&6
6162 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6163 echo "configure:6164: checking whether stripping libraries is possible" >&5
6164 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6165 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6166 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6167 echo "$ac_t""yes" 1>&6
6169 echo "$ac_t""no" 1>&6
6172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6175 # PORTME Fill in your ld.so characteristics
6176 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6177 echo "configure:6178: checking dynamic linker characteristics" >&5
6179 libname_spec='lib$name'
6186 shlibpath_overrides_runpath=unknown
6188 dynamic_linker="$host_os ld.so"
6189 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6190 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6195 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6196 shlibpath_var=LIBPATH
6198 # AIX has no versioning support, so we append a major version to the name.
6199 soname_spec='${libname}${release}.so$major'
6206 hardcode_into_libs=yes
6207 if test "$host_cpu" = ia64; then
6208 # AIX 5 supports IA64
6209 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6210 shlibpath_var=LD_LIBRARY_PATH
6212 # With GCC up to 2.95.x, collect2 would create an import file
6213 # for dependence libraries. The import file would start with
6214 # the line `#! .'. This would cause the generated library to
6215 # depend on `.', always an invalid library. This was fixed in
6216 # development snapshots of GCC prior to 3.0.
6218 aix4 | aix4.[01] | aix4.[01].*)
6219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6221 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6228 # AIX (on Power*) has no versioning support, so currently we can
6229 # not hardcode correct soname into executable. Probably we can
6230 # add versioning support to collect2, so additional links can
6231 # be useful in future.
6232 if test "$aix_use_runtimelinking" = yes; then
6233 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6234 # instead of lib<name>.a to let people know that these are not
6235 # typical AIX shared libraries.
6236 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6238 # We preserve .a as extension for shared libraries through AIX4.2
6239 # and later when we are not doing run time linking.
6240 library_names_spec='${libname}${release}.a $libname.a'
6241 soname_spec='${libname}${release}.so$major'
6243 shlibpath_var=LIBPATH
6245 hardcode_into_libs=yes
6249 library_names_spec='$libname.ixlibrary $libname.a'
6250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6251 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'
6255 library_names_spec='${libname}.so'
6256 dynamic_linker="$host_os ld.so"
6257 shlibpath_var=LIBRARY_PATH
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6264 soname_spec='${libname}${release}.so$major'
6265 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6266 shlibpath_var=LD_LIBRARY_PATH
6267 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6268 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6269 export_dynamic_flag_spec=-rdynamic
6270 # the default ld.so.conf also contains /usr/contrib/lib and
6271 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6272 # libtool to hard-code these into programs
6275 cygwin* | mingw* | pw32*)
6276 version_type=windows
6279 case $GCC,$host_os in
6281 library_names_spec='$libname.dll.a'
6282 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6283 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6284 dldir=$destdir/`dirname \$dlpath`~
6285 test -d \$dldir || mkdir -p \$dldir~
6286 $install_prog .libs/$dlname \$dldir/$dlname'
6287 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6288 dlpath=$dir/\$dldll~
6292 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6293 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6296 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6299 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6302 dynamic_linker='Win32 ld.exe'
6303 # FIXME: first we should search . and the directory the executable is in
6307 darwin* | rhapsody*)
6308 dynamic_linker="$host_os dyld"
6312 # FIXME: Relying on posixy $() will cause problems for
6313 # cross-compilation, but unfortunately the echo tests do not
6314 # yet detect zsh echo's removal of \ escapes.
6315 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)'
6316 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6317 shlibpath_overrides_runpath=yes
6318 shlibpath_var=DYLD_LIBRARY_PATH
6326 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6327 version_type=freebsd-$objformat
6328 case $version_type in
6330 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6335 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6339 shlibpath_var=LD_LIBRARY_PATH
6342 shlibpath_overrides_runpath=yes
6345 shlibpath_overrides_runpath=no
6346 hardcode_into_libs=yes
6355 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6356 soname_spec='${libname}${release}.so$major'
6357 shlibpath_var=LD_LIBRARY_PATH
6358 hardcode_into_libs=yes
6361 hpux9* | hpux10* | hpux11*)
6362 # Give a soname corresponding to the major version so that dld.sl refuses to
6363 # link against other versions.
6364 dynamic_linker="$host_os dld.sl"
6368 shlibpath_var=SHLIB_PATH
6369 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6370 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6371 soname_spec='${libname}${release}.sl$major'
6372 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6373 postinstall_cmds='chmod 555 $lib'
6376 irix5* | irix6* | nonstopux*)
6378 nonstopux*) version_type=nonstopux ;;
6379 *) version_type=irix ;;
6383 soname_spec='${libname}${release}.so$major'
6384 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6386 irix5* | nonstopux*)
6390 case $LD in # libtool.m4 will add one of these switches to LD
6391 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6392 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6393 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6394 *) libsuff= shlibsuff= libmagic=never-match;;
6398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6399 shlibpath_overrides_runpath=no
6400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6404 # No shared lib support for Linux oldld, aout, or coff.
6405 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6409 # This must be Linux ELF.
6414 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6415 soname_spec='${libname}${release}.so$major'
6416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6417 shlibpath_var=LD_LIBRARY_PATH
6418 shlibpath_overrides_runpath=no
6419 # This implies no fast_install, which is unacceptable.
6420 # Some rework will be needed to allow for fast_install
6421 # before this can be enabled.
6422 hardcode_into_libs=yes
6424 # We used to test for /lib/ld.so.1 and disable shared libraries on
6425 # powerpc, because MkLinux only supported shared libraries with the
6426 # GNU dynamic linker. Since this was broken with cross compilers,
6427 # most powerpc-linux boxes support dynamic linking these days and
6428 # people can always --disable-shared, the test was removed, and we
6429 # assume the GNU/Linux dynamic linker is in use.
6430 dynamic_linker='GNU/Linux ld.so'
6437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6438 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6440 dynamic_linker='NetBSD (a.out) ld.so'
6442 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6443 soname_spec='${libname}${release}.so$major'
6444 dynamic_linker='NetBSD ld.elf_so'
6446 shlibpath_var=LD_LIBRARY_PATH
6447 shlibpath_overrides_runpath=yes
6448 hardcode_into_libs=yes
6453 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 shlibpath_overrides_runpath=yes
6462 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6464 openbsd2.[89] | openbsd2.[89].*)
6465 shlibpath_overrides_runpath=no
6468 shlibpath_overrides_runpath=yes
6472 shlibpath_overrides_runpath=yes
6474 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6475 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6476 shlibpath_var=LD_LIBRARY_PATH
6480 libname_spec='$name'
6482 library_names_spec='$libname.dll $libname.a'
6483 dynamic_linker='OS/2 ld.exe'
6484 shlibpath_var=LIBPATH
6487 osf3* | osf4* | osf5*)
6490 soname_spec='${libname}${release}.so$major'
6491 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6492 shlibpath_var=LD_LIBRARY_PATH
6493 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6494 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6495 hardcode_into_libs=yes
6500 soname_spec='${libname}${release}.so$major'
6501 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6502 shlibpath_var=LD_LIBRARY_PATH
6509 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6510 soname_spec='${libname}${release}.so$major'
6511 shlibpath_var=LD_LIBRARY_PATH
6512 shlibpath_overrides_runpath=yes
6513 hardcode_into_libs=yes
6514 # ldd complains unless libraries are executable
6515 postinstall_cmds='chmod +x $lib'
6520 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6521 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6522 shlibpath_var=LD_LIBRARY_PATH
6523 shlibpath_overrides_runpath=yes
6524 if test "$with_gnu_ld" = yes; then
6530 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6532 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6533 soname_spec='${libname}${release}.so$major'
6534 shlibpath_var=LD_LIBRARY_PATH
6535 case $host_vendor in
6537 shlibpath_overrides_runpath=no
6539 export_dynamic_flag_spec='${wl}-Blargedynsym'
6540 runpath_var=LD_RUN_PATH
6548 shlibpath_overrides_runpath=no
6549 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6556 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6557 soname_spec='${libname}${release}.so$major'
6558 shlibpath_var=LD_LIBRARY_PATH
6565 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6566 soname_spec='${libname}${release}.so$major'
6567 shlibpath_var=LD_LIBRARY_PATH
6571 if test -d /usr/nec ;then
6573 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6574 soname_spec='$libname.so.$major'
6575 shlibpath_var=LD_LIBRARY_PATH
6583 echo "$ac_t""$dynamic_linker" 1>&6
6584 test "$dynamic_linker" = no && can_build_shared=no
6586 # Report the final consequences.
6587 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6588 echo "configure:6589: checking if libtool supports shared libraries" >&5
6589 echo "$ac_t""$can_build_shared" 1>&6
6591 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6592 echo "configure:6593: checking whether to build shared libraries" >&5
6593 test "$can_build_shared" = "no" && enable_shared=no
6595 # On AIX, shared libraries and static libraries use the same namespace, and
6596 # are all built from PIC.
6599 test "$enable_shared" = yes && enable_static=no
6600 if test -n "$RANLIB"; then
6601 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6602 postinstall_cmds='$RANLIB $lib'
6607 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6608 test "$enable_shared" = yes && enable_static=no
6612 echo "$ac_t""$enable_shared" 1>&6
6614 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6615 echo "configure:6616: checking whether to build static libraries" >&5
6616 # Make sure either enable_shared or enable_static is yes.
6617 test "$enable_shared" = yes || enable_static=yes
6618 echo "$ac_t""$enable_static" 1>&6
6620 if test "$hardcode_action" = relink; then
6621 # Fast installation is not supported
6622 enable_fast_install=no
6623 elif test "$shlibpath_overrides_runpath" = yes ||
6624 test "$enable_shared" = no; then
6625 # Fast installation is not necessary
6626 enable_fast_install=needless
6629 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6630 if test "$GCC" = yes; then
6631 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6634 if test "x$enable_dlopen" != xyes; then
6635 enable_dlopen=unknown
6636 enable_dlopen_self=unknown
6637 enable_dlopen_self_static=unknown
6644 lt_cv_dlopen="load_add_on"
6646 lt_cv_dlopen_self=yes
6649 cygwin* | mingw* | pw32*)
6650 lt_cv_dlopen="LoadLibrary"
6655 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6656 echo "configure:6657: checking for shl_load" >&5
6657 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6658 echo $ac_n "(cached) $ac_c" 1>&6
6660 cat > conftest.$ac_ext <<EOF
6661 #line 6662 "configure"
6662 #include "confdefs.h"
6663 /* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char shl_load(); below. */
6666 /* Override any gcc2 internal prototype to avoid an error. */
6667 /* We use char because int might match the return type of a gcc2
6668 builtin and then its argument prototype would still apply. */
6674 /* The GNU C library defines this for functions which it implements
6675 to always fail with ENOSYS. Some functions are actually named
6676 something starting with __ and the normal name is an alias. */
6677 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6685 if { (eval echo configure:6686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6687 eval "ac_cv_func_shl_load=yes"
6689 echo "configure: failed program was:" >&5
6690 cat conftest.$ac_ext >&5
6692 eval "ac_cv_func_shl_load=no"
6697 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6698 echo "$ac_t""yes" 1>&6
6699 lt_cv_dlopen="shl_load"
6701 echo "$ac_t""no" 1>&6
6702 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6703 echo "configure:6704: checking for shl_load in -ldld" >&5
6704 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6705 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6706 echo $ac_n "(cached) $ac_c" 1>&6
6708 ac_save_LIBS="$LIBS"
6710 cat > conftest.$ac_ext <<EOF
6711 #line 6712 "configure"
6712 #include "confdefs.h"
6713 /* Override any gcc2 internal prototype to avoid an error. */
6714 /* We use char because int might match the return type of a gcc2
6715 builtin and then its argument prototype would still apply. */
6722 if { (eval echo configure:6723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6724 eval "ac_cv_lib_$ac_lib_var=yes"
6726 echo "configure: failed program was:" >&5
6727 cat conftest.$ac_ext >&5
6729 eval "ac_cv_lib_$ac_lib_var=no"
6732 LIBS="$ac_save_LIBS"
6735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6736 echo "$ac_t""yes" 1>&6
6737 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6739 echo "$ac_t""no" 1>&6
6740 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6741 echo "configure:6742: checking for dlopen" >&5
6742 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6743 echo $ac_n "(cached) $ac_c" 1>&6
6745 cat > conftest.$ac_ext <<EOF
6746 #line 6747 "configure"
6747 #include "confdefs.h"
6748 /* System header to define __stub macros and hopefully few prototypes,
6749 which can conflict with char dlopen(); below. */
6751 /* Override any gcc2 internal prototype to avoid an error. */
6752 /* We use char because int might match the return type of a gcc2
6753 builtin and then its argument prototype would still apply. */
6759 /* The GNU C library defines this for functions which it implements
6760 to always fail with ENOSYS. Some functions are actually named
6761 something starting with __ and the normal name is an alias. */
6762 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6770 if { (eval echo configure:6771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6772 eval "ac_cv_func_dlopen=yes"
6774 echo "configure: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6777 eval "ac_cv_func_dlopen=no"
6782 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6783 echo "$ac_t""yes" 1>&6
6784 lt_cv_dlopen="dlopen"
6786 echo "$ac_t""no" 1>&6
6787 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6788 echo "configure:6789: checking for dlopen in -ldl" >&5
6789 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6790 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6791 echo $ac_n "(cached) $ac_c" 1>&6
6793 ac_save_LIBS="$LIBS"
6795 cat > conftest.$ac_ext <<EOF
6796 #line 6797 "configure"
6797 #include "confdefs.h"
6798 /* Override any gcc2 internal prototype to avoid an error. */
6799 /* We use char because int might match the return type of a gcc2
6800 builtin and then its argument prototype would still apply. */
6807 if { (eval echo configure:6808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6809 eval "ac_cv_lib_$ac_lib_var=yes"
6811 echo "configure: failed program was:" >&5
6812 cat conftest.$ac_ext >&5
6814 eval "ac_cv_lib_$ac_lib_var=no"
6817 LIBS="$ac_save_LIBS"
6820 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6821 echo "$ac_t""yes" 1>&6
6822 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6824 echo "$ac_t""no" 1>&6
6825 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6826 echo "configure:6827: checking for dlopen in -lsvld" >&5
6827 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6828 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6829 echo $ac_n "(cached) $ac_c" 1>&6
6831 ac_save_LIBS="$LIBS"
6833 cat > conftest.$ac_ext <<EOF
6834 #line 6835 "configure"
6835 #include "confdefs.h"
6836 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6845 if { (eval echo configure:6846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6847 eval "ac_cv_lib_$ac_lib_var=yes"
6849 echo "configure: failed program was:" >&5
6850 cat conftest.$ac_ext >&5
6852 eval "ac_cv_lib_$ac_lib_var=no"
6855 LIBS="$ac_save_LIBS"
6858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6859 echo "$ac_t""yes" 1>&6
6860 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6862 echo "$ac_t""no" 1>&6
6863 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6864 echo "configure:6865: checking for dld_link in -ldld" >&5
6865 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6866 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 ac_save_LIBS="$LIBS"
6871 cat > conftest.$ac_ext <<EOF
6872 #line 6873 "configure"
6873 #include "confdefs.h"
6874 /* Override any gcc2 internal prototype to avoid an error. */
6875 /* We use char because int might match the return type of a gcc2
6876 builtin and then its argument prototype would still apply. */
6883 if { (eval echo configure:6884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6885 eval "ac_cv_lib_$ac_lib_var=yes"
6887 echo "configure: failed program was:" >&5
6888 cat conftest.$ac_ext >&5
6890 eval "ac_cv_lib_$ac_lib_var=no"
6893 LIBS="$ac_save_LIBS"
6896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6897 echo "$ac_t""yes" 1>&6
6898 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6900 echo "$ac_t""no" 1>&6
6921 if test "x$lt_cv_dlopen" != xno; then
6927 case $lt_cv_dlopen in
6929 save_CPPFLAGS="$CPPFLAGS"
6930 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6932 save_LDFLAGS="$LDFLAGS"
6933 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6936 LIBS="$lt_cv_dlopen_libs $LIBS"
6938 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6939 echo "configure:6940: checking whether a program can dlopen itself" >&5
6940 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6941 echo $ac_n "(cached) $ac_c" 1>&6
6943 if test "$cross_compiling" = yes; then :
6944 lt_cv_dlopen_self=cross
6946 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6947 lt_status=$lt_dlunknown
6948 cat > conftest.$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6959 # define LT_DLGLOBAL RTLD_GLOBAL
6962 # define LT_DLGLOBAL DL_GLOBAL
6964 # define LT_DLGLOBAL 0
6968 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6969 find out it does not work in some platform. */
6970 #ifndef LT_DLLAZY_OR_NOW
6972 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6975 # define LT_DLLAZY_OR_NOW DL_LAZY
6978 # define LT_DLLAZY_OR_NOW RTLD_NOW
6981 # define LT_DLLAZY_OR_NOW DL_NOW
6983 # define LT_DLLAZY_OR_NOW 0
6991 extern "C" void exit (int);
6994 void fnord() { int i=42;}
6997 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6998 int status = $lt_dlunknown;
7002 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7003 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7004 /* dlclose (self); */
7010 if { (eval echo configure:7011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7011 (./conftest; exit; ) 2>/dev/null
7014 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7015 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7016 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7019 # compilation failed
7020 lt_cv_dlopen_self=no
7028 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7030 if test "x$lt_cv_dlopen_self" = xyes; then
7031 LDFLAGS="$LDFLAGS $link_static_flag"
7032 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7033 echo "configure:7034: checking whether a statically linked program can dlopen itself" >&5
7034 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7035 echo $ac_n "(cached) $ac_c" 1>&6
7037 if test "$cross_compiling" = yes; then :
7038 lt_cv_dlopen_self_static=cross
7040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7041 lt_status=$lt_dlunknown
7042 cat > conftest.$ac_ext <<EOF
7043 #line 7044 "configure"
7044 #include "confdefs.h"
7053 # define LT_DLGLOBAL RTLD_GLOBAL
7056 # define LT_DLGLOBAL DL_GLOBAL
7058 # define LT_DLGLOBAL 0
7062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7063 find out it does not work in some platform. */
7064 #ifndef LT_DLLAZY_OR_NOW
7066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7069 # define LT_DLLAZY_OR_NOW DL_LAZY
7072 # define LT_DLLAZY_OR_NOW RTLD_NOW
7075 # define LT_DLLAZY_OR_NOW DL_NOW
7077 # define LT_DLLAZY_OR_NOW 0
7085 extern "C" void exit (int);
7088 void fnord() { int i=42;}
7091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7092 int status = $lt_dlunknown;
7096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7097 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7098 /* dlclose (self); */
7104 if { (eval echo configure:7105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7105 (./conftest; exit; ) 2>/dev/null
7108 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7109 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7110 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7113 # compilation failed
7114 lt_cv_dlopen_self_static=no
7122 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7125 CPPFLAGS="$save_CPPFLAGS"
7126 LDFLAGS="$save_LDFLAGS"
7131 case $lt_cv_dlopen_self in
7132 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7133 *) enable_dlopen_self=unknown ;;
7136 case $lt_cv_dlopen_self_static in
7137 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7138 *) enable_dlopen_self_static=unknown ;;
7143 if test "$enable_shared" = yes && test "$GCC" = yes; then
7144 case $archive_cmds in
7146 # FIXME: we may have to deal with multi-command sequences.
7149 # Test whether the compiler implicitly links with -lc since on some
7150 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7151 # to ld, don't add -lc before -lgcc.
7152 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7153 echo "configure:7154: checking whether -lc should be explicitly linked in" >&5
7154 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7158 echo 'static int dummy;' > conftest.$ac_ext
7160 if { (eval echo configure:7161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7163 libobjs=conftest.$ac_objext
7165 wl=$lt_cv_prog_cc_wl
7171 save_allow_undefined_flag=$allow_undefined_flag
7172 allow_undefined_flag=
7173 if { (eval echo configure:7174: \"$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; }
7175 lt_cv_archive_cmds_need_lc=no
7177 lt_cv_archive_cmds_need_lc=yes
7179 allow_undefined_flag=$save_allow_undefined_flag
7181 cat conftest.err 1>&5
7185 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7189 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7191 # The second clause should only fire when bootstrapping the
7192 # libtool distribution, otherwise you forgot to ship ltmain.sh
7193 # with your package, and you will get complaints that there are
7194 # no rules to generate ltmain.sh.
7195 if test -f "$ltmain"; then
7198 # If there is no Makefile yet, we rely on a make rule to execute
7199 # `config.status --recheck' to rerun these tests and create the
7200 # libtool script then.
7201 test -f Makefile && make "$ltmain"
7204 if test -f "$ltmain"; then
7205 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7208 echo creating $ofile
7210 # Now quote all the things that may contain metacharacters while being
7211 # careful not to overquote the AC_SUBSTed values. We take copies of the
7212 # variables and quote the copies for generation of the libtool script.
7213 for var in echo old_CC old_CFLAGS SED \
7214 AR AR_FLAGS CC LD LN_S NM SHELL \
7215 reload_flag reload_cmds wl \
7216 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7217 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7218 library_names_spec soname_spec \
7219 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7220 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7221 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7222 old_striplib striplib file_magic_cmd export_symbols_cmds \
7223 deplibs_check_method allow_undefined_flag no_undefined_flag \
7224 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7225 global_symbol_to_c_name_address \
7226 hardcode_libdir_flag_spec hardcode_libdir_separator \
7227 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7228 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7231 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7232 old_postinstall_cmds | old_postuninstall_cmds | \
7233 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7234 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7235 postinstall_cmds | postuninstall_cmds | \
7236 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7237 # Double-quote double-evaled strings.
7238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7246 cat <<__EOF__ > "${ofile}T"
7249 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7250 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7251 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7253 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7254 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7256 # This program is free software; you can redistribute it and/or modify
7257 # it under the terms of the GNU General Public License as published by
7258 # the Free Software Foundation; either version 2 of the License, or
7259 # (at your option) any later version.
7261 # This program is distributed in the hope that it will be useful, but
7262 # WITHOUT ANY WARRANTY; without even the implied warranty of
7263 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7264 # General Public License for more details.
7266 # You should have received a copy of the GNU General Public License
7267 # along with this program; if not, write to the Free Software
7268 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7270 # As a special exception to the GNU General Public License, if you
7271 # distribute this file as part of a program that contains a
7272 # configuration script generated by Autoconf, you may include it under
7273 # the same distribution terms that you use for the rest of that program.
7275 # A sed that does not truncate output.
7278 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7279 Xsed="${SED} -e s/^X//"
7281 # The HP-UX ksh and POSIX shell print the target directory to stdout
7283 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7285 # ### BEGIN LIBTOOL CONFIG
7287 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7289 # Shell to use when invoking shell scripts.
7292 # Whether or not to build shared libraries.
7293 build_libtool_libs=$enable_shared
7295 # Whether or not to build static libraries.
7296 build_old_libs=$enable_static
7298 # Whether or not to add -lc for building shared libraries.
7299 build_libtool_need_lc=$need_lc
7301 # Whether or not to optimize for fast installation.
7302 fast_install=$enable_fast_install
7305 host_alias=$host_alias
7308 # An echo program that does not interpret backslashes.
7313 AR_FLAGS=$lt_AR_FLAGS
7315 # The default C compiler.
7318 # Is the compiler the GNU C compiler?
7321 # The linker used to build libraries.
7324 # Whether we need hard or soft links.
7327 # A BSD-compatible nm program.
7330 # A symbol stripping program
7333 # Used to examine libraries when file_magic_cmd begins "file"
7334 MAGIC_CMD=$MAGIC_CMD
7336 # Used on cygwin: DLL creation program.
7339 # Used on cygwin: object dumper.
7342 # Used on cygwin: assembler.
7345 # The name of the directory that contains temporary libtool files.
7348 # How to create reloadable object files.
7349 reload_flag=$lt_reload_flag
7350 reload_cmds=$lt_reload_cmds
7352 # How to pass a linker flag through the compiler.
7355 # Object file suffix (normally "o").
7358 # Old archive suffix (normally "a").
7361 # Executable file suffix (normally "").
7364 # Additional compiler flags for building library objects.
7365 pic_flag=$lt_pic_flag
7368 # Does compiler simultaneously support -c and -o options?
7369 compiler_c_o=$lt_compiler_c_o
7371 # Can we write directly to a .lo ?
7372 compiler_o_lo=$lt_compiler_o_lo
7374 # Must we lock files when doing compilation ?
7375 need_locks=$lt_need_locks
7377 # Do we need the lib prefix for modules?
7378 need_lib_prefix=$need_lib_prefix
7380 # Do we need a version for libraries?
7381 need_version=$need_version
7383 # Whether dlopen is supported.
7384 dlopen_support=$enable_dlopen
7386 # Whether dlopen of programs is supported.
7387 dlopen_self=$enable_dlopen_self
7389 # Whether dlopen of statically linked programs is supported.
7390 dlopen_self_static=$enable_dlopen_self_static
7392 # Compiler flag to prevent dynamic linking.
7393 link_static_flag=$lt_link_static_flag
7395 # Compiler flag to turn off builtin functions.
7396 no_builtin_flag=$lt_no_builtin_flag
7398 # Compiler flag to allow reflexive dlopens.
7399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7401 # Compiler flag to generate shared objects directly from archives.
7402 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7404 # Compiler flag to generate thread-safe objects.
7405 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7407 # Library versioning type.
7408 version_type=$version_type
7410 # Format of library name prefix.
7411 libname_spec=$lt_libname_spec
7413 # List of archive names. First name is the real one, the rest are links.
7414 # The last name is the one that the linker finds with -lNAME.
7415 library_names_spec=$lt_library_names_spec
7417 # The coded name of the library, if different from the real name.
7418 soname_spec=$lt_soname_spec
7420 # Commands used to build and install an old-style archive.
7422 old_archive_cmds=$lt_old_archive_cmds
7423 old_postinstall_cmds=$lt_old_postinstall_cmds
7424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7426 # Create an old-style archive from a shared archive.
7427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7429 # Create a temporary old-style archive to link instead of a shared archive.
7430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7432 # Commands used to build and install a shared archive.
7433 archive_cmds=$lt_archive_cmds
7434 archive_expsym_cmds=$lt_archive_expsym_cmds
7435 postinstall_cmds=$lt_postinstall_cmds
7436 postuninstall_cmds=$lt_postuninstall_cmds
7438 # Commands to strip libraries.
7439 old_striplib=$lt_old_striplib
7440 striplib=$lt_striplib
7442 # Method to check whether dependent libraries are shared objects.
7443 deplibs_check_method=$lt_deplibs_check_method
7445 # Command to use when deplibs_check_method == file_magic.
7446 file_magic_cmd=$lt_file_magic_cmd
7448 # Flag that allows shared libraries with undefined symbols to be built.
7449 allow_undefined_flag=$lt_allow_undefined_flag
7451 # Flag that forces no undefined symbols.
7452 no_undefined_flag=$lt_no_undefined_flag
7454 # Commands used to finish a libtool library installation in a directory.
7455 finish_cmds=$lt_finish_cmds
7457 # Same as above, but a single script fragment to be evaled but not shown.
7458 finish_eval=$lt_finish_eval
7460 # Take the output of nm and produce a listing of raw symbols and C names.
7461 global_symbol_pipe=$lt_global_symbol_pipe
7463 # Transform the output of nm in a proper C declaration
7464 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7466 # Transform the output of nm in a C name address pair
7467 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7469 # This is the shared library runtime path variable.
7470 runpath_var=$runpath_var
7472 # This is the shared library path variable.
7473 shlibpath_var=$shlibpath_var
7475 # Is shlibpath searched before the hard-coded library search path?
7476 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7478 # How to hardcode a shared library path into an executable.
7479 hardcode_action=$hardcode_action
7481 # Whether we should hardcode library paths into libraries.
7482 hardcode_into_libs=$hardcode_into_libs
7484 # Flag to hardcode \$libdir into a binary during linking.
7485 # This must work even if \$libdir does not exist.
7486 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7488 # Whether we need a single -rpath flag with a separated argument.
7489 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7491 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7493 hardcode_direct=$hardcode_direct
7495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7497 hardcode_minus_L=$hardcode_minus_L
7499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7500 # the resulting binary.
7501 hardcode_shlibpath_var=$hardcode_shlibpath_var
7503 # Variables whose values should be saved in libtool wrapper scripts and
7504 # restored at relink time.
7505 variables_saved_for_relink="$variables_saved_for_relink"
7507 # Whether libtool must link a program against all its dependency libraries.
7508 link_all_deplibs=$link_all_deplibs
7510 # Compile-time system search path for libraries
7511 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7513 # Run-time system search path for libraries
7514 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7516 # Fix the shell variable \$srcfile for the compiler.
7517 fix_srcfile_path="$fix_srcfile_path"
7519 # Set to yes if exported symbols are required.
7520 always_export_symbols=$always_export_symbols
7522 # The commands to list exported symbols.
7523 export_symbols_cmds=$lt_export_symbols_cmds
7525 # The commands to extract the exported symbol list from a shared archive.
7526 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7528 # Symbols that should not be listed in the preloaded symbols.
7529 exclude_expsyms=$lt_exclude_expsyms
7531 # Symbols that must always be exported.
7532 include_expsyms=$lt_include_expsyms
7534 # ### END LIBTOOL CONFIG
7540 cat <<\EOF >> "${ofile}T"
7542 # AIX sometimes has problems with the GCC collect2 program. For some
7543 # reason, if we set the COLLECT_NAMES environment variable, the problems
7544 # vanish in a puff of smoke.
7545 if test "X${COLLECT_NAMES+set}" != Xset; then
7547 export COLLECT_NAMES
7554 cygwin* | mingw* | pw32* | os2*)
7555 cat <<'EOF' >> "${ofile}T"
7556 # This is a source program that is used to create dlls on Windows
7557 # Don't remove nor modify the starting and closing comments
7558 # /* ltdll.c starts here */
7559 # #define WIN32_LEAN_AND_MEAN
7560 # #include <windows.h>
7561 # #undef WIN32_LEAN_AND_MEAN
7562 # #include <stdio.h>
7564 # #ifndef __CYGWIN__
7565 # # ifdef __CYGWIN32__
7566 # # define __CYGWIN__ __CYGWIN32__
7570 # #ifdef __cplusplus
7573 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7574 # #ifdef __cplusplus
7579 # #include <cygwin/cygwin_dll.h>
7580 # DECLARE_CYGWIN_DLL( DllMain );
7582 # HINSTANCE __hDllInstance_base;
7585 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7587 # __hDllInstance_base = hInst;
7590 # /* ltdll.c ends here */
7591 # This is a source program that is used to create import libraries
7592 # on Windows for dlls which lack them. Don't remove nor modify the
7593 # starting and closing comments
7594 # /* impgen.c starts here */
7595 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7597 # This file is part of GNU libtool.
7599 # This program is free software; you can redistribute it and/or modify
7600 # it under the terms of the GNU General Public License as published by
7601 # the Free Software Foundation; either version 2 of the License, or
7602 # (at your option) any later version.
7604 # This program is distributed in the hope that it will be useful,
7605 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7607 # GNU General Public License for more details.
7609 # You should have received a copy of the GNU General Public License
7610 # along with this program; if not, write to the Free Software
7611 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7614 # #include <stdio.h> /* for printf() */
7615 # #include <unistd.h> /* for open(), lseek(), read() */
7616 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7617 # #include <string.h> /* for strdup() */
7619 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7621 # #define O_BINARY 0
7624 # static unsigned int
7625 # pe_get16 (fd, offset)
7629 # unsigned char b[2];
7630 # lseek (fd, offset, SEEK_SET);
7632 # return b[0] + (b[1]<<8);
7635 # static unsigned int
7636 # pe_get32 (fd, offset)
7640 # unsigned char b[4];
7641 # lseek (fd, offset, SEEK_SET);
7643 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7646 # static unsigned int
7650 # unsigned char *b = ptr;
7651 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7660 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7661 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7662 # unsigned long name_rvas, nexp;
7663 # unsigned char *expdata, *erva;
7664 # char *filename, *dll_name;
7666 # filename = argv[1];
7668 # dll = open(filename, O_RDONLY|O_BINARY);
7672 # dll_name = filename;
7674 # for (i=0; filename[i]; i++)
7675 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7676 # dll_name = filename + i +1;
7678 # pe_header_offset = pe_get32 (dll, 0x3c);
7679 # opthdr_ofs = pe_header_offset + 4 + 20;
7680 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7682 # if (num_entries < 1) /* no exports */
7685 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7686 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7687 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7688 # secptr = (pe_header_offset + 4 + 20 +
7689 # pe_get16 (dll, pe_header_offset + 4 + 16));
7692 # for (i = 0; i < nsections; i++)
7695 # unsigned long secptr1 = secptr + 40 * i;
7696 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7697 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7698 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7699 # lseek(dll, secptr1, SEEK_SET);
7700 # read(dll, sname, 8);
7701 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7703 # expptr = fptr + (export_rva - vaddr);
7704 # if (export_rva + export_size > vaddr + vsize)
7705 # export_size = vsize - (export_rva - vaddr);
7710 # expdata = (unsigned char*)malloc(export_size);
7711 # lseek (dll, expptr, SEEK_SET);
7712 # read (dll, expdata, export_size);
7713 # erva = expdata - export_rva;
7715 # nexp = pe_as32 (expdata+24);
7716 # name_rvas = pe_as32 (expdata+32);
7718 # printf ("EXPORTS\n");
7719 # for (i = 0; i<nexp; i++)
7721 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7722 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7727 # /* impgen.c ends here */
7733 # We use sed instead of cat because bash on DJGPP gets confused if
7734 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7735 # text mode, it properly converts lines to CR/LF. This bash problem
7736 # is reportedly fixed, but why not run on old versions too?
7737 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7739 mv -f "${ofile}T" "$ofile" || \
7740 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7748 # This can be used to rebuild libtool when needed
7749 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7751 # Always use our own libtool.
7752 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7754 # Prevent multiple expansion
7758 # test for ln hardlink support
7759 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7760 echo "configure:7761: checking whether ln works" >&5
7761 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7762 echo $ac_n "(cached) $ac_c" 1>&6
7764 rm -f conftest.src conftest.dst
7765 echo "conftest" > conftest.src
7766 if ln conftest.src conftest.dst 2>/dev/null
7768 ol_cv_prog_LN_H="ln"
7770 ol_cv_prog_LN_H="cp"
7772 rm -f conftest.src conftest.dst
7775 LN_H="$ol_cv_prog_LN_H"
7776 if test "$ol_cv_prog_LN_H" = "ln"; then
7777 echo "$ac_t""yes" 1>&6
7779 echo "$ac_t""no" 1>&6
7782 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7783 echo "configure:7784: checking whether ln -s works" >&5
7784 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7785 echo $ac_n "(cached) $ac_c" 1>&6
7788 if ln -s X conftestdata 2>/dev/null
7791 ac_cv_prog_LN_S="ln -s"
7796 LN_S="$ac_cv_prog_LN_S"
7797 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7798 echo "$ac_t""yes" 1>&6
7800 echo "$ac_t""no" 1>&6
7805 if test $ol_enable_perl != no ; then
7806 # Extract the first word of "perl", so it can be a program name with args.
7807 set dummy perl; ac_word=$2
7808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7809 echo "configure:7810: checking for $ac_word" >&5
7810 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7811 echo $ac_n "(cached) $ac_c" 1>&6
7815 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7818 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7823 for ac_dir in $ac_dummy; do
7824 test -z "$ac_dir" && ac_dir=.
7825 if test -f $ac_dir/$ac_word; then
7826 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7831 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7835 PERLBIN="$ac_cv_path_PERLBIN"
7836 if test -n "$PERLBIN"; then
7837 echo "$ac_t""$PERLBIN" 1>&6
7839 echo "$ac_t""no" 1>&6
7843 if test "no$PERLBIN" = "no" ; then
7844 if test $ol_enable_perl = yes ; then
7845 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7849 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7850 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /'`"
7852 if test x"$ol_with_perl_module" = "xstatic" ; then
7853 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7855 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7861 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7862 echo "configure:7863: checking how to run the C preprocessor" >&5
7863 # On Suns, sometimes $CPP names a directory.
7864 if test -n "$CPP" && test -d "$CPP"; then
7867 if test -z "$CPP"; then
7868 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7869 echo $ac_n "(cached) $ac_c" 1>&6
7871 # This must be in double quotes, not single quotes, because CPP may get
7872 # substituted into the Makefile and "${CC-cc}" will confuse make.
7874 # On the NeXT, cc -E runs the code through the compiler's parser,
7875 # not just through cpp.
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7883 { (eval echo configure:7884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7885 if test -z "$ac_err"; then
7889 echo "configure: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 CPP="${CC-cc} -E -traditional-cpp"
7893 cat > conftest.$ac_ext <<EOF
7894 #line 7895 "configure"
7895 #include "confdefs.h"
7899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7900 { (eval echo configure:7901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7902 if test -z "$ac_err"; then
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7909 CPP="${CC-cc} -nologo -E"
7910 cat > conftest.$ac_ext <<EOF
7911 #line 7912 "configure"
7912 #include "confdefs.h"
7916 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7917 { (eval echo configure:7918: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7918 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7919 if test -z "$ac_err"; then
7923 echo "configure: failed program was:" >&5
7924 cat conftest.$ac_ext >&5
7933 ac_cv_prog_CPP="$CPP"
7935 CPP="$ac_cv_prog_CPP"
7937 ac_cv_prog_CPP="$CPP"
7939 echo "$ac_t""$CPP" 1>&6
7942 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7943 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7945 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7946 echo "configure: warning: programs compiled here do run here..." 1>&2
7947 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7949 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7950 echo "configure: warning: programs compiled here do not run here..." 1>&2
7951 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7955 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7956 echo "configure:7957: checking for Cygwin environment" >&5
7957 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7958 echo $ac_n "(cached) $ac_c" 1>&6
7960 cat > conftest.$ac_ext <<EOF
7961 #line 7962 "configure"
7962 #include "confdefs.h"
7967 #define __CYGWIN__ __CYGWIN32__
7972 if { (eval echo configure:7973: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7976 echo "configure: failed program was:" >&5
7977 cat conftest.$ac_ext >&5
7984 echo "$ac_t""$ac_cv_cygwin" 1>&6
7986 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7987 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7988 echo "configure:7989: checking for mingw32 environment" >&5
7989 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7990 echo $ac_n "(cached) $ac_c" 1>&6
7992 cat > conftest.$ac_ext <<EOF
7993 #line 7994 "configure"
7994 #include "confdefs.h"
8000 if { (eval echo configure:8001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8004 echo "configure: failed program was:" >&5
8005 cat conftest.$ac_ext >&5
8012 echo "$ac_t""$ac_cv_mingw32" 1>&6
8014 test "$ac_cv_mingw32" = yes && MINGW32=yes
8018 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8019 echo "configure:8020: checking for executable suffix" >&5
8020 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8021 echo $ac_n "(cached) $ac_c" 1>&6
8023 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8027 echo 'int main () { return 0; }' > conftest.$ac_ext
8029 if { (eval echo configure:8030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8030 for file in conftest.*; do
8032 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8033 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8037 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8040 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8045 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8046 echo "$ac_t""${ac_cv_exeext}" 1>&6
8049 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8050 echo "configure:8051: checking for object suffix" >&5
8051 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8052 echo $ac_n "(cached) $ac_c" 1>&6
8055 echo 'int i = 1;' > conftest.$ac_ext
8056 if { (eval echo configure:8057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8057 for ac_file in conftest.*; do
8060 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8064 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8069 echo "$ac_t""$ac_cv_objext" 1>&6
8070 OBJEXT=$ac_cv_objext
8071 ac_objext=$ac_cv_objext
8074 cat >> confdefs.h <<EOF
8075 #define EXEEXT "${EXEEXT}"
8079 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8080 echo "configure:8081: checking for be_app in -lbe" >&5
8081 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8082 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8085 ac_save_LIBS="$LIBS"
8086 LIBS="-lbe -lroot -lnet $LIBS"
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 /* Override any gcc2 internal prototype to avoid an error. */
8091 /* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8099 if { (eval echo configure:8100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8101 eval "ac_cv_lib_$ac_lib_var=yes"
8103 echo "configure: failed program was:" >&5
8104 cat conftest.$ac_ext >&5
8106 eval "ac_cv_lib_$ac_lib_var=no"
8109 LIBS="$ac_save_LIBS"
8112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8113 echo "$ac_t""yes" 1>&6
8114 LIBS="$LIBS -lbe -lroot -lnet"
8116 echo "$ac_t""no" 1>&6
8124 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8125 echo "configure:8126: checking for ${CC-cc} option to accept ANSI C" >&5
8126 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8127 echo $ac_n "(cached) $ac_c" 1>&6
8129 am_cv_prog_cc_stdc=no
8131 # Don't try gcc -ansi; that turns off useful extensions and
8132 # breaks some systems' header files.
8133 # AIX -qlanglvl=ansi
8134 # Ultrix and OSF/1 -std1
8135 # HP-UX 10.20 and later -Ae
8136 # HP-UX older versions -Aa -D_HPUX_SOURCE
8137 # SVR4 -Xc -D__EXTENSIONS__
8138 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8140 CC="$ac_save_CC $ac_arg"
8141 cat > conftest.$ac_ext <<EOF
8142 #line 8143 "configure"
8143 #include "confdefs.h"
8146 #include <sys/types.h>
8147 #include <sys/stat.h>
8148 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8149 struct buf { int x; };
8150 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8151 static char *e (p, i)
8157 static char *f (char * (*g) (char **, int), char **p, ...)
8162 s = g (p, va_arg (v,int));
8166 int test (int i, double x);
8167 struct s1 {int (*f) (int a);};
8168 struct s2 {int (*f) (double a);};
8169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8175 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8179 if { (eval echo configure:8180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8181 am_cv_prog_cc_stdc="$ac_arg"; break
8183 echo "configure: failed program was:" >&5
8184 cat conftest.$ac_ext >&5
8192 if test -z "$am_cv_prog_cc_stdc"; then
8193 echo "$ac_t""none needed" 1>&6
8195 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8197 case "x$am_cv_prog_cc_stdc" in
8199 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8202 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8203 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8206 # test for make depend flag
8209 if test -z "${MKDEP}"; then
8211 if test -z "${MKDEP_FLAGS}"; then
8212 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8213 echo "configure:8214: checking for ${OL_MKDEP} depend flag" >&5
8214 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8215 echo $ac_n "(cached) $ac_c" 1>&6
8219 for flag in "-M" "-xM"; do
8220 cat > conftest.c <<EOF
8223 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8224 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8226 if test ! -f conftest."${ac_object}" ; then
8228 OL_MKDEP_FLAGS="$flag"
8237 echo "$ac_t""$ol_cv_mkdep" 1>&6
8240 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8245 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8250 if test "${ol_cv_mkdep}" = no ; then
8251 # this will soon become an error
8252 echo "configure: warning: do not know how to generate dependencies" 1>&2
8255 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8256 echo "configure:8257: checking for afopen in -ls" >&5
8257 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8258 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8259 echo $ac_n "(cached) $ac_c" 1>&6
8261 ac_save_LIBS="$LIBS"
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8266 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8275 if { (eval echo configure:8276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8277 eval "ac_cv_lib_$ac_lib_var=yes"
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8282 eval "ac_cv_lib_$ac_lib_var=no"
8285 LIBS="$ac_save_LIBS"
8288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8289 echo "$ac_t""yes" 1>&6
8292 cat >> confdefs.h <<\EOF
8293 #define HAVE_AIX_SECURITY 1
8298 echo "$ac_t""no" 1>&6
8304 ac_cv_func_getopt=no
8305 cat >> confdefs.h <<\EOF
8306 #define BOTH_STRINGS_H 1
8313 if test $ol_enable_modules != no ; then
8314 for ac_hdr in ltdl.h
8316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8318 echo "configure:8319: checking for $ac_hdr" >&5
8319 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8320 echo $ac_n "(cached) $ac_c" 1>&6
8322 cat > conftest.$ac_ext <<EOF
8323 #line 8324 "configure"
8324 #include "confdefs.h"
8327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8328 { (eval echo configure:8329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8330 if test -z "$ac_err"; then
8332 eval "ac_cv_header_$ac_safe=yes"
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8338 eval "ac_cv_header_$ac_safe=no"
8342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8343 echo "$ac_t""yes" 1>&6
8344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8345 cat >> confdefs.h <<EOF
8346 #define $ac_tr_hdr 1
8350 echo "$ac_t""no" 1>&6
8355 if test $ac_cv_header_ltdl_h = no ; then
8356 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8359 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8360 echo "configure:8361: checking for lt_dlinit in -lltdl" >&5
8361 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8363 echo $ac_n "(cached) $ac_c" 1>&6
8365 ac_save_LIBS="$LIBS"
8367 cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 /* Override any gcc2 internal prototype to avoid an error. */
8371 /* We use char because int might match the return type of a gcc2
8372 builtin and then its argument prototype would still apply. */
8379 if { (eval echo configure:8380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8381 eval "ac_cv_lib_$ac_lib_var=yes"
8383 echo "configure: failed program was:" >&5
8384 cat conftest.$ac_ext >&5
8386 eval "ac_cv_lib_$ac_lib_var=no"
8389 LIBS="$ac_save_LIBS"
8392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8393 echo "$ac_t""yes" 1>&6
8396 cat >> confdefs.h <<\EOF
8397 #define HAVE_LIBLTDL 1
8402 echo "$ac_t""no" 1>&6
8406 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8407 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8411 ol_with_bdb_module=static
8412 ol_with_dnssrv_module=static
8413 ol_with_hdb_module=static
8414 ol_with_ldap_module=static
8415 ol_with_ldbm_module=static
8416 ol_with_meta_module=static
8417 ol_with_monitor_module=static
8418 ol_with_null_module=static
8419 ol_with_passwd_module=static
8420 ol_with_perl_module=static
8421 ol_with_shell_module=static
8422 ol_with_tcl_module=static
8423 ol_with_sql_module=static
8427 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8428 echo "configure:8429: checking for EBCDIC" >&5
8429 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8430 echo $ac_n "(cached) $ac_c" 1>&6
8433 cat > conftest.$ac_ext <<EOF
8434 #line 8435 "configure"
8435 #include "confdefs.h"
8438 #include <__ASCII__/generate_error.h>
8442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8443 { (eval echo configure:8444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8445 if test -z "$ac_err"; then
8447 ol_cv_cpp_ebcdic=yes
8450 echo "configure: failed program was:" >&5
8451 cat conftest.$ac_ext >&5
8458 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8459 if test $ol_cv_cpp_ebcdic = yes ; then
8460 cat >> confdefs.h <<\EOF
8461 #define HAVE_EBCDIC 1
8466 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8467 echo "configure:8468: checking for ANSI C header files" >&5
8468 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8469 echo $ac_n "(cached) $ac_c" 1>&6
8471 cat > conftest.$ac_ext <<EOF
8472 #line 8473 "configure"
8473 #include "confdefs.h"
8479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8480 { (eval echo configure:8481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8482 if test -z "$ac_err"; then
8484 ol_cv_header_stdc=yes
8487 echo "configure: failed program was:" >&5
8488 cat conftest.$ac_ext >&5
8490 ol_cv_header_stdc=no
8494 if test $ol_cv_header_stdc = yes; then
8495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502 egrep "memchr" >/dev/null 2>&1; then
8506 ol_cv_header_stdc=no
8512 if test $ol_cv_header_stdc = yes; then
8513 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8514 cat > conftest.$ac_ext <<EOF
8515 #line 8516 "configure"
8516 #include "confdefs.h"
8519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8520 egrep "free" >/dev/null 2>&1; then
8524 ol_cv_header_stdc=no
8530 if test $ol_cv_header_stdc = yes; then
8531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8532 if test "$cross_compiling" = yes; then
8535 cat > conftest.$ac_ext <<EOF
8536 #line 8537 "configure"
8537 #include "confdefs.h"
8540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8543 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8544 || ('j' <= (c) && (c) <= 'r') \
8545 || ('s' <= (c) && (c) <= 'z'))
8546 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8548 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8549 int main () { int i; for (i = 0; i < 256; i++)
8550 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8554 if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8558 echo "configure: failed program was:" >&5
8559 cat conftest.$ac_ext >&5
8561 ol_cv_header_stdc=no
8569 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8570 if test $ol_cv_header_stdc = yes; then
8571 cat >> confdefs.h <<\EOF
8572 #define STDC_HEADERS 1
8576 ac_cv_header_stdc=disable
8579 if test $ol_cv_header_stdc != yes; then
8580 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8584 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8587 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8588 echo "configure:8589: checking for $ac_hdr that defines DIR" >&5
8589 if eval "test \"\${ac_cv_header_dirent_$ac_safe+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>
8601 if { (eval echo configure:8602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8603 eval "ac_cv_header_dirent_$ac_safe=yes"
8605 echo "configure: failed program was:" >&5
8606 cat conftest.$ac_ext >&5
8608 eval "ac_cv_header_dirent_$ac_safe=no"
8612 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8613 echo "$ac_t""yes" 1>&6
8614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8615 cat >> confdefs.h <<EOF
8616 #define $ac_tr_hdr 1
8618 ac_header_dirent=$ac_hdr; break
8620 echo "$ac_t""no" 1>&6
8623 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8624 if test $ac_header_dirent = dirent.h; then
8625 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8626 echo "configure:8627: checking for opendir in -ldir" >&5
8627 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8628 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8629 echo $ac_n "(cached) $ac_c" 1>&6
8631 ac_save_LIBS="$LIBS"
8633 cat > conftest.$ac_ext <<EOF
8634 #line 8635 "configure"
8635 #include "confdefs.h"
8636 /* Override any gcc2 internal prototype to avoid an error. */
8637 /* We use char because int might match the return type of a gcc2
8638 builtin and then its argument prototype would still apply. */
8645 if { (eval echo configure:8646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8647 eval "ac_cv_lib_$ac_lib_var=yes"
8649 echo "configure: failed program was:" >&5
8650 cat conftest.$ac_ext >&5
8652 eval "ac_cv_lib_$ac_lib_var=no"
8655 LIBS="$ac_save_LIBS"
8658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8659 echo "$ac_t""yes" 1>&6
8662 echo "$ac_t""no" 1>&6
8666 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8667 echo "configure:8668: checking for opendir in -lx" >&5
8668 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8669 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8672 ac_save_LIBS="$LIBS"
8674 cat > conftest.$ac_ext <<EOF
8675 #line 8676 "configure"
8676 #include "confdefs.h"
8677 /* Override any gcc2 internal prototype to avoid an error. */
8678 /* We use char because int might match the return type of a gcc2
8679 builtin and then its argument prototype would still apply. */
8686 if { (eval echo configure:8687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8688 eval "ac_cv_lib_$ac_lib_var=yes"
8690 echo "configure: failed program was:" >&5
8691 cat conftest.$ac_ext >&5
8693 eval "ac_cv_lib_$ac_lib_var=no"
8696 LIBS="$ac_save_LIBS"
8699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8700 echo "$ac_t""yes" 1>&6
8703 echo "$ac_t""no" 1>&6
8708 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8709 echo "configure:8710: checking for sys/wait.h that is POSIX.1 compatible" >&5
8710 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8711 echo $ac_n "(cached) $ac_c" 1>&6
8713 cat > conftest.$ac_ext <<EOF
8714 #line 8715 "configure"
8715 #include "confdefs.h"
8716 #include <sys/types.h>
8717 #include <sys/wait.h>
8719 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8722 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8727 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8730 if { (eval echo configure:8731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8732 ac_cv_header_sys_wait_h=yes
8734 echo "configure: failed program was:" >&5
8735 cat conftest.$ac_ext >&5
8737 ac_cv_header_sys_wait_h=no
8742 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8743 if test $ac_cv_header_sys_wait_h = yes; then
8744 cat >> confdefs.h <<\EOF
8745 #define HAVE_SYS_WAIT_H 1
8750 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8751 echo "configure:8752: checking POSIX termios" >&5
8752 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8753 echo $ac_n "(cached) $ac_c" 1>&6
8755 cat > conftest.$ac_ext <<EOF
8756 #line 8757 "configure"
8757 #include "confdefs.h"
8758 #include <sys/types.h>
8760 #include <termios.h>
8762 /* SunOS 4.0.3 has termios.h but not the library calls. */
8766 if { (eval echo configure:8767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8768 am_cv_sys_posix_termios=yes
8770 echo "configure: failed program was:" >&5
8771 cat conftest.$ac_ext >&5
8773 am_cv_sys_posix_termios=no
8778 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8781 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8782 echo "configure:8783: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8783 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8784 echo $ac_n "(cached) $ac_c" 1>&6
8786 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8788 gwinsz_in_termios_h=no
8789 if test $am_cv_sys_posix_termios = yes; then
8790 cat > conftest.$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8793 #include <sys/types.h>
8794 # include <termios.h>
8800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8801 egrep "yes" >/dev/null 2>&1; then
8803 gwinsz_in_termios_h=yes
8809 if test $gwinsz_in_termios_h = no; then
8810 cat > conftest.$ac_ext <<EOF
8811 #line 8812 "configure"
8812 #include "confdefs.h"
8813 #include <sys/types.h>
8814 # include <sys/ioctl.h>
8820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8821 egrep "yes" >/dev/null 2>&1; then
8823 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8831 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8832 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8833 cat >> confdefs.h <<\EOF
8834 #define GWINSZ_IN_SYS_IOCTL 1
8839 if test $am_cv_sys_posix_termios = yes ; then
8840 cat >> confdefs.h <<\EOF
8841 #define HAVE_POSIX_TERMIOS 1
8896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8898 echo "configure:8899: checking for $ac_hdr" >&5
8899 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8900 echo $ac_n "(cached) $ac_c" 1>&6
8902 cat > conftest.$ac_ext <<EOF
8903 #line 8904 "configure"
8904 #include "confdefs.h"
8907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8908 { (eval echo configure:8909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8910 if test -z "$ac_err"; then
8912 eval "ac_cv_header_$ac_safe=yes"
8915 echo "configure: failed program was:" >&5
8916 cat conftest.$ac_ext >&5
8918 eval "ac_cv_header_$ac_safe=no"
8922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8923 echo "$ac_t""yes" 1>&6
8924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8925 cat >> confdefs.h <<EOF
8926 #define $ac_tr_hdr 1
8930 echo "$ac_t""no" 1>&6
8937 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8938 echo "configure:8939: checking for dlopen" >&5
8939 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8940 echo $ac_n "(cached) $ac_c" 1>&6
8942 cat > conftest.$ac_ext <<EOF
8943 #line 8944 "configure"
8944 #include "confdefs.h"
8945 /* System header to define __stub macros and hopefully few prototypes,
8946 which can conflict with char dlopen(); below. */
8948 /* Override any gcc2 internal prototype to avoid an error. */
8949 /* We use char because int might match the return type of a gcc2
8950 builtin and then its argument prototype would still apply. */
8956 /* The GNU C library defines this for functions which it implements
8957 to always fail with ENOSYS. Some functions are actually named
8958 something starting with __ and the normal name is an alias. */
8959 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8967 if { (eval echo configure:8968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8969 eval "ac_cv_func_dlopen=yes"
8971 echo "configure: failed program was:" >&5
8972 cat conftest.$ac_ext >&5
8974 eval "ac_cv_func_dlopen=no"
8979 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8980 echo "$ac_t""yes" 1>&6
8983 echo "$ac_t""no" 1>&6
8984 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8985 echo "configure:8986: checking for dlopen in -ldl" >&5
8986 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8987 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8988 echo $ac_n "(cached) $ac_c" 1>&6
8990 ac_save_LIBS="$LIBS"
8992 cat > conftest.$ac_ext <<EOF
8993 #line 8994 "configure"
8994 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8996 /* We use char because int might match the return type of a gcc2
8997 builtin and then its argument prototype would still apply. */
9004 if { (eval echo configure:9005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9006 eval "ac_cv_lib_$ac_lib_var=yes"
9008 echo "configure: failed program was:" >&5
9009 cat conftest.$ac_ext >&5
9011 eval "ac_cv_lib_$ac_lib_var=no"
9014 LIBS="$ac_save_LIBS"
9017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9018 echo "$ac_t""yes" 1>&6
9019 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9020 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9021 cat >> confdefs.h <<EOF
9022 #define $ac_tr_lib 1
9028 echo "$ac_t""no" 1>&6
9034 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9035 echo "configure:9036: checking for sigset in -lV3" >&5
9036 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9037 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9038 echo $ac_n "(cached) $ac_c" 1>&6
9040 ac_save_LIBS="$LIBS"
9042 cat > conftest.$ac_ext <<EOF
9043 #line 9044 "configure"
9044 #include "confdefs.h"
9045 /* Override any gcc2 internal prototype to avoid an error. */
9046 /* We use char because int might match the return type of a gcc2
9047 builtin and then its argument prototype would still apply. */
9054 if { (eval echo configure:9055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9056 eval "ac_cv_lib_$ac_lib_var=yes"
9058 echo "configure: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 eval "ac_cv_lib_$ac_lib_var=no"
9064 LIBS="$ac_save_LIBS"
9067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9069 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9071 cat >> confdefs.h <<EOF
9072 #define $ac_tr_lib 1
9078 echo "$ac_t""no" 1>&6
9082 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9083 echo "configure:9084: checking for winsock" >&5
9085 for curlib in ws2_32 wsock32; do
9086 LIBS="$LIBS -l$curlib"
9087 cat > conftest.$ac_ext <<EOF
9088 #line 9089 "configure"
9089 #include "confdefs.h"
9093 char closesocket@4();
9094 char gethostname@8();
9105 if { (eval echo configure:9106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9109 echo "configure: failed program was:" >&5
9110 cat conftest.$ac_ext >&5
9116 if test $have_winsock = yes; then
9117 cat >> confdefs.h <<\EOF
9118 #define HAVE_WINSOCK 1
9121 ac_cv_func_socket=yes
9122 ac_cv_func_select=yes
9123 ac_cv_func_closesocket=yes
9124 ac_cv_func_gethostname=yes
9125 if test $curlib = ws2_32; then
9126 have_winsock=winsock2
9127 cat >> confdefs.h <<\EOF
9128 #define HAVE_WINSOCK2 1
9136 echo "$ac_t""$have_winsock" 1>&6
9139 echo $ac_n "checking for socket""... $ac_c" 1>&6
9140 echo "configure:9141: checking for socket" >&5
9141 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9142 echo $ac_n "(cached) $ac_c" 1>&6
9144 cat > conftest.$ac_ext <<EOF
9145 #line 9146 "configure"
9146 #include "confdefs.h"
9147 /* System header to define __stub macros and hopefully few prototypes,
9148 which can conflict with char socket(); below. */
9150 /* Override any gcc2 internal prototype to avoid an error. */
9151 /* We use char because int might match the return type of a gcc2
9152 builtin and then its argument prototype would still apply. */
9158 /* The GNU C library defines this for functions which it implements
9159 to always fail with ENOSYS. Some functions are actually named
9160 something starting with __ and the normal name is an alias. */
9161 #if defined (__stub_socket) || defined (__stub___socket)
9169 if { (eval echo configure:9170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9171 eval "ac_cv_func_socket=yes"
9173 echo "configure: failed program was:" >&5
9174 cat conftest.$ac_ext >&5
9176 eval "ac_cv_func_socket=no"
9181 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9182 echo "$ac_t""yes" 1>&6
9185 echo "$ac_t""no" 1>&6
9187 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9188 echo "configure:9189: checking for main in -lsocket" >&5
9189 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9193 ac_save_LIBS="$LIBS"
9194 LIBS="-lsocket $LIBS"
9195 cat > conftest.$ac_ext <<EOF
9196 #line 9197 "configure"
9197 #include "confdefs.h"
9203 if { (eval echo configure:9204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9205 eval "ac_cv_lib_$ac_lib_var=yes"
9207 echo "configure: failed program was:" >&5
9208 cat conftest.$ac_ext >&5
9210 eval "ac_cv_lib_$ac_lib_var=no"
9213 LIBS="$ac_save_LIBS"
9216 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9217 echo "$ac_t""yes" 1>&6
9218 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9219 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9220 cat >> confdefs.h <<EOF
9221 #define $ac_tr_lib 1
9224 LIBS="-lsocket $LIBS"
9227 echo "$ac_t""no" 1>&6
9230 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9231 echo "configure:9232: checking for main in -lnet" >&5
9232 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9233 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9234 echo $ac_n "(cached) $ac_c" 1>&6
9236 ac_save_LIBS="$LIBS"
9238 cat > conftest.$ac_ext <<EOF
9239 #line 9240 "configure"
9240 #include "confdefs.h"
9246 if { (eval echo configure:9247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9248 eval "ac_cv_lib_$ac_lib_var=yes"
9250 echo "configure: failed program was:" >&5
9251 cat conftest.$ac_ext >&5
9253 eval "ac_cv_lib_$ac_lib_var=no"
9256 LIBS="$ac_save_LIBS"
9259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9260 echo "$ac_t""yes" 1>&6
9261 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9262 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9263 cat >> confdefs.h <<EOF
9264 #define $ac_tr_lib 1
9270 echo "$ac_t""no" 1>&6
9273 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9274 echo "configure:9275: checking for main in -lnsl_s" >&5
9275 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9277 echo $ac_n "(cached) $ac_c" 1>&6
9279 ac_save_LIBS="$LIBS"
9280 LIBS="-lnsl_s $LIBS"
9281 cat > conftest.$ac_ext <<EOF
9282 #line 9283 "configure"
9283 #include "confdefs.h"
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9291 eval "ac_cv_lib_$ac_lib_var=yes"
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9296 eval "ac_cv_lib_$ac_lib_var=no"
9299 LIBS="$ac_save_LIBS"
9302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9303 echo "$ac_t""yes" 1>&6
9304 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9306 cat >> confdefs.h <<EOF
9307 #define $ac_tr_lib 1
9310 LIBS="-lnsl_s $LIBS"
9313 echo "$ac_t""no" 1>&6
9316 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9317 echo "configure:9318: checking for main in -lnsl" >&5
9318 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9319 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9320 echo $ac_n "(cached) $ac_c" 1>&6
9322 ac_save_LIBS="$LIBS"
9324 cat > conftest.$ac_ext <<EOF
9325 #line 9326 "configure"
9326 #include "confdefs.h"
9332 if { (eval echo configure:9333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9334 eval "ac_cv_lib_$ac_lib_var=yes"
9336 echo "configure: failed program was:" >&5
9337 cat conftest.$ac_ext >&5
9339 eval "ac_cv_lib_$ac_lib_var=no"
9342 LIBS="$ac_save_LIBS"
9345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9346 echo "$ac_t""yes" 1>&6
9347 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9348 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9349 cat >> confdefs.h <<EOF
9350 #define $ac_tr_lib 1
9356 echo "$ac_t""no" 1>&6
9359 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9360 echo "configure:9361: checking for socket in -linet" >&5
9361 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9365 ac_save_LIBS="$LIBS"
9367 cat > conftest.$ac_ext <<EOF
9368 #line 9369 "configure"
9369 #include "confdefs.h"
9370 /* Override any gcc2 internal prototype to avoid an error. */
9371 /* We use char because int might match the return type of a gcc2
9372 builtin and then its argument prototype would still apply. */
9379 if { (eval echo configure:9380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9381 eval "ac_cv_lib_$ac_lib_var=yes"
9383 echo "configure: failed program was:" >&5
9384 cat conftest.$ac_ext >&5
9386 eval "ac_cv_lib_$ac_lib_var=no"
9389 LIBS="$ac_save_LIBS"
9392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9393 echo "$ac_t""yes" 1>&6
9394 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9395 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9396 cat >> confdefs.h <<EOF
9397 #define $ac_tr_lib 1
9403 echo "$ac_t""no" 1>&6
9406 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9407 echo "configure:9408: checking for main in -lgen" >&5
9408 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9409 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9410 echo $ac_n "(cached) $ac_c" 1>&6
9412 ac_save_LIBS="$LIBS"
9414 cat > conftest.$ac_ext <<EOF
9415 #line 9416 "configure"
9416 #include "confdefs.h"
9422 if { (eval echo configure:9423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9424 eval "ac_cv_lib_$ac_lib_var=yes"
9426 echo "configure: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9429 eval "ac_cv_lib_$ac_lib_var=no"
9432 LIBS="$ac_save_LIBS"
9435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9436 echo "$ac_t""yes" 1>&6
9437 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9439 cat >> confdefs.h <<EOF
9440 #define $ac_tr_lib 1
9446 echo "$ac_t""no" 1>&6
9453 echo $ac_n "checking for select""... $ac_c" 1>&6
9454 echo "configure:9455: checking for select" >&5
9455 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9458 cat > conftest.$ac_ext <<EOF
9459 #line 9460 "configure"
9460 #include "confdefs.h"
9461 /* System header to define __stub macros and hopefully few prototypes,
9462 which can conflict with char select(); below. */
9464 /* Override any gcc2 internal prototype to avoid an error. */
9465 /* We use char because int might match the return type of a gcc2
9466 builtin and then its argument prototype would still apply. */
9472 /* The GNU C library defines this for functions which it implements
9473 to always fail with ENOSYS. Some functions are actually named
9474 something starting with __ and the normal name is an alias. */
9475 #if defined (__stub_select) || defined (__stub___select)
9483 if { (eval echo configure:9484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9485 eval "ac_cv_func_select=yes"
9487 echo "configure: failed program was:" >&5
9488 cat conftest.$ac_ext >&5
9490 eval "ac_cv_func_select=no"
9495 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9496 echo "$ac_t""yes" 1>&6
9499 echo "$ac_t""no" 1>&6
9500 { echo "configure: error: select() required." 1>&2; exit 1; }
9504 if test "${ac_cv_header_winsock_h}" != yes; then
9505 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9506 echo "configure:9507: checking types of arguments for select()" >&5
9507 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9508 echo $ac_n "(cached) $ac_c" 1>&6
9510 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9514 echo $ac_n "(cached) $ac_c" 1>&6
9516 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9517 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9518 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9519 cat > conftest.$ac_ext <<EOF
9520 #line 9521 "configure"
9521 #include "confdefs.h"
9522 #ifdef HAVE_SYS_TYPES_H
9523 #include <sys/types.h>
9525 #ifdef HAVE_SYS_TIME_H
9526 #include <sys/time.h>
9528 #ifdef HAVE_SYS_SELECT_H
9529 #include <sys/select.h>
9531 #ifdef HAVE_SYS_SOCKET_H
9532 #include <sys/socket.h>
9534 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);
9539 if { (eval echo configure:9540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9541 ac_not_found=no ; break 3
9543 echo "configure: failed program was:" >&5
9544 cat conftest.$ac_ext >&5
9558 if test "$ac_not_found" = yes; then
9559 ac_cv_func_select_arg1=int
9560 ac_cv_func_select_arg234='int *'
9561 ac_cv_func_select_arg5='struct timeval *'
9563 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9564 cat >> confdefs.h <<EOF
9565 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9568 cat >> confdefs.h <<EOF
9569 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9572 cat >> confdefs.h <<EOF
9573 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9580 for ac_hdr in regex.h
9582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9584 echo "configure:9585: checking for $ac_hdr" >&5
9585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9586 echo $ac_n "(cached) $ac_c" 1>&6
9588 cat > conftest.$ac_ext <<EOF
9589 #line 9590 "configure"
9590 #include "confdefs.h"
9593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9594 { (eval echo configure:9595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9596 if test -z "$ac_err"; then
9598 eval "ac_cv_header_$ac_safe=yes"
9601 echo "configure: failed program was:" >&5
9602 cat conftest.$ac_ext >&5
9604 eval "ac_cv_header_$ac_safe=no"
9608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9609 echo "$ac_t""yes" 1>&6
9610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9611 cat >> confdefs.h <<EOF
9612 #define $ac_tr_hdr 1
9616 echo "$ac_t""no" 1>&6
9620 if test "$ac_cv_header_regex_h" != yes ; then
9621 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9624 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9625 echo "configure:9626: checking for library containing regfree" >&5
9626 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9629 ac_func_search_save_LIBS="$LIBS"
9630 ac_cv_search_regfree="no"
9631 cat > conftest.$ac_ext <<EOF
9632 #line 9633 "configure"
9633 #include "confdefs.h"
9634 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9643 if { (eval echo configure:9644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9645 ac_cv_search_regfree="none required"
9647 echo "configure: failed program was:" >&5
9648 cat conftest.$ac_ext >&5
9651 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9653 cat > conftest.$ac_ext <<EOF
9654 #line 9655 "configure"
9655 #include "confdefs.h"
9656 /* Override any gcc2 internal prototype to avoid an error. */
9657 /* We use char because int might match the return type of a gcc2
9658 builtin and then its argument prototype would still apply. */
9665 if { (eval echo configure:9666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9667 ac_cv_search_regfree="-l$ac_lib"
9670 echo "configure: failed program was:" >&5
9671 cat conftest.$ac_ext >&5
9675 LIBS="$ac_func_search_save_LIBS"
9678 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9679 if test "$ac_cv_search_regfree" != "no"; then
9680 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9683 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9687 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9688 echo "configure:9689: checking for compatible POSIX regex" >&5
9689 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9690 echo $ac_n "(cached) $ac_c" 1>&6
9693 if test "$cross_compiling" = yes; then
9694 ol_cv_c_posix_regex=cross
9696 cat > conftest.$ac_ext <<EOF
9697 #line 9698 "configure"
9698 #include "confdefs.h"
9700 #include <sys/types.h>
9702 static char *pattern, *string;
9710 if(regcomp(&re, pattern, 0)) {
9714 string = "ALL MATCH";
9716 rc = regexec(&re, string, 0, (void*)0, 0);
9723 if { (eval echo configure:9724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9725 ol_cv_c_posix_regex=yes
9727 echo "configure: failed program was:" >&5
9728 cat conftest.$ac_ext >&5
9730 ol_cv_c_posix_regex=no
9737 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9739 if test "$ol_cv_c_posix_regex" = no ; then
9740 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9745 for ac_hdr in sys/uuid.h
9747 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9748 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9749 echo "configure:9750: checking for $ac_hdr" >&5
9750 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9751 echo $ac_n "(cached) $ac_c" 1>&6
9753 cat > conftest.$ac_ext <<EOF
9754 #line 9755 "configure"
9755 #include "confdefs.h"
9758 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9759 { (eval echo configure:9760: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9760 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9761 if test -z "$ac_err"; then
9763 eval "ac_cv_header_$ac_safe=yes"
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9769 eval "ac_cv_header_$ac_safe=no"
9773 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9774 echo "$ac_t""yes" 1>&6
9775 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9776 cat >> confdefs.h <<EOF
9777 #define $ac_tr_hdr 1
9781 echo "$ac_t""no" 1>&6
9785 if test $ac_cv_header_sys_uuid_h = yes ; then
9788 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9789 echo "configure:9790: checking for library containing uuid_to_str" >&5
9790 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9791 echo $ac_n "(cached) $ac_c" 1>&6
9793 ac_func_search_save_LIBS="$LIBS"
9794 ac_cv_search_uuid_to_str="no"
9795 cat > conftest.$ac_ext <<EOF
9796 #line 9797 "configure"
9797 #include "confdefs.h"
9798 /* Override any gcc2 internal prototype to avoid an error. */
9799 /* We use char because int might match the return type of a gcc2
9800 builtin and then its argument prototype would still apply. */
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 ac_cv_search_uuid_to_str="none required"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9815 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9817 cat > conftest.$ac_ext <<EOF
9818 #line 9819 "configure"
9819 #include "confdefs.h"
9820 /* Override any gcc2 internal prototype to avoid an error. */
9821 /* We use char because int might match the return type of a gcc2
9822 builtin and then its argument prototype would still apply. */
9829 if { (eval echo configure:9830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9831 ac_cv_search_uuid_to_str="-l$ac_lib"
9834 echo "configure: failed program was:" >&5
9835 cat conftest.$ac_ext >&5
9839 LIBS="$ac_func_search_save_LIBS"
9842 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9843 if test "$ac_cv_search_uuid_to_str" != "no"; then
9844 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9851 if test have_uuid = yes ; then
9852 cat >> confdefs.h <<\EOF
9853 #define HAVE_UUID_TO_STR 1
9857 test "$ac_cv_search_uuid_to_str" = "none required" || \
9858 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9862 if test $have_uuid = no ; then
9863 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9864 echo "configure:9865: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9866 LIBS="$LIBS -lrpcrt4"
9867 cat > conftest.$ac_ext <<EOF
9868 #line 9869 "configure"
9869 #include "confdefs.h"
9871 char UuidCreate@4();
9872 char UuidToStringA@8();
9881 if { (eval echo configure:9882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9885 echo "configure: failed program was:" >&5
9886 cat conftest.$ac_ext >&5
9891 if test $need_rpcrt = yes; then
9892 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9895 echo "$ac_t""$need_rpcrt" 1>&6
9899 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9900 echo "configure:9901: checking for res_query" >&5
9901 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9902 echo $ac_n "(cached) $ac_c" 1>&6
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char res_query(); below. */
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. */
9918 /* The GNU C library defines this for functions which it implements
9919 to always fail with ENOSYS. Some functions are actually named
9920 something starting with __ and the normal name is an alias. */
9921 #if defined (__stub_res_query) || defined (__stub___res_query)
9929 if { (eval echo configure:9930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931 eval "ac_cv_func_res_query=yes"
9933 echo "configure: failed program was:" >&5
9934 cat conftest.$ac_ext >&5
9936 eval "ac_cv_func_res_query=no"
9941 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9942 echo "$ac_t""yes" 1>&6
9945 echo "$ac_t""no" 1>&6
9948 if test $ac_cv_func_res_query = no ; then
9949 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9950 echo "configure:9951: checking for __res_query" >&5
9951 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9952 echo $ac_n "(cached) $ac_c" 1>&6
9954 cat > conftest.$ac_ext <<EOF
9955 #line 9956 "configure"
9956 #include "confdefs.h"
9957 /* System header to define __stub macros and hopefully few prototypes,
9958 which can conflict with char __res_query(); below. */
9960 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9968 /* The GNU C library defines this for functions which it implements
9969 to always fail with ENOSYS. Some functions are actually named
9970 something starting with __ and the normal name is an alias. */
9971 #if defined (__stub___res_query) || defined (__stub_____res_query)
9979 if { (eval echo configure:9980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9981 eval "ac_cv_func___res_query=yes"
9983 echo "configure: failed program was:" >&5
9984 cat conftest.$ac_ext >&5
9986 eval "ac_cv_func___res_query=no"
9991 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9992 echo "$ac_t""yes" 1>&6
9995 echo "$ac_t""no" 1>&6
9998 ac_cv_func_res_query=$ac_cv_func___res_query
10001 if test $ac_cv_func_res_query = no ; then
10002 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10003 echo "configure:10004: checking for res_query in -lbind" >&5
10004 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10005 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10008 ac_save_LIBS="$LIBS"
10009 LIBS="-lbind $LIBS"
10010 cat > conftest.$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013 /* Override any gcc2 internal prototype to avoid an error. */
10014 /* We use char because int might match the return type of a gcc2
10015 builtin and then its argument prototype would still apply. */
10022 if { (eval echo configure:10023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10024 eval "ac_cv_lib_$ac_lib_var=yes"
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10029 eval "ac_cv_lib_$ac_lib_var=no"
10032 LIBS="$ac_save_LIBS"
10035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10036 echo "$ac_t""yes" 1>&6
10037 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10039 cat >> confdefs.h <<EOF
10040 #define $ac_tr_lib 1
10043 LIBS="-lbind $LIBS"
10046 echo "$ac_t""no" 1>&6
10049 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10052 if test $ac_cv_func_res_query = no ; then
10053 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10054 echo "configure:10055: checking for __res_query in -lbind" >&5
10055 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10056 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10057 echo $ac_n "(cached) $ac_c" 1>&6
10059 ac_save_LIBS="$LIBS"
10060 LIBS="-lbind $LIBS"
10061 cat > conftest.$ac_ext <<EOF
10062 #line 10063 "configure"
10063 #include "confdefs.h"
10064 /* Override any gcc2 internal prototype to avoid an error. */
10065 /* We use char because int might match the return type of a gcc2
10066 builtin and then its argument prototype would still apply. */
10067 char __res_query();
10073 if { (eval echo configure:10074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10075 eval "ac_cv_lib_$ac_lib_var=yes"
10077 echo "configure: failed program was:" >&5
10078 cat conftest.$ac_ext >&5
10080 eval "ac_cv_lib_$ac_lib_var=no"
10083 LIBS="$ac_save_LIBS"
10086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10087 echo "$ac_t""yes" 1>&6
10088 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10090 cat >> confdefs.h <<EOF
10091 #define $ac_tr_lib 1
10094 LIBS="-lbind $LIBS"
10097 echo "$ac_t""no" 1>&6
10100 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10103 if test $ac_cv_func_res_query = no ; then
10104 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10105 echo "configure:10106: checking for res_query in -lresolv" >&5
10106 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10107 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10110 ac_save_LIBS="$LIBS"
10111 LIBS="-lresolv $LIBS"
10112 cat > conftest.$ac_ext <<EOF
10113 #line 10114 "configure"
10114 #include "confdefs.h"
10115 /* Override any gcc2 internal prototype to avoid an error. */
10116 /* We use char because int might match the return type of a gcc2
10117 builtin and then its argument prototype would still apply. */
10124 if { (eval echo configure:10125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10126 eval "ac_cv_lib_$ac_lib_var=yes"
10128 echo "configure: failed program was:" >&5
10129 cat conftest.$ac_ext >&5
10131 eval "ac_cv_lib_$ac_lib_var=no"
10134 LIBS="$ac_save_LIBS"
10137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10138 echo "$ac_t""yes" 1>&6
10139 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10140 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10141 cat >> confdefs.h <<EOF
10142 #define $ac_tr_lib 1
10145 LIBS="-lresolv $LIBS"
10148 echo "$ac_t""no" 1>&6
10151 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10154 if test $ac_cv_func_res_query = no ; then
10155 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10156 echo "configure:10157: checking for __res_query in -lresolv" >&5
10157 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10158 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10159 echo $ac_n "(cached) $ac_c" 1>&6
10161 ac_save_LIBS="$LIBS"
10162 LIBS="-lresolv $LIBS"
10163 cat > conftest.$ac_ext <<EOF
10164 #line 10165 "configure"
10165 #include "confdefs.h"
10166 /* Override any gcc2 internal prototype to avoid an error. */
10167 /* We use char because int might match the return type of a gcc2
10168 builtin and then its argument prototype would still apply. */
10169 char __res_query();
10175 if { (eval echo configure:10176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 eval "ac_cv_lib_$ac_lib_var=yes"
10179 echo "configure: failed program was:" >&5
10180 cat conftest.$ac_ext >&5
10182 eval "ac_cv_lib_$ac_lib_var=no"
10185 LIBS="$ac_save_LIBS"
10188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10189 echo "$ac_t""yes" 1>&6
10190 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10192 cat >> confdefs.h <<EOF
10193 #define $ac_tr_lib 1
10196 LIBS="-lresolv $LIBS"
10199 echo "$ac_t""no" 1>&6
10202 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10205 if test "$ac_cv_func_res_query" = yes ; then
10206 cat >> confdefs.h <<\EOF
10207 #define HAVE_RES_QUERY 1
10211 if test $ol_enable_dnssrv != no ; then
10216 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10217 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10220 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10222 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10223 echo "configure:10224: checking for $ac_func" >&5
10224 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10225 echo $ac_n "(cached) $ac_c" 1>&6
10227 cat > conftest.$ac_ext <<EOF
10228 #line 10229 "configure"
10229 #include "confdefs.h"
10230 /* System header to define __stub macros and hopefully few prototypes,
10231 which can conflict with char $ac_func(); below. */
10232 #include <assert.h>
10233 /* Override any gcc2 internal prototype to avoid an error. */
10234 /* We use char because int might match the return type of a gcc2
10235 builtin and then its argument prototype would still apply. */
10241 /* The GNU C library defines this for functions which it implements
10242 to always fail with ENOSYS. Some functions are actually named
10243 something starting with __ and the normal name is an alias. */
10244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10252 if { (eval echo configure:10253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10254 eval "ac_cv_func_$ac_func=yes"
10256 echo "configure: failed program was:" >&5
10257 cat conftest.$ac_ext >&5
10259 eval "ac_cv_func_$ac_func=no"
10264 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10265 echo "$ac_t""yes" 1>&6
10266 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10267 cat >> confdefs.h <<EOF
10268 #define $ac_tr_func 1
10272 echo "$ac_t""no" 1>&6
10278 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10279 if test $ol_enable_ipv6 = yes ; then
10280 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10282 elif test $ol_enable_ipv6 != no ; then
10283 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10284 echo "configure:10285: checking INET6_ADDRSTRLEN" >&5
10285 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10289 cat > conftest.$ac_ext <<EOF
10290 #line 10291 "configure"
10291 #include "confdefs.h"
10293 # include <netinet/in.h>
10294 # ifdef INET6_ADDRSTRLEN
10295 __has_inet6_addrstrlen__;
10299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10300 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10302 ol_cv_inet6_addrstrlen=yes
10305 ol_cv_inet6_addrstrlen=no
10311 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10314 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10315 echo "configure:10316: checking struct sockaddr_storage" >&5
10316 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10317 echo $ac_n "(cached) $ac_c" 1>&6
10320 cat > conftest.$ac_ext <<EOF
10321 #line 10322 "configure"
10322 #include "confdefs.h"
10324 #include <sys/types.h>
10325 #include <sys/socket.h>
10329 struct sockaddr_storage ss;
10333 if { (eval echo configure:10334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10335 ol_cv_struct_sockaddr_storage=yes
10337 echo "configure: failed program was:" >&5
10338 cat conftest.$ac_ext >&5
10340 ol_cv_struct_sockaddr_storage=no
10345 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10347 if test $ol_cv_inet6_addrstrlen = yes \
10348 -a $ol_cv_struct_sockaddr_storage = yes ; then
10350 elif test $ol_enable_ipv6 = yes \
10351 -a $ol_cv_inet6_addrstrlen = no ; then
10352 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10353 elif test $ol_enable_ipv6 = yes \
10354 -a $ol_cv_struct_sockaddr_storage = no ; then
10355 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10359 if test $ol_enable_local != no ; then
10360 for ac_hdr in sys/un.h
10362 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10363 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10364 echo "configure:10365: checking for $ac_hdr" >&5
10365 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10366 echo $ac_n "(cached) $ac_c" 1>&6
10368 cat > conftest.$ac_ext <<EOF
10369 #line 10370 "configure"
10370 #include "confdefs.h"
10373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10374 { (eval echo configure:10375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10375 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10376 if test -z "$ac_err"; then
10378 eval "ac_cv_header_$ac_safe=yes"
10381 echo "configure: failed program was:" >&5
10382 cat conftest.$ac_ext >&5
10384 eval "ac_cv_header_$ac_safe=no"
10388 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10389 echo "$ac_t""yes" 1>&6
10390 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10391 cat >> confdefs.h <<EOF
10392 #define $ac_tr_hdr 1
10396 echo "$ac_t""no" 1>&6
10401 if test $ol_enable_local = auto ; then
10402 ol_enable_local=$ac_cv_header_sys_un_h
10403 elif test $ac_cv_header_sys_un_h = no ; then
10404 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10413 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10414 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10415 -o $ol_with_kerberos = k425 ; then
10417 for ac_hdr in krb5.h
10419 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10420 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10421 echo "configure:10422: checking for $ac_hdr" >&5
10422 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10430 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10431 { (eval echo configure:10432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10432 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10433 if test -z "$ac_err"; then
10435 eval "ac_cv_header_$ac_safe=yes"
10438 echo "configure: failed program was:" >&5
10439 cat conftest.$ac_ext >&5
10441 eval "ac_cv_header_$ac_safe=no"
10445 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10446 echo "$ac_t""yes" 1>&6
10447 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10448 cat >> confdefs.h <<EOF
10449 #define $ac_tr_hdr 1
10453 echo "$ac_t""no" 1>&6
10458 if test $ac_cv_header_krb5_h = yes ; then
10459 for ac_hdr in heim_err.h
10461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10463 echo "configure:10464: checking for $ac_hdr" >&5
10464 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10465 echo $ac_n "(cached) $ac_c" 1>&6
10467 cat > conftest.$ac_ext <<EOF
10468 #line 10469 "configure"
10469 #include "confdefs.h"
10472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10473 { (eval echo configure:10474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10475 if test -z "$ac_err"; then
10477 eval "ac_cv_header_$ac_safe=yes"
10480 echo "configure: failed program was:" >&5
10481 cat conftest.$ac_ext >&5
10483 eval "ac_cv_header_$ac_safe=no"
10487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10488 echo "$ac_t""yes" 1>&6
10489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10490 cat >> confdefs.h <<EOF
10491 #define $ac_tr_hdr 1
10495 echo "$ac_t""no" 1>&6
10499 if test $ac_cv_header_heim_err_h = yes ; then
10505 if test $krb5_impl = mit; then
10506 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10507 echo "configure:10508: checking for main in -lk5crypto" >&5
10508 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10509 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10512 ac_save_LIBS="$LIBS"
10513 LIBS="-lk5crypto $LIBS"
10514 cat > conftest.$ac_ext <<EOF
10515 #line 10516 "configure"
10516 #include "confdefs.h"
10522 if { (eval echo configure:10523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10524 eval "ac_cv_lib_$ac_lib_var=yes"
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10529 eval "ac_cv_lib_$ac_lib_var=no"
10532 LIBS="$ac_save_LIBS"
10535 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10536 echo "$ac_t""yes" 1>&6
10537 krb5crypto=k5crypto
10539 echo "$ac_t""no" 1>&6
10544 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10545 echo "configure:10546: checking for main in -lkrb5" >&5
10546 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10547 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10548 echo $ac_n "(cached) $ac_c" 1>&6
10550 ac_save_LIBS="$LIBS"
10551 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10552 cat > conftest.$ac_ext <<EOF
10553 #line 10554 "configure"
10554 #include "confdefs.h"
10560 if { (eval echo configure:10561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10562 eval "ac_cv_lib_$ac_lib_var=yes"
10564 echo "configure: failed program was:" >&5
10565 cat conftest.$ac_ext >&5
10567 eval "ac_cv_lib_$ac_lib_var=no"
10570 LIBS="$ac_save_LIBS"
10573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10574 echo "$ac_t""yes" 1>&6
10576 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10578 echo "$ac_t""no" 1>&6
10583 elif test $krb5_impl = heimdal; then
10584 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10585 echo "configure:10586: checking for main in -ldes" >&5
10586 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10587 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10588 echo $ac_n "(cached) $ac_c" 1>&6
10590 ac_save_LIBS="$LIBS"
10592 cat > conftest.$ac_ext <<EOF
10593 #line 10594 "configure"
10594 #include "confdefs.h"
10600 if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10602 eval "ac_cv_lib_$ac_lib_var=yes"
10604 echo "configure: failed program was:" >&5
10605 cat conftest.$ac_ext >&5
10607 eval "ac_cv_lib_$ac_lib_var=no"
10610 LIBS="$ac_save_LIBS"
10613 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10614 echo "$ac_t""yes" 1>&6
10617 echo "$ac_t""no" 1>&6
10622 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10623 echo "configure:10624: checking for main in -lkrb5" >&5
10624 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10625 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10628 ac_save_LIBS="$LIBS"
10629 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10630 cat > conftest.$ac_ext <<EOF
10631 #line 10632 "configure"
10632 #include "confdefs.h"
10638 if { (eval echo configure:10639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10640 eval "ac_cv_lib_$ac_lib_var=yes"
10642 echo "configure: failed program was:" >&5
10643 cat conftest.$ac_ext >&5
10645 eval "ac_cv_lib_$ac_lib_var=no"
10648 LIBS="$ac_save_LIBS"
10651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10652 echo "$ac_t""yes" 1>&6
10654 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10656 echo "$ac_t""no" 1>&6
10661 cat >> confdefs.h <<\EOF
10662 #define HAVE_HEIMDAL_KERBEROS 1
10668 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10671 if test $have_krb5 = yes ; then
10674 cat >> confdefs.h <<\EOF
10675 #define HAVE_KRB5 1
10679 if test $ol_enable_kpasswd != no ; then
10680 ol_link_kpasswd=yes;
10683 if test $ol_with_kerberos = k5only ; then
10684 ol_with_kerberos=found
10687 elif test $ol_with_kerberos != auto ; then
10688 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10694 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10695 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10697 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10701 echo "configure:10702: checking for $ac_hdr" >&5
10702 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10703 echo $ac_n "(cached) $ac_c" 1>&6
10705 cat > conftest.$ac_ext <<EOF
10706 #line 10707 "configure"
10707 #include "confdefs.h"
10710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10711 { (eval echo configure:10712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10713 if test -z "$ac_err"; then
10715 eval "ac_cv_header_$ac_safe=yes"
10718 echo "configure: failed program was:" >&5
10719 cat conftest.$ac_ext >&5
10721 eval "ac_cv_header_$ac_safe=no"
10725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10726 echo "$ac_t""yes" 1>&6
10727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10728 cat >> confdefs.h <<EOF
10729 #define $ac_tr_hdr 1
10733 echo "$ac_t""no" 1>&6
10738 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10739 if test $krb5_impl = mit; then
10740 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10741 echo "configure:10742: checking for main in -lkrb4" >&5
10742 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10743 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10744 echo $ac_n "(cached) $ac_c" 1>&6
10746 ac_save_LIBS="$LIBS"
10747 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10750 "configure"
10750 #include "confdefs.h"
10756 if { (eval echo configure:10757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10758 eval "ac_cv_lib_$ac_lib_var=yes"
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10763 eval "ac_cv_lib_$ac_lib_var=no"
10766 LIBS="$ac_save_LIBS"
10769 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10770 echo "$ac_t""yes" 1>&6
10772 KRB4_LIBS="-lkrb4 -ldes425"
10774 echo "$ac_t""no" 1>&6
10779 elif test $krb5_impl = heimdal; then
10780 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10781 echo "configure:10782: checking for main in -lkrb4" >&5
10782 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10783 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10784 echo $ac_n "(cached) $ac_c" 1>&6
10786 ac_save_LIBS="$LIBS"
10787 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10788 cat > conftest.$ac_ext <<EOF
10789 #line 10790 "configure"
10790 #include "confdefs.h"
10796 if { (eval echo configure:10797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10798 eval "ac_cv_lib_$ac_lib_var=yes"
10800 echo "configure: failed program was:" >&5
10801 cat conftest.$ac_ext >&5
10803 eval "ac_cv_lib_$ac_lib_var=no"
10806 LIBS="$ac_save_LIBS"
10809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10810 echo "$ac_t""yes" 1>&6
10814 echo "$ac_t""no" 1>&6
10821 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10824 if test $have_k425 = yes ; then
10825 ol_with_kerberos=found
10828 cat >> confdefs.h <<\EOF
10829 #define HAVE_KRB425 1
10832 cat >> confdefs.h <<\EOF
10833 #define HAVE_KRB4 1
10837 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10838 echo "configure:10839: checking for des_debug in Kerberos libraries" >&5
10839 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10840 echo $ac_n "(cached) $ac_c" 1>&6
10844 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10845 cat > conftest.$ac_ext <<EOF
10846 #line 10847 "configure"
10847 #include "confdefs.h"
10849 #include <kerberosIV/krb.h>
10850 #include <kerberosIV/des.h>
10851 extern int des_debug;
10859 if { (eval echo configure:10860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10861 ol_cv_var_des_debug=yes
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10866 ol_cv_var_des_debug=no
10873 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10875 if test $ol_cv_var_des_debug = yes ; then
10876 cat >> confdefs.h <<\EOF
10877 #define HAVE_DES_DEBUG 1
10887 if test $ol_link_krb5 = yes ; then
10888 ol_with_kerberos=found
10891 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10892 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10894 for ac_hdr in krb.h des.h krb-archaeology.h
10896 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10897 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10898 echo "configure:10899: checking for $ac_hdr" >&5
10899 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10902 cat > conftest.$ac_ext <<EOF
10903 #line 10904 "configure"
10904 #include "confdefs.h"
10907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10908 { (eval echo configure:10909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10910 if test -z "$ac_err"; then
10912 eval "ac_cv_header_$ac_safe=yes"
10915 echo "configure: failed program was:" >&5
10916 cat conftest.$ac_ext >&5
10918 eval "ac_cv_header_$ac_safe=no"
10922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10923 echo "$ac_t""yes" 1>&6
10924 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10925 cat >> confdefs.h <<EOF
10926 #define $ac_tr_hdr 1
10930 echo "$ac_t""no" 1>&6
10935 if test $ac_cv_header_krb_h = yes ; then
10936 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10937 echo "configure:10938: checking for main in -lkrb" >&5
10938 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10940 echo $ac_n "(cached) $ac_c" 1>&6
10942 ac_save_LIBS="$LIBS"
10943 LIBS="-lkrb -ldes $LIBS"
10944 cat > conftest.$ac_ext <<EOF
10945 #line 10946 "configure"
10946 #include "confdefs.h"
10952 if { (eval echo configure:10953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10954 eval "ac_cv_lib_$ac_lib_var=yes"
10956 echo "configure: failed program was:" >&5
10957 cat conftest.$ac_ext >&5
10959 eval "ac_cv_lib_$ac_lib_var=no"
10962 LIBS="$ac_save_LIBS"
10965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10966 echo "$ac_t""yes" 1>&6
10969 echo "$ac_t""no" 1>&6
10974 if test $have_k4 = yes ; then
10975 ol_with_kerberos=found
10978 cat >> confdefs.h <<\EOF
10979 #define HAVE_KRB4 1
10983 KRB4_LIBS="-lkrb -ldes"
10985 if test $ac_cv_header_krb_archaeology_h = yes ; then
10986 cat >> confdefs.h <<\EOF
10987 #define HAVE_KTH_KERBEROS 1
10995 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10996 ol_link_kpasswd=yes
10999 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11002 elif test $ol_enable_kbind = yes ; then
11003 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11006 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11007 cat >> confdefs.h <<\EOF
11008 #define HAVE_KERBEROS 1
11012 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11013 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11017 if test $ol_with_tls != no ; then
11018 for ac_hdr in openssl/ssl.h ssl.h
11020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11022 echo "configure:11023: checking for $ac_hdr" >&5
11023 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11024 echo $ac_n "(cached) $ac_c" 1>&6
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11032 { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11034 if test -z "$ac_err"; then
11036 eval "ac_cv_header_$ac_safe=yes"
11039 echo "configure: failed program was:" >&5
11040 cat conftest.$ac_ext >&5
11042 eval "ac_cv_header_$ac_safe=no"
11046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11047 echo "$ac_t""yes" 1>&6
11048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11049 cat >> confdefs.h <<EOF
11050 #define $ac_tr_hdr 1
11054 echo "$ac_t""no" 1>&6
11059 if test $ac_cv_header_openssl_ssl_h = yes \
11060 -o $ac_cv_header_ssl_h = yes ; then
11061 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11062 echo "configure:11063: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11063 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11067 ac_save_LIBS="$LIBS"
11068 LIBS="-lssl -lcrypto $LIBS"
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 /* Override any gcc2 internal prototype to avoid an error. */
11073 /* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11075 char SSLeay_add_ssl_algorithms();
11078 SSLeay_add_ssl_algorithms()
11081 if { (eval echo configure:11082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11083 eval "ac_cv_lib_$ac_lib_var=yes"
11085 echo "configure: failed program was:" >&5
11086 cat conftest.$ac_ext >&5
11088 eval "ac_cv_lib_$ac_lib_var=no"
11091 LIBS="$ac_save_LIBS"
11094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11095 echo "$ac_t""yes" 1>&6
11099 echo "$ac_t""no" 1>&6
11104 if test $have_ssleay = no ; then
11105 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11106 echo "configure:11107: checking for SSL_library_init in -lssl" >&5
11107 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11108 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11109 echo $ac_n "(cached) $ac_c" 1>&6
11111 ac_save_LIBS="$LIBS"
11112 LIBS="-lssl -lcrypto $LIBS"
11113 cat > conftest.$ac_ext <<EOF
11114 #line 11115 "configure"
11115 #include "confdefs.h"
11116 /* Override any gcc2 internal prototype to avoid an error. */
11117 /* We use char because int might match the return type of a gcc2
11118 builtin and then its argument prototype would still apply. */
11119 char SSL_library_init();
11125 if { (eval echo configure:11126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11127 eval "ac_cv_lib_$ac_lib_var=yes"
11129 echo "configure: failed program was:" >&5
11130 cat conftest.$ac_ext >&5
11132 eval "ac_cv_lib_$ac_lib_var=no"
11135 LIBS="$ac_save_LIBS"
11138 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11139 echo "$ac_t""yes" 1>&6
11143 echo "$ac_t""no" 1>&6
11149 if test $have_ssleay = no ; then
11150 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11151 echo "configure:11152: checking for ssl3_accept in -lssl" >&5
11152 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11156 ac_save_LIBS="$LIBS"
11157 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161 /* Override any gcc2 internal prototype to avoid an error. */
11162 /* We use char because int might match the return type of a gcc2
11163 builtin and then its argument prototype would still apply. */
11164 char ssl3_accept();
11170 if { (eval echo configure:11171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11172 eval "ac_cv_lib_$ac_lib_var=yes"
11174 echo "configure: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11177 eval "ac_cv_lib_$ac_lib_var=no"
11180 LIBS="$ac_save_LIBS"
11183 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11184 echo "$ac_t""yes" 1>&6
11188 echo "$ac_t""no" 1>&6
11194 if test $have_ssleay = yes ; then
11198 cat >> confdefs.h <<\EOF
11199 #define HAVE_SSLEAY 1
11203 if test $need_rsaref = yes; then
11204 cat >> confdefs.h <<\EOF
11205 #define HAVE_RSAREF 1
11209 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11211 TLS_LIBS="-lssl -lcrypto"
11217 echo "configure: warning: TLS data protection not supported!" 1>&2
11221 if test $ol_link_tls = yes ; then
11222 cat >> confdefs.h <<\EOF
11228 elif test $ol_with_tls = auto ; then
11229 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11230 echo "configure: warning: TLS data protection not supported!" 1>&2
11232 elif test $ol_with_tls != no ; then
11233 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11236 if test $ol_enable_lmpasswd != no; then
11237 if test $ol_link_tls != yes ; then
11238 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11241 cat >> confdefs.h <<\EOF
11242 #define SLAPD_LMHASH 1
11249 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11250 -o $ol_with_threads = nt ; then
11253 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11254 echo "configure:11255: checking for _beginthread" >&5
11255 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11256 echo $ac_n "(cached) $ac_c" 1>&6
11258 cat > conftest.$ac_ext <<EOF
11259 #line 11260 "configure"
11260 #include "confdefs.h"
11261 /* System header to define __stub macros and hopefully few prototypes,
11262 which can conflict with char _beginthread(); below. */
11263 #include <assert.h>
11264 /* Override any gcc2 internal prototype to avoid an error. */
11265 /* We use char because int might match the return type of a gcc2
11266 builtin and then its argument prototype would still apply. */
11267 char _beginthread();
11272 /* The GNU C library defines this for functions which it implements
11273 to always fail with ENOSYS. Some functions are actually named
11274 something starting with __ and the normal name is an alias. */
11275 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11283 if { (eval echo configure:11284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11285 eval "ac_cv_func__beginthread=yes"
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11290 eval "ac_cv_func__beginthread=no"
11295 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11296 echo "$ac_t""yes" 1>&6
11299 echo "$ac_t""no" 1>&6
11303 if test $ac_cv_func__beginthread = yes ; then
11304 cat >> confdefs.h <<\EOF
11305 #define HAVE_NT_THREADS 1
11308 ol_cv_nt_threads=yes
11312 if test "$ol_cv_nt_threads" = yes ; then
11314 ol_with_threads=found
11315 ol_with_yielding_select=yes
11317 cat >> confdefs.h <<\EOF
11318 #define HAVE_NT_SERVICE_MANAGER 1
11321 cat >> confdefs.h <<\EOF
11322 #define HAVE_NT_EVENT_LOG 1
11327 if test $ol_with_threads = nt ; then
11328 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11332 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11333 -o $ol_with_threads = posix ; then
11335 for ac_hdr in pthread.h
11337 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11338 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11339 echo "configure:11340: checking for $ac_hdr" >&5
11340 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11341 echo $ac_n "(cached) $ac_c" 1>&6
11343 cat > conftest.$ac_ext <<EOF
11344 #line 11345 "configure"
11345 #include "confdefs.h"
11348 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11349 { (eval echo configure:11350: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11350 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11351 if test -z "$ac_err"; then
11353 eval "ac_cv_header_$ac_safe=yes"
11356 echo "configure: failed program was:" >&5
11357 cat conftest.$ac_ext >&5
11359 eval "ac_cv_header_$ac_safe=no"
11363 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11364 echo "$ac_t""yes" 1>&6
11365 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11366 cat >> confdefs.h <<EOF
11367 #define $ac_tr_hdr 1
11371 echo "$ac_t""no" 1>&6
11376 if test $ac_cv_header_pthread_h = yes ; then
11377 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11378 echo "configure:11379: checking POSIX thread version" >&5
11379 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11383 cat > conftest.$ac_ext <<EOF
11384 #line 11385 "configure"
11385 #include "confdefs.h"
11387 # include <pthread.h>
11391 int i = PTHREAD_CREATE_JOINABLE;
11395 if { (eval echo configure:11396: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11401 #include <pthread.h>
11403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11404 egrep "pthread_detach" >/dev/null 2>&1; then
11406 ol_cv_pthread_version=10
11409 ol_cv_pthread_version=8
11414 echo "configure: failed program was:" >&5
11415 cat conftest.$ac_ext >&5
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11422 # include <pthread.h>
11423 # ifdef PTHREAD_CREATE_UNDETACHED
11428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11429 egrep "draft7" >/dev/null 2>&1; then
11431 ol_cv_pthread_version=7
11435 cat > conftest.$ac_ext <<EOF
11436 #line 11437 "configure"
11437 #include "confdefs.h"
11438 #include <pthread.h>
11440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11441 egrep "pthread_attr_init" >/dev/null 2>&1; then
11443 ol_cv_pthread_version=6
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11451 # include <pthread.h>
11452 #ifdef PTHREAD_MUTEX_INITIALIZER
11457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11458 egrep "draft5" >/dev/null 2>&1; then
11460 ol_cv_pthread_version=5
11463 ol_cv_pthread_version=4
11478 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11481 if test $ol_cv_pthread_version != 0 ; then
11482 cat >> confdefs.h <<EOF
11483 #define HAVE_PTHREADS $ol_cv_pthread_version
11487 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11490 # consider threads found
11491 ol_with_threads=found
11494 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11495 echo "configure:11496: checking for LinuxThreads pthread.h" >&5
11496 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11497 echo $ac_n "(cached) $ac_c" 1>&6
11499 cat > conftest.$ac_ext <<EOF
11500 #line 11501 "configure"
11501 #include "confdefs.h"
11502 #include <pthread.h>
11504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11505 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11507 ol_cv_header_linux_threads=yes
11510 ol_cv_header_linux_threads=no
11517 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11518 if test $ol_cv_header_linux_threads = yes; then
11519 cat >> confdefs.h <<\EOF
11520 #define HAVE_LINUX_THREADS 1
11526 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11527 echo "configure:11528: checking for GNU Pth pthread.h" >&5
11528 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11529 echo $ac_n "(cached) $ac_c" 1>&6
11531 cat > conftest.$ac_ext <<EOF
11532 #line 11533 "configure"
11533 #include "confdefs.h"
11534 #include <pthread.h>
11535 #ifdef _POSIX_THREAD_IS_GNU_PTH
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 egrep "__gnu_pth__" >/dev/null 2>&1; then
11543 ol_cv_header_gnu_pth_pthread_h=yes
11546 ol_cv_header_gnu_pth_pthread_h=no
11553 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11556 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11557 for ac_hdr in sched.h
11559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11561 echo "configure:11562: checking for $ac_hdr" >&5
11562 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11565 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11571 { (eval echo configure:11572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11573 if test -z "$ac_err"; then
11575 eval "ac_cv_header_$ac_safe=yes"
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11581 eval "ac_cv_header_$ac_safe=no"
11585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11586 echo "$ac_t""yes" 1>&6
11587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11588 cat >> confdefs.h <<EOF
11589 #define $ac_tr_hdr 1
11593 echo "$ac_t""no" 1>&6
11600 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11601 echo "configure:11602: checking for pthread_create in default libraries" >&5
11602 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11603 echo $ac_n "(cached) $ac_c" 1>&6
11606 if test "$cross_compiling" = yes; then
11607 cat > conftest.$ac_ext <<EOF
11608 #line 11609 "configure"
11609 #include "confdefs.h"
11610 /* pthread test headers */
11611 #include <pthread.h>
11612 #if HAVE_PTHREADS < 7
11616 #define NULL (void*)0
11619 static void *task(p)
11622 return (void *) (p == NULL);
11627 /* pthread test function */
11628 #ifndef PTHREAD_CREATE_DETACHED
11629 #define PTHREAD_CREATE_DETACHED 1
11633 int detach = PTHREAD_CREATE_DETACHED;
11635 #if HAVE_PTHREADS > 4
11636 /* Final pthreads */
11637 pthread_attr_t attr;
11639 status = pthread_attr_init(&attr);
11640 if( status ) return status;
11642 #if HAVE_PTHREADS < 7
11643 status = pthread_attr_setdetachstate(&attr, &detach);
11644 if( status < 0 ) status = errno;
11646 status = pthread_attr_setdetachstate(&attr, detach);
11648 if( status ) return status;
11649 status = pthread_create( &t, &attr, task, NULL );
11650 #if HAVE_PTHREADS < 7
11651 if( status < 0 ) status = errno;
11653 if( status ) return status;
11655 /* Draft 4 pthreads */
11656 status = pthread_create( &t, pthread_attr_default, task, NULL );
11657 if( status ) return errno;
11659 /* give thread a chance to complete */
11660 /* it should remain joinable and hence detachable */
11663 status = pthread_detach( &t );
11664 if( status ) return errno;
11667 #ifdef HAVE_LINUX_THREADS
11668 pthread_kill_other_threads_np();
11675 if { (eval echo configure:11676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11677 ol_cv_pthread_create=yes
11679 echo "configure: failed program was:" >&5
11680 cat conftest.$ac_ext >&5
11682 ol_cv_pthread_create=no
11686 cat > conftest.$ac_ext <<EOF
11687 #line 11688 "configure"
11688 #include "confdefs.h"
11689 /* pthread test headers */
11690 #include <pthread.h>
11691 #if HAVE_PTHREADS < 7
11695 #define NULL (void*)0
11698 static void *task(p)
11701 return (void *) (p == NULL);
11705 int main(argc, argv)
11710 /* pthread test function */
11711 #ifndef PTHREAD_CREATE_DETACHED
11712 #define PTHREAD_CREATE_DETACHED 1
11716 int detach = PTHREAD_CREATE_DETACHED;
11718 #if HAVE_PTHREADS > 4
11719 /* Final pthreads */
11720 pthread_attr_t attr;
11722 status = pthread_attr_init(&attr);
11723 if( status ) return status;
11725 #if HAVE_PTHREADS < 7
11726 status = pthread_attr_setdetachstate(&attr, &detach);
11727 if( status < 0 ) status = errno;
11729 status = pthread_attr_setdetachstate(&attr, detach);
11731 if( status ) return status;
11732 status = pthread_create( &t, &attr, task, NULL );
11733 #if HAVE_PTHREADS < 7
11734 if( status < 0 ) status = errno;
11736 if( status ) return status;
11738 /* Draft 4 pthreads */
11739 status = pthread_create( &t, pthread_attr_default, task, NULL );
11740 if( status ) return errno;
11742 /* give thread a chance to complete */
11743 /* it should remain joinable and hence detachable */
11746 status = pthread_detach( &t );
11747 if( status ) return errno;
11750 #ifdef HAVE_LINUX_THREADS
11751 pthread_kill_other_threads_np();
11759 if { (eval echo configure:11760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11761 ol_cv_pthread_create=yes
11763 echo "configure: failed program was:" >&5
11764 cat conftest.$ac_ext >&5
11766 ol_cv_pthread_create=no
11773 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11775 if test $ol_cv_pthread_create != no ; then
11776 ol_link_threads=posix
11777 ol_link_pthreads=""
11780 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11781 if test "$ol_link_threads" = no ; then
11783 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11784 echo "configure:11785: checking for pthread link with -kthread" >&5
11785 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11786 echo $ac_n "(cached) $ac_c" 1>&6
11791 LIBS="-kthread $LIBS"
11793 if test "$cross_compiling" = yes; then
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 /* pthread test headers */
11798 #include <pthread.h>
11799 #if HAVE_PTHREADS < 7
11803 #define NULL (void*)0
11806 static void *task(p)
11809 return (void *) (p == NULL);
11814 /* pthread test function */
11815 #ifndef PTHREAD_CREATE_DETACHED
11816 #define PTHREAD_CREATE_DETACHED 1
11820 int detach = PTHREAD_CREATE_DETACHED;
11822 #if HAVE_PTHREADS > 4
11823 /* Final pthreads */
11824 pthread_attr_t attr;
11826 status = pthread_attr_init(&attr);
11827 if( status ) return status;
11829 #if HAVE_PTHREADS < 7
11830 status = pthread_attr_setdetachstate(&attr, &detach);
11831 if( status < 0 ) status = errno;
11833 status = pthread_attr_setdetachstate(&attr, detach);
11835 if( status ) return status;
11836 status = pthread_create( &t, &attr, task, NULL );
11837 #if HAVE_PTHREADS < 7
11838 if( status < 0 ) status = errno;
11840 if( status ) return status;
11842 /* Draft 4 pthreads */
11843 status = pthread_create( &t, pthread_attr_default, task, NULL );
11844 if( status ) return errno;
11846 /* give thread a chance to complete */
11847 /* it should remain joinable and hence detachable */
11850 status = pthread_detach( &t );
11851 if( status ) return errno;
11854 #ifdef HAVE_LINUX_THREADS
11855 pthread_kill_other_threads_np();
11862 if { (eval echo configure:11863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11864 ol_cv_pthread_kthread=yes
11866 echo "configure: failed program was:" >&5
11867 cat conftest.$ac_ext >&5
11869 ol_cv_pthread_kthread=no
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 /* pthread test headers */
11877 #include <pthread.h>
11878 #if HAVE_PTHREADS < 7
11882 #define NULL (void*)0
11885 static void *task(p)
11888 return (void *) (p == NULL);
11892 int main(argc, argv)
11897 /* pthread test function */
11898 #ifndef PTHREAD_CREATE_DETACHED
11899 #define PTHREAD_CREATE_DETACHED 1
11903 int detach = PTHREAD_CREATE_DETACHED;
11905 #if HAVE_PTHREADS > 4
11906 /* Final pthreads */
11907 pthread_attr_t attr;
11909 status = pthread_attr_init(&attr);
11910 if( status ) return status;
11912 #if HAVE_PTHREADS < 7
11913 status = pthread_attr_setdetachstate(&attr, &detach);
11914 if( status < 0 ) status = errno;
11916 status = pthread_attr_setdetachstate(&attr, detach);
11918 if( status ) return status;
11919 status = pthread_create( &t, &attr, task, NULL );
11920 #if HAVE_PTHREADS < 7
11921 if( status < 0 ) status = errno;
11923 if( status ) return status;
11925 /* Draft 4 pthreads */
11926 status = pthread_create( &t, pthread_attr_default, task, NULL );
11927 if( status ) return errno;
11929 /* give thread a chance to complete */
11930 /* it should remain joinable and hence detachable */
11933 status = pthread_detach( &t );
11934 if( status ) return errno;
11937 #ifdef HAVE_LINUX_THREADS
11938 pthread_kill_other_threads_np();
11946 if { (eval echo configure:11947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11948 ol_cv_pthread_kthread=yes
11950 echo "configure: failed program was:" >&5
11951 cat conftest.$ac_ext >&5
11953 ol_cv_pthread_kthread=no
11964 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11966 if test $ol_cv_pthread_kthread = yes ; then
11967 ol_link_pthreads="-kthread"
11968 ol_link_threads=posix
11972 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11973 if test "$ol_link_threads" = no ; then
11975 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11976 echo "configure:11977: checking for pthread link with -pthread" >&5
11977 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11983 LIBS="-pthread $LIBS"
11985 if test "$cross_compiling" = yes; then
11986 cat > conftest.$ac_ext <<EOF
11987 #line 11988 "configure"
11988 #include "confdefs.h"
11989 /* pthread test headers */
11990 #include <pthread.h>
11991 #if HAVE_PTHREADS < 7
11995 #define NULL (void*)0
11998 static void *task(p)
12001 return (void *) (p == NULL);
12006 /* pthread test function */
12007 #ifndef PTHREAD_CREATE_DETACHED
12008 #define PTHREAD_CREATE_DETACHED 1
12012 int detach = PTHREAD_CREATE_DETACHED;
12014 #if HAVE_PTHREADS > 4
12015 /* Final pthreads */
12016 pthread_attr_t attr;
12018 status = pthread_attr_init(&attr);
12019 if( status ) return status;
12021 #if HAVE_PTHREADS < 7
12022 status = pthread_attr_setdetachstate(&attr, &detach);
12023 if( status < 0 ) status = errno;
12025 status = pthread_attr_setdetachstate(&attr, detach);
12027 if( status ) return status;
12028 status = pthread_create( &t, &attr, task, NULL );
12029 #if HAVE_PTHREADS < 7
12030 if( status < 0 ) status = errno;
12032 if( status ) return status;
12034 /* Draft 4 pthreads */
12035 status = pthread_create( &t, pthread_attr_default, task, NULL );
12036 if( status ) return errno;
12038 /* give thread a chance to complete */
12039 /* it should remain joinable and hence detachable */
12042 status = pthread_detach( &t );
12043 if( status ) return errno;
12046 #ifdef HAVE_LINUX_THREADS
12047 pthread_kill_other_threads_np();
12054 if { (eval echo configure:12055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12056 ol_cv_pthread_pthread=yes
12058 echo "configure: failed program was:" >&5
12059 cat conftest.$ac_ext >&5
12061 ol_cv_pthread_pthread=no
12065 cat > conftest.$ac_ext <<EOF
12066 #line 12067 "configure"
12067 #include "confdefs.h"
12068 /* pthread test headers */
12069 #include <pthread.h>
12070 #if HAVE_PTHREADS < 7
12074 #define NULL (void*)0
12077 static void *task(p)
12080 return (void *) (p == NULL);
12084 int main(argc, argv)
12089 /* pthread test function */
12090 #ifndef PTHREAD_CREATE_DETACHED
12091 #define PTHREAD_CREATE_DETACHED 1
12095 int detach = PTHREAD_CREATE_DETACHED;
12097 #if HAVE_PTHREADS > 4
12098 /* Final pthreads */
12099 pthread_attr_t attr;
12101 status = pthread_attr_init(&attr);
12102 if( status ) return status;
12104 #if HAVE_PTHREADS < 7
12105 status = pthread_attr_setdetachstate(&attr, &detach);
12106 if( status < 0 ) status = errno;
12108 status = pthread_attr_setdetachstate(&attr, detach);
12110 if( status ) return status;
12111 status = pthread_create( &t, &attr, task, NULL );
12112 #if HAVE_PTHREADS < 7
12113 if( status < 0 ) status = errno;
12115 if( status ) return status;
12117 /* Draft 4 pthreads */
12118 status = pthread_create( &t, pthread_attr_default, task, NULL );
12119 if( status ) return errno;
12121 /* give thread a chance to complete */
12122 /* it should remain joinable and hence detachable */
12125 status = pthread_detach( &t );
12126 if( status ) return errno;
12129 #ifdef HAVE_LINUX_THREADS
12130 pthread_kill_other_threads_np();
12138 if { (eval echo configure:12139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12140 ol_cv_pthread_pthread=yes
12142 echo "configure: failed program was:" >&5
12143 cat conftest.$ac_ext >&5
12145 ol_cv_pthread_pthread=no
12156 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12158 if test $ol_cv_pthread_pthread = yes ; then
12159 ol_link_pthreads="-pthread"
12160 ol_link_threads=posix
12164 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12165 if test "$ol_link_threads" = no ; then
12167 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12168 echo "configure:12169: checking for pthread link with -pthreads" >&5
12169 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12170 echo $ac_n "(cached) $ac_c" 1>&6
12175 LIBS="-pthreads $LIBS"
12177 if test "$cross_compiling" = yes; then
12178 cat > conftest.$ac_ext <<EOF
12179 #line 12180 "configure"
12180 #include "confdefs.h"
12181 /* pthread test headers */
12182 #include <pthread.h>
12183 #if HAVE_PTHREADS < 7
12187 #define NULL (void*)0
12190 static void *task(p)
12193 return (void *) (p == NULL);
12198 /* pthread test function */
12199 #ifndef PTHREAD_CREATE_DETACHED
12200 #define PTHREAD_CREATE_DETACHED 1
12204 int detach = PTHREAD_CREATE_DETACHED;
12206 #if HAVE_PTHREADS > 4
12207 /* Final pthreads */
12208 pthread_attr_t attr;
12210 status = pthread_attr_init(&attr);
12211 if( status ) return status;
12213 #if HAVE_PTHREADS < 7
12214 status = pthread_attr_setdetachstate(&attr, &detach);
12215 if( status < 0 ) status = errno;
12217 status = pthread_attr_setdetachstate(&attr, detach);
12219 if( status ) return status;
12220 status = pthread_create( &t, &attr, task, NULL );
12221 #if HAVE_PTHREADS < 7
12222 if( status < 0 ) status = errno;
12224 if( status ) return status;
12226 /* Draft 4 pthreads */
12227 status = pthread_create( &t, pthread_attr_default, task, NULL );
12228 if( status ) return errno;
12230 /* give thread a chance to complete */
12231 /* it should remain joinable and hence detachable */
12234 status = pthread_detach( &t );
12235 if( status ) return errno;
12238 #ifdef HAVE_LINUX_THREADS
12239 pthread_kill_other_threads_np();
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12248 ol_cv_pthread_pthreads=yes
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12253 ol_cv_pthread_pthreads=no
12257 cat > conftest.$ac_ext <<EOF
12258 #line 12259 "configure"
12259 #include "confdefs.h"
12260 /* pthread test headers */
12261 #include <pthread.h>
12262 #if HAVE_PTHREADS < 7
12266 #define NULL (void*)0
12269 static void *task(p)
12272 return (void *) (p == NULL);
12276 int main(argc, argv)
12281 /* pthread test function */
12282 #ifndef PTHREAD_CREATE_DETACHED
12283 #define PTHREAD_CREATE_DETACHED 1
12287 int detach = PTHREAD_CREATE_DETACHED;
12289 #if HAVE_PTHREADS > 4
12290 /* Final pthreads */
12291 pthread_attr_t attr;
12293 status = pthread_attr_init(&attr);
12294 if( status ) return status;
12296 #if HAVE_PTHREADS < 7
12297 status = pthread_attr_setdetachstate(&attr, &detach);
12298 if( status < 0 ) status = errno;
12300 status = pthread_attr_setdetachstate(&attr, detach);
12302 if( status ) return status;
12303 status = pthread_create( &t, &attr, task, NULL );
12304 #if HAVE_PTHREADS < 7
12305 if( status < 0 ) status = errno;
12307 if( status ) return status;
12309 /* Draft 4 pthreads */
12310 status = pthread_create( &t, pthread_attr_default, task, NULL );
12311 if( status ) return errno;
12313 /* give thread a chance to complete */
12314 /* it should remain joinable and hence detachable */
12317 status = pthread_detach( &t );
12318 if( status ) return errno;
12321 #ifdef HAVE_LINUX_THREADS
12322 pthread_kill_other_threads_np();
12330 if { (eval echo configure:12331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12332 ol_cv_pthread_pthreads=yes
12334 echo "configure: failed program was:" >&5
12335 cat conftest.$ac_ext >&5
12337 ol_cv_pthread_pthreads=no
12348 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12350 if test $ol_cv_pthread_pthreads = yes ; then
12351 ol_link_pthreads="-pthreads"
12352 ol_link_threads=posix
12356 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12357 if test "$ol_link_threads" = no ; then
12359 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12360 echo "configure:12361: checking for pthread link with -mthreads" >&5
12361 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12362 echo $ac_n "(cached) $ac_c" 1>&6
12367 LIBS="-mthreads $LIBS"
12369 if test "$cross_compiling" = yes; then
12370 cat > conftest.$ac_ext <<EOF
12371 #line 12372 "configure"
12372 #include "confdefs.h"
12373 /* pthread test headers */
12374 #include <pthread.h>
12375 #if HAVE_PTHREADS < 7
12379 #define NULL (void*)0
12382 static void *task(p)
12385 return (void *) (p == NULL);
12390 /* pthread test function */
12391 #ifndef PTHREAD_CREATE_DETACHED
12392 #define PTHREAD_CREATE_DETACHED 1
12396 int detach = PTHREAD_CREATE_DETACHED;
12398 #if HAVE_PTHREADS > 4
12399 /* Final pthreads */
12400 pthread_attr_t attr;
12402 status = pthread_attr_init(&attr);
12403 if( status ) return status;
12405 #if HAVE_PTHREADS < 7
12406 status = pthread_attr_setdetachstate(&attr, &detach);
12407 if( status < 0 ) status = errno;
12409 status = pthread_attr_setdetachstate(&attr, detach);
12411 if( status ) return status;
12412 status = pthread_create( &t, &attr, task, NULL );
12413 #if HAVE_PTHREADS < 7
12414 if( status < 0 ) status = errno;
12416 if( status ) return status;
12418 /* Draft 4 pthreads */
12419 status = pthread_create( &t, pthread_attr_default, task, NULL );
12420 if( status ) return errno;
12422 /* give thread a chance to complete */
12423 /* it should remain joinable and hence detachable */
12426 status = pthread_detach( &t );
12427 if( status ) return errno;
12430 #ifdef HAVE_LINUX_THREADS
12431 pthread_kill_other_threads_np();
12438 if { (eval echo configure:12439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12440 ol_cv_pthread_mthreads=yes
12442 echo "configure: failed program was:" >&5
12443 cat conftest.$ac_ext >&5
12445 ol_cv_pthread_mthreads=no
12449 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure"
12451 #include "confdefs.h"
12452 /* pthread test headers */
12453 #include <pthread.h>
12454 #if HAVE_PTHREADS < 7
12458 #define NULL (void*)0
12461 static void *task(p)
12464 return (void *) (p == NULL);
12468 int main(argc, argv)
12473 /* pthread test function */
12474 #ifndef PTHREAD_CREATE_DETACHED
12475 #define PTHREAD_CREATE_DETACHED 1
12479 int detach = PTHREAD_CREATE_DETACHED;
12481 #if HAVE_PTHREADS > 4
12482 /* Final pthreads */
12483 pthread_attr_t attr;
12485 status = pthread_attr_init(&attr);
12486 if( status ) return status;
12488 #if HAVE_PTHREADS < 7
12489 status = pthread_attr_setdetachstate(&attr, &detach);
12490 if( status < 0 ) status = errno;
12492 status = pthread_attr_setdetachstate(&attr, detach);
12494 if( status ) return status;
12495 status = pthread_create( &t, &attr, task, NULL );
12496 #if HAVE_PTHREADS < 7
12497 if( status < 0 ) status = errno;
12499 if( status ) return status;
12501 /* Draft 4 pthreads */
12502 status = pthread_create( &t, pthread_attr_default, task, NULL );
12503 if( status ) return errno;
12505 /* give thread a chance to complete */
12506 /* it should remain joinable and hence detachable */
12509 status = pthread_detach( &t );
12510 if( status ) return errno;
12513 #ifdef HAVE_LINUX_THREADS
12514 pthread_kill_other_threads_np();
12522 if { (eval echo configure:12523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12524 ol_cv_pthread_mthreads=yes
12526 echo "configure: failed program was:" >&5
12527 cat conftest.$ac_ext >&5
12529 ol_cv_pthread_mthreads=no
12540 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12542 if test $ol_cv_pthread_mthreads = yes ; then
12543 ol_link_pthreads="-mthreads"
12544 ol_link_threads=posix
12548 # Pthread try link: -thread (ol_cv_pthread_thread)
12549 if test "$ol_link_threads" = no ; then
12551 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12552 echo "configure:12553: checking for pthread link with -thread" >&5
12553 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12554 echo $ac_n "(cached) $ac_c" 1>&6
12559 LIBS="-thread $LIBS"
12561 if test "$cross_compiling" = yes; then
12562 cat > conftest.$ac_ext <<EOF
12563 #line 12564 "configure"
12564 #include "confdefs.h"
12565 /* pthread test headers */
12566 #include <pthread.h>
12567 #if HAVE_PTHREADS < 7
12571 #define NULL (void*)0
12574 static void *task(p)
12577 return (void *) (p == NULL);
12582 /* pthread test function */
12583 #ifndef PTHREAD_CREATE_DETACHED
12584 #define PTHREAD_CREATE_DETACHED 1
12588 int detach = PTHREAD_CREATE_DETACHED;
12590 #if HAVE_PTHREADS > 4
12591 /* Final pthreads */
12592 pthread_attr_t attr;
12594 status = pthread_attr_init(&attr);
12595 if( status ) return status;
12597 #if HAVE_PTHREADS < 7
12598 status = pthread_attr_setdetachstate(&attr, &detach);
12599 if( status < 0 ) status = errno;
12601 status = pthread_attr_setdetachstate(&attr, detach);
12603 if( status ) return status;
12604 status = pthread_create( &t, &attr, task, NULL );
12605 #if HAVE_PTHREADS < 7
12606 if( status < 0 ) status = errno;
12608 if( status ) return status;
12610 /* Draft 4 pthreads */
12611 status = pthread_create( &t, pthread_attr_default, task, NULL );
12612 if( status ) return errno;
12614 /* give thread a chance to complete */
12615 /* it should remain joinable and hence detachable */
12618 status = pthread_detach( &t );
12619 if( status ) return errno;
12622 #ifdef HAVE_LINUX_THREADS
12623 pthread_kill_other_threads_np();
12630 if { (eval echo configure:12631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12632 ol_cv_pthread_thread=yes
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12637 ol_cv_pthread_thread=no
12641 cat > conftest.$ac_ext <<EOF
12642 #line 12643 "configure"
12643 #include "confdefs.h"
12644 /* pthread test headers */
12645 #include <pthread.h>
12646 #if HAVE_PTHREADS < 7
12650 #define NULL (void*)0
12653 static void *task(p)
12656 return (void *) (p == NULL);
12660 int main(argc, argv)
12665 /* pthread test function */
12666 #ifndef PTHREAD_CREATE_DETACHED
12667 #define PTHREAD_CREATE_DETACHED 1
12671 int detach = PTHREAD_CREATE_DETACHED;
12673 #if HAVE_PTHREADS > 4
12674 /* Final pthreads */
12675 pthread_attr_t attr;
12677 status = pthread_attr_init(&attr);
12678 if( status ) return status;
12680 #if HAVE_PTHREADS < 7
12681 status = pthread_attr_setdetachstate(&attr, &detach);
12682 if( status < 0 ) status = errno;
12684 status = pthread_attr_setdetachstate(&attr, detach);
12686 if( status ) return status;
12687 status = pthread_create( &t, &attr, task, NULL );
12688 #if HAVE_PTHREADS < 7
12689 if( status < 0 ) status = errno;
12691 if( status ) return status;
12693 /* Draft 4 pthreads */
12694 status = pthread_create( &t, pthread_attr_default, task, NULL );
12695 if( status ) return errno;
12697 /* give thread a chance to complete */
12698 /* it should remain joinable and hence detachable */
12701 status = pthread_detach( &t );
12702 if( status ) return errno;
12705 #ifdef HAVE_LINUX_THREADS
12706 pthread_kill_other_threads_np();
12714 if { (eval echo configure:12715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12716 ol_cv_pthread_thread=yes
12718 echo "configure: failed program was:" >&5
12719 cat conftest.$ac_ext >&5
12721 ol_cv_pthread_thread=no
12732 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12734 if test $ol_cv_pthread_thread = yes ; then
12735 ol_link_pthreads="-thread"
12736 ol_link_threads=posix
12741 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12742 if test "$ol_link_threads" = no ; then
12743 # try -lpthread -lmach -lexc -lc_r
12744 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12745 echo "configure:12746: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12746 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12747 echo $ac_n "(cached) $ac_c" 1>&6
12752 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12754 if test "$cross_compiling" = yes; then
12755 cat > conftest.$ac_ext <<EOF
12756 #line 12757 "configure"
12757 #include "confdefs.h"
12758 /* pthread test headers */
12759 #include <pthread.h>
12760 #if HAVE_PTHREADS < 7
12764 #define NULL (void*)0
12767 static void *task(p)
12770 return (void *) (p == NULL);
12775 /* pthread test function */
12776 #ifndef PTHREAD_CREATE_DETACHED
12777 #define PTHREAD_CREATE_DETACHED 1
12781 int detach = PTHREAD_CREATE_DETACHED;
12783 #if HAVE_PTHREADS > 4
12784 /* Final pthreads */
12785 pthread_attr_t attr;
12787 status = pthread_attr_init(&attr);
12788 if( status ) return status;
12790 #if HAVE_PTHREADS < 7
12791 status = pthread_attr_setdetachstate(&attr, &detach);
12792 if( status < 0 ) status = errno;
12794 status = pthread_attr_setdetachstate(&attr, detach);
12796 if( status ) return status;
12797 status = pthread_create( &t, &attr, task, NULL );
12798 #if HAVE_PTHREADS < 7
12799 if( status < 0 ) status = errno;
12801 if( status ) return status;
12803 /* Draft 4 pthreads */
12804 status = pthread_create( &t, pthread_attr_default, task, NULL );
12805 if( status ) return errno;
12807 /* give thread a chance to complete */
12808 /* it should remain joinable and hence detachable */
12811 status = pthread_detach( &t );
12812 if( status ) return errno;
12815 #ifdef HAVE_LINUX_THREADS
12816 pthread_kill_other_threads_np();
12823 if { (eval echo configure:12824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12825 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12827 echo "configure: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12830 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12834 cat > conftest.$ac_ext <<EOF
12835 #line 12836 "configure"
12836 #include "confdefs.h"
12837 /* pthread test headers */
12838 #include <pthread.h>
12839 #if HAVE_PTHREADS < 7
12843 #define NULL (void*)0
12846 static void *task(p)
12849 return (void *) (p == NULL);
12853 int main(argc, argv)
12858 /* pthread test function */
12859 #ifndef PTHREAD_CREATE_DETACHED
12860 #define PTHREAD_CREATE_DETACHED 1
12864 int detach = PTHREAD_CREATE_DETACHED;
12866 #if HAVE_PTHREADS > 4
12867 /* Final pthreads */
12868 pthread_attr_t attr;
12870 status = pthread_attr_init(&attr);
12871 if( status ) return status;
12873 #if HAVE_PTHREADS < 7
12874 status = pthread_attr_setdetachstate(&attr, &detach);
12875 if( status < 0 ) status = errno;
12877 status = pthread_attr_setdetachstate(&attr, detach);
12879 if( status ) return status;
12880 status = pthread_create( &t, &attr, task, NULL );
12881 #if HAVE_PTHREADS < 7
12882 if( status < 0 ) status = errno;
12884 if( status ) return status;
12886 /* Draft 4 pthreads */
12887 status = pthread_create( &t, pthread_attr_default, task, NULL );
12888 if( status ) return errno;
12890 /* give thread a chance to complete */
12891 /* it should remain joinable and hence detachable */
12894 status = pthread_detach( &t );
12895 if( status ) return errno;
12898 #ifdef HAVE_LINUX_THREADS
12899 pthread_kill_other_threads_np();
12907 if { (eval echo configure:12908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12909 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12911 echo "configure: failed program was:" >&5
12912 cat conftest.$ac_ext >&5
12914 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12925 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12927 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12928 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12929 ol_link_threads=posix
12933 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12934 if test "$ol_link_threads" = no ; then
12935 # try -lpthread -lmach -lexc
12936 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12937 echo "configure:12938: checking for pthread link with -lpthread -lmach -lexc" >&5
12938 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12939 echo $ac_n "(cached) $ac_c" 1>&6
12944 LIBS="-lpthread -lmach -lexc $LIBS"
12946 if test "$cross_compiling" = yes; then
12947 cat > conftest.$ac_ext <<EOF
12948 #line 12949 "configure"
12949 #include "confdefs.h"
12950 /* pthread test headers */
12951 #include <pthread.h>
12952 #if HAVE_PTHREADS < 7
12956 #define NULL (void*)0
12959 static void *task(p)
12962 return (void *) (p == NULL);
12967 /* pthread test function */
12968 #ifndef PTHREAD_CREATE_DETACHED
12969 #define PTHREAD_CREATE_DETACHED 1
12973 int detach = PTHREAD_CREATE_DETACHED;
12975 #if HAVE_PTHREADS > 4
12976 /* Final pthreads */
12977 pthread_attr_t attr;
12979 status = pthread_attr_init(&attr);
12980 if( status ) return status;
12982 #if HAVE_PTHREADS < 7
12983 status = pthread_attr_setdetachstate(&attr, &detach);
12984 if( status < 0 ) status = errno;
12986 status = pthread_attr_setdetachstate(&attr, detach);
12988 if( status ) return status;
12989 status = pthread_create( &t, &attr, task, NULL );
12990 #if HAVE_PTHREADS < 7
12991 if( status < 0 ) status = errno;
12993 if( status ) return status;
12995 /* Draft 4 pthreads */
12996 status = pthread_create( &t, pthread_attr_default, task, NULL );
12997 if( status ) return errno;
12999 /* give thread a chance to complete */
13000 /* it should remain joinable and hence detachable */
13003 status = pthread_detach( &t );
13004 if( status ) return errno;
13007 #ifdef HAVE_LINUX_THREADS
13008 pthread_kill_other_threads_np();
13015 if { (eval echo configure:13016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13017 ol_cv_pthread_lpthread_lmach_lexc=yes
13019 echo "configure: failed program was:" >&5
13020 cat conftest.$ac_ext >&5
13022 ol_cv_pthread_lpthread_lmach_lexc=no
13026 cat > conftest.$ac_ext <<EOF
13027 #line 13028 "configure"
13028 #include "confdefs.h"
13029 /* pthread test headers */
13030 #include <pthread.h>
13031 #if HAVE_PTHREADS < 7
13035 #define NULL (void*)0
13038 static void *task(p)
13041 return (void *) (p == NULL);
13045 int main(argc, argv)
13050 /* pthread test function */
13051 #ifndef PTHREAD_CREATE_DETACHED
13052 #define PTHREAD_CREATE_DETACHED 1
13056 int detach = PTHREAD_CREATE_DETACHED;
13058 #if HAVE_PTHREADS > 4
13059 /* Final pthreads */
13060 pthread_attr_t attr;
13062 status = pthread_attr_init(&attr);
13063 if( status ) return status;
13065 #if HAVE_PTHREADS < 7
13066 status = pthread_attr_setdetachstate(&attr, &detach);
13067 if( status < 0 ) status = errno;
13069 status = pthread_attr_setdetachstate(&attr, detach);
13071 if( status ) return status;
13072 status = pthread_create( &t, &attr, task, NULL );
13073 #if HAVE_PTHREADS < 7
13074 if( status < 0 ) status = errno;
13076 if( status ) return status;
13078 /* Draft 4 pthreads */
13079 status = pthread_create( &t, pthread_attr_default, task, NULL );
13080 if( status ) return errno;
13082 /* give thread a chance to complete */
13083 /* it should remain joinable and hence detachable */
13086 status = pthread_detach( &t );
13087 if( status ) return errno;
13090 #ifdef HAVE_LINUX_THREADS
13091 pthread_kill_other_threads_np();
13099 if { (eval echo configure:13100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13101 ol_cv_pthread_lpthread_lmach_lexc=yes
13103 echo "configure: failed program was:" >&5
13104 cat conftest.$ac_ext >&5
13106 ol_cv_pthread_lpthread_lmach_lexc=no
13117 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13119 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13120 ol_link_pthreads="-lpthread -lmach -lexc"
13121 ol_link_threads=posix
13126 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13127 if test "$ol_link_threads" = no ; then
13128 # try -lpthread -Wl,-woff,85
13129 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13130 echo "configure:13131: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13131 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13132 echo $ac_n "(cached) $ac_c" 1>&6
13137 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13139 if test "$cross_compiling" = yes; then
13140 cat > conftest.$ac_ext <<EOF
13141 #line 13142 "configure"
13142 #include "confdefs.h"
13143 /* pthread test headers */
13144 #include <pthread.h>
13145 #if HAVE_PTHREADS < 7
13149 #define NULL (void*)0
13152 static void *task(p)
13155 return (void *) (p == NULL);
13160 /* pthread test function */
13161 #ifndef PTHREAD_CREATE_DETACHED
13162 #define PTHREAD_CREATE_DETACHED 1
13166 int detach = PTHREAD_CREATE_DETACHED;
13168 #if HAVE_PTHREADS > 4
13169 /* Final pthreads */
13170 pthread_attr_t attr;
13172 status = pthread_attr_init(&attr);
13173 if( status ) return status;
13175 #if HAVE_PTHREADS < 7
13176 status = pthread_attr_setdetachstate(&attr, &detach);
13177 if( status < 0 ) status = errno;
13179 status = pthread_attr_setdetachstate(&attr, detach);
13181 if( status ) return status;
13182 status = pthread_create( &t, &attr, task, NULL );
13183 #if HAVE_PTHREADS < 7
13184 if( status < 0 ) status = errno;
13186 if( status ) return status;
13188 /* Draft 4 pthreads */
13189 status = pthread_create( &t, pthread_attr_default, task, NULL );
13190 if( status ) return errno;
13192 /* give thread a chance to complete */
13193 /* it should remain joinable and hence detachable */
13196 status = pthread_detach( &t );
13197 if( status ) return errno;
13200 #ifdef HAVE_LINUX_THREADS
13201 pthread_kill_other_threads_np();
13208 if { (eval echo configure:13209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13210 ol_cv_pthread_lib_lpthread_woff=yes
13212 echo "configure: failed program was:" >&5
13213 cat conftest.$ac_ext >&5
13215 ol_cv_pthread_lib_lpthread_woff=no
13219 cat > conftest.$ac_ext <<EOF
13220 #line 13221 "configure"
13221 #include "confdefs.h"
13222 /* pthread test headers */
13223 #include <pthread.h>
13224 #if HAVE_PTHREADS < 7
13228 #define NULL (void*)0
13231 static void *task(p)
13234 return (void *) (p == NULL);
13238 int main(argc, argv)
13243 /* pthread test function */
13244 #ifndef PTHREAD_CREATE_DETACHED
13245 #define PTHREAD_CREATE_DETACHED 1
13249 int detach = PTHREAD_CREATE_DETACHED;
13251 #if HAVE_PTHREADS > 4
13252 /* Final pthreads */
13253 pthread_attr_t attr;
13255 status = pthread_attr_init(&attr);
13256 if( status ) return status;
13258 #if HAVE_PTHREADS < 7
13259 status = pthread_attr_setdetachstate(&attr, &detach);
13260 if( status < 0 ) status = errno;
13262 status = pthread_attr_setdetachstate(&attr, detach);
13264 if( status ) return status;
13265 status = pthread_create( &t, &attr, task, NULL );
13266 #if HAVE_PTHREADS < 7
13267 if( status < 0 ) status = errno;
13269 if( status ) return status;
13271 /* Draft 4 pthreads */
13272 status = pthread_create( &t, pthread_attr_default, task, NULL );
13273 if( status ) return errno;
13275 /* give thread a chance to complete */
13276 /* it should remain joinable and hence detachable */
13279 status = pthread_detach( &t );
13280 if( status ) return errno;
13283 #ifdef HAVE_LINUX_THREADS
13284 pthread_kill_other_threads_np();
13292 if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13294 ol_cv_pthread_lib_lpthread_woff=yes
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13299 ol_cv_pthread_lib_lpthread_woff=no
13310 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13312 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13313 ol_link_pthreads="-lpthread -Wl,-woff,85"
13314 ol_link_threads=posix
13319 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13320 if test "$ol_link_threads" = no ; then
13322 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13323 echo "configure:13324: checking for pthread link with -lpthread" >&5
13324 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13325 echo $ac_n "(cached) $ac_c" 1>&6
13330 LIBS="-lpthread $LIBS"
13332 if test "$cross_compiling" = yes; then
13333 cat > conftest.$ac_ext <<EOF
13334 #line 13335 "configure"
13335 #include "confdefs.h"
13336 /* pthread test headers */
13337 #include <pthread.h>
13338 #if HAVE_PTHREADS < 7
13342 #define NULL (void*)0
13345 static void *task(p)
13348 return (void *) (p == NULL);
13353 /* pthread test function */
13354 #ifndef PTHREAD_CREATE_DETACHED
13355 #define PTHREAD_CREATE_DETACHED 1
13359 int detach = PTHREAD_CREATE_DETACHED;
13361 #if HAVE_PTHREADS > 4
13362 /* Final pthreads */
13363 pthread_attr_t attr;
13365 status = pthread_attr_init(&attr);
13366 if( status ) return status;
13368 #if HAVE_PTHREADS < 7
13369 status = pthread_attr_setdetachstate(&attr, &detach);
13370 if( status < 0 ) status = errno;
13372 status = pthread_attr_setdetachstate(&attr, detach);
13374 if( status ) return status;
13375 status = pthread_create( &t, &attr, task, NULL );
13376 #if HAVE_PTHREADS < 7
13377 if( status < 0 ) status = errno;
13379 if( status ) return status;
13381 /* Draft 4 pthreads */
13382 status = pthread_create( &t, pthread_attr_default, task, NULL );
13383 if( status ) return errno;
13385 /* give thread a chance to complete */
13386 /* it should remain joinable and hence detachable */
13389 status = pthread_detach( &t );
13390 if( status ) return errno;
13393 #ifdef HAVE_LINUX_THREADS
13394 pthread_kill_other_threads_np();
13401 if { (eval echo configure:13402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13403 ol_cv_pthread_lpthread=yes
13405 echo "configure: failed program was:" >&5
13406 cat conftest.$ac_ext >&5
13408 ol_cv_pthread_lpthread=no
13412 cat > conftest.$ac_ext <<EOF
13413 #line 13414 "configure"
13414 #include "confdefs.h"
13415 /* pthread test headers */
13416 #include <pthread.h>
13417 #if HAVE_PTHREADS < 7
13421 #define NULL (void*)0
13424 static void *task(p)
13427 return (void *) (p == NULL);
13431 int main(argc, argv)
13436 /* pthread test function */
13437 #ifndef PTHREAD_CREATE_DETACHED
13438 #define PTHREAD_CREATE_DETACHED 1
13442 int detach = PTHREAD_CREATE_DETACHED;
13444 #if HAVE_PTHREADS > 4
13445 /* Final pthreads */
13446 pthread_attr_t attr;
13448 status = pthread_attr_init(&attr);
13449 if( status ) return status;
13451 #if HAVE_PTHREADS < 7
13452 status = pthread_attr_setdetachstate(&attr, &detach);
13453 if( status < 0 ) status = errno;
13455 status = pthread_attr_setdetachstate(&attr, detach);
13457 if( status ) return status;
13458 status = pthread_create( &t, &attr, task, NULL );
13459 #if HAVE_PTHREADS < 7
13460 if( status < 0 ) status = errno;
13462 if( status ) return status;
13464 /* Draft 4 pthreads */
13465 status = pthread_create( &t, pthread_attr_default, task, NULL );
13466 if( status ) return errno;
13468 /* give thread a chance to complete */
13469 /* it should remain joinable and hence detachable */
13472 status = pthread_detach( &t );
13473 if( status ) return errno;
13476 #ifdef HAVE_LINUX_THREADS
13477 pthread_kill_other_threads_np();
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13487 ol_cv_pthread_lpthread=yes
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13492 ol_cv_pthread_lpthread=no
13503 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13505 if test $ol_cv_pthread_lpthread = yes ; then
13506 ol_link_pthreads="-lpthread"
13507 ol_link_threads=posix
13511 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13512 if test "$ol_link_threads" = no ; then
13514 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13515 echo "configure:13516: checking for pthread link with -lc_r" >&5
13516 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13517 echo $ac_n "(cached) $ac_c" 1>&6
13524 if test "$cross_compiling" = yes; then
13525 cat > conftest.$ac_ext <<EOF
13526 #line 13527 "configure"
13527 #include "confdefs.h"
13528 /* pthread test headers */
13529 #include <pthread.h>
13530 #if HAVE_PTHREADS < 7
13534 #define NULL (void*)0
13537 static void *task(p)
13540 return (void *) (p == NULL);
13545 /* pthread test function */
13546 #ifndef PTHREAD_CREATE_DETACHED
13547 #define PTHREAD_CREATE_DETACHED 1
13551 int detach = PTHREAD_CREATE_DETACHED;
13553 #if HAVE_PTHREADS > 4
13554 /* Final pthreads */
13555 pthread_attr_t attr;
13557 status = pthread_attr_init(&attr);
13558 if( status ) return status;
13560 #if HAVE_PTHREADS < 7
13561 status = pthread_attr_setdetachstate(&attr, &detach);
13562 if( status < 0 ) status = errno;
13564 status = pthread_attr_setdetachstate(&attr, detach);
13566 if( status ) return status;
13567 status = pthread_create( &t, &attr, task, NULL );
13568 #if HAVE_PTHREADS < 7
13569 if( status < 0 ) status = errno;
13571 if( status ) return status;
13573 /* Draft 4 pthreads */
13574 status = pthread_create( &t, pthread_attr_default, task, NULL );
13575 if( status ) return errno;
13577 /* give thread a chance to complete */
13578 /* it should remain joinable and hence detachable */
13581 status = pthread_detach( &t );
13582 if( status ) return errno;
13585 #ifdef HAVE_LINUX_THREADS
13586 pthread_kill_other_threads_np();
13593 if { (eval echo configure:13594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13595 ol_cv_pthread_lc_r=yes
13597 echo "configure: failed program was:" >&5
13598 cat conftest.$ac_ext >&5
13600 ol_cv_pthread_lc_r=no
13604 cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13607 /* pthread test headers */
13608 #include <pthread.h>
13609 #if HAVE_PTHREADS < 7
13613 #define NULL (void*)0
13616 static void *task(p)
13619 return (void *) (p == NULL);
13623 int main(argc, argv)
13628 /* pthread test function */
13629 #ifndef PTHREAD_CREATE_DETACHED
13630 #define PTHREAD_CREATE_DETACHED 1
13634 int detach = PTHREAD_CREATE_DETACHED;
13636 #if HAVE_PTHREADS > 4
13637 /* Final pthreads */
13638 pthread_attr_t attr;
13640 status = pthread_attr_init(&attr);
13641 if( status ) return status;
13643 #if HAVE_PTHREADS < 7
13644 status = pthread_attr_setdetachstate(&attr, &detach);
13645 if( status < 0 ) status = errno;
13647 status = pthread_attr_setdetachstate(&attr, detach);
13649 if( status ) return status;
13650 status = pthread_create( &t, &attr, task, NULL );
13651 #if HAVE_PTHREADS < 7
13652 if( status < 0 ) status = errno;
13654 if( status ) return status;
13656 /* Draft 4 pthreads */
13657 status = pthread_create( &t, pthread_attr_default, task, NULL );
13658 if( status ) return errno;
13660 /* give thread a chance to complete */
13661 /* it should remain joinable and hence detachable */
13664 status = pthread_detach( &t );
13665 if( status ) return errno;
13668 #ifdef HAVE_LINUX_THREADS
13669 pthread_kill_other_threads_np();
13677 if { (eval echo configure:13678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13679 ol_cv_pthread_lc_r=yes
13681 echo "configure: failed program was:" >&5
13682 cat conftest.$ac_ext >&5
13684 ol_cv_pthread_lc_r=no
13695 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13697 if test $ol_cv_pthread_lc_r = yes ; then
13698 ol_link_pthreads="-lc_r"
13699 ol_link_threads=posix
13704 # Pthread try link: -threads (ol_cv_pthread_threads)
13705 if test "$ol_link_threads" = no ; then
13707 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13708 echo "configure:13709: checking for pthread link with -threads" >&5
13709 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13710 echo $ac_n "(cached) $ac_c" 1>&6
13715 LIBS="-threads $LIBS"
13717 if test "$cross_compiling" = yes; then
13718 cat > conftest.$ac_ext <<EOF
13719 #line 13720 "configure"
13720 #include "confdefs.h"
13721 /* pthread test headers */
13722 #include <pthread.h>
13723 #if HAVE_PTHREADS < 7
13727 #define NULL (void*)0
13730 static void *task(p)
13733 return (void *) (p == NULL);
13738 /* pthread test function */
13739 #ifndef PTHREAD_CREATE_DETACHED
13740 #define PTHREAD_CREATE_DETACHED 1
13744 int detach = PTHREAD_CREATE_DETACHED;
13746 #if HAVE_PTHREADS > 4
13747 /* Final pthreads */
13748 pthread_attr_t attr;
13750 status = pthread_attr_init(&attr);
13751 if( status ) return status;
13753 #if HAVE_PTHREADS < 7
13754 status = pthread_attr_setdetachstate(&attr, &detach);
13755 if( status < 0 ) status = errno;
13757 status = pthread_attr_setdetachstate(&attr, detach);
13759 if( status ) return status;
13760 status = pthread_create( &t, &attr, task, NULL );
13761 #if HAVE_PTHREADS < 7
13762 if( status < 0 ) status = errno;
13764 if( status ) return status;
13766 /* Draft 4 pthreads */
13767 status = pthread_create( &t, pthread_attr_default, task, NULL );
13768 if( status ) return errno;
13770 /* give thread a chance to complete */
13771 /* it should remain joinable and hence detachable */
13774 status = pthread_detach( &t );
13775 if( status ) return errno;
13778 #ifdef HAVE_LINUX_THREADS
13779 pthread_kill_other_threads_np();
13786 if { (eval echo configure:13787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13788 ol_cv_pthread_threads=yes
13790 echo "configure: failed program was:" >&5
13791 cat conftest.$ac_ext >&5
13793 ol_cv_pthread_threads=no
13797 cat > conftest.$ac_ext <<EOF
13798 #line 13799 "configure"
13799 #include "confdefs.h"
13800 /* pthread test headers */
13801 #include <pthread.h>
13802 #if HAVE_PTHREADS < 7
13806 #define NULL (void*)0
13809 static void *task(p)
13812 return (void *) (p == NULL);
13816 int main(argc, argv)
13821 /* pthread test function */
13822 #ifndef PTHREAD_CREATE_DETACHED
13823 #define PTHREAD_CREATE_DETACHED 1
13827 int detach = PTHREAD_CREATE_DETACHED;
13829 #if HAVE_PTHREADS > 4
13830 /* Final pthreads */
13831 pthread_attr_t attr;
13833 status = pthread_attr_init(&attr);
13834 if( status ) return status;
13836 #if HAVE_PTHREADS < 7
13837 status = pthread_attr_setdetachstate(&attr, &detach);
13838 if( status < 0 ) status = errno;
13840 status = pthread_attr_setdetachstate(&attr, detach);
13842 if( status ) return status;
13843 status = pthread_create( &t, &attr, task, NULL );
13844 #if HAVE_PTHREADS < 7
13845 if( status < 0 ) status = errno;
13847 if( status ) return status;
13849 /* Draft 4 pthreads */
13850 status = pthread_create( &t, pthread_attr_default, task, NULL );
13851 if( status ) return errno;
13853 /* give thread a chance to complete */
13854 /* it should remain joinable and hence detachable */
13857 status = pthread_detach( &t );
13858 if( status ) return errno;
13861 #ifdef HAVE_LINUX_THREADS
13862 pthread_kill_other_threads_np();
13870 if { (eval echo configure:13871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13872 ol_cv_pthread_threads=yes
13874 echo "configure: failed program was:" >&5
13875 cat conftest.$ac_ext >&5
13877 ol_cv_pthread_threads=no
13888 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13890 if test $ol_cv_pthread_threads = yes ; then
13891 ol_link_pthreads="-threads"
13892 ol_link_threads=posix
13897 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13898 if test "$ol_link_threads" = no ; then
13899 # try -lpthreads -lmach -lexc -lc_r
13900 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13901 echo "configure:13902: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13902 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13903 echo $ac_n "(cached) $ac_c" 1>&6
13908 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13910 if test "$cross_compiling" = yes; then
13911 cat > conftest.$ac_ext <<EOF
13912 #line 13913 "configure"
13913 #include "confdefs.h"
13914 /* pthread test headers */
13915 #include <pthread.h>
13916 #if HAVE_PTHREADS < 7
13920 #define NULL (void*)0
13923 static void *task(p)
13926 return (void *) (p == NULL);
13931 /* pthread test function */
13932 #ifndef PTHREAD_CREATE_DETACHED
13933 #define PTHREAD_CREATE_DETACHED 1
13937 int detach = PTHREAD_CREATE_DETACHED;
13939 #if HAVE_PTHREADS > 4
13940 /* Final pthreads */
13941 pthread_attr_t attr;
13943 status = pthread_attr_init(&attr);
13944 if( status ) return status;
13946 #if HAVE_PTHREADS < 7
13947 status = pthread_attr_setdetachstate(&attr, &detach);
13948 if( status < 0 ) status = errno;
13950 status = pthread_attr_setdetachstate(&attr, detach);
13952 if( status ) return status;
13953 status = pthread_create( &t, &attr, task, NULL );
13954 #if HAVE_PTHREADS < 7
13955 if( status < 0 ) status = errno;
13957 if( status ) return status;
13959 /* Draft 4 pthreads */
13960 status = pthread_create( &t, pthread_attr_default, task, NULL );
13961 if( status ) return errno;
13963 /* give thread a chance to complete */
13964 /* it should remain joinable and hence detachable */
13967 status = pthread_detach( &t );
13968 if( status ) return errno;
13971 #ifdef HAVE_LINUX_THREADS
13972 pthread_kill_other_threads_np();
13979 if { (eval echo configure:13980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13981 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
13983 echo "configure: failed program was:" >&5
13984 cat conftest.$ac_ext >&5
13986 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* pthread test headers */
13994 #include <pthread.h>
13995 #if HAVE_PTHREADS < 7
13999 #define NULL (void*)0
14002 static void *task(p)
14005 return (void *) (p == NULL);
14009 int main(argc, argv)
14014 /* pthread test function */
14015 #ifndef PTHREAD_CREATE_DETACHED
14016 #define PTHREAD_CREATE_DETACHED 1
14020 int detach = PTHREAD_CREATE_DETACHED;
14022 #if HAVE_PTHREADS > 4
14023 /* Final pthreads */
14024 pthread_attr_t attr;
14026 status = pthread_attr_init(&attr);
14027 if( status ) return status;
14029 #if HAVE_PTHREADS < 7
14030 status = pthread_attr_setdetachstate(&attr, &detach);
14031 if( status < 0 ) status = errno;
14033 status = pthread_attr_setdetachstate(&attr, detach);
14035 if( status ) return status;
14036 status = pthread_create( &t, &attr, task, NULL );
14037 #if HAVE_PTHREADS < 7
14038 if( status < 0 ) status = errno;
14040 if( status ) return status;
14042 /* Draft 4 pthreads */
14043 status = pthread_create( &t, pthread_attr_default, task, NULL );
14044 if( status ) return errno;
14046 /* give thread a chance to complete */
14047 /* it should remain joinable and hence detachable */
14050 status = pthread_detach( &t );
14051 if( status ) return errno;
14054 #ifdef HAVE_LINUX_THREADS
14055 pthread_kill_other_threads_np();
14063 if { (eval echo configure:14064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14065 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14067 echo "configure: failed program was:" >&5
14068 cat conftest.$ac_ext >&5
14070 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14081 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14083 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14084 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14085 ol_link_threads=posix
14089 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14090 if test "$ol_link_threads" = no ; then
14091 # try -lpthreads -lmach -lexc
14092 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14093 echo "configure:14094: checking for pthread link with -lpthreads -lmach -lexc" >&5
14094 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14095 echo $ac_n "(cached) $ac_c" 1>&6
14100 LIBS="-lpthreads -lmach -lexc $LIBS"
14102 if test "$cross_compiling" = yes; then
14103 cat > conftest.$ac_ext <<EOF
14104 #line 14105 "configure"
14105 #include "confdefs.h"
14106 /* pthread test headers */
14107 #include <pthread.h>
14108 #if HAVE_PTHREADS < 7
14112 #define NULL (void*)0
14115 static void *task(p)
14118 return (void *) (p == NULL);
14123 /* pthread test function */
14124 #ifndef PTHREAD_CREATE_DETACHED
14125 #define PTHREAD_CREATE_DETACHED 1
14129 int detach = PTHREAD_CREATE_DETACHED;
14131 #if HAVE_PTHREADS > 4
14132 /* Final pthreads */
14133 pthread_attr_t attr;
14135 status = pthread_attr_init(&attr);
14136 if( status ) return status;
14138 #if HAVE_PTHREADS < 7
14139 status = pthread_attr_setdetachstate(&attr, &detach);
14140 if( status < 0 ) status = errno;
14142 status = pthread_attr_setdetachstate(&attr, detach);
14144 if( status ) return status;
14145 status = pthread_create( &t, &attr, task, NULL );
14146 #if HAVE_PTHREADS < 7
14147 if( status < 0 ) status = errno;
14149 if( status ) return status;
14151 /* Draft 4 pthreads */
14152 status = pthread_create( &t, pthread_attr_default, task, NULL );
14153 if( status ) return errno;
14155 /* give thread a chance to complete */
14156 /* it should remain joinable and hence detachable */
14159 status = pthread_detach( &t );
14160 if( status ) return errno;
14163 #ifdef HAVE_LINUX_THREADS
14164 pthread_kill_other_threads_np();
14171 if { (eval echo configure:14172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14173 ol_cv_pthread_lpthreads_lmach_lexc=yes
14175 echo "configure: failed program was:" >&5
14176 cat conftest.$ac_ext >&5
14178 ol_cv_pthread_lpthreads_lmach_lexc=no
14182 cat > conftest.$ac_ext <<EOF
14183 #line 14184 "configure"
14184 #include "confdefs.h"
14185 /* pthread test headers */
14186 #include <pthread.h>
14187 #if HAVE_PTHREADS < 7
14191 #define NULL (void*)0
14194 static void *task(p)
14197 return (void *) (p == NULL);
14201 int main(argc, argv)
14206 /* pthread test function */
14207 #ifndef PTHREAD_CREATE_DETACHED
14208 #define PTHREAD_CREATE_DETACHED 1
14212 int detach = PTHREAD_CREATE_DETACHED;
14214 #if HAVE_PTHREADS > 4
14215 /* Final pthreads */
14216 pthread_attr_t attr;
14218 status = pthread_attr_init(&attr);
14219 if( status ) return status;
14221 #if HAVE_PTHREADS < 7
14222 status = pthread_attr_setdetachstate(&attr, &detach);
14223 if( status < 0 ) status = errno;
14225 status = pthread_attr_setdetachstate(&attr, detach);
14227 if( status ) return status;
14228 status = pthread_create( &t, &attr, task, NULL );
14229 #if HAVE_PTHREADS < 7
14230 if( status < 0 ) status = errno;
14232 if( status ) return status;
14234 /* Draft 4 pthreads */
14235 status = pthread_create( &t, pthread_attr_default, task, NULL );
14236 if( status ) return errno;
14238 /* give thread a chance to complete */
14239 /* it should remain joinable and hence detachable */
14242 status = pthread_detach( &t );
14243 if( status ) return errno;
14246 #ifdef HAVE_LINUX_THREADS
14247 pthread_kill_other_threads_np();
14255 if { (eval echo configure:14256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14257 ol_cv_pthread_lpthreads_lmach_lexc=yes
14259 echo "configure: failed program was:" >&5
14260 cat conftest.$ac_ext >&5
14262 ol_cv_pthread_lpthreads_lmach_lexc=no
14273 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14275 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14276 ol_link_pthreads="-lpthreads -lmach -lexc"
14277 ol_link_threads=posix
14281 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14282 if test "$ol_link_threads" = no ; then
14283 # try -lpthreads -lexc
14284 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14285 echo "configure:14286: checking for pthread link with -lpthreads -lexc" >&5
14286 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14287 echo $ac_n "(cached) $ac_c" 1>&6
14292 LIBS="-lpthreads -lexc $LIBS"
14294 if test "$cross_compiling" = yes; then
14295 cat > conftest.$ac_ext <<EOF
14296 #line 14297 "configure"
14297 #include "confdefs.h"
14298 /* pthread test headers */
14299 #include <pthread.h>
14300 #if HAVE_PTHREADS < 7
14304 #define NULL (void*)0
14307 static void *task(p)
14310 return (void *) (p == NULL);
14315 /* pthread test function */
14316 #ifndef PTHREAD_CREATE_DETACHED
14317 #define PTHREAD_CREATE_DETACHED 1
14321 int detach = PTHREAD_CREATE_DETACHED;
14323 #if HAVE_PTHREADS > 4
14324 /* Final pthreads */
14325 pthread_attr_t attr;
14327 status = pthread_attr_init(&attr);
14328 if( status ) return status;
14330 #if HAVE_PTHREADS < 7
14331 status = pthread_attr_setdetachstate(&attr, &detach);
14332 if( status < 0 ) status = errno;
14334 status = pthread_attr_setdetachstate(&attr, detach);
14336 if( status ) return status;
14337 status = pthread_create( &t, &attr, task, NULL );
14338 #if HAVE_PTHREADS < 7
14339 if( status < 0 ) status = errno;
14341 if( status ) return status;
14343 /* Draft 4 pthreads */
14344 status = pthread_create( &t, pthread_attr_default, task, NULL );
14345 if( status ) return errno;
14347 /* give thread a chance to complete */
14348 /* it should remain joinable and hence detachable */
14351 status = pthread_detach( &t );
14352 if( status ) return errno;
14355 #ifdef HAVE_LINUX_THREADS
14356 pthread_kill_other_threads_np();
14363 if { (eval echo configure:14364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14365 ol_cv_pthread_lpthreads_lexc=yes
14367 echo "configure: failed program was:" >&5
14368 cat conftest.$ac_ext >&5
14370 ol_cv_pthread_lpthreads_lexc=no
14374 cat > conftest.$ac_ext <<EOF
14375 #line 14376 "configure"
14376 #include "confdefs.h"
14377 /* pthread test headers */
14378 #include <pthread.h>
14379 #if HAVE_PTHREADS < 7
14383 #define NULL (void*)0
14386 static void *task(p)
14389 return (void *) (p == NULL);
14393 int main(argc, argv)
14398 /* pthread test function */
14399 #ifndef PTHREAD_CREATE_DETACHED
14400 #define PTHREAD_CREATE_DETACHED 1
14404 int detach = PTHREAD_CREATE_DETACHED;
14406 #if HAVE_PTHREADS > 4
14407 /* Final pthreads */
14408 pthread_attr_t attr;
14410 status = pthread_attr_init(&attr);
14411 if( status ) return status;
14413 #if HAVE_PTHREADS < 7
14414 status = pthread_attr_setdetachstate(&attr, &detach);
14415 if( status < 0 ) status = errno;
14417 status = pthread_attr_setdetachstate(&attr, detach);
14419 if( status ) return status;
14420 status = pthread_create( &t, &attr, task, NULL );
14421 #if HAVE_PTHREADS < 7
14422 if( status < 0 ) status = errno;
14424 if( status ) return status;
14426 /* Draft 4 pthreads */
14427 status = pthread_create( &t, pthread_attr_default, task, NULL );
14428 if( status ) return errno;
14430 /* give thread a chance to complete */
14431 /* it should remain joinable and hence detachable */
14434 status = pthread_detach( &t );
14435 if( status ) return errno;
14438 #ifdef HAVE_LINUX_THREADS
14439 pthread_kill_other_threads_np();
14447 if { (eval echo configure:14448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14449 ol_cv_pthread_lpthreads_lexc=yes
14451 echo "configure: failed program was:" >&5
14452 cat conftest.$ac_ext >&5
14454 ol_cv_pthread_lpthreads_lexc=no
14465 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14467 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14468 ol_link_pthreads="-lpthreads -lexc"
14469 ol_link_threads=posix
14474 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14475 if test "$ol_link_threads" = no ; then
14477 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14478 echo "configure:14479: checking for pthread link with -lpthreads" >&5
14479 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14485 LIBS="-lpthreads $LIBS"
14487 if test "$cross_compiling" = yes; then
14488 cat > conftest.$ac_ext <<EOF
14489 #line 14490 "configure"
14490 #include "confdefs.h"
14491 /* pthread test headers */
14492 #include <pthread.h>
14493 #if HAVE_PTHREADS < 7
14497 #define NULL (void*)0
14500 static void *task(p)
14503 return (void *) (p == NULL);
14508 /* pthread test function */
14509 #ifndef PTHREAD_CREATE_DETACHED
14510 #define PTHREAD_CREATE_DETACHED 1
14514 int detach = PTHREAD_CREATE_DETACHED;
14516 #if HAVE_PTHREADS > 4
14517 /* Final pthreads */
14518 pthread_attr_t attr;
14520 status = pthread_attr_init(&attr);
14521 if( status ) return status;
14523 #if HAVE_PTHREADS < 7
14524 status = pthread_attr_setdetachstate(&attr, &detach);
14525 if( status < 0 ) status = errno;
14527 status = pthread_attr_setdetachstate(&attr, detach);
14529 if( status ) return status;
14530 status = pthread_create( &t, &attr, task, NULL );
14531 #if HAVE_PTHREADS < 7
14532 if( status < 0 ) status = errno;
14534 if( status ) return status;
14536 /* Draft 4 pthreads */
14537 status = pthread_create( &t, pthread_attr_default, task, NULL );
14538 if( status ) return errno;
14540 /* give thread a chance to complete */
14541 /* it should remain joinable and hence detachable */
14544 status = pthread_detach( &t );
14545 if( status ) return errno;
14548 #ifdef HAVE_LINUX_THREADS
14549 pthread_kill_other_threads_np();
14556 if { (eval echo configure:14557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14558 ol_cv_pthread_lib_lpthreads=yes
14560 echo "configure: failed program was:" >&5
14561 cat conftest.$ac_ext >&5
14563 ol_cv_pthread_lib_lpthreads=no
14567 cat > conftest.$ac_ext <<EOF
14568 #line 14569 "configure"
14569 #include "confdefs.h"
14570 /* pthread test headers */
14571 #include <pthread.h>
14572 #if HAVE_PTHREADS < 7
14576 #define NULL (void*)0
14579 static void *task(p)
14582 return (void *) (p == NULL);
14586 int main(argc, argv)
14591 /* pthread test function */
14592 #ifndef PTHREAD_CREATE_DETACHED
14593 #define PTHREAD_CREATE_DETACHED 1
14597 int detach = PTHREAD_CREATE_DETACHED;
14599 #if HAVE_PTHREADS > 4
14600 /* Final pthreads */
14601 pthread_attr_t attr;
14603 status = pthread_attr_init(&attr);
14604 if( status ) return status;
14606 #if HAVE_PTHREADS < 7
14607 status = pthread_attr_setdetachstate(&attr, &detach);
14608 if( status < 0 ) status = errno;
14610 status = pthread_attr_setdetachstate(&attr, detach);
14612 if( status ) return status;
14613 status = pthread_create( &t, &attr, task, NULL );
14614 #if HAVE_PTHREADS < 7
14615 if( status < 0 ) status = errno;
14617 if( status ) return status;
14619 /* Draft 4 pthreads */
14620 status = pthread_create( &t, pthread_attr_default, task, NULL );
14621 if( status ) return errno;
14623 /* give thread a chance to complete */
14624 /* it should remain joinable and hence detachable */
14627 status = pthread_detach( &t );
14628 if( status ) return errno;
14631 #ifdef HAVE_LINUX_THREADS
14632 pthread_kill_other_threads_np();
14640 if { (eval echo configure:14641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14642 ol_cv_pthread_lib_lpthreads=yes
14644 echo "configure: failed program was:" >&5
14645 cat conftest.$ac_ext >&5
14647 ol_cv_pthread_lib_lpthreads=no
14658 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14660 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14661 ol_link_pthreads="-lpthreads"
14662 ol_link_threads=posix
14667 if test $ol_link_threads != no ; then
14668 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14670 save_CPPFLAGS="$CPPFLAGS"
14672 LIBS="$LTHREAD_LIBS $LIBS"
14674 for ac_func in sched_yield pthread_yield thr_yield
14676 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14677 echo "configure:14678: checking for $ac_func" >&5
14678 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14679 echo $ac_n "(cached) $ac_c" 1>&6
14681 cat > conftest.$ac_ext <<EOF
14682 #line 14683 "configure"
14683 #include "confdefs.h"
14684 /* System header to define __stub macros and hopefully few prototypes,
14685 which can conflict with char $ac_func(); below. */
14686 #include <assert.h>
14687 /* Override any gcc2 internal prototype to avoid an error. */
14688 /* We use char because int might match the return type of a gcc2
14689 builtin and then its argument prototype would still apply. */
14695 /* The GNU C library defines this for functions which it implements
14696 to always fail with ENOSYS. Some functions are actually named
14697 something starting with __ and the normal name is an alias. */
14698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14706 if { (eval echo configure:14707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14708 eval "ac_cv_func_$ac_func=yes"
14710 echo "configure: failed program was:" >&5
14711 cat conftest.$ac_ext >&5
14713 eval "ac_cv_func_$ac_func=no"
14718 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14719 echo "$ac_t""yes" 1>&6
14720 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14721 cat >> confdefs.h <<EOF
14722 #define $ac_tr_func 1
14726 echo "$ac_t""no" 1>&6
14731 if test $ac_cv_func_sched_yield = no -a \
14732 $ac_cv_func_pthread_yield = no -a \
14733 $ac_cv_func_thr_yield = no ; then
14734 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14735 echo "configure:14736: checking for sched_yield in -lrt" >&5
14736 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14738 echo $ac_n "(cached) $ac_c" 1>&6
14740 ac_save_LIBS="$LIBS"
14742 cat > conftest.$ac_ext <<EOF
14743 #line 14744 "configure"
14744 #include "confdefs.h"
14745 /* Override any gcc2 internal prototype to avoid an error. */
14746 /* We use char because int might match the return type of a gcc2
14747 builtin and then its argument prototype would still apply. */
14748 char sched_yield();
14754 if { (eval echo configure:14755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14756 eval "ac_cv_lib_$ac_lib_var=yes"
14758 echo "configure: failed program was:" >&5
14759 cat conftest.$ac_ext >&5
14761 eval "ac_cv_lib_$ac_lib_var=no"
14764 LIBS="$ac_save_LIBS"
14767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14768 echo "$ac_t""yes" 1>&6
14769 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14770 cat >> confdefs.h <<\EOF
14771 #define HAVE_SCHED_YIELD 1
14774 ac_cv_func_sched_yield=yes
14776 echo "$ac_t""no" 1>&6
14777 ac_cv_func_sched_yield=no
14781 if test $ac_cv_func_sched_yield = no -a \
14782 $ac_cv_func_pthread_yield = no -a \
14783 "$ac_cv_func_thr_yield" = no ; then
14784 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14787 for ac_func in pthread_kill pthread_rwlock_destroy
14789 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14790 echo "configure:14791: checking for $ac_func" >&5
14791 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14792 echo $ac_n "(cached) $ac_c" 1>&6
14794 cat > conftest.$ac_ext <<EOF
14795 #line 14796 "configure"
14796 #include "confdefs.h"
14797 /* System header to define __stub macros and hopefully few prototypes,
14798 which can conflict with char $ac_func(); below. */
14799 #include <assert.h>
14800 /* Override any gcc2 internal prototype to avoid an error. */
14801 /* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14808 /* The GNU C library defines this for functions which it implements
14809 to always fail with ENOSYS. Some functions are actually named
14810 something starting with __ and the normal name is an alias. */
14811 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14819 if { (eval echo configure:14820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14821 eval "ac_cv_func_$ac_func=yes"
14823 echo "configure: failed program was:" >&5
14824 cat conftest.$ac_ext >&5
14826 eval "ac_cv_func_$ac_func=no"
14831 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14832 echo "$ac_t""yes" 1>&6
14833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14834 cat >> confdefs.h <<EOF
14835 #define $ac_tr_func 1
14839 echo "$ac_t""no" 1>&6
14844 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14845 echo "configure:14846: checking for pthread_detach with <pthread.h>" >&5
14846 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14847 echo $ac_n "(cached) $ac_c" 1>&6
14850 cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure"
14852 #include "confdefs.h"
14854 #include <pthread.h>
14856 #define NULL (void*)0
14860 pthread_detach(NULL);
14863 if { (eval echo configure:14864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14865 ol_cv_func_pthread_detach=yes
14867 echo "configure: failed program was:" >&5
14868 cat conftest.$ac_ext >&5
14870 ol_cv_func_pthread_detach=no
14876 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14878 if test $ol_cv_func_pthread_detach = no ; then
14879 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14882 cat >> confdefs.h <<\EOF
14883 #define HAVE_PTHREAD_DETACH 1
14888 pthread_setconcurrency \
14889 pthread_getconcurrency \
14890 thr_setconcurrency \
14891 thr_getconcurrency \
14894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14895 echo "configure:14896: checking for $ac_func" >&5
14896 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14897 echo $ac_n "(cached) $ac_c" 1>&6
14899 cat > conftest.$ac_ext <<EOF
14900 #line 14901 "configure"
14901 #include "confdefs.h"
14902 /* System header to define __stub macros and hopefully few prototypes,
14903 which can conflict with char $ac_func(); below. */
14904 #include <assert.h>
14905 /* Override any gcc2 internal prototype to avoid an error. */
14906 /* We use char because int might match the return type of a gcc2
14907 builtin and then its argument prototype would still apply. */
14913 /* The GNU C library defines this for functions which it implements
14914 to always fail with ENOSYS. Some functions are actually named
14915 something starting with __ and the normal name is an alias. */
14916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14924 if { (eval echo configure:14925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14926 eval "ac_cv_func_$ac_func=yes"
14928 echo "configure: failed program was:" >&5
14929 cat conftest.$ac_ext >&5
14931 eval "ac_cv_func_$ac_func=no"
14936 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14937 echo "$ac_t""yes" 1>&6
14938 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14939 cat >> confdefs.h <<EOF
14940 #define $ac_tr_func 1
14944 echo "$ac_t""no" 1>&6
14950 for ac_func in pthread_kill_other_threads_np
14952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14953 echo "configure:14954: checking for $ac_func" >&5
14954 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14955 echo $ac_n "(cached) $ac_c" 1>&6
14957 cat > conftest.$ac_ext <<EOF
14958 #line 14959 "configure"
14959 #include "confdefs.h"
14960 /* System header to define __stub macros and hopefully few prototypes,
14961 which can conflict with char $ac_func(); below. */
14962 #include <assert.h>
14963 /* Override any gcc2 internal prototype to avoid an error. */
14964 /* We use char because int might match the return type of a gcc2
14965 builtin and then its argument prototype would still apply. */
14971 /* The GNU C library defines this for functions which it implements
14972 to always fail with ENOSYS. Some functions are actually named
14973 something starting with __ and the normal name is an alias. */
14974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14982 if { (eval echo configure:14983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14984 eval "ac_cv_func_$ac_func=yes"
14986 echo "configure: failed program was:" >&5
14987 cat conftest.$ac_ext >&5
14989 eval "ac_cv_func_$ac_func=no"
14994 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14995 echo "$ac_t""yes" 1>&6
14996 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14997 cat >> confdefs.h <<EOF
14998 #define $ac_tr_func 1
15002 echo "$ac_t""no" 1>&6
15006 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15007 echo "configure:15008: checking for LinuxThreads implementation" >&5
15008 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15009 echo $ac_n "(cached) $ac_c" 1>&6
15011 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15014 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15019 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15020 echo "configure:15021: checking for LinuxThreads consistency" >&5
15021 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15022 echo $ac_n "(cached) $ac_c" 1>&6
15025 if test $ol_cv_header_linux_threads = yes -a \
15026 $ol_cv_sys_linux_threads = yes; then
15027 ol_cv_linux_threads=yes
15028 elif test $ol_cv_header_linux_threads = no -a \
15029 $ol_cv_sys_linux_threads = no; then
15030 ol_cv_linux_threads=no
15032 ol_cv_linux_threads=error
15037 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15040 if test $ol_cv_linux_threads = error; then
15041 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15044 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15045 echo "configure:15046: checking if pthread_create() works" >&5
15046 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15047 echo $ac_n "(cached) $ac_c" 1>&6
15050 if test "$cross_compiling" = yes; then
15051 ol_cv_pthread_create_works=yes
15053 cat > conftest.$ac_ext <<EOF
15054 #line 15055 "configure"
15055 #include "confdefs.h"
15056 /* pthread test headers */
15057 #include <pthread.h>
15058 #if HAVE_PTHREADS < 7
15062 #define NULL (void*)0
15065 static void *task(p)
15068 return (void *) (p == NULL);
15072 int main(argc, argv)
15077 /* pthread test function */
15078 #ifndef PTHREAD_CREATE_DETACHED
15079 #define PTHREAD_CREATE_DETACHED 1
15083 int detach = PTHREAD_CREATE_DETACHED;
15085 #if HAVE_PTHREADS > 4
15086 /* Final pthreads */
15087 pthread_attr_t attr;
15089 status = pthread_attr_init(&attr);
15090 if( status ) return status;
15092 #if HAVE_PTHREADS < 7
15093 status = pthread_attr_setdetachstate(&attr, &detach);
15094 if( status < 0 ) status = errno;
15096 status = pthread_attr_setdetachstate(&attr, detach);
15098 if( status ) return status;
15099 status = pthread_create( &t, &attr, task, NULL );
15100 #if HAVE_PTHREADS < 7
15101 if( status < 0 ) status = errno;
15103 if( status ) return status;
15105 /* Draft 4 pthreads */
15106 status = pthread_create( &t, pthread_attr_default, task, NULL );
15107 if( status ) return errno;
15109 /* give thread a chance to complete */
15110 /* it should remain joinable and hence detachable */
15113 status = pthread_detach( &t );
15114 if( status ) return errno;
15117 #ifdef HAVE_LINUX_THREADS
15118 pthread_kill_other_threads_np();
15126 if { (eval echo configure:15127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15128 ol_cv_pthread_create_works=yes
15130 echo "configure: failed program was:" >&5
15131 cat conftest.$ac_ext >&5
15133 ol_cv_pthread_create_works=no
15140 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15142 if test $ol_cv_pthread_create_works = no ; then
15143 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15146 if test $ol_with_yielding_select = auto ; then
15147 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15148 echo "configure:15149: checking if select yields when using pthreads" >&5
15149 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15150 echo $ac_n "(cached) $ac_c" 1>&6
15153 if test "$cross_compiling" = yes; then
15154 ol_cv_pthread_select_yields=cross
15156 cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15160 #include <sys/types.h>
15161 #include <sys/time.h>
15162 #include <unistd.h>
15163 #include <pthread.h>
15165 #define NULL (void*) 0
15168 static int fildes[2];
15170 static void *task(p)
15182 FD_SET(fildes[0], &rfds);
15184 /* we're not interested in any fds */
15185 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15192 exit(0); /* if we exit here, the select blocked the whole process */
15195 int main(argc, argv)
15201 /* create a pipe to select */
15202 if(pipe(&fildes[0])) {
15207 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15208 (void) pthread_setconcurrency(2);
15210 #ifdef HAVE_THR_SETCONCURRENCY
15211 /* Set Solaris LWP concurrency to 2 */
15212 thr_setconcurrency(2);
15216 #if HAVE_PTHREADS < 6
15217 pthread_create(&t, pthread_attr_default, task, NULL);
15219 pthread_create(&t, NULL, task, NULL);
15222 /* make sure task runs first */
15225 #elif defined( HAVE_SCHED_YIELD )
15227 #elif defined( HAVE_PTHREAD_YIELD )
15234 if { (eval echo configure:15235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15236 ol_cv_pthread_select_yields=no
15238 echo "configure: failed program was:" >&5
15239 cat conftest.$ac_ext >&5
15241 ol_cv_pthread_select_yields=yes
15248 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15250 if test $ol_cv_pthread_select_yields = cross ; then
15251 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15254 if test $ol_cv_pthread_select_yields = yes ; then
15255 ol_with_yielding_select=yes
15259 CPPFLAGS="$save_CPPFLAGS"
15262 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15266 if test $ol_with_threads = posix ; then
15267 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15271 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15272 -o $ol_with_threads = mach ; then
15274 for ac_hdr in mach/cthreads.h cthreads.h
15276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15278 echo "configure:15279: checking for $ac_hdr" >&5
15279 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15280 echo $ac_n "(cached) $ac_c" 1>&6
15282 cat > conftest.$ac_ext <<EOF
15283 #line 15284 "configure"
15284 #include "confdefs.h"
15287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15288 { (eval echo configure:15289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15290 if test -z "$ac_err"; then
15292 eval "ac_cv_header_$ac_safe=yes"
15295 echo "configure: failed program was:" >&5
15296 cat conftest.$ac_ext >&5
15298 eval "ac_cv_header_$ac_safe=no"
15302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15303 echo "$ac_t""yes" 1>&6
15304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15305 cat >> confdefs.h <<EOF
15306 #define $ac_tr_hdr 1
15310 echo "$ac_t""no" 1>&6
15314 if test $ac_cv_header_mach_cthreads_h = yes ; then
15315 ol_with_threads=found
15317 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15318 echo "configure:15319: checking for cthread_fork" >&5
15319 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15320 echo $ac_n "(cached) $ac_c" 1>&6
15322 cat > conftest.$ac_ext <<EOF
15323 #line 15324 "configure"
15324 #include "confdefs.h"
15325 /* System header to define __stub macros and hopefully few prototypes,
15326 which can conflict with char cthread_fork(); below. */
15327 #include <assert.h>
15328 /* Override any gcc2 internal prototype to avoid an error. */
15329 /* We use char because int might match the return type of a gcc2
15330 builtin and then its argument prototype would still apply. */
15331 char cthread_fork();
15336 /* The GNU C library defines this for functions which it implements
15337 to always fail with ENOSYS. Some functions are actually named
15338 something starting with __ and the normal name is an alias. */
15339 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15347 if { (eval echo configure:15348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15349 eval "ac_cv_func_cthread_fork=yes"
15351 echo "configure: failed program was:" >&5
15352 cat conftest.$ac_ext >&5
15354 eval "ac_cv_func_cthread_fork=no"
15359 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15360 echo "$ac_t""yes" 1>&6
15361 ol_link_threads=yes
15363 echo "$ac_t""no" 1>&6
15367 if test $ol_link_threads = no ; then
15368 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15369 echo "configure:15370: checking for cthread_fork with -all_load" >&5
15370 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15371 echo $ac_n "(cached) $ac_c" 1>&6
15375 LIBS="-all_load $LIBS"
15376 cat > conftest.$ac_ext <<EOF
15377 #line 15378 "configure"
15378 #include "confdefs.h"
15379 #include <mach/cthreads.h>
15382 cthread_fork((void *)0, (void *)0);
15386 if { (eval echo configure:15387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15388 ol_cv_cthread_all_load=yes
15390 echo "configure: failed program was:" >&5
15391 cat conftest.$ac_ext >&5
15393 ol_cv_cthread_all_load=no
15400 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15402 if test $ol_cv_cthread_all_load = yes ; then
15403 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15404 ol_link_threads=mach
15405 ol_with_threads=found
15409 elif test $ac_cv_header_cthreads_h = yes ; then
15411 ol_with_threads=found
15414 LIBS="$LIBS -lthreads"
15415 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15416 echo "configure:15417: checking for cthread_fork" >&5
15417 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15420 cat > conftest.$ac_ext <<EOF
15421 #line 15422 "configure"
15422 #include "confdefs.h"
15423 /* System header to define __stub macros and hopefully few prototypes,
15424 which can conflict with char cthread_fork(); below. */
15425 #include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15427 /* We use char because int might match the return type of a gcc2
15428 builtin and then its argument prototype would still apply. */
15429 char cthread_fork();
15434 /* The GNU C library defines this for functions which it implements
15435 to always fail with ENOSYS. Some functions are actually named
15436 something starting with __ and the normal name is an alias. */
15437 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15445 if { (eval echo configure:15446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15447 eval "ac_cv_func_cthread_fork=yes"
15449 echo "configure: failed program was:" >&5
15450 cat conftest.$ac_ext >&5
15452 eval "ac_cv_func_cthread_fork=no"
15457 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15458 echo "$ac_t""yes" 1>&6
15459 ol_link_threads=yes
15461 echo "$ac_t""no" 1>&6
15466 if test $ol_link_threads = yes ; then
15467 LTHREAD_LIBS="-lthreads"
15468 ol_link_threads=mach
15469 ol_with_threads=found
15471 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15474 elif test $ol_with_threads = mach ; then
15475 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15478 if test $ol_link_threads = mach ; then
15479 cat >> confdefs.h <<\EOF
15480 #define HAVE_MACH_CTHREADS 1
15483 elif test $ol_with_threads = found ; then
15484 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15488 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15489 -o $ol_with_threads = pth ; then
15491 for ac_hdr in pth.h
15493 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15494 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15495 echo "configure:15496: checking for $ac_hdr" >&5
15496 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15497 echo $ac_n "(cached) $ac_c" 1>&6
15499 cat > conftest.$ac_ext <<EOF
15500 #line 15501 "configure"
15501 #include "confdefs.h"
15504 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15505 { (eval echo configure:15506: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15506 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15507 if test -z "$ac_err"; then
15509 eval "ac_cv_header_$ac_safe=yes"
15512 echo "configure: failed program was:" >&5
15513 cat conftest.$ac_ext >&5
15515 eval "ac_cv_header_$ac_safe=no"
15519 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15520 echo "$ac_t""yes" 1>&6
15521 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15522 cat >> confdefs.h <<EOF
15523 #define $ac_tr_hdr 1
15527 echo "$ac_t""no" 1>&6
15532 if test $ac_cv_header_pth_h = yes ; then
15533 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15534 echo "configure:15535: checking for pth_version in -lpth" >&5
15535 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15536 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15537 echo $ac_n "(cached) $ac_c" 1>&6
15539 ac_save_LIBS="$LIBS"
15541 cat > conftest.$ac_ext <<EOF
15542 #line 15543 "configure"
15543 #include "confdefs.h"
15544 /* Override any gcc2 internal prototype to avoid an error. */
15545 /* We use char because int might match the return type of a gcc2
15546 builtin and then its argument prototype would still apply. */
15547 char pth_version();
15553 if { (eval echo configure:15554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15555 eval "ac_cv_lib_$ac_lib_var=yes"
15557 echo "configure: failed program was:" >&5
15558 cat conftest.$ac_ext >&5
15560 eval "ac_cv_lib_$ac_lib_var=no"
15563 LIBS="$ac_save_LIBS"
15566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15567 echo "$ac_t""yes" 1>&6
15570 echo "$ac_t""no" 1>&6
15575 if test $have_pth = yes ; then
15576 cat >> confdefs.h <<\EOF
15577 #define HAVE_GNU_PTH 1
15580 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15581 ol_link_threads=pth
15582 ol_with_threads=found
15584 if test $ol_with_yielding_select = auto ; then
15585 ol_with_yielding_select=yes
15591 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15592 -o $ol_with_threads = lwp ; then
15594 for ac_hdr in thread.h synch.h
15596 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15597 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15598 echo "configure:15599: checking for $ac_hdr" >&5
15599 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15600 echo $ac_n "(cached) $ac_c" 1>&6
15602 cat > conftest.$ac_ext <<EOF
15603 #line 15604 "configure"
15604 #include "confdefs.h"
15607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15608 { (eval echo configure:15609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15610 if test -z "$ac_err"; then
15612 eval "ac_cv_header_$ac_safe=yes"
15615 echo "configure: failed program was:" >&5
15616 cat conftest.$ac_ext >&5
15618 eval "ac_cv_header_$ac_safe=no"
15622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15623 echo "$ac_t""yes" 1>&6
15624 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15625 cat >> confdefs.h <<EOF
15626 #define $ac_tr_hdr 1
15630 echo "$ac_t""no" 1>&6
15634 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15635 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15636 echo "configure:15637: checking for thr_create in -lthread" >&5
15637 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15638 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15639 echo $ac_n "(cached) $ac_c" 1>&6
15641 ac_save_LIBS="$LIBS"
15642 LIBS="-lthread $LIBS"
15643 cat > conftest.$ac_ext <<EOF
15644 #line 15645 "configure"
15645 #include "confdefs.h"
15646 /* Override any gcc2 internal prototype to avoid an error. */
15647 /* We use char because int might match the return type of a gcc2
15648 builtin and then its argument prototype would still apply. */
15655 if { (eval echo configure:15656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15657 eval "ac_cv_lib_$ac_lib_var=yes"
15659 echo "configure: failed program was:" >&5
15660 cat conftest.$ac_ext >&5
15662 eval "ac_cv_lib_$ac_lib_var=no"
15665 LIBS="$ac_save_LIBS"
15668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15669 echo "$ac_t""yes" 1>&6
15672 echo "$ac_t""no" 1>&6
15677 if test $have_thr = yes ; then
15678 cat >> confdefs.h <<\EOF
15682 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15683 ol_link_threads=thr
15685 if test $ol_with_yielding_select = auto ; then
15686 ol_with_yielding_select=yes
15690 thr_setconcurrency \
15691 thr_getconcurrency \
15694 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15695 echo "configure:15696: checking for $ac_func" >&5
15696 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15697 echo $ac_n "(cached) $ac_c" 1>&6
15699 cat > conftest.$ac_ext <<EOF
15700 #line 15701 "configure"
15701 #include "confdefs.h"
15702 /* System header to define __stub macros and hopefully few prototypes,
15703 which can conflict with char $ac_func(); below. */
15704 #include <assert.h>
15705 /* Override any gcc2 internal prototype to avoid an error. */
15706 /* We use char because int might match the return type of a gcc2
15707 builtin and then its argument prototype would still apply. */
15713 /* The GNU C library defines this for functions which it implements
15714 to always fail with ENOSYS. Some functions are actually named
15715 something starting with __ and the normal name is an alias. */
15716 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15724 if { (eval echo configure:15725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15726 eval "ac_cv_func_$ac_func=yes"
15728 echo "configure: failed program was:" >&5
15729 cat conftest.$ac_ext >&5
15731 eval "ac_cv_func_$ac_func=no"
15736 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15737 echo "$ac_t""yes" 1>&6
15738 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15739 cat >> confdefs.h <<EOF
15740 #define $ac_tr_func 1
15744 echo "$ac_t""no" 1>&6
15751 for ac_hdr in lwp/lwp.h
15753 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15754 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15755 echo "configure:15756: checking for $ac_hdr" >&5
15756 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15757 echo $ac_n "(cached) $ac_c" 1>&6
15759 cat > conftest.$ac_ext <<EOF
15760 #line 15761 "configure"
15761 #include "confdefs.h"
15764 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15765 { (eval echo configure:15766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15766 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15767 if test -z "$ac_err"; then
15769 eval "ac_cv_header_$ac_safe=yes"
15772 echo "configure: failed program was:" >&5
15773 cat conftest.$ac_ext >&5
15775 eval "ac_cv_header_$ac_safe=no"
15779 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15780 echo "$ac_t""yes" 1>&6
15781 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15782 cat >> confdefs.h <<EOF
15783 #define $ac_tr_hdr 1
15787 echo "$ac_t""no" 1>&6
15791 if test $ac_cv_header_lwp_lwp_h = yes ; then
15792 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15793 echo "configure:15794: checking for lwp_create in -llwp" >&5
15794 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15795 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15796 echo $ac_n "(cached) $ac_c" 1>&6
15798 ac_save_LIBS="$LIBS"
15800 cat > conftest.$ac_ext <<EOF
15801 #line 15802 "configure"
15802 #include "confdefs.h"
15803 /* Override any gcc2 internal prototype to avoid an error. */
15804 /* We use char because int might match the return type of a gcc2
15805 builtin and then its argument prototype would still apply. */
15812 if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15814 eval "ac_cv_lib_$ac_lib_var=yes"
15816 echo "configure: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15819 eval "ac_cv_lib_$ac_lib_var=no"
15822 LIBS="$ac_save_LIBS"
15825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15826 echo "$ac_t""yes" 1>&6
15829 echo "$ac_t""no" 1>&6
15834 if test $have_lwp = yes ; then
15835 cat >> confdefs.h <<\EOF
15839 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15840 ol_link_threads=lwp
15842 if test $ol_with_yielding_select = auto ; then
15843 ol_with_yielding_select=no
15849 if test $ol_with_yielding_select = yes ; then
15850 cat >> confdefs.h <<\EOF
15851 #define HAVE_YIELDING_SELECT 1
15856 if test $ol_with_threads = manual ; then
15857 ol_link_threads=yes
15859 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15861 for ac_hdr in pthread.h sched.h
15863 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15864 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15865 echo "configure:15866: checking for $ac_hdr" >&5
15866 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15867 echo $ac_n "(cached) $ac_c" 1>&6
15869 cat > conftest.$ac_ext <<EOF
15870 #line 15871 "configure"
15871 #include "confdefs.h"
15874 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15875 { (eval echo configure:15876: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15876 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15877 if test -z "$ac_err"; then
15879 eval "ac_cv_header_$ac_safe=yes"
15882 echo "configure: failed program was:" >&5
15883 cat conftest.$ac_ext >&5
15885 eval "ac_cv_header_$ac_safe=no"
15889 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15890 echo "$ac_t""yes" 1>&6
15891 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15892 cat >> confdefs.h <<EOF
15893 #define $ac_tr_hdr 1
15897 echo "$ac_t""no" 1>&6
15901 for ac_func in sched_yield pthread_yield
15903 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15904 echo "configure:15905: checking for $ac_func" >&5
15905 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15908 cat > conftest.$ac_ext <<EOF
15909 #line 15910 "configure"
15910 #include "confdefs.h"
15911 /* System header to define __stub macros and hopefully few prototypes,
15912 which can conflict with char $ac_func(); below. */
15913 #include <assert.h>
15914 /* Override any gcc2 internal prototype to avoid an error. */
15915 /* We use char because int might match the return type of a gcc2
15916 builtin and then its argument prototype would still apply. */
15922 /* The GNU C library defines this for functions which it implements
15923 to always fail with ENOSYS. Some functions are actually named
15924 something starting with __ and the normal name is an alias. */
15925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15933 if { (eval echo configure:15934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15935 eval "ac_cv_func_$ac_func=yes"
15937 echo "configure: failed program was:" >&5
15938 cat conftest.$ac_ext >&5
15940 eval "ac_cv_func_$ac_func=no"
15945 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15946 echo "$ac_t""yes" 1>&6
15947 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15948 cat >> confdefs.h <<EOF
15949 #define $ac_tr_func 1
15953 echo "$ac_t""no" 1>&6
15958 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15959 echo "configure:15960: checking for LinuxThreads pthread.h" >&5
15960 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15961 echo $ac_n "(cached) $ac_c" 1>&6
15963 cat > conftest.$ac_ext <<EOF
15964 #line 15965 "configure"
15965 #include "confdefs.h"
15966 #include <pthread.h>
15968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15969 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15971 ol_cv_header_linux_threads=yes
15974 ol_cv_header_linux_threads=no
15981 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
15982 if test $ol_cv_header_linux_threads = yes; then
15983 cat >> confdefs.h <<\EOF
15984 #define HAVE_LINUX_THREADS 1
15990 for ac_hdr in mach/cthreads.h
15992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15994 echo "configure:15995: checking for $ac_hdr" >&5
15995 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15996 echo $ac_n "(cached) $ac_c" 1>&6
15998 cat > conftest.$ac_ext <<EOF
15999 #line 16000 "configure"
16000 #include "confdefs.h"
16003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16004 { (eval echo configure:16005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16006 if test -z "$ac_err"; then
16008 eval "ac_cv_header_$ac_safe=yes"
16011 echo "configure: failed program was:" >&5
16012 cat conftest.$ac_ext >&5
16014 eval "ac_cv_header_$ac_safe=no"
16018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16019 echo "$ac_t""yes" 1>&6
16020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16021 cat >> confdefs.h <<EOF
16022 #define $ac_tr_hdr 1
16026 echo "$ac_t""no" 1>&6
16030 for ac_hdr in lwp/lwp.h
16032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16034 echo "configure:16035: checking for $ac_hdr" >&5
16035 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16036 echo $ac_n "(cached) $ac_c" 1>&6
16038 cat > conftest.$ac_ext <<EOF
16039 #line 16040 "configure"
16040 #include "confdefs.h"
16043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16044 { (eval echo configure:16045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16046 if test -z "$ac_err"; then
16048 eval "ac_cv_header_$ac_safe=yes"
16051 echo "configure: failed program was:" >&5
16052 cat conftest.$ac_ext >&5
16054 eval "ac_cv_header_$ac_safe=no"
16058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16059 echo "$ac_t""yes" 1>&6
16060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16061 cat >> confdefs.h <<EOF
16062 #define $ac_tr_hdr 1
16066 echo "$ac_t""no" 1>&6
16070 for ac_hdr in thread.h synch.h
16072 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16073 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16074 echo "configure:16075: checking for $ac_hdr" >&5
16075 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16076 echo $ac_n "(cached) $ac_c" 1>&6
16078 cat > conftest.$ac_ext <<EOF
16079 #line 16080 "configure"
16080 #include "confdefs.h"
16083 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16084 { (eval echo configure:16085: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16085 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16086 if test -z "$ac_err"; then
16088 eval "ac_cv_header_$ac_safe=yes"
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16094 eval "ac_cv_header_$ac_safe=no"
16098 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16099 echo "$ac_t""yes" 1>&6
16100 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16101 cat >> confdefs.h <<EOF
16102 #define $ac_tr_hdr 1
16106 echo "$ac_t""no" 1>&6
16112 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16113 cat >> confdefs.h <<\EOF
16114 #define REENTRANT 1
16117 cat >> confdefs.h <<\EOF
16118 #define _REENTRANT 1
16121 cat >> confdefs.h <<\EOF
16122 #define THREAD_SAFE 1
16125 cat >> confdefs.h <<\EOF
16126 #define _THREAD_SAFE 1
16129 cat >> confdefs.h <<\EOF
16130 #define THREADSAFE 1
16133 cat >> confdefs.h <<\EOF
16134 #define _THREADSAFE 1
16137 cat >> confdefs.h <<\EOF
16138 #define _SGI_MP_SOURCE 1
16142 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16143 echo "configure:16144: checking for thread specific errno" >&5
16144 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16145 echo $ac_n "(cached) $ac_c" 1>&6
16148 cat > conftest.$ac_ext <<EOF
16149 #line 16150 "configure"
16150 #include "confdefs.h"
16156 if { (eval echo configure:16157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16158 ol_cv_errno_thread_specific=yes
16160 echo "configure: failed program was:" >&5
16161 cat conftest.$ac_ext >&5
16163 ol_cv_errno_thread_specific=no
16169 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16171 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16172 echo "configure:16173: checking for thread specific h_errno" >&5
16173 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16174 echo $ac_n "(cached) $ac_c" 1>&6
16177 cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16185 if { (eval echo configure:16186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16187 ol_cv_h_errno_thread_specific=yes
16189 echo "configure: failed program was:" >&5
16190 cat conftest.$ac_ext >&5
16192 ol_cv_h_errno_thread_specific=no
16198 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16200 if test $ol_cv_errno_thread_specific != yes \
16201 -o $ol_cv_h_errno_thread_specific != yes ; then
16202 LIBS="$LTHREAD_LIBS $LIBS"
16208 if test $ol_link_threads = no ; then
16209 if test $ol_with_threads = yes ; then
16210 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16213 if test $ol_with_threads = auto ; then
16214 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16218 cat >> confdefs.h <<\EOF
16219 #define NO_THREADS 1
16225 if test $ol_link_threads != no ; then
16226 cat >> confdefs.h <<\EOF
16227 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16234 gethostbyname_r gethostbyaddr_r \
16237 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16238 echo "configure:16239: checking for $ac_func" >&5
16239 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16240 echo $ac_n "(cached) $ac_c" 1>&6
16242 cat > conftest.$ac_ext <<EOF
16243 #line 16244 "configure"
16244 #include "confdefs.h"
16245 /* System header to define __stub macros and hopefully few prototypes,
16246 which can conflict with char $ac_func(); below. */
16247 #include <assert.h>
16248 /* Override any gcc2 internal prototype to avoid an error. */
16249 /* We use char because int might match the return type of a gcc2
16250 builtin and then its argument prototype would still apply. */
16256 /* The GNU C library defines this for functions which it implements
16257 to always fail with ENOSYS. Some functions are actually named
16258 something starting with __ and the normal name is an alias. */
16259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16267 if { (eval echo configure:16268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16269 eval "ac_cv_func_$ac_func=yes"
16271 echo "configure: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16274 eval "ac_cv_func_$ac_func=no"
16279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16280 echo "$ac_t""yes" 1>&6
16281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16282 cat >> confdefs.h <<EOF
16283 #define $ac_tr_func 1
16287 echo "$ac_t""no" 1>&6
16292 if test "$ac_cv_func_ctime_r" = no ; then
16293 ol_cv_func_ctime_r_nargs=0
16295 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16296 echo "configure:16297: checking number of arguments of ctime_r" >&5
16297 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16298 echo $ac_n "(cached) $ac_c" 1>&6
16300 cat > conftest.$ac_ext <<EOF
16301 #line 16302 "configure"
16302 #include "confdefs.h"
16305 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16308 if { (eval echo configure:16309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16310 ol_cv_func_ctime_r_nargs3=yes
16312 echo "configure: failed program was:" >&5
16313 cat conftest.$ac_ext >&5
16315 ol_cv_func_ctime_r_nargs3=no
16319 cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16324 time_t ti; char *buffer; ctime_r(&ti,buffer);
16327 if { (eval echo configure:16328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16329 ol_cv_func_ctime_r_nargs2=yes
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16334 ol_cv_func_ctime_r_nargs2=no
16338 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16339 $ol_cv_func_ctime_r_nargs2 = no ; then
16341 ol_cv_func_ctime_r_nargs=3
16343 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16344 $ol_cv_func_ctime_r_nargs2 = yes ; then
16346 ol_cv_func_ctime_r_nargs=2
16349 ol_cv_func_ctime_r_nargs=0
16354 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16356 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16357 cat >> confdefs.h <<EOF
16358 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16365 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16366 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16367 echo "configure:16368: checking number of arguments of gethostbyname_r" >&5
16368 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16369 echo $ac_n "(cached) $ac_c" 1>&6
16371 cat > conftest.$ac_ext <<EOF
16372 #line 16373 "configure"
16373 #include "confdefs.h"
16374 #include <sys/types.h>
16375 #include <sys/socket.h>
16376 #include <netinet/in.h>
16378 #define BUFSIZE (sizeof(struct hostent)+10)
16380 struct hostent hent; char buffer[BUFSIZE];
16381 int bufsize=BUFSIZE;int h_errno;
16382 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16383 buffer, bufsize, &h_errno);
16386 if { (eval echo configure:16387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16388 ol_cv_func_gethostbyname_r_nargs5=yes
16390 echo "configure: failed program was:" >&5
16391 cat conftest.$ac_ext >&5
16393 ol_cv_func_gethostbyname_r_nargs5=no
16397 cat > conftest.$ac_ext <<EOF
16398 #line 16399 "configure"
16399 #include "confdefs.h"
16400 #include <sys/types.h>
16401 #include <sys/socket.h>
16402 #include <netinet/in.h>
16404 #define BUFSIZE (sizeof(struct hostent)+10)
16406 struct hostent hent;struct hostent *rhent;
16407 char buffer[BUFSIZE];
16408 int bufsize=BUFSIZE;int h_errno;
16409 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16413 if { (eval echo configure:16414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16415 ol_cv_func_gethostbyname_r_nargs6=yes
16417 echo "configure: failed program was:" >&5
16418 cat conftest.$ac_ext >&5
16420 ol_cv_func_gethostbyname_r_nargs6=no
16424 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16425 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16427 ol_cv_func_gethostbyname_r_nargs=5
16429 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16430 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16432 ol_cv_func_gethostbyname_r_nargs=6
16435 ol_cv_func_gethostbyname_r_nargs=0
16440 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16441 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16442 cat >> confdefs.h <<EOF
16443 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16449 ol_cv_func_gethostbyname_r_nargs=0
16452 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16453 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16454 echo "configure:16455: checking number of arguments of gethostbyaddr_r" >&5
16455 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16456 echo $ac_n "(cached) $ac_c" 1>&6
16458 cat > conftest.$ac_ext <<EOF
16459 #line 16460 "configure"
16460 #include "confdefs.h"
16461 #include <sys/types.h>
16462 #include <sys/socket.h>
16463 #include <netinet/in.h>
16465 #define BUFSIZE (sizeof(struct hostent)+10)
16467 struct hostent hent; char buffer[BUFSIZE];
16468 struct in_addr add;
16469 size_t alen=sizeof(struct in_addr);
16470 int bufsize=BUFSIZE;int h_errno;
16471 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16472 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16475 if { (eval echo configure:16476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16477 ol_cv_func_gethostbyaddr_r_nargs7=yes
16479 echo "configure: failed program was:" >&5
16480 cat conftest.$ac_ext >&5
16482 ol_cv_func_gethostbyaddr_r_nargs7=no
16486 cat > conftest.$ac_ext <<EOF
16487 #line 16488 "configure"
16488 #include "confdefs.h"
16489 #include <sys/types.h>
16490 #include <sys/socket.h>
16491 #include <netinet/in.h>
16493 #define BUFSIZE (sizeof(struct hostent)+10)
16495 struct hostent hent;
16496 struct hostent *rhent; char buffer[BUFSIZE];
16497 struct in_addr add;
16498 size_t alen=sizeof(struct in_addr);
16499 int bufsize=BUFSIZE;int h_errno;
16500 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16501 alen, AF_INET, &hent, buffer, bufsize,
16505 if { (eval echo configure:16506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16507 ol_cv_func_gethostbyaddr_r_nargs8=yes
16509 echo "configure: failed program was:" >&5
16510 cat conftest.$ac_ext >&5
16512 ol_cv_func_gethostbyaddr_r_nargs8=no
16516 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16517 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16519 ol_cv_func_gethostbyaddr_r_nargs=7
16521 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16522 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16524 ol_cv_func_gethostbyaddr_r_nargs=8
16527 ol_cv_func_gethostbyaddr_r_nargs=0
16532 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16533 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16534 cat >> confdefs.h <<EOF
16535 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16541 ol_cv_func_gethostbyaddr_r_nargs=0
16546 if test $ol_with_ldbm_api = auto \
16547 -o $ol_with_ldbm_api = berkeley \
16548 -o $ol_with_ldbm_api = bcompat ; then
16550 if test $ol_with_ldbm_api = bcompat; then \
16551 for ac_hdr in db_185.h db.h
16553 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16554 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16555 echo "configure:16556: checking for $ac_hdr" >&5
16556 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16557 echo $ac_n "(cached) $ac_c" 1>&6
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16564 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16565 { (eval echo configure:16566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16566 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16567 if test -z "$ac_err"; then
16569 eval "ac_cv_header_$ac_safe=yes"
16572 echo "configure: failed program was:" >&5
16573 cat conftest.$ac_ext >&5
16575 eval "ac_cv_header_$ac_safe=no"
16579 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16580 echo "$ac_t""yes" 1>&6
16581 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16582 cat >> confdefs.h <<EOF
16583 #define $ac_tr_hdr 1
16587 echo "$ac_t""no" 1>&6
16591 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16592 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16593 echo "configure:16594: checking if Berkeley DB header compatibility" >&5
16594 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16595 echo $ac_n "(cached) $ac_c" 1>&6
16598 cat > conftest.$ac_ext <<EOF
16599 #line 16600 "configure"
16600 #include "confdefs.h"
16603 # include <db_185.h>
16608 /* this check could be improved */
16609 #ifndef DB_VERSION_MAJOR
16610 # define DB_VERSION_MAJOR 1
16613 #if DB_VERSION_MAJOR == 1
16618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16619 egrep "__db_version_1" >/dev/null 2>&1; then
16621 ol_cv_header_db1=yes
16624 ol_cv_header_db1=no
16630 echo "$ac_t""$ol_cv_header_db1" 1>&6
16632 if test $ol_cv_header_db1 = yes ; then
16634 if test $ol_cv_lib_db = no ; then
16635 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16636 echo "configure:16637: checking for Berkeley DB link (default)" >&5
16637 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16638 echo $ac_n "(cached) $ac_c" 1>&6
16643 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16645 cat > conftest.$ac_ext <<EOF
16646 #line 16647 "configure"
16647 #include "confdefs.h"
16649 #ifdef HAVE_DB_185_H
16650 # include <db_185.h>
16655 #ifndef DB_VERSION_MAJOR
16656 # define DB_VERSION_MAJOR 1
16660 #define NULL ((void*)0)
16665 #if DB_VERSION_MAJOR > 1
16668 int major, minor, patch;
16670 version = db_version( &major, &minor, &patch );
16672 if( major != DB_VERSION_MAJOR ||
16673 minor < DB_VERSION_MINOR )
16675 printf("Berkeley DB version mismatch\n"
16676 "\texpected: %s\n\tgot: %s\n",
16677 DB_VERSION_STRING, version);
16683 #if DB_VERSION_MAJOR > 2
16684 db_env_create( NULL, 0 );
16685 #elif DB_VERSION_MAJOR > 1
16686 db_appexit( NULL );
16688 (void) dbopen( NULL, 0, 0, 0, NULL);
16693 if { (eval echo configure:16694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16697 echo "configure: failed program was:" >&5
16698 cat conftest.$ac_ext >&5
16708 echo "$ac_t""$ol_cv_db_none" 1>&6
16710 if test $ol_cv_db_none = yes ; then
16715 if test $ol_cv_lib_db = no ; then
16716 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16717 echo "configure:16718: checking for Berkeley DB link (-ldb42)" >&5
16718 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16719 echo $ac_n "(cached) $ac_c" 1>&6
16724 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16726 cat > conftest.$ac_ext <<EOF
16727 #line 16728 "configure"
16728 #include "confdefs.h"
16730 #ifdef HAVE_DB_185_H
16731 # include <db_185.h>
16736 #ifndef DB_VERSION_MAJOR
16737 # define DB_VERSION_MAJOR 1
16741 #define NULL ((void*)0)
16746 #if DB_VERSION_MAJOR > 1
16749 int major, minor, patch;
16751 version = db_version( &major, &minor, &patch );
16753 if( major != DB_VERSION_MAJOR ||
16754 minor < DB_VERSION_MINOR )
16756 printf("Berkeley DB version mismatch\n"
16757 "\texpected: %s\n\tgot: %s\n",
16758 DB_VERSION_STRING, version);
16764 #if DB_VERSION_MAJOR > 2
16765 db_env_create( NULL, 0 );
16766 #elif DB_VERSION_MAJOR > 1
16767 db_appexit( NULL );
16769 (void) dbopen( NULL, 0, 0, 0, NULL);
16774 if { (eval echo configure:16775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16778 echo "configure: failed program was:" >&5
16779 cat conftest.$ac_ext >&5
16789 echo "$ac_t""$ol_cv_db_db42" 1>&6
16791 if test $ol_cv_db_db42 = yes ; then
16792 ol_cv_lib_db=-ldb42
16796 if test $ol_cv_lib_db = no ; then
16797 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16798 echo "configure:16799: checking for Berkeley DB link (-ldb-42)" >&5
16799 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16800 echo $ac_n "(cached) $ac_c" 1>&6
16805 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16807 cat > conftest.$ac_ext <<EOF
16808 #line 16809 "configure"
16809 #include "confdefs.h"
16811 #ifdef HAVE_DB_185_H
16812 # include <db_185.h>
16817 #ifndef DB_VERSION_MAJOR
16818 # define DB_VERSION_MAJOR 1
16822 #define NULL ((void*)0)
16827 #if DB_VERSION_MAJOR > 1
16830 int major, minor, patch;
16832 version = db_version( &major, &minor, &patch );
16834 if( major != DB_VERSION_MAJOR ||
16835 minor < DB_VERSION_MINOR )
16837 printf("Berkeley DB version mismatch\n"
16838 "\texpected: %s\n\tgot: %s\n",
16839 DB_VERSION_STRING, version);
16845 #if DB_VERSION_MAJOR > 2
16846 db_env_create( NULL, 0 );
16847 #elif DB_VERSION_MAJOR > 1
16848 db_appexit( NULL );
16850 (void) dbopen( NULL, 0, 0, 0, NULL);
16855 if { (eval echo configure:16856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16859 echo "configure: failed program was:" >&5
16860 cat conftest.$ac_ext >&5
16870 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16872 if test $ol_cv_db_db_42 = yes ; then
16873 ol_cv_lib_db=-ldb-42
16877 if test $ol_cv_lib_db = no ; then
16878 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16879 echo "configure:16880: checking for Berkeley DB link (-ldb-4.2)" >&5
16880 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16881 echo $ac_n "(cached) $ac_c" 1>&6
16886 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16888 cat > conftest.$ac_ext <<EOF
16889 #line 16890 "configure"
16890 #include "confdefs.h"
16892 #ifdef HAVE_DB_185_H
16893 # include <db_185.h>
16898 #ifndef DB_VERSION_MAJOR
16899 # define DB_VERSION_MAJOR 1
16903 #define NULL ((void*)0)
16908 #if DB_VERSION_MAJOR > 1
16911 int major, minor, patch;
16913 version = db_version( &major, &minor, &patch );
16915 if( major != DB_VERSION_MAJOR ||
16916 minor < DB_VERSION_MINOR )
16918 printf("Berkeley DB version mismatch\n"
16919 "\texpected: %s\n\tgot: %s\n",
16920 DB_VERSION_STRING, version);
16926 #if DB_VERSION_MAJOR > 2
16927 db_env_create( NULL, 0 );
16928 #elif DB_VERSION_MAJOR > 1
16929 db_appexit( NULL );
16931 (void) dbopen( NULL, 0, 0, 0, NULL);
16936 if { (eval echo configure:16937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16938 ol_cv_db_db_4_dot_2=yes
16940 echo "configure: failed program was:" >&5
16941 cat conftest.$ac_ext >&5
16943 ol_cv_db_db_4_dot_2=no
16951 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16953 if test $ol_cv_db_db_4_dot_2 = yes ; then
16954 ol_cv_lib_db=-ldb-4.2
16958 if test $ol_cv_lib_db = no ; then
16959 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16960 echo "configure:16961: checking for Berkeley DB link (-ldb-4-2)" >&5
16961 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16962 echo $ac_n "(cached) $ac_c" 1>&6
16967 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16969 cat > conftest.$ac_ext <<EOF
16970 #line 16971 "configure"
16971 #include "confdefs.h"
16973 #ifdef HAVE_DB_185_H
16974 # include <db_185.h>
16979 #ifndef DB_VERSION_MAJOR
16980 # define DB_VERSION_MAJOR 1
16984 #define NULL ((void*)0)
16989 #if DB_VERSION_MAJOR > 1
16992 int major, minor, patch;
16994 version = db_version( &major, &minor, &patch );
16996 if( major != DB_VERSION_MAJOR ||
16997 minor < DB_VERSION_MINOR )
16999 printf("Berkeley DB version mismatch\n"
17000 "\texpected: %s\n\tgot: %s\n",
17001 DB_VERSION_STRING, version);
17007 #if DB_VERSION_MAJOR > 2
17008 db_env_create( NULL, 0 );
17009 #elif DB_VERSION_MAJOR > 1
17010 db_appexit( NULL );
17012 (void) dbopen( NULL, 0, 0, 0, NULL);
17017 if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17019 ol_cv_db_db_4_2=yes
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17032 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17034 if test $ol_cv_db_db_4_2 = yes ; then
17035 ol_cv_lib_db=-ldb-4-2
17039 if test $ol_cv_lib_db = no ; then
17040 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17041 echo "configure:17042: checking for Berkeley DB link (-ldb-4)" >&5
17042 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17043 echo $ac_n "(cached) $ac_c" 1>&6
17048 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17050 cat > conftest.$ac_ext <<EOF
17051 #line 17052 "configure"
17052 #include "confdefs.h"
17054 #ifdef HAVE_DB_185_H
17055 # include <db_185.h>
17060 #ifndef DB_VERSION_MAJOR
17061 # define DB_VERSION_MAJOR 1
17065 #define NULL ((void*)0)
17070 #if DB_VERSION_MAJOR > 1
17073 int major, minor, patch;
17075 version = db_version( &major, &minor, &patch );
17077 if( major != DB_VERSION_MAJOR ||
17078 minor < DB_VERSION_MINOR )
17080 printf("Berkeley DB version mismatch\n"
17081 "\texpected: %s\n\tgot: %s\n",
17082 DB_VERSION_STRING, version);
17088 #if DB_VERSION_MAJOR > 2
17089 db_env_create( NULL, 0 );
17090 #elif DB_VERSION_MAJOR > 1
17091 db_appexit( NULL );
17093 (void) dbopen( NULL, 0, 0, 0, NULL);
17098 if { (eval echo configure:17099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17102 echo "configure: failed program was:" >&5
17103 cat conftest.$ac_ext >&5
17113 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17115 if test $ol_cv_db_db_4 = yes ; then
17116 ol_cv_lib_db=-ldb-4
17120 if test $ol_cv_lib_db = no ; then
17121 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17122 echo "configure:17123: checking for Berkeley DB link (-ldb4)" >&5
17123 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17129 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17131 cat > conftest.$ac_ext <<EOF
17132 #line 17133 "configure"
17133 #include "confdefs.h"
17135 #ifdef HAVE_DB_185_H
17136 # include <db_185.h>
17141 #ifndef DB_VERSION_MAJOR
17142 # define DB_VERSION_MAJOR 1
17146 #define NULL ((void*)0)
17151 #if DB_VERSION_MAJOR > 1
17154 int major, minor, patch;
17156 version = db_version( &major, &minor, &patch );
17158 if( major != DB_VERSION_MAJOR ||
17159 minor < DB_VERSION_MINOR )
17161 printf("Berkeley DB version mismatch\n"
17162 "\texpected: %s\n\tgot: %s\n",
17163 DB_VERSION_STRING, version);
17169 #if DB_VERSION_MAJOR > 2
17170 db_env_create( NULL, 0 );
17171 #elif DB_VERSION_MAJOR > 1
17172 db_appexit( NULL );
17174 (void) dbopen( NULL, 0, 0, 0, NULL);
17179 if { (eval echo configure:17180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17183 echo "configure: failed program was:" >&5
17184 cat conftest.$ac_ext >&5
17194 echo "$ac_t""$ol_cv_db_db4" 1>&6
17196 if test $ol_cv_db_db4 = yes ; then
17201 if test $ol_cv_lib_db = no ; then
17202 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17203 echo "configure:17204: checking for Berkeley DB link (-ldb41)" >&5
17204 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17205 echo $ac_n "(cached) $ac_c" 1>&6
17210 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17212 cat > conftest.$ac_ext <<EOF
17213 #line 17214 "configure"
17214 #include "confdefs.h"
17216 #ifdef HAVE_DB_185_H
17217 # include <db_185.h>
17222 #ifndef DB_VERSION_MAJOR
17223 # define DB_VERSION_MAJOR 1
17227 #define NULL ((void*)0)
17232 #if DB_VERSION_MAJOR > 1
17235 int major, minor, patch;
17237 version = db_version( &major, &minor, &patch );
17239 if( major != DB_VERSION_MAJOR ||
17240 minor < DB_VERSION_MINOR )
17242 printf("Berkeley DB version mismatch\n"
17243 "\texpected: %s\n\tgot: %s\n",
17244 DB_VERSION_STRING, version);
17250 #if DB_VERSION_MAJOR > 2
17251 db_env_create( NULL, 0 );
17252 #elif DB_VERSION_MAJOR > 1
17253 db_appexit( NULL );
17255 (void) dbopen( NULL, 0, 0, 0, NULL);
17260 if { (eval echo configure:17261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17264 echo "configure: failed program was:" >&5
17265 cat conftest.$ac_ext >&5
17275 echo "$ac_t""$ol_cv_db_db41" 1>&6
17277 if test $ol_cv_db_db41 = yes ; then
17278 ol_cv_lib_db=-ldb41
17282 if test $ol_cv_lib_db = no ; then
17283 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17284 echo "configure:17285: checking for Berkeley DB link (-ldb-41)" >&5
17285 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17286 echo $ac_n "(cached) $ac_c" 1>&6
17291 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17293 cat > conftest.$ac_ext <<EOF
17294 #line 17295 "configure"
17295 #include "confdefs.h"
17297 #ifdef HAVE_DB_185_H
17298 # include <db_185.h>
17303 #ifndef DB_VERSION_MAJOR
17304 # define DB_VERSION_MAJOR 1
17308 #define NULL ((void*)0)
17313 #if DB_VERSION_MAJOR > 1
17316 int major, minor, patch;
17318 version = db_version( &major, &minor, &patch );
17320 if( major != DB_VERSION_MAJOR ||
17321 minor < DB_VERSION_MINOR )
17323 printf("Berkeley DB version mismatch\n"
17324 "\texpected: %s\n\tgot: %s\n",
17325 DB_VERSION_STRING, version);
17331 #if DB_VERSION_MAJOR > 2
17332 db_env_create( NULL, 0 );
17333 #elif DB_VERSION_MAJOR > 1
17334 db_appexit( NULL );
17336 (void) dbopen( NULL, 0, 0, 0, NULL);
17341 if { (eval echo configure:17342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17345 echo "configure: failed program was:" >&5
17346 cat conftest.$ac_ext >&5
17356 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17358 if test $ol_cv_db_db_41 = yes ; then
17359 ol_cv_lib_db=-ldb-41
17363 if test $ol_cv_lib_db = no ; then
17364 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17365 echo "configure:17366: checking for Berkeley DB link (-ldb-4.1)" >&5
17366 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17372 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17374 cat > conftest.$ac_ext <<EOF
17375 #line 17376 "configure"
17376 #include "confdefs.h"
17378 #ifdef HAVE_DB_185_H
17379 # include <db_185.h>
17384 #ifndef DB_VERSION_MAJOR
17385 # define DB_VERSION_MAJOR 1
17389 #define NULL ((void*)0)
17394 #if DB_VERSION_MAJOR > 1
17397 int major, minor, patch;
17399 version = db_version( &major, &minor, &patch );
17401 if( major != DB_VERSION_MAJOR ||
17402 minor < DB_VERSION_MINOR )
17404 printf("Berkeley DB version mismatch\n"
17405 "\texpected: %s\n\tgot: %s\n",
17406 DB_VERSION_STRING, version);
17412 #if DB_VERSION_MAJOR > 2
17413 db_env_create( NULL, 0 );
17414 #elif DB_VERSION_MAJOR > 1
17415 db_appexit( NULL );
17417 (void) dbopen( NULL, 0, 0, 0, NULL);
17422 if { (eval echo configure:17423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17424 ol_cv_db_db_4_dot_1=yes
17426 echo "configure: failed program was:" >&5
17427 cat conftest.$ac_ext >&5
17429 ol_cv_db_db_4_dot_1=no
17437 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17439 if test $ol_cv_db_db_4_dot_1 = yes ; then
17440 ol_cv_lib_db=-ldb-4.1
17444 if test $ol_cv_lib_db = no ; then
17445 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17446 echo "configure:17447: checking for Berkeley DB link (-ldb-4-1)" >&5
17447 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17448 echo $ac_n "(cached) $ac_c" 1>&6
17453 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17455 cat > conftest.$ac_ext <<EOF
17456 #line 17457 "configure"
17457 #include "confdefs.h"
17459 #ifdef HAVE_DB_185_H
17460 # include <db_185.h>
17465 #ifndef DB_VERSION_MAJOR
17466 # define DB_VERSION_MAJOR 1
17470 #define NULL ((void*)0)
17475 #if DB_VERSION_MAJOR > 1
17478 int major, minor, patch;
17480 version = db_version( &major, &minor, &patch );
17482 if( major != DB_VERSION_MAJOR ||
17483 minor < DB_VERSION_MINOR )
17485 printf("Berkeley DB version mismatch\n"
17486 "\texpected: %s\n\tgot: %s\n",
17487 DB_VERSION_STRING, version);
17493 #if DB_VERSION_MAJOR > 2
17494 db_env_create( NULL, 0 );
17495 #elif DB_VERSION_MAJOR > 1
17496 db_appexit( NULL );
17498 (void) dbopen( NULL, 0, 0, 0, NULL);
17503 if { (eval echo configure:17504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17505 ol_cv_db_db_4_1=yes
17507 echo "configure: failed program was:" >&5
17508 cat conftest.$ac_ext >&5
17518 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17520 if test $ol_cv_db_db_4_1 = yes ; then
17521 ol_cv_lib_db=-ldb-4-1
17525 if test $ol_cv_lib_db = no ; then
17526 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17527 echo "configure:17528: checking for Berkeley DB link (-ldb-4)" >&5
17528 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17529 echo $ac_n "(cached) $ac_c" 1>&6
17534 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17536 cat > conftest.$ac_ext <<EOF
17537 #line 17538 "configure"
17538 #include "confdefs.h"
17540 #ifdef HAVE_DB_185_H
17541 # include <db_185.h>
17546 #ifndef DB_VERSION_MAJOR
17547 # define DB_VERSION_MAJOR 1
17551 #define NULL ((void*)0)
17556 #if DB_VERSION_MAJOR > 1
17559 int major, minor, patch;
17561 version = db_version( &major, &minor, &patch );
17563 if( major != DB_VERSION_MAJOR ||
17564 minor < DB_VERSION_MINOR )
17566 printf("Berkeley DB version mismatch\n"
17567 "\texpected: %s\n\tgot: %s\n",
17568 DB_VERSION_STRING, version);
17574 #if DB_VERSION_MAJOR > 2
17575 db_env_create( NULL, 0 );
17576 #elif DB_VERSION_MAJOR > 1
17577 db_appexit( NULL );
17579 (void) dbopen( NULL, 0, 0, 0, NULL);
17584 if { (eval echo configure:17585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17588 echo "configure: failed program was:" >&5
17589 cat conftest.$ac_ext >&5
17599 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17601 if test $ol_cv_db_db_4 = yes ; then
17602 ol_cv_lib_db=-ldb-4
17606 if test $ol_cv_lib_db = no ; then
17607 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17608 echo "configure:17609: checking for Berkeley DB link (-ldb)" >&5
17609 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17610 echo $ac_n "(cached) $ac_c" 1>&6
17615 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17617 cat > conftest.$ac_ext <<EOF
17618 #line 17619 "configure"
17619 #include "confdefs.h"
17621 #ifdef HAVE_DB_185_H
17622 # include <db_185.h>
17627 #ifndef DB_VERSION_MAJOR
17628 # define DB_VERSION_MAJOR 1
17632 #define NULL ((void*)0)
17637 #if DB_VERSION_MAJOR > 1
17640 int major, minor, patch;
17642 version = db_version( &major, &minor, &patch );
17644 if( major != DB_VERSION_MAJOR ||
17645 minor < DB_VERSION_MINOR )
17647 printf("Berkeley DB version mismatch\n"
17648 "\texpected: %s\n\tgot: %s\n",
17649 DB_VERSION_STRING, version);
17655 #if DB_VERSION_MAJOR > 2
17656 db_env_create( NULL, 0 );
17657 #elif DB_VERSION_MAJOR > 1
17658 db_appexit( NULL );
17660 (void) dbopen( NULL, 0, 0, 0, NULL);
17665 if { (eval echo configure:17666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17669 echo "configure: failed program was:" >&5
17670 cat conftest.$ac_ext >&5
17680 echo "$ac_t""$ol_cv_db_db" 1>&6
17682 if test $ol_cv_db_db = yes ; then
17687 if test $ol_cv_lib_db = no ; then
17688 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17689 echo "configure:17690: checking for Berkeley DB link (-ldb3)" >&5
17690 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17691 echo $ac_n "(cached) $ac_c" 1>&6
17696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17698 cat > conftest.$ac_ext <<EOF
17699 #line 17700 "configure"
17700 #include "confdefs.h"
17702 #ifdef HAVE_DB_185_H
17703 # include <db_185.h>
17708 #ifndef DB_VERSION_MAJOR
17709 # define DB_VERSION_MAJOR 1
17713 #define NULL ((void*)0)
17718 #if DB_VERSION_MAJOR > 1
17721 int major, minor, patch;
17723 version = db_version( &major, &minor, &patch );
17725 if( major != DB_VERSION_MAJOR ||
17726 minor < DB_VERSION_MINOR )
17728 printf("Berkeley DB version mismatch\n"
17729 "\texpected: %s\n\tgot: %s\n",
17730 DB_VERSION_STRING, version);
17736 #if DB_VERSION_MAJOR > 2
17737 db_env_create( NULL, 0 );
17738 #elif DB_VERSION_MAJOR > 1
17739 db_appexit( NULL );
17741 (void) dbopen( NULL, 0, 0, 0, NULL);
17746 if { (eval echo configure:17747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17750 echo "configure: failed program was:" >&5
17751 cat conftest.$ac_ext >&5
17761 echo "$ac_t""$ol_cv_db_db3" 1>&6
17763 if test $ol_cv_db_db3 = yes ; then
17768 if test $ol_cv_lib_db = no ; then
17769 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17770 echo "configure:17771: checking for Berkeley DB link (-ldb-3)" >&5
17771 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17772 echo $ac_n "(cached) $ac_c" 1>&6
17777 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17779 cat > conftest.$ac_ext <<EOF
17780 #line 17781 "configure"
17781 #include "confdefs.h"
17783 #ifdef HAVE_DB_185_H
17784 # include <db_185.h>
17789 #ifndef DB_VERSION_MAJOR
17790 # define DB_VERSION_MAJOR 1
17794 #define NULL ((void*)0)
17799 #if DB_VERSION_MAJOR > 1
17802 int major, minor, patch;
17804 version = db_version( &major, &minor, &patch );
17806 if( major != DB_VERSION_MAJOR ||
17807 minor < DB_VERSION_MINOR )
17809 printf("Berkeley DB version mismatch\n"
17810 "\texpected: %s\n\tgot: %s\n",
17811 DB_VERSION_STRING, version);
17817 #if DB_VERSION_MAJOR > 2
17818 db_env_create( NULL, 0 );
17819 #elif DB_VERSION_MAJOR > 1
17820 db_appexit( NULL );
17822 (void) dbopen( NULL, 0, 0, 0, NULL);
17827 if { (eval echo configure:17828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17831 echo "configure: failed program was:" >&5
17832 cat conftest.$ac_ext >&5
17842 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17844 if test $ol_cv_db_db_3 = yes ; then
17845 ol_cv_lib_db=-ldb-3
17849 if test $ol_cv_lib_db = no ; then
17850 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17851 echo "configure:17852: checking for Berkeley DB link (-ldb2)" >&5
17852 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17853 echo $ac_n "(cached) $ac_c" 1>&6
17858 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17860 cat > conftest.$ac_ext <<EOF
17861 #line 17862 "configure"
17862 #include "confdefs.h"
17864 #ifdef HAVE_DB_185_H
17865 # include <db_185.h>
17870 #ifndef DB_VERSION_MAJOR
17871 # define DB_VERSION_MAJOR 1
17875 #define NULL ((void*)0)
17880 #if DB_VERSION_MAJOR > 1
17883 int major, minor, patch;
17885 version = db_version( &major, &minor, &patch );
17887 if( major != DB_VERSION_MAJOR ||
17888 minor < DB_VERSION_MINOR )
17890 printf("Berkeley DB version mismatch\n"
17891 "\texpected: %s\n\tgot: %s\n",
17892 DB_VERSION_STRING, version);
17898 #if DB_VERSION_MAJOR > 2
17899 db_env_create( NULL, 0 );
17900 #elif DB_VERSION_MAJOR > 1
17901 db_appexit( NULL );
17903 (void) dbopen( NULL, 0, 0, 0, NULL);
17908 if { (eval echo configure:17909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17912 echo "configure: failed program was:" >&5
17913 cat conftest.$ac_ext >&5
17923 echo "$ac_t""$ol_cv_db_db2" 1>&6
17925 if test $ol_cv_db_db2 = yes ; then
17930 if test $ol_cv_lib_db = no ; then
17931 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17932 echo "configure:17933: checking for Berkeley DB link (-ldb-2)" >&5
17933 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17934 echo $ac_n "(cached) $ac_c" 1>&6
17939 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17941 cat > conftest.$ac_ext <<EOF
17942 #line 17943 "configure"
17943 #include "confdefs.h"
17945 #ifdef HAVE_DB_185_H
17946 # include <db_185.h>
17951 #ifndef DB_VERSION_MAJOR
17952 # define DB_VERSION_MAJOR 1
17956 #define NULL ((void*)0)
17961 #if DB_VERSION_MAJOR > 1
17964 int major, minor, patch;
17966 version = db_version( &major, &minor, &patch );
17968 if( major != DB_VERSION_MAJOR ||
17969 minor < DB_VERSION_MINOR )
17971 printf("Berkeley DB version mismatch\n"
17972 "\texpected: %s\n\tgot: %s\n",
17973 DB_VERSION_STRING, version);
17979 #if DB_VERSION_MAJOR > 2
17980 db_env_create( NULL, 0 );
17981 #elif DB_VERSION_MAJOR > 1
17982 db_appexit( NULL );
17984 (void) dbopen( NULL, 0, 0, 0, NULL);
17989 if { (eval echo configure:17990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17993 echo "configure: failed program was:" >&5
17994 cat conftest.$ac_ext >&5
18004 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18006 if test $ol_cv_db_db_2 = yes ; then
18007 ol_cv_lib_db=-ldb-2
18011 if test $ol_cv_lib_db = no ; then
18012 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18013 echo "configure:18014: checking for Berkeley DB link (-ldb1)" >&5
18014 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18015 echo $ac_n "(cached) $ac_c" 1>&6
18020 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18022 cat > conftest.$ac_ext <<EOF
18023 #line 18024 "configure"
18024 #include "confdefs.h"
18026 #ifdef HAVE_DB_185_H
18027 # include <db_185.h>
18032 #ifndef DB_VERSION_MAJOR
18033 # define DB_VERSION_MAJOR 1
18037 #define NULL ((void*)0)
18042 #if DB_VERSION_MAJOR > 1
18045 int major, minor, patch;
18047 version = db_version( &major, &minor, &patch );
18049 if( major != DB_VERSION_MAJOR ||
18050 minor < DB_VERSION_MINOR )
18052 printf("Berkeley DB version mismatch\n"
18053 "\texpected: %s\n\tgot: %s\n",
18054 DB_VERSION_STRING, version);
18060 #if DB_VERSION_MAJOR > 2
18061 db_env_create( NULL, 0 );
18062 #elif DB_VERSION_MAJOR > 1
18063 db_appexit( NULL );
18065 (void) dbopen( NULL, 0, 0, 0, NULL);
18070 if { (eval echo configure:18071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18074 echo "configure: failed program was:" >&5
18075 cat conftest.$ac_ext >&5
18085 echo "$ac_t""$ol_cv_db_db1" 1>&6
18087 if test $ol_cv_db_db1 = yes ; then
18092 if test $ol_cv_lib_db = no ; then
18093 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18094 echo "configure:18095: checking for Berkeley DB link (-ldb-1)" >&5
18095 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18096 echo $ac_n "(cached) $ac_c" 1>&6
18101 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18103 cat > conftest.$ac_ext <<EOF
18104 #line 18105 "configure"
18105 #include "confdefs.h"
18107 #ifdef HAVE_DB_185_H
18108 # include <db_185.h>
18113 #ifndef DB_VERSION_MAJOR
18114 # define DB_VERSION_MAJOR 1
18118 #define NULL ((void*)0)
18123 #if DB_VERSION_MAJOR > 1
18126 int major, minor, patch;
18128 version = db_version( &major, &minor, &patch );
18130 if( major != DB_VERSION_MAJOR ||
18131 minor < DB_VERSION_MINOR )
18133 printf("Berkeley DB version mismatch\n"
18134 "\texpected: %s\n\tgot: %s\n",
18135 DB_VERSION_STRING, version);
18141 #if DB_VERSION_MAJOR > 2
18142 db_env_create( NULL, 0 );
18143 #elif DB_VERSION_MAJOR > 1
18144 db_appexit( NULL );
18146 (void) dbopen( NULL, 0, 0, 0, NULL);
18151 if { (eval echo configure:18152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18155 echo "configure: failed program was:" >&5
18156 cat conftest.$ac_ext >&5
18166 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18168 if test $ol_cv_db_db_1 = yes ; then
18169 ol_cv_lib_db=-ldb-1
18174 if test "$ol_cv_lib_db" != no ; then
18175 ol_cv_berkeley_db=yes
18181 ol_cv_berkeley_db=no
18184 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18185 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18186 echo "configure:18187: checking for $ac_hdr" >&5
18187 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18188 echo $ac_n "(cached) $ac_c" 1>&6
18190 cat > conftest.$ac_ext <<EOF
18191 #line 18192 "configure"
18192 #include "confdefs.h"
18195 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18196 { (eval echo configure:18197: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18197 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18198 if test -z "$ac_err"; then
18200 eval "ac_cv_header_$ac_safe=yes"
18203 echo "configure: failed program was:" >&5
18204 cat conftest.$ac_ext >&5
18206 eval "ac_cv_header_$ac_safe=no"
18210 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18211 echo "$ac_t""yes" 1>&6
18212 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18213 cat >> confdefs.h <<EOF
18214 #define $ac_tr_hdr 1
18218 echo "$ac_t""no" 1>&6
18222 if test $ac_cv_header_db_h = yes; then
18224 if test $ol_cv_lib_db = no ; then
18225 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18226 echo "configure:18227: checking for Berkeley DB link (default)" >&5
18227 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18228 echo $ac_n "(cached) $ac_c" 1>&6
18233 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18235 cat > conftest.$ac_ext <<EOF
18236 #line 18237 "configure"
18237 #include "confdefs.h"
18239 #ifdef HAVE_DB_185_H
18240 # include <db_185.h>
18245 #ifndef DB_VERSION_MAJOR
18246 # define DB_VERSION_MAJOR 1
18250 #define NULL ((void*)0)
18255 #if DB_VERSION_MAJOR > 1
18258 int major, minor, patch;
18260 version = db_version( &major, &minor, &patch );
18262 if( major != DB_VERSION_MAJOR ||
18263 minor < DB_VERSION_MINOR )
18265 printf("Berkeley DB version mismatch\n"
18266 "\texpected: %s\n\tgot: %s\n",
18267 DB_VERSION_STRING, version);
18273 #if DB_VERSION_MAJOR > 2
18274 db_env_create( NULL, 0 );
18275 #elif DB_VERSION_MAJOR > 1
18276 db_appexit( NULL );
18278 (void) dbopen( NULL, 0, 0, 0, NULL);
18283 if { (eval echo configure:18284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18287 echo "configure: failed program was:" >&5
18288 cat conftest.$ac_ext >&5
18298 echo "$ac_t""$ol_cv_db_none" 1>&6
18300 if test $ol_cv_db_none = yes ; then
18305 if test $ol_cv_lib_db = no ; then
18306 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18307 echo "configure:18308: checking for Berkeley DB link (-ldb42)" >&5
18308 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18309 echo $ac_n "(cached) $ac_c" 1>&6
18314 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18316 cat > conftest.$ac_ext <<EOF
18317 #line 18318 "configure"
18318 #include "confdefs.h"
18320 #ifdef HAVE_DB_185_H
18321 # include <db_185.h>
18326 #ifndef DB_VERSION_MAJOR
18327 # define DB_VERSION_MAJOR 1
18331 #define NULL ((void*)0)
18336 #if DB_VERSION_MAJOR > 1
18339 int major, minor, patch;
18341 version = db_version( &major, &minor, &patch );
18343 if( major != DB_VERSION_MAJOR ||
18344 minor < DB_VERSION_MINOR )
18346 printf("Berkeley DB version mismatch\n"
18347 "\texpected: %s\n\tgot: %s\n",
18348 DB_VERSION_STRING, version);
18354 #if DB_VERSION_MAJOR > 2
18355 db_env_create( NULL, 0 );
18356 #elif DB_VERSION_MAJOR > 1
18357 db_appexit( NULL );
18359 (void) dbopen( NULL, 0, 0, 0, NULL);
18364 if { (eval echo configure:18365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18368 echo "configure: failed program was:" >&5
18369 cat conftest.$ac_ext >&5
18379 echo "$ac_t""$ol_cv_db_db42" 1>&6
18381 if test $ol_cv_db_db42 = yes ; then
18382 ol_cv_lib_db=-ldb42
18386 if test $ol_cv_lib_db = no ; then
18387 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18388 echo "configure:18389: checking for Berkeley DB link (-ldb-42)" >&5
18389 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18390 echo $ac_n "(cached) $ac_c" 1>&6
18395 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18397 cat > conftest.$ac_ext <<EOF
18398 #line 18399 "configure"
18399 #include "confdefs.h"
18401 #ifdef HAVE_DB_185_H
18402 # include <db_185.h>
18407 #ifndef DB_VERSION_MAJOR
18408 # define DB_VERSION_MAJOR 1
18412 #define NULL ((void*)0)
18417 #if DB_VERSION_MAJOR > 1
18420 int major, minor, patch;
18422 version = db_version( &major, &minor, &patch );
18424 if( major != DB_VERSION_MAJOR ||
18425 minor < DB_VERSION_MINOR )
18427 printf("Berkeley DB version mismatch\n"
18428 "\texpected: %s\n\tgot: %s\n",
18429 DB_VERSION_STRING, version);
18435 #if DB_VERSION_MAJOR > 2
18436 db_env_create( NULL, 0 );
18437 #elif DB_VERSION_MAJOR > 1
18438 db_appexit( NULL );
18440 (void) dbopen( NULL, 0, 0, 0, NULL);
18445 if { (eval echo configure:18446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18449 echo "configure: failed program was:" >&5
18450 cat conftest.$ac_ext >&5
18460 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18462 if test $ol_cv_db_db_42 = yes ; then
18463 ol_cv_lib_db=-ldb-42
18467 if test $ol_cv_lib_db = no ; then
18468 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18469 echo "configure:18470: checking for Berkeley DB link (-ldb-4.2)" >&5
18470 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18471 echo $ac_n "(cached) $ac_c" 1>&6
18476 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18478 cat > conftest.$ac_ext <<EOF
18479 #line 18480 "configure"
18480 #include "confdefs.h"
18482 #ifdef HAVE_DB_185_H
18483 # include <db_185.h>
18488 #ifndef DB_VERSION_MAJOR
18489 # define DB_VERSION_MAJOR 1
18493 #define NULL ((void*)0)
18498 #if DB_VERSION_MAJOR > 1
18501 int major, minor, patch;
18503 version = db_version( &major, &minor, &patch );
18505 if( major != DB_VERSION_MAJOR ||
18506 minor < DB_VERSION_MINOR )
18508 printf("Berkeley DB version mismatch\n"
18509 "\texpected: %s\n\tgot: %s\n",
18510 DB_VERSION_STRING, version);
18516 #if DB_VERSION_MAJOR > 2
18517 db_env_create( NULL, 0 );
18518 #elif DB_VERSION_MAJOR > 1
18519 db_appexit( NULL );
18521 (void) dbopen( NULL, 0, 0, 0, NULL);
18526 if { (eval echo configure:18527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18528 ol_cv_db_db_4_dot_2=yes
18530 echo "configure: failed program was:" >&5
18531 cat conftest.$ac_ext >&5
18533 ol_cv_db_db_4_dot_2=no
18541 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18543 if test $ol_cv_db_db_4_dot_2 = yes ; then
18544 ol_cv_lib_db=-ldb-4.2
18548 if test $ol_cv_lib_db = no ; then
18549 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18550 echo "configure:18551: checking for Berkeley DB link (-ldb-4-2)" >&5
18551 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18552 echo $ac_n "(cached) $ac_c" 1>&6
18557 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18559 cat > conftest.$ac_ext <<EOF
18560 #line 18561 "configure"
18561 #include "confdefs.h"
18563 #ifdef HAVE_DB_185_H
18564 # include <db_185.h>
18569 #ifndef DB_VERSION_MAJOR
18570 # define DB_VERSION_MAJOR 1
18574 #define NULL ((void*)0)
18579 #if DB_VERSION_MAJOR > 1
18582 int major, minor, patch;
18584 version = db_version( &major, &minor, &patch );
18586 if( major != DB_VERSION_MAJOR ||
18587 minor < DB_VERSION_MINOR )
18589 printf("Berkeley DB version mismatch\n"
18590 "\texpected: %s\n\tgot: %s\n",
18591 DB_VERSION_STRING, version);
18597 #if DB_VERSION_MAJOR > 2
18598 db_env_create( NULL, 0 );
18599 #elif DB_VERSION_MAJOR > 1
18600 db_appexit( NULL );
18602 (void) dbopen( NULL, 0, 0, 0, NULL);
18607 if { (eval echo configure:18608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18609 ol_cv_db_db_4_2=yes
18611 echo "configure: failed program was:" >&5
18612 cat conftest.$ac_ext >&5
18622 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18624 if test $ol_cv_db_db_4_2 = yes ; then
18625 ol_cv_lib_db=-ldb-4-2
18629 if test $ol_cv_lib_db = no ; then
18630 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18631 echo "configure:18632: checking for Berkeley DB link (-ldb-4)" >&5
18632 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18633 echo $ac_n "(cached) $ac_c" 1>&6
18638 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18640 cat > conftest.$ac_ext <<EOF
18641 #line 18642 "configure"
18642 #include "confdefs.h"
18644 #ifdef HAVE_DB_185_H
18645 # include <db_185.h>
18650 #ifndef DB_VERSION_MAJOR
18651 # define DB_VERSION_MAJOR 1
18655 #define NULL ((void*)0)
18660 #if DB_VERSION_MAJOR > 1
18663 int major, minor, patch;
18665 version = db_version( &major, &minor, &patch );
18667 if( major != DB_VERSION_MAJOR ||
18668 minor < DB_VERSION_MINOR )
18670 printf("Berkeley DB version mismatch\n"
18671 "\texpected: %s\n\tgot: %s\n",
18672 DB_VERSION_STRING, version);
18678 #if DB_VERSION_MAJOR > 2
18679 db_env_create( NULL, 0 );
18680 #elif DB_VERSION_MAJOR > 1
18681 db_appexit( NULL );
18683 (void) dbopen( NULL, 0, 0, 0, NULL);
18688 if { (eval echo configure:18689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18692 echo "configure: failed program was:" >&5
18693 cat conftest.$ac_ext >&5
18703 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18705 if test $ol_cv_db_db_4 = yes ; then
18706 ol_cv_lib_db=-ldb-4
18710 if test $ol_cv_lib_db = no ; then
18711 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18712 echo "configure:18713: checking for Berkeley DB link (-ldb4)" >&5
18713 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18714 echo $ac_n "(cached) $ac_c" 1>&6
18719 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18721 cat > conftest.$ac_ext <<EOF
18722 #line 18723 "configure"
18723 #include "confdefs.h"
18725 #ifdef HAVE_DB_185_H
18726 # include <db_185.h>
18731 #ifndef DB_VERSION_MAJOR
18732 # define DB_VERSION_MAJOR 1
18736 #define NULL ((void*)0)
18741 #if DB_VERSION_MAJOR > 1
18744 int major, minor, patch;
18746 version = db_version( &major, &minor, &patch );
18748 if( major != DB_VERSION_MAJOR ||
18749 minor < DB_VERSION_MINOR )
18751 printf("Berkeley DB version mismatch\n"
18752 "\texpected: %s\n\tgot: %s\n",
18753 DB_VERSION_STRING, version);
18759 #if DB_VERSION_MAJOR > 2
18760 db_env_create( NULL, 0 );
18761 #elif DB_VERSION_MAJOR > 1
18762 db_appexit( NULL );
18764 (void) dbopen( NULL, 0, 0, 0, NULL);
18769 if { (eval echo configure:18770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18773 echo "configure: failed program was:" >&5
18774 cat conftest.$ac_ext >&5
18784 echo "$ac_t""$ol_cv_db_db4" 1>&6
18786 if test $ol_cv_db_db4 = yes ; then
18791 if test $ol_cv_lib_db = no ; then
18792 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18793 echo "configure:18794: checking for Berkeley DB link (-ldb41)" >&5
18794 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18795 echo $ac_n "(cached) $ac_c" 1>&6
18800 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18802 cat > conftest.$ac_ext <<EOF
18803 #line 18804 "configure"
18804 #include "confdefs.h"
18806 #ifdef HAVE_DB_185_H
18807 # include <db_185.h>
18812 #ifndef DB_VERSION_MAJOR
18813 # define DB_VERSION_MAJOR 1
18817 #define NULL ((void*)0)
18822 #if DB_VERSION_MAJOR > 1
18825 int major, minor, patch;
18827 version = db_version( &major, &minor, &patch );
18829 if( major != DB_VERSION_MAJOR ||
18830 minor < DB_VERSION_MINOR )
18832 printf("Berkeley DB version mismatch\n"
18833 "\texpected: %s\n\tgot: %s\n",
18834 DB_VERSION_STRING, version);
18840 #if DB_VERSION_MAJOR > 2
18841 db_env_create( NULL, 0 );
18842 #elif DB_VERSION_MAJOR > 1
18843 db_appexit( NULL );
18845 (void) dbopen( NULL, 0, 0, 0, NULL);
18850 if { (eval echo configure:18851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18854 echo "configure: failed program was:" >&5
18855 cat conftest.$ac_ext >&5
18865 echo "$ac_t""$ol_cv_db_db41" 1>&6
18867 if test $ol_cv_db_db41 = yes ; then
18868 ol_cv_lib_db=-ldb41
18872 if test $ol_cv_lib_db = no ; then
18873 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18874 echo "configure:18875: checking for Berkeley DB link (-ldb-41)" >&5
18875 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18876 echo $ac_n "(cached) $ac_c" 1>&6
18881 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18883 cat > conftest.$ac_ext <<EOF
18884 #line 18885 "configure"
18885 #include "confdefs.h"
18887 #ifdef HAVE_DB_185_H
18888 # include <db_185.h>
18893 #ifndef DB_VERSION_MAJOR
18894 # define DB_VERSION_MAJOR 1
18898 #define NULL ((void*)0)
18903 #if DB_VERSION_MAJOR > 1
18906 int major, minor, patch;
18908 version = db_version( &major, &minor, &patch );
18910 if( major != DB_VERSION_MAJOR ||
18911 minor < DB_VERSION_MINOR )
18913 printf("Berkeley DB version mismatch\n"
18914 "\texpected: %s\n\tgot: %s\n",
18915 DB_VERSION_STRING, version);
18921 #if DB_VERSION_MAJOR > 2
18922 db_env_create( NULL, 0 );
18923 #elif DB_VERSION_MAJOR > 1
18924 db_appexit( NULL );
18926 (void) dbopen( NULL, 0, 0, 0, NULL);
18931 if { (eval echo configure:18932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18935 echo "configure: failed program was:" >&5
18936 cat conftest.$ac_ext >&5
18946 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18948 if test $ol_cv_db_db_41 = yes ; then
18949 ol_cv_lib_db=-ldb-41
18953 if test $ol_cv_lib_db = no ; then
18954 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18955 echo "configure:18956: checking for Berkeley DB link (-ldb-4.1)" >&5
18956 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18957 echo $ac_n "(cached) $ac_c" 1>&6
18962 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18964 cat > conftest.$ac_ext <<EOF
18965 #line 18966 "configure"
18966 #include "confdefs.h"
18968 #ifdef HAVE_DB_185_H
18969 # include <db_185.h>
18974 #ifndef DB_VERSION_MAJOR
18975 # define DB_VERSION_MAJOR 1
18979 #define NULL ((void*)0)
18984 #if DB_VERSION_MAJOR > 1
18987 int major, minor, patch;
18989 version = db_version( &major, &minor, &patch );
18991 if( major != DB_VERSION_MAJOR ||
18992 minor < DB_VERSION_MINOR )
18994 printf("Berkeley DB version mismatch\n"
18995 "\texpected: %s\n\tgot: %s\n",
18996 DB_VERSION_STRING, version);
19002 #if DB_VERSION_MAJOR > 2
19003 db_env_create( NULL, 0 );
19004 #elif DB_VERSION_MAJOR > 1
19005 db_appexit( NULL );
19007 (void) dbopen( NULL, 0, 0, 0, NULL);
19012 if { (eval echo configure:19013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19014 ol_cv_db_db_4_dot_1=yes
19016 echo "configure: failed program was:" >&5
19017 cat conftest.$ac_ext >&5
19019 ol_cv_db_db_4_dot_1=no
19027 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19029 if test $ol_cv_db_db_4_dot_1 = yes ; then
19030 ol_cv_lib_db=-ldb-4.1
19034 if test $ol_cv_lib_db = no ; then
19035 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19036 echo "configure:19037: checking for Berkeley DB link (-ldb-4-1)" >&5
19037 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19038 echo $ac_n "(cached) $ac_c" 1>&6
19043 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19045 cat > conftest.$ac_ext <<EOF
19046 #line 19047 "configure"
19047 #include "confdefs.h"
19049 #ifdef HAVE_DB_185_H
19050 # include <db_185.h>
19055 #ifndef DB_VERSION_MAJOR
19056 # define DB_VERSION_MAJOR 1
19060 #define NULL ((void*)0)
19065 #if DB_VERSION_MAJOR > 1
19068 int major, minor, patch;
19070 version = db_version( &major, &minor, &patch );
19072 if( major != DB_VERSION_MAJOR ||
19073 minor < DB_VERSION_MINOR )
19075 printf("Berkeley DB version mismatch\n"
19076 "\texpected: %s\n\tgot: %s\n",
19077 DB_VERSION_STRING, version);
19083 #if DB_VERSION_MAJOR > 2
19084 db_env_create( NULL, 0 );
19085 #elif DB_VERSION_MAJOR > 1
19086 db_appexit( NULL );
19088 (void) dbopen( NULL, 0, 0, 0, NULL);
19093 if { (eval echo configure:19094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19095 ol_cv_db_db_4_1=yes
19097 echo "configure: failed program was:" >&5
19098 cat conftest.$ac_ext >&5
19108 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19110 if test $ol_cv_db_db_4_1 = yes ; then
19111 ol_cv_lib_db=-ldb-4-1
19115 if test $ol_cv_lib_db = no ; then
19116 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19117 echo "configure:19118: checking for Berkeley DB link (-ldb-4)" >&5
19118 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19119 echo $ac_n "(cached) $ac_c" 1>&6
19124 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19126 cat > conftest.$ac_ext <<EOF
19127 #line 19128 "configure"
19128 #include "confdefs.h"
19130 #ifdef HAVE_DB_185_H
19131 # include <db_185.h>
19136 #ifndef DB_VERSION_MAJOR
19137 # define DB_VERSION_MAJOR 1
19141 #define NULL ((void*)0)
19146 #if DB_VERSION_MAJOR > 1
19149 int major, minor, patch;
19151 version = db_version( &major, &minor, &patch );
19153 if( major != DB_VERSION_MAJOR ||
19154 minor < DB_VERSION_MINOR )
19156 printf("Berkeley DB version mismatch\n"
19157 "\texpected: %s\n\tgot: %s\n",
19158 DB_VERSION_STRING, version);
19164 #if DB_VERSION_MAJOR > 2
19165 db_env_create( NULL, 0 );
19166 #elif DB_VERSION_MAJOR > 1
19167 db_appexit( NULL );
19169 (void) dbopen( NULL, 0, 0, 0, NULL);
19174 if { (eval echo configure:19175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19178 echo "configure: failed program was:" >&5
19179 cat conftest.$ac_ext >&5
19189 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19191 if test $ol_cv_db_db_4 = yes ; then
19192 ol_cv_lib_db=-ldb-4
19196 if test $ol_cv_lib_db = no ; then
19197 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19198 echo "configure:19199: checking for Berkeley DB link (-ldb)" >&5
19199 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19200 echo $ac_n "(cached) $ac_c" 1>&6
19205 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19207 cat > conftest.$ac_ext <<EOF
19208 #line 19209 "configure"
19209 #include "confdefs.h"
19211 #ifdef HAVE_DB_185_H
19212 # include <db_185.h>
19217 #ifndef DB_VERSION_MAJOR
19218 # define DB_VERSION_MAJOR 1
19222 #define NULL ((void*)0)
19227 #if DB_VERSION_MAJOR > 1
19230 int major, minor, patch;
19232 version = db_version( &major, &minor, &patch );
19234 if( major != DB_VERSION_MAJOR ||
19235 minor < DB_VERSION_MINOR )
19237 printf("Berkeley DB version mismatch\n"
19238 "\texpected: %s\n\tgot: %s\n",
19239 DB_VERSION_STRING, version);
19245 #if DB_VERSION_MAJOR > 2
19246 db_env_create( NULL, 0 );
19247 #elif DB_VERSION_MAJOR > 1
19248 db_appexit( NULL );
19250 (void) dbopen( NULL, 0, 0, 0, NULL);
19255 if { (eval echo configure:19256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19259 echo "configure: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19270 echo "$ac_t""$ol_cv_db_db" 1>&6
19272 if test $ol_cv_db_db = yes ; then
19277 if test $ol_cv_lib_db = no ; then
19278 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19279 echo "configure:19280: checking for Berkeley DB link (-ldb3)" >&5
19280 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19281 echo $ac_n "(cached) $ac_c" 1>&6
19286 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19288 cat > conftest.$ac_ext <<EOF
19289 #line 19290 "configure"
19290 #include "confdefs.h"
19292 #ifdef HAVE_DB_185_H
19293 # include <db_185.h>
19298 #ifndef DB_VERSION_MAJOR
19299 # define DB_VERSION_MAJOR 1
19303 #define NULL ((void*)0)
19308 #if DB_VERSION_MAJOR > 1
19311 int major, minor, patch;
19313 version = db_version( &major, &minor, &patch );
19315 if( major != DB_VERSION_MAJOR ||
19316 minor < DB_VERSION_MINOR )
19318 printf("Berkeley DB version mismatch\n"
19319 "\texpected: %s\n\tgot: %s\n",
19320 DB_VERSION_STRING, version);
19326 #if DB_VERSION_MAJOR > 2
19327 db_env_create( NULL, 0 );
19328 #elif DB_VERSION_MAJOR > 1
19329 db_appexit( NULL );
19331 (void) dbopen( NULL, 0, 0, 0, NULL);
19336 if { (eval echo configure:19337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19340 echo "configure: failed program was:" >&5
19341 cat conftest.$ac_ext >&5
19351 echo "$ac_t""$ol_cv_db_db3" 1>&6
19353 if test $ol_cv_db_db3 = yes ; then
19358 if test $ol_cv_lib_db = no ; then
19359 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19360 echo "configure:19361: checking for Berkeley DB link (-ldb-3)" >&5
19361 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19362 echo $ac_n "(cached) $ac_c" 1>&6
19367 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19369 cat > conftest.$ac_ext <<EOF
19370 #line 19371 "configure"
19371 #include "confdefs.h"
19373 #ifdef HAVE_DB_185_H
19374 # include <db_185.h>
19379 #ifndef DB_VERSION_MAJOR
19380 # define DB_VERSION_MAJOR 1
19384 #define NULL ((void*)0)
19389 #if DB_VERSION_MAJOR > 1
19392 int major, minor, patch;
19394 version = db_version( &major, &minor, &patch );
19396 if( major != DB_VERSION_MAJOR ||
19397 minor < DB_VERSION_MINOR )
19399 printf("Berkeley DB version mismatch\n"
19400 "\texpected: %s\n\tgot: %s\n",
19401 DB_VERSION_STRING, version);
19407 #if DB_VERSION_MAJOR > 2
19408 db_env_create( NULL, 0 );
19409 #elif DB_VERSION_MAJOR > 1
19410 db_appexit( NULL );
19412 (void) dbopen( NULL, 0, 0, 0, NULL);
19417 if { (eval echo configure:19418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19421 echo "configure: failed program was:" >&5
19422 cat conftest.$ac_ext >&5
19432 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19434 if test $ol_cv_db_db_3 = yes ; then
19435 ol_cv_lib_db=-ldb-3
19439 if test $ol_cv_lib_db = no ; then
19440 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19441 echo "configure:19442: checking for Berkeley DB link (-ldb2)" >&5
19442 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19443 echo $ac_n "(cached) $ac_c" 1>&6
19448 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19450 cat > conftest.$ac_ext <<EOF
19451 #line 19452 "configure"
19452 #include "confdefs.h"
19454 #ifdef HAVE_DB_185_H
19455 # include <db_185.h>
19460 #ifndef DB_VERSION_MAJOR
19461 # define DB_VERSION_MAJOR 1
19465 #define NULL ((void*)0)
19470 #if DB_VERSION_MAJOR > 1
19473 int major, minor, patch;
19475 version = db_version( &major, &minor, &patch );
19477 if( major != DB_VERSION_MAJOR ||
19478 minor < DB_VERSION_MINOR )
19480 printf("Berkeley DB version mismatch\n"
19481 "\texpected: %s\n\tgot: %s\n",
19482 DB_VERSION_STRING, version);
19488 #if DB_VERSION_MAJOR > 2
19489 db_env_create( NULL, 0 );
19490 #elif DB_VERSION_MAJOR > 1
19491 db_appexit( NULL );
19493 (void) dbopen( NULL, 0, 0, 0, NULL);
19498 if { (eval echo configure:19499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19502 echo "configure: failed program was:" >&5
19503 cat conftest.$ac_ext >&5
19513 echo "$ac_t""$ol_cv_db_db2" 1>&6
19515 if test $ol_cv_db_db2 = yes ; then
19520 if test $ol_cv_lib_db = no ; then
19521 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19522 echo "configure:19523: checking for Berkeley DB link (-ldb-2)" >&5
19523 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19524 echo $ac_n "(cached) $ac_c" 1>&6
19529 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19531 cat > conftest.$ac_ext <<EOF
19532 #line 19533 "configure"
19533 #include "confdefs.h"
19535 #ifdef HAVE_DB_185_H
19536 # include <db_185.h>
19541 #ifndef DB_VERSION_MAJOR
19542 # define DB_VERSION_MAJOR 1
19546 #define NULL ((void*)0)
19551 #if DB_VERSION_MAJOR > 1
19554 int major, minor, patch;
19556 version = db_version( &major, &minor, &patch );
19558 if( major != DB_VERSION_MAJOR ||
19559 minor < DB_VERSION_MINOR )
19561 printf("Berkeley DB version mismatch\n"
19562 "\texpected: %s\n\tgot: %s\n",
19563 DB_VERSION_STRING, version);
19569 #if DB_VERSION_MAJOR > 2
19570 db_env_create( NULL, 0 );
19571 #elif DB_VERSION_MAJOR > 1
19572 db_appexit( NULL );
19574 (void) dbopen( NULL, 0, 0, 0, NULL);
19579 if { (eval echo configure:19580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19583 echo "configure: failed program was:" >&5
19584 cat conftest.$ac_ext >&5
19594 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19596 if test $ol_cv_db_db_2 = yes ; then
19597 ol_cv_lib_db=-ldb-2
19601 if test $ol_cv_lib_db = no ; then
19602 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19603 echo "configure:19604: checking for Berkeley DB link (-ldb1)" >&5
19604 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19605 echo $ac_n "(cached) $ac_c" 1>&6
19610 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19612 cat > conftest.$ac_ext <<EOF
19613 #line 19614 "configure"
19614 #include "confdefs.h"
19616 #ifdef HAVE_DB_185_H
19617 # include <db_185.h>
19622 #ifndef DB_VERSION_MAJOR
19623 # define DB_VERSION_MAJOR 1
19627 #define NULL ((void*)0)
19632 #if DB_VERSION_MAJOR > 1
19635 int major, minor, patch;
19637 version = db_version( &major, &minor, &patch );
19639 if( major != DB_VERSION_MAJOR ||
19640 minor < DB_VERSION_MINOR )
19642 printf("Berkeley DB version mismatch\n"
19643 "\texpected: %s\n\tgot: %s\n",
19644 DB_VERSION_STRING, version);
19650 #if DB_VERSION_MAJOR > 2
19651 db_env_create( NULL, 0 );
19652 #elif DB_VERSION_MAJOR > 1
19653 db_appexit( NULL );
19655 (void) dbopen( NULL, 0, 0, 0, NULL);
19660 if { (eval echo configure:19661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19664 echo "configure: failed program was:" >&5
19665 cat conftest.$ac_ext >&5
19675 echo "$ac_t""$ol_cv_db_db1" 1>&6
19677 if test $ol_cv_db_db1 = yes ; then
19682 if test $ol_cv_lib_db = no ; then
19683 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19684 echo "configure:19685: checking for Berkeley DB link (-ldb-1)" >&5
19685 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19686 echo $ac_n "(cached) $ac_c" 1>&6
19691 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19693 cat > conftest.$ac_ext <<EOF
19694 #line 19695 "configure"
19695 #include "confdefs.h"
19697 #ifdef HAVE_DB_185_H
19698 # include <db_185.h>
19703 #ifndef DB_VERSION_MAJOR
19704 # define DB_VERSION_MAJOR 1
19708 #define NULL ((void*)0)
19713 #if DB_VERSION_MAJOR > 1
19716 int major, minor, patch;
19718 version = db_version( &major, &minor, &patch );
19720 if( major != DB_VERSION_MAJOR ||
19721 minor < DB_VERSION_MINOR )
19723 printf("Berkeley DB version mismatch\n"
19724 "\texpected: %s\n\tgot: %s\n",
19725 DB_VERSION_STRING, version);
19731 #if DB_VERSION_MAJOR > 2
19732 db_env_create( NULL, 0 );
19733 #elif DB_VERSION_MAJOR > 1
19734 db_appexit( NULL );
19736 (void) dbopen( NULL, 0, 0, 0, NULL);
19741 if { (eval echo configure:19742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19745 echo "configure: failed program was:" >&5
19746 cat conftest.$ac_ext >&5
19756 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19758 if test $ol_cv_db_db_1 = yes ; then
19759 ol_cv_lib_db=-ldb-1
19764 if test "$ol_cv_lib_db" != no ; then
19765 ol_cv_berkeley_db=yes
19766 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19767 echo "configure:19768: checking for Berkeley DB thread support" >&5
19768 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19769 echo $ac_n "(cached) $ac_c" 1>&6
19773 LIBS="$LTHREAD_LIBS $LIBS"
19774 if test $ol_cv_lib_db != yes ; then
19775 LIBS="$ol_cv_lib_db $LIBS"
19778 if test "$cross_compiling" = yes; then
19779 ol_cv_berkeley_db_thread=cross
19781 cat > conftest.$ac_ext <<EOF
19782 #line 19783 "configure"
19783 #include "confdefs.h"
19785 #ifdef HAVE_DB_185_H
19791 #define NULL ((void *)0)
19796 u_int32_t flags = DB_CREATE |
19802 #if DB_VERSION_MAJOR > 2
19803 DB_ENV *env = NULL;
19805 rc = db_env_create( &env, 0 );
19807 flags |= DB_INIT_MPOOL;
19808 #ifdef DB_MPOOL_PRIVATE
19809 flags |= DB_MPOOL_PRIVATE;
19813 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19817 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19818 rc = env->open( env, NULL, flags, 0 );
19820 rc = env->open( env, NULL, NULL, flags, 0 );
19824 rc = env->close( env, 0 );
19828 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19834 memset( &env, '\0', sizeof(env) );
19836 rc = db_appinit( NULL, NULL, &env, flags );
19839 db_appexit( &env );
19842 unlink("__db_mpool.share");
19843 unlink("__db_lock.share");
19849 if { (eval echo configure:19850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19851 ol_cv_berkeley_db_thread=yes
19853 echo "configure: failed program was:" >&5
19854 cat conftest.$ac_ext >&5
19856 ol_cv_berkeley_db_thread=no
19866 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19868 if test $ol_cv_berkeley_db_thread != no ; then
19869 cat >> confdefs.h <<\EOF
19870 #define HAVE_BERKELEY_DB_THREAD 1
19880 if test $ol_cv_berkeley_db != no ; then
19881 cat >> confdefs.h <<\EOF
19882 #define HAVE_BERKELEY_DB 1
19886 ol_link_ldbm=berkeley
19887 ol_with_ldbm_api=berkeley
19889 if test $ol_with_ldbm_type = hash ; then
19890 cat >> confdefs.h <<\EOF
19891 #define LDBM_USE_DBHASH 1
19895 cat >> confdefs.h <<\EOF
19896 #define LDBM_USE_DBBTREE 1
19901 if test $ol_cv_lib_db != yes ; then
19902 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19907 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19908 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19909 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19910 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19911 echo "configure:19912: checking Berkeley DB version for BDB backend" >&5
19912 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19913 echo $ac_n "(cached) $ac_c" 1>&6
19916 cat > conftest.$ac_ext <<EOF
19917 #line 19918 "configure"
19918 #include "confdefs.h"
19922 /* this check could be improved */
19923 #ifndef DB_VERSION_MAJOR
19924 # define DB_VERSION_MAJOR 1
19926 #ifndef DB_VERSION_MINOR
19927 # define DB_VERSION_MINOR 0
19930 /* require 4.2 or later */
19931 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19932 __db_version_compat
19936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19937 egrep "__db_version_compat" >/dev/null 2>&1; then
19939 ol_cv_bdb_compat=yes
19942 ol_cv_bdb_compat=no
19948 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19951 if test $ol_cv_bdb_compat = yes ; then
19953 elif test $ol_enable_bdb = yes ; then
19954 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19959 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19960 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19963 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19964 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19965 ol_with_ldbm_api=none
19968 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19969 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19970 echo "configure:19971: checking for MDBM library" >&5
19971 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19972 echo $ac_n "(cached) $ac_c" 1>&6
19975 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19976 echo "configure:19977: checking for mdbm_set_chain" >&5
19977 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19978 echo $ac_n "(cached) $ac_c" 1>&6
19980 cat > conftest.$ac_ext <<EOF
19981 #line 19982 "configure"
19982 #include "confdefs.h"
19983 /* System header to define __stub macros and hopefully few prototypes,
19984 which can conflict with char mdbm_set_chain(); below. */
19985 #include <assert.h>
19986 /* Override any gcc2 internal prototype to avoid an error. */
19987 /* We use char because int might match the return type of a gcc2
19988 builtin and then its argument prototype would still apply. */
19989 char mdbm_set_chain();
19994 /* The GNU C library defines this for functions which it implements
19995 to always fail with ENOSYS. Some functions are actually named
19996 something starting with __ and the normal name is an alias. */
19997 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20000 f = mdbm_set_chain;
20005 if { (eval echo configure:20006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20007 eval "ac_cv_func_mdbm_set_chain=yes"
20009 echo "configure: failed program was:" >&5
20010 cat conftest.$ac_ext >&5
20012 eval "ac_cv_func_mdbm_set_chain=no"
20017 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20018 echo "$ac_t""yes" 1>&6
20021 echo "$ac_t""no" 1>&6
20023 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20024 echo "configure:20025: checking for mdbm_set_chain in -lmdbm" >&5
20025 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20026 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20027 echo $ac_n "(cached) $ac_c" 1>&6
20029 ac_save_LIBS="$LIBS"
20030 LIBS="-lmdbm $LIBS"
20031 cat > conftest.$ac_ext <<EOF
20032 #line 20033 "configure"
20033 #include "confdefs.h"
20034 /* Override any gcc2 internal prototype to avoid an error. */
20035 /* We use char because int might match the return type of a gcc2
20036 builtin and then its argument prototype would still apply. */
20037 char mdbm_set_chain();
20043 if { (eval echo configure:20044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20045 eval "ac_cv_lib_$ac_lib_var=yes"
20047 echo "configure: failed program was:" >&5
20048 cat conftest.$ac_ext >&5
20050 eval "ac_cv_lib_$ac_lib_var=no"
20053 LIBS="$ac_save_LIBS"
20056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20057 echo "$ac_t""yes" 1>&6
20058 ol_cv_lib_mdbm=-lmdbm
20060 echo "$ac_t""no" 1>&6
20071 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20074 for ac_hdr in mdbm.h
20076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20078 echo "configure:20079: checking for $ac_hdr" >&5
20079 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20080 echo $ac_n "(cached) $ac_c" 1>&6
20082 cat > conftest.$ac_ext <<EOF
20083 #line 20084 "configure"
20084 #include "confdefs.h"
20087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20088 { (eval echo configure:20089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20090 if test -z "$ac_err"; then
20092 eval "ac_cv_header_$ac_safe=yes"
20095 echo "configure: failed program was:" >&5
20096 cat conftest.$ac_ext >&5
20098 eval "ac_cv_header_$ac_safe=no"
20102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20103 echo "$ac_t""yes" 1>&6
20104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20105 cat >> confdefs.h <<EOF
20106 #define $ac_tr_hdr 1
20110 echo "$ac_t""no" 1>&6
20114 echo $ac_n "checking for db""... $ac_c" 1>&6
20115 echo "configure:20116: checking for db" >&5
20116 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20120 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20128 echo "$ac_t""$ol_cv_mdbm" 1>&6
20129 if test $ol_cv_mdbm = yes ; then
20130 cat >> confdefs.h <<\EOF
20131 #define HAVE_MDBM 1
20137 if test $ol_cv_mdbm = yes ; then
20139 ol_with_ldbm_api=mdbm
20140 if test $ol_cv_lib_mdbm != yes ; then
20141 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20146 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20147 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20148 echo "configure:20149: checking for GDBM library" >&5
20149 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20150 echo $ac_n "(cached) $ac_c" 1>&6
20153 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20154 echo "configure:20155: checking for gdbm_open" >&5
20155 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20158 cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20161 /* System header to define __stub macros and hopefully few prototypes,
20162 which can conflict with char gdbm_open(); below. */
20163 #include <assert.h>
20164 /* Override any gcc2 internal prototype to avoid an error. */
20165 /* We use char because int might match the return type of a gcc2
20166 builtin and then its argument prototype would still apply. */
20172 /* The GNU C library defines this for functions which it implements
20173 to always fail with ENOSYS. Some functions are actually named
20174 something starting with __ and the normal name is an alias. */
20175 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20183 if { (eval echo configure:20184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20185 eval "ac_cv_func_gdbm_open=yes"
20187 echo "configure: failed program was:" >&5
20188 cat conftest.$ac_ext >&5
20190 eval "ac_cv_func_gdbm_open=no"
20195 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20196 echo "$ac_t""yes" 1>&6
20199 echo "$ac_t""no" 1>&6
20201 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20202 echo "configure:20203: checking for gdbm_open in -lgdbm" >&5
20203 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20204 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20205 echo $ac_n "(cached) $ac_c" 1>&6
20207 ac_save_LIBS="$LIBS"
20208 LIBS="-lgdbm $LIBS"
20209 cat > conftest.$ac_ext <<EOF
20210 #line 20211 "configure"
20211 #include "confdefs.h"
20212 /* Override any gcc2 internal prototype to avoid an error. */
20213 /* We use char because int might match the return type of a gcc2
20214 builtin and then its argument prototype would still apply. */
20221 if { (eval echo configure:20222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20223 eval "ac_cv_lib_$ac_lib_var=yes"
20225 echo "configure: failed program was:" >&5
20226 cat conftest.$ac_ext >&5
20228 eval "ac_cv_lib_$ac_lib_var=no"
20231 LIBS="$ac_save_LIBS"
20234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20235 echo "$ac_t""yes" 1>&6
20236 ol_cv_lib_gdbm=-lgdbm
20238 echo "$ac_t""no" 1>&6
20249 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20252 for ac_hdr in gdbm.h
20254 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20255 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20256 echo "configure:20257: checking for $ac_hdr" >&5
20257 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20258 echo $ac_n "(cached) $ac_c" 1>&6
20260 cat > conftest.$ac_ext <<EOF
20261 #line 20262 "configure"
20262 #include "confdefs.h"
20265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20266 { (eval echo configure:20267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20268 if test -z "$ac_err"; then
20270 eval "ac_cv_header_$ac_safe=yes"
20273 echo "configure: failed program was:" >&5
20274 cat conftest.$ac_ext >&5
20276 eval "ac_cv_header_$ac_safe=no"
20280 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20281 echo "$ac_t""yes" 1>&6
20282 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20283 cat >> confdefs.h <<EOF
20284 #define $ac_tr_hdr 1
20288 echo "$ac_t""no" 1>&6
20292 echo $ac_n "checking for db""... $ac_c" 1>&6
20293 echo "configure:20294: checking for db" >&5
20294 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20295 echo $ac_n "(cached) $ac_c" 1>&6
20298 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20306 echo "$ac_t""$ol_cv_gdbm" 1>&6
20307 if test $ol_cv_gdbm = yes ; then
20308 cat >> confdefs.h <<\EOF
20309 #define HAVE_GDBM 1
20315 if test $ol_cv_gdbm = yes ; then
20317 ol_with_ldbm_api=gdbm
20319 if test $ol_cv_lib_gdbm != yes ; then
20320 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20325 if test $ol_with_ldbm_api = ndbm ; then
20326 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20327 echo "configure:20328: checking for NDBM library" >&5
20328 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20329 echo $ac_n "(cached) $ac_c" 1>&6
20332 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20333 echo "configure:20334: checking for dbm_open" >&5
20334 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20335 echo $ac_n "(cached) $ac_c" 1>&6
20337 cat > conftest.$ac_ext <<EOF
20338 #line 20339 "configure"
20339 #include "confdefs.h"
20340 /* System header to define __stub macros and hopefully few prototypes,
20341 which can conflict with char dbm_open(); below. */
20342 #include <assert.h>
20343 /* Override any gcc2 internal prototype to avoid an error. */
20344 /* We use char because int might match the return type of a gcc2
20345 builtin and then its argument prototype would still apply. */
20351 /* The GNU C library defines this for functions which it implements
20352 to always fail with ENOSYS. Some functions are actually named
20353 something starting with __ and the normal name is an alias. */
20354 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20362 if { (eval echo configure:20363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20364 eval "ac_cv_func_dbm_open=yes"
20366 echo "configure: failed program was:" >&5
20367 cat conftest.$ac_ext >&5
20369 eval "ac_cv_func_dbm_open=no"
20374 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20375 echo "$ac_t""yes" 1>&6
20378 echo "$ac_t""no" 1>&6
20380 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20381 echo "configure:20382: checking for dbm_open in -lndbm" >&5
20382 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20383 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20384 echo $ac_n "(cached) $ac_c" 1>&6
20386 ac_save_LIBS="$LIBS"
20387 LIBS="-lndbm $LIBS"
20388 cat > conftest.$ac_ext <<EOF
20389 #line 20390 "configure"
20390 #include "confdefs.h"
20391 /* Override any gcc2 internal prototype to avoid an error. */
20392 /* We use char because int might match the return type of a gcc2
20393 builtin and then its argument prototype would still apply. */
20400 if { (eval echo configure:20401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20402 eval "ac_cv_lib_$ac_lib_var=yes"
20404 echo "configure: failed program was:" >&5
20405 cat conftest.$ac_ext >&5
20407 eval "ac_cv_lib_$ac_lib_var=no"
20410 LIBS="$ac_save_LIBS"
20413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20414 echo "$ac_t""yes" 1>&6
20415 ol_cv_lib_ndbm=-lndbm
20417 echo "$ac_t""no" 1>&6
20419 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20420 echo "configure:20421: checking for dbm_open in -ldbm" >&5
20421 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20422 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20423 echo $ac_n "(cached) $ac_c" 1>&6
20425 ac_save_LIBS="$LIBS"
20427 cat > conftest.$ac_ext <<EOF
20428 #line 20429 "configure"
20429 #include "confdefs.h"
20430 /* Override any gcc2 internal prototype to avoid an error. */
20431 /* We use char because int might match the return type of a gcc2
20432 builtin and then its argument prototype would still apply. */
20439 if { (eval echo configure:20440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20441 eval "ac_cv_lib_$ac_lib_var=yes"
20443 echo "configure: failed program was:" >&5
20444 cat conftest.$ac_ext >&5
20446 eval "ac_cv_lib_$ac_lib_var=no"
20449 LIBS="$ac_save_LIBS"
20452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20453 echo "$ac_t""yes" 1>&6
20454 ol_cv_lib_ndbm=-ldbm
20456 echo "$ac_t""no" 1>&6
20469 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20472 for ac_hdr in ndbm.h
20474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20476 echo "configure:20477: checking for $ac_hdr" >&5
20477 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20478 echo $ac_n "(cached) $ac_c" 1>&6
20480 cat > conftest.$ac_ext <<EOF
20481 #line 20482 "configure"
20482 #include "confdefs.h"
20485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20486 { (eval echo configure:20487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20488 if test -z "$ac_err"; then
20490 eval "ac_cv_header_$ac_safe=yes"
20493 echo "configure: failed program was:" >&5
20494 cat conftest.$ac_ext >&5
20496 eval "ac_cv_header_$ac_safe=no"
20500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20501 echo "$ac_t""yes" 1>&6
20502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20503 cat >> confdefs.h <<EOF
20504 #define $ac_tr_hdr 1
20508 echo "$ac_t""no" 1>&6
20512 echo $ac_n "checking for db""... $ac_c" 1>&6
20513 echo "configure:20514: checking for db" >&5
20514 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20515 echo $ac_n "(cached) $ac_c" 1>&6
20518 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20526 echo "$ac_t""$ol_cv_ndbm" 1>&6
20527 if test $ol_cv_ndbm = yes ; then
20528 cat >> confdefs.h <<\EOF
20529 #define HAVE_NDBM 1
20535 if test $ol_cv_ndbm = yes ; then
20537 ol_with_ldbm_api=ndbm
20539 if test $ol_cv_lib_ndbm != yes ; then
20540 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20545 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20546 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20547 if test $ol_enable_ldbm = yes ; then
20548 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20551 echo "configure: warning: disabling LDBM" 1>&2
20556 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20557 BUILD_LIBS_DYNAMIC=shared
20558 cat >> confdefs.h <<\EOF
20559 #define LDAP_LIBS_DYNAMIC 1
20564 BUILD_LIBS_DYNAMIC=static
20568 if test $ol_enable_wrappers != no ; then
20569 for ac_hdr in tcpd.h
20571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20573 echo "configure:20574: checking for $ac_hdr" >&5
20574 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20575 echo $ac_n "(cached) $ac_c" 1>&6
20577 cat > conftest.$ac_ext <<EOF
20578 #line 20579 "configure"
20579 #include "confdefs.h"
20582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20583 { (eval echo configure:20584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20585 if test -z "$ac_err"; then
20587 eval "ac_cv_header_$ac_safe=yes"
20590 echo "configure: failed program was:" >&5
20591 cat conftest.$ac_ext >&5
20593 eval "ac_cv_header_$ac_safe=no"
20597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20598 echo "$ac_t""yes" 1>&6
20599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20600 cat >> confdefs.h <<EOF
20601 #define $ac_tr_hdr 1
20604 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20605 echo "configure:20606: checking for TCP wrappers library" >&5
20607 LIBS="$LIBS -lwrap"
20608 cat > conftest.$ac_ext <<EOF
20609 #line 20610 "configure"
20610 #include "confdefs.h"
20613 int allow_severity = 0;
20614 int deny_severity = 0;
20616 struct request_info *req;
20624 if { (eval echo configure:20625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20626 echo "$ac_t""-lwrap" 1>&6
20630 echo "configure: failed program was:" >&5
20631 cat conftest.$ac_ext >&5
20635 cat > conftest.$ac_ext <<EOF
20636 #line 20637 "configure"
20637 #include "confdefs.h"
20640 int allow_severity = 0;
20641 int deny_severity = 0;
20643 struct request_info *req;
20651 if { (eval echo configure:20652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20653 echo "$ac_t""-lwrap -lnsl" 1>&6
20655 LIBS="$save_LIBS -lnsl"
20657 echo "configure: failed program was:" >&5
20658 cat conftest.$ac_ext >&5
20661 echo "$ac_t""no" 1>&6
20669 echo "$ac_t""no" 1>&6
20675 if test $have_wrappers = yes ; then
20676 cat >> confdefs.h <<\EOF
20677 #define HAVE_TCPD 1
20681 elif test $ol_enable_wrappers = yes ; then
20682 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
20684 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20689 if test $ol_enable_syslog != no ; then
20690 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20691 echo "configure:20692: checking for openlog" >&5
20692 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20693 echo $ac_n "(cached) $ac_c" 1>&6
20695 cat > conftest.$ac_ext <<EOF
20696 #line 20697 "configure"
20697 #include "confdefs.h"
20698 /* System header to define __stub macros and hopefully few prototypes,
20699 which can conflict with char openlog(); below. */
20700 #include <assert.h>
20701 /* Override any gcc2 internal prototype to avoid an error. */
20702 /* We use char because int might match the return type of a gcc2
20703 builtin and then its argument prototype would still apply. */
20709 /* The GNU C library defines this for functions which it implements
20710 to always fail with ENOSYS. Some functions are actually named
20711 something starting with __ and the normal name is an alias. */
20712 #if defined (__stub_openlog) || defined (__stub___openlog)
20720 if { (eval echo configure:20721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20722 eval "ac_cv_func_openlog=yes"
20724 echo "configure: failed program was:" >&5
20725 cat conftest.$ac_ext >&5
20727 eval "ac_cv_func_openlog=no"
20732 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20733 echo "$ac_t""yes" 1>&6
20736 echo "$ac_t""no" 1>&6
20739 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20740 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20742 ol_enable_syslog=$ac_cv_func_openlog
20747 if test $ol_enable_sql != no ; then
20748 for ac_hdr in sql.h sqlext.h
20750 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20752 echo "configure:20753: checking for $ac_hdr" >&5
20753 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20754 echo $ac_n "(cached) $ac_c" 1>&6
20756 cat > conftest.$ac_ext <<EOF
20757 #line 20758 "configure"
20758 #include "confdefs.h"
20761 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20762 { (eval echo configure:20763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20763 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20764 if test -z "$ac_err"; then
20766 eval "ac_cv_header_$ac_safe=yes"
20769 echo "configure: failed program was:" >&5
20770 cat conftest.$ac_ext >&5
20772 eval "ac_cv_header_$ac_safe=no"
20776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20777 echo "$ac_t""yes" 1>&6
20778 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20779 cat >> confdefs.h <<EOF
20780 #define $ac_tr_hdr 1
20784 echo "$ac_t""no" 1>&6
20785 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20791 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20792 echo "configure:20793: checking for SQLDriverConnect in -liodbc" >&5
20793 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20795 echo $ac_n "(cached) $ac_c" 1>&6
20797 ac_save_LIBS="$LIBS"
20798 LIBS="-liodbc $LIBS"
20799 cat > conftest.$ac_ext <<EOF
20800 #line 20801 "configure"
20801 #include "confdefs.h"
20802 /* Override any gcc2 internal prototype to avoid an error. */
20803 /* We use char because int might match the return type of a gcc2
20804 builtin and then its argument prototype would still apply. */
20805 char SQLDriverConnect();
20811 if { (eval echo configure:20812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20813 eval "ac_cv_lib_$ac_lib_var=yes"
20815 echo "configure: failed program was:" >&5
20816 cat conftest.$ac_ext >&5
20818 eval "ac_cv_lib_$ac_lib_var=no"
20821 LIBS="$ac_save_LIBS"
20824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20825 echo "$ac_t""yes" 1>&6
20828 echo "$ac_t""no" 1>&6
20832 if test $have_iodbc = yes ; then
20833 ol_link_sql="-liodbc"
20835 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20836 echo "configure:20837: checking for SQLDriverConnect in -lodbc" >&5
20837 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20839 echo $ac_n "(cached) $ac_c" 1>&6
20841 ac_save_LIBS="$LIBS"
20842 LIBS="-lodbc $LIBS"
20843 cat > conftest.$ac_ext <<EOF
20844 #line 20845 "configure"
20845 #include "confdefs.h"
20846 /* Override any gcc2 internal prototype to avoid an error. */
20847 /* We use char because int might match the return type of a gcc2
20848 builtin and then its argument prototype would still apply. */
20849 char SQLDriverConnect();
20855 if { (eval echo configure:20856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20857 eval "ac_cv_lib_$ac_lib_var=yes"
20859 echo "configure: failed program was:" >&5
20860 cat conftest.$ac_ext >&5
20862 eval "ac_cv_lib_$ac_lib_var=no"
20865 LIBS="$ac_save_LIBS"
20868 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20869 echo "$ac_t""yes" 1>&6
20872 echo "$ac_t""no" 1>&6
20876 if test $have_odbc = yes ; then
20877 ol_link_sql="-lodbc"
20881 if test $ol_link_sql != no ; then
20882 SLAPD_SQL_LIBS="$ol_link_sql"
20884 elif test $ol_enable_sql != auto ; then
20885 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20889 if test $ol_enable_tcl != no ; then
20890 for ac_hdr in tcl.h
20892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20894 echo "configure:20895: checking for $ac_hdr" >&5
20895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20896 echo $ac_n "(cached) $ac_c" 1>&6
20898 cat > conftest.$ac_ext <<EOF
20899 #line 20900 "configure"
20900 #include "confdefs.h"
20903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20904 { (eval echo configure:20905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20906 if test -z "$ac_err"; then
20908 eval "ac_cv_header_$ac_safe=yes"
20911 echo "configure: failed program was:" >&5
20912 cat conftest.$ac_ext >&5
20914 eval "ac_cv_header_$ac_safe=no"
20918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20919 echo "$ac_t""yes" 1>&6
20920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20921 cat >> confdefs.h <<EOF
20922 #define $ac_tr_hdr 1
20926 echo "$ac_t""no" 1>&6
20931 if test $ac_cv_header_tcl_h != yes ; then
20934 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
20935 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
20936 echo "configure:20937: checking for main in -l$lib" >&5
20937 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
20938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20939 echo $ac_n "(cached) $ac_c" 1>&6
20941 ac_save_LIBS="$LIBS"
20942 LIBS="-l$lib $LIBS"
20943 cat > conftest.$ac_ext <<EOF
20944 #line 20945 "configure"
20945 #include "confdefs.h"
20951 if { (eval echo configure:20952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20953 eval "ac_cv_lib_$ac_lib_var=yes"
20955 echo "configure: failed program was:" >&5
20956 cat conftest.$ac_ext >&5
20958 eval "ac_cv_lib_$ac_lib_var=no"
20961 LIBS="$ac_save_LIBS"
20964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20965 echo "$ac_t""yes" 1>&6
20967 if test x"$ol_with_tcl_module" = "xstatic" ; then
20968 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
20970 MOD_TCL_LIB="-l${lib}"
20973 echo "$ac_t""no" 1>&6
20980 if test $have_tcl != yes ; then
20981 echo "configure: warning: could not find -ltcl" 1>&2
20982 if test $ol_enable_tcl = yes ; then
20983 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
20991 for ac_hdr in termcap.h ncurses.h
20993 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20994 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20995 echo "configure:20996: checking for $ac_hdr" >&5
20996 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20997 echo $ac_n "(cached) $ac_c" 1>&6
20999 cat > conftest.$ac_ext <<EOF
21000 #line 21001 "configure"
21001 #include "confdefs.h"
21004 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21005 { (eval echo configure:21006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21006 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21007 if test -z "$ac_err"; then
21009 eval "ac_cv_header_$ac_safe=yes"
21012 echo "configure: failed program was:" >&5
21013 cat conftest.$ac_ext >&5
21015 eval "ac_cv_header_$ac_safe=no"
21019 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21020 echo "$ac_t""yes" 1>&6
21021 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21022 cat >> confdefs.h <<EOF
21023 #define $ac_tr_hdr 1
21027 echo "$ac_t""no" 1>&6
21032 if test $ol_link_termcap = no ; then
21033 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
21034 echo "configure:21035: checking for tputs in -ltermcap" >&5
21035 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
21036 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21037 echo $ac_n "(cached) $ac_c" 1>&6
21039 ac_save_LIBS="$LIBS"
21040 LIBS="-ltermcap $LIBS"
21041 cat > conftest.$ac_ext <<EOF
21042 #line 21043 "configure"
21043 #include "confdefs.h"
21044 /* Override any gcc2 internal prototype to avoid an error. */
21045 /* We use char because int might match the return type of a gcc2
21046 builtin and then its argument prototype would still apply. */
21053 if { (eval echo configure:21054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21055 eval "ac_cv_lib_$ac_lib_var=yes"
21057 echo "configure: failed program was:" >&5
21058 cat conftest.$ac_ext >&5
21060 eval "ac_cv_lib_$ac_lib_var=no"
21063 LIBS="$ac_save_LIBS"
21066 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21067 echo "$ac_t""yes" 1>&6
21070 echo "$ac_t""no" 1>&6
21074 if test $have_termcap = yes ; then
21075 cat >> confdefs.h <<\EOF
21076 #define HAVE_TERMCAP 1
21079 ol_link_termcap=yes
21080 TERMCAP_LIBS=-ltermcap
21084 if test $ol_link_termcap = no ; then
21085 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
21086 echo "configure:21087: checking for initscr in -lncurses" >&5
21087 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
21088 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21089 echo $ac_n "(cached) $ac_c" 1>&6
21091 ac_save_LIBS="$LIBS"
21092 LIBS="-lncurses $LIBS"
21093 cat > conftest.$ac_ext <<EOF
21094 #line 21095 "configure"
21095 #include "confdefs.h"
21096 /* Override any gcc2 internal prototype to avoid an error. */
21097 /* We use char because int might match the return type of a gcc2
21098 builtin and then its argument prototype would still apply. */
21105 if { (eval echo configure:21106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21107 eval "ac_cv_lib_$ac_lib_var=yes"
21109 echo "configure: failed program was:" >&5
21110 cat conftest.$ac_ext >&5
21112 eval "ac_cv_lib_$ac_lib_var=no"
21115 LIBS="$ac_save_LIBS"
21118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21119 echo "$ac_t""yes" 1>&6
21122 echo "$ac_t""no" 1>&6
21126 if test $have_ncurses = yes ; then
21127 cat >> confdefs.h <<\EOF
21128 #define HAVE_NCURSES 1
21131 ol_link_termcap=yes
21132 TERMCAP_LIBS=-lncurses
21136 if test $ol_link_termcap = no ; then
21137 cat >> confdefs.h <<\EOF
21138 #define NO_TERMCAP 1
21146 if test $ol_with_cyrus_sasl != no ; then
21147 for ac_hdr in sasl/sasl.h sasl.h
21149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21151 echo "configure:21152: checking for $ac_hdr" >&5
21152 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21153 echo $ac_n "(cached) $ac_c" 1>&6
21155 cat > conftest.$ac_ext <<EOF
21156 #line 21157 "configure"
21157 #include "confdefs.h"
21160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21161 { (eval echo configure:21162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21163 if test -z "$ac_err"; then
21165 eval "ac_cv_header_$ac_safe=yes"
21168 echo "configure: failed program was:" >&5
21169 cat conftest.$ac_ext >&5
21171 eval "ac_cv_header_$ac_safe=no"
21175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21176 echo "$ac_t""yes" 1>&6
21177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21178 cat >> confdefs.h <<EOF
21179 #define $ac_tr_hdr 1
21183 echo "$ac_t""no" 1>&6
21188 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21189 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21190 echo "configure:21191: checking for sasl_client_init in -lsasl2" >&5
21191 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21192 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21193 echo $ac_n "(cached) $ac_c" 1>&6
21195 ac_save_LIBS="$LIBS"
21196 LIBS="-lsasl2 $LIBS"
21197 cat > conftest.$ac_ext <<EOF
21198 #line 21199 "configure"
21199 #include "confdefs.h"
21200 /* Override any gcc2 internal prototype to avoid an error. */
21201 /* We use char because int might match the return type of a gcc2
21202 builtin and then its argument prototype would still apply. */
21203 char sasl_client_init();
21209 if { (eval echo configure:21210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21211 eval "ac_cv_lib_$ac_lib_var=yes"
21213 echo "configure: failed program was:" >&5
21214 cat conftest.$ac_ext >&5
21216 eval "ac_cv_lib_$ac_lib_var=no"
21219 LIBS="$ac_save_LIBS"
21222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21223 echo "$ac_t""yes" 1>&6
21224 ol_link_sasl="-lsasl2"
21226 echo "$ac_t""no" 1>&6
21227 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21228 echo "configure:21229: checking for sasl_client_init in -lsasl" >&5
21229 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21230 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21231 echo $ac_n "(cached) $ac_c" 1>&6
21233 ac_save_LIBS="$LIBS"
21234 LIBS="-lsasl $LIBS"
21235 cat > conftest.$ac_ext <<EOF
21236 #line 21237 "configure"
21237 #include "confdefs.h"
21238 /* Override any gcc2 internal prototype to avoid an error. */
21239 /* We use char because int might match the return type of a gcc2
21240 builtin and then its argument prototype would still apply. */
21241 char sasl_client_init();
21247 if { (eval echo configure:21248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21249 eval "ac_cv_lib_$ac_lib_var=yes"
21251 echo "configure: failed program was:" >&5
21252 cat conftest.$ac_ext >&5
21254 eval "ac_cv_lib_$ac_lib_var=no"
21257 LIBS="$ac_save_LIBS"
21260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21261 echo "$ac_t""yes" 1>&6
21262 ol_link_sasl="-lsasl"
21264 echo "$ac_t""no" 1>&6
21271 if test $ol_link_sasl = no ; then
21272 if test $ol_with_cyrus_sasl != auto ; then
21273 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21275 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21276 echo "configure: warning: SASL authentication not supported!" 1>&2
21277 if test $ol_link_tls = no ; then
21278 echo "configure: warning: Strong authentication not supported!" 1>&2
21282 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21283 echo "configure:21284: checking Cyrus SASL library version" >&5
21284 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21285 echo $ac_n "(cached) $ac_c" 1>&6
21288 cat > conftest.$ac_ext <<EOF
21289 #line 21290 "configure"
21290 #include "confdefs.h"
21292 #ifdef HAVE_SASL_SASL_H
21293 #include <sasl/sasl.h>
21298 /* require 2.1.3 or later */
21299 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21300 char *__sasl_compat = "2.2+ or better okay (we guess)";
21301 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21302 && SASL_VERSION_STEP >=3
21303 char *__sasl_compat = "2.1.3+ or better okay";
21307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21308 egrep "__sasl_compat" >/dev/null 2>&1; then
21310 ol_cv_sasl_compat=yes
21313 ol_cv_sasl_compat=no
21319 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21321 if test $ol_cv_sasl_compat = no ; then
21323 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
21326 cat >> confdefs.h <<\EOF
21327 #define HAVE_CYRUS_SASL 1
21330 SASL_LIBS="$ol_link_sasl"
21331 if test $ol_enable_spasswd != no ; then
21332 ol_link_spasswd=yes
21335 ac_save_LIBS="$LIBS"
21336 LIBS="$LIBS $ol_link_sasl"
21337 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21338 echo "configure:21339: checking for sasl_version" >&5
21339 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21340 echo $ac_n "(cached) $ac_c" 1>&6
21342 cat > conftest.$ac_ext <<EOF
21343 #line 21344 "configure"
21344 #include "confdefs.h"
21345 /* System header to define __stub macros and hopefully few prototypes,
21346 which can conflict with char sasl_version(); below. */
21347 #include <assert.h>
21348 /* Override any gcc2 internal prototype to avoid an error. */
21349 /* We use char because int might match the return type of a gcc2
21350 builtin and then its argument prototype would still apply. */
21351 char sasl_version();
21356 /* The GNU C library defines this for functions which it implements
21357 to always fail with ENOSYS. Some functions are actually named
21358 something starting with __ and the normal name is an alias. */
21359 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21367 if { (eval echo configure:21368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21369 eval "ac_cv_func_sasl_version=yes"
21371 echo "configure: failed program was:" >&5
21372 cat conftest.$ac_ext >&5
21374 eval "ac_cv_func_sasl_version=no"
21379 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21380 echo "$ac_t""yes" 1>&6
21381 cat >> confdefs.h <<\EOF
21382 #define HAVE_SASL_VERSION 1
21386 echo "$ac_t""no" 1>&6
21389 LIBS="$ac_save_LIBS"
21393 echo "configure: warning: SASL authentication not supported!" 1>&2
21394 if test $ol_link_tls = no ; then
21395 echo "configure: warning: Strong authentication not supported!" 1>&2
21399 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21401 if test -r /dev/urandom ; then
21402 dev="/dev/urandom";
21403 elif test -r /idev/urandom ; then
21404 dev="/idev/urandom";
21405 elif test -r /dev/srandom ; then
21406 dev="/dev/srandom";
21407 elif test -r /dev/random ; then
21409 elif test -r /idev/random ; then
21410 dev="/idev/random";
21413 if test $dev != no ; then
21414 cat >> confdefs.h <<EOF
21415 #define URANDOM_DEVICE "$dev"
21422 if test $ol_with_fetch != no ; then
21424 LIBS="-lfetch -lcom_err $LIBS"
21425 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21426 echo "configure:21427: checking fetch(3) library" >&5
21427 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21428 echo $ac_n "(cached) $ac_c" 1>&6
21431 cat > conftest.$ac_ext <<EOF
21432 #line 21433 "configure"
21433 #include "confdefs.h"
21435 #include <sys/param.h>
21439 struct url *u = fetchParseURL("file:///");
21442 if { (eval echo configure:21443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21444 ol_cv_lib_fetch=yes
21446 echo "configure: failed program was:" >&5
21447 cat conftest.$ac_ext >&5
21454 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21456 if test $ol_cv_lib_fetch != no ; then
21457 ol_link_fetch="-lfetch -lcom_err"
21458 cat >> confdefs.h <<\EOF
21459 #define HAVE_FETCH 1
21465 if test $ol_cv_lib_fetch != no ; then
21466 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21467 ol_link_fetch=freebsd
21469 elif test $ol_with_fetch != auto ; then
21470 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21474 if test $ol_enable_crypt != no ; then
21476 LIBS="$TLS_LIBS $LIBS"
21478 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21479 echo "configure:21480: checking for crypt" >&5
21480 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21481 echo $ac_n "(cached) $ac_c" 1>&6
21483 cat > conftest.$ac_ext <<EOF
21484 #line 21485 "configure"
21485 #include "confdefs.h"
21486 /* System header to define __stub macros and hopefully few prototypes,
21487 which can conflict with char crypt(); below. */
21488 #include <assert.h>
21489 /* Override any gcc2 internal prototype to avoid an error. */
21490 /* We use char because int might match the return type of a gcc2
21491 builtin and then its argument prototype would still apply. */
21497 /* The GNU C library defines this for functions which it implements
21498 to always fail with ENOSYS. Some functions are actually named
21499 something starting with __ and the normal name is an alias. */
21500 #if defined (__stub_crypt) || defined (__stub___crypt)
21508 if { (eval echo configure:21509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21510 eval "ac_cv_func_crypt=yes"
21512 echo "configure: failed program was:" >&5
21513 cat conftest.$ac_ext >&5
21515 eval "ac_cv_func_crypt=no"
21520 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21521 echo "$ac_t""yes" 1>&6
21524 echo "$ac_t""no" 1>&6
21527 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21528 echo "configure:21529: checking for crypt in -lcrypt" >&5
21529 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21531 echo $ac_n "(cached) $ac_c" 1>&6
21533 ac_save_LIBS="$LIBS"
21534 LIBS="-lcrypt $LIBS"
21535 cat > conftest.$ac_ext <<EOF
21536 #line 21537 "configure"
21537 #include "confdefs.h"
21538 /* Override any gcc2 internal prototype to avoid an error. */
21539 /* We use char because int might match the return type of a gcc2
21540 builtin and then its argument prototype would still apply. */
21547 if { (eval echo configure:21548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21549 eval "ac_cv_lib_$ac_lib_var=yes"
21551 echo "configure: failed program was:" >&5
21552 cat conftest.$ac_ext >&5
21554 eval "ac_cv_lib_$ac_lib_var=no"
21557 LIBS="$ac_save_LIBS"
21560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21561 echo "$ac_t""yes" 1>&6
21562 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21565 echo "$ac_t""no" 1>&6
21574 if test $have_crypt = yes ; then
21575 cat >> confdefs.h <<\EOF
21576 #define HAVE_CRYPT 1
21580 echo "configure: warning: could not find crypt" 1>&2
21581 if test $ol_enable_crypt = yes ; then
21582 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21585 echo "configure: warning: disabling crypt support" 1>&2
21590 if test $ol_enable_proctitle != no ; then
21591 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21592 echo "configure:21593: checking for setproctitle" >&5
21593 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21594 echo $ac_n "(cached) $ac_c" 1>&6
21596 cat > conftest.$ac_ext <<EOF
21597 #line 21598 "configure"
21598 #include "confdefs.h"
21599 /* System header to define __stub macros and hopefully few prototypes,
21600 which can conflict with char setproctitle(); below. */
21601 #include <assert.h>
21602 /* Override any gcc2 internal prototype to avoid an error. */
21603 /* We use char because int might match the return type of a gcc2
21604 builtin and then its argument prototype would still apply. */
21605 char setproctitle();
21610 /* The GNU C library defines this for functions which it implements
21611 to always fail with ENOSYS. Some functions are actually named
21612 something starting with __ and the normal name is an alias. */
21613 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21621 if { (eval echo configure:21622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21623 eval "ac_cv_func_setproctitle=yes"
21625 echo "configure: failed program was:" >&5
21626 cat conftest.$ac_ext >&5
21628 eval "ac_cv_func_setproctitle=no"
21633 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21634 echo "$ac_t""yes" 1>&6
21635 have_setproctitle=yes
21637 echo "$ac_t""no" 1>&6
21639 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21640 echo "configure:21641: checking for setproctitle in -lutil" >&5
21641 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21642 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21643 echo $ac_n "(cached) $ac_c" 1>&6
21645 ac_save_LIBS="$LIBS"
21646 LIBS="-lutil $LIBS"
21647 cat > conftest.$ac_ext <<EOF
21648 #line 21649 "configure"
21649 #include "confdefs.h"
21650 /* Override any gcc2 internal prototype to avoid an error. */
21651 /* We use char because int might match the return type of a gcc2
21652 builtin and then its argument prototype would still apply. */
21653 char setproctitle();
21659 if { (eval echo configure:21660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21661 eval "ac_cv_lib_$ac_lib_var=yes"
21663 echo "configure: failed program was:" >&5
21664 cat conftest.$ac_ext >&5
21666 eval "ac_cv_lib_$ac_lib_var=no"
21669 LIBS="$ac_save_LIBS"
21672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21673 echo "$ac_t""yes" 1>&6
21674 have_setproctitle=yes
21675 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21677 echo "$ac_t""no" 1>&6
21678 have_setproctitle=no
21679 LIBOBJS="$LIBOBJS setproctitle.o"
21680 LIBSRCS="$LIBSRCS setproctitle.c"
21686 if test $have_setproctitle = yes ; then
21687 cat >> confdefs.h <<\EOF
21688 #define HAVE_SETPROCTITLE 1
21694 if test $ol_enable_slp != no ; then
21695 for ac_hdr in slp.h
21697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21699 echo "configure:21700: checking for $ac_hdr" >&5
21700 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21701 echo $ac_n "(cached) $ac_c" 1>&6
21703 cat > conftest.$ac_ext <<EOF
21704 #line 21705 "configure"
21705 #include "confdefs.h"
21708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21709 { (eval echo configure:21710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21711 if test -z "$ac_err"; then
21713 eval "ac_cv_header_$ac_safe=yes"
21716 echo "configure: failed program was:" >&5
21717 cat conftest.$ac_ext >&5
21719 eval "ac_cv_header_$ac_safe=no"
21723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21724 echo "$ac_t""yes" 1>&6
21725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21726 cat >> confdefs.h <<EOF
21727 #define $ac_tr_hdr 1
21731 echo "$ac_t""no" 1>&6
21736 if test $ac_cv_header_slp_h = yes ; then
21737 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21738 echo "configure:21739: checking for SLPOpen in -lslp" >&5
21739 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21740 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21741 echo $ac_n "(cached) $ac_c" 1>&6
21743 ac_save_LIBS="$LIBS"
21745 cat > conftest.$ac_ext <<EOF
21746 #line 21747 "configure"
21747 #include "confdefs.h"
21748 /* Override any gcc2 internal prototype to avoid an error. */
21749 /* We use char because int might match the return type of a gcc2
21750 builtin and then its argument prototype would still apply. */
21757 if { (eval echo configure:21758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21759 eval "ac_cv_lib_$ac_lib_var=yes"
21761 echo "configure: failed program was:" >&5
21762 cat conftest.$ac_ext >&5
21764 eval "ac_cv_lib_$ac_lib_var=no"
21767 LIBS="$ac_save_LIBS"
21770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21771 echo "$ac_t""yes" 1>&6
21774 echo "$ac_t""no" 1>&6
21778 if test $have_slp = yes ; then
21779 cat >> confdefs.h <<\EOF
21783 SLAPD_SLP_LIBS=-lslp
21786 elif test $ol_enable_slp = yes ; then
21787 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21792 echo $ac_n "checking long long""... $ac_c" 1>&6
21793 echo "configure:21794: checking long long" >&5
21794 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21795 echo $ac_n "(cached) $ac_c" 1>&6
21798 cat > conftest.$ac_ext <<EOF
21799 #line 21800 "configure"
21800 #include "confdefs.h"
21806 if { (eval echo configure:21807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21808 ol_cv_type_long_long=yes
21810 echo "configure: failed program was:" >&5
21811 cat conftest.$ac_ext >&5
21813 ol_cv_type_long_long=no
21818 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21819 if test $ol_cv_type_long_long = yes; then
21820 cat >> confdefs.h <<\EOF
21821 #define HAVE_LONG_LONG 1
21826 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21827 echo "configure:21828: checking for ANSI C header files" >&5
21828 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21829 echo $ac_n "(cached) $ac_c" 1>&6
21831 cat > conftest.$ac_ext <<EOF
21832 #line 21833 "configure"
21833 #include "confdefs.h"
21834 #include <stdlib.h>
21835 #include <stdarg.h>
21836 #include <string.h>
21839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21840 { (eval echo configure:21841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21842 if test -z "$ac_err"; then
21844 ac_cv_header_stdc=yes
21847 echo "configure: failed program was:" >&5
21848 cat conftest.$ac_ext >&5
21850 ac_cv_header_stdc=no
21854 if test $ac_cv_header_stdc = yes; then
21855 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21856 cat > conftest.$ac_ext <<EOF
21857 #line 21858 "configure"
21858 #include "confdefs.h"
21859 #include <string.h>
21861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21862 egrep "memchr" >/dev/null 2>&1; then
21866 ac_cv_header_stdc=no
21872 if test $ac_cv_header_stdc = yes; then
21873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21874 cat > conftest.$ac_ext <<EOF
21875 #line 21876 "configure"
21876 #include "confdefs.h"
21877 #include <stdlib.h>
21879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21880 egrep "free" >/dev/null 2>&1; then
21884 ac_cv_header_stdc=no
21890 if test $ac_cv_header_stdc = yes; then
21891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21892 if test "$cross_compiling" = yes; then
21895 cat > conftest.$ac_ext <<EOF
21896 #line 21897 "configure"
21897 #include "confdefs.h"
21899 #if ((' ' & 0x0FF) == 0x020)
21900 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21901 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21903 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21904 || ('j' <= (c) && (c) <= 'r') \
21905 || ('s' <= (c) && (c) <= 'z'))
21906 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21908 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21909 int main () { int i; for (i = 0; i < 256; i++)
21910 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21914 if { (eval echo configure:21915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21918 echo "configure: failed program was:" >&5
21919 cat conftest.$ac_ext >&5
21921 ac_cv_header_stdc=no
21929 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21930 if test $ac_cv_header_stdc = yes; then
21931 cat >> confdefs.h <<\EOF
21932 #define STDC_HEADERS 1
21937 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21938 echo "configure:21939: checking for mode_t" >&5
21939 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21940 echo $ac_n "(cached) $ac_c" 1>&6
21942 cat > conftest.$ac_ext <<EOF
21943 #line 21944 "configure"
21944 #include "confdefs.h"
21945 #include <sys/types.h>
21947 #include <stdlib.h>
21948 #include <stddef.h>
21952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21953 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21955 eval "ac_cv_type_mode_t=yes"
21958 eval "ac_cv_type_mode_t=no"
21963 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21964 echo "$ac_t""yes" 1>&6
21966 echo "$ac_t""no" 1>&6
21967 cat >> confdefs.h <<EOF
21973 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21974 echo "configure:21975: checking for off_t" >&5
21975 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21976 echo $ac_n "(cached) $ac_c" 1>&6
21978 cat > conftest.$ac_ext <<EOF
21979 #line 21980 "configure"
21980 #include "confdefs.h"
21981 #include <sys/types.h>
21983 #include <stdlib.h>
21984 #include <stddef.h>
21988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21989 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21991 eval "ac_cv_type_off_t=yes"
21994 eval "ac_cv_type_off_t=no"
21999 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22000 echo "$ac_t""yes" 1>&6
22002 echo "$ac_t""no" 1>&6
22003 cat >> confdefs.h <<EOF
22009 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22010 echo "configure:22011: checking for pid_t" >&5
22011 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22012 echo $ac_n "(cached) $ac_c" 1>&6
22014 cat > conftest.$ac_ext <<EOF
22015 #line 22016 "configure"
22016 #include "confdefs.h"
22017 #include <sys/types.h>
22019 #include <stdlib.h>
22020 #include <stddef.h>
22024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22025 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22027 eval "ac_cv_type_pid_t=yes"
22030 eval "ac_cv_type_pid_t=no"
22035 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22036 echo "$ac_t""yes" 1>&6
22038 echo "$ac_t""no" 1>&6
22039 cat >> confdefs.h <<EOF
22045 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
22046 echo "configure:22047: checking for ptrdiff_t" >&5
22047 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
22048 echo $ac_n "(cached) $ac_c" 1>&6
22050 cat > conftest.$ac_ext <<EOF
22051 #line 22052 "configure"
22052 #include "confdefs.h"
22053 #include <stddef.h>
22058 if { (eval echo configure:22059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22060 am_cv_type_ptrdiff_t=yes
22062 echo "configure: failed program was:" >&5
22063 cat conftest.$ac_ext >&5
22065 am_cv_type_ptrdiff_t=no
22070 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
22071 if test $am_cv_type_ptrdiff_t = yes; then
22072 cat >> confdefs.h <<\EOF
22073 #define HAVE_PTRDIFF_T 1
22078 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
22079 echo "configure:22080: checking return type of signal handlers" >&5
22080 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
22081 echo $ac_n "(cached) $ac_c" 1>&6
22083 cat > conftest.$ac_ext <<EOF
22084 #line 22085 "configure"
22085 #include "confdefs.h"
22086 #include <sys/types.h>
22087 #include <signal.h>
22092 extern "C" void (*signal (int, void (*)(int)))(int);
22094 void (*signal ()) ();
22101 if { (eval echo configure:22102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22103 ac_cv_type_signal=void
22105 echo "configure: failed program was:" >&5
22106 cat conftest.$ac_ext >&5
22108 ac_cv_type_signal=int
22113 echo "$ac_t""$ac_cv_type_signal" 1>&6
22114 cat >> confdefs.h <<EOF
22115 #define RETSIGTYPE $ac_cv_type_signal
22119 echo $ac_n "checking for size_t""... $ac_c" 1>&6
22120 echo "configure:22121: checking for size_t" >&5
22121 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
22122 echo $ac_n "(cached) $ac_c" 1>&6
22124 cat > conftest.$ac_ext <<EOF
22125 #line 22126 "configure"
22126 #include "confdefs.h"
22127 #include <sys/types.h>
22129 #include <stdlib.h>
22130 #include <stddef.h>
22134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22135 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22137 eval "ac_cv_type_size_t=yes"
22140 eval "ac_cv_type_size_t=no"
22145 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
22146 echo "$ac_t""yes" 1>&6
22148 echo "$ac_t""no" 1>&6
22149 cat >> confdefs.h <<EOF
22150 #define size_t unsigned
22156 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
22157 echo "configure:22158: checking for ssize_t" >&5
22158 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
22159 echo $ac_n "(cached) $ac_c" 1>&6
22161 cat > conftest.$ac_ext <<EOF
22162 #line 22163 "configure"
22163 #include "confdefs.h"
22164 #include <sys/types.h>
22166 #include <stdlib.h>
22167 #include <stddef.h>
22171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22172 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22174 eval "ac_cv_type_ssize_t=yes"
22177 eval "ac_cv_type_ssize_t=no"
22182 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
22183 echo "$ac_t""yes" 1>&6
22185 echo "$ac_t""no" 1>&6
22186 cat >> confdefs.h <<EOF
22187 #define ssize_t signed int
22192 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
22193 echo "configure:22194: checking for caddr_t" >&5
22194 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
22195 echo $ac_n "(cached) $ac_c" 1>&6
22197 cat > conftest.$ac_ext <<EOF
22198 #line 22199 "configure"
22199 #include "confdefs.h"
22200 #include <sys/types.h>
22202 #include <stdlib.h>
22203 #include <stddef.h>
22207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22208 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22210 eval "ac_cv_type_caddr_t=yes"
22213 eval "ac_cv_type_caddr_t=no"
22218 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
22219 echo "$ac_t""yes" 1>&6
22221 echo "$ac_t""no" 1>&6
22222 cat >> confdefs.h <<EOF
22223 #define caddr_t char *
22229 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
22230 echo "configure:22231: checking for socklen_t" >&5
22231 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
22232 echo $ac_n "(cached) $ac_c" 1>&6
22234 cat > conftest.$ac_ext <<EOF
22235 #line 22236 "configure"
22236 #include "confdefs.h"
22238 #ifdef HAVE_SYS_TYPES_H
22239 #include <sys/types.h>
22241 #ifdef HAVE_SYS_SOCKET_H
22242 #include <sys/socket.h>
22249 if { (eval echo configure:22250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22251 ol_cv_type_socklen_t=yes
22253 echo "configure: failed program was:" >&5
22254 cat conftest.$ac_ext >&5
22256 ol_cv_type_socklen_t=no
22261 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
22262 if test $ol_cv_type_socklen_t = no; then
22263 cat >> confdefs.h <<\EOF
22264 #define socklen_t int
22269 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22270 echo "configure:22271: checking for member st_blksize in aggregate type struct stat" >&5
22271 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22272 echo $ac_n "(cached) $ac_c" 1>&6
22274 cat > conftest.$ac_ext <<EOF
22275 #line 22276 "configure"
22276 #include "confdefs.h"
22277 #include <sys/types.h>
22278 #include <sys/stat.h>
22280 struct stat foo; foo.st_blksize;
22283 if { (eval echo configure:22284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22285 ac_cv_c_struct_member_st_blksize=yes
22287 echo "configure: failed program was:" >&5
22288 cat conftest.$ac_ext >&5
22290 ac_cv_c_struct_member_st_blksize=no
22295 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22296 st_blksize="$ac_cv_c_struct_member_st_blksize"
22297 if test $ac_cv_c_struct_member_st_blksize = yes; then
22298 cat >> confdefs.h <<\EOF
22299 #define HAVE_ST_BLKSIZE 1
22304 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22305 echo "configure:22306: checking whether time.h and sys/time.h may both be included" >&5
22306 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22307 echo $ac_n "(cached) $ac_c" 1>&6
22309 cat > conftest.$ac_ext <<EOF
22310 #line 22311 "configure"
22311 #include "confdefs.h"
22312 #include <sys/types.h>
22313 #include <sys/time.h>
22319 if { (eval echo configure:22320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22321 ac_cv_header_time=yes
22323 echo "configure: failed program was:" >&5
22324 cat conftest.$ac_ext >&5
22326 ac_cv_header_time=no
22331 echo "$ac_t""$ac_cv_header_time" 1>&6
22332 if test $ac_cv_header_time = yes; then
22333 cat >> confdefs.h <<\EOF
22334 #define TIME_WITH_SYS_TIME 1
22339 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22340 echo "configure:22341: checking whether struct tm is in sys/time.h or time.h" >&5
22341 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22342 echo $ac_n "(cached) $ac_c" 1>&6
22344 cat > conftest.$ac_ext <<EOF
22345 #line 22346 "configure"
22346 #include "confdefs.h"
22347 #include <sys/types.h>
22350 struct tm *tp; tp->tm_sec;
22353 if { (eval echo configure:22354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22355 ac_cv_struct_tm=time.h
22357 echo "configure: failed program was:" >&5
22358 cat conftest.$ac_ext >&5
22360 ac_cv_struct_tm=sys/time.h
22365 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22366 if test $ac_cv_struct_tm = sys/time.h; then
22367 cat >> confdefs.h <<\EOF
22368 #define TM_IN_SYS_TIME 1
22373 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22374 echo "configure:22375: checking for uid_t in sys/types.h" >&5
22375 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22376 echo $ac_n "(cached) $ac_c" 1>&6
22378 cat > conftest.$ac_ext <<EOF
22379 #line 22380 "configure"
22380 #include "confdefs.h"
22381 #include <sys/types.h>
22383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22384 egrep "uid_t" >/dev/null 2>&1; then
22386 ac_cv_type_uid_t=yes
22389 ac_cv_type_uid_t=no
22395 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22396 if test $ac_cv_type_uid_t = no; then
22397 cat >> confdefs.h <<\EOF
22401 cat >> confdefs.h <<\EOF
22407 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22408 echo "configure:22409: checking for sig_atomic_t" >&5
22409 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22410 echo $ac_n "(cached) $ac_c" 1>&6
22412 cat > conftest.$ac_ext <<EOF
22413 #line 22414 "configure"
22414 #include "confdefs.h"
22415 #include <signal.h>
22417 sig_atomic_t atomic;
22420 if { (eval echo configure:22421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22422 ol_cv_type_sig_atomic_t=yes
22424 echo "configure: failed program was:" >&5
22425 cat conftest.$ac_ext >&5
22427 ol_cv_type_sig_atomic_t=no
22432 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22433 if test $ol_cv_type_sig_atomic_t = no; then
22434 cat >> confdefs.h <<\EOF
22435 #define sig_atomic_t int
22442 # test for pw_gecos in struct passwd
22443 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22444 echo "configure:22445: checking struct passwd for pw_gecos" >&5
22445 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22446 echo $ac_n "(cached) $ac_c" 1>&6
22449 cat > conftest.$ac_ext <<EOF
22450 #line 22451 "configure"
22451 #include "confdefs.h"
22456 pwd.pw_gecos = pwd.pw_name;
22460 if { (eval echo configure:22461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22462 ol_cv_struct_passwd_pw_gecos=yes
22464 echo "configure: failed program was:" >&5
22465 cat conftest.$ac_ext >&5
22467 ol_cv_struct_passwd_pw_gecos=no
22472 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22473 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22474 cat >> confdefs.h <<\EOF
22475 #define HAVE_PW_GECOS 1
22480 # test for pw_passwd in struct passwd
22481 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22482 echo "configure:22483: checking struct passwd for pw_passwd" >&5
22483 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22484 echo $ac_n "(cached) $ac_c" 1>&6
22487 cat > conftest.$ac_ext <<EOF
22488 #line 22489 "configure"
22489 #include "confdefs.h"
22494 pwd.pw_passwd = pwd.pw_name;
22498 if { (eval echo configure:22499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22500 ol_cv_struct_passwd_pw_passwd=yes
22502 echo "configure: failed program was:" >&5
22503 cat conftest.$ac_ext >&5
22505 ol_cv_struct_passwd_pw_passwd=no
22510 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22511 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22512 cat >> confdefs.h <<\EOF
22513 #define HAVE_PW_PASSWD 1
22519 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22520 echo "configure:22521: checking if toupper() requires islower()" >&5
22521 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22522 echo $ac_n "(cached) $ac_c" 1>&6
22525 if test "$cross_compiling" = yes; then
22526 ol_cv_c_upper_lower=safe
22528 cat > conftest.$ac_ext <<EOF
22529 #line 22530 "configure"
22530 #include "confdefs.h"
22535 if ('C' == toupper('C'))
22541 if { (eval echo configure:22542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22543 ol_cv_c_upper_lower=no
22545 echo "configure: failed program was:" >&5
22546 cat conftest.$ac_ext >&5
22548 ol_cv_c_upper_lower=yes
22555 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22556 if test $ol_cv_c_upper_lower != no ; then
22557 cat >> confdefs.h <<\EOF
22558 #define C_UPPER_LOWER 1
22563 echo $ac_n "checking for working const""... $ac_c" 1>&6
22564 echo "configure:22565: checking for working const" >&5
22565 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22566 echo $ac_n "(cached) $ac_c" 1>&6
22568 cat > conftest.$ac_ext <<EOF
22569 #line 22570 "configure"
22570 #include "confdefs.h"
22574 /* Ultrix mips cc rejects this. */
22575 typedef int charset[2]; const charset x;
22576 /* SunOS 4.1.1 cc rejects this. */
22577 char const *const *ccp;
22579 /* NEC SVR4.0.2 mips cc rejects this. */
22580 struct point {int x, y;};
22581 static struct point const zero = {0,0};
22582 /* AIX XL C 1.02.0.0 rejects this.
22583 It does not let you subtract one const X* pointer from another in an arm
22584 of an if-expression whose if-part is not a constant expression */
22585 const char *g = "string";
22586 ccp = &g + (g ? g-g : 0);
22587 /* HPUX 7.0 cc rejects these. */
22590 ccp = (char const *const *) p;
22591 { /* SCO 3.2v4 cc rejects this. */
22593 char const *s = 0 ? (char *) 0 : (char const *) 0;
22597 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22598 int x[] = {25, 17};
22599 const int *foo = &x[0];
22602 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22603 typedef const int *iptr;
22607 { /* AIX XL C 1.02.0.0 rejects this saying
22608 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22609 struct s { int j; const int *ap[3]; };
22610 struct s *b; b->j = 5;
22612 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22613 const int foo = 10;
22618 if { (eval echo configure:22619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22622 echo "configure: failed program was:" >&5
22623 cat conftest.$ac_ext >&5
22630 echo "$ac_t""$ac_cv_c_const" 1>&6
22631 if test $ac_cv_c_const = no; then
22632 cat >> confdefs.h <<\EOF
22638 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22639 echo "configure:22640: checking if compiler understands volatile" >&5
22640 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22641 echo $ac_n "(cached) $ac_c" 1>&6
22643 cat > conftest.$ac_ext <<EOF
22644 #line 22645 "configure"
22645 #include "confdefs.h"
22648 volatile int a; int * volatile b = x ? &y : &z;
22649 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22653 if { (eval echo configure:22654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22655 ol_cv_c_volatile=yes
22657 echo "configure: failed program was:" >&5
22658 cat conftest.$ac_ext >&5
22660 ol_cv_c_volatile=no
22665 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22666 if test $ol_cv_c_volatile = yes; then
22669 cat >> confdefs.h <<\EOF
22676 if test $cross_compiling = yes ; then
22677 cat >> confdefs.h <<\EOF
22678 #define CROSS_COMPILING 1
22682 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22683 echo "configure:22684: checking whether byte ordering is bigendian" >&5
22684 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22685 echo $ac_n "(cached) $ac_c" 1>&6
22687 ac_cv_c_bigendian=unknown
22688 # See if sys/param.h defines the BYTE_ORDER macro.
22689 cat > conftest.$ac_ext <<EOF
22690 #line 22691 "configure"
22691 #include "confdefs.h"
22692 #include <sys/types.h>
22693 #include <sys/param.h>
22696 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22697 bogus endian macros
22701 if { (eval echo configure:22702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22703 # It does; now see whether it defined to BIG_ENDIAN or not.
22704 cat > conftest.$ac_ext <<EOF
22705 #line 22706 "configure"
22706 #include "confdefs.h"
22707 #include <sys/types.h>
22708 #include <sys/param.h>
22711 #if BYTE_ORDER != BIG_ENDIAN
22716 if { (eval echo configure:22717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22718 ac_cv_c_bigendian=yes
22720 echo "configure: failed program was:" >&5
22721 cat conftest.$ac_ext >&5
22723 ac_cv_c_bigendian=no
22727 echo "configure: failed program was:" >&5
22728 cat conftest.$ac_ext >&5
22731 if test $ac_cv_c_bigendian = unknown; then
22732 if test "$cross_compiling" = yes; then
22733 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22735 cat > conftest.$ac_ext <<EOF
22736 #line 22737 "configure"
22737 #include "confdefs.h"
22739 /* Are we little or big endian? From Harbison&Steele. */
22743 char c[sizeof (long)];
22746 exit (u.c[sizeof (long) - 1] == 1);
22749 if { (eval echo configure:22750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22751 ac_cv_c_bigendian=no
22753 echo "configure: failed program was:" >&5
22754 cat conftest.$ac_ext >&5
22756 ac_cv_c_bigendian=yes
22764 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22765 if test $ac_cv_c_bigendian = yes; then
22766 cat >> confdefs.h <<\EOF
22767 #define WORDS_BIGENDIAN 1
22774 echo $ac_n "checking size of short""... $ac_c" 1>&6
22775 echo "configure:22776: checking size of short" >&5
22776 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22777 echo $ac_n "(cached) $ac_c" 1>&6
22779 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22780 cat > conftest.$ac_ext <<EOF
22781 #line 22782 "configure"
22782 #include "confdefs.h"
22783 #include "confdefs.h"
22784 #include <sys/types.h>
22788 switch (0) case 0: case (sizeof (short) == $ac_size):;
22791 if { (eval echo configure:22792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22793 ac_cv_sizeof_short=$ac_size
22795 echo "configure: failed program was:" >&5
22796 cat conftest.$ac_ext >&5
22799 if test x$ac_cv_sizeof_short != x ; then break; fi
22804 if test x$ac_cv_sizeof_short = x ; then
22805 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22807 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22808 cat >> confdefs.h <<EOF
22809 #define SIZEOF_SHORT $ac_cv_sizeof_short
22813 echo $ac_n "checking size of int""... $ac_c" 1>&6
22814 echo "configure:22815: checking size of int" >&5
22815 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22816 echo $ac_n "(cached) $ac_c" 1>&6
22818 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22819 cat > conftest.$ac_ext <<EOF
22820 #line 22821 "configure"
22821 #include "confdefs.h"
22822 #include "confdefs.h"
22823 #include <sys/types.h>
22827 switch (0) case 0: case (sizeof (int) == $ac_size):;
22830 if { (eval echo configure:22831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22832 ac_cv_sizeof_int=$ac_size
22834 echo "configure: failed program was:" >&5
22835 cat conftest.$ac_ext >&5
22838 if test x$ac_cv_sizeof_int != x ; then break; fi
22843 if test x$ac_cv_sizeof_int = x ; then
22844 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22846 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22847 cat >> confdefs.h <<EOF
22848 #define SIZEOF_INT $ac_cv_sizeof_int
22852 echo $ac_n "checking size of long""... $ac_c" 1>&6
22853 echo "configure:22854: checking size of long" >&5
22854 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22855 echo $ac_n "(cached) $ac_c" 1>&6
22857 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22858 cat > conftest.$ac_ext <<EOF
22859 #line 22860 "configure"
22860 #include "confdefs.h"
22861 #include "confdefs.h"
22862 #include <sys/types.h>
22866 switch (0) case 0: case (sizeof (long) == $ac_size):;
22869 if { (eval echo configure:22870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22871 ac_cv_sizeof_long=$ac_size
22873 echo "configure: failed program was:" >&5
22874 cat conftest.$ac_ext >&5
22877 if test x$ac_cv_sizeof_long != x ; then break; fi
22882 if test x$ac_cv_sizeof_long = x ; then
22883 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22885 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22886 cat >> confdefs.h <<EOF
22887 #define SIZEOF_LONG $ac_cv_sizeof_long
22892 if test "$ac_cv_sizeof_int" -lt 4 ; then
22893 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22895 cat >> confdefs.h <<\EOF
22896 #define LBER_INT_T long
22900 cat >> confdefs.h <<\EOF
22901 #define LBER_INT_T int
22906 cat >> confdefs.h <<\EOF
22907 #define LBER_LEN_T long
22910 cat >> confdefs.h <<\EOF
22911 #define LBER_SOCKET_T int
22914 cat >> confdefs.h <<\EOF
22915 #define LBER_TAG_T long
22919 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22920 echo "configure:22921: checking for 8-bit clean memcmp" >&5
22921 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22922 echo $ac_n "(cached) $ac_c" 1>&6
22924 if test "$cross_compiling" = yes; then
22925 ac_cv_func_memcmp_clean=no
22927 cat > conftest.$ac_ext <<EOF
22928 #line 22929 "configure"
22929 #include "confdefs.h"
22933 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22934 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22938 if { (eval echo configure:22939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22940 ac_cv_func_memcmp_clean=yes
22942 echo "configure: failed program was:" >&5
22943 cat conftest.$ac_ext >&5
22945 ac_cv_func_memcmp_clean=no
22952 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22953 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22955 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22956 echo "configure:22957: checking for strftime" >&5
22957 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22958 echo $ac_n "(cached) $ac_c" 1>&6
22960 cat > conftest.$ac_ext <<EOF
22961 #line 22962 "configure"
22962 #include "confdefs.h"
22963 /* System header to define __stub macros and hopefully few prototypes,
22964 which can conflict with char strftime(); below. */
22965 #include <assert.h>
22966 /* Override any gcc2 internal prototype to avoid an error. */
22967 /* We use char because int might match the return type of a gcc2
22968 builtin and then its argument prototype would still apply. */
22974 /* The GNU C library defines this for functions which it implements
22975 to always fail with ENOSYS. Some functions are actually named
22976 something starting with __ and the normal name is an alias. */
22977 #if defined (__stub_strftime) || defined (__stub___strftime)
22985 if { (eval echo configure:22986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22987 eval "ac_cv_func_strftime=yes"
22989 echo "configure: failed program was:" >&5
22990 cat conftest.$ac_ext >&5
22992 eval "ac_cv_func_strftime=no"
22997 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22998 echo "$ac_t""yes" 1>&6
22999 cat >> confdefs.h <<\EOF
23000 #define HAVE_STRFTIME 1
23004 echo "$ac_t""no" 1>&6
23005 # strftime is in -lintl on SCO UNIX.
23006 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
23007 echo "configure:23008: checking for strftime in -lintl" >&5
23008 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
23009 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23010 echo $ac_n "(cached) $ac_c" 1>&6
23012 ac_save_LIBS="$LIBS"
23013 LIBS="-lintl $LIBS"
23014 cat > conftest.$ac_ext <<EOF
23015 #line 23016 "configure"
23016 #include "confdefs.h"
23017 /* Override any gcc2 internal prototype to avoid an error. */
23018 /* We use char because int might match the return type of a gcc2
23019 builtin and then its argument prototype would still apply. */
23026 if { (eval echo configure:23027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23028 eval "ac_cv_lib_$ac_lib_var=yes"
23030 echo "configure: failed program was:" >&5
23031 cat conftest.$ac_ext >&5
23033 eval "ac_cv_lib_$ac_lib_var=no"
23036 LIBS="$ac_save_LIBS"
23039 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23040 echo "$ac_t""yes" 1>&6
23041 cat >> confdefs.h <<\EOF
23042 #define HAVE_STRFTIME 1
23045 LIBS="-lintl $LIBS"
23047 echo "$ac_t""no" 1>&6
23053 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
23054 echo "configure:23055: checking for inet_aton()" >&5
23055 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
23056 echo $ac_n "(cached) $ac_c" 1>&6
23058 cat > conftest.$ac_ext <<EOF
23059 #line 23060 "configure"
23060 #include "confdefs.h"
23062 #ifdef HAVE_SYS_TYPES_H
23063 # include <sys/types.h>
23065 #ifdef HAVE_SYS_SOCKET_H
23066 # include <sys/socket.h>
23067 # ifdef HAVE_SYS_SELECT_H
23068 # include <sys/select.h>
23070 # include <netinet/in.h>
23071 # ifdef HAVE_ARPA_INET_H
23072 # include <arpa/inet.h>
23078 int rc = inet_aton( "255.255.255.255", &in );
23081 if { (eval echo configure:23082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23083 ol_cv_func_inet_aton=yes
23085 echo "configure: failed program was:" >&5
23086 cat conftest.$ac_ext >&5
23088 ol_cv_func_inet_aton=no
23093 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
23094 if test $ol_cv_func_inet_aton != no; then
23095 cat >> confdefs.h <<\EOF
23096 #define HAVE_INET_ATON 1
23102 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
23103 echo "configure:23104: checking for _spawnlp" >&5
23104 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
23105 echo $ac_n "(cached) $ac_c" 1>&6
23107 cat > conftest.$ac_ext <<EOF
23108 #line 23109 "configure"
23109 #include "confdefs.h"
23110 /* System header to define __stub macros and hopefully few prototypes,
23111 which can conflict with char _spawnlp(); below. */
23112 #include <assert.h>
23113 /* Override any gcc2 internal prototype to avoid an error. */
23114 /* We use char because int might match the return type of a gcc2
23115 builtin and then its argument prototype would still apply. */
23121 /* The GNU C library defines this for functions which it implements
23122 to always fail with ENOSYS. Some functions are actually named
23123 something starting with __ and the normal name is an alias. */
23124 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
23132 if { (eval echo configure:23133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23134 eval "ac_cv_func__spawnlp=yes"
23136 echo "configure: failed program was:" >&5
23137 cat conftest.$ac_ext >&5
23139 eval "ac_cv_func__spawnlp=no"
23144 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
23145 echo "$ac_t""yes" 1>&6
23146 cat >> confdefs.h <<\EOF
23147 #define HAVE_SPAWNLP 1
23151 echo "$ac_t""no" 1>&6
23155 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
23156 echo "configure:23157: checking for _snprintf" >&5
23157 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
23158 echo $ac_n "(cached) $ac_c" 1>&6
23160 cat > conftest.$ac_ext <<EOF
23161 #line 23162 "configure"
23162 #include "confdefs.h"
23163 /* System header to define __stub macros and hopefully few prototypes,
23164 which can conflict with char _snprintf(); below. */
23165 #include <assert.h>
23166 /* Override any gcc2 internal prototype to avoid an error. */
23167 /* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23174 /* The GNU C library defines this for functions which it implements
23175 to always fail with ENOSYS. Some functions are actually named
23176 something starting with __ and the normal name is an alias. */
23177 #if defined (__stub__snprintf) || defined (__stub____snprintf)
23185 if { (eval echo configure:23186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23187 eval "ac_cv_func__snprintf=yes"
23189 echo "configure: failed program was:" >&5
23190 cat conftest.$ac_ext >&5
23192 eval "ac_cv_func__snprintf=no"
23197 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
23198 echo "$ac_t""yes" 1>&6
23199 ac_cv_func_snprintf=yes
23200 cat >> confdefs.h <<\EOF
23201 #define snprintf _snprintf
23206 echo "$ac_t""no" 1>&6
23210 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
23211 echo "configure:23212: checking for _vsnprintf" >&5
23212 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
23213 echo $ac_n "(cached) $ac_c" 1>&6
23215 cat > conftest.$ac_ext <<EOF
23216 #line 23217 "configure"
23217 #include "confdefs.h"
23218 /* System header to define __stub macros and hopefully few prototypes,
23219 which can conflict with char _vsnprintf(); below. */
23220 #include <assert.h>
23221 /* Override any gcc2 internal prototype to avoid an error. */
23222 /* We use char because int might match the return type of a gcc2
23223 builtin and then its argument prototype would still apply. */
23229 /* The GNU C library defines this for functions which it implements
23230 to always fail with ENOSYS. Some functions are actually named
23231 something starting with __ and the normal name is an alias. */
23232 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
23240 if { (eval echo configure:23241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23242 eval "ac_cv_func__vsnprintf=yes"
23244 echo "configure: failed program was:" >&5
23245 cat conftest.$ac_ext >&5
23247 eval "ac_cv_func__vsnprintf=no"
23252 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
23253 echo "$ac_t""yes" 1>&6
23254 ac_cv_func_vsnprintf=yes
23255 cat >> confdefs.h <<\EOF
23256 #define vsnprintf _vsnprintf
23261 echo "$ac_t""no" 1>&6
23265 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23266 echo "configure:23267: checking for vprintf" >&5
23267 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23268 echo $ac_n "(cached) $ac_c" 1>&6
23270 cat > conftest.$ac_ext <<EOF
23271 #line 23272 "configure"
23272 #include "confdefs.h"
23273 /* System header to define __stub macros and hopefully few prototypes,
23274 which can conflict with char vprintf(); below. */
23275 #include <assert.h>
23276 /* Override any gcc2 internal prototype to avoid an error. */
23277 /* We use char because int might match the return type of a gcc2
23278 builtin and then its argument prototype would still apply. */
23284 /* The GNU C library defines this for functions which it implements
23285 to always fail with ENOSYS. Some functions are actually named
23286 something starting with __ and the normal name is an alias. */
23287 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23295 if { (eval echo configure:23296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23297 eval "ac_cv_func_vprintf=yes"
23299 echo "configure: failed program was:" >&5
23300 cat conftest.$ac_ext >&5
23302 eval "ac_cv_func_vprintf=no"
23307 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23308 echo "$ac_t""yes" 1>&6
23309 cat >> confdefs.h <<\EOF
23310 #define HAVE_VPRINTF 1
23314 echo "$ac_t""no" 1>&6
23317 if test "$ac_cv_func_vprintf" != yes; then
23318 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23319 echo "configure:23320: checking for _doprnt" >&5
23320 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23321 echo $ac_n "(cached) $ac_c" 1>&6
23323 cat > conftest.$ac_ext <<EOF
23324 #line 23325 "configure"
23325 #include "confdefs.h"
23326 /* System header to define __stub macros and hopefully few prototypes,
23327 which can conflict with char _doprnt(); below. */
23328 #include <assert.h>
23329 /* Override any gcc2 internal prototype to avoid an error. */
23330 /* We use char because int might match the return type of a gcc2
23331 builtin and then its argument prototype would still apply. */
23337 /* The GNU C library defines this for functions which it implements
23338 to always fail with ENOSYS. Some functions are actually named
23339 something starting with __ and the normal name is an alias. */
23340 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23348 if { (eval echo configure:23349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23350 eval "ac_cv_func__doprnt=yes"
23352 echo "configure: failed program was:" >&5
23353 cat conftest.$ac_ext >&5
23355 eval "ac_cv_func__doprnt=no"
23360 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23361 echo "$ac_t""yes" 1>&6
23362 cat >> confdefs.h <<\EOF
23363 #define HAVE_DOPRNT 1
23367 echo "$ac_t""no" 1>&6
23373 if test $ac_cv_func_vprintf = yes ; then
23374 for ac_func in snprintf vsnprintf
23376 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23377 echo "configure:23378: checking for $ac_func" >&5
23378 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23379 echo $ac_n "(cached) $ac_c" 1>&6
23381 cat > conftest.$ac_ext <<EOF
23382 #line 23383 "configure"
23383 #include "confdefs.h"
23384 /* System header to define __stub macros and hopefully few prototypes,
23385 which can conflict with char $ac_func(); below. */
23386 #include <assert.h>
23387 /* Override any gcc2 internal prototype to avoid an error. */
23388 /* We use char because int might match the return type of a gcc2
23389 builtin and then its argument prototype would still apply. */
23395 /* The GNU C library defines this for functions which it implements
23396 to always fail with ENOSYS. Some functions are actually named
23397 something starting with __ and the normal name is an alias. */
23398 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23406 if { (eval echo configure:23407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23408 eval "ac_cv_func_$ac_func=yes"
23410 echo "configure: failed program was:" >&5
23411 cat conftest.$ac_ext >&5
23413 eval "ac_cv_func_$ac_func=no"
23418 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23419 echo "$ac_t""yes" 1>&6
23420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23421 cat >> confdefs.h <<EOF
23422 #define $ac_tr_func 1
23426 echo "$ac_t""no" 1>&6
23491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23492 echo "configure:23493: checking for $ac_func" >&5
23493 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23494 echo $ac_n "(cached) $ac_c" 1>&6
23496 cat > conftest.$ac_ext <<EOF
23497 #line 23498 "configure"
23498 #include "confdefs.h"
23499 /* System header to define __stub macros and hopefully few prototypes,
23500 which can conflict with char $ac_func(); below. */
23501 #include <assert.h>
23502 /* Override any gcc2 internal prototype to avoid an error. */
23503 /* We use char because int might match the return type of a gcc2
23504 builtin and then its argument prototype would still apply. */
23510 /* The GNU C library defines this for functions which it implements
23511 to always fail with ENOSYS. Some functions are actually named
23512 something starting with __ and the normal name is an alias. */
23513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23521 if { (eval echo configure:23522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23523 eval "ac_cv_func_$ac_func=yes"
23525 echo "configure: failed program was:" >&5
23526 cat conftest.$ac_ext >&5
23528 eval "ac_cv_func_$ac_func=no"
23533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23534 echo "$ac_t""yes" 1>&6
23535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23536 cat >> confdefs.h <<EOF
23537 #define $ac_tr_func 1
23541 echo "$ac_t""no" 1>&6
23546 for ac_func in getopt getpeereid
23548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23549 echo "configure:23550: checking for $ac_func" >&5
23550 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23551 echo $ac_n "(cached) $ac_c" 1>&6
23553 cat > conftest.$ac_ext <<EOF
23554 #line 23555 "configure"
23555 #include "confdefs.h"
23556 /* System header to define __stub macros and hopefully few prototypes,
23557 which can conflict with char $ac_func(); below. */
23558 #include <assert.h>
23559 /* Override any gcc2 internal prototype to avoid an error. */
23560 /* We use char because int might match the return type of a gcc2
23561 builtin and then its argument prototype would still apply. */
23567 /* The GNU C library defines this for functions which it implements
23568 to always fail with ENOSYS. Some functions are actually named
23569 something starting with __ and the normal name is an alias. */
23570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23578 if { (eval echo configure:23579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23580 eval "ac_cv_func_$ac_func=yes"
23582 echo "configure: failed program was:" >&5
23583 cat conftest.$ac_ext >&5
23585 eval "ac_cv_func_$ac_func=no"
23590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23591 echo "$ac_t""yes" 1>&6
23592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23593 cat >> confdefs.h <<EOF
23594 #define $ac_tr_func 1
23598 echo "$ac_t""no" 1>&6
23599 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23605 if test "$ac_cv_func_getopt" != yes; then
23606 LIBSRCS="$LIBSRCS getopt.c"
23608 if test "$ac_cv_func_getpeereid" != yes; then
23609 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23610 echo "configure:23611: checking for msg_accrights in msghdr" >&5
23611 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23612 echo $ac_n "(cached) $ac_c" 1>&6
23614 cat > conftest.$ac_ext <<EOF
23615 #line 23616 "configure"
23616 #include "confdefs.h"
23617 #include <sys/socket.h>
23619 struct msghdr m; m.msg_accrightslen=0
23622 if { (eval echo configure:23623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23624 ol_cv_msghdr_msg_accrights=yes
23626 echo "configure: failed program was:" >&5
23627 cat conftest.$ac_ext >&5
23629 ol_cv_msghdr_msg_accrights=no
23635 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23636 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23637 cat >> confdefs.h <<\EOF
23638 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23643 LIBSRCS="$LIBSRCS getpeereid.c"
23645 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23646 if test "$ac_cv_func_snprintf" != yes; then
23647 cat >> confdefs.h <<\EOF
23648 #define snprintf ber_pvt_snprintf
23652 if test "$ac_cv_func_vsnprintf" != yes; then
23653 cat >> confdefs.h <<\EOF
23654 #define vsnprintf ber_pvt_vsnprintf
23660 # Check Configuration
23661 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23662 echo "configure:23663: checking declaration of sys_errlist" >&5
23663 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23664 echo $ac_n "(cached) $ac_c" 1>&6
23667 cat > conftest.$ac_ext <<EOF
23668 #line 23669 "configure"
23669 #include "confdefs.h"
23672 #include <sys/types.h>
23675 #include <stdlib.h>
23678 char *c = (char *) *sys_errlist
23681 if { (eval echo configure:23682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23683 ol_cv_dcl_sys_errlist=yes
23684 ol_cv_have_sys_errlist=yes
23686 echo "configure: failed program was:" >&5
23687 cat conftest.$ac_ext >&5
23689 ol_cv_dcl_sys_errlist=no
23694 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23696 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23697 if test $ol_cv_dcl_sys_errlist = no ; then
23698 cat >> confdefs.h <<\EOF
23699 #define DECL_SYS_ERRLIST 1
23703 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23704 echo "configure:23705: checking existence of sys_errlist" >&5
23705 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23706 echo $ac_n "(cached) $ac_c" 1>&6
23709 cat > conftest.$ac_ext <<EOF
23710 #line 23711 "configure"
23711 #include "confdefs.h"
23714 char *c = (char *) *sys_errlist
23717 if { (eval echo configure:23718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23719 ol_cv_have_sys_errlist=yes
23721 echo "configure: failed program was:" >&5
23722 cat conftest.$ac_ext >&5
23724 ol_cv_have_sys_errlist=no
23729 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23731 if test $ol_cv_have_sys_errlist = yes ; then
23732 cat >> confdefs.h <<\EOF
23733 #define HAVE_SYS_ERRLIST 1
23740 if test "$ol_enable_slapi" != no ; then
23741 for ac_hdr in ltdl.h
23743 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23744 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23745 echo "configure:23746: checking for $ac_hdr" >&5
23746 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23747 echo $ac_n "(cached) $ac_c" 1>&6
23749 cat > conftest.$ac_ext <<EOF
23750 #line 23751 "configure"
23751 #include "confdefs.h"
23754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23755 { (eval echo configure:23756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23757 if test -z "$ac_err"; then
23759 eval "ac_cv_header_$ac_safe=yes"
23762 echo "configure: failed program was:" >&5
23763 cat conftest.$ac_ext >&5
23765 eval "ac_cv_header_$ac_safe=no"
23769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23770 echo "$ac_t""yes" 1>&6
23771 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23772 cat >> confdefs.h <<EOF
23773 #define $ac_tr_hdr 1
23777 echo "$ac_t""no" 1>&6
23782 if test $ac_cv_header_ltdl_h != yes ; then
23783 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23785 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23786 echo "configure:23787: checking for lt_dlinit in -lltdl" >&5
23787 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23788 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23789 echo $ac_n "(cached) $ac_c" 1>&6
23791 ac_save_LIBS="$LIBS"
23792 LIBS="-lltdl $LIBS"
23793 cat > conftest.$ac_ext <<EOF
23794 #line 23795 "configure"
23795 #include "confdefs.h"
23796 /* Override any gcc2 internal prototype to avoid an error. */
23797 /* We use char because int might match the return type of a gcc2
23798 builtin and then its argument prototype would still apply. */
23805 if { (eval echo configure:23806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23807 eval "ac_cv_lib_$ac_lib_var=yes"
23809 echo "configure: failed program was:" >&5
23810 cat conftest.$ac_ext >&5
23812 eval "ac_cv_lib_$ac_lib_var=no"
23815 LIBS="$ac_save_LIBS"
23818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23819 echo "$ac_t""yes" 1>&6
23822 LIBSLAPI=libslapi.a
23823 LIBSLAPITOOLS=../libslapi.a
23824 cat >> confdefs.h <<\EOF
23825 #define HAVE_LIBLTDL 1
23830 echo "$ac_t""no" 1>&6
23831 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23835 cat >> confdefs.h <<\EOF
23836 #define LDAP_SLAPI 1
23841 if test "$ol_enable_debug" != no ; then
23842 cat >> confdefs.h <<\EOF
23843 #define LDAP_DEBUG 1
23847 if test "$ol_enable_syslog" = yes ; then
23848 cat >> confdefs.h <<\EOF
23849 #define LDAP_SYSLOG 1
23853 if test "$ol_link_kbind" != no ; then
23854 cat >> confdefs.h <<\EOF
23855 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23859 if test "$ol_enable_proctitle" != no ; then
23860 cat >> confdefs.h <<\EOF
23861 #define LDAP_PROCTITLE 1
23865 if test "$ol_enable_referrals" != no ; then
23866 cat >> confdefs.h <<\EOF
23867 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23871 if test "$ol_enable_local" != no; then
23872 cat >> confdefs.h <<\EOF
23873 #define LDAP_PF_LOCAL 1
23877 if test "$ol_link_ipv6" != no; then
23878 cat >> confdefs.h <<\EOF
23879 #define LDAP_PF_INET6 1
23883 if test "$ol_enable_cleartext" != no ; then
23884 cat >> confdefs.h <<\EOF
23885 #define SLAPD_CLEARTEXT 1
23889 if test "$ol_enable_crypt" != no ; then
23890 cat >> confdefs.h <<\EOF
23891 #define SLAPD_CRYPT 1
23895 if test "$ol_link_kpasswd" != no ; then
23896 cat >> confdefs.h <<\EOF
23897 #define SLAPD_KPASSWD 1
23901 if test "$ol_link_spasswd" != no ; then
23902 cat >> confdefs.h <<\EOF
23903 #define SLAPD_SPASSWD 1
23907 if test "$ol_enable_multimaster" != no ; then
23908 cat >> confdefs.h <<\EOF
23909 #define SLAPD_MULTIMASTER 1
23913 if test "$ol_enable_rlookups" != no ; then
23914 cat >> confdefs.h <<\EOF
23915 #define SLAPD_RLOOKUPS 1
23919 if test "$ol_enable_aci" != no ; then
23920 cat >> confdefs.h <<\EOF
23921 #define SLAPD_ACI_ENABLED 1
23926 if test "$ol_link_modules" != no ; then
23927 cat >> confdefs.h <<\EOF
23928 #define SLAPD_MODULES 1
23932 SLAPD_MODULES_LDFLAGS="-dlopen self"
23935 if test "$ol_enable_bdb" != no ; then
23936 cat >> confdefs.h <<\EOF
23937 #define SLAPD_BDB 1
23942 if test "$ol_with_bdb_module" != static ; then
23943 cat >> confdefs.h <<\EOF
23944 #define SLAPD_BDB_DYNAMIC 1
23948 BUILD_BDB_DYNAMIC=shared
23949 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23951 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23955 if test "$ol_link_dnssrv" != no ; then
23956 cat >> confdefs.h <<\EOF
23957 #define SLAPD_DNSSRV 1
23962 if test "$ol_with_dnssrv_module" != static ; then
23963 cat >> confdefs.h <<\EOF
23964 #define SLAPD_DNSSRV_DYNAMIC 1
23968 BUILD_DNSSRV_DYNAMIC=shared
23969 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23971 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23975 if test "$ol_enable_hdb" != no ; then
23976 cat >> confdefs.h <<\EOF
23977 #define SLAPD_HDB 1
23982 if test "$ol_with_hdb_module" != static ; then
23983 cat >> confdefs.h <<\EOF
23984 #define SLAPD_HDB_DYNAMIC 1
23988 BUILD_HDB_DYNAMIC=shared
23989 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23991 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23995 if test "$ol_enable_ldap" != no ; then
23996 cat >> confdefs.h <<\EOF
23997 #define SLAPD_LDAP 1
24002 if test "$ol_with_ldap_module" != static ; then
24003 cat >> confdefs.h <<\EOF
24004 #define SLAPD_LDAP_DYNAMIC 1
24008 BUILD_LDAP_DYNAMIC=shared
24009 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24011 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24015 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24016 cat >> confdefs.h <<\EOF
24017 #define SLAPD_LDBM 1
24022 if test "$ol_with_ldbm_module" != static ; then
24023 cat >> confdefs.h <<\EOF
24024 #define SLAPD_LDBM_DYNAMIC 1
24028 BUILD_LDBM_DYNAMIC=shared
24029 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24031 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24035 if test "$ol_enable_meta" != no ; then
24036 if test "$ol_enable_ldap" = no ; then
24037 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
24039 if test "$ol_enable_rewrite" = no ; then
24040 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
24042 cat >> confdefs.h <<\EOF
24043 #define SLAPD_META 1
24049 if test $ol_enable_ldbm = yes -o \
24050 $ol_enable_bdb = yes ; then
24053 if test "$ol_with_meta_module" != static ; then
24054 cat >> confdefs.h <<\EOF
24055 #define SLAPD_META_DYNAMIC 1
24059 BUILD_META_DYNAMIC=shared
24060 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24062 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24066 if test "$ol_enable_monitor" != no ; then
24067 cat >> confdefs.h <<\EOF
24068 #define SLAPD_MONITOR 1
24073 if test "$ol_with_monitor_module" != static ; then
24074 cat >> confdefs.h <<\EOF
24075 #define SLAPD_MONITOR_DYNAMIC 1
24079 BUILD_MONITOR_DYNAMIC=shared
24080 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24082 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24086 if test "$ol_enable_null" != no ; then
24087 cat >> confdefs.h <<\EOF
24088 #define SLAPD_NULL 1
24093 if test "$ol_with_null_module" != static ; then
24094 cat >> confdefs.h <<\EOF
24095 #define SLAPD_NULL_DYNAMIC 1
24099 BUILD_NULL_DYNAMIC=shared
24100 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24102 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24106 if test "$ol_enable_passwd" != no ; then
24107 cat >> confdefs.h <<\EOF
24108 #define SLAPD_PASSWD 1
24113 if test "$ol_with_passwd_module" != static ; then
24114 cat >> confdefs.h <<\EOF
24115 #define SLAPD_PASSWD_DYNAMIC 1
24119 BUILD_PASSWD_DYNAMIC=shared
24120 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24122 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24126 if test "$ol_link_perl" != no ; then
24127 cat >> confdefs.h <<\EOF
24128 #define SLAPD_PERL 1
24133 if test "$ol_with_perl_module" != static ; then
24134 cat >> confdefs.h <<\EOF
24135 #define SLAPD_PERL_DYNAMIC 1
24139 BUILD_PERL_DYNAMIC=shared
24140 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24142 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24146 if test "$ol_enable_shell" != no ; then
24147 if test "$ol_link_thread" != no ; then
24148 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
24150 cat >> confdefs.h <<\EOF
24151 #define SLAPD_SHELL 1
24156 if test "$ol_with_shell_module" != static ; then
24157 cat >> confdefs.h <<\EOF
24158 #define SLAPD_SHELL_DYNAMIC 1
24162 BUILD_SHELL_DYNAMIC=shared
24163 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24165 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24169 if test "$ol_enable_tcl" != no ; then
24170 cat >> confdefs.h <<\EOF
24171 #define SLAPD_TCL 1
24176 if test "$ol_with_tcl_module" != static; then
24177 cat >> confdefs.h <<\EOF
24178 #define SLAPD_TCL_DYNAMIC 1
24182 BUILD_TCL_DYNAMIC=shared
24183 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
24185 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
24189 if test "$ol_link_sql" != no ; then
24190 cat >> confdefs.h <<\EOF
24191 #define SLAPD_SQL 1
24196 if test "$ol_with_sql_module" != static; then
24197 cat >> confdefs.h <<\EOF
24198 #define SLAPD_SQL_DYNAMIC 1
24202 BUILD_SQL_DYNAMIC=shared
24203 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24205 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24209 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24210 $BUILD_SLAPD = yes ; then
24214 if test "$ol_enable_rewrite" != no ; then
24215 cat >> confdefs.h <<\EOF
24216 #define ENABLE_REWRITE 1
24222 if test "$ol_enable_slapi" != no ; then
24223 cat >> confdefs.h <<\EOF
24224 #define ENABLE_SLAPI 1
24228 SLAPD_SLAPI_DEPEND=libslapi.a
24233 if test "$ac_cv_mingw32" = yes ; then
24235 SLAPD_MODULES_LDFLAGS=
24240 if test -z "$SLAPD_STATIC_BACKENDS"; then
24241 SLAPD_NO_STATIC='#'
24320 # Check whether --with-xxinstall or --without-xxinstall was given.
24321 if test "${with_xxinstall+set}" = set; then
24322 withval="$with_xxinstall"
24330 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24333 # Let make expand exec_prefix.
24334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24336 # Any assignment to VPATH causes Sun make to only execute
24337 # the first set of double-colon rules, so remove it if not needed.
24338 # If there is a colon in the path, we need to keep it.
24339 if test "x$srcdir" = x.; then
24340 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24343 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24345 DEFS=-DHAVE_CONFIG_H
24347 # Without the "./", some shells look in PATH for config.status.
24348 : ${CONFIG_STATUS=./config.status}
24350 echo creating $CONFIG_STATUS
24351 rm -f $CONFIG_STATUS
24352 cat > $CONFIG_STATUS <<EOF
24354 # Generated automatically by configure.
24355 # Run this file to recreate the current configuration.
24356 # This directory was configured as follows,
24357 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24359 # $0 $ac_configure_args
24361 # Compiler output produced by configure, useful for debugging
24362 # configure, is in ./config.log if it exists.
24364 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24367 case "\$ac_option" in
24368 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24369 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24370 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24371 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24372 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24374 -help | --help | --hel | --he | --h)
24375 echo "\$ac_cs_usage"; exit 0 ;;
24376 *) echo "\$ac_cs_usage"; exit 1 ;;
24380 ac_given_srcdir=$srcdir
24381 ac_given_INSTALL="$INSTALL"
24383 trap 'rm -fr `echo "\
24384 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24385 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24386 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24387 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24388 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24389 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24390 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24391 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24392 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24393 include/Makefile:build/top.mk:include/Makefile.in \
24394 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24395 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
24396 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24397 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24398 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24399 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
24400 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24401 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24402 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24403 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24404 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24405 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24406 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24407 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24408 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24409 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24410 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24411 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24412 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24413 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24414 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24415 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24416 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24417 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
24418 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24419 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24420 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24421 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24422 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24424 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24425 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24427 cat >> $CONFIG_STATUS <<EOF
24429 # Protect against being on the right side of a sed subst in config.status.
24430 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24431 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24435 s%@CFLAGS@%$CFLAGS%g
24436 s%@CPPFLAGS@%$CPPFLAGS%g
24437 s%@CXXFLAGS@%$CXXFLAGS%g
24438 s%@FFLAGS@%$FFLAGS%g
24440 s%@LDFLAGS@%$LDFLAGS%g
24442 s%@exec_prefix@%$exec_prefix%g
24443 s%@prefix@%$prefix%g
24444 s%@program_transform_name@%$program_transform_name%g
24445 s%@bindir@%$bindir%g
24446 s%@sbindir@%$sbindir%g
24447 s%@libexecdir@%$libexecdir%g
24448 s%@datadir@%$datadir%g
24449 s%@sysconfdir@%$sysconfdir%g
24450 s%@sharedstatedir@%$sharedstatedir%g
24451 s%@localstatedir@%$localstatedir%g
24452 s%@libdir@%$libdir%g
24453 s%@includedir@%$includedir%g
24454 s%@oldincludedir@%$oldincludedir%g
24455 s%@infodir@%$infodir%g
24456 s%@mandir@%$mandir%g
24458 s%@host_alias@%$host_alias%g
24459 s%@host_cpu@%$host_cpu%g
24460 s%@host_vendor@%$host_vendor%g
24461 s%@host_os@%$host_os%g
24462 s%@target@%$target%g
24463 s%@target_alias@%$target_alias%g
24464 s%@target_cpu@%$target_cpu%g
24465 s%@target_vendor@%$target_vendor%g
24466 s%@target_os@%$target_os%g
24468 s%@build_alias@%$build_alias%g
24469 s%@build_cpu@%$build_cpu%g
24470 s%@build_vendor@%$build_vendor%g
24471 s%@build_os@%$build_os%g
24472 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24473 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24474 s%@INSTALL_DATA@%$INSTALL_DATA%g
24475 s%@PACKAGE@%$PACKAGE%g
24476 s%@VERSION@%$VERSION%g
24477 s%@ACLOCAL@%$ACLOCAL%g
24478 s%@AUTOCONF@%$AUTOCONF%g
24479 s%@AUTOMAKE@%$AUTOMAKE%g
24480 s%@AUTOHEADER@%$AUTOHEADER%g
24481 s%@MAKEINFO@%$MAKEINFO%g
24482 s%@install_sh@%$install_sh%g
24485 s%@AMTARFLAGS@%$AMTARFLAGS%g
24486 s%@SET_MAKE@%$SET_MAKE%g
24487 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24488 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24489 s%@top_builddir@%$top_builddir%g
24490 s%@ldap_subdir@%$ldap_subdir%g
24494 s%@OBJEXT@%$OBJEXT%g
24495 s%@EXEEXT@%$EXEEXT%g
24497 s%@RANLIB@%$RANLIB%g
24499 s%@DLLTOOL@%$DLLTOOL%g
24501 s%@OBJDUMP@%$OBJDUMP%g
24503 s%@LIBTOOL@%$LIBTOOL%g
24505 s%@PERLBIN@%$PERLBIN%g
24506 s%@OL_MKDEP@%$OL_MKDEP%g
24507 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24508 s%@LTSTATIC@%$LTSTATIC%g
24509 s%@LIBOBJS@%$LIBOBJS%g
24510 s%@LIBSRCS@%$LIBSRCS%g
24512 s%@WITH_TLS@%$WITH_TLS%g
24513 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24514 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24515 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24516 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24517 s%@BUILD_BDB@%$BUILD_BDB%g
24518 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24519 s%@BUILD_HDB@%$BUILD_HDB%g
24520 s%@BUILD_LDAP@%$BUILD_LDAP%g
24521 s%@BUILD_LDBM@%$BUILD_LDBM%g
24522 s%@BUILD_META@%$BUILD_META%g
24523 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24524 s%@BUILD_CACHE@%$BUILD_CACHE%g
24525 s%@BUILD_NULL@%$BUILD_NULL%g
24526 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24527 s%@BUILD_PERL@%$BUILD_PERL%g
24528 s%@BUILD_SHELL@%$BUILD_SHELL%g
24529 s%@BUILD_SQL@%$BUILD_SQL%g
24530 s%@BUILD_TCL@%$BUILD_TCL%g
24531 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24532 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24533 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24534 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24535 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24536 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24537 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24538 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24539 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24540 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24541 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24542 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24543 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
24544 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24545 s%@LDAP_LIBS@%$LDAP_LIBS%g
24546 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24547 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24548 s%@LDBM_LIBS@%$LDBM_LIBS%g
24549 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24550 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24551 s%@WRAP_LIBS@%$WRAP_LIBS%g
24552 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
24553 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24554 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24555 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24556 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24557 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24558 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24559 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24560 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24561 s%@KRB4_LIBS@%$KRB4_LIBS%g
24562 s%@KRB5_LIBS@%$KRB5_LIBS%g
24563 s%@SASL_LIBS@%$SASL_LIBS%g
24564 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
24565 s%@TLS_LIBS@%$TLS_LIBS%g
24566 s%@MODULES_LIBS@%$MODULES_LIBS%g
24567 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24568 s%@LIBSLAPI@%$LIBSLAPI%g
24569 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24570 s%@AUTH_LIBS@%$AUTH_LIBS%g
24571 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24572 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24573 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24574 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24579 cat >> $CONFIG_STATUS <<\EOF
24581 # Split the substitutions into bite-sized pieces for seds with
24582 # small command number limits, like on Digital OSF/1 and HP-UX.
24583 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24584 ac_file=1 # Number of current file.
24585 ac_beg=1 # First line for current file.
24586 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24589 while $ac_more_lines; do
24590 if test $ac_beg -gt 1; then
24591 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24593 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24595 if test ! -s conftest.s$ac_file; then
24596 ac_more_lines=false
24597 rm -f conftest.s$ac_file
24599 if test -z "$ac_sed_cmds"; then
24600 ac_sed_cmds="sed -f conftest.s$ac_file"
24602 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24604 ac_file=`expr $ac_file + 1`
24606 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24609 if test -z "$ac_sed_cmds"; then
24614 cat >> $CONFIG_STATUS <<EOF
24616 CONFIG_FILES=\${CONFIG_FILES-"\
24617 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24618 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24619 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24620 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24621 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24622 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24623 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24624 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24625 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24626 include/Makefile:build/top.mk:include/Makefile.in \
24627 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24628 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
24629 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24630 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24631 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24632 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
24633 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24634 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24635 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24636 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24637 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24638 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24639 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24640 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24641 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24642 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24643 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24644 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24645 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24646 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24647 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24648 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24649 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24650 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
24651 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24652 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24653 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24654 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24655 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24657 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24660 cat >> $CONFIG_STATUS <<\EOF
24661 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24664 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24665 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24666 *) ac_file_in="${ac_file}.in" ;;
24669 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24671 # Remove last slash and all that follows it. Not all systems have dirname.
24672 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24673 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24674 # The file is in a subdirectory.
24675 test ! -d "$ac_dir" && mkdir "$ac_dir"
24676 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24677 # A "../" for each directory in $ac_dir_suffix.
24678 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24680 ac_dir_suffix= ac_dots=
24683 case "$ac_given_srcdir" in
24685 if test -z "$ac_dots"; then top_srcdir=.
24686 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24687 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24688 *) # Relative path.
24689 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24690 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24693 case "$ac_given_INSTALL" in
24694 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24695 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24698 echo creating "$ac_file"
24700 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24702 *[Mm]akefile*) ac_comsub="1i\\
24703 # $configure_input" ;;
24707 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24709 s%@configure_input@%$configure_input%g
24710 s%@srcdir@%$srcdir%g
24711 s%@top_srcdir@%$top_srcdir%g
24712 s%@INSTALL@%$INSTALL%g
24713 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24717 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24718 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24720 # ac_d sets the value in "#define NAME VALUE" lines.
24721 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24722 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24725 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24726 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24727 ac_uB='\([ ]\)%\1#\2define\3'
24730 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24731 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24732 ac_eB='$%\1#\2define\3'
24736 if test "${CONFIG_HEADERS+set}" != set; then
24738 cat >> $CONFIG_STATUS <<EOF
24739 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24741 cat >> $CONFIG_STATUS <<\EOF
24743 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24744 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24746 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24747 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24748 *) ac_file_in="${ac_file}.in" ;;
24751 echo creating $ac_file
24753 rm -f conftest.frag conftest.in conftest.out
24754 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24755 cat $ac_file_inputs > conftest.in
24759 # Transform confdefs.h into a sed script conftest.vals that substitutes
24760 # the proper values into config.h.in to produce config.h. And first:
24761 # Protect against being on the right side of a sed subst in config.status.
24762 # Protect against being in an unquoted here document in config.status.
24763 rm -f conftest.vals
24764 cat > conftest.hdr <<\EOF
24767 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24771 sed -n -f conftest.hdr confdefs.h > conftest.vals
24774 # This sed command replaces #undef with comments. This is necessary, for
24775 # example, in the case of _POSIX_SOURCE, which is predefined and required
24776 # on some systems where configure will not decide to define it.
24777 cat >> conftest.vals <<\EOF
24778 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24781 # Break up conftest.vals because some shells have a limit on
24782 # the size of here documents, and old seds have small limits too.
24784 rm -f conftest.tail
24787 ac_lines=`grep -c . conftest.vals`
24788 # grep -c gives empty output for an empty file on some AIX systems.
24789 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24790 # Write a limited-size here document to conftest.frag.
24791 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24792 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24794 sed -f conftest.frag conftest.in > conftest.out
24796 mv conftest.out conftest.in
24797 ' >> $CONFIG_STATUS
24798 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24799 rm -f conftest.vals
24800 mv conftest.tail conftest.vals
24802 rm -f conftest.vals
24804 cat >> $CONFIG_STATUS <<\EOF
24805 rm -f conftest.frag conftest.h
24806 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24807 cat conftest.in >> conftest.h
24809 if cmp -s $ac_file conftest.h 2>/dev/null; then
24810 echo "$ac_file is unchanged"
24813 # Remove last slash and all that follows it. Not all systems have dirname.
24814 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24815 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24816 # The file is in a subdirectory.
24817 test ! -d "$ac_dir" && mkdir "$ac_dir"
24820 mv conftest.h $ac_file
24825 cat >> $CONFIG_STATUS <<EOF
24828 cat >> $CONFIG_STATUS <<\EOF
24832 echo Please run \"make depend\" to build dependencies
24836 chmod +x $CONFIG_STATUS
24837 rm -fr confdefs* $ac_clean_files
24838 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1