3 # from OpenLDAP: pkg/ldap/configure.in,v 1.400 2002/02/10 03:30:35 kurt Exp
5 # Copyright 1998-2002 The OpenLDAP Foundation. All Rights Reserved.
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted only as authorized by the OpenLDAP
9 # Public License. A copy of this license is available at
10 # http://www.OpenLDAP.org/license.html or in file LICENSE in the
11 # top-level directory of the distribution.
13 echo "Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved."
14 echo "Restrictions apply, see COPYRIGHT and LICENSE files."
16 # Guess values for system-dependent variables and create Makefiles.
17 # Generated automatically using autoconf version 2.13.1
18 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
20 # This configure script is free software; the Free Software Foundation
21 # gives unlimited permission to copy, distribute and modify it.
25 ac_default_prefix=/usr/local
26 # Any additions from configure.in:
27 ac_default_prefix=/usr/local
29 --with-subdir=DIR change default subdirectory used for installs"
31 --enable-debug enable debugging [yes]"
33 --enable-syslog enable syslog support [auto]"
35 --enable-proctitle enable proctitle support [yes]"
37 --enable-cache enable caching (experimental) [no]"
39 --enable-referrals enable LDAPv2+ Referrals (experimental) [no]"
41 --enable-kbind enable LDAPv2+ Kerberos IV bind (deprecated) [no]"
43 --enable-ipv6 enable IPv6 support [auto]"
45 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
47 --enable-rewrite enable rewrite [no]"
49 --enable-x-compile enable cross compiling [no]"
51 --with-cyrus-sasl with Cyrus SASL support [auto]"
53 --with-fetch with fetch URL support [auto]"
55 --with-kerberos with Kerberos support [auto]"
57 --with-readline with readline support [auto]"
59 --with-threads with threads [auto]"
61 --with-tls with TLS/SSL support [auto]"
63 --with-yielding-select with implicitly yielding select [auto]"
65 SLAPD (Standalone LDAP Daemon) Options:"
67 --enable-slapd enable building slapd [yes]"
69 --enable-aci enable per-object ACIs (experimental) [no]"
71 --enable-cleartext enable cleartext passwords [yes]"
73 --enable-crypt enable crypt(3) passwords [no]"
75 --enable-dynamic enable linking built binaries with dynamic libs [no]"
77 --enable-kpasswd enable Kerberos password verification [no]"
79 --enable-lmpasswd enable LAN Manager passwords [no]"
81 --enable-spasswd enable (Cyrus) SASL password verification [no]"
83 --enable-modules enable dynamic module support [no]"
85 --enable-phonetic enable phonetic/soundex [no]"
87 --enable-rlookups enable reverse lookups [no]"
89 --enable-slp enable SLPv2 support [no]"
91 --enable-wrappers enable tcp wrapper support [no]"
93 --enable-bdb enable Berkeley DB backend [yes]"
95 --with-bdb-module module type [static]"
97 --enable-dnssrv enable dnssrv backend [no]"
99 --with-dnssrv-module module type [static]"
101 --enable-ldap enable ldap backend [no]"
103 --with-ldap-module module type [static]"
105 --enable-ldbm enable ldbm backend [no]"
107 --with-ldbm-api with LDBM API [auto]"
109 --with-ldbm-module module type [static]"
111 --with-ldbm-type use LDBM type [auto]"
113 --enable-meta enable metadirectory backend [no]"
115 --with-meta-module module type [static]"
117 --enable-monitor enable monitor backend [no]"
119 --with-monitor-module module type [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type [static]"
129 --enable-shell enable shell backend [no]"
131 --with-shell-module module type [static]"
133 --enable-sql enable sql backend [no]"
135 --with-sql-module module type [static]"
137 --enable-tcl enable tcl backend [no]"
139 --with-tcl-module module type [static]"
141 SLURPD (Replication Daemon) Options:"
143 --enable-slurpd enable building slurpd [auto]"
145 Library Generation & Linking Options"
147 --enable-static[=PKGS] build static libraries [default=yes]"
149 --enable-shared[=PKGS] build shared libraries [default=yes]"
151 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
153 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
155 # Find the correct PATH separator. Usually this is `:', but
156 # DJGPP uses `;' like DOS.
157 if test "X${PATH_SEPARATOR+set}" != Xset; then
158 UNAME=${UNAME-`uname 2>/dev/null`}
160 *-DOS) lt_cv_sys_path_separator=';' ;;
161 *) lt_cv_sys_path_separator=':' ;;
163 PATH_SEPARATOR=$lt_cv_sys_path_separator
167 # Check that we are running under the correct shell.
168 SHELL=${CONFIG_SHELL-/bin/sh}
172 # Remove one level of quotation (which was required for Make).
173 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
178 if test "X$1" = X--no-reexec; then
179 # Discard the --no-reexec flag, and continue.
181 elif test "X$1" = X--fallback-echo; then
182 # Avoid inline document here, it may be left over
184 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
185 # Yippee, $echo works!
188 # Restart under the correct shell.
189 exec $SHELL "$0" --no-reexec ${1+"$@"}
192 if test "X$1" = X--fallback-echo; then
193 # used as fallback echo
201 # The HP-UX ksh and POSIX shell print the target directory to stdout
203 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
205 if test -z "$ECHO"; then
206 if test "X${echo_test_string+set}" != Xset; then
207 # find a string as large as possible, as long as the shell can cope with it
208 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
209 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
210 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
211 echo_test_string="`eval $cmd`" &&
212 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
219 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
220 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
221 test "X$echo_testing_string" = "X$echo_test_string"; then
224 # The Solaris, AIX, and Digital Unix default echo programs unquote
225 # backslashes. This makes it impossible to quote backslashes using
226 # echo "$something" | sed 's/\\/\\\\/g'
228 # So, first we look for a working echo in the user's PATH.
230 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
231 for dir in $PATH /usr/ucb; do
232 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
233 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
234 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
235 test "X$echo_testing_string" = "X$echo_test_string"; then
242 if test "X$echo" = Xecho; then
243 # We didn't find a better echo, so look for alternatives.
244 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
245 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
246 test "X$echo_testing_string" = "X$echo_test_string"; then
247 # This shell has a builtin print -r that does the trick.
249 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
250 test "X$CONFIG_SHELL" != X/bin/ksh; then
251 # If we have ksh, try running configure again with it.
252 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
253 export ORIGINAL_CONFIG_SHELL
254 CONFIG_SHELL=/bin/ksh
256 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
260 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
261 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
262 test "X$echo_testing_string" = "X$echo_test_string"; then
265 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
266 test "X$echo_testing_string" = 'X\t' &&
267 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
268 test "X$echo_testing_string" = "X$echo_test_string"; then
269 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
271 SHELL="$CONFIG_SHELL"
273 echo="$CONFIG_SHELL $0 --fallback-echo"
274 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
275 test "X$echo_testing_string" = 'X\t' &&
276 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
277 test "X$echo_testing_string" = "X$echo_test_string"; then
278 echo="$CONFIG_SHELL $0 --fallback-echo"
280 # maybe with a smaller string...
283 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
284 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
291 if test "$prev" != 'sed 50q "$0"'; then
292 echo_test_string=`eval $prev`
293 export echo_test_string
294 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
296 # Oops. We lost completely, so just stick with echo.
305 # Copy echo and quote the copy suitably for passing to libtool from
306 # the Makefile, instead of quoting the original, which is used later.
308 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
309 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
314 --disable-libtool-lock avoid locking (might break parallel builds)"
316 --with-pic try to use only PIC/non-PIC objects [default=use both]"
318 # Initialize some variables set by options.
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
322 cache_file=./config.cache
331 program_transform_name=s,x,x,
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
352 # Initialize some other variables.
355 SHELL=${CONFIG_SHELL-/bin/sh}
356 # Maximum number of lines to put in a shell here document.
363 # If the previous option needs an argument, assign it.
364 if test -n "$ac_prev"; then
365 eval "$ac_prev=\$ac_option"
371 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
375 # Accept the important Cygnus configure options, so we can diagnose typos.
379 -bindir | --bindir | --bindi | --bind | --bin | --bi)
381 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
382 bindir="$ac_optarg" ;;
384 -build | --build | --buil | --bui | --bu)
386 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
387 build="$ac_optarg" ;;
389 -cache-file | --cache-file | --cache-fil | --cache-fi \
390 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
391 ac_prev=cache_file ;;
392 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
393 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
394 cache_file="$ac_optarg" ;;
396 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
398 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
400 datadir="$ac_optarg" ;;
402 -disable-* | --disable-*)
403 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
404 # Reject names that are not valid shell variable names.
405 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
406 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
408 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
409 eval "enable_${ac_feature}=no" ;;
411 -enable-* | --enable-*)
412 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
417 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
422 eval "enable_${ac_feature}='$ac_optarg'" ;;
424 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
425 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
426 | --exec | --exe | --ex)
427 ac_prev=exec_prefix ;;
428 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
429 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
430 | --exec=* | --exe=* | --ex=*)
431 exec_prefix="$ac_optarg" ;;
433 -gas | --gas | --ga | --g)
434 # Obsolete; use --with-gas.
437 -help | --help | --hel | --he)
438 # Omit some internal or obsolete options to make the list less imposing.
439 # This message is too long to be a string in the A/UX 3.1 sh.
441 Usage: configure [options] [host]
442 Options: [defaults in brackets after descriptions]
444 --cache-file=FILE cache test results in FILE
445 --help print this message
446 --no-create do not create output files
447 --quiet, --silent do not print \`checking...' messages
448 --version print the version of autoconf that created configure
449 Directory and file names:
450 --prefix=PREFIX install architecture-independent files in PREFIX
452 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
454 --bindir=DIR user executables in DIR [EPREFIX/bin]
455 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
456 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
457 --datadir=DIR read-only architecture-independent data in DIR
459 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
460 --sharedstatedir=DIR modifiable architecture-independent data in DIR
462 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
463 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
464 --includedir=DIR C header files in DIR [PREFIX/include]
465 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
466 --infodir=DIR info documentation in DIR [PREFIX/info]
467 --mandir=DIR man documentation in DIR [PREFIX/man]
468 --srcdir=DIR find the sources in DIR [configure dir or ..]
469 --program-prefix=PREFIX prepend PREFIX to installed program names
470 --program-suffix=SUFFIX append SUFFIX to installed program names
471 --program-transform-name=PROGRAM
472 run sed PROGRAM on installed program names
476 --build=BUILD configure for building on BUILD [BUILD=HOST]
477 --host=HOST configure for HOST [guessed]
478 --target=TARGET configure for TARGET [TARGET=HOST]
479 Features and packages:
480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
484 --x-includes=DIR X include files are in DIR
485 --x-libraries=DIR X library files are in DIR
487 if test -n "$ac_help"; then
488 echo "--enable and --with options recognized:$ac_help"
492 -host | --host | --hos | --ho)
494 -host=* | --host=* | --hos=* | --ho=*)
497 -includedir | --includedir | --includedi | --included | --include \
498 | --includ | --inclu | --incl | --inc)
499 ac_prev=includedir ;;
500 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
501 | --includ=* | --inclu=* | --incl=* | --inc=*)
502 includedir="$ac_optarg" ;;
504 -infodir | --infodir | --infodi | --infod | --info | --inf)
506 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
507 infodir="$ac_optarg" ;;
509 -libdir | --libdir | --libdi | --libd)
511 -libdir=* | --libdir=* | --libdi=* | --libd=*)
512 libdir="$ac_optarg" ;;
514 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
515 | --libexe | --libex | --libe)
516 ac_prev=libexecdir ;;
517 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
518 | --libexe=* | --libex=* | --libe=*)
519 libexecdir="$ac_optarg" ;;
521 -localstatedir | --localstatedir | --localstatedi | --localstated \
522 | --localstate | --localstat | --localsta | --localst \
523 | --locals | --local | --loca | --loc | --lo)
524 ac_prev=localstatedir ;;
525 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
526 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
527 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
528 localstatedir="$ac_optarg" ;;
530 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
532 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
533 mandir="$ac_optarg" ;;
536 # Obsolete; use --without-fp.
539 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
543 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
544 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
547 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
548 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
549 | --oldin | --oldi | --old | --ol | --o)
550 ac_prev=oldincludedir ;;
551 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
552 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
553 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
554 oldincludedir="$ac_optarg" ;;
556 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
558 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
559 prefix="$ac_optarg" ;;
561 -program-prefix | --program-prefix | --program-prefi | --program-pref \
562 | --program-pre | --program-pr | --program-p)
563 ac_prev=program_prefix ;;
564 -program-prefix=* | --program-prefix=* | --program-prefi=* \
565 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
566 program_prefix="$ac_optarg" ;;
568 -program-suffix | --program-suffix | --program-suffi | --program-suff \
569 | --program-suf | --program-su | --program-s)
570 ac_prev=program_suffix ;;
571 -program-suffix=* | --program-suffix=* | --program-suffi=* \
572 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
573 program_suffix="$ac_optarg" ;;
575 -program-transform-name | --program-transform-name \
576 | --program-transform-nam | --program-transform-na \
577 | --program-transform-n | --program-transform- \
578 | --program-transform | --program-transfor \
579 | --program-transfo | --program-transf \
580 | --program-trans | --program-tran \
581 | --progr-tra | --program-tr | --program-t)
582 ac_prev=program_transform_name ;;
583 -program-transform-name=* | --program-transform-name=* \
584 | --program-transform-nam=* | --program-transform-na=* \
585 | --program-transform-n=* | --program-transform-=* \
586 | --program-transform=* | --program-transfor=* \
587 | --program-transfo=* | --program-transf=* \
588 | --program-trans=* | --program-tran=* \
589 | --progr-tra=* | --program-tr=* | --program-t=*)
590 program_transform_name="$ac_optarg" ;;
592 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
593 | -silent | --silent | --silen | --sile | --sil)
596 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
598 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
600 sbindir="$ac_optarg" ;;
602 -sharedstatedir | --sharedstatedir | --sharedstatedi \
603 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
604 | --sharedst | --shareds | --shared | --share | --shar \
606 ac_prev=sharedstatedir ;;
607 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
608 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
609 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
611 sharedstatedir="$ac_optarg" ;;
613 -site | --site | --sit)
615 -site=* | --site=* | --sit=*)
618 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
620 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
621 srcdir="$ac_optarg" ;;
623 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
624 | --syscon | --sysco | --sysc | --sys | --sy)
625 ac_prev=sysconfdir ;;
626 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
627 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
628 sysconfdir="$ac_optarg" ;;
630 -target | --target | --targe | --targ | --tar | --ta | --t)
632 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
633 target="$ac_optarg" ;;
635 -v | -verbose | --verbose | --verbos | --verbo | --verb)
638 -version | --version | --versio | --versi | --vers)
639 echo "configure generated by autoconf version 2.13.1"
643 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
644 # Reject names that are not valid shell variable names.
645 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
646 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
648 ac_package=`echo $ac_package| sed 's/-/_/g'`
653 eval "with_${ac_package}='$ac_optarg'" ;;
655 -without-* | --without-*)
656 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
657 # Reject names that are not valid shell variable names.
658 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
659 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
661 ac_package=`echo $ac_package| sed 's/-/_/g'`
662 eval "with_${ac_package}=no" ;;
665 # Obsolete; use --with-x.
668 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
669 | --x-incl | --x-inc | --x-in | --x-i)
670 ac_prev=x_includes ;;
671 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
672 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
673 x_includes="$ac_optarg" ;;
675 -x-libraries | --x-libraries | --x-librarie | --x-librari \
676 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
677 ac_prev=x_libraries ;;
678 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
679 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
680 x_libraries="$ac_optarg" ;;
682 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
686 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
687 echo "configure: warning: $ac_option: invalid host type" 1>&2
689 if test "x$nonopt" != xNONE; then
690 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
698 if test -n "$ac_prev"; then
699 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
702 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
704 # File descriptor usage:
707 # 2 errors and warnings
708 # 3 some systems may open it to /dev/tty
709 # 4 used on the Kubota Titan
710 # 6 checking for... messages and results
711 # 5 compiler messages saved in config.log
712 if test "$silent" = yes; then
720 This file contains any messages produced by compilers while
721 running configure, to aid debugging if configure makes a mistake.
724 # Strip out --no-create and --no-recursion so they do not pile up.
725 # Also quote any args containing shell metacharacters.
730 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
731 | --no-cr | --no-c) ;;
732 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
733 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
734 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
735 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
736 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
741 # Only set these to C if already set. These must not be set unconditionally
742 # because not all systems understand e.g. LANG=C (notably SCO).
743 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
744 # Non-C LC_CTYPE values break the ctype check.
745 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
746 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
747 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
748 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
751 rm -rf conftest* confdefs.h
752 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
755 # A filename unique to this package, relative to the directory that
756 # configure is in, which we can look for to find out if srcdir is correct.
757 ac_unique_file=build/version.sh
759 # Find the source files, if location was not specified.
760 if test -z "$srcdir"; then
761 ac_srcdir_defaulted=yes
762 # Try the directory containing this script, then its parent.
764 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
765 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
767 if test ! -r $srcdir/$ac_unique_file; then
771 ac_srcdir_defaulted=no
773 if test ! -r $srcdir/$ac_unique_file; then
774 if test "$ac_srcdir_defaulted" = yes; then
775 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
777 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
780 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
782 # Prefer explicitly selected file to automatically selected ones.
783 if test -z "$CONFIG_SITE"; then
784 if test "x$prefix" != xNONE; then
785 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
787 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
790 for ac_site_file in $CONFIG_SITE; do
791 if test -r "$ac_site_file"; then
792 echo "loading site script $ac_site_file"
799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
800 ac_cpp='$CPP $CPPFLAGS'
801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
803 cross_compiling=$ac_cv_prog_cc_cross
807 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
808 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
809 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
816 ac_n= ac_c='\c' ac_t=
820 # set unset (borrowed from autoconf 2.49c)
821 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
827 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
830 for ac_dir in build $srcdir/build; do
831 if test -f $ac_dir/install-sh; then
833 ac_install_sh="$ac_aux_dir/install-sh -c"
835 elif test -f $ac_dir/install.sh; then
837 ac_install_sh="$ac_aux_dir/install.sh -c"
839 elif test -f $ac_dir/shtool; then
841 ac_install_sh="$ac_aux_dir/shtool install -c"
845 if test -z "$ac_aux_dir"; then
846 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
848 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
849 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
850 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
852 eval `$ac_aux_dir/version.sh`
853 if test -z "$OL_STRING"; then
854 { echo "configure: error: could not determine version" 1>&2; exit 1; }
857 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
858 ac_cv_shtool="$ac_aux_dir/shtool"
860 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
863 SHTOOL="$ac_cv_shtool"
866 TB=`$SHTOOL echo -e %B`
867 TN=`$SHTOOL echo -e %b`
869 echo "Configuring $TB$OL_STRING$TN ..."
872 echo $ac_n "checking host system type""... $ac_c" 1>&6
873 echo "configure:874: checking host system type" >&5
874 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
876 # Make sure we can run config.sub.
877 if $ac_config_sub sun4 >/dev/null 2>&1; then :
878 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
881 ac_cv_host_alias=$host
882 case "$ac_cv_host_alias" in
886 if ac_cv_host_alias=`$ac_config_guess`; then :
887 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
889 *) ac_cv_host_alias=$nonopt ;;
893 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
894 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
898 echo $ac_n "(cached) $ac_c" 1>&6
901 echo "$ac_t""$ac_cv_host" 1>&6
904 host_alias=$ac_cv_host_alias
905 host_cpu=$ac_cv_host_cpu
906 host_vendor=$ac_cv_host_vendor
907 host_os=$ac_cv_host_os
913 echo $ac_n "checking target system type""... $ac_c" 1>&6
914 echo "configure:915: checking target system type" >&5
915 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
917 # Make sure we can run config.sub.
918 if $ac_config_sub sun4 >/dev/null 2>&1; then :
919 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
922 ac_cv_target_alias=$target
923 case "$ac_cv_target_alias" in
927 ac_cv_target_alias=$host_alias ;;
929 *) ac_cv_target_alias=$nonopt ;;
933 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
934 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
935 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
936 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
938 echo $ac_n "(cached) $ac_c" 1>&6
941 echo "$ac_t""$ac_cv_target" 1>&6
944 target_alias=$ac_cv_target_alias
945 target_cpu=$ac_cv_target_cpu
946 target_vendor=$ac_cv_target_vendor
947 target_os=$ac_cv_target_os
953 echo $ac_n "checking build system type""... $ac_c" 1>&6
954 echo "configure:955: checking build system type" >&5
955 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
957 # Make sure we can run config.sub.
958 if $ac_config_sub sun4 >/dev/null 2>&1; then :
959 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
962 ac_cv_build_alias=$build
963 case "$ac_cv_build_alias" in
967 ac_cv_build_alias=$host_alias ;;
969 *) ac_cv_build_alias=$nonopt ;;
973 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
974 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
975 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
976 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
978 echo $ac_n "(cached) $ac_c" 1>&6
981 echo "$ac_t""$ac_cv_build" 1>&6
984 build_alias=$ac_cv_build_alias
985 build_cpu=$ac_cv_build_cpu
986 build_vendor=$ac_cv_build_vendor
987 build_os=$ac_cv_build_os
993 # Do some error checking and defaulting for the host and target type.
995 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
998 # 1. You are not allowed to specify --host, --target, and nonopt at the
1000 # 2. Host defaults to nonopt.
1001 # 3. If nonopt is not specified, then host defaults to the current host,
1002 # as determined by config.guess.
1003 # 4. Target and build default to nonopt.
1004 # 5. If nonopt is not specified, then target and build default to host.
1006 # The aliases save the names the user supplied, while $host etc.
1007 # will get canonicalized.
1008 case $host---$target---$nonopt in
1009 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1010 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1013 test "$host_alias" != "$target_alias" &&
1014 test "$program_prefix$program_suffix$program_transform_name" = \
1016 program_prefix=${target_alias}-
1019 # Find a good install program. We prefer a C program (faster),
1020 # so one script is as good as another. But avoid the broken or
1021 # incompatible versions:
1022 # SysV /etc/install, /usr/sbin/install
1023 # SunOS /usr/etc/install
1024 # IRIX /sbin/install
1026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1029 # ./install, which can be erroneously created by make from ./install.sh.
1030 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1031 echo "configure:1032: checking for a BSD compatible install" >&5
1032 if test -z "$INSTALL"; then
1033 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1036 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1037 for ac_dir in $PATH; do
1038 # Account for people who put trailing slashes in PATH elements.
1040 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1042 # OSF1 and SCO ODT 3.0 have their own names for install.
1043 # Don't use installbsd from OSF since it installs stuff as root
1045 for ac_prog in ginstall scoinst install; do
1046 if test -f $ac_dir/$ac_prog; then
1047 if test $ac_prog = install &&
1048 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1049 # AIX install. It has an incompatible calling convention.
1051 elif test $ac_prog = install &&
1052 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1053 # program-specific install script used by HP pwplus--don't use.
1056 ac_cv_path_install="$ac_dir/$ac_prog -c"
1067 if test "${ac_cv_path_install+set}" = set; then
1068 INSTALL="$ac_cv_path_install"
1070 # As a last resort, use the slow shell script. We don't cache a
1071 # path for INSTALL within a source directory, because that will
1072 # break other packages using the cache if that directory is
1073 # removed, or if the path is relative.
1074 INSTALL="$ac_install_sh"
1077 echo "$ac_t""$INSTALL" 1>&6
1079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1080 # It thinks the first close brace ends the variable substitution.
1081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1085 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1087 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether build environment is sane" >&5
1091 echo timestamp > conftestfile
1092 # Do `set' in a subshell so we don't clobber the current shell's
1093 # arguments. Must try -L first in case configure is actually a
1094 # symlink; some systems play weird games with the mod time of symlinks
1095 # (eg FreeBSD returns the mod time of the symlink's containing
1098 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1099 if test "$*" = "X"; then
1101 set X `ls -t $srcdir/configure conftestfile`
1103 if test "$*" != "X $srcdir/configure conftestfile" \
1104 && test "$*" != "X conftestfile $srcdir/configure"; then
1106 # If neither matched, then we have a broken ls. This can happen
1107 # if, for instance, CONFIG_SHELL is bash and it inherits a
1108 # broken ls alias from the environment. This has actually
1109 # happened. Such a system could not be considered "sane".
1110 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1111 alias in your environment" 1>&2; exit 1; }
1114 test "$2" = conftestfile
1120 { echo "configure: error: newly created file is older than distributed files!
1121 Check your system clock" 1>&2; exit 1; }
1124 echo "$ac_t""yes" 1>&6
1125 if test "$program_transform_name" = s,x,x,; then
1126 program_transform_name=
1128 # Double any \ or $. echo might interpret backslashes.
1129 cat <<\EOF_SED > conftestsed
1130 s,\\,\\\\,g; s,\$,$$,g
1132 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1135 test "$program_prefix" != NONE &&
1136 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1137 # Use a double $ so make ignores it.
1138 test "$program_suffix" != NONE &&
1139 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1141 # sed with no file args requires a program.
1142 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1144 for ac_prog in mawk gawk nawk awk
1146 # Extract the first word of "$ac_prog", so it can be a program name with args.
1147 set dummy $ac_prog; ac_word=$2
1148 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1149 echo "configure:1150: checking for $ac_word" >&5
1150 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1153 if test -n "$AWK"; then
1154 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1158 for ac_dir in $ac_dummy; do
1159 test -z "$ac_dir" && ac_dir=.
1160 if test -f $ac_dir/$ac_word; then
1161 ac_cv_prog_AWK="$ac_prog"
1168 AWK="$ac_cv_prog_AWK"
1169 if test -n "$AWK"; then
1170 echo "$ac_t""$AWK" 1>&6
1172 echo "$ac_t""no" 1>&6
1175 test -n "$AWK" && break
1178 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1179 echo "configure:1180: checking whether ${MAKE-make} sets \${MAKE}" >&5
1180 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1181 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 cat > conftestmake <<\EOF
1186 @echo 'ac_maketemp="${MAKE}"'
1188 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1189 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1190 if test -n "$ac_maketemp"; then
1191 eval ac_cv_prog_make_${ac_make}_set=yes
1193 eval ac_cv_prog_make_${ac_make}_set=no
1197 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1198 echo "$ac_t""yes" 1>&6
1201 echo "$ac_t""no" 1>&6
1202 SET_MAKE="MAKE=${MAKE-make}"
1211 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1212 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1217 missing_dir=`cd $ac_aux_dir && pwd`
1218 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1219 echo "configure:1220: checking for working aclocal" >&5
1220 # Run test in a subshell; some versions of sh will print an error if
1221 # an executable is not found, even if stderr is redirected.
1222 # Redirect stdin to placate older versions of autoconf. Sigh.
1223 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1225 echo "$ac_t""found" 1>&6
1227 ACLOCAL="$missing_dir/missing aclocal"
1228 echo "$ac_t""missing" 1>&6
1231 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1232 echo "configure:1233: checking for working autoconf" >&5
1233 # Run test in a subshell; some versions of sh will print an error if
1234 # an executable is not found, even if stderr is redirected.
1235 # Redirect stdin to placate older versions of autoconf. Sigh.
1236 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1238 echo "$ac_t""found" 1>&6
1240 AUTOCONF="$missing_dir/missing autoconf"
1241 echo "$ac_t""missing" 1>&6
1244 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1245 echo "configure:1246: checking for working automake" >&5
1246 # Run test in a subshell; some versions of sh will print an error if
1247 # an executable is not found, even if stderr is redirected.
1248 # Redirect stdin to placate older versions of autoconf. Sigh.
1249 if (automake --version) < /dev/null > /dev/null 2>&1; then
1251 echo "$ac_t""found" 1>&6
1253 AUTOMAKE="$missing_dir/missing automake"
1254 echo "$ac_t""missing" 1>&6
1257 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1258 echo "configure:1259: checking for working autoheader" >&5
1259 # Run test in a subshell; some versions of sh will print an error if
1260 # an executable is not found, even if stderr is redirected.
1261 # Redirect stdin to placate older versions of autoconf. Sigh.
1262 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1263 AUTOHEADER=autoheader
1264 echo "$ac_t""found" 1>&6
1266 AUTOHEADER="$missing_dir/missing autoheader"
1267 echo "$ac_t""missing" 1>&6
1270 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1271 echo "configure:1272: checking for working makeinfo" >&5
1272 # Run test in a subshell; some versions of sh will print an error if
1273 # an executable is not found, even if stderr is redirected.
1274 # Redirect stdin to placate older versions of autoconf. Sigh.
1275 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1277 echo "$ac_t""found" 1>&6
1279 MAKEINFO="$missing_dir/missing makeinfo"
1280 echo "$ac_t""missing" 1>&6
1283 install_sh="$missing_dir/install-sh"
1284 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1286 for ac_prog in gnutar gtar tar
1288 # Extract the first word of "$ac_prog", so it can be a program name with args.
1289 set dummy $ac_prog; ac_word=$2
1290 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1291 echo "configure:1292: checking for $ac_word" >&5
1292 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1295 if test -n "$AMTAR"; then
1296 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1298 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1300 for ac_dir in $ac_dummy; do
1301 test -z "$ac_dir" && ac_dir=.
1302 if test -f $ac_dir/$ac_word; then
1303 ac_cv_prog_AMTAR="$ac_prog"
1310 AMTAR="$ac_cv_prog_AMTAR"
1311 if test -n "$AMTAR"; then
1312 echo "$ac_t""$AMTAR" 1>&6
1314 echo "$ac_t""no" 1>&6
1317 test -n "$AMTAR" && break
1322 if test -n "$AMTAR"; then
1323 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1328 cat >> confdefs.h <<EOF
1329 #define OPENLDAP_PACKAGE "$PACKAGE"
1332 cat >> confdefs.h <<EOF
1333 #define OPENLDAP_VERSION "$VERSION"
1337 cat >> confdefs.h <<EOF
1338 #define LDAP_VENDOR_VERSION $OL_API_INC
1341 cat >> confdefs.h <<EOF
1342 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1345 cat >> confdefs.h <<EOF
1346 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1349 cat >> confdefs.h <<EOF
1350 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1354 OPENLDAP_LIBVERSION=$OL_API_LIB
1358 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1359 echo "configure:1360: checking configure arguments" >&5
1364 ldap_subdir="/openldap"
1366 # Check whether --with-subdir or --without-subdir was given.
1367 if test "${with_subdir+set}" = set; then
1368 withval="$with_subdir"
1375 ldap_subdir="$withval"
1378 ldap_subdir="/$withval"
1385 # OpenLDAP --enable-debug
1386 # Check whether --enable-debug or --disable-debug was given.
1387 if test "${enable_debug+set}" = set; then
1388 enableval="$enable_debug"
1391 for ol_val in auto yes no ; do
1392 if test "$enableval" = "$ol_val" ; then
1396 if test "$ol_arg" = "invalid" ; then
1397 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1399 ol_enable_debug="$ol_arg"
1402 ol_enable_debug="yes"
1404 # end --enable-debug
1405 # OpenLDAP --enable-syslog
1406 # Check whether --enable-syslog or --disable-syslog was given.
1407 if test "${enable_syslog+set}" = set; then
1408 enableval="$enable_syslog"
1411 for ol_val in auto yes no ; do
1412 if test "$enableval" = "$ol_val" ; then
1416 if test "$ol_arg" = "invalid" ; then
1417 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1419 ol_enable_syslog="$ol_arg"
1422 ol_enable_syslog="auto"
1424 # end --enable-syslog
1425 # OpenLDAP --enable-proctitle
1426 # Check whether --enable-proctitle or --disable-proctitle was given.
1427 if test "${enable_proctitle+set}" = set; then
1428 enableval="$enable_proctitle"
1431 for ol_val in auto yes no ; do
1432 if test "$enableval" = "$ol_val" ; then
1436 if test "$ol_arg" = "invalid" ; then
1437 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1439 ol_enable_proctitle="$ol_arg"
1442 ol_enable_proctitle="yes"
1444 # end --enable-proctitle
1445 # OpenLDAP --enable-cache
1446 # Check whether --enable-cache or --disable-cache was given.
1447 if test "${enable_cache+set}" = set; then
1448 enableval="$enable_cache"
1451 for ol_val in auto yes no ; do
1452 if test "$enableval" = "$ol_val" ; then
1456 if test "$ol_arg" = "invalid" ; then
1457 { echo "configure: error: bad value $enableval for --enable-cache" 1>&2; exit 1; }
1459 ol_enable_cache="$ol_arg"
1462 ol_enable_cache="no"
1464 # end --enable-cache
1465 # OpenLDAP --enable-referrals
1466 # Check whether --enable-referrals or --disable-referrals was given.
1467 if test "${enable_referrals+set}" = set; then
1468 enableval="$enable_referrals"
1471 for ol_val in auto yes no ; do
1472 if test "$enableval" = "$ol_val" ; then
1476 if test "$ol_arg" = "invalid" ; then
1477 { echo "configure: error: bad value $enableval for --enable-referrals" 1>&2; exit 1; }
1479 ol_enable_referrals="$ol_arg"
1482 ol_enable_referrals="no"
1484 # end --enable-referrals
1485 # OpenLDAP --enable-kbind
1486 # Check whether --enable-kbind or --disable-kbind was given.
1487 if test "${enable_kbind+set}" = set; then
1488 enableval="$enable_kbind"
1491 for ol_val in auto yes no ; do
1492 if test "$enableval" = "$ol_val" ; then
1496 if test "$ol_arg" = "invalid" ; then
1497 { echo "configure: error: bad value $enableval for --enable-kbind" 1>&2; exit 1; }
1499 ol_enable_kbind="$ol_arg"
1502 ol_enable_kbind="no"
1504 # end --enable-kbind
1505 # OpenLDAP --enable-ipv6
1506 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1507 if test "${enable_ipv6+set}" = set; then
1508 enableval="$enable_ipv6"
1511 for ol_val in auto yes no ; do
1512 if test "$enableval" = "$ol_val" ; then
1516 if test "$ol_arg" = "invalid" ; then
1517 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1519 ol_enable_ipv6="$ol_arg"
1522 ol_enable_ipv6="auto"
1525 # OpenLDAP --enable-local
1526 # Check whether --enable-local or --disable-local was given.
1527 if test "${enable_local+set}" = set; then
1528 enableval="$enable_local"
1531 for ol_val in auto yes no ; do
1532 if test "$enableval" = "$ol_val" ; then
1536 if test "$ol_arg" = "invalid" ; then
1537 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1539 ol_enable_local="$ol_arg"
1542 ol_enable_local="auto"
1544 # end --enable-local
1545 # OpenLDAP --enable-rewrite
1546 # Check whether --enable-rewrite or --disable-rewrite was given.
1547 if test "${enable_rewrite+set}" = set; then
1548 enableval="$enable_rewrite"
1551 for ol_val in auto yes no ; do
1552 if test "$enableval" = "$ol_val" ; then
1556 if test "$ol_arg" = "invalid" ; then
1557 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1559 ol_enable_rewrite="$ol_arg"
1562 ol_enable_rewrite="no"
1564 # end --enable-rewrite
1565 # OpenLDAP --enable-x_compile
1566 # Check whether --enable-x_compile or --disable-x_compile was given.
1567 if test "${enable_x_compile+set}" = set; then
1568 enableval="$enable_x_compile"
1571 for ol_val in yes no ; do
1572 if test "$enableval" = "$ol_val" ; then
1576 if test "$ol_arg" = "invalid" ; then
1577 { echo "configure: error: bad value $enableval for --enable-x_compile" 1>&2; exit 1; }
1579 ol_enable_x_compile="$ol_arg"
1582 ol_enable_x_compile="no"
1584 # end --enable-x_compile
1587 # OpenLDAP --with-cyrus_sasl
1588 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1589 if test "${with_cyrus_sasl+set}" = set; then
1590 withval="$with_cyrus_sasl"
1593 for ol_val in auto yes no ; do
1594 if test "$withval" = "$ol_val" ; then
1598 if test "$ol_arg" = "invalid" ; then
1599 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1601 ol_with_cyrus_sasl="$ol_arg"
1604 ol_with_cyrus_sasl="auto"
1606 # end --with-cyrus_sasl
1608 # OpenLDAP --with-fetch
1609 # Check whether --with-fetch or --without-fetch was given.
1610 if test "${with_fetch+set}" = set; then
1611 withval="$with_fetch"
1614 for ol_val in auto yes no ; do
1615 if test "$withval" = "$ol_val" ; then
1619 if test "$ol_arg" = "invalid" ; then
1620 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1622 ol_with_fetch="$ol_arg"
1625 ol_with_fetch="auto"
1629 # OpenLDAP --with-kerberos
1630 # Check whether --with-kerberos or --without-kerberos was given.
1631 if test "${with_kerberos+set}" = set; then
1632 withval="$with_kerberos"
1635 for ol_val in auto k5 k5only k425 kth k4 afs yes no ; do
1636 if test "$withval" = "$ol_val" ; then
1640 if test "$ol_arg" = "invalid" ; then
1641 { echo "configure: error: bad value $withval for --with-kerberos" 1>&2; exit 1; }
1643 ol_with_kerberos="$ol_arg"
1646 ol_with_kerberos="auto"
1648 # end --with-kerberos
1650 # OpenLDAP --with-readline
1651 # Check whether --with-readline or --without-readline was given.
1652 if test "${with_readline+set}" = set; then
1653 withval="$with_readline"
1656 for ol_val in auto yes no ; do
1657 if test "$withval" = "$ol_val" ; then
1661 if test "$ol_arg" = "invalid" ; then
1662 { echo "configure: error: bad value $withval for --with-readline" 1>&2; exit 1; }
1664 ol_with_readline="$ol_arg"
1667 ol_with_readline="auto"
1669 # end --with-readline
1671 # OpenLDAP --with-threads
1672 # Check whether --with-threads or --without-threads was given.
1673 if test "${with_threads+set}" = set; then
1674 withval="$with_threads"
1677 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1678 if test "$withval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1685 ol_with_threads="$ol_arg"
1688 ol_with_threads="auto"
1690 # end --with-threads
1692 # OpenLDAP --with-tls
1693 # Check whether --with-tls or --without-tls was given.
1694 if test "${with_tls+set}" = set; then
1698 for ol_val in auto ssleay openssl yes no ; do
1699 if test "$withval" = "$ol_val" ; then
1703 if test "$ol_arg" = "invalid" ; then
1704 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1706 ol_with_tls="$ol_arg"
1713 # OpenLDAP --with-yielding_select
1714 # Check whether --with-yielding_select or --without-yielding_select was given.
1715 if test "${with_yielding_select+set}" = set; then
1716 withval="$with_yielding_select"
1719 for ol_val in auto yes no manual ; do
1720 if test "$withval" = "$ol_val" ; then
1724 if test "$ol_arg" = "invalid" ; then
1725 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1727 ol_with_yielding_select="$ol_arg"
1730 ol_with_yielding_select="auto"
1732 # end --with-yielding_select
1736 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1737 if test "${with_xxslapdoptions+set}" = set; then
1738 withval="$with_xxslapdoptions"
1742 # OpenLDAP --enable-slapd
1743 # Check whether --enable-slapd or --disable-slapd was given.
1744 if test "${enable_slapd+set}" = set; then
1745 enableval="$enable_slapd"
1748 for ol_val in auto yes no ; do
1749 if test "$enableval" = "$ol_val" ; then
1753 if test "$ol_arg" = "invalid" ; then
1754 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1756 ol_enable_slapd="$ol_arg"
1759 ol_enable_slapd="yes"
1761 # end --enable-slapd
1762 # OpenLDAP --enable-aci
1763 # Check whether --enable-aci or --disable-aci was given.
1764 if test "${enable_aci+set}" = set; then
1765 enableval="$enable_aci"
1768 for ol_val in auto yes no ; do
1769 if test "$enableval" = "$ol_val" ; then
1773 if test "$ol_arg" = "invalid" ; then
1774 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1776 ol_enable_aci="$ol_arg"
1782 # OpenLDAP --enable-cleartext
1783 # Check whether --enable-cleartext or --disable-cleartext was given.
1784 if test "${enable_cleartext+set}" = set; then
1785 enableval="$enable_cleartext"
1788 for ol_val in auto yes no ; do
1789 if test "$enableval" = "$ol_val" ; then
1793 if test "$ol_arg" = "invalid" ; then
1794 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1796 ol_enable_cleartext="$ol_arg"
1799 ol_enable_cleartext="yes"
1801 # end --enable-cleartext
1802 # OpenLDAP --enable-crypt
1803 # Check whether --enable-crypt or --disable-crypt was given.
1804 if test "${enable_crypt+set}" = set; then
1805 enableval="$enable_crypt"
1808 for ol_val in auto yes no ; do
1809 if test "$enableval" = "$ol_val" ; then
1813 if test "$ol_arg" = "invalid" ; then
1814 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1816 ol_enable_crypt="$ol_arg"
1819 ol_enable_crypt="no"
1821 # end --enable-crypt
1822 # OpenLDAP --enable-dynamic
1823 # Check whether --enable-dynamic or --disable-dynamic was given.
1824 if test "${enable_dynamic+set}" = set; then
1825 enableval="$enable_dynamic"
1828 for ol_val in auto yes no ; do
1829 if test "$enableval" = "$ol_val" ; then
1833 if test "$ol_arg" = "invalid" ; then
1834 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1836 ol_enable_dynamic="$ol_arg"
1839 ol_enable_dynamic="no"
1841 # end --enable-dynamic
1842 # OpenLDAP --enable-kpasswd
1843 # Check whether --enable-kpasswd or --disable-kpasswd was given.
1844 if test "${enable_kpasswd+set}" = set; then
1845 enableval="$enable_kpasswd"
1848 for ol_val in auto yes no ; do
1849 if test "$enableval" = "$ol_val" ; then
1853 if test "$ol_arg" = "invalid" ; then
1854 { echo "configure: error: bad value $enableval for --enable-kpasswd" 1>&2; exit 1; }
1856 ol_enable_kpasswd="$ol_arg"
1859 ol_enable_kpasswd="no"
1861 # end --enable-kpasswd
1862 # OpenLDAP --enable-lmpasswd
1863 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1864 if test "${enable_lmpasswd+set}" = set; then
1865 enableval="$enable_lmpasswd"
1868 for ol_val in auto yes no ; do
1869 if test "$enableval" = "$ol_val" ; then
1873 if test "$ol_arg" = "invalid" ; then
1874 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1876 ol_enable_lmpasswd="$ol_arg"
1879 ol_enable_lmpasswd="no"
1881 # end --enable-lmpasswd
1882 # OpenLDAP --enable-spasswd
1883 # Check whether --enable-spasswd or --disable-spasswd was given.
1884 if test "${enable_spasswd+set}" = set; then
1885 enableval="$enable_spasswd"
1888 for ol_val in auto yes no ; do
1889 if test "$enableval" = "$ol_val" ; then
1893 if test "$ol_arg" = "invalid" ; then
1894 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1896 ol_enable_spasswd="$ol_arg"
1899 ol_enable_spasswd="no"
1901 # end --enable-spasswd
1902 # OpenLDAP --enable-modules
1903 # Check whether --enable-modules or --disable-modules was given.
1904 if test "${enable_modules+set}" = set; then
1905 enableval="$enable_modules"
1908 for ol_val in auto yes no ; do
1909 if test "$enableval" = "$ol_val" ; then
1913 if test "$ol_arg" = "invalid" ; then
1914 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1916 ol_enable_modules="$ol_arg"
1919 ol_enable_modules="no"
1921 # end --enable-modules
1922 # OpenLDAP --enable-phonetic
1923 # Check whether --enable-phonetic or --disable-phonetic was given.
1924 if test "${enable_phonetic+set}" = set; then
1925 enableval="$enable_phonetic"
1928 for ol_val in auto yes no ; do
1929 if test "$enableval" = "$ol_val" ; then
1933 if test "$ol_arg" = "invalid" ; then
1934 { echo "configure: error: bad value $enableval for --enable-phonetic" 1>&2; exit 1; }
1936 ol_enable_phonetic="$ol_arg"
1939 ol_enable_phonetic="no"
1941 # end --enable-phonetic
1942 # OpenLDAP --enable-rlookups
1943 # Check whether --enable-rlookups or --disable-rlookups was given.
1944 if test "${enable_rlookups+set}" = set; then
1945 enableval="$enable_rlookups"
1948 for ol_val in auto yes no ; do
1949 if test "$enableval" = "$ol_val" ; then
1953 if test "$ol_arg" = "invalid" ; then
1954 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1956 ol_enable_rlookups="$ol_arg"
1959 ol_enable_rlookups="no"
1961 # end --enable-rlookups
1962 # OpenLDAP --enable-slp
1963 # Check whether --enable-slp or --disable-slp was given.
1964 if test "${enable_slp+set}" = set; then
1965 enableval="$enable_slp"
1968 for ol_val in auto yes no ; do
1969 if test "$enableval" = "$ol_val" ; then
1973 if test "$ol_arg" = "invalid" ; then
1974 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1976 ol_enable_slp="$ol_arg"
1982 # OpenLDAP --enable-wrappers
1983 # Check whether --enable-wrappers or --disable-wrappers was given.
1984 if test "${enable_wrappers+set}" = set; then
1985 enableval="$enable_wrappers"
1988 for ol_val in auto yes no ; do
1989 if test "$enableval" = "$ol_val" ; then
1993 if test "$ol_arg" = "invalid" ; then
1994 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1996 ol_enable_wrappers="$ol_arg"
1999 ol_enable_wrappers="no"
2001 # end --enable-wrappers
2003 # OpenLDAP --enable-bdb
2004 # Check whether --enable-bdb or --disable-bdb was given.
2005 if test "${enable_bdb+set}" = set; then
2006 enableval="$enable_bdb"
2009 for ol_val in auto yes no ; do
2010 if test "$enableval" = "$ol_val" ; then
2014 if test "$ol_arg" = "invalid" ; then
2015 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
2017 ol_enable_bdb="$ol_arg"
2023 # OpenLDAP --with-bdb_module
2024 # Check whether --with-bdb_module or --without-bdb_module was given.
2025 if test "${with_bdb_module+set}" = set; then
2026 withval="$with_bdb_module"
2029 for ol_val in static dynamic ; do
2030 if test "$withval" = "$ol_val" ; then
2034 if test "$ol_arg" = "invalid" ; then
2035 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
2037 ol_with_bdb_module="$ol_arg"
2040 ol_with_bdb_module="static"
2042 # end --with-bdb_module
2044 # OpenLDAP --enable-dnssrv
2045 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2046 if test "${enable_dnssrv+set}" = set; then
2047 enableval="$enable_dnssrv"
2050 for ol_val in auto yes no ; do
2051 if test "$enableval" = "$ol_val" ; then
2055 if test "$ol_arg" = "invalid" ; then
2056 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
2058 ol_enable_dnssrv="$ol_arg"
2061 ol_enable_dnssrv="no"
2063 # end --enable-dnssrv
2064 # OpenLDAP --with-dnssrv_module
2065 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
2066 if test "${with_dnssrv_module+set}" = set; then
2067 withval="$with_dnssrv_module"
2070 for ol_val in static dynamic ; do
2071 if test "$withval" = "$ol_val" ; then
2075 if test "$ol_arg" = "invalid" ; then
2076 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
2078 ol_with_dnssrv_module="$ol_arg"
2081 ol_with_dnssrv_module="static"
2083 # end --with-dnssrv_module
2085 # OpenLDAP --enable-ldap
2086 # Check whether --enable-ldap or --disable-ldap was given.
2087 if test "${enable_ldap+set}" = set; then
2088 enableval="$enable_ldap"
2091 for ol_val in auto yes no ; do
2092 if test "$enableval" = "$ol_val" ; then
2096 if test "$ol_arg" = "invalid" ; then
2097 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2099 ol_enable_ldap="$ol_arg"
2105 # OpenLDAP --with-ldap_module
2106 # Check whether --with-ldap_module or --without-ldap_module was given.
2107 if test "${with_ldap_module+set}" = set; then
2108 withval="$with_ldap_module"
2111 for ol_val in static dynamic ; do
2112 if test "$withval" = "$ol_val" ; then
2116 if test "$ol_arg" = "invalid" ; then
2117 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2119 ol_with_ldap_module="$ol_arg"
2122 ol_with_ldap_module="static"
2124 # end --with-ldap_module
2126 # OpenLDAP --enable-ldbm
2127 # Check whether --enable-ldbm or --disable-ldbm was given.
2128 if test "${enable_ldbm+set}" = set; then
2129 enableval="$enable_ldbm"
2132 for ol_val in auto yes no ; do
2133 if test "$enableval" = "$ol_val" ; then
2137 if test "$ol_arg" = "invalid" ; then
2138 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2140 ol_enable_ldbm="$ol_arg"
2146 # OpenLDAP --with-ldbm_api
2147 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2148 if test "${with_ldbm_api+set}" = set; then
2149 withval="$with_ldbm_api"
2152 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2153 if test "$withval" = "$ol_val" ; then
2157 if test "$ol_arg" = "invalid" ; then
2158 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2160 ol_with_ldbm_api="$ol_arg"
2163 ol_with_ldbm_api="auto"
2165 # end --with-ldbm_api
2167 # OpenLDAP --with-ldbm_module
2168 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2169 if test "${with_ldbm_module+set}" = set; then
2170 withval="$with_ldbm_module"
2173 for ol_val in static dynamic ; do
2174 if test "$withval" = "$ol_val" ; then
2178 if test "$ol_arg" = "invalid" ; then
2179 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2181 ol_with_ldbm_module="$ol_arg"
2184 ol_with_ldbm_module="static"
2186 # end --with-ldbm_module
2188 # OpenLDAP --with-ldbm_type
2189 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2190 if test "${with_ldbm_type+set}" = set; then
2191 withval="$with_ldbm_type"
2194 for ol_val in auto btree hash ; do
2195 if test "$withval" = "$ol_val" ; then
2199 if test "$ol_arg" = "invalid" ; then
2200 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2202 ol_with_ldbm_type="$ol_arg"
2205 ol_with_ldbm_type="auto"
2207 # end --with-ldbm_type
2209 # OpenLDAP --enable-meta
2210 # Check whether --enable-meta or --disable-meta was given.
2211 if test "${enable_meta+set}" = set; then
2212 enableval="$enable_meta"
2215 for ol_val in auto yes no ; do
2216 if test "$enableval" = "$ol_val" ; then
2220 if test "$ol_arg" = "invalid" ; then
2221 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2223 ol_enable_meta="$ol_arg"
2229 # OpenLDAP --with-meta_module
2230 # Check whether --with-meta_module or --without-meta_module was given.
2231 if test "${with_meta_module+set}" = set; then
2232 withval="$with_meta_module"
2235 for ol_val in static dynamic ; do
2236 if test "$withval" = "$ol_val" ; then
2240 if test "$ol_arg" = "invalid" ; then
2241 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2243 ol_with_meta_module="$ol_arg"
2246 ol_with_meta_module="static"
2248 # end --with-meta_module
2250 # OpenLDAP --enable-monitor
2251 # Check whether --enable-monitor or --disable-monitor was given.
2252 if test "${enable_monitor+set}" = set; then
2253 enableval="$enable_monitor"
2256 for ol_val in auto yes no ; do
2257 if test "$enableval" = "$ol_val" ; then
2261 if test "$ol_arg" = "invalid" ; then
2262 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2264 ol_enable_monitor="$ol_arg"
2267 ol_enable_monitor="no"
2269 # end --enable-monitor
2270 # OpenLDAP --with-monitor_module
2271 # Check whether --with-monitor_module or --without-monitor_module was given.
2272 if test "${with_monitor_module+set}" = set; then
2273 withval="$with_monitor_module"
2276 for ol_val in static dynamic ; do
2277 if test "$withval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2284 ol_with_monitor_module="$ol_arg"
2287 ol_with_monitor_module="static"
2289 # end --with-monitor_module
2291 # OpenLDAP --enable-passwd
2292 # Check whether --enable-passwd or --disable-passwd was given.
2293 if test "${enable_passwd+set}" = set; then
2294 enableval="$enable_passwd"
2297 for ol_val in auto yes no ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2305 ol_enable_passwd="$ol_arg"
2308 ol_enable_passwd="no"
2310 # end --enable-passwd
2311 # OpenLDAP --with-passwd_module
2312 # Check whether --with-passwd_module or --without-passwd_module was given.
2313 if test "${with_passwd_module+set}" = set; then
2314 withval="$with_passwd_module"
2317 for ol_val in static dynamic ; do
2318 if test "$withval" = "$ol_val" ; then
2322 if test "$ol_arg" = "invalid" ; then
2323 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2325 ol_with_passwd_module="$ol_arg"
2328 ol_with_passwd_module="static"
2330 # end --with-passwd_module
2332 # OpenLDAP --enable-perl
2333 # Check whether --enable-perl or --disable-perl was given.
2334 if test "${enable_perl+set}" = set; then
2335 enableval="$enable_perl"
2338 for ol_val in auto yes no ; do
2339 if test "$enableval" = "$ol_val" ; then
2343 if test "$ol_arg" = "invalid" ; then
2344 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2346 ol_enable_perl="$ol_arg"
2352 # OpenLDAP --with-perl_module
2353 # Check whether --with-perl_module or --without-perl_module was given.
2354 if test "${with_perl_module+set}" = set; then
2355 withval="$with_perl_module"
2358 for ol_val in static dynamic ; do
2359 if test "$withval" = "$ol_val" ; then
2363 if test "$ol_arg" = "invalid" ; then
2364 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2366 ol_with_perl_module="$ol_arg"
2369 ol_with_perl_module="static"
2371 # end --with-perl_module
2373 # OpenLDAP --enable-shell
2374 # Check whether --enable-shell or --disable-shell was given.
2375 if test "${enable_shell+set}" = set; then
2376 enableval="$enable_shell"
2379 for ol_val in auto yes no ; do
2380 if test "$enableval" = "$ol_val" ; then
2384 if test "$ol_arg" = "invalid" ; then
2385 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2387 ol_enable_shell="$ol_arg"
2390 ol_enable_shell="no"
2392 # end --enable-shell
2393 # OpenLDAP --with-shell_module
2394 # Check whether --with-shell_module or --without-shell_module was given.
2395 if test "${with_shell_module+set}" = set; then
2396 withval="$with_shell_module"
2399 for ol_val in static dynamic ; do
2400 if test "$withval" = "$ol_val" ; then
2404 if test "$ol_arg" = "invalid" ; then
2405 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2407 ol_with_shell_module="$ol_arg"
2410 ol_with_shell_module="static"
2412 # end --with-shell_module
2414 # OpenLDAP --enable-sql
2415 # Check whether --enable-sql or --disable-sql was given.
2416 if test "${enable_sql+set}" = set; then
2417 enableval="$enable_sql"
2420 for ol_val in auto yes no ; do
2421 if test "$enableval" = "$ol_val" ; then
2425 if test "$ol_arg" = "invalid" ; then
2426 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2428 ol_enable_sql="$ol_arg"
2434 # OpenLDAP --with-sql_module
2435 # Check whether --with-sql_module or --without-sql_module was given.
2436 if test "${with_sql_module+set}" = set; then
2437 withval="$with_sql_module"
2440 for ol_val in static dynamic ; do
2441 if test "$withval" = "$ol_val" ; then
2445 if test "$ol_arg" = "invalid" ; then
2446 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2448 ol_with_sql_module="$ol_arg"
2451 ol_with_sql_module="static"
2453 # end --with-sql_module
2455 # OpenLDAP --enable-tcl
2456 # Check whether --enable-tcl or --disable-tcl was given.
2457 if test "${enable_tcl+set}" = set; then
2458 enableval="$enable_tcl"
2461 for ol_val in auto yes no ; do
2462 if test "$enableval" = "$ol_val" ; then
2466 if test "$ol_arg" = "invalid" ; then
2467 { echo "configure: error: bad value $enableval for --enable-tcl" 1>&2; exit 1; }
2469 ol_enable_tcl="$ol_arg"
2475 # OpenLDAP --with-tcl_module
2476 # Check whether --with-tcl_module or --without-tcl_module was given.
2477 if test "${with_tcl_module+set}" = set; then
2478 withval="$with_tcl_module"
2481 for ol_val in static dynamic ; do
2482 if test "$withval" = "$ol_val" ; then
2486 if test "$ol_arg" = "invalid" ; then
2487 { echo "configure: error: bad value $withval for --with-tcl_module" 1>&2; exit 1; }
2489 ol_with_tcl_module="$ol_arg"
2492 ol_with_tcl_module="static"
2494 # end --with-tcl_module
2497 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2498 if test "${with_xxslurpdoptions+set}" = set; then
2499 withval="$with_xxslurpdoptions"
2503 # OpenLDAP --enable-slurpd
2504 # Check whether --enable-slurpd or --disable-slurpd was given.
2505 if test "${enable_slurpd+set}" = set; then
2506 enableval="$enable_slurpd"
2509 for ol_val in auto yes no ; do
2510 if test "$enableval" = "$ol_val" ; then
2514 if test "$ol_arg" = "invalid" ; then
2515 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2517 ol_enable_slurpd="$ol_arg"
2520 ol_enable_slurpd="auto"
2522 # end --enable-slurpd
2524 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2525 if test "${with_xxliboptions+set}" = set; then
2526 withval="$with_xxliboptions"
2530 # Check whether --enable-static or --disable-static was given.
2531 if test "${enable_static+set}" = set; then
2532 enableval="$enable_static"
2533 p=${PACKAGE-default}
2535 yes) enable_static=yes ;;
2536 no) enable_static=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
2553 # Check whether --enable-shared or --disable-shared was given.
2554 if test "${enable_shared+set}" = set; then
2555 enableval="$enable_shared"
2556 p=${PACKAGE-default}
2558 yes) enable_shared=yes ;;
2559 no) enable_shared=no ;;
2562 # Look at the argument we got. We use all the common list separators.
2563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2564 for pkg in $enableval; do
2565 if test "X$pkg" = "X$p"; then
2579 if test $ol_enable_slapd = no ; then
2580 if test $ol_enable_bdb = yes ; then
2581 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2583 if test $ol_enable_dnssrv = yes ; then
2584 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2586 if test $ol_enable_ldap = yes ; then
2587 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2589 if test $ol_enable_ldbm = yes ; then
2590 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2592 if test $ol_enable_meta = yes ; then
2593 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2595 if test $ol_enable_monitor = yes ; then
2596 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2598 if test $ol_enable_passwd = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2601 if test $ol_enable_perl = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2604 if test $ol_enable_shell = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2607 if test $ol_enable_tcl = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-tcl argument" 1>&2
2610 if test $ol_enable_sql = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2613 if test $ol_enable_modules = yes ; then
2614 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2616 if test $ol_enable_wrappers = yes ; then
2617 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2619 if test $ol_enable_phonetic = yes ; then
2620 echo "configure: warning: slapd disabled, ignoring --enable-phonetic argument" 1>&2
2622 if test $ol_enable_rlookups = yes ; then
2623 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2625 if test $ol_enable_aci = yes ; then
2626 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2628 if test $ol_with_ldbm_api != auto ; then
2629 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2631 if test $ol_with_ldbm_type != auto ; then
2632 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2634 if test $ol_with_bdb_module != static ; then
2635 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2637 if test $ol_with_dnssrv_module != static ; then
2638 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2640 if test $ol_with_ldap_module != static ; then
2641 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2643 if test $ol_with_ldbm_module != static ; then
2644 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2646 if test $ol_with_meta_module != static ; then
2647 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2649 if test $ol_with_monitor_module != static ; then
2650 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2652 if test $ol_with_passwd_module != static ; then
2653 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2655 if test $ol_with_perl_module != static ; then
2656 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2658 if test $ol_with_shell_module != static ; then
2659 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2661 if test $ol_with_tcl_module != static ; then
2662 echo "configure: warning: slapd disabled, ignoring --with-tcl-module argument" 1>&2
2664 if test $ol_with_sql_module != static ; then
2665 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2667 if test $ol_enable_slurpd = yes ; then
2668 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2670 if test $ol_enable_rewrite = yes ; then
2671 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2674 # force settings to no
2680 ol_enable_monitor=no
2687 ol_enable_modules=no
2688 ol_enable_phonetic=no
2689 ol_enable_rlookups=no
2691 ol_enable_wrappers=no
2692 ol_enable_dynamic=no
2695 ol_with_ldbm_type=no
2697 ol_with_bdb_module=static
2698 ol_with_dnssrv_module=static
2699 ol_with_ldap_module=static
2700 ol_with_ldbm_module=static
2701 ol_with_meta_module=static
2702 ol_with_monitor_module=static
2703 ol_with_passwd_module=static
2704 ol_with_perl_module=static
2705 ol_with_shell_module=static
2706 ol_with_tcl_module=static
2707 ol_with_sql_module=static
2711 ol_enable_rewrite=no
2713 elif test $ol_enable_ldbm = no ; then
2715 if test $ol_with_ldbm_api != auto ; then
2716 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2719 if test $ol_with_ldbm_type != auto ; then
2720 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2723 if test $ol_with_ldbm_module != static ; then
2724 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2727 if test $ol_enable_modules != yes -a \
2728 $ol_enable_bdb = no -a \
2729 $ol_enable_dnssrv = no -a \
2730 $ol_enable_ldap = no -a \
2731 $ol_enable_meta = no -a \
2732 $ol_enable_monitor = no -a \
2733 $ol_enable_passwd = no -a \
2734 $ol_enable_perl = no -a \
2735 $ol_enable_shell = no -a \
2736 $ol_enable_sql = no -a \
2737 $ol_enable_tcl = no ; then
2739 if test $ol_enable_slapd = yes ; then
2740 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2742 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2748 ol_with_ldbm_type=no
2749 ol_with_ldbm_module=static
2751 if test $ol_enable_bdb != no ; then
2752 ol_with_ldbm_api=berkeley
2756 if test $ol_with_ldbm_api = gdbm -a \
2757 $ol_with_ldbm_type = btree ; then
2758 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2760 if test $ol_with_ldbm_api = mdbm -a \
2761 $ol_with_ldbm_type = btree ; then
2762 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2764 if test $ol_with_ldbm_api = ndbm -a \
2765 $ol_with_ldbm_type = btree ; then
2766 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2769 if test $ol_enable_bdb = yes ; then
2770 if test $ol_with_ldbm_api = auto ; then
2771 ol_with_ldbm_api=berkeley
2772 elif test $ol_with_ldbm_api != berkeley ; then
2773 { echo "configure: error: LDBM API not compatible with BDB" 1>&2; exit 1; }
2776 elif test $ol_enable_bdb = auto ; then
2777 if test $ol_with_ldbm_api != berkeley \
2778 -o $ol_with_ldbm_api != auto ; then
2779 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2785 if test $ol_enable_slurpd = yes ; then
2786 if test $ol_with_threads = no ; then
2787 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2791 if test $ol_enable_lmpasswd = yes ; then
2792 if test $ol_with_tls = no ; then
2793 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2797 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2798 if test $ol_with_kerberos = no ; then
2799 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2800 elif test $ol_with_kerberos = auto ; then
2801 ol_with_kerberos=yes
2804 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2805 if test $ol_with_kerberos = auto ; then
2807 elif test $ol_with_kerberos != no ; then
2808 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2813 if test $ol_enable_spasswd = yes ; then
2814 if test $ol_with_cyrus_sasl = no ; then
2815 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2817 ol_with_cyrus_sasl=yes
2820 echo "$ac_t""done" 1>&6
2849 BUILD_BDB_DYNAMIC=static
2850 BUILD_DNSSRV_DYNAMIC=static
2851 BUILD_LDAP_DYNAMIC=static
2852 BUILD_LDBM_DYNAMIC=static
2853 BUILD_META_DYNAMIC=static
2854 BUILD_MONITOR_DYNAMIC=static
2855 BUILD_PASSWD_DYNAMIC=static
2856 BUILD_PERL_DYNAMIC=static
2857 BUILD_SHELL_DYNAMIC=static
2858 BUILD_TCL_DYNAMIC=static
2859 BUILD_SQL_DYNAMIC=static
2861 SLAPD_MODULES_LDFLAGS=
2862 SLAPD_MODULES_CPPFLAGS=
2865 SLAPD_STATIC_BACKENDS=
2866 SLAPD_DYNAMIC_BACKENDS=
2889 # Find a good install program. We prefer a C program (faster),
2890 # so one script is as good as another. But avoid the broken or
2891 # incompatible versions:
2892 # SysV /etc/install, /usr/sbin/install
2893 # SunOS /usr/etc/install
2894 # IRIX /sbin/install
2896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2899 # ./install, which can be erroneously created by make from ./install.sh.
2900 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2901 echo "configure:2902: checking for a BSD compatible install" >&5
2902 if test -z "$INSTALL"; then
2903 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2907 for ac_dir in $PATH; do
2908 # Account for people who put trailing slashes in PATH elements.
2910 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2912 # OSF1 and SCO ODT 3.0 have their own names for install.
2913 # Don't use installbsd from OSF since it installs stuff as root
2915 for ac_prog in ginstall scoinst install; do
2916 if test -f $ac_dir/$ac_prog; then
2917 if test $ac_prog = install &&
2918 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2919 # AIX install. It has an incompatible calling convention.
2921 elif test $ac_prog = install &&
2922 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2923 # program-specific install script used by HP pwplus--don't use.
2926 ac_cv_path_install="$ac_dir/$ac_prog -c"
2937 if test "${ac_cv_path_install+set}" = set; then
2938 INSTALL="$ac_cv_path_install"
2940 # As a last resort, use the slow shell script. We don't cache a
2941 # path for INSTALL within a source directory, because that will
2942 # break other packages using the cache if that directory is
2943 # removed, or if the path is relative.
2944 INSTALL="$ac_install_sh"
2947 echo "$ac_t""$INSTALL" 1>&6
2949 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950 # It thinks the first close brace ends the variable substitution.
2951 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2953 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2955 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2958 cat >> confdefs.h <<\EOF
2959 #define HAVE_MKVERSION 1
2967 *-*-aix*) if test -z "$CC" ; then
2968 case "$ol_with_threads" in
2969 auto | yes | posix) ol_aix_threads=yes ;;
2975 if test $ol_aix_threads = yes ; then
2976 if test -z "${CC}" ; then
2977 for ac_prog in cc_r xlc_r cc
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2982 echo "configure:2983: checking for $ac_word" >&5
2983 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2984 echo $ac_n "(cached) $ac_c" 1>&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC="$CC" # Let the user override the test.
2989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2991 for ac_dir in $ac_dummy; do
2992 test -z "$ac_dir" && ac_dir=.
2993 if test -f $ac_dir/$ac_word; then
2994 ac_cv_prog_CC="$ac_prog"
3002 if test -n "$CC"; then
3003 echo "$ac_t""$CC" 1>&6
3005 echo "$ac_t""no" 1>&6
3008 test -n "$CC" && break
3012 if test "$CC" = cc ; then
3013 if test $ol_with_threads != auto ; then
3014 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3016 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3022 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3023 ol_with_threads=posix
3024 ol_cv_pthread_create=yes
3028 if test -z "${CC}"; then
3031 # Extract the first word of "$ac_prog", so it can be a program name with args.
3032 set dummy $ac_prog; ac_word=$2
3033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3034 echo "configure:3035: checking for $ac_word" >&5
3035 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3036 echo $ac_n "(cached) $ac_c" 1>&6
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3043 for ac_dir in $ac_dummy; do
3044 test -z "$ac_dir" && ac_dir=.
3045 if test -f $ac_dir/$ac_word; then
3046 ac_cv_prog_CC="$ac_prog"
3054 if test -n "$CC"; then
3055 echo "$ac_t""$CC" 1>&6
3057 echo "$ac_t""no" 1>&6
3060 test -n "$CC" && break
3066 for ac_prog in ar gar
3068 # Extract the first word of "$ac_prog", so it can be a program name with args.
3069 set dummy $ac_prog; ac_word=$2
3070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3071 echo "configure:3072: checking for $ac_word" >&5
3072 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 if test -n "$AR"; then
3076 ac_cv_prog_AR="$AR" # Let the user override the test.
3078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3080 for ac_dir in $ac_dummy; do
3081 test -z "$ac_dir" && ac_dir=.
3082 if test -f $ac_dir/$ac_word; then
3083 ac_cv_prog_AR="$ac_prog"
3091 if test -n "$AR"; then
3092 echo "$ac_t""$AR" 1>&6
3094 echo "$ac_t""no" 1>&6
3097 test -n "$AR" && break
3099 test -n "$AR" || AR="ar"
3104 # Find the correct PATH separator. Usually this is `:', but
3105 # DJGPP uses `;' like DOS.
3106 if test "X${PATH_SEPARATOR+set}" != Xset; then
3107 UNAME=${UNAME-`uname 2>/dev/null`}
3109 *-DOS) lt_cv_sys_path_separator=';' ;;
3110 *) lt_cv_sys_path_separator=':' ;;
3112 PATH_SEPARATOR=$lt_cv_sys_path_separator
3115 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3116 echo "configure:3117: checking for Cygwin environment" >&5
3117 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3118 echo $ac_n "(cached) $ac_c" 1>&6
3120 cat > conftest.$ac_ext <<EOF
3121 #line 3122 "configure"
3122 #include "confdefs.h"
3127 #define __CYGWIN__ __CYGWIN32__
3132 if { (eval echo configure:3133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3136 echo "configure: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3144 echo "$ac_t""$ac_cv_cygwin" 1>&6
3146 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3147 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3148 echo "configure:3149: checking for mingw32 environment" >&5
3149 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3152 cat > conftest.$ac_ext <<EOF
3153 #line 3154 "configure"
3154 #include "confdefs.h"
3160 if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3172 echo "$ac_t""$ac_cv_mingw32" 1>&6
3174 test "$ac_cv_mingw32" = yes && MINGW32=yes
3175 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3176 echo "configure:3177: checking for EMX OS/2 environment" >&5
3177 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3180 cat > conftest.$ac_ext <<EOF
3181 #line 3182 "configure"
3182 #include "confdefs.h"
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_emxos2" 1>&6
3202 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3203 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3204 echo "configure:3205: checking how to run the C preprocessor" >&5
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3209 if test -z "$CPP"; then
3210 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3211 echo $ac_n "(cached) $ac_c" 1>&6
3213 # This must be in double quotes, not single quotes, because CPP may get
3214 # substituted into the Makefile and "${CC-cc}" will confuse make.
3216 # On the NeXT, cc -E runs the code through the compiler's parser,
3217 # not just through cpp.
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3225 { (eval echo configure:3226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3227 if test -z "$ac_err"; then
3231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
3234 CPP="${CC-cc} -E -traditional-cpp"
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3241 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3242 { (eval echo configure:3243: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3243 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3244 if test -z "$ac_err"; then
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3251 CPP="${CC-cc} -nologo -E"
3252 cat > conftest.$ac_ext <<EOF
3253 #line 3254 "configure"
3254 #include "confdefs.h"
3258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3259 { (eval echo configure:3260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3261 if test -z "$ac_err"; then
3265 echo "configure: failed program was:" >&5
3266 cat conftest.$ac_ext >&5
3275 ac_cv_prog_CPP="$CPP"
3277 CPP="$ac_cv_prog_CPP"
3279 ac_cv_prog_CPP="$CPP"
3281 echo "$ac_t""$CPP" 1>&6
3283 # Check whether --enable-fast-install or --disable-fast-install was given.
3284 if test "${enable_fast_install+set}" = set; then
3285 enableval="$enable_fast_install"
3286 p=${PACKAGE-default}
3288 yes) enable_fast_install=yes ;;
3289 no) enable_fast_install=no ;;
3291 enable_fast_install=no
3292 # Look at the argument we got. We use all the common list separators.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3294 for pkg in $enableval; do
3295 if test "X$pkg" = "X$p"; then
3296 enable_fast_install=yes
3303 enable_fast_install=yes
3306 # Extract the first word of "gcc", so it can be a program name with args.
3307 set dummy gcc; ac_word=$2
3308 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3309 echo "configure:3310: checking for $ac_word" >&5
3310 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3318 for ac_dir in $ac_dummy; do
3319 test -z "$ac_dir" && ac_dir=.
3320 if test -f $ac_dir/$ac_word; then
3329 if test -n "$CC"; then
3330 echo "$ac_t""$CC" 1>&6
3332 echo "$ac_t""no" 1>&6
3335 if test -z "$CC"; then
3336 # Extract the first word of "cc", so it can be a program name with args.
3337 set dummy cc; ac_word=$2
3338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3339 echo "configure:3340: checking for $ac_word" >&5
3340 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3341 echo $ac_n "(cached) $ac_c" 1>&6
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3346 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3349 for ac_dir in $ac_dummy; do
3350 test -z "$ac_dir" && ac_dir=.
3351 if test -f $ac_dir/$ac_word; then
3352 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3353 ac_prog_rejected=yes
3361 if test $ac_prog_rejected = yes; then
3362 # We found a bogon in the path, so make sure we never use it.
3363 set dummy $ac_cv_prog_CC
3365 if test $# -gt 0; then
3366 # We chose a different compiler from the bogus one.
3367 # However, it has the same basename, so the bogon will be chosen
3368 # first if we set CC to just the basename; use the full file name.
3370 set dummy "$ac_dir/$ac_word" "$@"
3378 if test -n "$CC"; then
3379 echo "$ac_t""$CC" 1>&6
3381 echo "$ac_t""no" 1>&6
3384 if test -z "$CC"; then
3385 case "`uname -s`" in
3386 *win32* | *WIN32* | *CYGWIN*)
3387 # Extract the first word of "cl", so it can be a program name with args.
3388 set dummy cl; ac_word=$2
3389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3390 echo "configure:3391: checking for $ac_word" >&5
3391 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3392 echo $ac_n "(cached) $ac_c" 1>&6
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3399 for ac_dir in $ac_dummy; do
3400 test -z "$ac_dir" && ac_dir=.
3401 if test -f $ac_dir/$ac_word; then
3410 if test -n "$CC"; then
3411 echo "$ac_t""$CC" 1>&6
3413 echo "$ac_t""no" 1>&6
3418 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3421 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3422 echo "configure:3423: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3429 cross_compiling=$ac_cv_prog_cc_cross
3431 cat > conftest.$ac_ext << EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3439 ac_cv_prog_cc_works=yes
3440 # If we can't run a trivial program, we are probably using a cross compiler.
3441 if (./conftest; exit) 2>/dev/null; then
3442 ac_cv_prog_cc_cross=no
3444 ac_cv_prog_cc_cross=yes
3447 echo "configure: failed program was:" >&5
3448 cat conftest.$ac_ext >&5
3449 ac_cv_prog_cc_works=no
3453 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3456 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3457 cross_compiling=$ac_cv_prog_cc_cross
3459 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3460 if test $ac_cv_prog_cc_works = no; then
3461 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3463 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3464 echo "configure:3465: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3465 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3466 cross_compiling=$ac_cv_prog_cc_cross
3468 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3469 echo "configure:3470: checking whether we are using GNU C" >&5
3470 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 cat > conftest.c <<EOF
3478 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3485 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3487 if test $ac_cv_prog_gcc = yes; then
3493 ac_test_CFLAGS="${CFLAGS+set}"
3494 ac_save_CFLAGS="$CFLAGS"
3496 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3497 echo "configure:3498: checking whether ${CC-cc} accepts -g" >&5
3498 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3499 echo $ac_n "(cached) $ac_c" 1>&6
3501 echo 'void f(){}' > conftest.c
3502 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3511 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3512 if test "$ac_test_CFLAGS" = set; then
3513 CFLAGS="$ac_save_CFLAGS"
3514 elif test $ac_cv_prog_cc_g = yes; then
3515 if test "$GCC" = yes; then
3521 if test "$GCC" = yes; then
3528 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3529 if test "${with_gnu_ld+set}" = set; then
3530 withval="$with_gnu_ld"
3531 test "$withval" = no || with_gnu_ld=yes
3537 if test "$GCC" = yes; then
3538 # Check if gcc -print-prog-name=ld gives a path.
3539 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3540 echo "configure:3541: checking for ld used by GCC" >&5
3543 # gcc leaves a trailing carriage return which upsets mingw
3544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3549 # Accept absolute paths.
3550 [\\/]* | [A-Za-z]:[\\/]*)
3551 re_direlt='/[^/][^/]*/\.\./'
3552 # Canonicalize the path of ld
3553 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3554 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3555 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3557 test -z "$LD" && LD="$ac_prog"
3560 # If it fails, then pretend we aren't using GCC.
3564 # If it is relative, then search for the first ld in PATH.
3568 elif test "$with_gnu_ld" = yes; then
3569 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3570 echo "configure:3571: checking for GNU ld" >&5
3572 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3573 echo "configure:3574: checking for non-GNU ld" >&5
3575 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3578 if test -z "$LD"; then
3579 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3580 for ac_dir in $PATH; do
3581 test -z "$ac_dir" && ac_dir=.
3582 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3583 lt_cv_path_LD="$ac_dir/$ac_prog"
3584 # Check to see if the program is GNU ld. I'd rather use --version,
3585 # but apparently some GNU ld's only accept -v.
3586 # Break only if it was the GNU/non-GNU ld that we prefer.
3587 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3588 test "$with_gnu_ld" != no && break
3590 test "$with_gnu_ld" != yes && break
3596 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3601 if test -n "$LD"; then
3602 echo "$ac_t""$LD" 1>&6
3604 echo "$ac_t""no" 1>&6
3606 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3607 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3608 echo "configure:3609: checking if the linker ($LD) is GNU ld" >&5
3609 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3613 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3614 lt_cv_prog_gnu_ld=yes
3616 lt_cv_prog_gnu_ld=no
3620 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3621 with_gnu_ld=$lt_cv_prog_gnu_ld
3624 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3625 echo "configure:3626: checking for $LD option to reload object files" >&5
3626 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3627 echo $ac_n "(cached) $ac_c" 1>&6
3629 lt_cv_ld_reload_flag='-r'
3632 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3633 reload_flag=$lt_cv_ld_reload_flag
3634 test -n "$reload_flag" && reload_flag=" $reload_flag"
3636 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3637 echo "configure:3638: checking for BSD-compatible nm" >&5
3638 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3639 echo $ac_n "(cached) $ac_c" 1>&6
3641 if test -n "$NM"; then
3642 # Let the user override the test.
3645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3646 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3647 test -z "$ac_dir" && ac_dir=.
3648 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3649 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3650 # Check to see if the nm accepts a BSD-compat flag.
3651 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3652 # nm: unknown option "B" ignored
3653 # Tru64's nm complains that /dev/null is an invalid object file
3654 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3655 lt_cv_path_NM="$tmp_nm -B"
3657 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3658 lt_cv_path_NM="$tmp_nm -p"
3661 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3662 continue # so that we can try to find one that supports BSD flags
3667 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3672 echo "$ac_t""$NM" 1>&6
3674 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3675 echo "configure:3676: checking whether ln -s works" >&5
3676 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3680 if ln -s X conftestdata 2>/dev/null
3683 ac_cv_prog_LN_S="ln -s"
3688 LN_S="$ac_cv_prog_LN_S"
3689 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3690 echo "$ac_t""yes" 1>&6
3692 echo "$ac_t""no" 1>&6
3695 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
3696 echo "configure:3697: checking how to recognise dependant libraries" >&5
3697 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3700 lt_cv_file_magic_cmd='$MAGIC_CMD'
3701 lt_cv_file_magic_test_file=
3702 lt_cv_deplibs_check_method='unknown'
3703 # Need to set the preceding variable on all platforms that support
3704 # interlibrary dependencies.
3705 # 'none' -- dependencies not supported.
3706 # `unknown' -- same as none, but documents that we really don't know.
3707 # 'pass_all' -- all dependencies passed with no checks.
3708 # 'test_compile' -- check by making test program.
3709 # 'file_magic [[regex]]' -- check by looking for files in library path
3710 # which responds to the $file_magic_cmd with a given egrep regex.
3711 # If you have `file' or equivalent on your system and you're not sure
3712 # whether `pass_all' will *always* work, you probably want this one.
3716 lt_cv_deplibs_check_method=pass_all
3720 lt_cv_deplibs_check_method=pass_all
3724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3725 lt_cv_file_magic_cmd='/usr/bin/file -L'
3726 lt_cv_file_magic_test_file=/shlib/libc.so
3729 cygwin* | mingw* | pw32*)
3730 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3731 lt_cv_file_magic_cmd='$OBJDUMP -f'
3734 darwin* | rhapsody*)
3735 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3736 lt_cv_file_magic_cmd='/usr/bin/file -L'
3738 rhapsody* | darwin1.[012])
3739 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3742 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3748 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3751 # Not sure whether the presence of OpenBSD here was a mistake.
3752 # Let's accept both of them until this is cleared up.
3753 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3754 lt_cv_file_magic_cmd=/usr/bin/file
3755 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3759 lt_cv_deplibs_check_method=pass_all
3764 lt_cv_deplibs_check_method=pass_all
3768 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3769 lt_cv_file_magic_cmd=/usr/bin/file
3770 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3776 # this will be overridden with pass_all, but let us keep it just in case
3777 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3781 *-32|*"-32 ") libmagic=32-bit;;
3782 *-n32|*"-n32 ") libmagic=N32;;
3783 *-64|*"-64 ") libmagic=64-bit;;
3784 *) libmagic=never-match;;
3786 # this will be overridden with pass_all, but let us keep it just in case
3787 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3790 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3791 lt_cv_deplibs_check_method=pass_all
3794 # This must be Linux ELF.
3797 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3798 lt_cv_deplibs_check_method=pass_all ;;
3800 # glibc up to 2.1.1 does not perform some relocations on ARM
3801 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3803 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3808 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3810 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3816 lt_cv_file_magic_cmd=/usr/bin/file
3817 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3821 lt_cv_file_magic_cmd=/usr/bin/file
3822 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3823 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3824 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3826 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3830 osf3* | osf4* | osf5*)
3831 # this will be overridden with pass_all, but let us keep it just in case
3832 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3833 lt_cv_file_magic_test_file=/shlib/libc.so
3834 lt_cv_deplibs_check_method=pass_all
3838 lt_cv_deplibs_check_method=pass_all
3842 lt_cv_deplibs_check_method=pass_all
3843 lt_cv_file_magic_test_file=/lib/libc.so
3846 sysv5uw[78]* | sysv4*uw2*)
3847 lt_cv_deplibs_check_method=pass_all
3850 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3851 case $host_vendor in
3853 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]'
3854 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3857 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_file_magic_cmd='/bin/file'
3861 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3864 lt_cv_file_magic_cmd='/bin/file'
3865 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3866 lt_cv_file_magic_test_file=/lib/libc.so
3874 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3875 file_magic_cmd=$lt_cv_file_magic_cmd
3876 deplibs_check_method=$lt_cv_deplibs_check_method
3878 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3879 echo "configure:3880: checking for object suffix" >&5
3880 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3881 echo $ac_n "(cached) $ac_c" 1>&6
3884 echo 'int i = 1;' > conftest.$ac_ext
3885 if { (eval echo configure:3886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3886 for ac_file in conftest.*; do
3889 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3893 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3898 echo "$ac_t""$ac_cv_objext" 1>&6
3899 OBJEXT=$ac_cv_objext
3900 ac_objext=$ac_cv_objext
3905 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3906 echo "configure:3907: checking for executable suffix" >&5
3907 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3910 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3914 echo 'int main () { return 0; }' > conftest.$ac_ext
3916 if { (eval echo configure:3917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3917 for file in conftest.*; do
3919 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3920 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3924 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3927 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3932 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3933 echo "$ac_t""${ac_cv_exeext}" 1>&6
3936 if test $host != $build; then
3937 ac_tool_prefix=${host_alias}-
3945 # Check for command to grab the raw symbol name followed by C symbol from nm.
3946 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3947 echo "configure:3948: checking command to parse $NM output" >&5
3948 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 # These are sane defaults that work on at least a few old systems.
3953 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3955 # Character class describing NM global symbol codes.
3956 symcode='[BCDEGRST]'
3958 # Regexp to match symbols that can be accessed directly from C.
3959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3961 # Transform the above into a raw symbol and a C symbol.
3962 symxfrm='\1 \2\3 \3'
3964 # Transform an extracted symbol line into a proper C declaration
3965 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3967 # Transform an extracted symbol line into symbol name and symbol address
3968 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'"
3970 # Define system-specific variables.
3975 cygwin* | mingw* | pw32*)
3976 symcode='[ABCDGISTW]'
3978 hpux*) # Its linker distinguishes data from code symbols
3979 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3980 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'"
3983 symcode='[BCDEGRST]'
3993 # Handle CRLF in mingw tool chain
3997 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4001 # If we're using GNU nm, then use its standard symbol codes.
4002 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4003 symcode='[ABCDGISTW]'
4006 # Try without a prefix undercore, then with it.
4007 for ac_symprfx in "" "_"; do
4009 # Write the raw and C identifiers.
4010 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4012 # Check to see that the pipe works correctly.
4015 cat > conftest.$ac_ext <<EOF
4020 void nm_test_func(){}
4024 int main(){nm_test_var='a';nm_test_func();return(0);}
4027 if { (eval echo configure:4028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4028 # Now try to grab the symbols.
4030 if { (eval echo configure:4031: \"$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
4031 # Try sorting and uniquifying the output.
4032 if sort "$nlist" | uniq > "$nlist"T; then
4033 mv -f "$nlist"T "$nlist"
4038 # Make sure that we snagged all the symbols we need.
4039 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4040 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4041 cat <<EOF > conftest.$ac_ext
4047 # Now generate the symbol file.
4048 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4050 cat <<EOF >> conftest.$ac_ext
4051 #if defined (__STDC__) && __STDC__
4052 # define lt_ptr void *
4054 # define lt_ptr char *
4058 /* The mapping between symbol names and symbols. */
4063 lt_preloaded_symbols[] =
4066 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4067 cat <<\EOF >> conftest.$ac_ext
4075 # Now try linking the two files.
4076 mv conftest.$ac_objext conftstm.$ac_objext
4078 save_CFLAGS="$CFLAGS"
4079 LIBS="conftstm.$ac_objext"
4080 CFLAGS="$CFLAGS$no_builtin_flag"
4081 if { (eval echo configure:4082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4085 CFLAGS="$save_CFLAGS"
4087 echo "cannot find nm_test_func in $nlist" >&5
4090 echo "cannot find nm_test_var in $nlist" >&5
4093 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4096 echo "$progname: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 rm -f conftest* conftst*
4101 # Do not use the global_symbol_pipe unless it works.
4102 if test "$pipe_works" = yes; then
4105 lt_cv_sys_global_symbol_pipe=
4111 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4112 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4113 global_symbol_to_cdecl=
4114 global_symbol_to_c_name_address=
4116 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4117 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4119 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4121 echo "$ac_t""failed" 1>&6
4123 echo "$ac_t""ok" 1>&6
4126 for ac_hdr in dlfcn.h
4128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4130 echo "configure:4131: checking for $ac_hdr" >&5
4131 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4132 echo $ac_n "(cached) $ac_c" 1>&6
4134 cat > conftest.$ac_ext <<EOF
4135 #line 4136 "configure"
4136 #include "confdefs.h"
4139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4140 { (eval echo configure:4141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4142 if test -z "$ac_err"; then
4144 eval "ac_cv_header_$ac_safe=yes"
4147 echo "configure: failed program was:" >&5
4148 cat conftest.$ac_ext >&5
4150 eval "ac_cv_header_$ac_safe=no"
4154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4155 echo "$ac_t""yes" 1>&6
4156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4157 cat >> confdefs.h <<EOF
4158 #define $ac_tr_hdr 1
4162 echo "$ac_t""no" 1>&6
4170 # Only perform the check for file, if the check method requires it
4171 case $deplibs_check_method in
4173 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4174 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4175 echo "configure:4176: checking for ${ac_tool_prefix}file" >&5
4176 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4181 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4187 ac_save_MAGIC_CMD="$MAGIC_CMD"
4188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4189 ac_dummy="/usr/bin:$PATH"
4190 for ac_dir in $ac_dummy; do
4191 test -z "$ac_dir" && ac_dir=.
4192 if test -f $ac_dir/${ac_tool_prefix}file; then
4193 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4194 if test -n "$file_magic_test_file"; then
4195 case $deplibs_check_method in
4197 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4198 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4199 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4200 egrep "$file_magic_regex" > /dev/null; then
4205 *** Warning: the command libtool uses to detect shared libraries,
4206 *** $file_magic_cmd, produces output that libtool cannot recognize.
4207 *** The result is that libtool may fail to recognize shared libraries
4208 *** as such. This will affect the creation of libtool libraries that
4209 *** depend on shared libraries, but programs linked with such libtool
4210 *** libraries will work regardless of this problem. Nevertheless, you
4211 *** may want to report the problem to your system manager and/or to
4212 *** bug-libtool@gnu.org
4222 MAGIC_CMD="$ac_save_MAGIC_CMD"
4227 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4228 if test -n "$MAGIC_CMD"; then
4229 echo "$ac_t""$MAGIC_CMD" 1>&6
4231 echo "$ac_t""no" 1>&6
4234 if test -z "$lt_cv_path_MAGIC_CMD"; then
4235 if test -n "$ac_tool_prefix"; then
4236 echo $ac_n "checking for file""... $ac_c" 1>&6
4237 echo "configure:4238: checking for file" >&5
4238 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4243 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4246 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4249 ac_save_MAGIC_CMD="$MAGIC_CMD"
4250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4251 ac_dummy="/usr/bin:$PATH"
4252 for ac_dir in $ac_dummy; do
4253 test -z "$ac_dir" && ac_dir=.
4254 if test -f $ac_dir/file; then
4255 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4256 if test -n "$file_magic_test_file"; then
4257 case $deplibs_check_method in
4259 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4262 egrep "$file_magic_regex" > /dev/null; then
4267 *** Warning: the command libtool uses to detect shared libraries,
4268 *** $file_magic_cmd, produces output that libtool cannot recognize.
4269 *** The result is that libtool may fail to recognize shared libraries
4270 *** as such. This will affect the creation of libtool libraries that
4271 *** depend on shared libraries, but programs linked with such libtool
4272 *** libraries will work regardless of this problem. Nevertheless, you
4273 *** may want to report the problem to your system manager and/or to
4274 *** bug-libtool@gnu.org
4284 MAGIC_CMD="$ac_save_MAGIC_CMD"
4289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4290 if test -n "$MAGIC_CMD"; then
4291 echo "$ac_t""$MAGIC_CMD" 1>&6
4293 echo "$ac_t""no" 1>&6
4305 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4306 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4308 echo "configure:4309: checking for $ac_word" >&5
4309 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4312 if test -n "$RANLIB"; then
4313 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4317 for ac_dir in $ac_dummy; do
4318 test -z "$ac_dir" && ac_dir=.
4319 if test -f $ac_dir/$ac_word; then
4320 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4327 RANLIB="$ac_cv_prog_RANLIB"
4328 if test -n "$RANLIB"; then
4329 echo "$ac_t""$RANLIB" 1>&6
4331 echo "$ac_t""no" 1>&6
4335 if test -z "$ac_cv_prog_RANLIB"; then
4336 if test -n "$ac_tool_prefix"; then
4337 # Extract the first word of "ranlib", so it can be a program name with args.
4338 set dummy ranlib; ac_word=$2
4339 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4340 echo "configure:4341: checking for $ac_word" >&5
4341 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 if test -n "$RANLIB"; then
4345 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4347 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4349 for ac_dir in $ac_dummy; do
4350 test -z "$ac_dir" && ac_dir=.
4351 if test -f $ac_dir/$ac_word; then
4352 ac_cv_prog_RANLIB="ranlib"
4357 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4360 RANLIB="$ac_cv_prog_RANLIB"
4361 if test -n "$RANLIB"; then
4362 echo "$ac_t""$RANLIB" 1>&6
4364 echo "$ac_t""no" 1>&6
4372 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}strip; ac_word=$2
4374 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4375 echo "configure:4376: checking for $ac_word" >&5
4376 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4377 echo $ac_n "(cached) $ac_c" 1>&6
4379 if test -n "$STRIP"; then
4380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4382 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4384 for ac_dir in $ac_dummy; do
4385 test -z "$ac_dir" && ac_dir=.
4386 if test -f $ac_dir/$ac_word; then
4387 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4394 STRIP="$ac_cv_prog_STRIP"
4395 if test -n "$STRIP"; then
4396 echo "$ac_t""$STRIP" 1>&6
4398 echo "$ac_t""no" 1>&6
4402 if test -z "$ac_cv_prog_STRIP"; then
4403 if test -n "$ac_tool_prefix"; then
4404 # Extract the first word of "strip", so it can be a program name with args.
4405 set dummy strip; ac_word=$2
4406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_word" >&5
4408 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 if test -n "$STRIP"; then
4412 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4416 for ac_dir in $ac_dummy; do
4417 test -z "$ac_dir" && ac_dir=.
4418 if test -f $ac_dir/$ac_word; then
4419 ac_cv_prog_STRIP="strip"
4424 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4427 STRIP="$ac_cv_prog_STRIP"
4428 if test -n "$STRIP"; then
4429 echo "$ac_t""$STRIP" 1>&6
4431 echo "$ac_t""no" 1>&6
4441 enable_win32_dll=yes
4443 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4444 if test "${enable_libtool_lock+set}" = set; then
4445 enableval="$enable_libtool_lock"
4449 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4451 # Some flags need to be propagated to the compiler or linker for good
4455 # Find out which ABI we are using.
4456 echo '#line 4457 "configure"' > conftest.$ac_ext
4457 if { (eval echo configure:4458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4458 case `/usr/bin/file conftest.$ac_objext` in
4474 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4475 SAVE_CFLAGS="$CFLAGS"
4476 CFLAGS="$CFLAGS -belf"
4477 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4478 echo "configure:4479: checking whether the C compiler needs -belf" >&5
4479 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4480 echo $ac_n "(cached) $ac_c" 1>&6
4484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4485 ac_cpp='$CPP $CPPFLAGS'
4486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488 cross_compiling=$ac_cv_prog_cc_cross
4490 cat > conftest.$ac_ext <<EOF
4491 #line 4492 "configure"
4492 #include "confdefs.h"
4498 if { (eval echo configure:4499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4500 lt_cv_cc_needs_belf=yes
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4505 lt_cv_cc_needs_belf=no
4509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 cross_compiling=$ac_cv_prog_cc_cross
4517 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4518 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4519 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4520 CFLAGS="$SAVE_CFLAGS"
4524 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4525 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4526 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4527 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4528 echo "configure:4529: checking for $ac_word" >&5
4529 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4530 echo $ac_n "(cached) $ac_c" 1>&6
4532 if test -n "$DLLTOOL"; then
4533 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4537 for ac_dir in $ac_dummy; do
4538 test -z "$ac_dir" && ac_dir=.
4539 if test -f $ac_dir/$ac_word; then
4540 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4547 DLLTOOL="$ac_cv_prog_DLLTOOL"
4548 if test -n "$DLLTOOL"; then
4549 echo "$ac_t""$DLLTOOL" 1>&6
4551 echo "$ac_t""no" 1>&6
4555 if test -z "$ac_cv_prog_DLLTOOL"; then
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "dlltool", so it can be a program name with args.
4558 set dummy dlltool; ac_word=$2
4559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4560 echo "configure:4561: checking for $ac_word" >&5
4561 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4562 echo $ac_n "(cached) $ac_c" 1>&6
4564 if test -n "$DLLTOOL"; then
4565 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4569 for ac_dir in $ac_dummy; do
4570 test -z "$ac_dir" && ac_dir=.
4571 if test -f $ac_dir/$ac_word; then
4572 ac_cv_prog_DLLTOOL="dlltool"
4577 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4580 DLLTOOL="$ac_cv_prog_DLLTOOL"
4581 if test -n "$DLLTOOL"; then
4582 echo "$ac_t""$DLLTOOL" 1>&6
4584 echo "$ac_t""no" 1>&6
4592 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4593 set dummy ${ac_tool_prefix}as; ac_word=$2
4594 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4595 echo "configure:4596: checking for $ac_word" >&5
4596 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4597 echo $ac_n "(cached) $ac_c" 1>&6
4599 if test -n "$AS"; then
4600 ac_cv_prog_AS="$AS" # Let the user override the test.
4602 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4604 for ac_dir in $ac_dummy; do
4605 test -z "$ac_dir" && ac_dir=.
4606 if test -f $ac_dir/$ac_word; then
4607 ac_cv_prog_AS="${ac_tool_prefix}as"
4615 if test -n "$AS"; then
4616 echo "$ac_t""$AS" 1>&6
4618 echo "$ac_t""no" 1>&6
4622 if test -z "$ac_cv_prog_AS"; then
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "as", so it can be a program name with args.
4625 set dummy as; ac_word=$2
4626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4627 echo "configure:4628: checking for $ac_word" >&5
4628 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4631 if test -n "$AS"; then
4632 ac_cv_prog_AS="$AS" # Let the user override the test.
4634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4636 for ac_dir in $ac_dummy; do
4637 test -z "$ac_dir" && ac_dir=.
4638 if test -f $ac_dir/$ac_word; then
4644 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4648 if test -n "$AS"; then
4649 echo "$ac_t""$AS" 1>&6
4651 echo "$ac_t""no" 1>&6
4659 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4662 echo "configure:4663: checking for $ac_word" >&5
4663 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4664 echo $ac_n "(cached) $ac_c" 1>&6
4666 if test -n "$OBJDUMP"; then
4667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4671 for ac_dir in $ac_dummy; do
4672 test -z "$ac_dir" && ac_dir=.
4673 if test -f $ac_dir/$ac_word; then
4674 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4681 OBJDUMP="$ac_cv_prog_OBJDUMP"
4682 if test -n "$OBJDUMP"; then
4683 echo "$ac_t""$OBJDUMP" 1>&6
4685 echo "$ac_t""no" 1>&6
4689 if test -z "$ac_cv_prog_OBJDUMP"; then
4690 if test -n "$ac_tool_prefix"; then
4691 # Extract the first word of "objdump", so it can be a program name with args.
4692 set dummy objdump; ac_word=$2
4693 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4694 echo "configure:4695: checking for $ac_word" >&5
4695 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4696 echo $ac_n "(cached) $ac_c" 1>&6
4698 if test -n "$OBJDUMP"; then
4699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4703 for ac_dir in $ac_dummy; do
4704 test -z "$ac_dir" && ac_dir=.
4705 if test -f $ac_dir/$ac_word; then
4706 ac_cv_prog_OBJDUMP="objdump"
4711 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4714 OBJDUMP="$ac_cv_prog_OBJDUMP"
4715 if test -n "$OBJDUMP"; then
4716 echo "$ac_t""$OBJDUMP" 1>&6
4718 echo "$ac_t""no" 1>&6
4727 # recent cygwin and mingw systems supply a stub DllMain which the user
4728 # can override, but on older systems we have to supply one
4729 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4730 echo "configure:4731: checking if libtool should supply DllMain function" >&5
4731 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4732 echo $ac_n "(cached) $ac_c" 1>&6
4734 cat > conftest.$ac_ext <<EOF
4735 #line 4736 "configure"
4736 #include "confdefs.h"
4739 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4745 lt_cv_need_dllmain=no
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4750 lt_cv_need_dllmain=yes
4755 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4758 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4759 # old mingw systems require "-dll" to link a DLL, while more recent ones
4761 SAVE_CFLAGS="$CFLAGS"
4762 CFLAGS="$CFLAGS -mdll"
4763 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4764 echo "configure:4765: checking how to link DLLs" >&5
4765 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4766 echo $ac_n "(cached) $ac_c" 1>&6
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 lt_cv_cc_dll_switch=-mdll
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 lt_cv_cc_dll_switch=-dll
4788 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4789 CFLAGS="$SAVE_CFLAGS" ;;
4790 *-*-cygwin* | *-*-pw32*)
4791 # cygwin systems need to pass --dll to the linker, and not link
4792 # crt.o which will require a WinMain@16 definition.
4793 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4799 # Sed substitution that helps us do robust quoting. It backslashifies
4800 # metacharacters that are still active within double-quoted strings.
4801 Xsed='sed -e s/^X//'
4802 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4804 # Same as above, but do not quote variable references.
4805 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4807 # Sed substitution to delay expansion of an escaped shell variable in a
4808 # double_quote_subst'ed string.
4809 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4815 default_ofile=libtool
4816 can_build_shared=yes
4818 # All known linkers require a `.a' archive for static linking (except M$VC,
4819 # which needs '.lib').
4821 ltmain="$ac_aux_dir/ltmain.sh"
4822 ofile="$default_ofile"
4823 with_gnu_ld="$lt_cv_prog_gnu_ld"
4824 need_locks="$enable_libtool_lock"
4827 old_CFLAGS="$CFLAGS"
4829 # Set sane defaults for various variables
4830 test -z "$AR" && AR=ar
4831 test -z "$AR_FLAGS" && AR_FLAGS=cru
4832 test -z "$AS" && AS=as
4833 test -z "$CC" && CC=cc
4834 test -z "$DLLTOOL" && DLLTOOL=dlltool
4835 test -z "$LD" && LD=ld
4836 test -z "$LN_S" && LN_S="ln -s"
4837 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4838 test -z "$NM" && NM=nm
4839 test -z "$OBJDUMP" && OBJDUMP=objdump
4840 test -z "$RANLIB" && RANLIB=:
4841 test -z "$STRIP" && STRIP=:
4842 test -z "$ac_objext" && ac_objext=o
4844 if test x"$host" != x"$build"; then
4845 ac_tool_prefix=${host_alias}-
4850 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4853 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4858 # AIX sometimes has problems with the GCC collect2 program. For some
4859 # reason, if we set the COLLECT_NAMES environment variable, the problems
4860 # vanish in a puff of smoke.
4861 if test "X${COLLECT_NAMES+set}" != Xset; then
4863 export COLLECT_NAMES
4868 # Determine commands to create old-style static archives.
4869 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4870 old_postinstall_cmds='chmod 644 $oldlib'
4871 old_postuninstall_cmds=
4873 if test -n "$RANLIB"; then
4876 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4879 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4882 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4885 # Allow CC to be a program name with arguments.
4889 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4890 echo "configure:4891: checking for objdir" >&5
4891 rm -f .libs 2>/dev/null
4892 mkdir .libs 2>/dev/null
4893 if test -d .libs; then
4896 # MS-DOS does not allow filenames that begin with a dot.
4899 rmdir .libs 2>/dev/null
4900 echo "$ac_t""$objdir" 1>&6
4903 # Check whether --with-pic or --without-pic was given.
4904 if test "${with_pic+set}" = set; then
4911 test -z "$pic_mode" && pic_mode=default
4913 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4914 # in isolation, and that seeing it set (from the cache) indicates that
4915 # the associated values are set (in the cache) correctly too.
4916 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4917 echo "configure:4918: checking for $compiler option to produce PIC" >&5
4918 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4919 echo $ac_n "(cached) $ac_c" 1>&6
4922 lt_cv_prog_cc_shlib=
4924 lt_cv_prog_cc_static=
4925 lt_cv_prog_cc_no_builtin=
4926 lt_cv_prog_cc_can_build_shared=$can_build_shared
4928 if test "$GCC" = yes; then
4929 lt_cv_prog_cc_wl='-Wl,'
4930 lt_cv_prog_cc_static='-static'
4934 # Below there is a dirty hack to force normal static linking with -ldl
4935 # The problem is because libdl dynamically linked with both libc and
4936 # libC (AIX C++ library), which obviously doesn't included in libraries
4937 # list by gcc. This cause undefined symbols with -static flags.
4938 # This hack allows C programs to be linked with "-static -ldl", but
4939 # not sure about C++ programs.
4940 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4943 # FIXME: we need at least 68020 code to build shared libraries, but
4944 # adding the `-m68020' flag to GCC prevents building anything better,
4946 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4948 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4949 # PIC is the default for these OSes.
4951 darwin* | rhapsody*)
4952 # PIC is the default on this platform
4953 # Common symbols not allowed in MH_DYLIB files
4954 lt_cv_prog_cc_pic='-fno-common'
4956 cygwin* | mingw* | pw32* | os2*)
4957 # This hack is so that the source file can tell whether it is being
4958 # built for inclusion in a dll (and should export symbols for example).
4959 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4962 if test -d /usr/nec; then
4963 lt_cv_prog_cc_pic=-Kconform_pic
4967 lt_cv_prog_cc_pic='-fPIC'
4971 # PORTME Check for PIC flags for the system compiler.
4973 aix3* | aix4* | aix5*)
4974 lt_cv_prog_cc_wl='-Wl,'
4975 # All AIX code is PIC.
4976 if test "$host_cpu" = ia64; then
4977 # AIX 5 now supports IA64 processor
4978 lt_cv_prog_cc_static='-Bstatic'
4980 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4984 hpux9* | hpux10* | hpux11*)
4985 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4986 lt_cv_prog_cc_wl='-Wl,'
4987 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4988 lt_cv_prog_cc_pic='+Z'
4992 lt_cv_prog_cc_wl='-Wl,'
4993 lt_cv_prog_cc_static='-non_shared'
4994 # PIC (with -KPIC) is the default.
4997 cygwin* | mingw* | pw32* | os2*)
4998 # This hack is so that the source file can tell whether it is being
4999 # built for inclusion in a dll (and should export symbols for example).
5000 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5004 lt_cv_prog_cc_pic='-KPIC'
5005 lt_cv_prog_cc_static='-Bstatic'
5008 osf3* | osf4* | osf5*)
5009 # All OSF/1 code is PIC.
5010 lt_cv_prog_cc_wl='-Wl,'
5011 lt_cv_prog_cc_static='-non_shared'
5015 lt_cv_prog_cc_pic='-Kpic'
5016 lt_cv_prog_cc_static='-dn'
5017 lt_cv_prog_cc_shlib='-belf'
5021 lt_cv_prog_cc_pic='-KPIC'
5022 lt_cv_prog_cc_static='-Bstatic'
5023 lt_cv_prog_cc_wl='-Wl,'
5027 lt_cv_prog_cc_pic='-PIC'
5028 lt_cv_prog_cc_static='-Bstatic'
5029 lt_cv_prog_cc_wl='-Qoption ld '
5032 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5033 lt_cv_prog_cc_pic='-KPIC'
5034 lt_cv_prog_cc_static='-Bstatic'
5035 if test "x$host_vendor" = xsni; then
5036 lt_cv_prog_cc_wl='-LD'
5038 lt_cv_prog_cc_wl='-Wl,'
5043 lt_cv_prog_cc_pic='-pic'
5044 lt_cv_prog_cc_static='-Bstatic'
5048 if test -d /usr/nec ;then
5049 lt_cv_prog_cc_pic='-Kconform_pic'
5050 lt_cv_prog_cc_static='-Bstatic'
5055 lt_cv_prog_cc_can_build_shared=no
5062 if test -z "$lt_cv_prog_cc_pic"; then
5063 echo "$ac_t""none" 1>&6
5065 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5067 # Check to make sure the pic_flag actually works.
5068 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5069 echo "configure:5070: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5070 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5071 echo $ac_n "(cached) $ac_c" 1>&6
5073 save_CFLAGS="$CFLAGS"
5074 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5083 if { (eval echo configure:5084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5086 hpux9* | hpux10* | hpux11*)
5087 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5088 # they create non-PIC objects. So, if there were any warnings, we
5089 # assume that PIC is not supported.
5090 if test -s conftest.err; then
5091 lt_cv_prog_cc_pic_works=no
5093 lt_cv_prog_cc_pic_works=yes
5097 lt_cv_prog_cc_pic_works=yes
5102 echo "configure: failed program was:" >&5
5103 cat conftest.$ac_ext >&5
5105 lt_cv_prog_cc_pic_works=no
5109 CFLAGS="$save_CFLAGS"
5114 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5116 lt_cv_prog_cc_can_build_shared=no
5118 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5121 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5124 # Check for any special shared library compilation flags.
5125 if test -n "$lt_cv_prog_cc_shlib"; then
5126 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5127 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5129 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5130 lt_cv_prog_cc_can_build_shared=no
5134 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5135 echo "configure:5136: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5136 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 lt_cv_prog_cc_static_works=no
5140 save_LDFLAGS="$LDFLAGS"
5141 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5142 cat > conftest.$ac_ext <<EOF
5143 #line 5144 "configure"
5144 #include "confdefs.h"
5150 if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 lt_cv_prog_cc_static_works=yes
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5158 LDFLAGS="$save_LDFLAGS"
5163 # Belt *and* braces to stop my trousers falling down:
5164 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5165 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5167 pic_flag="$lt_cv_prog_cc_pic"
5168 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5169 wl="$lt_cv_prog_cc_wl"
5170 link_static_flag="$lt_cv_prog_cc_static"
5171 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5172 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5175 # Check to see if options -o and -c are simultaneously supported by compiler
5176 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5177 echo "configure:5178: checking if $compiler supports -c -o file.$ac_objext" >&5
5178 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5182 $rm -r conftest 2>/dev/null
5185 echo "int some_variable = 0;" > conftest.$ac_ext
5187 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5188 # that will create temporary files in the current directory regardless of
5189 # the output directory. Thus, making CWD read-only will cause this test
5190 # to fail, enabling locking or at least warning the user not to do parallel
5193 save_CFLAGS="$CFLAGS"
5194 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5196 if { (eval echo configure:5197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5197 # The compiler can only warn and ignore the option if not recognized
5198 # So say no if there are warnings
5199 if test -s out/conftest.err; then
5200 lt_cv_compiler_c_o=no
5202 lt_cv_compiler_c_o=yes
5205 # Append any errors to the config.log.
5206 cat out/conftest.err 1>&5
5207 lt_cv_compiler_c_o=no
5209 CFLAGS="$save_CFLAGS"
5215 $rm -r conftest 2>/dev/null
5219 compiler_c_o=$lt_cv_compiler_c_o
5220 echo "$ac_t""$compiler_c_o" 1>&6
5222 if test x"$compiler_c_o" = x"yes"; then
5223 # Check to see if we can write to a .lo
5224 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5225 echo "configure:5226: checking if $compiler supports -c -o file.lo" >&5
5226 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5230 lt_cv_compiler_o_lo=no
5231 save_CFLAGS="$CFLAGS"
5232 CFLAGS="$CFLAGS -c -o conftest.lo"
5233 save_objext="$ac_objext"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5240 int some_variable = 0;
5243 if { (eval echo configure:5244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5245 # The compiler can only warn and ignore the option if not recognized
5246 # So say no if there are warnings
5247 if test -s conftest.err; then
5248 lt_cv_compiler_o_lo=no
5250 lt_cv_compiler_o_lo=yes
5254 echo "configure: failed program was:" >&5
5255 cat conftest.$ac_ext >&5
5258 ac_objext="$save_objext"
5259 CFLAGS="$save_CFLAGS"
5263 compiler_o_lo=$lt_cv_compiler_o_lo
5264 echo "$ac_t""$compiler_o_lo" 1>&6
5269 # Check to see if we can do hard links to lock some files if needed
5270 hard_links="nottested"
5271 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5272 # do not overwrite the value of need_locks provided by the user
5273 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5274 echo "configure:5275: checking if we can lock with hard links" >&5
5277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5279 ln conftest.a conftest.b 2>&5 || hard_links=no
5280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5281 echo "$ac_t""$hard_links" 1>&6
5282 if test "$hard_links" = no; then
5283 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5290 if test "$GCC" = yes; then
5291 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5292 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5293 echo "configure:5294: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5294 echo "int some_variable = 0;" > conftest.$ac_ext
5295 save_CFLAGS="$CFLAGS"
5296 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5297 compiler_rtti_exceptions=no
5298 cat > conftest.$ac_ext <<EOF
5299 #line 5300 "configure"
5300 #include "confdefs.h"
5303 int some_variable = 0;
5306 if { (eval echo configure:5307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5308 # The compiler can only warn and ignore the option if not recognized
5309 # So say no if there are warnings
5310 if test -s conftest.err; then
5311 compiler_rtti_exceptions=no
5313 compiler_rtti_exceptions=yes
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5321 CFLAGS="$save_CFLAGS"
5322 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5324 if test "$compiler_rtti_exceptions" = "yes"; then
5325 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5327 no_builtin_flag=' -fno-builtin'
5331 # See if the linker supports building shared libraries.
5332 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5333 echo "configure:5334: checking whether the linker ($LD) supports shared libraries" >&5
5335 allow_undefined_flag=
5337 need_lib_prefix=unknown
5338 need_version=unknown
5339 # when you set need_version to no, make sure it does not cause -set_version
5340 # flags to be left without arguments
5342 archive_expsym_cmds=
5343 old_archive_from_new_cmds=
5344 old_archive_from_expsyms_cmds=
5345 export_dynamic_flag_spec=
5346 whole_archive_flag_spec=
5347 thread_safe_flag_spec=
5348 hardcode_into_libs=no
5349 hardcode_libdir_flag_spec=
5350 hardcode_libdir_separator=
5353 hardcode_shlibpath_var=unsupported
5355 link_all_deplibs=unknown
5356 always_export_symbols=no
5357 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5358 # include_expsyms should be a list of space-separated symbols to be *always*
5359 # included in the symbol list
5361 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5362 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5363 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5364 # as well as any symbol that contains `d'.
5365 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5366 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5367 # platforms (ab)use it in PIC code, but their linkers get confused if
5368 # the symbol is explicitly referenced. Since portable code cannot
5369 # rely on this symbol name, it's probably fine to never include it in
5370 # preloaded symbol tables.
5371 extract_expsyms_cmds=
5374 cygwin* | mingw* | pw32*)
5375 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5376 # When not using gcc, we currently assume that we are using
5377 # Microsoft Visual C++.
5378 if test "$GCC" != yes; then
5388 if test "$with_gnu_ld" = yes; then
5389 # If archive_cmds runs LD, not CC, wlarc should be empty
5392 # See if GNU ld supports shared libraries.
5394 aix3* | aix4* | aix5*)
5395 # On AIX, the GNU linker is very broken
5396 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5400 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5401 *** to be unable to reliably create shared libraries on AIX.
5402 *** Therefore, libtool is disabling shared libraries support. If you
5403 *** really care for shared libraries, you may want to modify your PATH
5404 *** so that a non-GNU linker is found, and then restart.
5410 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)'
5411 hardcode_libdir_flag_spec='-L$libdir'
5412 hardcode_minus_L=yes
5414 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5415 # that the semantics of dynamic libraries on AmigaOS, at least up
5416 # to version 4, is to share data among multiple programs linked
5417 # with the same dynamic library. Since this doesn't match the
5418 # behavior of shared libraries on other platforms, we can use
5424 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5425 allow_undefined_flag=unsupported
5426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5427 # support --undefined. This deserves some investigation. FIXME
5428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5434 cygwin* | mingw* | pw32*)
5435 # hardcode_libdir_flag_spec is actually meaningless, as there is
5436 # no search path for DLLs.
5437 hardcode_libdir_flag_spec='-L$libdir'
5438 allow_undefined_flag=unsupported
5439 always_export_symbols=yes
5441 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5442 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5443 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5444 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5445 else $CC -o impgen impgen.c ; fi)~
5446 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5448 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5450 # cygwin and mingw dlls have different entry points and sets of symbols
5452 # FIXME: what about values for MSVC?
5453 dll_entry=__cygwin_dll_entry@12
5454 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5458 dll_entry=_DllMainCRTStartup@12
5459 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5463 # mingw and cygwin differ, and it's simplest to just exclude the union
5464 # of the two symbol sets.
5465 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5467 # recent cygwin and mingw systems supply a stub DllMain which the user
5468 # can override, but on older systems we have to supply one (in ltdll.c)
5469 if test "x$lt_cv_need_dllmain" = "xyes"; then
5470 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5471 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~
5472 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5478 # Extract the symbol export list from an `--export-all' def file,
5479 # then regenerate the def file from the symbol export list, so that
5480 # the compiled dll only exports the symbol export list.
5481 # Be careful not to strip the DATA tag left be newer dlltools.
5482 export_symbols_cmds="$ltdll_cmds"'
5483 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5484 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5486 # If the export-symbols file already is a .def file (1st line
5487 # is EXPORTS), use it as is.
5488 # If DATA tags from a recent dlltool are present, honour them!
5489 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5490 cp $export_symbols $output_objdir/$soname-def;
5492 echo EXPORTS > $output_objdir/$soname-def;
5494 cat $export_symbols | while read symbol; do
5497 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5498 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5500 _lt_hint=`expr 1 + \$_lt_hint`;
5504 $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~
5505 $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~
5506 $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~
5507 $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~
5508 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5513 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5516 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5517 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5522 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5526 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5527 *** create shared libraries on Solaris systems. Therefore, libtool
5528 *** is disabling shared libraries support. We urge you to upgrade GNU
5529 *** binutils to release 2.9.1 or newer. Another option is to modify
5530 *** your PATH or compiler configuration so that the native linker is
5531 *** used, and then restart.
5534 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5535 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5536 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5543 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5546 hardcode_shlibpath_var=no
5550 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5552 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5559 if test "$ld_shlibs" = yes; then
5560 runpath_var=LD_RUN_PATH
5561 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5562 export_dynamic_flag_spec='${wl}--export-dynamic'
5564 cygwin* | mingw* | pw32*)
5565 # dlltool doesn't understand --whole-archive et. al.
5566 whole_archive_flag_spec=
5569 # ancient GNU ld didn't support --whole-archive et. al.
5570 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5571 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5573 whole_archive_flag_spec=
5579 # PORTME fill in a description of your system's linker (not GNU ld)
5582 allow_undefined_flag=unsupported
5583 always_export_symbols=yes
5584 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'
5585 # Note: this linker hardcodes the directories in LIBPATH if there
5586 # are no directories specified by -L.
5587 hardcode_minus_L=yes
5588 if test "$GCC" = yes && test -z "$link_static_flag"; then
5589 # Neither direct hardcoding nor static linking is supported with a
5591 hardcode_direct=unsupported
5596 if test "$host_cpu" = ia64; then
5597 # On IA64, the linker does run time linking by default, so we don't
5598 # have to do anything special.
5599 aix_use_runtimelinking=no
5600 exp_sym_flag='-Bexport'
5603 aix_use_runtimelinking=no
5605 # Test if we are trying to use run time linking or normal
5606 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5607 # need to do runtime linking.
5608 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5609 for ld_flag in $LDFLAGS; do
5610 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5611 aix_use_runtimelinking=yes
5617 exp_sym_flag='-bexport'
5618 no_entry_flag='-bnoentry'
5621 # When large executables or shared objects are built, AIX ld can
5622 # have problems creating the table of contents. If linking a library
5623 # or program results in "error TOC overflow" add -mminimal-toc to
5624 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5625 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5629 hardcode_libdir_separator=':'
5630 if test "$GCC" = yes; then
5631 case $host_os in aix4.[012]|aix4.[012].*)
5632 collect2name=`${CC} -print-prog-name=collect2`
5633 if test -f "$collect2name" && \
5634 strings "$collect2name" | grep resolve_lib_name >/dev/null
5636 # We have reworked collect2
5639 # We have old collect2
5640 hardcode_direct=unsupported
5641 # It fails to find uninstalled libraries when the uninstalled
5642 # path is not listed in the libpath. Setting hardcode_minus_L
5643 # to unsupported forces relinking
5644 hardcode_minus_L=yes
5645 hardcode_libdir_flag_spec='-L$libdir'
5646 hardcode_libdir_separator=
5650 shared_flag='-shared'
5653 if test "$host_cpu" = ia64; then
5654 shared_flag='${wl}-G'
5656 if test "$aix_use_runtimelinking" = yes; then
5657 shared_flag='${wl}-G'
5659 shared_flag='${wl}-bM:SRE'
5664 # It seems that -bexpall can do strange things, so it is better to
5665 # generate a list of symbols to export.
5666 always_export_symbols=yes
5667 if test "$aix_use_runtimelinking" = yes; then
5668 # Warning - without using the other runtime loading flags (-brtl),
5669 # -berok will link without error, but may produce a broken library.
5670 allow_undefined_flag='-berok'
5671 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5672 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"
5674 if test "$host_cpu" = ia64; then
5675 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5676 allow_undefined_flag="-z nodefs"
5677 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"
5679 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5680 # Warning - without using the other run time loading flags,
5681 # -berok will link without error, but may produce a broken library.
5682 allow_undefined_flag='${wl}-berok'
5683 # This is a bit strange, but is similar to how AIX traditionally builds
5684 # it's shared libraries.
5685 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'
5691 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)'
5692 hardcode_libdir_flag_spec='-L$libdir'
5693 hardcode_minus_L=yes
5694 # see comment about different semantics on the GNU ld section
5698 cygwin* | mingw* | pw32*)
5699 # When not using gcc, we currently assume that we are using
5700 # Microsoft Visual C++.
5701 # hardcode_libdir_flag_spec is actually meaningless, as there is
5702 # no search path for DLLs.
5703 hardcode_libdir_flag_spec=' '
5704 allow_undefined_flag=unsupported
5705 # Tell ltmain to make .lib files, not .a files.
5707 # FIXME: Setting linknames here is a bad hack.
5708 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5709 # The linker will automatically build a .lib file if we build a DLL.
5710 old_archive_from_new_cmds='true'
5711 # FIXME: Should let the user specify the lib program.
5712 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5713 fix_srcfile_path='`cygpath -w "$srcfile"`'
5716 darwin* | rhapsody*)
5718 rhapsody* | darwin1.[012])
5719 allow_undefined_flag='-undefined suppress'
5722 allow_undefined_flag='-flat_namespace -undefined suppress'
5725 # FIXME: Relying on posixy $() will cause problems for
5726 # cross-compilation, but unfortunately the echo tests do not
5727 # yet detect zsh echo's removal of \ escapes.
5728 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5729 # We need to add '_' to the symbols in $export_symbols first
5730 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5732 hardcode_shlibpath_var=no
5733 whole_archive_flag_spec='-all_load $convenience'
5740 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5741 # support. Future versions do this automatically, but an explicit c++rt0.o
5742 # does not break anything, and helps significantly (at the cost of a little
5745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5746 hardcode_libdir_flag_spec='-R$libdir'
5748 hardcode_shlibpath_var=no
5751 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5755 hardcode_minus_L=yes
5756 hardcode_shlibpath_var=no
5759 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5761 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5762 hardcode_libdir_flag_spec='-R$libdir'
5764 hardcode_shlibpath_var=no
5767 hpux9* | hpux10* | hpux11*)
5769 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' ;;
5770 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5772 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5773 hardcode_libdir_separator=:
5775 hardcode_minus_L=yes # Not in the search PATH, but as the default
5776 # location of the library.
5777 export_dynamic_flag_spec='${wl}-E'
5781 if test "$GCC" = yes; then
5782 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'
5784 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'
5786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5787 hardcode_libdir_separator=:
5788 link_all_deplibs=yes
5792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5795 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5797 hardcode_libdir_flag_spec='-R$libdir'
5799 hardcode_shlibpath_var=no
5803 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5805 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5806 hardcode_libdir_separator=:
5807 hardcode_shlibpath_var=no
5812 hardcode_shlibpath_var=no
5813 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5814 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5815 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5816 export_dynamic_flag_spec='${wl}-E'
5819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5820 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5821 hardcode_libdir_flag_spec='-R$libdir'
5824 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5825 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5832 hardcode_libdir_flag_spec='-L$libdir'
5833 hardcode_minus_L=yes
5834 allow_undefined_flag=unsupported
5835 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'
5836 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5840 if test "$GCC" = yes; then
5841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5842 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'
5844 allow_undefined_flag=' -expect_unresolved \*'
5845 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'
5847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5848 hardcode_libdir_separator=:
5851 osf4* | osf5*) # as osf3* with the addition of -msym flag
5852 if test "$GCC" = yes; then
5853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5854 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'
5855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5857 allow_undefined_flag=' -expect_unresolved \*'
5858 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'
5859 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5860 $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'
5862 #Both c and cxx compiler support -rpath directly
5863 hardcode_libdir_flag_spec='-rpath $libdir'
5865 hardcode_libdir_separator=:
5869 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5870 hardcode_shlibpath_var=no
5871 runpath_var=LD_RUN_PATH
5872 hardcode_runpath_var=yes
5873 export_dynamic_flag_spec='${wl}-Bexport'
5877 # gcc --version < 3.0 without binutils cannot create self contained
5878 # shared libraries reliably, requiring libgcc.a to resolve some of
5879 # the object symbols generated in some cases. Libraries that use
5880 # assert need libgcc.a to resolve __eprintf, for example. Linking
5881 # a copy of libgcc.a into every shared library to guarantee resolving
5882 # such symbols causes other problems: According to Tim Van Holder
5883 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5884 # (to the application) exception stack for one thing.
5885 no_undefined_flag=' -z defs'
5886 if test "$GCC" = yes; then
5887 case `$CC --version 2>/dev/null` in
5891 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5892 *** create self contained shared libraries on Solaris systems, without
5893 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5894 *** -no-undefined support, which will at least allow you to build shared
5895 *** libraries. However, you may find that when you link such libraries
5896 *** into an application without using GCC, you have to manually add
5897 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5898 *** upgrade to a newer version of GCC. Another option is to rebuild your
5899 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5906 # $CC -shared without GNU ld will not create a library from C++
5907 # object files and a static libstdc++, better avoid it by now
5908 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5909 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5910 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5911 hardcode_libdir_flag_spec='-R$libdir'
5912 hardcode_shlibpath_var=no
5914 solaris2.[0-5] | solaris2.[0-5].*) ;;
5915 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5916 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5918 link_all_deplibs=yes
5922 if test "x$host_vendor" = xsequent; then
5923 # Use $CC to link under sequent, because it throws in some extra .o
5924 # files that make .init and .fini sections work.
5925 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5927 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5929 hardcode_libdir_flag_spec='-L$libdir'
5931 hardcode_minus_L=yes
5932 hardcode_shlibpath_var=no
5936 if test "x$host_vendor" = xsno; then
5937 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5938 hardcode_direct=yes # is this really true???
5940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5941 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5943 runpath_var='LD_RUN_PATH'
5944 hardcode_shlibpath_var=no
5948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5949 hardcode_shlibpath_var=no
5950 export_dynamic_flag_spec='-Bexport'
5954 no_undefined_flag=' -z text'
5955 # $CC -shared without GNU ld will not create a library from C++
5956 # object files and a static libstdc++, better avoid it by now
5957 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5958 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5959 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5960 hardcode_libdir_flag_spec=
5961 hardcode_shlibpath_var=no
5962 runpath_var='LD_RUN_PATH'
5966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5967 hardcode_libdir_flag_spec='-L$libdir'
5968 hardcode_shlibpath_var=no
5972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5973 hardcode_libdir_flag_spec='-L$libdir'
5974 hardcode_shlibpath_var=no
5978 if test -d /usr/nec; then
5979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5980 hardcode_shlibpath_var=no
5981 runpath_var=LD_RUN_PATH
5982 hardcode_runpath_var=yes
5988 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5991 hardcode_shlibpath_var=no
5992 hardcode_runpath_var=yes
5993 runpath_var=LD_RUN_PATH
5996 sysv5uw7* | unixware7*)
5997 no_undefined_flag='${wl}-z ${wl}text'
5998 if test "$GCC" = yes; then
5999 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6001 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6003 runpath_var='LD_RUN_PATH'
6004 hardcode_shlibpath_var=no
6012 echo "$ac_t""$ld_shlibs" 1>&6
6013 test "$ld_shlibs" = no && can_build_shared=no
6015 # Check hardcoding attributes.
6016 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6017 echo "configure:6018: checking how to hardcode library paths into programs" >&5
6019 if test -n "$hardcode_libdir_flag_spec" || \
6020 test -n "$runpath_var"; then
6022 # We can hardcode non-existant directories.
6023 if test "$hardcode_direct" != no &&
6024 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6025 # have to relink, otherwise we might link with an installed library
6026 # when we should be linking with a yet-to-be-installed one
6027 ## test "$hardcode_shlibpath_var" != no &&
6028 test "$hardcode_minus_L" != no; then
6029 # Linking always hardcodes the temporary library directory.
6030 hardcode_action=relink
6032 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6033 hardcode_action=immediate
6036 # We cannot hardcode anything, or else we can only hardcode existing
6038 hardcode_action=unsupported
6040 echo "$ac_t""$hardcode_action" 1>&6
6044 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6045 echo "configure:6046: checking whether stripping libraries is possible" >&5
6046 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6049 echo "$ac_t""yes" 1>&6
6051 echo "$ac_t""no" 1>&6
6054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6055 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6057 # PORTME Fill in your ld.so characteristics
6058 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6059 echo "configure:6060: checking dynamic linker characteristics" >&5
6061 libname_spec='lib$name'
6068 shlibpath_overrides_runpath=unknown
6070 dynamic_linker="$host_os ld.so"
6071 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6077 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6078 shlibpath_var=LIBPATH
6080 # AIX has no versioning support, so we append a major version to the name.
6081 soname_spec='${libname}${release}.so$major'
6086 if test "$host_cpu" = ia64; then
6087 # AIX 5 supports IA64
6088 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6089 shlibpath_var=LD_LIBRARY_PATH
6091 # With GCC up to 2.95.x, collect2 would create an import file
6092 # for dependence libraries. The import file would start with
6093 # the line `#! .'. This would cause the generated library to
6094 # depend on `.', always an invalid library. This was fixed in
6095 # development snapshots of GCC prior to 3.0.
6097 aix4 | aix4.[01] | aix4.[01].*)
6098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6107 # AIX (on Power*) has no versioning support, so currently we can
6108 # not hardcode correct soname into executable. Probably we can
6109 # add versioning support to collect2, so additional links can
6110 # be useful in future.
6111 if test "$aix_use_runtimelinking" = yes; then
6112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6113 # instead of lib<name>.a to let people know that these are not
6114 # typical AIX shared libraries.
6115 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6117 # We preserve .a as extension for shared libraries through AIX4.2
6118 # and later when we are not doing run time linking.
6119 library_names_spec='${libname}${release}.a $libname.a'
6120 soname_spec='${libname}${release}.so$major'
6122 shlibpath_var=LIBPATH
6127 library_names_spec='$libname.ixlibrary $libname.a'
6128 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6129 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'
6133 library_names_spec='${libname}.so'
6134 dynamic_linker="$host_os ld.so"
6135 shlibpath_var=LIBRARY_PATH
6141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6142 soname_spec='${libname}${release}.so$major'
6143 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6144 shlibpath_var=LD_LIBRARY_PATH
6145 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6146 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6147 export_dynamic_flag_spec=-rdynamic
6148 # the default ld.so.conf also contains /usr/contrib/lib and
6149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6150 # libtool to hard-code these into programs
6153 cygwin* | mingw* | pw32*)
6154 version_type=windows
6157 case $GCC,$host_os in
6159 library_names_spec='$libname.dll.a'
6160 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6161 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6162 dldir=$destdir/`dirname \$dlpath`~
6163 test -d \$dldir || mkdir -p \$dldir~
6164 $install_prog .libs/$dlname \$dldir/$dlname'
6165 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6166 dlpath=$dir/\$dldll~
6170 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6171 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6174 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6177 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6180 dynamic_linker='Win32 ld.exe'
6181 # FIXME: first we should search . and the directory the executable is in
6185 darwin* | rhapsody*)
6186 dynamic_linker="$host_os dyld"
6190 # FIXME: Relying on posixy $() will cause problems for
6191 # cross-compilation, but unfortunately the echo tests do not
6192 # yet detect zsh echo's removal of \ escapes.
6193 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)'
6194 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6195 shlibpath_overrides_runpath=yes
6196 shlibpath_var=DYLD_LIBRARY_PATH
6204 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6205 version_type=freebsd-$objformat
6206 case $version_type in
6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6213 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6217 shlibpath_var=LD_LIBRARY_PATH
6220 shlibpath_overrides_runpath=yes
6223 shlibpath_overrides_runpath=no
6224 hardcode_into_libs=yes
6233 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6234 soname_spec='${libname}${release}.so$major'
6235 shlibpath_var=LD_LIBRARY_PATH
6236 hardcode_into_libs=yes
6239 hpux9* | hpux10* | hpux11*)
6240 # Give a soname corresponding to the major version so that dld.sl refuses to
6241 # link against other versions.
6242 dynamic_linker="$host_os dld.sl"
6246 shlibpath_var=SHLIB_PATH
6247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6248 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6249 soname_spec='${libname}${release}.sl$major'
6250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6251 postinstall_cmds='chmod 555 $lib'
6258 soname_spec='${libname}${release}.so$major'
6259 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6265 case $LD in # libtool.m4 will add one of these switches to LD
6266 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6267 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6268 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6269 *) libsuff= shlibsuff= libmagic=never-match;;
6273 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6274 shlibpath_overrides_runpath=no
6275 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6276 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6279 # No shared lib support for Linux oldld, aout, or coff.
6280 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6284 # This must be Linux ELF.
6289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6290 soname_spec='${libname}${release}.so$major'
6291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6292 shlibpath_var=LD_LIBRARY_PATH
6293 shlibpath_overrides_runpath=no
6294 # This implies no fast_install, which is unacceptable.
6295 # Some rework will be needed to allow for fast_install
6296 # before this can be enabled.
6297 hardcode_into_libs=yes
6299 # We used to test for /lib/ld.so.1 and disable shared libraries on
6300 # powerpc, because MkLinux only supported shared libraries with the
6301 # GNU dynamic linker. Since this was broken with cross compilers,
6302 # most powerpc-linux boxes support dynamic linking these days and
6303 # people can always --disable-shared, the test was removed, and we
6304 # assume the GNU/Linux dynamic linker is in use.
6305 dynamic_linker='GNU/Linux ld.so'
6312 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6313 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6315 dynamic_linker='NetBSD (a.out) ld.so'
6317 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6318 soname_spec='${libname}${release}.so$major'
6319 dynamic_linker='NetBSD ld.elf_so'
6321 shlibpath_var=LD_LIBRARY_PATH
6322 shlibpath_overrides_runpath=yes
6323 hardcode_into_libs=yes
6328 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6329 shlibpath_var=LD_LIBRARY_PATH
6330 shlibpath_overrides_runpath=yes
6337 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6339 openbsd2.[89] | openbsd2.[89].*)
6340 shlibpath_overrides_runpath=no
6343 shlibpath_overrides_runpath=yes
6347 shlibpath_overrides_runpath=yes
6349 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6351 shlibpath_var=LD_LIBRARY_PATH
6355 libname_spec='$name'
6357 library_names_spec='$libname.dll $libname.a'
6358 dynamic_linker='OS/2 ld.exe'
6359 shlibpath_var=LIBPATH
6362 osf3* | osf4* | osf5*)
6365 soname_spec='${libname}${release}.so'
6366 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6367 shlibpath_var=LD_LIBRARY_PATH
6368 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6369 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6374 soname_spec='${libname}${release}.so$major'
6375 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6376 shlibpath_var=LD_LIBRARY_PATH
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6384 soname_spec='${libname}${release}.so$major'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 shlibpath_overrides_runpath=yes
6387 hardcode_into_libs=yes
6388 # ldd complains unless libraries are executable
6389 postinstall_cmds='chmod +x $lib'
6394 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6396 shlibpath_var=LD_LIBRARY_PATH
6397 shlibpath_overrides_runpath=yes
6398 if test "$with_gnu_ld" = yes; then
6404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6406 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6407 soname_spec='${libname}${release}.so$major'
6408 shlibpath_var=LD_LIBRARY_PATH
6409 case $host_vendor in
6411 shlibpath_overrides_runpath=no
6416 shlibpath_overrides_runpath=no
6417 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6424 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6425 soname_spec='${libname}${release}.so$major'
6426 shlibpath_var=LD_LIBRARY_PATH
6433 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6434 soname_spec='${libname}${release}.so$major'
6435 shlibpath_var=LD_LIBRARY_PATH
6439 if test -d /usr/nec ;then
6441 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6442 soname_spec='$libname.so.$major'
6443 shlibpath_var=LD_LIBRARY_PATH
6451 echo "$ac_t""$dynamic_linker" 1>&6
6452 test "$dynamic_linker" = no && can_build_shared=no
6454 # Report the final consequences.
6455 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6456 echo "configure:6457: checking if libtool supports shared libraries" >&5
6457 echo "$ac_t""$can_build_shared" 1>&6
6459 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6460 echo "configure:6461: checking whether to build shared libraries" >&5
6461 test "$can_build_shared" = "no" && enable_shared=no
6463 # On AIX, shared libraries and static libraries use the same namespace, and
6464 # are all built from PIC.
6467 test "$enable_shared" = yes && enable_static=no
6468 if test -n "$RANLIB"; then
6469 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6470 postinstall_cmds='$RANLIB $lib'
6475 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6476 test "$enable_shared" = yes && enable_static=no
6480 echo "$ac_t""$enable_shared" 1>&6
6482 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6483 echo "configure:6484: checking whether to build static libraries" >&5
6484 # Make sure either enable_shared or enable_static is yes.
6485 test "$enable_shared" = yes || enable_static=yes
6486 echo "$ac_t""$enable_static" 1>&6
6488 if test "$hardcode_action" = relink; then
6489 # Fast installation is not supported
6490 enable_fast_install=no
6491 elif test "$shlibpath_overrides_runpath" = yes ||
6492 test "$enable_shared" = no; then
6493 # Fast installation is not necessary
6494 enable_fast_install=needless
6497 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6498 if test "$GCC" = yes; then
6499 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6502 if test "x$enable_dlopen" != xyes; then
6503 enable_dlopen=unknown
6504 enable_dlopen_self=unknown
6505 enable_dlopen_self_static=unknown
6512 lt_cv_dlopen="load_add_on"
6514 lt_cv_dlopen_self=yes
6517 cygwin* | mingw* | pw32*)
6518 lt_cv_dlopen="LoadLibrary"
6523 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6524 echo "configure:6525: checking for shl_load" >&5
6525 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6526 echo $ac_n "(cached) $ac_c" 1>&6
6528 cat > conftest.$ac_ext <<EOF
6529 #line 6530 "configure"
6530 #include "confdefs.h"
6531 /* System header to define __stub macros and hopefully few prototypes,
6532 which can conflict with char shl_load(); below. */
6534 /* Override any gcc2 internal prototype to avoid an error. */
6535 /* We use char because int might match the return type of a gcc2
6536 builtin and then its argument prototype would still apply. */
6542 /* The GNU C library defines this for functions which it implements
6543 to always fail with ENOSYS. Some functions are actually named
6544 something starting with __ and the normal name is an alias. */
6545 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6553 if { (eval echo configure:6554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6555 eval "ac_cv_func_shl_load=yes"
6557 echo "configure: failed program was:" >&5
6558 cat conftest.$ac_ext >&5
6560 eval "ac_cv_func_shl_load=no"
6565 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6566 echo "$ac_t""yes" 1>&6
6567 lt_cv_dlopen="shl_load"
6569 echo "$ac_t""no" 1>&6
6570 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6571 echo "configure:6572: checking for shl_load in -ldld" >&5
6572 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6573 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6574 echo $ac_n "(cached) $ac_c" 1>&6
6576 ac_save_LIBS="$LIBS"
6578 cat > conftest.$ac_ext <<EOF
6579 #line 6580 "configure"
6580 #include "confdefs.h"
6581 /* Override any gcc2 internal prototype to avoid an error. */
6582 /* We use char because int might match the return type of a gcc2
6583 builtin and then its argument prototype would still apply. */
6590 if { (eval echo configure:6591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6592 eval "ac_cv_lib_$ac_lib_var=yes"
6594 echo "configure: failed program was:" >&5
6595 cat conftest.$ac_ext >&5
6597 eval "ac_cv_lib_$ac_lib_var=no"
6600 LIBS="$ac_save_LIBS"
6603 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6604 echo "$ac_t""yes" 1>&6
6605 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6607 echo "$ac_t""no" 1>&6
6608 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6609 echo "configure:6610: checking for dlopen" >&5
6610 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6611 echo $ac_n "(cached) $ac_c" 1>&6
6613 cat > conftest.$ac_ext <<EOF
6614 #line 6615 "configure"
6615 #include "confdefs.h"
6616 /* System header to define __stub macros and hopefully few prototypes,
6617 which can conflict with char dlopen(); below. */
6619 /* Override any gcc2 internal prototype to avoid an error. */
6620 /* We use char because int might match the return type of a gcc2
6621 builtin and then its argument prototype would still apply. */
6627 /* The GNU C library defines this for functions which it implements
6628 to always fail with ENOSYS. Some functions are actually named
6629 something starting with __ and the normal name is an alias. */
6630 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6638 if { (eval echo configure:6639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6640 eval "ac_cv_func_dlopen=yes"
6642 echo "configure: failed program was:" >&5
6643 cat conftest.$ac_ext >&5
6645 eval "ac_cv_func_dlopen=no"
6650 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6651 echo "$ac_t""yes" 1>&6
6652 lt_cv_dlopen="dlopen"
6654 echo "$ac_t""no" 1>&6
6655 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6656 echo "configure:6657: checking for dlopen in -ldl" >&5
6657 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6658 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6659 echo $ac_n "(cached) $ac_c" 1>&6
6661 ac_save_LIBS="$LIBS"
6663 cat > conftest.$ac_ext <<EOF
6664 #line 6665 "configure"
6665 #include "confdefs.h"
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. */
6675 if { (eval echo configure:6676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6677 eval "ac_cv_lib_$ac_lib_var=yes"
6679 echo "configure: failed program was:" >&5
6680 cat conftest.$ac_ext >&5
6682 eval "ac_cv_lib_$ac_lib_var=no"
6685 LIBS="$ac_save_LIBS"
6688 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6689 echo "$ac_t""yes" 1>&6
6690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6692 echo "$ac_t""no" 1>&6
6693 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6694 echo "configure:6695: checking for dlopen in -lsvld" >&5
6695 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6696 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6697 echo $ac_n "(cached) $ac_c" 1>&6
6699 ac_save_LIBS="$LIBS"
6701 cat > conftest.$ac_ext <<EOF
6702 #line 6703 "configure"
6703 #include "confdefs.h"
6704 /* Override any gcc2 internal prototype to avoid an error. */
6705 /* We use char because int might match the return type of a gcc2
6706 builtin and then its argument prototype would still apply. */
6713 if { (eval echo configure:6714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6715 eval "ac_cv_lib_$ac_lib_var=yes"
6717 echo "configure: failed program was:" >&5
6718 cat conftest.$ac_ext >&5
6720 eval "ac_cv_lib_$ac_lib_var=no"
6723 LIBS="$ac_save_LIBS"
6726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6727 echo "$ac_t""yes" 1>&6
6728 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6730 echo "$ac_t""no" 1>&6
6731 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6732 echo "configure:6733: checking for dld_link in -ldld" >&5
6733 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6734 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6735 echo $ac_n "(cached) $ac_c" 1>&6
6737 ac_save_LIBS="$LIBS"
6739 cat > conftest.$ac_ext <<EOF
6740 #line 6741 "configure"
6741 #include "confdefs.h"
6742 /* Override any gcc2 internal prototype to avoid an error. */
6743 /* We use char because int might match the return type of a gcc2
6744 builtin and then its argument prototype would still apply. */
6751 if { (eval echo configure:6752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6753 eval "ac_cv_lib_$ac_lib_var=yes"
6755 echo "configure: failed program was:" >&5
6756 cat conftest.$ac_ext >&5
6758 eval "ac_cv_lib_$ac_lib_var=no"
6761 LIBS="$ac_save_LIBS"
6764 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6765 echo "$ac_t""yes" 1>&6
6766 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6768 echo "$ac_t""no" 1>&6
6789 if test "x$lt_cv_dlopen" != xno; then
6795 case $lt_cv_dlopen in
6797 save_CPPFLAGS="$CPPFLAGS"
6798 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6800 save_LDFLAGS="$LDFLAGS"
6801 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6804 LIBS="$lt_cv_dlopen_libs $LIBS"
6806 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6807 echo "configure:6808: checking whether a program can dlopen itself" >&5
6808 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6809 echo $ac_n "(cached) $ac_c" 1>&6
6811 if test "$cross_compiling" = yes; then :
6812 lt_cv_dlopen_self=cross
6814 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6815 lt_status=$lt_dlunknown
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6827 # define LT_DLGLOBAL RTLD_GLOBAL
6830 # define LT_DLGLOBAL DL_GLOBAL
6832 # define LT_DLGLOBAL 0
6836 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6837 find out it does not work in some platform. */
6838 #ifndef LT_DLLAZY_OR_NOW
6840 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6843 # define LT_DLLAZY_OR_NOW DL_LAZY
6846 # define LT_DLLAZY_OR_NOW RTLD_NOW
6849 # define LT_DLLAZY_OR_NOW DL_NOW
6851 # define LT_DLLAZY_OR_NOW 0
6859 extern "C" void exit (int);
6862 void fnord() { int i=42;}
6865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6866 int status = $lt_dlunknown;
6870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6871 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6872 /* dlclose (self); */
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6879 (./conftest; exit; ) 2>/dev/null
6882 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6883 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6884 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6887 # compilation failed
6888 lt_cv_dlopen_self=no
6896 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6898 if test "x$lt_cv_dlopen_self" = xyes; then
6899 LDFLAGS="$LDFLAGS $link_static_flag"
6900 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6901 echo "configure:6902: checking whether a statically linked program can dlopen itself" >&5
6902 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6903 echo $ac_n "(cached) $ac_c" 1>&6
6905 if test "$cross_compiling" = yes; then :
6906 lt_cv_dlopen_self_static=cross
6908 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6909 lt_status=$lt_dlunknown
6910 cat > conftest.$ac_ext <<EOF
6911 #line 6912 "configure"
6912 #include "confdefs.h"
6921 # define LT_DLGLOBAL RTLD_GLOBAL
6924 # define LT_DLGLOBAL DL_GLOBAL
6926 # define LT_DLGLOBAL 0
6930 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6931 find out it does not work in some platform. */
6932 #ifndef LT_DLLAZY_OR_NOW
6934 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6937 # define LT_DLLAZY_OR_NOW DL_LAZY
6940 # define LT_DLLAZY_OR_NOW RTLD_NOW
6943 # define LT_DLLAZY_OR_NOW DL_NOW
6945 # define LT_DLLAZY_OR_NOW 0
6953 extern "C" void exit (int);
6956 void fnord() { int i=42;}
6959 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6960 int status = $lt_dlunknown;
6964 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6965 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6966 /* dlclose (self); */
6972 if { (eval echo configure:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6973 (./conftest; exit; ) 2>/dev/null
6976 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6977 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6978 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6981 # compilation failed
6982 lt_cv_dlopen_self_static=no
6990 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
6993 CPPFLAGS="$save_CPPFLAGS"
6994 LDFLAGS="$save_LDFLAGS"
6999 case $lt_cv_dlopen_self in
7000 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7001 *) enable_dlopen_self=unknown ;;
7004 case $lt_cv_dlopen_self_static in
7005 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7006 *) enable_dlopen_self_static=unknown ;;
7011 if test "$enable_shared" = yes && test "$GCC" = yes; then
7012 case $archive_cmds in
7014 # FIXME: we may have to deal with multi-command sequences.
7017 # Test whether the compiler implicitly links with -lc since on some
7018 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7019 # to ld, don't add -lc before -lgcc.
7020 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7021 echo "configure:7022: checking whether -lc should be explicitly linked in" >&5
7022 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7023 echo $ac_n "(cached) $ac_c" 1>&6
7026 echo 'static int dummy;' > conftest.$ac_ext
7028 if { (eval echo configure:7029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7031 libobjs=conftest.$ac_objext
7033 wl=$lt_cv_prog_cc_wl
7039 save_allow_undefined_flag=$allow_undefined_flag
7040 allow_undefined_flag=
7041 if { (eval echo configure:7042: \"$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; }
7043 lt_cv_archive_cmds_need_lc=no
7045 lt_cv_archive_cmds_need_lc=yes
7047 allow_undefined_flag=$save_allow_undefined_flag
7049 cat conftest.err 1>&5
7053 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7057 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7059 # The second clause should only fire when bootstrapping the
7060 # libtool distribution, otherwise you forgot to ship ltmain.sh
7061 # with your package, and you will get complaints that there are
7062 # no rules to generate ltmain.sh.
7063 if test -f "$ltmain"; then
7066 # If there is no Makefile yet, we rely on a make rule to execute
7067 # `config.status --recheck' to rerun these tests and create the
7068 # libtool script then.
7069 test -f Makefile && make "$ltmain"
7072 if test -f "$ltmain"; then
7073 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7076 echo creating $ofile
7078 # Now quote all the things that may contain metacharacters while being
7079 # careful not to overquote the AC_SUBSTed values. We take copies of the
7080 # variables and quote the copies for generation of the libtool script.
7081 for var in echo old_CC old_CFLAGS \
7082 AR AR_FLAGS CC LD LN_S NM SHELL \
7083 reload_flag reload_cmds wl \
7084 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7085 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7086 library_names_spec soname_spec \
7087 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7088 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7089 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7090 old_striplib striplib file_magic_cmd export_symbols_cmds \
7091 deplibs_check_method allow_undefined_flag no_undefined_flag \
7092 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7093 global_symbol_to_c_name_address \
7094 hardcode_libdir_flag_spec hardcode_libdir_separator \
7095 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7096 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7099 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7100 old_postinstall_cmds | old_postuninstall_cmds | \
7101 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7102 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7103 postinstall_cmds | postuninstall_cmds | \
7104 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7105 # Double-quote double-evaled strings.
7106 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7109 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7114 cat <<__EOF__ > "${ofile}T"
7117 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7118 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7121 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7122 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7124 # This program is free software; you can redistribute it and/or modify
7125 # it under the terms of the GNU General Public License as published by
7126 # the Free Software Foundation; either version 2 of the License, or
7127 # (at your option) any later version.
7129 # This program is distributed in the hope that it will be useful, but
7130 # WITHOUT ANY WARRANTY; without even the implied warranty of
7131 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7132 # General Public License for more details.
7134 # You should have received a copy of the GNU General Public License
7135 # along with this program; if not, write to the Free Software
7136 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7138 # As a special exception to the GNU General Public License, if you
7139 # distribute this file as part of a program that contains a
7140 # configuration script generated by Autoconf, you may include it under
7141 # the same distribution terms that you use for the rest of that program.
7143 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7144 Xsed="sed -e s/^X//"
7146 # The HP-UX ksh and POSIX shell print the target directory to stdout
7148 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7150 # ### BEGIN LIBTOOL CONFIG
7152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7154 # Shell to use when invoking shell scripts.
7157 # Whether or not to build shared libraries.
7158 build_libtool_libs=$enable_shared
7160 # Whether or not to build static libraries.
7161 build_old_libs=$enable_static
7163 # Whether or not to add -lc for building shared libraries.
7164 build_libtool_need_lc=$need_lc
7166 # Whether or not to optimize for fast installation.
7167 fast_install=$enable_fast_install
7170 host_alias=$host_alias
7173 # An echo program that does not interpret backslashes.
7178 AR_FLAGS=$lt_AR_FLAGS
7180 # The default C compiler.
7183 # Is the compiler the GNU C compiler?
7186 # The linker used to build libraries.
7189 # Whether we need hard or soft links.
7192 # A BSD-compatible nm program.
7195 # A symbol stripping program
7198 # Used to examine libraries when file_magic_cmd begins "file"
7199 MAGIC_CMD=$MAGIC_CMD
7201 # Used on cygwin: DLL creation program.
7204 # Used on cygwin: object dumper.
7207 # Used on cygwin: assembler.
7210 # The name of the directory that contains temporary libtool files.
7213 # How to create reloadable object files.
7214 reload_flag=$lt_reload_flag
7215 reload_cmds=$lt_reload_cmds
7217 # How to pass a linker flag through the compiler.
7220 # Object file suffix (normally "o").
7223 # Old archive suffix (normally "a").
7226 # Executable file suffix (normally "").
7229 # Additional compiler flags for building library objects.
7230 pic_flag=$lt_pic_flag
7233 # Does compiler simultaneously support -c and -o options?
7234 compiler_c_o=$lt_compiler_c_o
7236 # Can we write directly to a .lo ?
7237 compiler_o_lo=$lt_compiler_o_lo
7239 # Must we lock files when doing compilation ?
7240 need_locks=$lt_need_locks
7242 # Do we need the lib prefix for modules?
7243 need_lib_prefix=$need_lib_prefix
7245 # Do we need a version for libraries?
7246 need_version=$need_version
7248 # Whether dlopen is supported.
7249 dlopen_support=$enable_dlopen
7251 # Whether dlopen of programs is supported.
7252 dlopen_self=$enable_dlopen_self
7254 # Whether dlopen of statically linked programs is supported.
7255 dlopen_self_static=$enable_dlopen_self_static
7257 # Compiler flag to prevent dynamic linking.
7258 link_static_flag=$lt_link_static_flag
7260 # Compiler flag to turn off builtin functions.
7261 no_builtin_flag=$lt_no_builtin_flag
7263 # Compiler flag to allow reflexive dlopens.
7264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7266 # Compiler flag to generate shared objects directly from archives.
7267 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7269 # Compiler flag to generate thread-safe objects.
7270 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7272 # Library versioning type.
7273 version_type=$version_type
7275 # Format of library name prefix.
7276 libname_spec=$lt_libname_spec
7278 # List of archive names. First name is the real one, the rest are links.
7279 # The last name is the one that the linker finds with -lNAME.
7280 library_names_spec=$lt_library_names_spec
7282 # The coded name of the library, if different from the real name.
7283 soname_spec=$lt_soname_spec
7285 # Commands used to build and install an old-style archive.
7287 old_archive_cmds=$lt_old_archive_cmds
7288 old_postinstall_cmds=$lt_old_postinstall_cmds
7289 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7291 # Create an old-style archive from a shared archive.
7292 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7294 # Create a temporary old-style archive to link instead of a shared archive.
7295 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7297 # Commands used to build and install a shared archive.
7298 archive_cmds=$lt_archive_cmds
7299 archive_expsym_cmds=$lt_archive_expsym_cmds
7300 postinstall_cmds=$lt_postinstall_cmds
7301 postuninstall_cmds=$lt_postuninstall_cmds
7303 # Commands to strip libraries.
7304 old_striplib=$lt_old_striplib
7305 striplib=$lt_striplib
7307 # Method to check whether dependent libraries are shared objects.
7308 deplibs_check_method=$lt_deplibs_check_method
7310 # Command to use when deplibs_check_method == file_magic.
7311 file_magic_cmd=$lt_file_magic_cmd
7313 # Flag that allows shared libraries with undefined symbols to be built.
7314 allow_undefined_flag=$lt_allow_undefined_flag
7316 # Flag that forces no undefined symbols.
7317 no_undefined_flag=$lt_no_undefined_flag
7319 # Commands used to finish a libtool library installation in a directory.
7320 finish_cmds=$lt_finish_cmds
7322 # Same as above, but a single script fragment to be evaled but not shown.
7323 finish_eval=$lt_finish_eval
7325 # Take the output of nm and produce a listing of raw symbols and C names.
7326 global_symbol_pipe=$lt_global_symbol_pipe
7328 # Transform the output of nm in a proper C declaration
7329 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7331 # Transform the output of nm in a C name address pair
7332 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7334 # This is the shared library runtime path variable.
7335 runpath_var=$runpath_var
7337 # This is the shared library path variable.
7338 shlibpath_var=$shlibpath_var
7340 # Is shlibpath searched before the hard-coded library search path?
7341 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7343 # How to hardcode a shared library path into an executable.
7344 hardcode_action=$hardcode_action
7346 # Whether we should hardcode library paths into libraries.
7347 hardcode_into_libs=$hardcode_into_libs
7349 # Flag to hardcode \$libdir into a binary during linking.
7350 # This must work even if \$libdir does not exist.
7351 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7353 # Whether we need a single -rpath flag with a separated argument.
7354 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7356 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7358 hardcode_direct=$hardcode_direct
7360 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7362 hardcode_minus_L=$hardcode_minus_L
7364 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7365 # the resulting binary.
7366 hardcode_shlibpath_var=$hardcode_shlibpath_var
7368 # Variables whose values should be saved in libtool wrapper scripts and
7369 # restored at relink time.
7370 variables_saved_for_relink="$variables_saved_for_relink"
7372 # Whether libtool must link a program against all its dependency libraries.
7373 link_all_deplibs=$link_all_deplibs
7375 # Compile-time system search path for libraries
7376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7378 # Run-time system search path for libraries
7379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7381 # Fix the shell variable \$srcfile for the compiler.
7382 fix_srcfile_path="$fix_srcfile_path"
7384 # Set to yes if exported symbols are required.
7385 always_export_symbols=$always_export_symbols
7387 # The commands to list exported symbols.
7388 export_symbols_cmds=$lt_export_symbols_cmds
7390 # The commands to extract the exported symbol list from a shared archive.
7391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7393 # Symbols that should not be listed in the preloaded symbols.
7394 exclude_expsyms=$lt_exclude_expsyms
7396 # Symbols that must always be exported.
7397 include_expsyms=$lt_include_expsyms
7399 # ### END LIBTOOL CONFIG
7405 cat <<\EOF >> "${ofile}T"
7407 # AIX sometimes has problems with the GCC collect2 program. For some
7408 # reason, if we set the COLLECT_NAMES environment variable, the problems
7409 # vanish in a puff of smoke.
7410 if test "X${COLLECT_NAMES+set}" != Xset; then
7412 export COLLECT_NAMES
7419 cygwin* | mingw* | pw32* | os2*)
7420 cat <<'EOF' >> "${ofile}T"
7421 # This is a source program that is used to create dlls on Windows
7422 # Don't remove nor modify the starting and closing comments
7423 # /* ltdll.c starts here */
7424 # #define WIN32_LEAN_AND_MEAN
7425 # #include <windows.h>
7426 # #undef WIN32_LEAN_AND_MEAN
7427 # #include <stdio.h>
7429 # #ifndef __CYGWIN__
7430 # # ifdef __CYGWIN32__
7431 # # define __CYGWIN__ __CYGWIN32__
7435 # #ifdef __cplusplus
7438 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7439 # #ifdef __cplusplus
7444 # #include <cygwin/cygwin_dll.h>
7445 # DECLARE_CYGWIN_DLL( DllMain );
7447 # HINSTANCE __hDllInstance_base;
7450 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7452 # __hDllInstance_base = hInst;
7455 # /* ltdll.c ends here */
7456 # This is a source program that is used to create import libraries
7457 # on Windows for dlls which lack them. Don't remove nor modify the
7458 # starting and closing comments
7459 # /* impgen.c starts here */
7460 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7462 # This file is part of GNU libtool.
7464 # This program is free software; you can redistribute it and/or modify
7465 # it under the terms of the GNU General Public License as published by
7466 # the Free Software Foundation; either version 2 of the License, or
7467 # (at your option) any later version.
7469 # This program is distributed in the hope that it will be useful,
7470 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7471 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7472 # GNU General Public License for more details.
7474 # You should have received a copy of the GNU General Public License
7475 # along with this program; if not, write to the Free Software
7476 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7479 # #include <stdio.h> /* for printf() */
7480 # #include <unistd.h> /* for open(), lseek(), read() */
7481 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7482 # #include <string.h> /* for strdup() */
7484 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7486 # #define O_BINARY 0
7489 # static unsigned int
7490 # pe_get16 (fd, offset)
7494 # unsigned char b[2];
7495 # lseek (fd, offset, SEEK_SET);
7497 # return b[0] + (b[1]<<8);
7500 # static unsigned int
7501 # pe_get32 (fd, offset)
7505 # unsigned char b[4];
7506 # lseek (fd, offset, SEEK_SET);
7508 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7511 # static unsigned int
7515 # unsigned char *b = ptr;
7516 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7525 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7526 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7527 # unsigned long name_rvas, nexp;
7528 # unsigned char *expdata, *erva;
7529 # char *filename, *dll_name;
7531 # filename = argv[1];
7533 # dll = open(filename, O_RDONLY|O_BINARY);
7537 # dll_name = filename;
7539 # for (i=0; filename[i]; i++)
7540 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7541 # dll_name = filename + i +1;
7543 # pe_header_offset = pe_get32 (dll, 0x3c);
7544 # opthdr_ofs = pe_header_offset + 4 + 20;
7545 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7547 # if (num_entries < 1) /* no exports */
7550 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7551 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7552 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7553 # secptr = (pe_header_offset + 4 + 20 +
7554 # pe_get16 (dll, pe_header_offset + 4 + 16));
7557 # for (i = 0; i < nsections; i++)
7560 # unsigned long secptr1 = secptr + 40 * i;
7561 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7562 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7563 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7564 # lseek(dll, secptr1, SEEK_SET);
7565 # read(dll, sname, 8);
7566 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7568 # expptr = fptr + (export_rva - vaddr);
7569 # if (export_rva + export_size > vaddr + vsize)
7570 # export_size = vsize - (export_rva - vaddr);
7575 # expdata = (unsigned char*)malloc(export_size);
7576 # lseek (dll, expptr, SEEK_SET);
7577 # read (dll, expdata, export_size);
7578 # erva = expdata - export_rva;
7580 # nexp = pe_as32 (expdata+24);
7581 # name_rvas = pe_as32 (expdata+32);
7583 # printf ("EXPORTS\n");
7584 # for (i = 0; i<nexp; i++)
7586 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7587 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7592 # /* impgen.c ends here */
7598 # We use sed instead of cat because bash on DJGPP gets confused if
7599 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7600 # text mode, it properly converts lines to CR/LF. This bash problem
7601 # is reportedly fixed, but why not run on old versions too?
7602 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7604 mv -f "${ofile}T" "$ofile" || \
7605 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7613 # This can be used to rebuild libtool when needed
7614 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7616 # Always use our own libtool.
7617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7619 # Prevent multiple expansion
7623 for ac_prog in mawk gawk nawk awk
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7628 echo "configure:7629: checking for $ac_word" >&5
7629 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
7630 echo $ac_n "(cached) $ac_c" 1>&6
7632 if test -n "$AWK"; then
7633 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7637 for ac_dir in $ac_dummy; do
7638 test -z "$ac_dir" && ac_dir=.
7639 if test -f $ac_dir/$ac_word; then
7640 ac_cv_prog_AWK="$ac_prog"
7647 AWK="$ac_cv_prog_AWK"
7648 if test -n "$AWK"; then
7649 echo "$ac_t""$AWK" 1>&6
7651 echo "$ac_t""no" 1>&6
7654 test -n "$AWK" && break
7657 # test for ln hardlink support
7658 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7659 echo "configure:7660: checking whether ln works" >&5
7660 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7661 echo $ac_n "(cached) $ac_c" 1>&6
7663 rm -f conftest.src conftest.dst
7664 echo "conftest" > conftest.src
7665 if ln conftest.src conftest.dst 2>/dev/null
7667 ol_cv_prog_LN_H="ln"
7669 ol_cv_prog_LN_H="cp"
7671 rm -f conftest.src conftest.dst
7674 LN_H="$ol_cv_prog_LN_H"
7675 if test "$ol_cv_prog_LN_H" = "ln"; then
7676 echo "$ac_t""yes" 1>&6
7678 echo "$ac_t""no" 1>&6
7681 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7682 echo "configure:7683: checking whether ln -s works" >&5
7683 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7684 echo $ac_n "(cached) $ac_c" 1>&6
7687 if ln -s X conftestdata 2>/dev/null
7690 ac_cv_prog_LN_S="ln -s"
7695 LN_S="$ac_cv_prog_LN_S"
7696 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7697 echo "$ac_t""yes" 1>&6
7699 echo "$ac_t""no" 1>&6
7703 if test "$LN_H" = "cp" -a "$LN_S" = "ln"; then
7707 # Extract the first word of "sendmail", so it can be a program name with args.
7708 set dummy sendmail; ac_word=$2
7709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7710 echo "configure:7711: checking for $ac_word" >&5
7711 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7712 echo $ac_n "(cached) $ac_c" 1>&6
7716 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7719 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7723 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7724 for ac_dir in $ac_dummy; do
7725 test -z "$ac_dir" && ac_dir=.
7726 if test -f $ac_dir/$ac_word; then
7727 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7732 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7736 SENDMAIL="$ac_cv_path_SENDMAIL"
7737 if test -n "$SENDMAIL"; then
7738 echo "$ac_t""$SENDMAIL" 1>&6
7740 echo "$ac_t""no" 1>&6
7743 # Extract the first word of "vi", so it can be a program name with args.
7744 set dummy vi; ac_word=$2
7745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7746 echo "configure:7747: checking for $ac_word" >&5
7747 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7748 echo $ac_n "(cached) $ac_c" 1>&6
7752 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7755 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7758 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7759 ac_dummy="$PATH:/usr/ucb"
7760 for ac_dir in $ac_dummy; do
7761 test -z "$ac_dir" && ac_dir=.
7762 if test -f $ac_dir/$ac_word; then
7763 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7768 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7772 EDITOR="$ac_cv_path_EDITOR"
7773 if test -n "$EDITOR"; then
7774 echo "$ac_t""$EDITOR" 1>&6
7776 echo "$ac_t""no" 1>&6
7779 # Extract the first word of "finger", so it can be a program name with args.
7780 set dummy finger; ac_word=$2
7781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7782 echo "configure:7783: checking for $ac_word" >&5
7783 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
7784 echo $ac_n "(cached) $ac_c" 1>&6
7788 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
7791 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
7794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7795 ac_dummy="$PATH:/usr/ucb"
7796 for ac_dir in $ac_dummy; do
7797 test -z "$ac_dir" && ac_dir=.
7798 if test -f $ac_dir/$ac_word; then
7799 ac_cv_path_FINGER="$ac_dir/$ac_word"
7804 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
7808 FINGER="$ac_cv_path_FINGER"
7809 if test -n "$FINGER"; then
7810 echo "$ac_t""$FINGER" 1>&6
7812 echo "$ac_t""no" 1>&6
7817 if test $ol_enable_perl != no ; then
7818 # Extract the first word of "perl", so it can be a program name with args.
7819 set dummy perl; ac_word=$2
7820 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7821 echo "configure:7822: checking for $ac_word" >&5
7822 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7823 echo $ac_n "(cached) $ac_c" 1>&6
7827 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7830 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7835 for ac_dir in $ac_dummy; do
7836 test -z "$ac_dir" && ac_dir=.
7837 if test -f $ac_dir/$ac_word; then
7838 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7843 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7847 PERLBIN="$ac_cv_path_PERLBIN"
7848 if test -n "$PERLBIN"; then
7849 echo "$ac_t""$PERLBIN" 1>&6
7851 echo "$ac_t""no" 1>&6
7855 if test "no$PERLBIN" = "no" ; then
7856 if test $ol_enable_perl = yes ; then
7857 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7861 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7862 if test x"$ol_with_perl_module" = "xstatic" ; then
7863 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7865 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7871 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7872 echo "configure:7873: checking how to run the C preprocessor" >&5
7873 # On Suns, sometimes $CPP names a directory.
7874 if test -n "$CPP" && test -d "$CPP"; then
7877 if test -z "$CPP"; then
7878 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7879 echo $ac_n "(cached) $ac_c" 1>&6
7881 # This must be in double quotes, not single quotes, because CPP may get
7882 # substituted into the Makefile and "${CC-cc}" will confuse make.
7884 # On the NeXT, cc -E runs the code through the compiler's parser,
7885 # not just through cpp.
7886 cat > conftest.$ac_ext <<EOF
7887 #line 7888 "configure"
7888 #include "confdefs.h"
7892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7893 { (eval echo configure:7894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7895 if test -z "$ac_err"; then
7899 echo "configure: failed program was:" >&5
7900 cat conftest.$ac_ext >&5
7902 CPP="${CC-cc} -E -traditional-cpp"
7903 cat > conftest.$ac_ext <<EOF
7904 #line 7905 "configure"
7905 #include "confdefs.h"
7909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7910 { (eval echo configure:7911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7912 if test -z "$ac_err"; then
7916 echo "configure: failed program was:" >&5
7917 cat conftest.$ac_ext >&5
7919 CPP="${CC-cc} -nologo -E"
7920 cat > conftest.$ac_ext <<EOF
7921 #line 7922 "configure"
7922 #include "confdefs.h"
7926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7927 { (eval echo configure:7928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7929 if test -z "$ac_err"; then
7933 echo "configure: failed program was:" >&5
7934 cat conftest.$ac_ext >&5
7943 ac_cv_prog_CPP="$CPP"
7945 CPP="$ac_cv_prog_CPP"
7947 ac_cv_prog_CPP="$CPP"
7949 echo "$ac_t""$CPP" 1>&6
7952 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7953 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7955 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7956 echo "configure: warning: programs compiled here do run here..." 1>&2
7957 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7959 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7960 echo "configure: warning: programs compiled here do not run here..." 1>&2
7961 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7965 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7966 echo "configure:7967: checking for Cygwin environment" >&5
7967 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7968 echo $ac_n "(cached) $ac_c" 1>&6
7970 cat > conftest.$ac_ext <<EOF
7971 #line 7972 "configure"
7972 #include "confdefs.h"
7977 #define __CYGWIN__ __CYGWIN32__
7982 if { (eval echo configure:7983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7986 echo "configure: failed program was:" >&5
7987 cat conftest.$ac_ext >&5
7994 echo "$ac_t""$ac_cv_cygwin" 1>&6
7996 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7997 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7998 echo "configure:7999: checking for mingw32 environment" >&5
7999 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8000 echo $ac_n "(cached) $ac_c" 1>&6
8002 cat > conftest.$ac_ext <<EOF
8003 #line 8004 "configure"
8004 #include "confdefs.h"
8010 if { (eval echo configure:8011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8014 echo "configure: failed program was:" >&5
8015 cat conftest.$ac_ext >&5
8022 echo "$ac_t""$ac_cv_mingw32" 1>&6
8024 test "$ac_cv_mingw32" = yes && MINGW32=yes
8028 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8029 echo "configure:8030: checking for executable suffix" >&5
8030 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8031 echo $ac_n "(cached) $ac_c" 1>&6
8033 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8037 echo 'int main () { return 0; }' > conftest.$ac_ext
8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8040 for file in conftest.*; do
8042 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8043 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8047 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8050 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8055 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8056 echo "$ac_t""${ac_cv_exeext}" 1>&6
8059 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8060 echo "configure:8061: checking for object suffix" >&5
8061 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8065 echo 'int i = 1;' > conftest.$ac_ext
8066 if { (eval echo configure:8067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8067 for ac_file in conftest.*; do
8070 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8074 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8079 echo "$ac_t""$ac_cv_objext" 1>&6
8080 OBJEXT=$ac_cv_objext
8081 ac_objext=$ac_cv_objext
8084 cat >> confdefs.h <<EOF
8085 #define EXEEXT "${EXEEXT}"
8089 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8090 echo "configure:8091: checking for be_app in -lbe" >&5
8091 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8092 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8093 echo $ac_n "(cached) $ac_c" 1>&6
8095 ac_save_LIBS="$LIBS"
8096 LIBS="-lbe -lroot -lnet $LIBS"
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 /* Override any gcc2 internal prototype to avoid an error. */
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8109 if { (eval echo configure:8110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8111 eval "ac_cv_lib_$ac_lib_var=yes"
8113 echo "configure: failed program was:" >&5
8114 cat conftest.$ac_ext >&5
8116 eval "ac_cv_lib_$ac_lib_var=no"
8119 LIBS="$ac_save_LIBS"
8122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8123 echo "$ac_t""yes" 1>&6
8124 LIBS="$LIBS -lbe -lroot -lnet"
8126 echo "$ac_t""no" 1>&6
8134 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8135 echo "configure:8136: checking for ${CC-cc} option to accept ANSI C" >&5
8136 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8139 am_cv_prog_cc_stdc=no
8141 # Don't try gcc -ansi; that turns off useful extensions and
8142 # breaks some systems' header files.
8143 # AIX -qlanglvl=ansi
8144 # Ultrix and OSF/1 -std1
8145 # HP-UX 10.20 and later -Ae
8146 # HP-UX older versions -Aa -D_HPUX_SOURCE
8147 # SVR4 -Xc -D__EXTENSIONS__
8148 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8150 CC="$ac_save_CC $ac_arg"
8151 cat > conftest.$ac_ext <<EOF
8152 #line 8153 "configure"
8153 #include "confdefs.h"
8156 #include <sys/types.h>
8157 #include <sys/stat.h>
8158 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8159 struct buf { int x; };
8160 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8161 static char *e (p, i)
8167 static char *f (char * (*g) (char **, int), char **p, ...)
8172 s = g (p, va_arg (v,int));
8176 int test (int i, double x);
8177 struct s1 {int (*f) (int a);};
8178 struct s2 {int (*f) (double a);};
8179 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8185 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8189 if { (eval echo configure:8190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8191 am_cv_prog_cc_stdc="$ac_arg"; break
8193 echo "configure: failed program was:" >&5
8194 cat conftest.$ac_ext >&5
8202 if test -z "$am_cv_prog_cc_stdc"; then
8203 echo "$ac_t""none needed" 1>&6
8205 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8207 case "x$am_cv_prog_cc_stdc" in
8209 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8212 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8213 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8216 # test for make depend flag
8219 if test -z "${MKDEP}"; then
8221 if test -z "${MKDEP_FLAGS}"; then
8222 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8223 echo "configure:8224: checking for ${OL_MKDEP} depend flag" >&5
8224 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8225 echo $ac_n "(cached) $ac_c" 1>&6
8229 for flag in "-M" "-xM"; do
8230 cat > conftest.c <<EOF
8233 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8234 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8236 if test ! -f conftest."${ac_object}" ; then
8238 OL_MKDEP_FLAGS="$flag"
8247 echo "$ac_t""$ol_cv_mkdep" 1>&6
8250 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8255 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8260 if test "${ol_cv_mkdep}" = no ; then
8261 # this will soon become an error
8262 echo "configure: warning: do not know how to generate dependencies" 1>&2
8265 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8266 echo "configure:8267: checking for afopen in -ls" >&5
8267 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8268 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8269 echo $ac_n "(cached) $ac_c" 1>&6
8271 ac_save_LIBS="$LIBS"
8273 cat > conftest.$ac_ext <<EOF
8274 #line 8275 "configure"
8275 #include "confdefs.h"
8276 /* Override any gcc2 internal prototype to avoid an error. */
8277 /* We use char because int might match the return type of a gcc2
8278 builtin and then its argument prototype would still apply. */
8285 if { (eval echo configure:8286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8287 eval "ac_cv_lib_$ac_lib_var=yes"
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8292 eval "ac_cv_lib_$ac_lib_var=no"
8295 LIBS="$ac_save_LIBS"
8298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8299 echo "$ac_t""yes" 1>&6
8302 cat >> confdefs.h <<\EOF
8303 #define HAVE_AIX_SECURITY 1
8308 echo "$ac_t""no" 1>&6
8314 if test $ol_enable_modules != no ; then
8315 for ac_hdr in ltdl.h
8317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8319 echo "configure:8320: checking for $ac_hdr" >&5
8320 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8321 echo $ac_n "(cached) $ac_c" 1>&6
8323 cat > conftest.$ac_ext <<EOF
8324 #line 8325 "configure"
8325 #include "confdefs.h"
8328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8329 { (eval echo configure:8330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8331 if test -z "$ac_err"; then
8333 eval "ac_cv_header_$ac_safe=yes"
8336 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8339 eval "ac_cv_header_$ac_safe=no"
8343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8344 echo "$ac_t""yes" 1>&6
8345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8346 cat >> confdefs.h <<EOF
8347 #define $ac_tr_hdr 1
8351 echo "$ac_t""no" 1>&6
8356 if test $ac_cv_header_ltdl_h = no ; then
8357 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8360 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8361 echo "configure:8362: checking for lt_dlinit in -lltdl" >&5
8362 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8366 ac_save_LIBS="$LIBS"
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8371 /* Override any gcc2 internal prototype to avoid an error. */
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8380 if { (eval echo configure:8381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8382 eval "ac_cv_lib_$ac_lib_var=yes"
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8387 eval "ac_cv_lib_$ac_lib_var=no"
8390 LIBS="$ac_save_LIBS"
8393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8394 echo "$ac_t""yes" 1>&6
8397 cat >> confdefs.h <<\EOF
8398 #define HAVE_LIBLTDL 1
8403 echo "$ac_t""no" 1>&6
8407 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8408 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8412 ol_with_bdb_module=static
8413 ol_with_dnssrv_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_passwd_module=static
8419 ol_with_perl_module=static
8420 ol_with_shell_module=static
8421 ol_with_tcl_module=static
8422 ol_with_sql_module=static
8426 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8427 echo "configure:8428: checking for EBCDIC" >&5
8428 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8429 echo $ac_n "(cached) $ac_c" 1>&6
8432 cat > conftest.$ac_ext <<EOF
8433 #line 8434 "configure"
8434 #include "confdefs.h"
8437 #include <__ASCII__/generate_error.h>
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8446 ol_cv_cpp_ebcdic=yes
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8457 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8458 if test $ol_cv_cpp_ebcdic = yes ; then
8459 cat >> confdefs.h <<\EOF
8460 #define HAVE_EBCDIC 1
8465 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8466 echo "configure:8467: checking for ANSI C header files" >&5
8467 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8468 echo $ac_n "(cached) $ac_c" 1>&6
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8478 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8479 { (eval echo configure:8480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8480 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8481 if test -z "$ac_err"; then
8483 ol_cv_header_stdc=yes
8486 echo "configure: failed program was:" >&5
8487 cat conftest.$ac_ext >&5
8489 ol_cv_header_stdc=no
8493 if test $ol_cv_header_stdc = yes; then
8494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8495 cat > conftest.$ac_ext <<EOF
8496 #line 8497 "configure"
8497 #include "confdefs.h"
8500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8501 egrep "memchr" >/dev/null 2>&1; then
8505 ol_cv_header_stdc=no
8511 if test $ol_cv_header_stdc = yes; then
8512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8513 cat > conftest.$ac_ext <<EOF
8514 #line 8515 "configure"
8515 #include "confdefs.h"
8518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8519 egrep "free" >/dev/null 2>&1; then
8523 ol_cv_header_stdc=no
8529 if test $ol_cv_header_stdc = yes; then
8530 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8531 if test "$cross_compiling" = yes; then
8534 cat > conftest.$ac_ext <<EOF
8535 #line 8536 "configure"
8536 #include "confdefs.h"
8539 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8540 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8542 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8543 || ('j' <= (c) && (c) <= 'r') \
8544 || ('s' <= (c) && (c) <= 'z'))
8545 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8547 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8548 int main () { int i; for (i = 0; i < 256; i++)
8549 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8553 if { (eval echo configure:8554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8557 echo "configure: failed program was:" >&5
8558 cat conftest.$ac_ext >&5
8560 ol_cv_header_stdc=no
8568 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8569 if test $ol_cv_header_stdc = yes; then
8570 cat >> confdefs.h <<\EOF
8571 #define STDC_HEADERS 1
8575 ac_cv_header_stdc=disable
8578 if test $ol_cv_header_stdc != yes; then
8579 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8583 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8585 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8586 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8587 echo "configure:8588: checking for $ac_hdr that defines DIR" >&5
8588 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8589 echo $ac_n "(cached) $ac_c" 1>&6
8591 cat > conftest.$ac_ext <<EOF
8592 #line 8593 "configure"
8593 #include "confdefs.h"
8594 #include <sys/types.h>
8600 if { (eval echo configure:8601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8602 eval "ac_cv_header_dirent_$ac_safe=yes"
8604 echo "configure: failed program was:" >&5
8605 cat conftest.$ac_ext >&5
8607 eval "ac_cv_header_dirent_$ac_safe=no"
8611 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8612 echo "$ac_t""yes" 1>&6
8613 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8614 cat >> confdefs.h <<EOF
8615 #define $ac_tr_hdr 1
8617 ac_header_dirent=$ac_hdr; break
8619 echo "$ac_t""no" 1>&6
8622 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8623 if test $ac_header_dirent = dirent.h; then
8624 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8625 echo "configure:8626: checking for opendir in -ldir" >&5
8626 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8627 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8628 echo $ac_n "(cached) $ac_c" 1>&6
8630 ac_save_LIBS="$LIBS"
8632 cat > conftest.$ac_ext <<EOF
8633 #line 8634 "configure"
8634 #include "confdefs.h"
8635 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8644 if { (eval echo configure:8645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8646 eval "ac_cv_lib_$ac_lib_var=yes"
8648 echo "configure: failed program was:" >&5
8649 cat conftest.$ac_ext >&5
8651 eval "ac_cv_lib_$ac_lib_var=no"
8654 LIBS="$ac_save_LIBS"
8657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8658 echo "$ac_t""yes" 1>&6
8661 echo "$ac_t""no" 1>&6
8665 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8666 echo "configure:8667: checking for opendir in -lx" >&5
8667 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8668 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8671 ac_save_LIBS="$LIBS"
8673 cat > conftest.$ac_ext <<EOF
8674 #line 8675 "configure"
8675 #include "confdefs.h"
8676 /* Override any gcc2 internal prototype to avoid an error. */
8677 /* We use char because int might match the return type of a gcc2
8678 builtin and then its argument prototype would still apply. */
8685 if { (eval echo configure:8686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8687 eval "ac_cv_lib_$ac_lib_var=yes"
8689 echo "configure: failed program was:" >&5
8690 cat conftest.$ac_ext >&5
8692 eval "ac_cv_lib_$ac_lib_var=no"
8695 LIBS="$ac_save_LIBS"
8698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8699 echo "$ac_t""yes" 1>&6
8702 echo "$ac_t""no" 1>&6
8707 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8708 echo "configure:8709: checking for sys/wait.h that is POSIX.1 compatible" >&5
8709 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8710 echo $ac_n "(cached) $ac_c" 1>&6
8712 cat > conftest.$ac_ext <<EOF
8713 #line 8714 "configure"
8714 #include "confdefs.h"
8715 #include <sys/types.h>
8716 #include <sys/wait.h>
8718 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8721 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8726 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8729 if { (eval echo configure:8730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8731 ac_cv_header_sys_wait_h=yes
8733 echo "configure: failed program was:" >&5
8734 cat conftest.$ac_ext >&5
8736 ac_cv_header_sys_wait_h=no
8741 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8742 if test $ac_cv_header_sys_wait_h = yes; then
8743 cat >> confdefs.h <<\EOF
8744 #define HAVE_SYS_WAIT_H 1
8749 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8750 echo "configure:8751: checking POSIX termios" >&5
8751 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8752 echo $ac_n "(cached) $ac_c" 1>&6
8754 cat > conftest.$ac_ext <<EOF
8755 #line 8756 "configure"
8756 #include "confdefs.h"
8757 #include <sys/types.h>
8759 #include <termios.h>
8761 /* SunOS 4.0.3 has termios.h but not the library calls. */
8765 if { (eval echo configure:8766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8767 am_cv_sys_posix_termios=yes
8769 echo "configure: failed program was:" >&5
8770 cat conftest.$ac_ext >&5
8772 am_cv_sys_posix_termios=no
8777 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8780 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8781 echo "configure:8782: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8782 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8783 echo $ac_n "(cached) $ac_c" 1>&6
8785 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8787 gwinsz_in_termios_h=no
8788 if test $am_cv_sys_posix_termios = yes; then
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8792 #include <sys/types.h>
8793 # include <termios.h>
8799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8800 egrep "yes" >/dev/null 2>&1; then
8802 gwinsz_in_termios_h=yes
8808 if test $gwinsz_in_termios_h = no; then
8809 cat > conftest.$ac_ext <<EOF
8810 #line 8811 "configure"
8811 #include "confdefs.h"
8812 #include <sys/types.h>
8813 # include <sys/ioctl.h>
8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8820 egrep "yes" >/dev/null 2>&1; then
8822 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8830 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8831 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8832 cat >> confdefs.h <<\EOF
8833 #define GWINSZ_IN_SYS_IOCTL 1
8838 if test $am_cv_sys_posix_termios = yes ; then
8839 cat >> confdefs.h <<\EOF
8840 #define HAVE_POSIX_TERMIOS 1
8892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8894 echo "configure:8895: checking for $ac_hdr" >&5
8895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8896 echo $ac_n "(cached) $ac_c" 1>&6
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8904 { (eval echo configure:8905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8906 if test -z "$ac_err"; then
8908 eval "ac_cv_header_$ac_safe=yes"
8911 echo "configure: failed program was:" >&5
8912 cat conftest.$ac_ext >&5
8914 eval "ac_cv_header_$ac_safe=no"
8918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8919 echo "$ac_t""yes" 1>&6
8920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8921 cat >> confdefs.h <<EOF
8922 #define $ac_tr_hdr 1
8926 echo "$ac_t""no" 1>&6
8933 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8934 echo "configure:8935: checking for dlopen" >&5
8935 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8936 echo $ac_n "(cached) $ac_c" 1>&6
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 /* System header to define __stub macros and hopefully few prototypes,
8942 which can conflict with char dlopen(); below. */
8944 /* Override any gcc2 internal prototype to avoid an error. */
8945 /* We use char because int might match the return type of a gcc2
8946 builtin and then its argument prototype would still apply. */
8952 /* The GNU C library defines this for functions which it implements
8953 to always fail with ENOSYS. Some functions are actually named
8954 something starting with __ and the normal name is an alias. */
8955 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8963 if { (eval echo configure:8964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8965 eval "ac_cv_func_dlopen=yes"
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8970 eval "ac_cv_func_dlopen=no"
8975 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8976 echo "$ac_t""yes" 1>&6
8979 echo "$ac_t""no" 1>&6
8980 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8981 echo "configure:8982: checking for dlopen in -ldl" >&5
8982 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8983 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8984 echo $ac_n "(cached) $ac_c" 1>&6
8986 ac_save_LIBS="$LIBS"
8988 cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8991 /* Override any gcc2 internal prototype to avoid an error. */
8992 /* We use char because int might match the return type of a gcc2
8993 builtin and then its argument prototype would still apply. */
9000 if { (eval echo configure:9001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9002 eval "ac_cv_lib_$ac_lib_var=yes"
9004 echo "configure: failed program was:" >&5
9005 cat conftest.$ac_ext >&5
9007 eval "ac_cv_lib_$ac_lib_var=no"
9010 LIBS="$ac_save_LIBS"
9013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9014 echo "$ac_t""yes" 1>&6
9015 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9016 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9017 cat >> confdefs.h <<EOF
9018 #define $ac_tr_lib 1
9024 echo "$ac_t""no" 1>&6
9030 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9031 echo "configure:9032: checking for sigset in -lV3" >&5
9032 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9034 echo $ac_n "(cached) $ac_c" 1>&6
9036 ac_save_LIBS="$LIBS"
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9040 "configure"
9040 #include "confdefs.h"
9041 /* Override any gcc2 internal prototype to avoid an error. */
9042 /* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9052 eval "ac_cv_lib_$ac_lib_var=yes"
9054 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9057 eval "ac_cv_lib_$ac_lib_var=no"
9060 LIBS="$ac_save_LIBS"
9063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9064 echo "$ac_t""yes" 1>&6
9065 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9067 cat >> confdefs.h <<EOF
9068 #define $ac_tr_lib 1
9074 echo "$ac_t""no" 1>&6
9078 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9079 echo "configure:9080: checking for winsock" >&5
9081 for curlib in ws2_32 wsock32; do
9082 LIBS="$LIBS -l$curlib"
9083 cat > conftest.$ac_ext <<EOF
9084 #line 9085 "configure"
9085 #include "confdefs.h"
9089 char closesocket@4();
9090 char gethostname@8();
9101 if { (eval echo configure:9102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9105 echo "configure: failed program was:" >&5
9106 cat conftest.$ac_ext >&5
9112 if test $have_winsock = yes; then
9113 cat >> confdefs.h <<\EOF
9114 #define HAVE_WINSOCK 1
9117 ac_cv_func_socket=yes
9118 ac_cv_func_select=yes
9119 ac_cv_func_closesocket=yes
9120 ac_cv_func_gethostname=yes
9121 if test $curlib = ws2_32; then
9122 have_winsock=winsock2
9123 cat >> confdefs.h <<\EOF
9124 #define HAVE_WINSOCK2 1
9132 echo "$ac_t""$have_winsock" 1>&6
9135 echo $ac_n "checking for socket""... $ac_c" 1>&6
9136 echo "configure:9137: checking for socket" >&5
9137 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9140 cat > conftest.$ac_ext <<EOF
9141 #line 9142 "configure"
9142 #include "confdefs.h"
9143 /* System header to define __stub macros and hopefully few prototypes,
9144 which can conflict with char socket(); below. */
9146 /* Override any gcc2 internal prototype to avoid an error. */
9147 /* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9154 /* The GNU C library defines this for functions which it implements
9155 to always fail with ENOSYS. Some functions are actually named
9156 something starting with __ and the normal name is an alias. */
9157 #if defined (__stub_socket) || defined (__stub___socket)
9165 if { (eval echo configure:9166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9167 eval "ac_cv_func_socket=yes"
9169 echo "configure: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9172 eval "ac_cv_func_socket=no"
9177 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9178 echo "$ac_t""yes" 1>&6
9181 echo "$ac_t""no" 1>&6
9183 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9184 echo "configure:9185: checking for main in -lsocket" >&5
9185 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9186 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9187 echo $ac_n "(cached) $ac_c" 1>&6
9189 ac_save_LIBS="$LIBS"
9190 LIBS="-lsocket $LIBS"
9191 cat > conftest.$ac_ext <<EOF
9192 #line 9193 "configure"
9193 #include "confdefs.h"
9199 if { (eval echo configure:9200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9201 eval "ac_cv_lib_$ac_lib_var=yes"
9203 echo "configure: failed program was:" >&5
9204 cat conftest.$ac_ext >&5
9206 eval "ac_cv_lib_$ac_lib_var=no"
9209 LIBS="$ac_save_LIBS"
9212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9213 echo "$ac_t""yes" 1>&6
9214 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9215 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9216 cat >> confdefs.h <<EOF
9217 #define $ac_tr_lib 1
9220 LIBS="-lsocket $LIBS"
9223 echo "$ac_t""no" 1>&6
9226 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9227 echo "configure:9228: checking for main in -lnet" >&5
9228 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9229 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9230 echo $ac_n "(cached) $ac_c" 1>&6
9232 ac_save_LIBS="$LIBS"
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9236 "configure"
9236 #include "confdefs.h"
9242 if { (eval echo configure:9243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9244 eval "ac_cv_lib_$ac_lib_var=yes"
9246 echo "configure: failed program was:" >&5
9247 cat conftest.$ac_ext >&5
9249 eval "ac_cv_lib_$ac_lib_var=no"
9252 LIBS="$ac_save_LIBS"
9255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9256 echo "$ac_t""yes" 1>&6
9257 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9259 cat >> confdefs.h <<EOF
9260 #define $ac_tr_lib 1
9266 echo "$ac_t""no" 1>&6
9269 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9270 echo "configure:9271: checking for main in -lnsl_s" >&5
9271 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9272 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9275 ac_save_LIBS="$LIBS"
9276 LIBS="-lnsl_s $LIBS"
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9285 if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9287 eval "ac_cv_lib_$ac_lib_var=yes"
9289 echo "configure: failed program was:" >&5
9290 cat conftest.$ac_ext >&5
9292 eval "ac_cv_lib_$ac_lib_var=no"
9295 LIBS="$ac_save_LIBS"
9298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9299 echo "$ac_t""yes" 1>&6
9300 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9301 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9302 cat >> confdefs.h <<EOF
9303 #define $ac_tr_lib 1
9306 LIBS="-lnsl_s $LIBS"
9309 echo "$ac_t""no" 1>&6
9312 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9313 echo "configure:9314: checking for main in -lnsl" >&5
9314 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9315 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9318 ac_save_LIBS="$LIBS"
9320 cat > conftest.$ac_ext <<EOF
9321 #line 9322 "configure"
9322 #include "confdefs.h"
9328 if { (eval echo configure:9329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9330 eval "ac_cv_lib_$ac_lib_var=yes"
9332 echo "configure: failed program was:" >&5
9333 cat conftest.$ac_ext >&5
9335 eval "ac_cv_lib_$ac_lib_var=no"
9338 LIBS="$ac_save_LIBS"
9341 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9342 echo "$ac_t""yes" 1>&6
9343 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9344 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9345 cat >> confdefs.h <<EOF
9346 #define $ac_tr_lib 1
9352 echo "$ac_t""no" 1>&6
9355 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9356 echo "configure:9357: checking for socket in -linet" >&5
9357 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9361 ac_save_LIBS="$LIBS"
9363 cat > conftest.$ac_ext <<EOF
9364 #line 9365 "configure"
9365 #include "confdefs.h"
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9375 if { (eval echo configure:9376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9377 eval "ac_cv_lib_$ac_lib_var=yes"
9379 echo "configure: failed program was:" >&5
9380 cat conftest.$ac_ext >&5
9382 eval "ac_cv_lib_$ac_lib_var=no"
9385 LIBS="$ac_save_LIBS"
9388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9389 echo "$ac_t""yes" 1>&6
9390 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9391 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9392 cat >> confdefs.h <<EOF
9393 #define $ac_tr_lib 1
9399 echo "$ac_t""no" 1>&6
9402 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9403 echo "configure:9404: checking for main in -lgen" >&5
9404 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9405 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9406 echo $ac_n "(cached) $ac_c" 1>&6
9408 ac_save_LIBS="$LIBS"
9410 cat > conftest.$ac_ext <<EOF
9411 #line 9412 "configure"
9412 #include "confdefs.h"
9418 if { (eval echo configure:9419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9420 eval "ac_cv_lib_$ac_lib_var=yes"
9422 echo "configure: failed program was:" >&5
9423 cat conftest.$ac_ext >&5
9425 eval "ac_cv_lib_$ac_lib_var=no"
9428 LIBS="$ac_save_LIBS"
9431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9432 echo "$ac_t""yes" 1>&6
9433 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9434 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9435 cat >> confdefs.h <<EOF
9436 #define $ac_tr_lib 1
9442 echo "$ac_t""no" 1>&6
9449 echo $ac_n "checking for select""... $ac_c" 1>&6
9450 echo "configure:9451: checking for select" >&5
9451 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9452 echo $ac_n "(cached) $ac_c" 1>&6
9454 cat > conftest.$ac_ext <<EOF
9455 #line 9456 "configure"
9456 #include "confdefs.h"
9457 /* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char select(); below. */
9460 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
9468 /* The GNU C library defines this for functions which it implements
9469 to always fail with ENOSYS. Some functions are actually named
9470 something starting with __ and the normal name is an alias. */
9471 #if defined (__stub_select) || defined (__stub___select)
9479 if { (eval echo configure:9480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9481 eval "ac_cv_func_select=yes"
9483 echo "configure: failed program was:" >&5
9484 cat conftest.$ac_ext >&5
9486 eval "ac_cv_func_select=no"
9491 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9492 echo "$ac_t""yes" 1>&6
9495 echo "$ac_t""no" 1>&6
9496 { echo "configure: error: select() required." 1>&2; exit 1; }
9500 if test "${ac_cv_header_winsock_h}" != yes; then
9501 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9502 echo "configure:9503: checking types of arguments for select()" >&5
9503 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9504 echo $ac_n "(cached) $ac_c" 1>&6
9506 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9507 echo $ac_n "(cached) $ac_c" 1>&6
9509 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9510 echo $ac_n "(cached) $ac_c" 1>&6
9512 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9513 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9514 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9515 cat > conftest.$ac_ext <<EOF
9516 #line 9517 "configure"
9517 #include "confdefs.h"
9518 #ifdef HAVE_SYS_TYPES_H
9519 #include <sys/types.h>
9521 #ifdef HAVE_SYS_TIME_H
9522 #include <sys/time.h>
9524 #ifdef HAVE_SYS_SELECT_H
9525 #include <sys/select.h>
9527 #ifdef HAVE_SYS_SOCKET_H
9528 #include <sys/socket.h>
9530 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);
9535 if { (eval echo configure:9536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9537 ac_not_found=no ; break 3
9539 echo "configure: failed program was:" >&5
9540 cat conftest.$ac_ext >&5
9554 if test "$ac_not_found" = yes; then
9555 ac_cv_func_select_arg1=int
9556 ac_cv_func_select_arg234='int *'
9557 ac_cv_func_select_arg5='struct timeval *'
9559 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9560 cat >> confdefs.h <<EOF
9561 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9564 cat >> confdefs.h <<EOF
9565 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9568 cat >> confdefs.h <<EOF
9569 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9576 for ac_hdr in regex.h
9578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9580 echo "configure:9581: checking for $ac_hdr" >&5
9581 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9590 { (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592 if test -z "$ac_err"; then
9594 eval "ac_cv_header_$ac_safe=yes"
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9600 eval "ac_cv_header_$ac_safe=no"
9604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9607 cat >> confdefs.h <<EOF
9608 #define $ac_tr_hdr 1
9612 echo "$ac_t""no" 1>&6
9616 if test "$ac_cv_header_regex_h" != yes ; then
9617 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9620 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9621 echo "configure:9622: checking for library containing regfree" >&5
9622 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9623 echo $ac_n "(cached) $ac_c" 1>&6
9625 ac_func_search_save_LIBS="$LIBS"
9626 ac_cv_search_regfree="no"
9627 cat > conftest.$ac_ext <<EOF
9628 #line 9629 "configure"
9629 #include "confdefs.h"
9630 /* Override any gcc2 internal prototype to avoid an error. */
9631 /* We use char because int might match the return type of a gcc2
9632 builtin and then its argument prototype would still apply. */
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9641 ac_cv_search_regfree="none required"
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9647 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9649 cat > conftest.$ac_ext <<EOF
9650 #line 9651 "configure"
9651 #include "confdefs.h"
9652 /* Override any gcc2 internal prototype to avoid an error. */
9653 /* We use char because int might match the return type of a gcc2
9654 builtin and then its argument prototype would still apply. */
9661 if { (eval echo configure:9662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9663 ac_cv_search_regfree="-l$ac_lib"
9666 echo "configure: failed program was:" >&5
9667 cat conftest.$ac_ext >&5
9671 LIBS="$ac_func_search_save_LIBS"
9674 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9675 if test "$ac_cv_search_regfree" != "no"; then
9676 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9679 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9683 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9684 echo "configure:9685: checking for compatible POSIX regex" >&5
9685 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9686 echo $ac_n "(cached) $ac_c" 1>&6
9689 if test "$cross_compiling" = yes; then
9690 ol_cv_c_posix_regex=cross
9692 cat > conftest.$ac_ext <<EOF
9693 #line 9694 "configure"
9694 #include "confdefs.h"
9696 #include <sys/types.h>
9698 static char *pattern, *string;
9706 if(regcomp(&re, pattern, 0)) {
9710 string = "ALL MATCH";
9712 rc = regexec(&re, string, 0, (void*)0, 0);
9719 if { (eval echo configure:9720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9721 ol_cv_c_posix_regex=yes
9723 echo "configure: failed program was:" >&5
9724 cat conftest.$ac_ext >&5
9726 ol_cv_c_posix_regex=no
9733 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9735 if test "$ol_cv_c_posix_regex" = no ; then
9736 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9739 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9740 echo "configure:9741: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9742 LIBS="$LIBS -lrpcrt4"
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9747 char UuidCreate@4();
9748 char UuidToStringA@8();
9757 if { (eval echo configure:9758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9767 if test $need_rpcrt = yes; then
9768 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9771 echo "$ac_t""$need_rpcrt" 1>&6
9774 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9775 echo "configure:9776: checking for res_query" >&5
9776 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9777 echo $ac_n "(cached) $ac_c" 1>&6
9779 cat > conftest.$ac_ext <<EOF
9780 #line 9781 "configure"
9781 #include "confdefs.h"
9782 /* System header to define __stub macros and hopefully few prototypes,
9783 which can conflict with char res_query(); below. */
9785 /* Override any gcc2 internal prototype to avoid an error. */
9786 /* We use char because int might match the return type of a gcc2
9787 builtin and then its argument prototype would still apply. */
9793 /* The GNU C library defines this for functions which it implements
9794 to always fail with ENOSYS. Some functions are actually named
9795 something starting with __ and the normal name is an alias. */
9796 #if defined (__stub_res_query) || defined (__stub___res_query)
9804 if { (eval echo configure:9805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9806 eval "ac_cv_func_res_query=yes"
9808 echo "configure: failed program was:" >&5
9809 cat conftest.$ac_ext >&5
9811 eval "ac_cv_func_res_query=no"
9816 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9817 echo "$ac_t""yes" 1>&6
9820 echo "$ac_t""no" 1>&6
9823 if test $ac_cv_func_res_query = no ; then
9824 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9825 echo "configure:9826: checking for __res_query" >&5
9826 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9827 echo $ac_n "(cached) $ac_c" 1>&6
9829 cat > conftest.$ac_ext <<EOF
9830 #line 9831 "configure"
9831 #include "confdefs.h"
9832 /* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char __res_query(); below. */
9835 /* Override any gcc2 internal prototype to avoid an error. */
9836 /* We use char because int might match the return type of a gcc2
9837 builtin and then its argument prototype would still apply. */
9843 /* The GNU C library defines this for functions which it implements
9844 to always fail with ENOSYS. Some functions are actually named
9845 something starting with __ and the normal name is an alias. */
9846 #if defined (__stub___res_query) || defined (__stub_____res_query)
9854 if { (eval echo configure:9855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9856 eval "ac_cv_func___res_query=yes"
9858 echo "configure: failed program was:" >&5
9859 cat conftest.$ac_ext >&5
9861 eval "ac_cv_func___res_query=no"
9866 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9867 echo "$ac_t""yes" 1>&6
9870 echo "$ac_t""no" 1>&6
9873 ac_cv_func_res_query=$ac_cv_func___res_query
9876 if test $ac_cv_func_res_query = no ; then
9877 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9878 echo "configure:9879: checking for res_query in -lbind" >&5
9879 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9880 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9881 echo $ac_n "(cached) $ac_c" 1>&6
9883 ac_save_LIBS="$LIBS"
9885 cat > conftest.$ac_ext <<EOF
9886 #line 9887 "configure"
9887 #include "confdefs.h"
9888 /* Override any gcc2 internal prototype to avoid an error. */
9889 /* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9897 if { (eval echo configure:9898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 eval "ac_cv_lib_$ac_lib_var=yes"
9901 echo "configure: failed program was:" >&5
9902 cat conftest.$ac_ext >&5
9904 eval "ac_cv_lib_$ac_lib_var=no"
9907 LIBS="$ac_save_LIBS"
9910 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9911 echo "$ac_t""yes" 1>&6
9912 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9913 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9914 cat >> confdefs.h <<EOF
9915 #define $ac_tr_lib 1
9921 echo "$ac_t""no" 1>&6
9924 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9927 if test $ac_cv_func_res_query = no ; then
9928 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9929 echo "configure:9930: checking for __res_query in -lbind" >&5
9930 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9932 echo $ac_n "(cached) $ac_c" 1>&6
9934 ac_save_LIBS="$LIBS"
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 /* Override any gcc2 internal prototype to avoid an error. */
9940 /* We use char because int might match the return type of a gcc2
9941 builtin and then its argument prototype would still apply. */
9948 if { (eval echo configure:9949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9950 eval "ac_cv_lib_$ac_lib_var=yes"
9952 echo "configure: failed program was:" >&5
9953 cat conftest.$ac_ext >&5
9955 eval "ac_cv_lib_$ac_lib_var=no"
9958 LIBS="$ac_save_LIBS"
9961 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9962 echo "$ac_t""yes" 1>&6
9963 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9964 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9965 cat >> confdefs.h <<EOF
9966 #define $ac_tr_lib 1
9972 echo "$ac_t""no" 1>&6
9975 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9978 if test $ac_cv_func_res_query = no ; then
9979 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9980 echo "configure:9981: checking for res_query in -lresolv" >&5
9981 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9982 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9983 echo $ac_n "(cached) $ac_c" 1>&6
9985 ac_save_LIBS="$LIBS"
9986 LIBS="-lresolv $LIBS"
9987 cat > conftest.$ac_ext <<EOF
9988 #line 9989 "configure"
9989 #include "confdefs.h"
9990 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9999 if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10001 eval "ac_cv_lib_$ac_lib_var=yes"
10003 echo "configure: failed program was:" >&5
10004 cat conftest.$ac_ext >&5
10006 eval "ac_cv_lib_$ac_lib_var=no"
10009 LIBS="$ac_save_LIBS"
10012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10013 echo "$ac_t""yes" 1>&6
10014 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10016 cat >> confdefs.h <<EOF
10017 #define $ac_tr_lib 1
10020 LIBS="-lresolv $LIBS"
10023 echo "$ac_t""no" 1>&6
10026 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10029 if test $ac_cv_func_res_query = no ; then
10030 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10031 echo "configure:10032: checking for __res_query in -lresolv" >&5
10032 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10033 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10034 echo $ac_n "(cached) $ac_c" 1>&6
10036 ac_save_LIBS="$LIBS"
10037 LIBS="-lresolv $LIBS"
10038 cat > conftest.$ac_ext <<EOF
10039 #line 10040 "configure"
10040 #include "confdefs.h"
10041 /* Override any gcc2 internal prototype to avoid an error. */
10042 /* We use char because int might match the return type of a gcc2
10043 builtin and then its argument prototype would still apply. */
10044 char __res_query();
10050 if { (eval echo configure:10051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10052 eval "ac_cv_lib_$ac_lib_var=yes"
10054 echo "configure: failed program was:" >&5
10055 cat conftest.$ac_ext >&5
10057 eval "ac_cv_lib_$ac_lib_var=no"
10060 LIBS="$ac_save_LIBS"
10063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10064 echo "$ac_t""yes" 1>&6
10065 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10066 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10067 cat >> confdefs.h <<EOF
10068 #define $ac_tr_lib 1
10071 LIBS="-lresolv $LIBS"
10074 echo "$ac_t""no" 1>&6
10077 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10080 if test "$ac_cv_func_res_query" = yes ; then
10081 cat >> confdefs.h <<\EOF
10082 #define HAVE_RES_QUERY 1
10086 if test $ol_enable_dnssrv != no ; then
10091 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10092 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10095 for ac_func in getaddrinfo gai_strerror inet_ntop
10097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10098 echo "configure:10099: checking for $ac_func" >&5
10099 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10100 echo $ac_n "(cached) $ac_c" 1>&6
10102 cat > conftest.$ac_ext <<EOF
10103 #line 10104 "configure"
10104 #include "confdefs.h"
10105 /* System header to define __stub macros and hopefully few prototypes,
10106 which can conflict with char $ac_func(); below. */
10107 #include <assert.h>
10108 /* Override any gcc2 internal prototype to avoid an error. */
10109 /* We use char because int might match the return type of a gcc2
10110 builtin and then its argument prototype would still apply. */
10116 /* The GNU C library defines this for functions which it implements
10117 to always fail with ENOSYS. Some functions are actually named
10118 something starting with __ and the normal name is an alias. */
10119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10129 eval "ac_cv_func_$ac_func=yes"
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10134 eval "ac_cv_func_$ac_func=no"
10139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10140 echo "$ac_t""yes" 1>&6
10141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10142 cat >> confdefs.h <<EOF
10143 #define $ac_tr_func 1
10147 echo "$ac_t""no" 1>&6
10153 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10154 if test $ol_enable_ipv6 = yes ; then
10155 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10157 elif test $ol_enable_ipv6 != no ; then
10158 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10159 echo "configure:10160: checking INET6_ADDRSTRLEN" >&5
10160 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10168 # include <netinet/in.h>
10169 # ifdef INET6_ADDRSTRLEN
10170 __has_inet6_addrstrlen__;
10174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10175 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10177 ol_cv_inet6_addrstrlen=yes
10180 ol_cv_inet6_addrstrlen=no
10186 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10188 if test $ol_cv_inet6_addrstrlen = yes ; then
10190 elif test $ol_enable_ipv6 = yes ; then
10191 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10195 if test $ol_enable_local != no ; then
10196 for ac_hdr in sys/un.h
10198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10200 echo "configure:10201: checking for $ac_hdr" >&5
10201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10202 echo $ac_n "(cached) $ac_c" 1>&6
10204 cat > conftest.$ac_ext <<EOF
10205 #line 10206 "configure"
10206 #include "confdefs.h"
10209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10210 { (eval echo configure:10211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10212 if test -z "$ac_err"; then
10214 eval "ac_cv_header_$ac_safe=yes"
10217 echo "configure: failed program was:" >&5
10218 cat conftest.$ac_ext >&5
10220 eval "ac_cv_header_$ac_safe=no"
10224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10225 echo "$ac_t""yes" 1>&6
10226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10227 cat >> confdefs.h <<EOF
10228 #define $ac_tr_hdr 1
10232 echo "$ac_t""no" 1>&6
10237 if test $ol_enable_local = auto ; then
10238 ol_enable_local=$ac_cv_header_sys_un_h
10239 elif test $ac_cv_header_sys_un_h = no ; then
10240 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10249 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10250 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10251 -o $ol_with_kerberos = k425 ; then
10253 for ac_hdr in krb5.h
10255 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10256 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10257 echo "configure:10258: checking for $ac_hdr" >&5
10258 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10259 echo $ac_n "(cached) $ac_c" 1>&6
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10266 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10267 { (eval echo configure:10268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10268 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10269 if test -z "$ac_err"; then
10271 eval "ac_cv_header_$ac_safe=yes"
10274 echo "configure: failed program was:" >&5
10275 cat conftest.$ac_ext >&5
10277 eval "ac_cv_header_$ac_safe=no"
10281 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10282 echo "$ac_t""yes" 1>&6
10283 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10284 cat >> confdefs.h <<EOF
10285 #define $ac_tr_hdr 1
10289 echo "$ac_t""no" 1>&6
10294 if test $ac_cv_header_krb5_h = yes ; then
10295 for ac_hdr in heim_err.h
10297 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10298 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10299 echo "configure:10300: checking for $ac_hdr" >&5
10300 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10301 echo $ac_n "(cached) $ac_c" 1>&6
10303 cat > conftest.$ac_ext <<EOF
10304 #line 10305 "configure"
10305 #include "confdefs.h"
10308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10309 { (eval echo configure:10310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10311 if test -z "$ac_err"; then
10313 eval "ac_cv_header_$ac_safe=yes"
10316 echo "configure: failed program was:" >&5
10317 cat conftest.$ac_ext >&5
10319 eval "ac_cv_header_$ac_safe=no"
10323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10324 echo "$ac_t""yes" 1>&6
10325 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10326 cat >> confdefs.h <<EOF
10327 #define $ac_tr_hdr 1
10331 echo "$ac_t""no" 1>&6
10335 if test $ac_cv_header_heim_err_h = yes ; then
10341 if test $krb5_impl = mit; then
10342 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10343 echo "configure:10344: checking for main in -lk5crypto" >&5
10344 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10346 echo $ac_n "(cached) $ac_c" 1>&6
10348 ac_save_LIBS="$LIBS"
10349 LIBS="-lk5crypto $LIBS"
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10352 "configure"
10352 #include "confdefs.h"
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10360 eval "ac_cv_lib_$ac_lib_var=yes"
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10365 eval "ac_cv_lib_$ac_lib_var=no"
10368 LIBS="$ac_save_LIBS"
10371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10372 echo "$ac_t""yes" 1>&6
10373 krb5crypto=k5crypto
10375 echo "$ac_t""no" 1>&6
10380 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10381 echo "configure:10382: checking for main in -lkrb5" >&5
10382 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10383 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10386 ac_save_LIBS="$LIBS"
10387 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10388 cat > conftest.$ac_ext <<EOF
10389 #line 10390 "configure"
10390 #include "confdefs.h"
10396 if { (eval echo configure:10397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10398 eval "ac_cv_lib_$ac_lib_var=yes"
10400 echo "configure: failed program was:" >&5
10401 cat conftest.$ac_ext >&5
10403 eval "ac_cv_lib_$ac_lib_var=no"
10406 LIBS="$ac_save_LIBS"
10409 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10410 echo "$ac_t""yes" 1>&6
10412 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10414 echo "$ac_t""no" 1>&6
10419 elif test $krb5_impl = heimdal; then
10420 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10421 echo "configure:10422: checking for main in -lkrb5" >&5
10422 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10426 ac_save_LIBS="$LIBS"
10427 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10436 if { (eval echo configure:10437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10438 eval "ac_cv_lib_$ac_lib_var=yes"
10440 echo "configure: failed program was:" >&5
10441 cat conftest.$ac_ext >&5
10443 eval "ac_cv_lib_$ac_lib_var=no"
10446 LIBS="$ac_save_LIBS"
10449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10450 echo "$ac_t""yes" 1>&6
10452 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
10454 echo "$ac_t""no" 1>&6
10459 cat >> confdefs.h <<\EOF
10460 #define HAVE_HEIMDAL_KERBEROS 1
10466 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10469 if test $have_krb5 = yes ; then
10472 cat >> confdefs.h <<\EOF
10473 #define HAVE_KRB5 1
10477 if test $ol_enable_kpasswd != no ; then
10478 ol_link_kpasswd=yes;
10481 if test $ol_with_kerberos = k5only ; then
10482 ol_with_kerberos=found
10485 elif test $ol_with_kerberos != auto ; then
10486 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10492 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10493 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10495 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10499 echo "configure:10500: checking for $ac_hdr" >&5
10500 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10501 echo $ac_n "(cached) $ac_c" 1>&6
10503 cat > conftest.$ac_ext <<EOF
10504 #line 10505 "configure"
10505 #include "confdefs.h"
10508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10509 { (eval echo configure:10510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10511 if test -z "$ac_err"; then
10513 eval "ac_cv_header_$ac_safe=yes"
10516 echo "configure: failed program was:" >&5
10517 cat conftest.$ac_ext >&5
10519 eval "ac_cv_header_$ac_safe=no"
10523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10524 echo "$ac_t""yes" 1>&6
10525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10526 cat >> confdefs.h <<EOF
10527 #define $ac_tr_hdr 1
10531 echo "$ac_t""no" 1>&6
10536 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10537 if test $krb5_impl = mit; then
10538 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10539 echo "configure:10540: checking for main in -lkrb4" >&5
10540 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10541 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10542 echo $ac_n "(cached) $ac_c" 1>&6
10544 ac_save_LIBS="$LIBS"
10545 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10546 cat > conftest.$ac_ext <<EOF
10547 #line 10548 "configure"
10548 #include "confdefs.h"
10554 if { (eval echo configure:10555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10556 eval "ac_cv_lib_$ac_lib_var=yes"
10558 echo "configure: failed program was:" >&5
10559 cat conftest.$ac_ext >&5
10561 eval "ac_cv_lib_$ac_lib_var=no"
10564 LIBS="$ac_save_LIBS"
10567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10568 echo "$ac_t""yes" 1>&6
10570 KRB4_LIBS="-lkrb4 -ldes425"
10572 echo "$ac_t""no" 1>&6
10577 elif test $krb5_impl = heimdal; then
10578 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10579 echo "configure:10580: checking for main in -lkrb4" >&5
10580 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10581 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10582 echo $ac_n "(cached) $ac_c" 1>&6
10584 ac_save_LIBS="$LIBS"
10585 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10596 eval "ac_cv_lib_$ac_lib_var=yes"
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10601 eval "ac_cv_lib_$ac_lib_var=no"
10604 LIBS="$ac_save_LIBS"
10607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10612 echo "$ac_t""no" 1>&6
10619 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10622 if test $have_k425 = yes ; then
10623 ol_with_kerberos=found
10626 cat >> confdefs.h <<\EOF
10627 #define HAVE_KRB425 1
10630 cat >> confdefs.h <<\EOF
10631 #define HAVE_KRB4 1
10635 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10636 echo "configure:10637: checking for des_debug in Kerberos libraries" >&5
10637 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10638 echo $ac_n "(cached) $ac_c" 1>&6
10642 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10643 cat > conftest.$ac_ext <<EOF
10644 #line 10645 "configure"
10645 #include "confdefs.h"
10647 #include <kerberosIV/krb.h>
10648 #include <kerberosIV/des.h>
10649 extern int des_debug;
10657 if { (eval echo configure:10658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10659 ol_cv_var_des_debug=yes
10661 echo "configure: failed program was:" >&5
10662 cat conftest.$ac_ext >&5
10664 ol_cv_var_des_debug=no
10671 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10673 if test $ol_cv_var_des_debug = yes ; then
10674 cat >> confdefs.h <<\EOF
10675 #define HAVE_DES_DEBUG 1
10685 if test $ol_link_krb5 = yes ; then
10686 ol_with_kerberos=found
10689 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10690 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10692 for ac_hdr in krb.h des.h krb-archaeology.h
10694 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10695 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10696 echo "configure:10697: checking for $ac_hdr" >&5
10697 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10698 echo $ac_n "(cached) $ac_c" 1>&6
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10705 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10706 { (eval echo configure:10707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10707 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10708 if test -z "$ac_err"; then
10710 eval "ac_cv_header_$ac_safe=yes"
10713 echo "configure: failed program was:" >&5
10714 cat conftest.$ac_ext >&5
10716 eval "ac_cv_header_$ac_safe=no"
10720 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10721 echo "$ac_t""yes" 1>&6
10722 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10723 cat >> confdefs.h <<EOF
10724 #define $ac_tr_hdr 1
10728 echo "$ac_t""no" 1>&6
10733 if test $ac_cv_header_krb_h = yes ; then
10734 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10735 echo "configure:10736: checking for main in -lkrb" >&5
10736 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10737 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10738 echo $ac_n "(cached) $ac_c" 1>&6
10740 ac_save_LIBS="$LIBS"
10741 LIBS="-lkrb -ldes $LIBS"
10742 cat > conftest.$ac_ext <<EOF
10743 #line 10744 "configure"
10744 #include "confdefs.h"
10750 if { (eval echo configure:10751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10752 eval "ac_cv_lib_$ac_lib_var=yes"
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10757 eval "ac_cv_lib_$ac_lib_var=no"
10760 LIBS="$ac_save_LIBS"
10763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10764 echo "$ac_t""yes" 1>&6
10767 echo "$ac_t""no" 1>&6
10772 if test $have_k4 = yes ; then
10773 ol_with_kerberos=found
10776 cat >> confdefs.h <<\EOF
10777 #define HAVE_KRB4 1
10781 KRB4_LIBS="-lkrb -ldes"
10783 if test $ac_cv_header_krb_archaeology_h = yes ; then
10784 cat >> confdefs.h <<\EOF
10785 #define HAVE_KTH_KERBEROS 1
10793 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10794 ol_link_kpasswd=yes
10797 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10800 elif test $ol_enable_kbind = yes ; then
10801 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10804 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10805 cat >> confdefs.h <<\EOF
10806 #define HAVE_KERBEROS 1
10810 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10811 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10815 if test $ol_with_tls != no ; then
10816 for ac_hdr in openssl/ssl.h ssl.h
10818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10820 echo "configure:10821: checking for $ac_hdr" >&5
10821 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10822 echo $ac_n "(cached) $ac_c" 1>&6
10824 cat > conftest.$ac_ext <<EOF
10825 #line 10826 "configure"
10826 #include "confdefs.h"
10829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10830 { (eval echo configure:10831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10832 if test -z "$ac_err"; then
10834 eval "ac_cv_header_$ac_safe=yes"
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10840 eval "ac_cv_header_$ac_safe=no"
10844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10845 echo "$ac_t""yes" 1>&6
10846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10847 cat >> confdefs.h <<EOF
10848 #define $ac_tr_hdr 1
10852 echo "$ac_t""no" 1>&6
10857 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10858 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10859 echo "configure:10860: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10860 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10862 echo $ac_n "(cached) $ac_c" 1>&6
10864 ac_save_LIBS="$LIBS"
10865 LIBS="-lssl -lcrypto $LIBS"
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10869 /* Override any gcc2 internal prototype to avoid an error. */
10870 /* We use char because int might match the return type of a gcc2
10871 builtin and then its argument prototype would still apply. */
10872 char SSLeay_add_ssl_algorithms();
10875 SSLeay_add_ssl_algorithms()
10878 if { (eval echo configure:10879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10880 eval "ac_cv_lib_$ac_lib_var=yes"
10882 echo "configure: failed program was:" >&5
10883 cat conftest.$ac_ext >&5
10885 eval "ac_cv_lib_$ac_lib_var=no"
10888 LIBS="$ac_save_LIBS"
10891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10892 echo "$ac_t""yes" 1>&6
10896 echo "$ac_t""no" 1>&6
10901 if test $have_ssleay = no ; then
10902 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10903 echo "configure:10904: checking for SSL_library_init in -lssl" >&5
10904 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10905 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10906 echo $ac_n "(cached) $ac_c" 1>&6
10908 ac_save_LIBS="$LIBS"
10909 LIBS="-lssl -lcrypto $LIBS"
10910 cat > conftest.$ac_ext <<EOF
10911 #line 10912 "configure"
10912 #include "confdefs.h"
10913 /* Override any gcc2 internal prototype to avoid an error. */
10914 /* We use char because int might match the return type of a gcc2
10915 builtin and then its argument prototype would still apply. */
10916 char SSL_library_init();
10922 if { (eval echo configure:10923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10924 eval "ac_cv_lib_$ac_lib_var=yes"
10926 echo "configure: failed program was:" >&5
10927 cat conftest.$ac_ext >&5
10929 eval "ac_cv_lib_$ac_lib_var=no"
10932 LIBS="$ac_save_LIBS"
10935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10936 echo "$ac_t""yes" 1>&6
10940 echo "$ac_t""no" 1>&6
10946 if test $have_ssleay = no ; then
10947 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10948 echo "configure:10949: checking for ssl3_accept in -lssl" >&5
10949 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10950 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10951 echo $ac_n "(cached) $ac_c" 1>&6
10953 ac_save_LIBS="$LIBS"
10954 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10955 cat > conftest.$ac_ext <<EOF
10956 #line 10957 "configure"
10957 #include "confdefs.h"
10958 /* Override any gcc2 internal prototype to avoid an error. */
10959 /* We use char because int might match the return type of a gcc2
10960 builtin and then its argument prototype would still apply. */
10961 char ssl3_accept();
10967 if { (eval echo configure:10968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10969 eval "ac_cv_lib_$ac_lib_var=yes"
10971 echo "configure: failed program was:" >&5
10972 cat conftest.$ac_ext >&5
10974 eval "ac_cv_lib_$ac_lib_var=no"
10977 LIBS="$ac_save_LIBS"
10980 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10981 echo "$ac_t""yes" 1>&6
10985 echo "$ac_t""no" 1>&6
10991 if test $have_ssleay = yes ; then
10995 cat >> confdefs.h <<\EOF
10996 #define HAVE_SSLEAY 1
11000 if test $need_rsaref = yes; then
11001 cat >> confdefs.h <<\EOF
11002 #define HAVE_RSAREF 1
11006 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11008 TLS_LIBS="-lssl -lcrypto"
11014 echo "configure: warning: TLS privacy protection not supported!" 1>&2
11017 if test $ol_link_tls = yes ; then
11018 cat >> confdefs.h <<\EOF
11023 elif test $ol_with_tls = auto ; then
11024 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11025 echo "configure: warning: TLS privacy protection not supported!" 1>&2
11027 elif test $ol_with_tls != no ; then
11028 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11031 if test $ol_enable_lmpasswd != no; then
11032 if test $ol_link_tls != yes ; then
11033 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11036 cat >> confdefs.h <<\EOF
11037 #define SLAPD_LMHASH 1
11044 gethostbyname_r gethostbyaddr_r \
11047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11048 echo "configure:11049: checking for $ac_func" >&5
11049 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11050 echo $ac_n "(cached) $ac_c" 1>&6
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11055 /* System header to define __stub macros and hopefully few prototypes,
11056 which can conflict with char $ac_func(); below. */
11057 #include <assert.h>
11058 /* Override any gcc2 internal prototype to avoid an error. */
11059 /* We use char because int might match the return type of a gcc2
11060 builtin and then its argument prototype would still apply. */
11066 /* The GNU C library defines this for functions which it implements
11067 to always fail with ENOSYS. Some functions are actually named
11068 something starting with __ and the normal name is an alias. */
11069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11077 if { (eval echo configure:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11079 eval "ac_cv_func_$ac_func=yes"
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11084 eval "ac_cv_func_$ac_func=no"
11089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11092 cat >> confdefs.h <<EOF
11093 #define $ac_tr_func 1
11097 echo "$ac_t""no" 1>&6
11102 if test "$ac_cv_func_ctime_r" = no ; then
11103 ol_cv_func_ctime_r_nargs=0
11105 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11106 echo "configure:11107: checking number of arguments of ctime_r" >&5
11107 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11108 echo $ac_n "(cached) $ac_c" 1>&6
11110 cat > conftest.$ac_ext <<EOF
11111 #line 11112 "configure"
11112 #include "confdefs.h"
11115 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11118 if { (eval echo configure:11119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11120 ol_cv_func_ctime_r_nargs3=yes
11122 echo "configure: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11125 ol_cv_func_ctime_r_nargs3=no
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11134 time_t ti; char *buffer; ctime_r(&ti,buffer);
11137 if { (eval echo configure:11138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11139 ol_cv_func_ctime_r_nargs2=yes
11141 echo "configure: failed program was:" >&5
11142 cat conftest.$ac_ext >&5
11144 ol_cv_func_ctime_r_nargs2=no
11148 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11149 $ol_cv_func_ctime_r_nargs2 = no ; then
11151 ol_cv_func_ctime_r_nargs=3
11153 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11154 $ol_cv_func_ctime_r_nargs2 = yes ; then
11156 ol_cv_func_ctime_r_nargs=2
11159 ol_cv_func_ctime_r_nargs=0
11164 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11166 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11167 cat >> confdefs.h <<EOF
11168 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11175 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11176 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11177 echo "configure:11178: checking number of arguments of gethostbyname_r" >&5
11178 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11179 echo $ac_n "(cached) $ac_c" 1>&6
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11184 #include <sys/types.h>
11185 #include <sys/socket.h>
11186 #include <netinet/in.h>
11188 #define BUFSIZE (sizeof(struct hostent)+10)
11190 struct hostent hent; char buffer[BUFSIZE];
11191 int bufsize=BUFSIZE;int h_errno;
11192 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11193 buffer, bufsize, &h_errno);
11196 if { (eval echo configure:11197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11198 ol_cv_func_gethostbyname_r_nargs5=yes
11200 echo "configure: failed program was:" >&5
11201 cat conftest.$ac_ext >&5
11203 ol_cv_func_gethostbyname_r_nargs5=no
11207 cat > conftest.$ac_ext <<EOF
11208 #line 11209 "configure"
11209 #include "confdefs.h"
11210 #include <sys/types.h>
11211 #include <sys/socket.h>
11212 #include <netinet/in.h>
11214 #define BUFSIZE (sizeof(struct hostent)+10)
11216 struct hostent hent;struct hostent *rhent;
11217 char buffer[BUFSIZE];
11218 int bufsize=BUFSIZE;int h_errno;
11219 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11223 if { (eval echo configure:11224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11225 ol_cv_func_gethostbyname_r_nargs6=yes
11227 echo "configure: failed program was:" >&5
11228 cat conftest.$ac_ext >&5
11230 ol_cv_func_gethostbyname_r_nargs6=no
11234 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11235 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11237 ol_cv_func_gethostbyname_r_nargs=5
11239 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11240 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11242 ol_cv_func_gethostbyname_r_nargs=6
11245 ol_cv_func_gethostbyname_r_nargs=0
11250 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11251 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11252 cat >> confdefs.h <<EOF
11253 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11259 ol_cv_func_gethostbyname_r_nargs=0
11262 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11263 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11264 echo "configure:11265: checking number of arguments of gethostbyaddr_r" >&5
11265 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11266 echo $ac_n "(cached) $ac_c" 1>&6
11268 cat > conftest.$ac_ext <<EOF
11269 #line 11270 "configure"
11270 #include "confdefs.h"
11271 #include <sys/types.h>
11272 #include <sys/socket.h>
11273 #include <netinet/in.h>
11275 #define BUFSIZE (sizeof(struct hostent)+10)
11277 struct hostent hent; char buffer[BUFSIZE];
11278 struct in_addr add;
11279 size_t alen=sizeof(struct in_addr);
11280 int bufsize=BUFSIZE;int h_errno;
11281 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11282 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11285 if { (eval echo configure:11286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11287 ol_cv_func_gethostbyaddr_r_nargs7=yes
11289 echo "configure: failed program was:" >&5
11290 cat conftest.$ac_ext >&5
11292 ol_cv_func_gethostbyaddr_r_nargs7=no
11296 cat > conftest.$ac_ext <<EOF
11297 #line 11298 "configure"
11298 #include "confdefs.h"
11299 #include <sys/types.h>
11300 #include <sys/socket.h>
11301 #include <netinet/in.h>
11303 #define BUFSIZE (sizeof(struct hostent)+10)
11305 struct hostent hent;
11306 struct hostent *rhent; char buffer[BUFSIZE];
11307 struct in_addr add;
11308 size_t alen=sizeof(struct in_addr);
11309 int bufsize=BUFSIZE;int h_errno;
11310 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11311 alen, AF_INET, &hent, buffer, bufsize,
11315 if { (eval echo configure:11316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11317 ol_cv_func_gethostbyaddr_r_nargs8=yes
11319 echo "configure: failed program was:" >&5
11320 cat conftest.$ac_ext >&5
11322 ol_cv_func_gethostbyaddr_r_nargs8=no
11326 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11327 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11329 ol_cv_func_gethostbyaddr_r_nargs=7
11331 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11332 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11334 ol_cv_func_gethostbyaddr_r_nargs=8
11337 ol_cv_func_gethostbyaddr_r_nargs=0
11342 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11343 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11344 cat >> confdefs.h <<EOF
11345 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11351 ol_cv_func_gethostbyaddr_r_nargs=0
11354 if test "$ac_cv_func_ctime_r" = yes \
11355 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11356 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11357 -a "$ac_cv_func_gethostbyname_r" = yes \
11358 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11359 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11360 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11361 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11362 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11365 cat >> confdefs.h <<\EOF
11366 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11373 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11374 -o $ol_with_threads = nt ; then
11377 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11378 echo "configure:11379: checking for _beginthread" >&5
11379 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11380 echo $ac_n "(cached) $ac_c" 1>&6
11382 cat > conftest.$ac_ext <<EOF
11383 #line 11384 "configure"
11384 #include "confdefs.h"
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char _beginthread(); below. */
11387 #include <assert.h>
11388 /* Override any gcc2 internal prototype to avoid an error. */
11389 /* We use char because int might match the return type of a gcc2
11390 builtin and then its argument prototype would still apply. */
11391 char _beginthread();
11396 /* The GNU C library defines this for functions which it implements
11397 to always fail with ENOSYS. Some functions are actually named
11398 something starting with __ and the normal name is an alias. */
11399 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11407 if { (eval echo configure:11408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11409 eval "ac_cv_func__beginthread=yes"
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11414 eval "ac_cv_func__beginthread=no"
11419 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11420 echo "$ac_t""yes" 1>&6
11423 echo "$ac_t""no" 1>&6
11427 if test $ac_cv_func__beginthread = yes ; then
11428 cat >> confdefs.h <<\EOF
11429 #define HAVE_NT_THREADS 1
11432 ol_cv_nt_threads=yes
11436 if test "$ol_cv_nt_threads" = yes ; then
11438 ol_with_threads=found
11439 ol_with_yielding_select=yes
11441 cat >> confdefs.h <<\EOF
11442 #define HAVE_NT_SERVICE_MANAGER 1
11445 cat >> confdefs.h <<\EOF
11446 #define HAVE_NT_EVENT_LOG 1
11451 if test $ol_with_threads = nt ; then
11452 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11456 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11457 -o $ol_with_threads = posix ; then
11459 for ac_hdr in pthread.h
11461 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11462 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11463 echo "configure:11464: checking for $ac_hdr" >&5
11464 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11465 echo $ac_n "(cached) $ac_c" 1>&6
11467 cat > conftest.$ac_ext <<EOF
11468 #line 11469 "configure"
11469 #include "confdefs.h"
11472 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11473 { (eval echo configure:11474: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11474 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11475 if test -z "$ac_err"; then
11477 eval "ac_cv_header_$ac_safe=yes"
11480 echo "configure: failed program was:" >&5
11481 cat conftest.$ac_ext >&5
11483 eval "ac_cv_header_$ac_safe=no"
11487 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11488 echo "$ac_t""yes" 1>&6
11489 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11490 cat >> confdefs.h <<EOF
11491 #define $ac_tr_hdr 1
11495 echo "$ac_t""no" 1>&6
11500 if test $ac_cv_header_pthread_h = yes ; then
11501 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11502 echo "configure:11503: checking POSIX thread version" >&5
11503 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11504 echo $ac_n "(cached) $ac_c" 1>&6
11507 cat > conftest.$ac_ext <<EOF
11508 #line 11509 "configure"
11509 #include "confdefs.h"
11511 # include <pthread.h>
11512 /* this check could be improved */
11513 # ifdef PTHREAD_ONCE_INIT
11514 pthread_version_final;
11518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11519 egrep "pthread_version_final" >/dev/null 2>&1; then
11521 ol_pthread_final=yes
11524 ol_pthread_final=no
11529 cat > conftest.$ac_ext <<EOF
11530 #line 11531 "configure"
11531 #include "confdefs.h"
11533 # include <pthread.h>
11534 /* this check could be improved */
11535 # ifdef pthread_once_init
11536 pthread_version_draft4;
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11543 ol_pthread_draft4=yes
11546 ol_pthread_draft4=no
11551 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11552 ol_cv_pthread_version=final
11553 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11554 ol_cv_pthread_version=draft4
11556 ol_cv_pthread_version=unknown
11561 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11564 if test $ol_cv_pthread_version = final ; then
11565 cat >> confdefs.h <<\EOF
11566 #define HAVE_PTHREADS_FINAL 1
11569 elif test $ol_cv_pthread_version = draft4 ; then
11570 cat >> confdefs.h <<\EOF
11571 #define HAVE_PTHREADS_D4 1
11575 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11578 # consider threads found
11579 ol_with_threads=found
11582 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11583 echo "configure:11584: checking for LinuxThreads pthread.h" >&5
11584 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11585 echo $ac_n "(cached) $ac_c" 1>&6
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590 #include <pthread.h>
11592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11593 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11595 ol_cv_header_linux_threads=yes
11598 ol_cv_header_linux_threads=no
11605 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11606 if test $ol_cv_header_linux_threads = yes; then
11607 cat >> confdefs.h <<\EOF
11608 #define HAVE_LINUX_THREADS 1
11614 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11615 echo "configure:11616: checking for GNU Pth pthread.h" >&5
11616 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11617 echo $ac_n "(cached) $ac_c" 1>&6
11619 cat > conftest.$ac_ext <<EOF
11620 #line 11621 "configure"
11621 #include "confdefs.h"
11622 #include <pthread.h>
11623 #ifdef _POSIX_THREAD_IS_GNU_PTH
11628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11629 egrep "__gnu_pth__" >/dev/null 2>&1; then
11631 ol_cv_header_gnu_pth_pthread_h=yes
11634 ol_cv_header_gnu_pth_pthread_h=no
11641 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11644 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11645 for ac_hdr in sched.h
11647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11649 echo "configure:11650: checking for $ac_hdr" >&5
11650 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11651 echo $ac_n "(cached) $ac_c" 1>&6
11653 cat > conftest.$ac_ext <<EOF
11654 #line 11655 "configure"
11655 #include "confdefs.h"
11658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11659 { (eval echo configure:11660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11661 if test -z "$ac_err"; then
11663 eval "ac_cv_header_$ac_safe=yes"
11666 echo "configure: failed program was:" >&5
11667 cat conftest.$ac_ext >&5
11669 eval "ac_cv_header_$ac_safe=no"
11673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11674 echo "$ac_t""yes" 1>&6
11675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11676 cat >> confdefs.h <<EOF
11677 #define $ac_tr_hdr 1
11681 echo "$ac_t""no" 1>&6
11688 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11689 echo "configure:11690: checking for pthread_create in default libraries" >&5
11690 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11691 echo $ac_n "(cached) $ac_c" 1>&6
11694 if test "$cross_compiling" = yes; then
11695 cat > conftest.$ac_ext <<EOF
11696 #line 11697 "configure"
11697 #include "confdefs.h"
11698 /* pthread test headers */
11699 #include <pthread.h>
11701 #define NULL (void*)0
11704 static void *task(p)
11707 return (void *) (p == NULL);
11712 /* pthread test function */
11717 #ifdef HAVE_PTHREADS_FINAL
11718 /* Final pthreads */
11719 pthread_attr_t attr;
11721 status = pthread_attr_init(&attr);
11722 if( status ) return status;
11724 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11726 #if defined( PTHREAD_CREATE_JOINABLE )
11727 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11729 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11732 #ifdef PTHREAD_CREATE_DETACHED
11734 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11737 if( status ) return status;
11740 status = pthread_create( &t, &attr, task, NULL );
11741 if( status ) return status;
11743 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11745 /* give thread a chance to complete */
11746 /* it should remain joinable and hence detachable */
11749 status = pthread_detach( t );
11750 if( status ) return status;
11755 /* Draft 4 pthreads */
11756 status = pthread_create( &t, pthread_attr_default, task, NULL );
11757 if( status ) return status;
11760 /* give thread a chance to complete */
11761 /* it should remain joinable and hence detachable */
11764 status = pthread_detach( &t );
11765 if( status ) return status;
11769 #ifdef HAVE_LINUX_THREADS
11770 pthread_kill_other_threads_np();
11777 if { (eval echo configure:11778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11779 ol_cv_pthread_create=yes
11781 echo "configure: failed program was:" >&5
11782 cat conftest.$ac_ext >&5
11784 ol_cv_pthread_create=no
11788 cat > conftest.$ac_ext <<EOF
11789 #line 11790 "configure"
11790 #include "confdefs.h"
11791 /* pthread test headers */
11792 #include <pthread.h>
11794 #define NULL (void*)0
11797 static void *task(p)
11800 return (void *) (p == NULL);
11804 int main(argc, argv)
11809 /* pthread test function */
11814 #ifdef HAVE_PTHREADS_FINAL
11815 /* Final pthreads */
11816 pthread_attr_t attr;
11818 status = pthread_attr_init(&attr);
11819 if( status ) return status;
11821 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11823 #if defined( PTHREAD_CREATE_JOINABLE )
11824 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11826 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11829 #ifdef PTHREAD_CREATE_DETACHED
11831 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11834 if( status ) return status;
11837 status = pthread_create( &t, &attr, task, NULL );
11838 if( status ) return status;
11840 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11842 /* give thread a chance to complete */
11843 /* it should remain joinable and hence detachable */
11846 status = pthread_detach( t );
11847 if( status ) return status;
11852 /* Draft 4 pthreads */
11853 status = pthread_create( &t, pthread_attr_default, task, NULL );
11854 if( status ) return status;
11857 /* give thread a chance to complete */
11858 /* it should remain joinable and hence detachable */
11861 status = pthread_detach( &t );
11862 if( status ) return status;
11866 #ifdef HAVE_LINUX_THREADS
11867 pthread_kill_other_threads_np();
11875 if { (eval echo configure:11876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11877 ol_cv_pthread_create=yes
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11882 ol_cv_pthread_create=no
11889 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11891 if test $ol_cv_pthread_create != no ; then
11892 ol_link_threads=posix
11893 ol_link_pthreads=""
11896 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11897 if test "$ol_link_threads" = no ; then
11899 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11900 echo "configure:11901: checking for pthread link with -kthread" >&5
11901 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11902 echo $ac_n "(cached) $ac_c" 1>&6
11907 LIBS="-kthread $LIBS"
11909 if test "$cross_compiling" = yes; then
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 /* pthread test headers */
11914 #include <pthread.h>
11916 #define NULL (void*)0
11919 static void *task(p)
11922 return (void *) (p == NULL);
11927 /* pthread test function */
11932 #ifdef HAVE_PTHREADS_FINAL
11933 /* Final pthreads */
11934 pthread_attr_t attr;
11936 status = pthread_attr_init(&attr);
11937 if( status ) return status;
11939 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11941 #if defined( PTHREAD_CREATE_JOINABLE )
11942 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11944 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11947 #ifdef PTHREAD_CREATE_DETACHED
11949 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11952 if( status ) return status;
11955 status = pthread_create( &t, &attr, task, NULL );
11956 if( status ) return status;
11958 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11960 /* give thread a chance to complete */
11961 /* it should remain joinable and hence detachable */
11964 status = pthread_detach( t );
11965 if( status ) return status;
11970 /* Draft 4 pthreads */
11971 status = pthread_create( &t, pthread_attr_default, task, NULL );
11972 if( status ) return status;
11975 /* give thread a chance to complete */
11976 /* it should remain joinable and hence detachable */
11979 status = pthread_detach( &t );
11980 if( status ) return status;
11984 #ifdef HAVE_LINUX_THREADS
11985 pthread_kill_other_threads_np();
11992 if { (eval echo configure:11993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11994 ol_cv_pthread_kthread=yes
11996 echo "configure: failed program was:" >&5
11997 cat conftest.$ac_ext >&5
11999 ol_cv_pthread_kthread=no
12003 cat > conftest.$ac_ext <<EOF
12004 #line 12005 "configure"
12005 #include "confdefs.h"
12006 /* pthread test headers */
12007 #include <pthread.h>
12009 #define NULL (void*)0
12012 static void *task(p)
12015 return (void *) (p == NULL);
12019 int main(argc, argv)
12024 /* pthread test function */
12029 #ifdef HAVE_PTHREADS_FINAL
12030 /* Final pthreads */
12031 pthread_attr_t attr;
12033 status = pthread_attr_init(&attr);
12034 if( status ) return status;
12036 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12038 #if defined( PTHREAD_CREATE_JOINABLE )
12039 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12041 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12044 #ifdef PTHREAD_CREATE_DETACHED
12046 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12049 if( status ) return status;
12052 status = pthread_create( &t, &attr, task, NULL );
12053 if( status ) return status;
12055 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12057 /* give thread a chance to complete */
12058 /* it should remain joinable and hence detachable */
12061 status = pthread_detach( t );
12062 if( status ) return status;
12067 /* Draft 4 pthreads */
12068 status = pthread_create( &t, pthread_attr_default, task, NULL );
12069 if( status ) return status;
12072 /* give thread a chance to complete */
12073 /* it should remain joinable and hence detachable */
12076 status = pthread_detach( &t );
12077 if( status ) return status;
12081 #ifdef HAVE_LINUX_THREADS
12082 pthread_kill_other_threads_np();
12090 if { (eval echo configure:12091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12092 ol_cv_pthread_kthread=yes
12094 echo "configure: failed program was:" >&5
12095 cat conftest.$ac_ext >&5
12097 ol_cv_pthread_kthread=no
12108 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12110 if test $ol_cv_pthread_kthread = yes ; then
12111 ol_link_pthreads="-kthread"
12112 ol_link_threads=posix
12116 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12117 if test "$ol_link_threads" = no ; then
12119 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12120 echo "configure:12121: checking for pthread link with -pthread" >&5
12121 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12127 LIBS="-pthread $LIBS"
12129 if test "$cross_compiling" = yes; then
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 /* pthread test headers */
12134 #include <pthread.h>
12136 #define NULL (void*)0
12139 static void *task(p)
12142 return (void *) (p == NULL);
12147 /* pthread test function */
12152 #ifdef HAVE_PTHREADS_FINAL
12153 /* Final pthreads */
12154 pthread_attr_t attr;
12156 status = pthread_attr_init(&attr);
12157 if( status ) return status;
12159 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12161 #if defined( PTHREAD_CREATE_JOINABLE )
12162 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12164 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12167 #ifdef PTHREAD_CREATE_DETACHED
12169 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12172 if( status ) return status;
12175 status = pthread_create( &t, &attr, task, NULL );
12176 if( status ) return status;
12178 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12180 /* give thread a chance to complete */
12181 /* it should remain joinable and hence detachable */
12184 status = pthread_detach( t );
12185 if( status ) return status;
12190 /* Draft 4 pthreads */
12191 status = pthread_create( &t, pthread_attr_default, task, NULL );
12192 if( status ) return status;
12195 /* give thread a chance to complete */
12196 /* it should remain joinable and hence detachable */
12199 status = pthread_detach( &t );
12200 if( status ) return status;
12204 #ifdef HAVE_LINUX_THREADS
12205 pthread_kill_other_threads_np();
12212 if { (eval echo configure:12213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12214 ol_cv_pthread_pthread=yes
12216 echo "configure: failed program was:" >&5
12217 cat conftest.$ac_ext >&5
12219 ol_cv_pthread_pthread=no
12223 cat > conftest.$ac_ext <<EOF
12224 #line 12225 "configure"
12225 #include "confdefs.h"
12226 /* pthread test headers */
12227 #include <pthread.h>
12229 #define NULL (void*)0
12232 static void *task(p)
12235 return (void *) (p == NULL);
12239 int main(argc, argv)
12244 /* pthread test function */
12249 #ifdef HAVE_PTHREADS_FINAL
12250 /* Final pthreads */
12251 pthread_attr_t attr;
12253 status = pthread_attr_init(&attr);
12254 if( status ) return status;
12256 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12258 #if defined( PTHREAD_CREATE_JOINABLE )
12259 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12261 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12264 #ifdef PTHREAD_CREATE_DETACHED
12266 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12269 if( status ) return status;
12272 status = pthread_create( &t, &attr, task, NULL );
12273 if( status ) return status;
12275 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12277 /* give thread a chance to complete */
12278 /* it should remain joinable and hence detachable */
12281 status = pthread_detach( t );
12282 if( status ) return status;
12287 /* Draft 4 pthreads */
12288 status = pthread_create( &t, pthread_attr_default, task, NULL );
12289 if( status ) return status;
12292 /* give thread a chance to complete */
12293 /* it should remain joinable and hence detachable */
12296 status = pthread_detach( &t );
12297 if( status ) return status;
12301 #ifdef HAVE_LINUX_THREADS
12302 pthread_kill_other_threads_np();
12310 if { (eval echo configure:12311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12312 ol_cv_pthread_pthread=yes
12314 echo "configure: failed program was:" >&5
12315 cat conftest.$ac_ext >&5
12317 ol_cv_pthread_pthread=no
12328 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12330 if test $ol_cv_pthread_pthread = yes ; then
12331 ol_link_pthreads="-pthread"
12332 ol_link_threads=posix
12336 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12337 if test "$ol_link_threads" = no ; then
12339 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12340 echo "configure:12341: checking for pthread link with -pthreads" >&5
12341 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12342 echo $ac_n "(cached) $ac_c" 1>&6
12347 LIBS="-pthreads $LIBS"
12349 if test "$cross_compiling" = yes; then
12350 cat > conftest.$ac_ext <<EOF
12351 #line 12352 "configure"
12352 #include "confdefs.h"
12353 /* pthread test headers */
12354 #include <pthread.h>
12356 #define NULL (void*)0
12359 static void *task(p)
12362 return (void *) (p == NULL);
12367 /* pthread test function */
12372 #ifdef HAVE_PTHREADS_FINAL
12373 /* Final pthreads */
12374 pthread_attr_t attr;
12376 status = pthread_attr_init(&attr);
12377 if( status ) return status;
12379 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12381 #if defined( PTHREAD_CREATE_JOINABLE )
12382 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12384 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12387 #ifdef PTHREAD_CREATE_DETACHED
12389 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12392 if( status ) return status;
12395 status = pthread_create( &t, &attr, task, NULL );
12396 if( status ) return status;
12398 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12400 /* give thread a chance to complete */
12401 /* it should remain joinable and hence detachable */
12404 status = pthread_detach( t );
12405 if( status ) return status;
12410 /* Draft 4 pthreads */
12411 status = pthread_create( &t, pthread_attr_default, task, NULL );
12412 if( status ) return status;
12415 /* give thread a chance to complete */
12416 /* it should remain joinable and hence detachable */
12419 status = pthread_detach( &t );
12420 if( status ) return status;
12424 #ifdef HAVE_LINUX_THREADS
12425 pthread_kill_other_threads_np();
12432 if { (eval echo configure:12433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12434 ol_cv_pthread_pthreads=yes
12436 echo "configure: failed program was:" >&5
12437 cat conftest.$ac_ext >&5
12439 ol_cv_pthread_pthreads=no
12443 cat > conftest.$ac_ext <<EOF
12444 #line 12445 "configure"
12445 #include "confdefs.h"
12446 /* pthread test headers */
12447 #include <pthread.h>
12449 #define NULL (void*)0
12452 static void *task(p)
12455 return (void *) (p == NULL);
12459 int main(argc, argv)
12464 /* pthread test function */
12469 #ifdef HAVE_PTHREADS_FINAL
12470 /* Final pthreads */
12471 pthread_attr_t attr;
12473 status = pthread_attr_init(&attr);
12474 if( status ) return status;
12476 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12478 #if defined( PTHREAD_CREATE_JOINABLE )
12479 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12481 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12484 #ifdef PTHREAD_CREATE_DETACHED
12486 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12489 if( status ) return status;
12492 status = pthread_create( &t, &attr, task, NULL );
12493 if( status ) return status;
12495 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12497 /* give thread a chance to complete */
12498 /* it should remain joinable and hence detachable */
12501 status = pthread_detach( t );
12502 if( status ) return status;
12507 /* Draft 4 pthreads */
12508 status = pthread_create( &t, pthread_attr_default, task, NULL );
12509 if( status ) return status;
12512 /* give thread a chance to complete */
12513 /* it should remain joinable and hence detachable */
12516 status = pthread_detach( &t );
12517 if( status ) return status;
12521 #ifdef HAVE_LINUX_THREADS
12522 pthread_kill_other_threads_np();
12530 if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12532 ol_cv_pthread_pthreads=yes
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12537 ol_cv_pthread_pthreads=no
12548 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12550 if test $ol_cv_pthread_pthreads = yes ; then
12551 ol_link_pthreads="-pthreads"
12552 ol_link_threads=posix
12556 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12557 if test "$ol_link_threads" = no ; then
12559 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12560 echo "configure:12561: checking for pthread link with -mthreads" >&5
12561 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12562 echo $ac_n "(cached) $ac_c" 1>&6
12567 LIBS="-mthreads $LIBS"
12569 if test "$cross_compiling" = yes; then
12570 cat > conftest.$ac_ext <<EOF
12571 #line 12572 "configure"
12572 #include "confdefs.h"
12573 /* pthread test headers */
12574 #include <pthread.h>
12576 #define NULL (void*)0
12579 static void *task(p)
12582 return (void *) (p == NULL);
12587 /* pthread test function */
12592 #ifdef HAVE_PTHREADS_FINAL
12593 /* Final pthreads */
12594 pthread_attr_t attr;
12596 status = pthread_attr_init(&attr);
12597 if( status ) return status;
12599 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12601 #if defined( PTHREAD_CREATE_JOINABLE )
12602 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12604 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12607 #ifdef PTHREAD_CREATE_DETACHED
12609 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12612 if( status ) return status;
12615 status = pthread_create( &t, &attr, task, NULL );
12616 if( status ) return status;
12618 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12620 /* give thread a chance to complete */
12621 /* it should remain joinable and hence detachable */
12624 status = pthread_detach( t );
12625 if( status ) return status;
12630 /* Draft 4 pthreads */
12631 status = pthread_create( &t, pthread_attr_default, task, NULL );
12632 if( status ) return status;
12635 /* give thread a chance to complete */
12636 /* it should remain joinable and hence detachable */
12639 status = pthread_detach( &t );
12640 if( status ) return status;
12644 #ifdef HAVE_LINUX_THREADS
12645 pthread_kill_other_threads_np();
12652 if { (eval echo configure:12653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12654 ol_cv_pthread_mthreads=yes
12656 echo "configure: failed program was:" >&5
12657 cat conftest.$ac_ext >&5
12659 ol_cv_pthread_mthreads=no
12663 cat > conftest.$ac_ext <<EOF
12664 #line 12665 "configure"
12665 #include "confdefs.h"
12666 /* pthread test headers */
12667 #include <pthread.h>
12669 #define NULL (void*)0
12672 static void *task(p)
12675 return (void *) (p == NULL);
12679 int main(argc, argv)
12684 /* pthread test function */
12689 #ifdef HAVE_PTHREADS_FINAL
12690 /* Final pthreads */
12691 pthread_attr_t attr;
12693 status = pthread_attr_init(&attr);
12694 if( status ) return status;
12696 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12698 #if defined( PTHREAD_CREATE_JOINABLE )
12699 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12701 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12704 #ifdef PTHREAD_CREATE_DETACHED
12706 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12709 if( status ) return status;
12712 status = pthread_create( &t, &attr, task, NULL );
12713 if( status ) return status;
12715 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12717 /* give thread a chance to complete */
12718 /* it should remain joinable and hence detachable */
12721 status = pthread_detach( t );
12722 if( status ) return status;
12727 /* Draft 4 pthreads */
12728 status = pthread_create( &t, pthread_attr_default, task, NULL );
12729 if( status ) return status;
12732 /* give thread a chance to complete */
12733 /* it should remain joinable and hence detachable */
12736 status = pthread_detach( &t );
12737 if( status ) return status;
12741 #ifdef HAVE_LINUX_THREADS
12742 pthread_kill_other_threads_np();
12750 if { (eval echo configure:12751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12752 ol_cv_pthread_mthreads=yes
12754 echo "configure: failed program was:" >&5
12755 cat conftest.$ac_ext >&5
12757 ol_cv_pthread_mthreads=no
12768 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12770 if test $ol_cv_pthread_mthreads = yes ; then
12771 ol_link_pthreads="-mthreads"
12772 ol_link_threads=posix
12776 # Pthread try link: -thread (ol_cv_pthread_thread)
12777 if test "$ol_link_threads" = no ; then
12779 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12780 echo "configure:12781: checking for pthread link with -thread" >&5
12781 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12782 echo $ac_n "(cached) $ac_c" 1>&6
12787 LIBS="-thread $LIBS"
12789 if test "$cross_compiling" = yes; then
12790 cat > conftest.$ac_ext <<EOF
12791 #line 12792 "configure"
12792 #include "confdefs.h"
12793 /* pthread test headers */
12794 #include <pthread.h>
12796 #define NULL (void*)0
12799 static void *task(p)
12802 return (void *) (p == NULL);
12807 /* pthread test function */
12812 #ifdef HAVE_PTHREADS_FINAL
12813 /* Final pthreads */
12814 pthread_attr_t attr;
12816 status = pthread_attr_init(&attr);
12817 if( status ) return status;
12819 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12821 #if defined( PTHREAD_CREATE_JOINABLE )
12822 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12824 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12827 #ifdef PTHREAD_CREATE_DETACHED
12829 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12832 if( status ) return status;
12835 status = pthread_create( &t, &attr, task, NULL );
12836 if( status ) return status;
12838 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12840 /* give thread a chance to complete */
12841 /* it should remain joinable and hence detachable */
12844 status = pthread_detach( t );
12845 if( status ) return status;
12850 /* Draft 4 pthreads */
12851 status = pthread_create( &t, pthread_attr_default, task, NULL );
12852 if( status ) return status;
12855 /* give thread a chance to complete */
12856 /* it should remain joinable and hence detachable */
12859 status = pthread_detach( &t );
12860 if( status ) return status;
12864 #ifdef HAVE_LINUX_THREADS
12865 pthread_kill_other_threads_np();
12872 if { (eval echo configure:12873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12874 ol_cv_pthread_thread=yes
12876 echo "configure: failed program was:" >&5
12877 cat conftest.$ac_ext >&5
12879 ol_cv_pthread_thread=no
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886 /* pthread test headers */
12887 #include <pthread.h>
12889 #define NULL (void*)0
12892 static void *task(p)
12895 return (void *) (p == NULL);
12899 int main(argc, argv)
12904 /* pthread test function */
12909 #ifdef HAVE_PTHREADS_FINAL
12910 /* Final pthreads */
12911 pthread_attr_t attr;
12913 status = pthread_attr_init(&attr);
12914 if( status ) return status;
12916 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12918 #if defined( PTHREAD_CREATE_JOINABLE )
12919 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12921 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12924 #ifdef PTHREAD_CREATE_DETACHED
12926 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12929 if( status ) return status;
12932 status = pthread_create( &t, &attr, task, NULL );
12933 if( status ) return status;
12935 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12937 /* give thread a chance to complete */
12938 /* it should remain joinable and hence detachable */
12941 status = pthread_detach( t );
12942 if( status ) return status;
12947 /* Draft 4 pthreads */
12948 status = pthread_create( &t, pthread_attr_default, task, NULL );
12949 if( status ) return status;
12952 /* give thread a chance to complete */
12953 /* it should remain joinable and hence detachable */
12956 status = pthread_detach( &t );
12957 if( status ) return status;
12961 #ifdef HAVE_LINUX_THREADS
12962 pthread_kill_other_threads_np();
12970 if { (eval echo configure:12971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12972 ol_cv_pthread_thread=yes
12974 echo "configure: failed program was:" >&5
12975 cat conftest.$ac_ext >&5
12977 ol_cv_pthread_thread=no
12988 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12990 if test $ol_cv_pthread_thread = yes ; then
12991 ol_link_pthreads="-thread"
12992 ol_link_threads=posix
12997 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12998 if test "$ol_link_threads" = no ; then
12999 # try -lpthread -lmach -lexc -lc_r
13000 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13001 echo "configure:13002: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13002 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13003 echo $ac_n "(cached) $ac_c" 1>&6
13008 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13010 if test "$cross_compiling" = yes; then
13011 cat > conftest.$ac_ext <<EOF
13012 #line 13013 "configure"
13013 #include "confdefs.h"
13014 /* pthread test headers */
13015 #include <pthread.h>
13017 #define NULL (void*)0
13020 static void *task(p)
13023 return (void *) (p == NULL);
13028 /* pthread test function */
13033 #ifdef HAVE_PTHREADS_FINAL
13034 /* Final pthreads */
13035 pthread_attr_t attr;
13037 status = pthread_attr_init(&attr);
13038 if( status ) return status;
13040 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13042 #if defined( PTHREAD_CREATE_JOINABLE )
13043 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13045 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13048 #ifdef PTHREAD_CREATE_DETACHED
13050 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13053 if( status ) return status;
13056 status = pthread_create( &t, &attr, task, NULL );
13057 if( status ) return status;
13059 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13061 /* give thread a chance to complete */
13062 /* it should remain joinable and hence detachable */
13065 status = pthread_detach( t );
13066 if( status ) return status;
13071 /* Draft 4 pthreads */
13072 status = pthread_create( &t, pthread_attr_default, task, NULL );
13073 if( status ) return status;
13076 /* give thread a chance to complete */
13077 /* it should remain joinable and hence detachable */
13080 status = pthread_detach( &t );
13081 if( status ) return status;
13085 #ifdef HAVE_LINUX_THREADS
13086 pthread_kill_other_threads_np();
13093 if { (eval echo configure:13094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13095 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13097 echo "configure: failed program was:" >&5
13098 cat conftest.$ac_ext >&5
13100 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13104 cat > conftest.$ac_ext <<EOF
13105 #line 13106 "configure"
13106 #include "confdefs.h"
13107 /* pthread test headers */
13108 #include <pthread.h>
13110 #define NULL (void*)0
13113 static void *task(p)
13116 return (void *) (p == NULL);
13120 int main(argc, argv)
13125 /* pthread test function */
13130 #ifdef HAVE_PTHREADS_FINAL
13131 /* Final pthreads */
13132 pthread_attr_t attr;
13134 status = pthread_attr_init(&attr);
13135 if( status ) return status;
13137 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13139 #if defined( PTHREAD_CREATE_JOINABLE )
13140 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13142 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13145 #ifdef PTHREAD_CREATE_DETACHED
13147 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13150 if( status ) return status;
13153 status = pthread_create( &t, &attr, task, NULL );
13154 if( status ) return status;
13156 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13158 /* give thread a chance to complete */
13159 /* it should remain joinable and hence detachable */
13162 status = pthread_detach( t );
13163 if( status ) return status;
13168 /* Draft 4 pthreads */
13169 status = pthread_create( &t, pthread_attr_default, task, NULL );
13170 if( status ) return status;
13173 /* give thread a chance to complete */
13174 /* it should remain joinable and hence detachable */
13177 status = pthread_detach( &t );
13178 if( status ) return status;
13182 #ifdef HAVE_LINUX_THREADS
13183 pthread_kill_other_threads_np();
13191 if { (eval echo configure:13192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13193 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13195 echo "configure: failed program was:" >&5
13196 cat conftest.$ac_ext >&5
13198 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13209 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13211 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13212 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13213 ol_link_threads=posix
13217 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13218 if test "$ol_link_threads" = no ; then
13219 # try -lpthread -lmach -lexc
13220 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13221 echo "configure:13222: checking for pthread link with -lpthread -lmach -lexc" >&5
13222 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13228 LIBS="-lpthread -lmach -lexc $LIBS"
13230 if test "$cross_compiling" = yes; then
13231 cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13234 /* pthread test headers */
13235 #include <pthread.h>
13237 #define NULL (void*)0
13240 static void *task(p)
13243 return (void *) (p == NULL);
13248 /* pthread test function */
13253 #ifdef HAVE_PTHREADS_FINAL
13254 /* Final pthreads */
13255 pthread_attr_t attr;
13257 status = pthread_attr_init(&attr);
13258 if( status ) return status;
13260 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13262 #if defined( PTHREAD_CREATE_JOINABLE )
13263 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13265 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13268 #ifdef PTHREAD_CREATE_DETACHED
13270 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13273 if( status ) return status;
13276 status = pthread_create( &t, &attr, task, NULL );
13277 if( status ) return status;
13279 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13281 /* give thread a chance to complete */
13282 /* it should remain joinable and hence detachable */
13285 status = pthread_detach( t );
13286 if( status ) return status;
13291 /* Draft 4 pthreads */
13292 status = pthread_create( &t, pthread_attr_default, task, NULL );
13293 if( status ) return status;
13296 /* give thread a chance to complete */
13297 /* it should remain joinable and hence detachable */
13300 status = pthread_detach( &t );
13301 if( status ) return status;
13305 #ifdef HAVE_LINUX_THREADS
13306 pthread_kill_other_threads_np();
13313 if { (eval echo configure:13314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13315 ol_cv_pthread_lpthread_lmach_lexc=yes
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13320 ol_cv_pthread_lpthread_lmach_lexc=no
13324 cat > conftest.$ac_ext <<EOF
13325 #line 13326 "configure"
13326 #include "confdefs.h"
13327 /* pthread test headers */
13328 #include <pthread.h>
13330 #define NULL (void*)0
13333 static void *task(p)
13336 return (void *) (p == NULL);
13340 int main(argc, argv)
13345 /* pthread test function */
13350 #ifdef HAVE_PTHREADS_FINAL
13351 /* Final pthreads */
13352 pthread_attr_t attr;
13354 status = pthread_attr_init(&attr);
13355 if( status ) return status;
13357 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13359 #if defined( PTHREAD_CREATE_JOINABLE )
13360 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13362 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13365 #ifdef PTHREAD_CREATE_DETACHED
13367 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13370 if( status ) return status;
13373 status = pthread_create( &t, &attr, task, NULL );
13374 if( status ) return status;
13376 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13378 /* give thread a chance to complete */
13379 /* it should remain joinable and hence detachable */
13382 status = pthread_detach( t );
13383 if( status ) return status;
13388 /* Draft 4 pthreads */
13389 status = pthread_create( &t, pthread_attr_default, task, NULL );
13390 if( status ) return status;
13393 /* give thread a chance to complete */
13394 /* it should remain joinable and hence detachable */
13397 status = pthread_detach( &t );
13398 if( status ) return status;
13402 #ifdef HAVE_LINUX_THREADS
13403 pthread_kill_other_threads_np();
13411 if { (eval echo configure:13412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13413 ol_cv_pthread_lpthread_lmach_lexc=yes
13415 echo "configure: failed program was:" >&5
13416 cat conftest.$ac_ext >&5
13418 ol_cv_pthread_lpthread_lmach_lexc=no
13429 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13431 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13432 ol_link_pthreads="-lpthread -lmach -lexc"
13433 ol_link_threads=posix
13438 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13439 if test "$ol_link_threads" = no ; then
13440 # try -lpthread -Wl,-woff,85
13441 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13442 echo "configure:13443: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13443 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13444 echo $ac_n "(cached) $ac_c" 1>&6
13449 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13451 if test "$cross_compiling" = yes; then
13452 cat > conftest.$ac_ext <<EOF
13453 #line 13454 "configure"
13454 #include "confdefs.h"
13455 /* pthread test headers */
13456 #include <pthread.h>
13458 #define NULL (void*)0
13461 static void *task(p)
13464 return (void *) (p == NULL);
13469 /* pthread test function */
13474 #ifdef HAVE_PTHREADS_FINAL
13475 /* Final pthreads */
13476 pthread_attr_t attr;
13478 status = pthread_attr_init(&attr);
13479 if( status ) return status;
13481 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13483 #if defined( PTHREAD_CREATE_JOINABLE )
13484 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13486 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13489 #ifdef PTHREAD_CREATE_DETACHED
13491 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13494 if( status ) return status;
13497 status = pthread_create( &t, &attr, task, NULL );
13498 if( status ) return status;
13500 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13502 /* give thread a chance to complete */
13503 /* it should remain joinable and hence detachable */
13506 status = pthread_detach( t );
13507 if( status ) return status;
13512 /* Draft 4 pthreads */
13513 status = pthread_create( &t, pthread_attr_default, task, NULL );
13514 if( status ) return status;
13517 /* give thread a chance to complete */
13518 /* it should remain joinable and hence detachable */
13521 status = pthread_detach( &t );
13522 if( status ) return status;
13526 #ifdef HAVE_LINUX_THREADS
13527 pthread_kill_other_threads_np();
13534 if { (eval echo configure:13535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13536 ol_cv_pthread_lib_lpthread_woff=yes
13538 echo "configure: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13541 ol_cv_pthread_lib_lpthread_woff=no
13545 cat > conftest.$ac_ext <<EOF
13546 #line 13547 "configure"
13547 #include "confdefs.h"
13548 /* pthread test headers */
13549 #include <pthread.h>
13551 #define NULL (void*)0
13554 static void *task(p)
13557 return (void *) (p == NULL);
13561 int main(argc, argv)
13566 /* pthread test function */
13571 #ifdef HAVE_PTHREADS_FINAL
13572 /* Final pthreads */
13573 pthread_attr_t attr;
13575 status = pthread_attr_init(&attr);
13576 if( status ) return status;
13578 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13580 #if defined( PTHREAD_CREATE_JOINABLE )
13581 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13583 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13586 #ifdef PTHREAD_CREATE_DETACHED
13588 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13591 if( status ) return status;
13594 status = pthread_create( &t, &attr, task, NULL );
13595 if( status ) return status;
13597 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13599 /* give thread a chance to complete */
13600 /* it should remain joinable and hence detachable */
13603 status = pthread_detach( t );
13604 if( status ) return status;
13609 /* Draft 4 pthreads */
13610 status = pthread_create( &t, pthread_attr_default, task, NULL );
13611 if( status ) return status;
13614 /* give thread a chance to complete */
13615 /* it should remain joinable and hence detachable */
13618 status = pthread_detach( &t );
13619 if( status ) return status;
13623 #ifdef HAVE_LINUX_THREADS
13624 pthread_kill_other_threads_np();
13632 if { (eval echo configure:13633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13634 ol_cv_pthread_lib_lpthread_woff=yes
13636 echo "configure: failed program was:" >&5
13637 cat conftest.$ac_ext >&5
13639 ol_cv_pthread_lib_lpthread_woff=no
13650 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13652 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13653 ol_link_pthreads="-lpthread -Wl,-woff,85"
13654 ol_link_threads=posix
13659 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13660 if test "$ol_link_threads" = no ; then
13662 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13663 echo "configure:13664: checking for pthread link with -lpthread" >&5
13664 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13665 echo $ac_n "(cached) $ac_c" 1>&6
13670 LIBS="-lpthread $LIBS"
13672 if test "$cross_compiling" = yes; then
13673 cat > conftest.$ac_ext <<EOF
13674 #line 13675 "configure"
13675 #include "confdefs.h"
13676 /* pthread test headers */
13677 #include <pthread.h>
13679 #define NULL (void*)0
13682 static void *task(p)
13685 return (void *) (p == NULL);
13690 /* pthread test function */
13695 #ifdef HAVE_PTHREADS_FINAL
13696 /* Final pthreads */
13697 pthread_attr_t attr;
13699 status = pthread_attr_init(&attr);
13700 if( status ) return status;
13702 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13704 #if defined( PTHREAD_CREATE_JOINABLE )
13705 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13707 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13710 #ifdef PTHREAD_CREATE_DETACHED
13712 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13715 if( status ) return status;
13718 status = pthread_create( &t, &attr, task, NULL );
13719 if( status ) return status;
13721 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13723 /* give thread a chance to complete */
13724 /* it should remain joinable and hence detachable */
13727 status = pthread_detach( t );
13728 if( status ) return status;
13733 /* Draft 4 pthreads */
13734 status = pthread_create( &t, pthread_attr_default, task, NULL );
13735 if( status ) return status;
13738 /* give thread a chance to complete */
13739 /* it should remain joinable and hence detachable */
13742 status = pthread_detach( &t );
13743 if( status ) return status;
13747 #ifdef HAVE_LINUX_THREADS
13748 pthread_kill_other_threads_np();
13755 if { (eval echo configure:13756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13757 ol_cv_pthread_lpthread=yes
13759 echo "configure: failed program was:" >&5
13760 cat conftest.$ac_ext >&5
13762 ol_cv_pthread_lpthread=no
13766 cat > conftest.$ac_ext <<EOF
13767 #line 13768 "configure"
13768 #include "confdefs.h"
13769 /* pthread test headers */
13770 #include <pthread.h>
13772 #define NULL (void*)0
13775 static void *task(p)
13778 return (void *) (p == NULL);
13782 int main(argc, argv)
13787 /* pthread test function */
13792 #ifdef HAVE_PTHREADS_FINAL
13793 /* Final pthreads */
13794 pthread_attr_t attr;
13796 status = pthread_attr_init(&attr);
13797 if( status ) return status;
13799 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13801 #if defined( PTHREAD_CREATE_JOINABLE )
13802 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13804 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13807 #ifdef PTHREAD_CREATE_DETACHED
13809 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13812 if( status ) return status;
13815 status = pthread_create( &t, &attr, task, NULL );
13816 if( status ) return status;
13818 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13820 /* give thread a chance to complete */
13821 /* it should remain joinable and hence detachable */
13824 status = pthread_detach( t );
13825 if( status ) return status;
13830 /* Draft 4 pthreads */
13831 status = pthread_create( &t, pthread_attr_default, task, NULL );
13832 if( status ) return status;
13835 /* give thread a chance to complete */
13836 /* it should remain joinable and hence detachable */
13839 status = pthread_detach( &t );
13840 if( status ) return status;
13844 #ifdef HAVE_LINUX_THREADS
13845 pthread_kill_other_threads_np();
13853 if { (eval echo configure:13854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13855 ol_cv_pthread_lpthread=yes
13857 echo "configure: failed program was:" >&5
13858 cat conftest.$ac_ext >&5
13860 ol_cv_pthread_lpthread=no
13871 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13873 if test $ol_cv_pthread_lpthread = yes ; then
13874 ol_link_pthreads="-lpthread"
13875 ol_link_threads=posix
13879 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13880 if test "$ol_link_threads" = no ; then
13882 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13883 echo "configure:13884: checking for pthread link with -lc_r" >&5
13884 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13885 echo $ac_n "(cached) $ac_c" 1>&6
13892 if test "$cross_compiling" = yes; then
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13896 /* pthread test headers */
13897 #include <pthread.h>
13899 #define NULL (void*)0
13902 static void *task(p)
13905 return (void *) (p == NULL);
13910 /* pthread test function */
13915 #ifdef HAVE_PTHREADS_FINAL
13916 /* Final pthreads */
13917 pthread_attr_t attr;
13919 status = pthread_attr_init(&attr);
13920 if( status ) return status;
13922 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13924 #if defined( PTHREAD_CREATE_JOINABLE )
13925 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13927 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13930 #ifdef PTHREAD_CREATE_DETACHED
13932 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13935 if( status ) return status;
13938 status = pthread_create( &t, &attr, task, NULL );
13939 if( status ) return status;
13941 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13943 /* give thread a chance to complete */
13944 /* it should remain joinable and hence detachable */
13947 status = pthread_detach( t );
13948 if( status ) return status;
13953 /* Draft 4 pthreads */
13954 status = pthread_create( &t, pthread_attr_default, task, NULL );
13955 if( status ) return status;
13958 /* give thread a chance to complete */
13959 /* it should remain joinable and hence detachable */
13962 status = pthread_detach( &t );
13963 if( status ) return status;
13967 #ifdef HAVE_LINUX_THREADS
13968 pthread_kill_other_threads_np();
13975 if { (eval echo configure:13976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13977 ol_cv_pthread_lc_r=yes
13979 echo "configure: failed program was:" >&5
13980 cat conftest.$ac_ext >&5
13982 ol_cv_pthread_lc_r=no
13986 cat > conftest.$ac_ext <<EOF
13987 #line 13988 "configure"
13988 #include "confdefs.h"
13989 /* pthread test headers */
13990 #include <pthread.h>
13992 #define NULL (void*)0
13995 static void *task(p)
13998 return (void *) (p == NULL);
14002 int main(argc, argv)
14007 /* pthread test function */
14012 #ifdef HAVE_PTHREADS_FINAL
14013 /* Final pthreads */
14014 pthread_attr_t attr;
14016 status = pthread_attr_init(&attr);
14017 if( status ) return status;
14019 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14021 #if defined( PTHREAD_CREATE_JOINABLE )
14022 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14024 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14027 #ifdef PTHREAD_CREATE_DETACHED
14029 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14032 if( status ) return status;
14035 status = pthread_create( &t, &attr, task, NULL );
14036 if( status ) return status;
14038 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14040 /* give thread a chance to complete */
14041 /* it should remain joinable and hence detachable */
14044 status = pthread_detach( t );
14045 if( status ) return status;
14050 /* Draft 4 pthreads */
14051 status = pthread_create( &t, pthread_attr_default, task, NULL );
14052 if( status ) return status;
14055 /* give thread a chance to complete */
14056 /* it should remain joinable and hence detachable */
14059 status = pthread_detach( &t );
14060 if( status ) return status;
14064 #ifdef HAVE_LINUX_THREADS
14065 pthread_kill_other_threads_np();
14073 if { (eval echo configure:14074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14075 ol_cv_pthread_lc_r=yes
14077 echo "configure: failed program was:" >&5
14078 cat conftest.$ac_ext >&5
14080 ol_cv_pthread_lc_r=no
14091 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14093 if test $ol_cv_pthread_lc_r = yes ; then
14094 ol_link_pthreads="-lc_r"
14095 ol_link_threads=posix
14100 # Pthread try link: -threads (ol_cv_pthread_threads)
14101 if test "$ol_link_threads" = no ; then
14103 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14104 echo "configure:14105: checking for pthread link with -threads" >&5
14105 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14106 echo $ac_n "(cached) $ac_c" 1>&6
14111 LIBS="-threads $LIBS"
14113 if test "$cross_compiling" = yes; then
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117 /* pthread test headers */
14118 #include <pthread.h>
14120 #define NULL (void*)0
14123 static void *task(p)
14126 return (void *) (p == NULL);
14131 /* pthread test function */
14136 #ifdef HAVE_PTHREADS_FINAL
14137 /* Final pthreads */
14138 pthread_attr_t attr;
14140 status = pthread_attr_init(&attr);
14141 if( status ) return status;
14143 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14145 #if defined( PTHREAD_CREATE_JOINABLE )
14146 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14148 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14151 #ifdef PTHREAD_CREATE_DETACHED
14153 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14156 if( status ) return status;
14159 status = pthread_create( &t, &attr, task, NULL );
14160 if( status ) return status;
14162 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14164 /* give thread a chance to complete */
14165 /* it should remain joinable and hence detachable */
14168 status = pthread_detach( t );
14169 if( status ) return status;
14174 /* Draft 4 pthreads */
14175 status = pthread_create( &t, pthread_attr_default, task, NULL );
14176 if( status ) return status;
14179 /* give thread a chance to complete */
14180 /* it should remain joinable and hence detachable */
14183 status = pthread_detach( &t );
14184 if( status ) return status;
14188 #ifdef HAVE_LINUX_THREADS
14189 pthread_kill_other_threads_np();
14196 if { (eval echo configure:14197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14198 ol_cv_pthread_threads=yes
14200 echo "configure: failed program was:" >&5
14201 cat conftest.$ac_ext >&5
14203 ol_cv_pthread_threads=no
14207 cat > conftest.$ac_ext <<EOF
14208 #line 14209 "configure"
14209 #include "confdefs.h"
14210 /* pthread test headers */
14211 #include <pthread.h>
14213 #define NULL (void*)0
14216 static void *task(p)
14219 return (void *) (p == NULL);
14223 int main(argc, argv)
14228 /* pthread test function */
14233 #ifdef HAVE_PTHREADS_FINAL
14234 /* Final pthreads */
14235 pthread_attr_t attr;
14237 status = pthread_attr_init(&attr);
14238 if( status ) return status;
14240 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14242 #if defined( PTHREAD_CREATE_JOINABLE )
14243 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14245 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14248 #ifdef PTHREAD_CREATE_DETACHED
14250 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14253 if( status ) return status;
14256 status = pthread_create( &t, &attr, task, NULL );
14257 if( status ) return status;
14259 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14261 /* give thread a chance to complete */
14262 /* it should remain joinable and hence detachable */
14265 status = pthread_detach( t );
14266 if( status ) return status;
14271 /* Draft 4 pthreads */
14272 status = pthread_create( &t, pthread_attr_default, task, NULL );
14273 if( status ) return status;
14276 /* give thread a chance to complete */
14277 /* it should remain joinable and hence detachable */
14280 status = pthread_detach( &t );
14281 if( status ) return status;
14285 #ifdef HAVE_LINUX_THREADS
14286 pthread_kill_other_threads_np();
14294 if { (eval echo configure:14295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14296 ol_cv_pthread_threads=yes
14298 echo "configure: failed program was:" >&5
14299 cat conftest.$ac_ext >&5
14301 ol_cv_pthread_threads=no
14312 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14314 if test $ol_cv_pthread_threads = yes ; then
14315 ol_link_pthreads="-threads"
14316 ol_link_threads=posix
14321 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14322 if test "$ol_link_threads" = no ; then
14323 # try -lpthreads -lmach -lexc -lc_r
14324 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14325 echo "configure:14326: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14326 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14327 echo $ac_n "(cached) $ac_c" 1>&6
14332 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14334 if test "$cross_compiling" = yes; then
14335 cat > conftest.$ac_ext <<EOF
14336 #line 14337 "configure"
14337 #include "confdefs.h"
14338 /* pthread test headers */
14339 #include <pthread.h>
14341 #define NULL (void*)0
14344 static void *task(p)
14347 return (void *) (p == NULL);
14352 /* pthread test function */
14357 #ifdef HAVE_PTHREADS_FINAL
14358 /* Final pthreads */
14359 pthread_attr_t attr;
14361 status = pthread_attr_init(&attr);
14362 if( status ) return status;
14364 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14366 #if defined( PTHREAD_CREATE_JOINABLE )
14367 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14369 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14372 #ifdef PTHREAD_CREATE_DETACHED
14374 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14377 if( status ) return status;
14380 status = pthread_create( &t, &attr, task, NULL );
14381 if( status ) return status;
14383 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14385 /* give thread a chance to complete */
14386 /* it should remain joinable and hence detachable */
14389 status = pthread_detach( t );
14390 if( status ) return status;
14395 /* Draft 4 pthreads */
14396 status = pthread_create( &t, pthread_attr_default, task, NULL );
14397 if( status ) return status;
14400 /* give thread a chance to complete */
14401 /* it should remain joinable and hence detachable */
14404 status = pthread_detach( &t );
14405 if( status ) return status;
14409 #ifdef HAVE_LINUX_THREADS
14410 pthread_kill_other_threads_np();
14417 if { (eval echo configure:14418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14419 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14421 echo "configure: failed program was:" >&5
14422 cat conftest.$ac_ext >&5
14424 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14428 cat > conftest.$ac_ext <<EOF
14429 #line 14430 "configure"
14430 #include "confdefs.h"
14431 /* pthread test headers */
14432 #include <pthread.h>
14434 #define NULL (void*)0
14437 static void *task(p)
14440 return (void *) (p == NULL);
14444 int main(argc, argv)
14449 /* pthread test function */
14454 #ifdef HAVE_PTHREADS_FINAL
14455 /* Final pthreads */
14456 pthread_attr_t attr;
14458 status = pthread_attr_init(&attr);
14459 if( status ) return status;
14461 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14463 #if defined( PTHREAD_CREATE_JOINABLE )
14464 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14466 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14469 #ifdef PTHREAD_CREATE_DETACHED
14471 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14474 if( status ) return status;
14477 status = pthread_create( &t, &attr, task, NULL );
14478 if( status ) return status;
14480 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14482 /* give thread a chance to complete */
14483 /* it should remain joinable and hence detachable */
14486 status = pthread_detach( t );
14487 if( status ) return status;
14492 /* Draft 4 pthreads */
14493 status = pthread_create( &t, pthread_attr_default, task, NULL );
14494 if( status ) return status;
14497 /* give thread a chance to complete */
14498 /* it should remain joinable and hence detachable */
14501 status = pthread_detach( &t );
14502 if( status ) return status;
14506 #ifdef HAVE_LINUX_THREADS
14507 pthread_kill_other_threads_np();
14515 if { (eval echo configure:14516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14517 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14519 echo "configure: failed program was:" >&5
14520 cat conftest.$ac_ext >&5
14522 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14533 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14535 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14536 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14537 ol_link_threads=posix
14541 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14542 if test "$ol_link_threads" = no ; then
14543 # try -lpthreads -lmach -lexc
14544 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14545 echo "configure:14546: checking for pthread link with -lpthreads -lmach -lexc" >&5
14546 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14547 echo $ac_n "(cached) $ac_c" 1>&6
14552 LIBS="-lpthreads -lmach -lexc $LIBS"
14554 if test "$cross_compiling" = yes; then
14555 cat > conftest.$ac_ext <<EOF
14556 #line 14557 "configure"
14557 #include "confdefs.h"
14558 /* pthread test headers */
14559 #include <pthread.h>
14561 #define NULL (void*)0
14564 static void *task(p)
14567 return (void *) (p == NULL);
14572 /* pthread test function */
14577 #ifdef HAVE_PTHREADS_FINAL
14578 /* Final pthreads */
14579 pthread_attr_t attr;
14581 status = pthread_attr_init(&attr);
14582 if( status ) return status;
14584 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14586 #if defined( PTHREAD_CREATE_JOINABLE )
14587 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14589 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14592 #ifdef PTHREAD_CREATE_DETACHED
14594 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14597 if( status ) return status;
14600 status = pthread_create( &t, &attr, task, NULL );
14601 if( status ) return status;
14603 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14605 /* give thread a chance to complete */
14606 /* it should remain joinable and hence detachable */
14609 status = pthread_detach( t );
14610 if( status ) return status;
14615 /* Draft 4 pthreads */
14616 status = pthread_create( &t, pthread_attr_default, task, NULL );
14617 if( status ) return status;
14620 /* give thread a chance to complete */
14621 /* it should remain joinable and hence detachable */
14624 status = pthread_detach( &t );
14625 if( status ) return status;
14629 #ifdef HAVE_LINUX_THREADS
14630 pthread_kill_other_threads_np();
14637 if { (eval echo configure:14638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14639 ol_cv_pthread_lpthreads_lmach_lexc=yes
14641 echo "configure: failed program was:" >&5
14642 cat conftest.$ac_ext >&5
14644 ol_cv_pthread_lpthreads_lmach_lexc=no
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 /* pthread test headers */
14652 #include <pthread.h>
14654 #define NULL (void*)0
14657 static void *task(p)
14660 return (void *) (p == NULL);
14664 int main(argc, argv)
14669 /* pthread test function */
14674 #ifdef HAVE_PTHREADS_FINAL
14675 /* Final pthreads */
14676 pthread_attr_t attr;
14678 status = pthread_attr_init(&attr);
14679 if( status ) return status;
14681 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14683 #if defined( PTHREAD_CREATE_JOINABLE )
14684 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14686 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14689 #ifdef PTHREAD_CREATE_DETACHED
14691 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14694 if( status ) return status;
14697 status = pthread_create( &t, &attr, task, NULL );
14698 if( status ) return status;
14700 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14702 /* give thread a chance to complete */
14703 /* it should remain joinable and hence detachable */
14706 status = pthread_detach( t );
14707 if( status ) return status;
14712 /* Draft 4 pthreads */
14713 status = pthread_create( &t, pthread_attr_default, task, NULL );
14714 if( status ) return status;
14717 /* give thread a chance to complete */
14718 /* it should remain joinable and hence detachable */
14721 status = pthread_detach( &t );
14722 if( status ) return status;
14726 #ifdef HAVE_LINUX_THREADS
14727 pthread_kill_other_threads_np();
14735 if { (eval echo configure:14736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14737 ol_cv_pthread_lpthreads_lmach_lexc=yes
14739 echo "configure: failed program was:" >&5
14740 cat conftest.$ac_ext >&5
14742 ol_cv_pthread_lpthreads_lmach_lexc=no
14753 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14755 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14756 ol_link_pthreads="-lpthreads -lmach -lexc"
14757 ol_link_threads=posix
14761 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14762 if test "$ol_link_threads" = no ; then
14763 # try -lpthreads -lexc
14764 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14765 echo "configure:14766: checking for pthread link with -lpthreads -lexc" >&5
14766 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14767 echo $ac_n "(cached) $ac_c" 1>&6
14772 LIBS="-lpthreads -lexc $LIBS"
14774 if test "$cross_compiling" = yes; then
14775 cat > conftest.$ac_ext <<EOF
14776 #line 14777 "configure"
14777 #include "confdefs.h"
14778 /* pthread test headers */
14779 #include <pthread.h>
14781 #define NULL (void*)0
14784 static void *task(p)
14787 return (void *) (p == NULL);
14792 /* pthread test function */
14797 #ifdef HAVE_PTHREADS_FINAL
14798 /* Final pthreads */
14799 pthread_attr_t attr;
14801 status = pthread_attr_init(&attr);
14802 if( status ) return status;
14804 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14806 #if defined( PTHREAD_CREATE_JOINABLE )
14807 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14809 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14812 #ifdef PTHREAD_CREATE_DETACHED
14814 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14817 if( status ) return status;
14820 status = pthread_create( &t, &attr, task, NULL );
14821 if( status ) return status;
14823 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14825 /* give thread a chance to complete */
14826 /* it should remain joinable and hence detachable */
14829 status = pthread_detach( t );
14830 if( status ) return status;
14835 /* Draft 4 pthreads */
14836 status = pthread_create( &t, pthread_attr_default, task, NULL );
14837 if( status ) return status;
14840 /* give thread a chance to complete */
14841 /* it should remain joinable and hence detachable */
14844 status = pthread_detach( &t );
14845 if( status ) return status;
14849 #ifdef HAVE_LINUX_THREADS
14850 pthread_kill_other_threads_np();
14857 if { (eval echo configure:14858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14859 ol_cv_pthread_lpthreads_lexc=yes
14861 echo "configure: failed program was:" >&5
14862 cat conftest.$ac_ext >&5
14864 ol_cv_pthread_lpthreads_lexc=no
14868 cat > conftest.$ac_ext <<EOF
14869 #line 14870 "configure"
14870 #include "confdefs.h"
14871 /* pthread test headers */
14872 #include <pthread.h>
14874 #define NULL (void*)0
14877 static void *task(p)
14880 return (void *) (p == NULL);
14884 int main(argc, argv)
14889 /* pthread test function */
14894 #ifdef HAVE_PTHREADS_FINAL
14895 /* Final pthreads */
14896 pthread_attr_t attr;
14898 status = pthread_attr_init(&attr);
14899 if( status ) return status;
14901 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14903 #if defined( PTHREAD_CREATE_JOINABLE )
14904 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14906 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14909 #ifdef PTHREAD_CREATE_DETACHED
14911 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14914 if( status ) return status;
14917 status = pthread_create( &t, &attr, task, NULL );
14918 if( status ) return status;
14920 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14922 /* give thread a chance to complete */
14923 /* it should remain joinable and hence detachable */
14926 status = pthread_detach( t );
14927 if( status ) return status;
14932 /* Draft 4 pthreads */
14933 status = pthread_create( &t, pthread_attr_default, task, NULL );
14934 if( status ) return status;
14937 /* give thread a chance to complete */
14938 /* it should remain joinable and hence detachable */
14941 status = pthread_detach( &t );
14942 if( status ) return status;
14946 #ifdef HAVE_LINUX_THREADS
14947 pthread_kill_other_threads_np();
14955 if { (eval echo configure:14956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14957 ol_cv_pthread_lpthreads_lexc=yes
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14962 ol_cv_pthread_lpthreads_lexc=no
14973 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14975 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14976 ol_link_pthreads="-lpthreads -lexc"
14977 ol_link_threads=posix
14982 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14983 if test "$ol_link_threads" = no ; then
14985 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14986 echo "configure:14987: checking for pthread link with -lpthreads" >&5
14987 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14988 echo $ac_n "(cached) $ac_c" 1>&6
14993 LIBS="-lpthreads $LIBS"
14995 if test "$cross_compiling" = yes; then
14996 cat > conftest.$ac_ext <<EOF
14997 #line 14998 "configure"
14998 #include "confdefs.h"
14999 /* pthread test headers */
15000 #include <pthread.h>
15002 #define NULL (void*)0
15005 static void *task(p)
15008 return (void *) (p == NULL);
15013 /* pthread test function */
15018 #ifdef HAVE_PTHREADS_FINAL
15019 /* Final pthreads */
15020 pthread_attr_t attr;
15022 status = pthread_attr_init(&attr);
15023 if( status ) return status;
15025 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15027 #if defined( PTHREAD_CREATE_JOINABLE )
15028 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15030 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15033 #ifdef PTHREAD_CREATE_DETACHED
15035 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15038 if( status ) return status;
15041 status = pthread_create( &t, &attr, task, NULL );
15042 if( status ) return status;
15044 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15046 /* give thread a chance to complete */
15047 /* it should remain joinable and hence detachable */
15050 status = pthread_detach( t );
15051 if( status ) return status;
15056 /* Draft 4 pthreads */
15057 status = pthread_create( &t, pthread_attr_default, task, NULL );
15058 if( status ) return status;
15061 /* give thread a chance to complete */
15062 /* it should remain joinable and hence detachable */
15065 status = pthread_detach( &t );
15066 if( status ) return status;
15070 #ifdef HAVE_LINUX_THREADS
15071 pthread_kill_other_threads_np();
15078 if { (eval echo configure:15079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15080 ol_cv_pthread_lib_lpthreads=yes
15082 echo "configure: failed program was:" >&5
15083 cat conftest.$ac_ext >&5
15085 ol_cv_pthread_lib_lpthreads=no
15089 cat > conftest.$ac_ext <<EOF
15090 #line 15091 "configure"
15091 #include "confdefs.h"
15092 /* pthread test headers */
15093 #include <pthread.h>
15095 #define NULL (void*)0
15098 static void *task(p)
15101 return (void *) (p == NULL);
15105 int main(argc, argv)
15110 /* pthread test function */
15115 #ifdef HAVE_PTHREADS_FINAL
15116 /* Final pthreads */
15117 pthread_attr_t attr;
15119 status = pthread_attr_init(&attr);
15120 if( status ) return status;
15122 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15124 #if defined( PTHREAD_CREATE_JOINABLE )
15125 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15127 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15130 #ifdef PTHREAD_CREATE_DETACHED
15132 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15135 if( status ) return status;
15138 status = pthread_create( &t, &attr, task, NULL );
15139 if( status ) return status;
15141 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15143 /* give thread a chance to complete */
15144 /* it should remain joinable and hence detachable */
15147 status = pthread_detach( t );
15148 if( status ) return status;
15153 /* Draft 4 pthreads */
15154 status = pthread_create( &t, pthread_attr_default, task, NULL );
15155 if( status ) return status;
15158 /* give thread a chance to complete */
15159 /* it should remain joinable and hence detachable */
15162 status = pthread_detach( &t );
15163 if( status ) return status;
15167 #ifdef HAVE_LINUX_THREADS
15168 pthread_kill_other_threads_np();
15176 if { (eval echo configure:15177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15178 ol_cv_pthread_lib_lpthreads=yes
15180 echo "configure: failed program was:" >&5
15181 cat conftest.$ac_ext >&5
15183 ol_cv_pthread_lib_lpthreads=no
15194 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15196 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15197 ol_link_pthreads="-lpthreads"
15198 ol_link_threads=posix
15203 if test $ol_link_threads != no ; then
15204 cat >> confdefs.h <<\EOF
15205 #define HAVE_PTHREADS 1
15209 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15211 save_CPPFLAGS="$CPPFLAGS"
15213 LIBS="$LTHREAD_LIBS $LIBS"
15215 for ac_func in sched_yield pthread_yield
15217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15218 echo "configure:15219: checking for $ac_func" >&5
15219 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15220 echo $ac_n "(cached) $ac_c" 1>&6
15222 cat > conftest.$ac_ext <<EOF
15223 #line 15224 "configure"
15224 #include "confdefs.h"
15225 /* System header to define __stub macros and hopefully few prototypes,
15226 which can conflict with char $ac_func(); below. */
15227 #include <assert.h>
15228 /* Override any gcc2 internal prototype to avoid an error. */
15229 /* We use char because int might match the return type of a gcc2
15230 builtin and then its argument prototype would still apply. */
15236 /* The GNU C library defines this for functions which it implements
15237 to always fail with ENOSYS. Some functions are actually named
15238 something starting with __ and the normal name is an alias. */
15239 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15247 if { (eval echo configure:15248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15249 eval "ac_cv_func_$ac_func=yes"
15251 echo "configure: failed program was:" >&5
15252 cat conftest.$ac_ext >&5
15254 eval "ac_cv_func_$ac_func=no"
15259 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15260 echo "$ac_t""yes" 1>&6
15261 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15262 cat >> confdefs.h <<EOF
15263 #define $ac_tr_func 1
15267 echo "$ac_t""no" 1>&6
15272 if test $ac_cv_func_sched_yield = no -a \
15273 $ac_cv_func_pthread_yield = no ; then
15274 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15275 echo "configure:15276: checking for sched_yield in -lrt" >&5
15276 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15277 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15280 ac_save_LIBS="$LIBS"
15282 cat > conftest.$ac_ext <<EOF
15283 #line 15284 "configure"
15284 #include "confdefs.h"
15285 /* Override any gcc2 internal prototype to avoid an error. */
15286 /* We use char because int might match the return type of a gcc2
15287 builtin and then its argument prototype would still apply. */
15288 char sched_yield();
15294 if { (eval echo configure:15295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15296 eval "ac_cv_lib_$ac_lib_var=yes"
15298 echo "configure: failed program was:" >&5
15299 cat conftest.$ac_ext >&5
15301 eval "ac_cv_lib_$ac_lib_var=no"
15304 LIBS="$ac_save_LIBS"
15307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15308 echo "$ac_t""yes" 1>&6
15309 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15310 cat >> confdefs.h <<\EOF
15311 #define HAVE_SCHED_YIELD 1
15314 ac_cv_func_sched_yield=yes
15316 echo "$ac_t""no" 1>&6
15317 ac_cv_func_sched_yield=no
15321 if test $ac_cv_func_sched_yield = no -a \
15322 $ac_cv_func_pthread_yield = no ; then
15323 for ac_func in thr_yield
15325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15326 echo "configure:15327: checking for $ac_func" >&5
15327 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15328 echo $ac_n "(cached) $ac_c" 1>&6
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15333 /* System header to define __stub macros and hopefully few prototypes,
15334 which can conflict with char $ac_func(); below. */
15335 #include <assert.h>
15336 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15344 /* The GNU C library defines this for functions which it implements
15345 to always fail with ENOSYS. Some functions are actually named
15346 something starting with __ and the normal name is an alias. */
15347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15355 if { (eval echo configure:15356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15357 eval "ac_cv_func_$ac_func=yes"
15359 echo "configure: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15362 eval "ac_cv_func_$ac_func=no"
15367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15368 echo "$ac_t""yes" 1>&6
15369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15370 cat >> confdefs.h <<EOF
15371 #define $ac_tr_func 1
15375 echo "$ac_t""no" 1>&6
15380 if test $ac_cv_func_sched_yield = no -a \
15381 $ac_cv_func_pthread_yield = no -a \
15382 "$ac_cv_func_thr_yield" = no ; then
15383 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15386 for ac_func in pthread_kill pthread_rwlock_destroy
15388 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15389 echo "configure:15390: checking for $ac_func" >&5
15390 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15391 echo $ac_n "(cached) $ac_c" 1>&6
15393 cat > conftest.$ac_ext <<EOF
15394 #line 15395 "configure"
15395 #include "confdefs.h"
15396 /* System header to define __stub macros and hopefully few prototypes,
15397 which can conflict with char $ac_func(); below. */
15398 #include <assert.h>
15399 /* Override any gcc2 internal prototype to avoid an error. */
15400 /* We use char because int might match the return type of a gcc2
15401 builtin and then its argument prototype would still apply. */
15407 /* The GNU C library defines this for functions which it implements
15408 to always fail with ENOSYS. Some functions are actually named
15409 something starting with __ and the normal name is an alias. */
15410 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15418 if { (eval echo configure:15419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15420 eval "ac_cv_func_$ac_func=yes"
15422 echo "configure: failed program was:" >&5
15423 cat conftest.$ac_ext >&5
15425 eval "ac_cv_func_$ac_func=no"
15430 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15431 echo "$ac_t""yes" 1>&6
15432 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15433 cat >> confdefs.h <<EOF
15434 #define $ac_tr_func 1
15438 echo "$ac_t""no" 1>&6
15443 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15444 echo "configure:15445: checking for pthread_detach with <pthread.h>" >&5
15445 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15446 echo $ac_n "(cached) $ac_c" 1>&6
15449 cat > conftest.$ac_ext <<EOF
15450 #line 15451 "configure"
15451 #include "confdefs.h"
15453 #include <pthread.h>
15455 #define NULL (void*)0
15459 pthread_detach(NULL);
15462 if { (eval echo configure:15463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15464 ol_cv_func_pthread_detach=yes
15466 echo "configure: failed program was:" >&5
15467 cat conftest.$ac_ext >&5
15469 ol_cv_func_pthread_detach=no
15475 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15477 if test $ol_cv_func_pthread_detach = no ; then
15478 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15481 cat >> confdefs.h <<\EOF
15482 #define HAVE_PTHREAD_DETACH 1
15487 pthread_setconcurrency \
15488 pthread_getconcurrency \
15489 thr_setconcurrency \
15490 thr_getconcurrency \
15493 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15494 echo "configure:15495: checking for $ac_func" >&5
15495 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15496 echo $ac_n "(cached) $ac_c" 1>&6
15498 cat > conftest.$ac_ext <<EOF
15499 #line 15500 "configure"
15500 #include "confdefs.h"
15501 /* System header to define __stub macros and hopefully few prototypes,
15502 which can conflict with char $ac_func(); below. */
15503 #include <assert.h>
15504 /* Override any gcc2 internal prototype to avoid an error. */
15505 /* We use char because int might match the return type of a gcc2
15506 builtin and then its argument prototype would still apply. */
15512 /* The GNU C library defines this for functions which it implements
15513 to always fail with ENOSYS. Some functions are actually named
15514 something starting with __ and the normal name is an alias. */
15515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15523 if { (eval echo configure:15524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15525 eval "ac_cv_func_$ac_func=yes"
15527 echo "configure: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15530 eval "ac_cv_func_$ac_func=no"
15535 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15536 echo "$ac_t""yes" 1>&6
15537 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15538 cat >> confdefs.h <<EOF
15539 #define $ac_tr_func 1
15543 echo "$ac_t""no" 1>&6
15549 for ac_func in pthread_kill_other_threads_np
15551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15552 echo "configure:15553: checking for $ac_func" >&5
15553 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15554 echo $ac_n "(cached) $ac_c" 1>&6
15556 cat > conftest.$ac_ext <<EOF
15557 #line 15558 "configure"
15558 #include "confdefs.h"
15559 /* System header to define __stub macros and hopefully few prototypes,
15560 which can conflict with char $ac_func(); below. */
15561 #include <assert.h>
15562 /* Override any gcc2 internal prototype to avoid an error. */
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15570 /* The GNU C library defines this for functions which it implements
15571 to always fail with ENOSYS. Some functions are actually named
15572 something starting with __ and the normal name is an alias. */
15573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15581 if { (eval echo configure:15582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15583 eval "ac_cv_func_$ac_func=yes"
15585 echo "configure: failed program was:" >&5
15586 cat conftest.$ac_ext >&5
15588 eval "ac_cv_func_$ac_func=no"
15593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15594 echo "$ac_t""yes" 1>&6
15595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15596 cat >> confdefs.h <<EOF
15597 #define $ac_tr_func 1
15601 echo "$ac_t""no" 1>&6
15605 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15606 echo "configure:15607: checking for LinuxThreads implementation" >&5
15607 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15608 echo $ac_n "(cached) $ac_c" 1>&6
15610 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15613 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15618 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15619 echo "configure:15620: checking for LinuxThreads consistency" >&5
15620 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15621 echo $ac_n "(cached) $ac_c" 1>&6
15624 if test $ol_cv_header_linux_threads = yes -a \
15625 $ol_cv_sys_linux_threads = yes; then
15626 ol_cv_linux_threads=yes
15627 elif test $ol_cv_header_linux_threads = no -a \
15628 $ol_cv_sys_linux_threads = no; then
15629 ol_cv_linux_threads=no
15631 ol_cv_linux_threads=error
15636 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15639 if test $ol_cv_linux_threads = error; then
15640 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15643 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15644 echo "configure:15645: checking if pthread_create() works" >&5
15645 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15646 echo $ac_n "(cached) $ac_c" 1>&6
15649 if test "$cross_compiling" = yes; then
15650 ol_cv_pthread_create_works=yes
15652 cat > conftest.$ac_ext <<EOF
15653 #line 15654 "configure"
15654 #include "confdefs.h"
15655 /* pthread test headers */
15656 #include <pthread.h>
15658 #define NULL (void*)0
15661 static void *task(p)
15664 return (void *) (p == NULL);
15668 int main(argc, argv)
15673 /* pthread test function */
15678 #ifdef HAVE_PTHREADS_FINAL
15679 /* Final pthreads */
15680 pthread_attr_t attr;
15682 status = pthread_attr_init(&attr);
15683 if( status ) return status;
15685 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15687 #if defined( PTHREAD_CREATE_JOINABLE )
15688 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15690 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15693 #ifdef PTHREAD_CREATE_DETACHED
15695 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15698 if( status ) return status;
15701 status = pthread_create( &t, &attr, task, NULL );
15702 if( status ) return status;
15704 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15706 /* give thread a chance to complete */
15707 /* it should remain joinable and hence detachable */
15710 status = pthread_detach( t );
15711 if( status ) return status;
15716 /* Draft 4 pthreads */
15717 status = pthread_create( &t, pthread_attr_default, task, NULL );
15718 if( status ) return status;
15721 /* give thread a chance to complete */
15722 /* it should remain joinable and hence detachable */
15725 status = pthread_detach( &t );
15726 if( status ) return status;
15730 #ifdef HAVE_LINUX_THREADS
15731 pthread_kill_other_threads_np();
15739 if { (eval echo configure:15740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15741 ol_cv_pthread_create_works=yes
15743 echo "configure: failed program was:" >&5
15744 cat conftest.$ac_ext >&5
15746 ol_cv_pthread_create_works=no
15753 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15755 if test $ol_cv_pthread_create_works = no ; then
15756 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15759 if test $ol_with_yielding_select = auto ; then
15760 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15761 echo "configure:15762: checking if select yields when using pthreads" >&5
15762 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15763 echo $ac_n "(cached) $ac_c" 1>&6
15766 if test "$cross_compiling" = yes; then
15767 ol_cv_pthread_select_yields=cross
15769 cat > conftest.$ac_ext <<EOF
15770 #line 15771 "configure"
15771 #include "confdefs.h"
15773 #include <sys/types.h>
15774 #include <sys/time.h>
15775 #include <unistd.h>
15776 #include <pthread.h>
15778 #define NULL (void*) 0
15781 static int fildes[2];
15783 static void *task(p)
15795 FD_SET(fildes[0], &rfds);
15797 /* we're not interested in any fds */
15798 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15805 exit(0); /* if we exit here, the select blocked the whole process */
15808 int main(argc, argv)
15814 /* create a pipe to select */
15815 if(pipe(&fildes[0])) {
15820 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15821 (void) pthread_setconcurrency(2);
15823 #ifdef HAVE_THR_SETCONCURRENCY
15824 /* Set Solaris LWP concurrency to 2 */
15825 thr_setconcurrency(2);
15829 #if HAVE_PTHREADS_D4
15830 pthread_create(&t, pthread_attr_default, task, NULL);
15832 pthread_create(&t, NULL, task, NULL);
15835 #if HAVE_SCHED_YIELD
15836 sched_yield(); /* make sure task runs first */
15838 #ifdef HAVE_PTHREAD_YIELD
15839 pthread_yield(); /* make sure task runs first */
15846 if { (eval echo configure:15847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15848 ol_cv_pthread_select_yields=no
15850 echo "configure: failed program was:" >&5
15851 cat conftest.$ac_ext >&5
15853 ol_cv_pthread_select_yields=yes
15860 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15862 if test $ol_cv_pthread_select_yields = cross ; then
15863 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15866 if test $ol_cv_pthread_select_yields = yes ; then
15867 ol_with_yielding_select=yes
15871 CPPFLAGS="$save_CPPFLAGS"
15874 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15878 if test $ol_with_threads = posix ; then
15879 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15883 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15884 -o $ol_with_threads = mach ; then
15886 for ac_hdr in mach/cthreads.h cthreads.h
15888 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15889 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15890 echo "configure:15891: checking for $ac_hdr" >&5
15891 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15892 echo $ac_n "(cached) $ac_c" 1>&6
15894 cat > conftest.$ac_ext <<EOF
15895 #line 15896 "configure"
15896 #include "confdefs.h"
15899 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15900 { (eval echo configure:15901: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15901 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15902 if test -z "$ac_err"; then
15904 eval "ac_cv_header_$ac_safe=yes"
15907 echo "configure: failed program was:" >&5
15908 cat conftest.$ac_ext >&5
15910 eval "ac_cv_header_$ac_safe=no"
15914 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15915 echo "$ac_t""yes" 1>&6
15916 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15917 cat >> confdefs.h <<EOF
15918 #define $ac_tr_hdr 1
15922 echo "$ac_t""no" 1>&6
15926 if test $ac_cv_header_mach_cthreads_h = yes ; then
15927 ol_with_threads=found
15929 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15930 echo "configure:15931: checking for cthread_fork" >&5
15931 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15932 echo $ac_n "(cached) $ac_c" 1>&6
15934 cat > conftest.$ac_ext <<EOF
15935 #line 15936 "configure"
15936 #include "confdefs.h"
15937 /* System header to define __stub macros and hopefully few prototypes,
15938 which can conflict with char cthread_fork(); below. */
15939 #include <assert.h>
15940 /* Override any gcc2 internal prototype to avoid an error. */
15941 /* We use char because int might match the return type of a gcc2
15942 builtin and then its argument prototype would still apply. */
15943 char cthread_fork();
15948 /* The GNU C library defines this for functions which it implements
15949 to always fail with ENOSYS. Some functions are actually named
15950 something starting with __ and the normal name is an alias. */
15951 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15959 if { (eval echo configure:15960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15961 eval "ac_cv_func_cthread_fork=yes"
15963 echo "configure: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15966 eval "ac_cv_func_cthread_fork=no"
15971 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15972 echo "$ac_t""yes" 1>&6
15973 ol_link_threads=yes
15975 echo "$ac_t""no" 1>&6
15979 if test $ol_link_threads = no ; then
15980 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15981 echo "configure:15982: checking for cthread_fork with -all_load" >&5
15982 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15983 echo $ac_n "(cached) $ac_c" 1>&6
15987 LIBS="-all_load $LIBS"
15988 cat > conftest.$ac_ext <<EOF
15989 #line 15990 "configure"
15990 #include "confdefs.h"
15991 #include <mach/cthreads.h>
15994 cthread_fork((void *)0, (void *)0);
15998 if { (eval echo configure:15999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16000 ol_cv_cthread_all_load=yes
16002 echo "configure: failed program was:" >&5
16003 cat conftest.$ac_ext >&5
16005 ol_cv_cthread_all_load=no
16012 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
16014 if test $ol_cv_cthread_all_load = yes ; then
16015 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
16016 ol_link_threads=mach
16017 ol_with_threads=found
16021 elif test $ac_cv_header_cthreads_h = yes ; then
16023 ol_with_threads=found
16026 LIBS="$LIBS -lthreads"
16027 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
16028 echo "configure:16029: checking for cthread_fork" >&5
16029 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
16030 echo $ac_n "(cached) $ac_c" 1>&6
16032 cat > conftest.$ac_ext <<EOF
16033 #line 16034 "configure"
16034 #include "confdefs.h"
16035 /* System header to define __stub macros and hopefully few prototypes,
16036 which can conflict with char cthread_fork(); below. */
16037 #include <assert.h>
16038 /* Override any gcc2 internal prototype to avoid an error. */
16039 /* We use char because int might match the return type of a gcc2
16040 builtin and then its argument prototype would still apply. */
16041 char cthread_fork();
16046 /* The GNU C library defines this for functions which it implements
16047 to always fail with ENOSYS. Some functions are actually named
16048 something starting with __ and the normal name is an alias. */
16049 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16057 if { (eval echo configure:16058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16059 eval "ac_cv_func_cthread_fork=yes"
16061 echo "configure: failed program was:" >&5
16062 cat conftest.$ac_ext >&5
16064 eval "ac_cv_func_cthread_fork=no"
16069 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16070 echo "$ac_t""yes" 1>&6
16071 ol_link_threads=yes
16073 echo "$ac_t""no" 1>&6
16078 if test $ol_link_threads = yes ; then
16079 LTHREAD_LIBS="-lthreads"
16080 ol_link_threads=mach
16081 ol_with_threads=found
16083 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16086 elif test $ol_with_threads = mach ; then
16087 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16090 if test $ol_link_threads = mach ; then
16091 cat >> confdefs.h <<\EOF
16092 #define HAVE_MACH_CTHREADS 1
16095 elif test $ol_with_threads = found ; then
16096 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16100 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16101 -o $ol_with_threads = pth ; then
16103 for ac_hdr in pth.h
16105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16107 echo "configure:16108: checking for $ac_hdr" >&5
16108 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16109 echo $ac_n "(cached) $ac_c" 1>&6
16111 cat > conftest.$ac_ext <<EOF
16112 #line 16113 "configure"
16113 #include "confdefs.h"
16116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16117 { (eval echo configure:16118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16119 if test -z "$ac_err"; then
16121 eval "ac_cv_header_$ac_safe=yes"
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 eval "ac_cv_header_$ac_safe=no"
16131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16132 echo "$ac_t""yes" 1>&6
16133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16134 cat >> confdefs.h <<EOF
16135 #define $ac_tr_hdr 1
16139 echo "$ac_t""no" 1>&6
16144 if test $ac_cv_header_pth_h = yes ; then
16145 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16146 echo "configure:16147: checking for pth_version in -lpth" >&5
16147 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16148 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16149 echo $ac_n "(cached) $ac_c" 1>&6
16151 ac_save_LIBS="$LIBS"
16153 cat > conftest.$ac_ext <<EOF
16154 #line 16155 "configure"
16155 #include "confdefs.h"
16156 /* Override any gcc2 internal prototype to avoid an error. */
16157 /* We use char because int might match the return type of a gcc2
16158 builtin and then its argument prototype would still apply. */
16159 char pth_version();
16165 if { (eval echo configure:16166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16167 eval "ac_cv_lib_$ac_lib_var=yes"
16169 echo "configure: failed program was:" >&5
16170 cat conftest.$ac_ext >&5
16172 eval "ac_cv_lib_$ac_lib_var=no"
16175 LIBS="$ac_save_LIBS"
16178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16179 echo "$ac_t""yes" 1>&6
16182 echo "$ac_t""no" 1>&6
16187 if test $have_pth = yes ; then
16188 cat >> confdefs.h <<\EOF
16189 #define HAVE_GNU_PTH 1
16192 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16193 ol_link_threads=pth
16194 ol_with_threads=found
16196 if test $ol_with_yielding_select = auto ; then
16197 ol_with_yielding_select=yes
16203 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16204 -o $ol_with_threads = lwp ; then
16206 for ac_hdr in thread.h synch.h
16208 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16209 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16210 echo "configure:16211: checking for $ac_hdr" >&5
16211 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16212 echo $ac_n "(cached) $ac_c" 1>&6
16214 cat > conftest.$ac_ext <<EOF
16215 #line 16216 "configure"
16216 #include "confdefs.h"
16219 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16220 { (eval echo configure:16221: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16221 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16222 if test -z "$ac_err"; then
16224 eval "ac_cv_header_$ac_safe=yes"
16227 echo "configure: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16230 eval "ac_cv_header_$ac_safe=no"
16234 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16235 echo "$ac_t""yes" 1>&6
16236 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16237 cat >> confdefs.h <<EOF
16238 #define $ac_tr_hdr 1
16242 echo "$ac_t""no" 1>&6
16246 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16247 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16248 echo "configure:16249: checking for thr_create in -lthread" >&5
16249 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16250 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16251 echo $ac_n "(cached) $ac_c" 1>&6
16253 ac_save_LIBS="$LIBS"
16254 LIBS="-lthread $LIBS"
16255 cat > conftest.$ac_ext <<EOF
16256 #line 16257 "configure"
16257 #include "confdefs.h"
16258 /* Override any gcc2 internal prototype to avoid an error. */
16259 /* We use char because int might match the return type of a gcc2
16260 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
16271 echo "configure: failed program was:" >&5
16272 cat conftest.$ac_ext >&5
16274 eval "ac_cv_lib_$ac_lib_var=no"
16277 LIBS="$ac_save_LIBS"
16280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16281 echo "$ac_t""yes" 1>&6
16284 echo "$ac_t""no" 1>&6
16289 if test $have_thr = yes ; then
16290 cat >> confdefs.h <<\EOF
16294 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16295 ol_link_threads=thr
16297 if test $ol_with_yielding_select = auto ; then
16298 ol_with_yielding_select=yes
16302 thr_setconcurrency \
16303 thr_getconcurrency \
16306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16307 echo "configure:16308: checking for $ac_func" >&5
16308 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16309 echo $ac_n "(cached) $ac_c" 1>&6
16311 cat > conftest.$ac_ext <<EOF
16312 #line 16313 "configure"
16313 #include "confdefs.h"
16314 /* System header to define __stub macros and hopefully few prototypes,
16315 which can conflict with char $ac_func(); below. */
16316 #include <assert.h>
16317 /* Override any gcc2 internal prototype to avoid an error. */
16318 /* We use char because int might match the return type of a gcc2
16319 builtin and then its argument prototype would still apply. */
16325 /* The GNU C library defines this for functions which it implements
16326 to always fail with ENOSYS. Some functions are actually named
16327 something starting with __ and the normal name is an alias. */
16328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16336 if { (eval echo configure:16337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16338 eval "ac_cv_func_$ac_func=yes"
16340 echo "configure: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16343 eval "ac_cv_func_$ac_func=no"
16348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16349 echo "$ac_t""yes" 1>&6
16350 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16351 cat >> confdefs.h <<EOF
16352 #define $ac_tr_func 1
16356 echo "$ac_t""no" 1>&6
16363 for ac_hdr in lwp/lwp.h
16365 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16366 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16367 echo "configure:16368: checking for $ac_hdr" >&5
16368 if eval "test \"\${ac_cv_header_$ac_safe+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"
16376 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16377 { (eval echo configure:16378: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16378 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16379 if test -z "$ac_err"; then
16381 eval "ac_cv_header_$ac_safe=yes"
16384 echo "configure: failed program was:" >&5
16385 cat conftest.$ac_ext >&5
16387 eval "ac_cv_header_$ac_safe=no"
16391 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16392 echo "$ac_t""yes" 1>&6
16393 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16394 cat >> confdefs.h <<EOF
16395 #define $ac_tr_hdr 1
16399 echo "$ac_t""no" 1>&6
16403 if test $ac_cv_header_lwp_lwp_h = yes ; then
16404 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16405 echo "configure:16406: checking for lwp_create in -llwp" >&5
16406 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16407 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16410 ac_save_LIBS="$LIBS"
16412 cat > conftest.$ac_ext <<EOF
16413 #line 16414 "configure"
16414 #include "confdefs.h"
16415 /* Override any gcc2 internal prototype to avoid an error. */
16416 /* We use char because int might match the return type of a gcc2
16417 builtin and then its argument prototype would still apply. */
16424 if { (eval echo configure:16425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16426 eval "ac_cv_lib_$ac_lib_var=yes"
16428 echo "configure: failed program was:" >&5
16429 cat conftest.$ac_ext >&5
16431 eval "ac_cv_lib_$ac_lib_var=no"
16434 LIBS="$ac_save_LIBS"
16437 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16438 echo "$ac_t""yes" 1>&6
16441 echo "$ac_t""no" 1>&6
16446 if test $have_lwp = yes ; then
16447 cat >> confdefs.h <<\EOF
16451 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16452 ol_link_threads=lwp
16454 if test $ol_with_yielding_select = auto ; then
16455 ol_with_yielding_select=no
16461 if test $ol_with_yielding_select = yes ; then
16462 cat >> confdefs.h <<\EOF
16463 #define HAVE_YIELDING_SELECT 1
16468 if test $ol_with_threads = manual ; then
16469 ol_link_threads=yes
16471 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16473 for ac_hdr in pthread.h sched.h
16475 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16476 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16477 echo "configure:16478: checking for $ac_hdr" >&5
16478 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16479 echo $ac_n "(cached) $ac_c" 1>&6
16481 cat > conftest.$ac_ext <<EOF
16482 #line 16483 "configure"
16483 #include "confdefs.h"
16486 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16487 { (eval echo configure:16488: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16488 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16489 if test -z "$ac_err"; then
16491 eval "ac_cv_header_$ac_safe=yes"
16494 echo "configure: failed program was:" >&5
16495 cat conftest.$ac_ext >&5
16497 eval "ac_cv_header_$ac_safe=no"
16501 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16502 echo "$ac_t""yes" 1>&6
16503 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16504 cat >> confdefs.h <<EOF
16505 #define $ac_tr_hdr 1
16509 echo "$ac_t""no" 1>&6
16513 for ac_func in sched_yield pthread_yield
16515 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16516 echo "configure:16517: checking for $ac_func" >&5
16517 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16518 echo $ac_n "(cached) $ac_c" 1>&6
16520 cat > conftest.$ac_ext <<EOF
16521 #line 16522 "configure"
16522 #include "confdefs.h"
16523 /* System header to define __stub macros and hopefully few prototypes,
16524 which can conflict with char $ac_func(); below. */
16525 #include <assert.h>
16526 /* Override any gcc2 internal prototype to avoid an error. */
16527 /* We use char because int might match the return type of a gcc2
16528 builtin and then its argument prototype would still apply. */
16534 /* The GNU C library defines this for functions which it implements
16535 to always fail with ENOSYS. Some functions are actually named
16536 something starting with __ and the normal name is an alias. */
16537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16545 if { (eval echo configure:16546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16547 eval "ac_cv_func_$ac_func=yes"
16549 echo "configure: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16552 eval "ac_cv_func_$ac_func=no"
16557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16558 echo "$ac_t""yes" 1>&6
16559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16560 cat >> confdefs.h <<EOF
16561 #define $ac_tr_func 1
16565 echo "$ac_t""no" 1>&6
16570 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16571 echo "configure:16572: checking for LinuxThreads pthread.h" >&5
16572 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16573 echo $ac_n "(cached) $ac_c" 1>&6
16575 cat > conftest.$ac_ext <<EOF
16576 #line 16577 "configure"
16577 #include "confdefs.h"
16578 #include <pthread.h>
16580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16581 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16583 ol_cv_header_linux_threads=yes
16586 ol_cv_header_linux_threads=no
16593 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16594 if test $ol_cv_header_linux_threads = yes; then
16595 cat >> confdefs.h <<\EOF
16596 #define HAVE_LINUX_THREADS 1
16602 for ac_hdr in mach/cthreads.h
16604 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16605 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16606 echo "configure:16607: checking for $ac_hdr" >&5
16607 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16608 echo $ac_n "(cached) $ac_c" 1>&6
16610 cat > conftest.$ac_ext <<EOF
16611 #line 16612 "configure"
16612 #include "confdefs.h"
16615 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16616 { (eval echo configure:16617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16617 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16618 if test -z "$ac_err"; then
16620 eval "ac_cv_header_$ac_safe=yes"
16623 echo "configure: failed program was:" >&5
16624 cat conftest.$ac_ext >&5
16626 eval "ac_cv_header_$ac_safe=no"
16630 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16631 echo "$ac_t""yes" 1>&6
16632 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16633 cat >> confdefs.h <<EOF
16634 #define $ac_tr_hdr 1
16638 echo "$ac_t""no" 1>&6
16642 for ac_hdr in lwp/lwp.h
16644 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16645 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16646 echo "configure:16647: checking for $ac_hdr" >&5
16647 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16648 echo $ac_n "(cached) $ac_c" 1>&6
16650 cat > conftest.$ac_ext <<EOF
16651 #line 16652 "configure"
16652 #include "confdefs.h"
16655 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16656 { (eval echo configure:16657: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16657 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16658 if test -z "$ac_err"; then
16660 eval "ac_cv_header_$ac_safe=yes"
16663 echo "configure: failed program was:" >&5
16664 cat conftest.$ac_ext >&5
16666 eval "ac_cv_header_$ac_safe=no"
16670 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16671 echo "$ac_t""yes" 1>&6
16672 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16673 cat >> confdefs.h <<EOF
16674 #define $ac_tr_hdr 1
16678 echo "$ac_t""no" 1>&6
16682 for ac_hdr in thread.h synch.h
16684 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16685 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16686 echo "configure:16687: checking for $ac_hdr" >&5
16687 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16688 echo $ac_n "(cached) $ac_c" 1>&6
16690 cat > conftest.$ac_ext <<EOF
16691 #line 16692 "configure"
16692 #include "confdefs.h"
16695 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16696 { (eval echo configure:16697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16697 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16698 if test -z "$ac_err"; then
16700 eval "ac_cv_header_$ac_safe=yes"
16703 echo "configure: failed program was:" >&5
16704 cat conftest.$ac_ext >&5
16706 eval "ac_cv_header_$ac_safe=no"
16710 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16711 echo "$ac_t""yes" 1>&6
16712 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16713 cat >> confdefs.h <<EOF
16714 #define $ac_tr_hdr 1
16718 echo "$ac_t""no" 1>&6
16724 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16725 cat >> confdefs.h <<\EOF
16726 #define REENTRANT 1
16729 cat >> confdefs.h <<\EOF
16730 #define _REENTRANT 1
16733 cat >> confdefs.h <<\EOF
16734 #define THREAD_SAFE 1
16737 cat >> confdefs.h <<\EOF
16738 #define _THREAD_SAFE 1
16741 cat >> confdefs.h <<\EOF
16742 #define THREADSAFE 1
16745 cat >> confdefs.h <<\EOF
16746 #define _THREADSAFE 1
16749 cat >> confdefs.h <<\EOF
16750 #define _SGI_MP_SOURCE 1
16754 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16755 echo "configure:16756: checking for thread specific errno" >&5
16756 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16757 echo $ac_n "(cached) $ac_c" 1>&6
16760 cat > conftest.$ac_ext <<EOF
16761 #line 16762 "configure"
16762 #include "confdefs.h"
16768 if { (eval echo configure:16769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16770 ol_cv_errno_thread_specific=yes
16772 echo "configure: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16775 ol_cv_errno_thread_specific=no
16781 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16783 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16784 echo "configure:16785: checking for thread specific h_errno" >&5
16785 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16786 echo $ac_n "(cached) $ac_c" 1>&6
16789 cat > conftest.$ac_ext <<EOF
16790 #line 16791 "configure"
16791 #include "confdefs.h"
16797 if { (eval echo configure:16798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16799 ol_cv_h_errno_thread_specific=yes
16801 echo "configure: failed program was:" >&5
16802 cat conftest.$ac_ext >&5
16804 ol_cv_h_errno_thread_specific=no
16810 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16812 if test $ol_cv_errno_thread_specific != yes \
16813 -o $ol_cv_h_errno_thread_specific != yes ; then
16814 LIBS="$LTHREAD_LIBS $LIBS"
16820 if test $ol_link_threads = no ; then
16821 if test $ol_with_threads = yes ; then
16822 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16825 if test $ol_with_threads = auto ; then
16826 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16830 cat >> confdefs.h <<\EOF
16831 #define NO_THREADS 1
16837 if test $ol_link_threads != no ; then
16838 cat >> confdefs.h <<\EOF
16839 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16846 if test $ol_with_ldbm_api = auto \
16847 -o $ol_with_ldbm_api = berkeley \
16848 -o $ol_with_ldbm_api = bcompat ; then
16850 if test $ol_with_ldbm_api = bcompat; then \
16851 for ac_hdr in db_185.h db.h
16853 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16854 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16855 echo "configure:16856: checking for $ac_hdr" >&5
16856 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16857 echo $ac_n "(cached) $ac_c" 1>&6
16859 cat > conftest.$ac_ext <<EOF
16860 #line 16861 "configure"
16861 #include "confdefs.h"
16864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16865 { (eval echo configure:16866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16867 if test -z "$ac_err"; then
16869 eval "ac_cv_header_$ac_safe=yes"
16872 echo "configure: failed program was:" >&5
16873 cat conftest.$ac_ext >&5
16875 eval "ac_cv_header_$ac_safe=no"
16879 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16880 echo "$ac_t""yes" 1>&6
16881 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16882 cat >> confdefs.h <<EOF
16883 #define $ac_tr_hdr 1
16887 echo "$ac_t""no" 1>&6
16891 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16892 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16893 echo "configure:16894: checking if Berkeley DB header compatibility" >&5
16894 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16895 echo $ac_n "(cached) $ac_c" 1>&6
16898 cat > conftest.$ac_ext <<EOF
16899 #line 16900 "configure"
16900 #include "confdefs.h"
16903 # include <db_185.h>
16908 /* this check could be improved */
16909 #ifndef DB_VERSION_MAJOR
16910 # define DB_VERSION_MAJOR 1
16913 #if DB_VERSION_MAJOR == 1
16918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16919 egrep "__db_version_1" >/dev/null 2>&1; then
16921 ol_cv_header_db1=yes
16924 ol_cv_header_db1=no
16930 echo "$ac_t""$ol_cv_header_db1" 1>&6
16932 if test $ol_cv_header_db1 = yes ; then
16934 if test $ol_cv_lib_db = no ; then
16935 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16936 echo "configure:16937: checking for Berkeley DB link (default)" >&5
16937 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16938 echo $ac_n "(cached) $ac_c" 1>&6
16943 LIBS="$ol_DB_LIB $LIBS"
16945 cat > conftest.$ac_ext <<EOF
16946 #line 16947 "configure"
16947 #include "confdefs.h"
16949 #ifdef HAVE_DB_185_H
16950 # include <db_185.h>
16955 #ifndef DB_VERSION_MAJOR
16956 # define DB_VERSION_MAJOR 1
16960 #define NULL ((void*)0)
16965 #if DB_VERSION_MAJOR > 1
16968 int major, minor, patch;
16970 version = db_version( &major, &minor, &patch );
16972 if( major != DB_VERSION_MAJOR ||
16973 minor < DB_VERSION_MINOR )
16975 printf("Berkeley DB version mismatch\n"
16976 "\texpected: %s\n\tgot: %s\n",
16977 DB_VERSION_STRING, version);
16983 #if DB_VERSION_MAJOR > 2
16984 db_env_create( NULL, 0 );
16985 #elif DB_VERSION_MAJOR > 1
16986 db_appexit( NULL );
16988 (void) dbopen( NULL, 0, 0, 0, NULL);
16993 if { (eval echo configure:16994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16997 echo "configure: failed program was:" >&5
16998 cat conftest.$ac_ext >&5
17008 echo "$ac_t""$ol_cv_db_none" 1>&6
17010 if test $ol_cv_db_none = yes ; then
17015 if test $ol_cv_lib_db = no ; then
17016 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17017 echo "configure:17018: checking for Berkeley DB link (-ldb)" >&5
17018 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17019 echo $ac_n "(cached) $ac_c" 1>&6
17024 LIBS="$ol_DB_LIB $LIBS"
17026 cat > conftest.$ac_ext <<EOF
17027 #line 17028 "configure"
17028 #include "confdefs.h"
17030 #ifdef HAVE_DB_185_H
17031 # include <db_185.h>
17036 #ifndef DB_VERSION_MAJOR
17037 # define DB_VERSION_MAJOR 1
17041 #define NULL ((void*)0)
17046 #if DB_VERSION_MAJOR > 1
17049 int major, minor, patch;
17051 version = db_version( &major, &minor, &patch );
17053 if( major != DB_VERSION_MAJOR ||
17054 minor < DB_VERSION_MINOR )
17056 printf("Berkeley DB version mismatch\n"
17057 "\texpected: %s\n\tgot: %s\n",
17058 DB_VERSION_STRING, version);
17064 #if DB_VERSION_MAJOR > 2
17065 db_env_create( NULL, 0 );
17066 #elif DB_VERSION_MAJOR > 1
17067 db_appexit( NULL );
17069 (void) dbopen( NULL, 0, 0, 0, NULL);
17074 if { (eval echo configure:17075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17078 echo "configure: failed program was:" >&5
17079 cat conftest.$ac_ext >&5
17089 echo "$ac_t""$ol_cv_db_db" 1>&6
17091 if test $ol_cv_db_db = yes ; then
17096 if test $ol_cv_lib_db = no ; then
17097 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17098 echo "configure:17099: checking for Berkeley DB link (-ldb4)" >&5
17099 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17100 echo $ac_n "(cached) $ac_c" 1>&6
17105 LIBS="$ol_DB_LIB $LIBS"
17107 cat > conftest.$ac_ext <<EOF
17108 #line 17109 "configure"
17109 #include "confdefs.h"
17111 #ifdef HAVE_DB_185_H
17112 # include <db_185.h>
17117 #ifndef DB_VERSION_MAJOR
17118 # define DB_VERSION_MAJOR 1
17122 #define NULL ((void*)0)
17127 #if DB_VERSION_MAJOR > 1
17130 int major, minor, patch;
17132 version = db_version( &major, &minor, &patch );
17134 if( major != DB_VERSION_MAJOR ||
17135 minor < DB_VERSION_MINOR )
17137 printf("Berkeley DB version mismatch\n"
17138 "\texpected: %s\n\tgot: %s\n",
17139 DB_VERSION_STRING, version);
17145 #if DB_VERSION_MAJOR > 2
17146 db_env_create( NULL, 0 );
17147 #elif DB_VERSION_MAJOR > 1
17148 db_appexit( NULL );
17150 (void) dbopen( NULL, 0, 0, 0, NULL);
17155 if { (eval echo configure:17156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17159 echo "configure: failed program was:" >&5
17160 cat conftest.$ac_ext >&5
17170 echo "$ac_t""$ol_cv_db_db4" 1>&6
17172 if test $ol_cv_db_db4 = yes ; then
17177 if test $ol_cv_lib_db = no ; then
17178 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17179 echo "configure:17180: checking for Berkeley DB link (-ldb3)" >&5
17180 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17181 echo $ac_n "(cached) $ac_c" 1>&6
17186 LIBS="$ol_DB_LIB $LIBS"
17188 cat > conftest.$ac_ext <<EOF
17189 #line 17190 "configure"
17190 #include "confdefs.h"
17192 #ifdef HAVE_DB_185_H
17193 # include <db_185.h>
17198 #ifndef DB_VERSION_MAJOR
17199 # define DB_VERSION_MAJOR 1
17203 #define NULL ((void*)0)
17208 #if DB_VERSION_MAJOR > 1
17211 int major, minor, patch;
17213 version = db_version( &major, &minor, &patch );
17215 if( major != DB_VERSION_MAJOR ||
17216 minor < DB_VERSION_MINOR )
17218 printf("Berkeley DB version mismatch\n"
17219 "\texpected: %s\n\tgot: %s\n",
17220 DB_VERSION_STRING, version);
17226 #if DB_VERSION_MAJOR > 2
17227 db_env_create( NULL, 0 );
17228 #elif DB_VERSION_MAJOR > 1
17229 db_appexit( NULL );
17231 (void) dbopen( NULL, 0, 0, 0, NULL);
17236 if { (eval echo configure:17237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17240 echo "configure: failed program was:" >&5
17241 cat conftest.$ac_ext >&5
17251 echo "$ac_t""$ol_cv_db_db3" 1>&6
17253 if test $ol_cv_db_db3 = yes ; then
17258 if test $ol_cv_lib_db = no ; then
17259 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17260 echo "configure:17261: checking for Berkeley DB link (-ldb2)" >&5
17261 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17262 echo $ac_n "(cached) $ac_c" 1>&6
17267 LIBS="$ol_DB_LIB $LIBS"
17269 cat > conftest.$ac_ext <<EOF
17270 #line 17271 "configure"
17271 #include "confdefs.h"
17273 #ifdef HAVE_DB_185_H
17274 # include <db_185.h>
17279 #ifndef DB_VERSION_MAJOR
17280 # define DB_VERSION_MAJOR 1
17284 #define NULL ((void*)0)
17289 #if DB_VERSION_MAJOR > 1
17292 int major, minor, patch;
17294 version = db_version( &major, &minor, &patch );
17296 if( major != DB_VERSION_MAJOR ||
17297 minor < DB_VERSION_MINOR )
17299 printf("Berkeley DB version mismatch\n"
17300 "\texpected: %s\n\tgot: %s\n",
17301 DB_VERSION_STRING, version);
17307 #if DB_VERSION_MAJOR > 2
17308 db_env_create( NULL, 0 );
17309 #elif DB_VERSION_MAJOR > 1
17310 db_appexit( NULL );
17312 (void) dbopen( NULL, 0, 0, 0, NULL);
17317 if { (eval echo configure:17318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17321 echo "configure: failed program was:" >&5
17322 cat conftest.$ac_ext >&5
17332 echo "$ac_t""$ol_cv_db_db2" 1>&6
17334 if test $ol_cv_db_db2 = yes ; then
17339 if test $ol_cv_lib_db = no ; then
17340 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17341 echo "configure:17342: checking for Berkeley DB link (-ldb1)" >&5
17342 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17343 echo $ac_n "(cached) $ac_c" 1>&6
17348 LIBS="$ol_DB_LIB $LIBS"
17350 cat > conftest.$ac_ext <<EOF
17351 #line 17352 "configure"
17352 #include "confdefs.h"
17354 #ifdef HAVE_DB_185_H
17355 # include <db_185.h>
17360 #ifndef DB_VERSION_MAJOR
17361 # define DB_VERSION_MAJOR 1
17365 #define NULL ((void*)0)
17370 #if DB_VERSION_MAJOR > 1
17373 int major, minor, patch;
17375 version = db_version( &major, &minor, &patch );
17377 if( major != DB_VERSION_MAJOR ||
17378 minor < DB_VERSION_MINOR )
17380 printf("Berkeley DB version mismatch\n"
17381 "\texpected: %s\n\tgot: %s\n",
17382 DB_VERSION_STRING, version);
17388 #if DB_VERSION_MAJOR > 2
17389 db_env_create( NULL, 0 );
17390 #elif DB_VERSION_MAJOR > 1
17391 db_appexit( NULL );
17393 (void) dbopen( NULL, 0, 0, 0, NULL);
17398 if { (eval echo configure:17399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17402 echo "configure: failed program was:" >&5
17403 cat conftest.$ac_ext >&5
17413 echo "$ac_t""$ol_cv_db_db1" 1>&6
17415 if test $ol_cv_db_db1 = yes ; then
17421 if test "$ol_cv_lib_db" != no ; then
17422 ol_cv_berkeley_db=yes
17428 ol_cv_berkeley_db=no
17431 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17432 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17433 echo "configure:17434: checking for $ac_hdr" >&5
17434 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17435 echo $ac_n "(cached) $ac_c" 1>&6
17437 cat > conftest.$ac_ext <<EOF
17438 #line 17439 "configure"
17439 #include "confdefs.h"
17442 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17443 { (eval echo configure:17444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17444 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17445 if test -z "$ac_err"; then
17447 eval "ac_cv_header_$ac_safe=yes"
17450 echo "configure: failed program was:" >&5
17451 cat conftest.$ac_ext >&5
17453 eval "ac_cv_header_$ac_safe=no"
17457 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17458 echo "$ac_t""yes" 1>&6
17459 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17460 cat >> confdefs.h <<EOF
17461 #define $ac_tr_hdr 1
17465 echo "$ac_t""no" 1>&6
17469 if test $ac_cv_header_db_h = yes; then
17471 if test $ol_cv_lib_db = no ; then
17472 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17473 echo "configure:17474: checking for Berkeley DB link (default)" >&5
17474 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17475 echo $ac_n "(cached) $ac_c" 1>&6
17480 LIBS="$ol_DB_LIB $LIBS"
17482 cat > conftest.$ac_ext <<EOF
17483 #line 17484 "configure"
17484 #include "confdefs.h"
17486 #ifdef HAVE_DB_185_H
17487 # include <db_185.h>
17492 #ifndef DB_VERSION_MAJOR
17493 # define DB_VERSION_MAJOR 1
17497 #define NULL ((void*)0)
17502 #if DB_VERSION_MAJOR > 1
17505 int major, minor, patch;
17507 version = db_version( &major, &minor, &patch );
17509 if( major != DB_VERSION_MAJOR ||
17510 minor < DB_VERSION_MINOR )
17512 printf("Berkeley DB version mismatch\n"
17513 "\texpected: %s\n\tgot: %s\n",
17514 DB_VERSION_STRING, version);
17520 #if DB_VERSION_MAJOR > 2
17521 db_env_create( NULL, 0 );
17522 #elif DB_VERSION_MAJOR > 1
17523 db_appexit( NULL );
17525 (void) dbopen( NULL, 0, 0, 0, NULL);
17530 if { (eval echo configure:17531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17534 echo "configure: failed program was:" >&5
17535 cat conftest.$ac_ext >&5
17545 echo "$ac_t""$ol_cv_db_none" 1>&6
17547 if test $ol_cv_db_none = yes ; then
17552 if test $ol_cv_lib_db = no ; then
17553 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17554 echo "configure:17555: checking for Berkeley DB link (-ldb)" >&5
17555 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17556 echo $ac_n "(cached) $ac_c" 1>&6
17561 LIBS="$ol_DB_LIB $LIBS"
17563 cat > conftest.$ac_ext <<EOF
17564 #line 17565 "configure"
17565 #include "confdefs.h"
17567 #ifdef HAVE_DB_185_H
17568 # include <db_185.h>
17573 #ifndef DB_VERSION_MAJOR
17574 # define DB_VERSION_MAJOR 1
17578 #define NULL ((void*)0)
17583 #if DB_VERSION_MAJOR > 1
17586 int major, minor, patch;
17588 version = db_version( &major, &minor, &patch );
17590 if( major != DB_VERSION_MAJOR ||
17591 minor < DB_VERSION_MINOR )
17593 printf("Berkeley DB version mismatch\n"
17594 "\texpected: %s\n\tgot: %s\n",
17595 DB_VERSION_STRING, version);
17601 #if DB_VERSION_MAJOR > 2
17602 db_env_create( NULL, 0 );
17603 #elif DB_VERSION_MAJOR > 1
17604 db_appexit( NULL );
17606 (void) dbopen( NULL, 0, 0, 0, NULL);
17611 if { (eval echo configure:17612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17615 echo "configure: failed program was:" >&5
17616 cat conftest.$ac_ext >&5
17626 echo "$ac_t""$ol_cv_db_db" 1>&6
17628 if test $ol_cv_db_db = yes ; then
17633 if test $ol_cv_lib_db = no ; then
17634 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17635 echo "configure:17636: checking for Berkeley DB link (-ldb4)" >&5
17636 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17637 echo $ac_n "(cached) $ac_c" 1>&6
17642 LIBS="$ol_DB_LIB $LIBS"
17644 cat > conftest.$ac_ext <<EOF
17645 #line 17646 "configure"
17646 #include "confdefs.h"
17648 #ifdef HAVE_DB_185_H
17649 # include <db_185.h>
17654 #ifndef DB_VERSION_MAJOR
17655 # define DB_VERSION_MAJOR 1
17659 #define NULL ((void*)0)
17664 #if DB_VERSION_MAJOR > 1
17667 int major, minor, patch;
17669 version = db_version( &major, &minor, &patch );
17671 if( major != DB_VERSION_MAJOR ||
17672 minor < DB_VERSION_MINOR )
17674 printf("Berkeley DB version mismatch\n"
17675 "\texpected: %s\n\tgot: %s\n",
17676 DB_VERSION_STRING, version);
17682 #if DB_VERSION_MAJOR > 2
17683 db_env_create( NULL, 0 );
17684 #elif DB_VERSION_MAJOR > 1
17685 db_appexit( NULL );
17687 (void) dbopen( NULL, 0, 0, 0, NULL);
17692 if { (eval echo configure:17693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17696 echo "configure: failed program was:" >&5
17697 cat conftest.$ac_ext >&5
17707 echo "$ac_t""$ol_cv_db_db4" 1>&6
17709 if test $ol_cv_db_db4 = yes ; then
17714 if test $ol_cv_lib_db = no ; then
17715 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17716 echo "configure:17717: checking for Berkeley DB link (-ldb3)" >&5
17717 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17718 echo $ac_n "(cached) $ac_c" 1>&6
17723 LIBS="$ol_DB_LIB $LIBS"
17725 cat > conftest.$ac_ext <<EOF
17726 #line 17727 "configure"
17727 #include "confdefs.h"
17729 #ifdef HAVE_DB_185_H
17730 # include <db_185.h>
17735 #ifndef DB_VERSION_MAJOR
17736 # define DB_VERSION_MAJOR 1
17740 #define NULL ((void*)0)
17745 #if DB_VERSION_MAJOR > 1
17748 int major, minor, patch;
17750 version = db_version( &major, &minor, &patch );
17752 if( major != DB_VERSION_MAJOR ||
17753 minor < DB_VERSION_MINOR )
17755 printf("Berkeley DB version mismatch\n"
17756 "\texpected: %s\n\tgot: %s\n",
17757 DB_VERSION_STRING, version);
17763 #if DB_VERSION_MAJOR > 2
17764 db_env_create( NULL, 0 );
17765 #elif DB_VERSION_MAJOR > 1
17766 db_appexit( NULL );
17768 (void) dbopen( NULL, 0, 0, 0, NULL);
17773 if { (eval echo configure:17774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17777 echo "configure: failed program was:" >&5
17778 cat conftest.$ac_ext >&5
17788 echo "$ac_t""$ol_cv_db_db3" 1>&6
17790 if test $ol_cv_db_db3 = yes ; then
17795 if test $ol_cv_lib_db = no ; then
17796 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17797 echo "configure:17798: checking for Berkeley DB link (-ldb2)" >&5
17798 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17799 echo $ac_n "(cached) $ac_c" 1>&6
17804 LIBS="$ol_DB_LIB $LIBS"
17806 cat > conftest.$ac_ext <<EOF
17807 #line 17808 "configure"
17808 #include "confdefs.h"
17810 #ifdef HAVE_DB_185_H
17811 # include <db_185.h>
17816 #ifndef DB_VERSION_MAJOR
17817 # define DB_VERSION_MAJOR 1
17821 #define NULL ((void*)0)
17826 #if DB_VERSION_MAJOR > 1
17829 int major, minor, patch;
17831 version = db_version( &major, &minor, &patch );
17833 if( major != DB_VERSION_MAJOR ||
17834 minor < DB_VERSION_MINOR )
17836 printf("Berkeley DB version mismatch\n"
17837 "\texpected: %s\n\tgot: %s\n",
17838 DB_VERSION_STRING, version);
17844 #if DB_VERSION_MAJOR > 2
17845 db_env_create( NULL, 0 );
17846 #elif DB_VERSION_MAJOR > 1
17847 db_appexit( NULL );
17849 (void) dbopen( NULL, 0, 0, 0, NULL);
17854 if { (eval echo configure:17855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17858 echo "configure: failed program was:" >&5
17859 cat conftest.$ac_ext >&5
17869 echo "$ac_t""$ol_cv_db_db2" 1>&6
17871 if test $ol_cv_db_db2 = yes ; then
17876 if test $ol_cv_lib_db = no ; then
17877 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17878 echo "configure:17879: checking for Berkeley DB link (-ldb1)" >&5
17879 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17880 echo $ac_n "(cached) $ac_c" 1>&6
17885 LIBS="$ol_DB_LIB $LIBS"
17887 cat > conftest.$ac_ext <<EOF
17888 #line 17889 "configure"
17889 #include "confdefs.h"
17891 #ifdef HAVE_DB_185_H
17892 # include <db_185.h>
17897 #ifndef DB_VERSION_MAJOR
17898 # define DB_VERSION_MAJOR 1
17902 #define NULL ((void*)0)
17907 #if DB_VERSION_MAJOR > 1
17910 int major, minor, patch;
17912 version = db_version( &major, &minor, &patch );
17914 if( major != DB_VERSION_MAJOR ||
17915 minor < DB_VERSION_MINOR )
17917 printf("Berkeley DB version mismatch\n"
17918 "\texpected: %s\n\tgot: %s\n",
17919 DB_VERSION_STRING, version);
17925 #if DB_VERSION_MAJOR > 2
17926 db_env_create( NULL, 0 );
17927 #elif DB_VERSION_MAJOR > 1
17928 db_appexit( NULL );
17930 (void) dbopen( NULL, 0, 0, 0, NULL);
17935 if { (eval echo configure:17936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17939 echo "configure: failed program was:" >&5
17940 cat conftest.$ac_ext >&5
17950 echo "$ac_t""$ol_cv_db_db1" 1>&6
17952 if test $ol_cv_db_db1 = yes ; then
17958 if test "$ol_cv_lib_db" != no ; then
17959 ol_cv_berkeley_db=yes
17960 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
17961 echo "configure:17962: checking for Berkeley DB thread support" >&5
17962 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
17963 echo $ac_n "(cached) $ac_c" 1>&6
17967 if test $ol_cv_lib_db != yes ; then
17968 LIBS="$ol_cv_lib_db"
17971 if test "$cross_compiling" = yes; then
17972 ol_cv_berkeley_db_thread=cross
17974 cat > conftest.$ac_ext <<EOF
17975 #line 17976 "configure"
17976 #include "confdefs.h"
17978 #ifdef HAVE_DB_185_H
17984 #define NULL ((void *)0)
17989 u_int32_t flags = DB_CREATE |
17995 #if DB_VERSION_MAJOR > 2
17996 DB_ENV *env = NULL;
17998 rc = db_env_create( &env, 0 );
18000 flags |= DB_INIT_MPOOL;
18001 #ifdef DB_MPOOL_PRIVATE
18002 flags |= DB_MPOOL_PRIVATE;
18006 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18010 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
18011 rc = env->open( env, NULL, flags, 0 );
18013 rc = env->open( env, NULL, NULL, flags, 0 );
18017 rc = env->close( env, 0 );
18021 printf("BerkeleyDB: %s\n", db_strerror(rc) );
18027 memset( &env, '\0', sizeof(env) );
18029 rc = db_appinit( NULL, NULL, &env, flags );
18032 db_appexit( &env );
18035 unlink("__db_mpool.share");
18036 unlink("__db_lock.share");
18042 if { (eval echo configure:18043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
18044 ol_cv_berkeley_db_thread=yes
18046 echo "configure: failed program was:" >&5
18047 cat conftest.$ac_ext >&5
18049 ol_cv_berkeley_db_thread=no
18057 if test $ol_cv_berkeley_db_thread != no ; then
18058 cat >> confdefs.h <<\EOF
18059 #define HAVE_BERKELEY_DB_THREAD 1
18066 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18072 if test $ol_cv_berkeley_db != no ; then
18073 cat >> confdefs.h <<\EOF
18074 #define HAVE_BERKELEY_DB 1
18078 ol_link_ldbm=berkeley
18079 ol_with_ldbm_api=berkeley
18081 if test $ol_with_ldbm_type = hash ; then
18082 cat >> confdefs.h <<\EOF
18083 #define LDBM_USE_DBHASH 1
18087 cat >> confdefs.h <<\EOF
18088 #define LDBM_USE_DBBTREE 1
18093 if test $ol_cv_lib_db != yes ; then
18094 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18099 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18100 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18101 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18102 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18103 echo "configure:18104: checking Berkeley DB version for BDB backend" >&5
18104 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18105 echo $ac_n "(cached) $ac_c" 1>&6
18108 cat > conftest.$ac_ext <<EOF
18109 #line 18110 "configure"
18110 #include "confdefs.h"
18114 /* this check could be improved */
18115 #ifndef DB_VERSION_MAJOR
18116 # define DB_VERSION_MAJOR 1
18119 /* require 4.0 or later */
18120 #if DB_VERSION_MAJOR >= 4
18121 __db_version_compat
18125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18126 egrep "__db_version_compat" >/dev/null 2>&1; then
18128 ol_cv_bdb_compat=yes
18131 ol_cv_bdb_compat=no
18137 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18140 if test $ol_cv_bdb_compat = yes ; then
18142 elif test $ol_enable_bdb = yes ; then
18143 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18149 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18150 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18151 ol_with_ldbm_api=none
18154 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18155 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18156 echo "configure:18157: checking for MDBM library" >&5
18157 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18158 echo $ac_n "(cached) $ac_c" 1>&6
18161 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18162 echo "configure:18163: checking for mdbm_set_chain" >&5
18163 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18164 echo $ac_n "(cached) $ac_c" 1>&6
18166 cat > conftest.$ac_ext <<EOF
18167 #line 18168 "configure"
18168 #include "confdefs.h"
18169 /* System header to define __stub macros and hopefully few prototypes,
18170 which can conflict with char mdbm_set_chain(); below. */
18171 #include <assert.h>
18172 /* Override any gcc2 internal prototype to avoid an error. */
18173 /* We use char because int might match the return type of a gcc2
18174 builtin and then its argument prototype would still apply. */
18175 char mdbm_set_chain();
18180 /* The GNU C library defines this for functions which it implements
18181 to always fail with ENOSYS. Some functions are actually named
18182 something starting with __ and the normal name is an alias. */
18183 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18186 f = mdbm_set_chain;
18191 if { (eval echo configure:18192: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18193 eval "ac_cv_func_mdbm_set_chain=yes"
18195 echo "configure: failed program was:" >&5
18196 cat conftest.$ac_ext >&5
18198 eval "ac_cv_func_mdbm_set_chain=no"
18203 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18204 echo "$ac_t""yes" 1>&6
18207 echo "$ac_t""no" 1>&6
18209 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18210 echo "configure:18211: checking for mdbm_set_chain in -lmdbm" >&5
18211 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18212 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18213 echo $ac_n "(cached) $ac_c" 1>&6
18215 ac_save_LIBS="$LIBS"
18216 LIBS="-lmdbm $LIBS"
18217 cat > conftest.$ac_ext <<EOF
18218 #line 18219 "configure"
18219 #include "confdefs.h"
18220 /* Override any gcc2 internal prototype to avoid an error. */
18221 /* We use char because int might match the return type of a gcc2
18222 builtin and then its argument prototype would still apply. */
18223 char mdbm_set_chain();
18229 if { (eval echo configure:18230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18231 eval "ac_cv_lib_$ac_lib_var=yes"
18233 echo "configure: failed program was:" >&5
18234 cat conftest.$ac_ext >&5
18236 eval "ac_cv_lib_$ac_lib_var=no"
18239 LIBS="$ac_save_LIBS"
18242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18243 echo "$ac_t""yes" 1>&6
18244 ol_cv_lib_mdbm=-lmdbm
18246 echo "$ac_t""no" 1>&6
18257 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18260 for ac_hdr in mdbm.h
18262 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18263 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18264 echo "configure:18265: checking for $ac_hdr" >&5
18265 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18266 echo $ac_n "(cached) $ac_c" 1>&6
18268 cat > conftest.$ac_ext <<EOF
18269 #line 18270 "configure"
18270 #include "confdefs.h"
18273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18274 { (eval echo configure:18275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18276 if test -z "$ac_err"; then
18278 eval "ac_cv_header_$ac_safe=yes"
18281 echo "configure: failed program was:" >&5
18282 cat conftest.$ac_ext >&5
18284 eval "ac_cv_header_$ac_safe=no"
18288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18289 echo "$ac_t""yes" 1>&6
18290 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18291 cat >> confdefs.h <<EOF
18292 #define $ac_tr_hdr 1
18296 echo "$ac_t""no" 1>&6
18300 echo $ac_n "checking for db""... $ac_c" 1>&6
18301 echo "configure:18302: checking for db" >&5
18302 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18303 echo $ac_n "(cached) $ac_c" 1>&6
18306 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18314 echo "$ac_t""$ol_cv_mdbm" 1>&6
18315 if test $ol_cv_mdbm = yes ; then
18316 cat >> confdefs.h <<\EOF
18317 #define HAVE_MDBM 1
18323 if test $ol_cv_mdbm = yes ; then
18325 ol_with_ldbm_api=mdbm
18326 if test $ol_cv_lib_mdbm != yes ; then
18327 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18332 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18333 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18334 echo "configure:18335: checking for GDBM library" >&5
18335 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18336 echo $ac_n "(cached) $ac_c" 1>&6
18339 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18340 echo "configure:18341: checking for gdbm_open" >&5
18341 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18342 echo $ac_n "(cached) $ac_c" 1>&6
18344 cat > conftest.$ac_ext <<EOF
18345 #line 18346 "configure"
18346 #include "confdefs.h"
18347 /* System header to define __stub macros and hopefully few prototypes,
18348 which can conflict with char gdbm_open(); below. */
18349 #include <assert.h>
18350 /* Override any gcc2 internal prototype to avoid an error. */
18351 /* We use char because int might match the return type of a gcc2
18352 builtin and then its argument prototype would still apply. */
18358 /* The GNU C library defines this for functions which it implements
18359 to always fail with ENOSYS. Some functions are actually named
18360 something starting with __ and the normal name is an alias. */
18361 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18369 if { (eval echo configure:18370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18371 eval "ac_cv_func_gdbm_open=yes"
18373 echo "configure: failed program was:" >&5
18374 cat conftest.$ac_ext >&5
18376 eval "ac_cv_func_gdbm_open=no"
18381 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18382 echo "$ac_t""yes" 1>&6
18385 echo "$ac_t""no" 1>&6
18387 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18388 echo "configure:18389: checking for gdbm_open in -lgdbm" >&5
18389 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18390 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18391 echo $ac_n "(cached) $ac_c" 1>&6
18393 ac_save_LIBS="$LIBS"
18394 LIBS="-lgdbm $LIBS"
18395 cat > conftest.$ac_ext <<EOF
18396 #line 18397 "configure"
18397 #include "confdefs.h"
18398 /* Override any gcc2 internal prototype to avoid an error. */
18399 /* We use char because int might match the return type of a gcc2
18400 builtin and then its argument prototype would still apply. */
18407 if { (eval echo configure:18408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18409 eval "ac_cv_lib_$ac_lib_var=yes"
18411 echo "configure: failed program was:" >&5
18412 cat conftest.$ac_ext >&5
18414 eval "ac_cv_lib_$ac_lib_var=no"
18417 LIBS="$ac_save_LIBS"
18420 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18421 echo "$ac_t""yes" 1>&6
18422 ol_cv_lib_gdbm=-lgdbm
18424 echo "$ac_t""no" 1>&6
18435 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18438 for ac_hdr in gdbm.h
18440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18442 echo "configure:18443: checking for $ac_hdr" >&5
18443 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18444 echo $ac_n "(cached) $ac_c" 1>&6
18446 cat > conftest.$ac_ext <<EOF
18447 #line 18448 "configure"
18448 #include "confdefs.h"
18451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18452 { (eval echo configure:18453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18454 if test -z "$ac_err"; then
18456 eval "ac_cv_header_$ac_safe=yes"
18459 echo "configure: failed program was:" >&5
18460 cat conftest.$ac_ext >&5
18462 eval "ac_cv_header_$ac_safe=no"
18466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18467 echo "$ac_t""yes" 1>&6
18468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18469 cat >> confdefs.h <<EOF
18470 #define $ac_tr_hdr 1
18474 echo "$ac_t""no" 1>&6
18478 echo $ac_n "checking for db""... $ac_c" 1>&6
18479 echo "configure:18480: checking for db" >&5
18480 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18481 echo $ac_n "(cached) $ac_c" 1>&6
18484 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18492 echo "$ac_t""$ol_cv_gdbm" 1>&6
18493 if test $ol_cv_gdbm = yes ; then
18494 cat >> confdefs.h <<\EOF
18495 #define HAVE_GDBM 1
18501 if test $ol_cv_gdbm = yes ; then
18503 ol_with_ldbm_api=gdbm
18505 if test $ol_cv_lib_gdbm != yes ; then
18506 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18511 if test $ol_with_ldbm_api = ndbm ; then
18512 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18513 echo "configure:18514: checking for NDBM library" >&5
18514 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18515 echo $ac_n "(cached) $ac_c" 1>&6
18518 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18519 echo "configure:18520: checking for dbm_open" >&5
18520 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18521 echo $ac_n "(cached) $ac_c" 1>&6
18523 cat > conftest.$ac_ext <<EOF
18524 #line 18525 "configure"
18525 #include "confdefs.h"
18526 /* System header to define __stub macros and hopefully few prototypes,
18527 which can conflict with char dbm_open(); below. */
18528 #include <assert.h>
18529 /* Override any gcc2 internal prototype to avoid an error. */
18530 /* We use char because int might match the return type of a gcc2
18531 builtin and then its argument prototype would still apply. */
18537 /* The GNU C library defines this for functions which it implements
18538 to always fail with ENOSYS. Some functions are actually named
18539 something starting with __ and the normal name is an alias. */
18540 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18548 if { (eval echo configure:18549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18550 eval "ac_cv_func_dbm_open=yes"
18552 echo "configure: failed program was:" >&5
18553 cat conftest.$ac_ext >&5
18555 eval "ac_cv_func_dbm_open=no"
18560 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18561 echo "$ac_t""yes" 1>&6
18564 echo "$ac_t""no" 1>&6
18566 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18567 echo "configure:18568: checking for dbm_open in -lndbm" >&5
18568 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18569 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18570 echo $ac_n "(cached) $ac_c" 1>&6
18572 ac_save_LIBS="$LIBS"
18573 LIBS="-lndbm $LIBS"
18574 cat > conftest.$ac_ext <<EOF
18575 #line 18576 "configure"
18576 #include "confdefs.h"
18577 /* Override any gcc2 internal prototype to avoid an error. */
18578 /* We use char because int might match the return type of a gcc2
18579 builtin and then its argument prototype would still apply. */
18586 if { (eval echo configure:18587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18588 eval "ac_cv_lib_$ac_lib_var=yes"
18590 echo "configure: failed program was:" >&5
18591 cat conftest.$ac_ext >&5
18593 eval "ac_cv_lib_$ac_lib_var=no"
18596 LIBS="$ac_save_LIBS"
18599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18600 echo "$ac_t""yes" 1>&6
18601 ol_cv_lib_ndbm=-lndbm
18603 echo "$ac_t""no" 1>&6
18605 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18606 echo "configure:18607: checking for dbm_open in -ldbm" >&5
18607 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18608 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18609 echo $ac_n "(cached) $ac_c" 1>&6
18611 ac_save_LIBS="$LIBS"
18613 cat > conftest.$ac_ext <<EOF
18614 #line 18615 "configure"
18615 #include "confdefs.h"
18616 /* Override any gcc2 internal prototype to avoid an error. */
18617 /* We use char because int might match the return type of a gcc2
18618 builtin and then its argument prototype would still apply. */
18625 if { (eval echo configure:18626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18627 eval "ac_cv_lib_$ac_lib_var=yes"
18629 echo "configure: failed program was:" >&5
18630 cat conftest.$ac_ext >&5
18632 eval "ac_cv_lib_$ac_lib_var=no"
18635 LIBS="$ac_save_LIBS"
18638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18639 echo "$ac_t""yes" 1>&6
18640 ol_cv_lib_ndbm=-ldbm
18642 echo "$ac_t""no" 1>&6
18655 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18658 for ac_hdr in ndbm.h
18660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18662 echo "configure:18663: checking for $ac_hdr" >&5
18663 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18664 echo $ac_n "(cached) $ac_c" 1>&6
18666 cat > conftest.$ac_ext <<EOF
18667 #line 18668 "configure"
18668 #include "confdefs.h"
18671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18672 { (eval echo configure:18673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18674 if test -z "$ac_err"; then
18676 eval "ac_cv_header_$ac_safe=yes"
18679 echo "configure: failed program was:" >&5
18680 cat conftest.$ac_ext >&5
18682 eval "ac_cv_header_$ac_safe=no"
18686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18687 echo "$ac_t""yes" 1>&6
18688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18689 cat >> confdefs.h <<EOF
18690 #define $ac_tr_hdr 1
18694 echo "$ac_t""no" 1>&6
18698 echo $ac_n "checking for db""... $ac_c" 1>&6
18699 echo "configure:18700: checking for db" >&5
18700 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18701 echo $ac_n "(cached) $ac_c" 1>&6
18704 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18712 echo "$ac_t""$ol_cv_ndbm" 1>&6
18713 if test $ol_cv_ndbm = yes ; then
18714 cat >> confdefs.h <<\EOF
18715 #define HAVE_NDBM 1
18721 if test $ol_cv_ndbm = yes ; then
18723 ol_with_ldbm_api=ndbm
18725 if test $ol_cv_lib_ndbm != yes ; then
18726 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18731 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18732 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18733 if test $ol_enable_ldbm = yes ; then
18734 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18737 echo "configure: warning: disabling LDBM" 1>&2
18741 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18742 BUILD_LIBS_DYNAMIC=shared
18743 cat >> confdefs.h <<\EOF
18744 #define LDAP_LIBS_DYNAMIC 1
18748 BUILD_LIBS_DYNAMIC=static
18751 if test $ol_enable_wrappers != no ; then
18752 for ac_hdr in tcpd.h
18754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18756 echo "configure:18757: checking for $ac_hdr" >&5
18757 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18758 echo $ac_n "(cached) $ac_c" 1>&6
18760 cat > conftest.$ac_ext <<EOF
18761 #line 18762 "configure"
18762 #include "confdefs.h"
18765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18766 { (eval echo configure:18767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18768 if test -z "$ac_err"; then
18770 eval "ac_cv_header_$ac_safe=yes"
18773 echo "configure: failed program was:" >&5
18774 cat conftest.$ac_ext >&5
18776 eval "ac_cv_header_$ac_safe=no"
18780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18781 echo "$ac_t""yes" 1>&6
18782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18783 cat >> confdefs.h <<EOF
18784 #define $ac_tr_hdr 1
18787 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18788 echo "configure:18789: checking for TCP wrappers library" >&5
18790 LIBS="$LIBS -lwrap"
18791 cat > conftest.$ac_ext <<EOF
18792 #line 18793 "configure"
18793 #include "confdefs.h"
18796 int allow_severity = 0;
18797 int deny_severity = 0;
18799 struct request_info *req;
18807 if { (eval echo configure:18808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18809 echo "$ac_t""-lwrap" 1>&6
18813 echo "configure: failed program was:" >&5
18814 cat conftest.$ac_ext >&5
18818 cat > conftest.$ac_ext <<EOF
18819 #line 18820 "configure"
18820 #include "confdefs.h"
18823 int allow_severity = 0;
18824 int deny_severity = 0;
18826 struct request_info *req;
18834 if { (eval echo configure:18835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18836 echo "$ac_t""-lwrap -lnsl" 1>&6
18838 LIBS="$save_LIBS -lnsl"
18840 echo "configure: failed program was:" >&5
18841 cat conftest.$ac_ext >&5
18844 echo "$ac_t""no" 1>&6
18852 echo "$ac_t""no" 1>&6
18858 if test $have_wrappers = yes ; then
18859 cat >> confdefs.h <<\EOF
18860 #define HAVE_TCPD 1
18864 elif test $ol_enable_wrappers = yes ; then
18865 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
18867 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
18872 if test $ol_enable_syslog != no ; then
18873 echo $ac_n "checking for openlog""... $ac_c" 1>&6
18874 echo "configure:18875: checking for openlog" >&5
18875 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
18876 echo $ac_n "(cached) $ac_c" 1>&6
18878 cat > conftest.$ac_ext <<EOF
18879 #line 18880 "configure"
18880 #include "confdefs.h"
18881 /* System header to define __stub macros and hopefully few prototypes,
18882 which can conflict with char openlog(); below. */
18883 #include <assert.h>
18884 /* Override any gcc2 internal prototype to avoid an error. */
18885 /* We use char because int might match the return type of a gcc2
18886 builtin and then its argument prototype would still apply. */
18892 /* The GNU C library defines this for functions which it implements
18893 to always fail with ENOSYS. Some functions are actually named
18894 something starting with __ and the normal name is an alias. */
18895 #if defined (__stub_openlog) || defined (__stub___openlog)
18903 if { (eval echo configure:18904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18905 eval "ac_cv_func_openlog=yes"
18907 echo "configure: failed program was:" >&5
18908 cat conftest.$ac_ext >&5
18910 eval "ac_cv_func_openlog=no"
18915 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
18916 echo "$ac_t""yes" 1>&6
18919 echo "$ac_t""no" 1>&6
18922 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
18923 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
18925 ol_enable_syslog=$ac_cv_func_openlog
18930 if test $ol_enable_sql != no ; then
18931 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
18932 echo "configure:18933: checking for SQLDriverConnect in -liodbc" >&5
18933 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18935 echo $ac_n "(cached) $ac_c" 1>&6
18937 ac_save_LIBS="$LIBS"
18938 LIBS="-liodbc $LIBS"
18939 cat > conftest.$ac_ext <<EOF
18940 #line 18941 "configure"
18941 #include "confdefs.h"
18942 /* Override any gcc2 internal prototype to avoid an error. */
18943 /* We use char because int might match the return type of a gcc2
18944 builtin and then its argument prototype would still apply. */
18945 char SQLDriverConnect();
18951 if { (eval echo configure:18952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18953 eval "ac_cv_lib_$ac_lib_var=yes"
18955 echo "configure: failed program was:" >&5
18956 cat conftest.$ac_ext >&5
18958 eval "ac_cv_lib_$ac_lib_var=no"
18961 LIBS="$ac_save_LIBS"
18964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18965 echo "$ac_t""yes" 1>&6
18968 echo "$ac_t""no" 1>&6
18972 if test $have_iodbc = yes ; then
18973 ol_link_sql="-liodbc"
18975 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
18976 echo "configure:18977: checking for SQLDriverConnect in -lodbc" >&5
18977 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18978 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18979 echo $ac_n "(cached) $ac_c" 1>&6
18981 ac_save_LIBS="$LIBS"
18982 LIBS="-lodbc $LIBS"
18983 cat > conftest.$ac_ext <<EOF
18984 #line 18985 "configure"
18985 #include "confdefs.h"
18986 /* Override any gcc2 internal prototype to avoid an error. */
18987 /* We use char because int might match the return type of a gcc2
18988 builtin and then its argument prototype would still apply. */
18989 char SQLDriverConnect();
18995 if { (eval echo configure:18996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18997 eval "ac_cv_lib_$ac_lib_var=yes"
18999 echo "configure: failed program was:" >&5
19000 cat conftest.$ac_ext >&5
19002 eval "ac_cv_lib_$ac_lib_var=no"
19005 LIBS="$ac_save_LIBS"
19008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19009 echo "$ac_t""yes" 1>&6
19012 echo "$ac_t""no" 1>&6
19016 if test $have_odbc = yes ; then
19017 ol_link_sql="-lodbc"
19021 if test $ol_link_sql != no ; then
19022 SLAPD_SQL_LIBS="$ol_link_sql"
19024 elif test $ol_enable_sql != auto ; then
19025 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
19029 if test $ol_enable_tcl != no ; then
19030 for ac_hdr in tcl.h
19032 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19033 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19034 echo "configure:19035: checking for $ac_hdr" >&5
19035 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19036 echo $ac_n "(cached) $ac_c" 1>&6
19038 cat > conftest.$ac_ext <<EOF
19039 #line 19040 "configure"
19040 #include "confdefs.h"
19043 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19044 { (eval echo configure:19045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19045 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19046 if test -z "$ac_err"; then
19048 eval "ac_cv_header_$ac_safe=yes"
19051 echo "configure: failed program was:" >&5
19052 cat conftest.$ac_ext >&5
19054 eval "ac_cv_header_$ac_safe=no"
19058 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19059 echo "$ac_t""yes" 1>&6
19060 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19061 cat >> confdefs.h <<EOF
19062 #define $ac_tr_hdr 1
19066 echo "$ac_t""no" 1>&6
19071 if test $ac_cv_header_tcl_h != yes ; then
19074 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19075 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19076 echo "configure:19077: checking for main in -l$lib" >&5
19077 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19078 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19079 echo $ac_n "(cached) $ac_c" 1>&6
19081 ac_save_LIBS="$LIBS"
19082 LIBS="-l$lib $LIBS"
19083 cat > conftest.$ac_ext <<EOF
19084 #line 19085 "configure"
19085 #include "confdefs.h"
19091 if { (eval echo configure:19092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19093 eval "ac_cv_lib_$ac_lib_var=yes"
19095 echo "configure: failed program was:" >&5
19096 cat conftest.$ac_ext >&5
19098 eval "ac_cv_lib_$ac_lib_var=no"
19101 LIBS="$ac_save_LIBS"
19104 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19105 echo "$ac_t""yes" 1>&6
19107 if test x"$ol_with_tcl_module" = "xstatic" ; then
19108 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19110 MOD_TCL_LIB="-l${lib}"
19113 echo "$ac_t""no" 1>&6
19120 if test $have_tcl != yes ; then
19121 echo "configure: warning: could not find -ltcl" 1>&2
19122 if test $ol_enable_tcl = yes ; then
19123 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19131 for ac_hdr in termcap.h ncurses.h
19133 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19134 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19135 echo "configure:19136: checking for $ac_hdr" >&5
19136 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19137 echo $ac_n "(cached) $ac_c" 1>&6
19139 cat > conftest.$ac_ext <<EOF
19140 #line 19141 "configure"
19141 #include "confdefs.h"
19144 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19145 { (eval echo configure:19146: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19146 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19147 if test -z "$ac_err"; then
19149 eval "ac_cv_header_$ac_safe=yes"
19152 echo "configure: failed program was:" >&5
19153 cat conftest.$ac_ext >&5
19155 eval "ac_cv_header_$ac_safe=no"
19159 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19160 echo "$ac_t""yes" 1>&6
19161 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19162 cat >> confdefs.h <<EOF
19163 #define $ac_tr_hdr 1
19167 echo "$ac_t""no" 1>&6
19172 if test $ol_link_termcap = no ; then
19173 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19174 echo "configure:19175: checking for tputs in -ltermcap" >&5
19175 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19177 echo $ac_n "(cached) $ac_c" 1>&6
19179 ac_save_LIBS="$LIBS"
19180 LIBS="-ltermcap $LIBS"
19181 cat > conftest.$ac_ext <<EOF
19182 #line 19183 "configure"
19183 #include "confdefs.h"
19184 /* Override any gcc2 internal prototype to avoid an error. */
19185 /* We use char because int might match the return type of a gcc2
19186 builtin and then its argument prototype would still apply. */
19193 if { (eval echo configure:19194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19195 eval "ac_cv_lib_$ac_lib_var=yes"
19197 echo "configure: failed program was:" >&5
19198 cat conftest.$ac_ext >&5
19200 eval "ac_cv_lib_$ac_lib_var=no"
19203 LIBS="$ac_save_LIBS"
19206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19207 echo "$ac_t""yes" 1>&6
19210 echo "$ac_t""no" 1>&6
19214 if test $have_termcap = yes ; then
19215 cat >> confdefs.h <<\EOF
19216 #define HAVE_TERMCAP 1
19219 ol_link_termcap=yes
19220 TERMCAP_LIBS=-ltermcap
19224 if test $ol_link_termcap = no ; then
19225 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19226 echo "configure:19227: checking for initscr in -lncurses" >&5
19227 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19228 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19229 echo $ac_n "(cached) $ac_c" 1>&6
19231 ac_save_LIBS="$LIBS"
19232 LIBS="-lncurses $LIBS"
19233 cat > conftest.$ac_ext <<EOF
19234 #line 19235 "configure"
19235 #include "confdefs.h"
19236 /* Override any gcc2 internal prototype to avoid an error. */
19237 /* We use char because int might match the return type of a gcc2
19238 builtin and then its argument prototype would still apply. */
19245 if { (eval echo configure:19246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19247 eval "ac_cv_lib_$ac_lib_var=yes"
19249 echo "configure: failed program was:" >&5
19250 cat conftest.$ac_ext >&5
19252 eval "ac_cv_lib_$ac_lib_var=no"
19255 LIBS="$ac_save_LIBS"
19258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19259 echo "$ac_t""yes" 1>&6
19262 echo "$ac_t""no" 1>&6
19266 if test $have_ncurses = yes ; then
19267 cat >> confdefs.h <<\EOF
19268 #define HAVE_NCURSES 1
19271 ol_link_termcap=yes
19272 TERMCAP_LIBS=-lncurses
19276 if test $ol_link_termcap = no ; then
19277 cat >> confdefs.h <<\EOF
19278 #define NO_TERMCAP 1
19286 if test $ol_with_cyrus_sasl != no ; then
19287 for ac_hdr in sasl.h
19289 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19290 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19291 echo "configure:19292: checking for $ac_hdr" >&5
19292 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19293 echo $ac_n "(cached) $ac_c" 1>&6
19295 cat > conftest.$ac_ext <<EOF
19296 #line 19297 "configure"
19297 #include "confdefs.h"
19300 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19301 { (eval echo configure:19302: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19302 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19303 if test -z "$ac_err"; then
19305 eval "ac_cv_header_$ac_safe=yes"
19308 echo "configure: failed program was:" >&5
19309 cat conftest.$ac_ext >&5
19311 eval "ac_cv_header_$ac_safe=no"
19315 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19316 echo "$ac_t""yes" 1>&6
19317 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19318 cat >> confdefs.h <<EOF
19319 #define $ac_tr_hdr 1
19323 echo "$ac_t""no" 1>&6
19328 if test $ac_cv_header_sasl_h = yes ; then
19329 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19330 echo "configure:19331: checking for sasl_client_init in -lsasl" >&5
19331 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19332 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19333 echo $ac_n "(cached) $ac_c" 1>&6
19335 ac_save_LIBS="$LIBS"
19336 LIBS="-lsasl $LIBS"
19337 cat > conftest.$ac_ext <<EOF
19338 #line 19339 "configure"
19339 #include "confdefs.h"
19340 /* Override any gcc2 internal prototype to avoid an error. */
19341 /* We use char because int might match the return type of a gcc2
19342 builtin and then its argument prototype would still apply. */
19343 char sasl_client_init();
19349 if { (eval echo configure:19350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19351 eval "ac_cv_lib_$ac_lib_var=yes"
19353 echo "configure: failed program was:" >&5
19354 cat conftest.$ac_ext >&5
19356 eval "ac_cv_lib_$ac_lib_var=no"
19359 LIBS="$ac_save_LIBS"
19362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19363 echo "$ac_t""yes" 1>&6
19364 have_cyrus_sasl=yes
19366 echo "$ac_t""no" 1>&6
19371 if test $have_cyrus_sasl != no ; then
19373 cat >> confdefs.h <<\EOF
19374 #define HAVE_CYRUS_SASL 1
19381 if test $ol_link_sasl = no ; then
19382 if test $ol_with_cyrus_sasl != auto ; then
19383 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19385 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19386 echo "configure: warning: SASL authentication not supported!" 1>&2
19387 if test $ol_link_tls = no ; then
19388 echo "configure: warning: Strong authentication not supported!" 1>&2
19392 elif test $ol_enable_spasswd != no ; then
19393 ol_link_spasswd=yes
19397 echo "configure: warning: SASL authentication not supported!" 1>&2
19398 if test $ol_link_tls = no ; then
19399 echo "configure: warning: Strong authentication not supported!" 1>&2
19403 if test $cross_compiling != yes -a $ac_cv_mingw32 != yes ; then
19405 if test -r /dev/urandom ; then
19406 dev="/dev/urandom";
19407 elif test -r /idev/urandom ; then
19408 dev="/idev/urandom";
19409 elif test -r /dev/srandom ; then
19410 dev="/dev/srandom";
19411 elif test -r /dev/random ; then
19413 elif test -r /idev/random ; then
19414 dev="/idev/random";
19417 if test $dev != no ; then
19418 cat >> confdefs.h <<EOF
19419 #define URANDOM_DEVICE "$dev"
19426 if test $ol_with_fetch != no ; then
19428 LIBS="-lfetch -lcom_err $LIBS"
19429 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19430 echo "configure:19431: checking fetch(3) library" >&5
19431 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19432 echo $ac_n "(cached) $ac_c" 1>&6
19435 cat > conftest.$ac_ext <<EOF
19436 #line 19437 "configure"
19437 #include "confdefs.h"
19439 #include <sys/param.h>
19443 struct url *u = fetchParseURL("file:///");
19446 if { (eval echo configure:19447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19448 ol_cv_lib_fetch=yes
19450 echo "configure: failed program was:" >&5
19451 cat conftest.$ac_ext >&5
19458 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19460 if test $ol_cv_lib_fetch != no ; then
19461 ol_link_fetch="-lfetch -lcom_err"
19462 cat >> confdefs.h <<\EOF
19463 #define HAVE_FETCH 1
19469 if test $ol_cv_lib_fetch != no ; then
19470 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19471 ol_link_fetch=freebsd
19473 elif test $ol_with_fetch != auto ; then
19474 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19478 ol_link_readline=no
19479 if test $ol_with_readline != no ; then
19480 for ac_hdr in readline/readline.h readline/history.h
19482 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19483 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19484 echo "configure:19485: checking for $ac_hdr" >&5
19485 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19486 echo $ac_n "(cached) $ac_c" 1>&6
19488 cat > conftest.$ac_ext <<EOF
19489 #line 19490 "configure"
19490 #include "confdefs.h"
19493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19494 { (eval echo configure:19495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19496 if test -z "$ac_err"; then
19498 eval "ac_cv_header_$ac_safe=yes"
19501 echo "configure: failed program was:" >&5
19502 cat conftest.$ac_ext >&5
19504 eval "ac_cv_header_$ac_safe=no"
19508 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19509 echo "$ac_t""yes" 1>&6
19510 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19511 cat >> confdefs.h <<EOF
19512 #define $ac_tr_hdr 1
19516 echo "$ac_t""no" 1>&6
19521 if test $ac_cv_header_readline_readline_h = yes ; then
19523 LIBS="$TERMCAP_LIBS $LIBS"
19524 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19525 echo "configure:19526: checking for readline in -lreadline" >&5
19526 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19527 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19528 echo $ac_n "(cached) $ac_c" 1>&6
19530 ac_save_LIBS="$LIBS"
19531 LIBS="-lreadline $LIBS"
19532 cat > conftest.$ac_ext <<EOF
19533 #line 19534 "configure"
19534 #include "confdefs.h"
19535 /* Override any gcc2 internal prototype to avoid an error. */
19536 /* We use char because int might match the return type of a gcc2
19537 builtin and then its argument prototype would still apply. */
19544 if { (eval echo configure:19545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19546 eval "ac_cv_lib_$ac_lib_var=yes"
19548 echo "configure: failed program was:" >&5
19549 cat conftest.$ac_ext >&5
19551 eval "ac_cv_lib_$ac_lib_var=no"
19554 LIBS="$ac_save_LIBS"
19557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19558 echo "$ac_t""yes" 1>&6
19561 echo "$ac_t""no" 1>&6
19567 if test $have_readline = yes ; then
19568 ol_with_readline=found
19569 ol_link_readline=yes
19571 READLINE_LIBS="-lreadline"
19576 if test $ol_link_readline = yes ; then
19577 cat >> confdefs.h <<\EOF
19578 #define HAVE_READLINE 1
19584 if test $ol_enable_crypt != no ; then
19585 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19586 echo "configure:19587: checking for crypt" >&5
19587 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19588 echo $ac_n "(cached) $ac_c" 1>&6
19590 cat > conftest.$ac_ext <<EOF
19591 #line 19592 "configure"
19592 #include "confdefs.h"
19593 /* System header to define __stub macros and hopefully few prototypes,
19594 which can conflict with char crypt(); below. */
19595 #include <assert.h>
19596 /* Override any gcc2 internal prototype to avoid an error. */
19597 /* We use char because int might match the return type of a gcc2
19598 builtin and then its argument prototype would still apply. */
19604 /* The GNU C library defines this for functions which it implements
19605 to always fail with ENOSYS. Some functions are actually named
19606 something starting with __ and the normal name is an alias. */
19607 #if defined (__stub_crypt) || defined (__stub___crypt)
19615 if { (eval echo configure:19616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19617 eval "ac_cv_func_crypt=yes"
19619 echo "configure: failed program was:" >&5
19620 cat conftest.$ac_ext >&5
19622 eval "ac_cv_func_crypt=no"
19627 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19628 echo "$ac_t""yes" 1>&6
19631 echo "$ac_t""no" 1>&6
19633 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19634 echo "configure:19635: checking for crypt in -lcrypt" >&5
19635 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19636 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19637 echo $ac_n "(cached) $ac_c" 1>&6
19639 ac_save_LIBS="$LIBS"
19640 LIBS="-lcrypt $LIBS"
19641 cat > conftest.$ac_ext <<EOF
19642 #line 19643 "configure"
19643 #include "confdefs.h"
19644 /* Override any gcc2 internal prototype to avoid an error. */
19645 /* We use char because int might match the return type of a gcc2
19646 builtin and then its argument prototype would still apply. */
19653 if { (eval echo configure:19654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19655 eval "ac_cv_lib_$ac_lib_var=yes"
19657 echo "configure: failed program was:" >&5
19658 cat conftest.$ac_ext >&5
19660 eval "ac_cv_lib_$ac_lib_var=no"
19663 LIBS="$ac_save_LIBS"
19666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19667 echo "$ac_t""yes" 1>&6
19668 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19671 echo "$ac_t""no" 1>&6
19678 if test $have_crypt = yes ; then
19679 cat >> confdefs.h <<\EOF
19680 #define HAVE_CRYPT 1
19684 echo "configure: warning: could not find crypt" 1>&2
19685 if test $ol_enable_crypt = yes ; then
19686 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19689 echo "configure: warning: disabling crypt support" 1>&2
19694 if test $ol_enable_proctitle != no ; then
19695 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19696 echo "configure:19697: checking for setproctitle" >&5
19697 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19698 echo $ac_n "(cached) $ac_c" 1>&6
19700 cat > conftest.$ac_ext <<EOF
19701 #line 19702 "configure"
19702 #include "confdefs.h"
19703 /* System header to define __stub macros and hopefully few prototypes,
19704 which can conflict with char setproctitle(); below. */
19705 #include <assert.h>
19706 /* Override any gcc2 internal prototype to avoid an error. */
19707 /* We use char because int might match the return type of a gcc2
19708 builtin and then its argument prototype would still apply. */
19709 char setproctitle();
19714 /* The GNU C library defines this for functions which it implements
19715 to always fail with ENOSYS. Some functions are actually named
19716 something starting with __ and the normal name is an alias. */
19717 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19725 if { (eval echo configure:19726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19727 eval "ac_cv_func_setproctitle=yes"
19729 echo "configure: failed program was:" >&5
19730 cat conftest.$ac_ext >&5
19732 eval "ac_cv_func_setproctitle=no"
19737 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19738 echo "$ac_t""yes" 1>&6
19739 have_setproctitle=yes
19741 echo "$ac_t""no" 1>&6
19743 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19744 echo "configure:19745: checking for setproctitle in -lutil" >&5
19745 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
19746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19747 echo $ac_n "(cached) $ac_c" 1>&6
19749 ac_save_LIBS="$LIBS"
19750 LIBS="-lutil $LIBS"
19751 cat > conftest.$ac_ext <<EOF
19752 #line 19753 "configure"
19753 #include "confdefs.h"
19754 /* Override any gcc2 internal prototype to avoid an error. */
19755 /* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
19757 char setproctitle();
19763 if { (eval echo configure:19764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19765 eval "ac_cv_lib_$ac_lib_var=yes"
19767 echo "configure: failed program was:" >&5
19768 cat conftest.$ac_ext >&5
19770 eval "ac_cv_lib_$ac_lib_var=no"
19773 LIBS="$ac_save_LIBS"
19776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19777 echo "$ac_t""yes" 1>&6
19778 have_setproctitle=yes
19779 LUTIL_LIBS="$LUTIL_LIBS -lutil"
19781 echo "$ac_t""no" 1>&6
19782 have_setproctitle=no
19783 LIBOBJS="$LIBOBJS setproctitle.o"
19784 LIBSRCS="$LIBSRCS setproctitle.c"
19790 if test $have_setproctitle = yes ; then
19791 cat >> confdefs.h <<\EOF
19792 #define HAVE_SETPROCTITLE 1
19798 if test $ol_enable_slp != no ; then
19799 for ac_hdr in slp.h
19801 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19802 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19803 echo "configure:19804: checking for $ac_hdr" >&5
19804 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19805 echo $ac_n "(cached) $ac_c" 1>&6
19807 cat > conftest.$ac_ext <<EOF
19808 #line 19809 "configure"
19809 #include "confdefs.h"
19812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19813 { (eval echo configure:19814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19815 if test -z "$ac_err"; then
19817 eval "ac_cv_header_$ac_safe=yes"
19820 echo "configure: failed program was:" >&5
19821 cat conftest.$ac_ext >&5
19823 eval "ac_cv_header_$ac_safe=no"
19827 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19828 echo "$ac_t""yes" 1>&6
19829 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19830 cat >> confdefs.h <<EOF
19831 #define $ac_tr_hdr 1
19835 echo "$ac_t""no" 1>&6
19840 if test $ac_cv_header_slp_h = yes ; then
19841 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
19842 echo "configure:19843: checking for SLPOpen in -lslp" >&5
19843 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
19844 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19845 echo $ac_n "(cached) $ac_c" 1>&6
19847 ac_save_LIBS="$LIBS"
19849 cat > conftest.$ac_ext <<EOF
19850 #line 19851 "configure"
19851 #include "confdefs.h"
19852 /* Override any gcc2 internal prototype to avoid an error. */
19853 /* We use char because int might match the return type of a gcc2
19854 builtin and then its argument prototype would still apply. */
19861 if { (eval echo configure:19862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19863 eval "ac_cv_lib_$ac_lib_var=yes"
19865 echo "configure: failed program was:" >&5
19866 cat conftest.$ac_ext >&5
19868 eval "ac_cv_lib_$ac_lib_var=no"
19871 LIBS="$ac_save_LIBS"
19874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19875 echo "$ac_t""yes" 1>&6
19878 echo "$ac_t""no" 1>&6
19882 if test $have_slp = yes ; then
19883 cat >> confdefs.h <<\EOF
19887 SLAPD_SLP_LIBS=-lslp
19890 elif test $ol_enable_slp = yes ; then
19891 { echo "configure: error: SLP not found" 1>&2; exit 1; }
19895 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
19896 echo "configure:19897: checking for ANSI C header files" >&5
19897 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
19898 echo $ac_n "(cached) $ac_c" 1>&6
19900 cat > conftest.$ac_ext <<EOF
19901 #line 19902 "configure"
19902 #include "confdefs.h"
19903 #include <stdlib.h>
19904 #include <stdarg.h>
19905 #include <string.h>
19908 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19909 { (eval echo configure:19910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19910 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19911 if test -z "$ac_err"; then
19913 ac_cv_header_stdc=yes
19916 echo "configure: failed program was:" >&5
19917 cat conftest.$ac_ext >&5
19919 ac_cv_header_stdc=no
19923 if test $ac_cv_header_stdc = yes; then
19924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19925 cat > conftest.$ac_ext <<EOF
19926 #line 19927 "configure"
19927 #include "confdefs.h"
19928 #include <string.h>
19930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19931 egrep "memchr" >/dev/null 2>&1; then
19935 ac_cv_header_stdc=no
19941 if test $ac_cv_header_stdc = yes; then
19942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19943 cat > conftest.$ac_ext <<EOF
19944 #line 19945 "configure"
19945 #include "confdefs.h"
19946 #include <stdlib.h>
19948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19949 egrep "free" >/dev/null 2>&1; then
19953 ac_cv_header_stdc=no
19959 if test $ac_cv_header_stdc = yes; then
19960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19961 if test "$cross_compiling" = yes; then
19964 cat > conftest.$ac_ext <<EOF
19965 #line 19966 "configure"
19966 #include "confdefs.h"
19968 #if ((' ' & 0x0FF) == 0x020)
19969 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19970 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19972 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
19973 || ('j' <= (c) && (c) <= 'r') \
19974 || ('s' <= (c) && (c) <= 'z'))
19975 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19977 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19978 int main () { int i; for (i = 0; i < 256; i++)
19979 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
19983 if { (eval echo configure:19984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19987 echo "configure: failed program was:" >&5
19988 cat conftest.$ac_ext >&5
19990 ac_cv_header_stdc=no
19998 echo "$ac_t""$ac_cv_header_stdc" 1>&6
19999 if test $ac_cv_header_stdc = yes; then
20000 cat >> confdefs.h <<\EOF
20001 #define STDC_HEADERS 1
20006 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
20007 echo "configure:20008: checking for mode_t" >&5
20008 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
20009 echo $ac_n "(cached) $ac_c" 1>&6
20011 cat > conftest.$ac_ext <<EOF
20012 #line 20013 "configure"
20013 #include "confdefs.h"
20014 #include <sys/types.h>
20016 #include <stdlib.h>
20017 #include <stddef.h>
20021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20022 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20024 eval "ac_cv_type_mode_t=yes"
20027 eval "ac_cv_type_mode_t=no"
20032 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20033 echo "$ac_t""yes" 1>&6
20035 echo "$ac_t""no" 1>&6
20036 cat >> confdefs.h <<EOF
20042 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20043 echo "configure:20044: checking for off_t" >&5
20044 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20045 echo $ac_n "(cached) $ac_c" 1>&6
20047 cat > conftest.$ac_ext <<EOF
20048 #line 20049 "configure"
20049 #include "confdefs.h"
20050 #include <sys/types.h>
20052 #include <stdlib.h>
20053 #include <stddef.h>
20057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20058 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20060 eval "ac_cv_type_off_t=yes"
20063 eval "ac_cv_type_off_t=no"
20068 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20069 echo "$ac_t""yes" 1>&6
20071 echo "$ac_t""no" 1>&6
20072 cat >> confdefs.h <<EOF
20078 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20079 echo "configure:20080: checking for pid_t" >&5
20080 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20081 echo $ac_n "(cached) $ac_c" 1>&6
20083 cat > conftest.$ac_ext <<EOF
20084 #line 20085 "configure"
20085 #include "confdefs.h"
20086 #include <sys/types.h>
20088 #include <stdlib.h>
20089 #include <stddef.h>
20093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20094 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20096 eval "ac_cv_type_pid_t=yes"
20099 eval "ac_cv_type_pid_t=no"
20104 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20105 echo "$ac_t""yes" 1>&6
20107 echo "$ac_t""no" 1>&6
20108 cat >> confdefs.h <<EOF
20114 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20115 echo "configure:20116: checking for ptrdiff_t" >&5
20116 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20117 echo $ac_n "(cached) $ac_c" 1>&6
20119 cat > conftest.$ac_ext <<EOF
20120 #line 20121 "configure"
20121 #include "confdefs.h"
20122 #include <stddef.h>
20127 if { (eval echo configure:20128: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20129 am_cv_type_ptrdiff_t=yes
20131 echo "configure: failed program was:" >&5
20132 cat conftest.$ac_ext >&5
20134 am_cv_type_ptrdiff_t=no
20139 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20140 if test $am_cv_type_ptrdiff_t = yes; then
20141 cat >> confdefs.h <<\EOF
20142 #define HAVE_PTRDIFF_T 1
20147 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20148 echo "configure:20149: checking return type of signal handlers" >&5
20149 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20150 echo $ac_n "(cached) $ac_c" 1>&6
20152 cat > conftest.$ac_ext <<EOF
20153 #line 20154 "configure"
20154 #include "confdefs.h"
20155 #include <sys/types.h>
20156 #include <signal.h>
20161 extern "C" void (*signal (int, void (*)(int)))(int);
20163 void (*signal ()) ();
20170 if { (eval echo configure:20171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20172 ac_cv_type_signal=void
20174 echo "configure: failed program was:" >&5
20175 cat conftest.$ac_ext >&5
20177 ac_cv_type_signal=int
20182 echo "$ac_t""$ac_cv_type_signal" 1>&6
20183 cat >> confdefs.h <<EOF
20184 #define RETSIGTYPE $ac_cv_type_signal
20188 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20189 echo "configure:20190: checking for size_t" >&5
20190 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20191 echo $ac_n "(cached) $ac_c" 1>&6
20193 cat > conftest.$ac_ext <<EOF
20194 #line 20195 "configure"
20195 #include "confdefs.h"
20196 #include <sys/types.h>
20198 #include <stdlib.h>
20199 #include <stddef.h>
20203 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20204 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20206 eval "ac_cv_type_size_t=yes"
20209 eval "ac_cv_type_size_t=no"
20214 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20215 echo "$ac_t""yes" 1>&6
20217 echo "$ac_t""no" 1>&6
20218 cat >> confdefs.h <<EOF
20219 #define size_t unsigned
20225 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20226 echo "configure:20227: checking for ssize_t" >&5
20227 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20228 echo $ac_n "(cached) $ac_c" 1>&6
20230 cat > conftest.$ac_ext <<EOF
20231 #line 20232 "configure"
20232 #include "confdefs.h"
20233 #include <sys/types.h>
20235 #include <stdlib.h>
20236 #include <stddef.h>
20240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20241 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20243 eval "ac_cv_type_ssize_t=yes"
20246 eval "ac_cv_type_ssize_t=no"
20251 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20252 echo "$ac_t""yes" 1>&6
20254 echo "$ac_t""no" 1>&6
20255 cat >> confdefs.h <<EOF
20256 #define ssize_t signed int
20261 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20262 echo "configure:20263: checking for caddr_t" >&5
20263 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20264 echo $ac_n "(cached) $ac_c" 1>&6
20266 cat > conftest.$ac_ext <<EOF
20267 #line 20268 "configure"
20268 #include "confdefs.h"
20269 #include <sys/types.h>
20271 #include <stdlib.h>
20272 #include <stddef.h>
20276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20277 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20279 eval "ac_cv_type_caddr_t=yes"
20282 eval "ac_cv_type_caddr_t=no"
20287 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20288 echo "$ac_t""yes" 1>&6
20290 echo "$ac_t""no" 1>&6
20291 cat >> confdefs.h <<EOF
20292 #define caddr_t char *
20298 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20299 echo "configure:20300: checking for socklen_t" >&5
20300 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20301 echo $ac_n "(cached) $ac_c" 1>&6
20303 cat > conftest.$ac_ext <<EOF
20304 #line 20305 "configure"
20305 #include "confdefs.h"
20307 #ifdef HAVE_SYS_TYPES_H
20308 #include <sys/types.h>
20310 #ifdef HAVE_SYS_SOCKET_H
20311 #include <sys/socket.h>
20318 if { (eval echo configure:20319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20320 ol_cv_type_socklen_t=yes
20322 echo "configure: failed program was:" >&5
20323 cat conftest.$ac_ext >&5
20325 ol_cv_type_socklen_t=no
20330 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20331 if test $ol_cv_type_socklen_t = no; then
20332 cat >> confdefs.h <<\EOF
20333 #define socklen_t int
20338 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20339 echo "configure:20340: checking for member st_blksize in aggregate type struct stat" >&5
20340 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20341 echo $ac_n "(cached) $ac_c" 1>&6
20343 cat > conftest.$ac_ext <<EOF
20344 #line 20345 "configure"
20345 #include "confdefs.h"
20346 #include <sys/types.h>
20347 #include <sys/stat.h>
20349 struct stat foo; foo.st_blksize;
20352 if { (eval echo configure:20353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20354 ac_cv_c_struct_member_st_blksize=yes
20356 echo "configure: failed program was:" >&5
20357 cat conftest.$ac_ext >&5
20359 ac_cv_c_struct_member_st_blksize=no
20364 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20365 st_blksize="$ac_cv_c_struct_member_st_blksize"
20366 if test $ac_cv_c_struct_member_st_blksize = yes; then
20367 cat >> confdefs.h <<\EOF
20368 #define HAVE_ST_BLKSIZE 1
20373 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20374 echo "configure:20375: checking whether time.h and sys/time.h may both be included" >&5
20375 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20376 echo $ac_n "(cached) $ac_c" 1>&6
20378 cat > conftest.$ac_ext <<EOF
20379 #line 20380 "configure"
20380 #include "confdefs.h"
20381 #include <sys/types.h>
20382 #include <sys/time.h>
20388 if { (eval echo configure:20389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20390 ac_cv_header_time=yes
20392 echo "configure: failed program was:" >&5
20393 cat conftest.$ac_ext >&5
20395 ac_cv_header_time=no
20400 echo "$ac_t""$ac_cv_header_time" 1>&6
20401 if test $ac_cv_header_time = yes; then
20402 cat >> confdefs.h <<\EOF
20403 #define TIME_WITH_SYS_TIME 1
20408 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20409 echo "configure:20410: checking whether struct tm is in sys/time.h or time.h" >&5
20410 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20411 echo $ac_n "(cached) $ac_c" 1>&6
20413 cat > conftest.$ac_ext <<EOF
20414 #line 20415 "configure"
20415 #include "confdefs.h"
20416 #include <sys/types.h>
20419 struct tm *tp; tp->tm_sec;
20422 if { (eval echo configure:20423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20424 ac_cv_struct_tm=time.h
20426 echo "configure: failed program was:" >&5
20427 cat conftest.$ac_ext >&5
20429 ac_cv_struct_tm=sys/time.h
20434 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20435 if test $ac_cv_struct_tm = sys/time.h; then
20436 cat >> confdefs.h <<\EOF
20437 #define TM_IN_SYS_TIME 1
20442 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20443 echo "configure:20444: checking for uid_t in sys/types.h" >&5
20444 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20445 echo $ac_n "(cached) $ac_c" 1>&6
20447 cat > conftest.$ac_ext <<EOF
20448 #line 20449 "configure"
20449 #include "confdefs.h"
20450 #include <sys/types.h>
20452 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20453 egrep "uid_t" >/dev/null 2>&1; then
20455 ac_cv_type_uid_t=yes
20458 ac_cv_type_uid_t=no
20464 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20465 if test $ac_cv_type_uid_t = no; then
20466 cat >> confdefs.h <<\EOF
20470 cat >> confdefs.h <<\EOF
20476 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20477 echo "configure:20478: checking for sig_atomic_t" >&5
20478 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20479 echo $ac_n "(cached) $ac_c" 1>&6
20481 cat > conftest.$ac_ext <<EOF
20482 #line 20483 "configure"
20483 #include "confdefs.h"
20484 #include <signal.h>
20486 sig_atomic_t atomic;
20489 if { (eval echo configure:20490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20491 ol_cv_type_sig_atomic_t=yes
20493 echo "configure: failed program was:" >&5
20494 cat conftest.$ac_ext >&5
20496 ol_cv_type_sig_atomic_t=no
20501 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20502 if test $ol_cv_type_sig_atomic_t = no; then
20503 cat >> confdefs.h <<\EOF
20504 #define sig_atomic_t int
20511 # test for pw_gecos in struct passwd
20512 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20513 echo "configure:20514: checking struct passwd for pw_gecos" >&5
20514 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20515 echo $ac_n "(cached) $ac_c" 1>&6
20518 cat > conftest.$ac_ext <<EOF
20519 #line 20520 "configure"
20520 #include "confdefs.h"
20525 pwd.pw_gecos = pwd.pw_name;
20529 if { (eval echo configure:20530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20531 ol_cv_struct_passwd_pw_gecos=yes
20533 echo "configure: failed program was:" >&5
20534 cat conftest.$ac_ext >&5
20536 ol_cv_struct_passwd_pw_gecos=no
20541 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20542 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20543 cat >> confdefs.h <<\EOF
20544 #define HAVE_PW_GECOS 1
20549 # test for pw_passwd in struct passwd
20550 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20551 echo "configure:20552: checking struct passwd for pw_passwd" >&5
20552 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20553 echo $ac_n "(cached) $ac_c" 1>&6
20556 cat > conftest.$ac_ext <<EOF
20557 #line 20558 "configure"
20558 #include "confdefs.h"
20563 pwd.pw_passwd = pwd.pw_name;
20567 if { (eval echo configure:20568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20569 ol_cv_struct_passwd_pw_passwd=yes
20571 echo "configure: failed program was:" >&5
20572 cat conftest.$ac_ext >&5
20574 ol_cv_struct_passwd_pw_passwd=no
20579 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20580 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20581 cat >> confdefs.h <<\EOF
20582 #define HAVE_PW_PASSWD 1
20588 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20589 echo "configure:20590: checking if toupper() requires islower()" >&5
20590 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20591 echo $ac_n "(cached) $ac_c" 1>&6
20594 if test "$cross_compiling" = yes; then
20595 ol_cv_c_upper_lower=safe
20597 cat > conftest.$ac_ext <<EOF
20598 #line 20599 "configure"
20599 #include "confdefs.h"
20604 if ('C' == toupper('C'))
20610 if { (eval echo configure:20611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20612 ol_cv_c_upper_lower=no
20614 echo "configure: failed program was:" >&5
20615 cat conftest.$ac_ext >&5
20617 ol_cv_c_upper_lower=yes
20624 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20625 if test $ol_cv_c_upper_lower != no ; then
20626 cat >> confdefs.h <<\EOF
20627 #define C_UPPER_LOWER 1
20632 echo $ac_n "checking for working const""... $ac_c" 1>&6
20633 echo "configure:20634: checking for working const" >&5
20634 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20635 echo $ac_n "(cached) $ac_c" 1>&6
20637 cat > conftest.$ac_ext <<EOF
20638 #line 20639 "configure"
20639 #include "confdefs.h"
20643 /* Ultrix mips cc rejects this. */
20644 typedef int charset[2]; const charset x;
20645 /* SunOS 4.1.1 cc rejects this. */
20646 char const *const *ccp;
20648 /* NEC SVR4.0.2 mips cc rejects this. */
20649 struct point {int x, y;};
20650 static struct point const zero = {0,0};
20651 /* AIX XL C 1.02.0.0 rejects this.
20652 It does not let you subtract one const X* pointer from another in an arm
20653 of an if-expression whose if-part is not a constant expression */
20654 const char *g = "string";
20655 ccp = &g + (g ? g-g : 0);
20656 /* HPUX 7.0 cc rejects these. */
20659 ccp = (char const *const *) p;
20660 { /* SCO 3.2v4 cc rejects this. */
20662 char const *s = 0 ? (char *) 0 : (char const *) 0;
20666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20667 int x[] = {25, 17};
20668 const int *foo = &x[0];
20671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20672 typedef const int *iptr;
20676 { /* AIX XL C 1.02.0.0 rejects this saying
20677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20678 struct s { int j; const int *ap[3]; };
20679 struct s *b; b->j = 5;
20681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20682 const int foo = 10;
20687 if { (eval echo configure:20688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20691 echo "configure: failed program was:" >&5
20692 cat conftest.$ac_ext >&5
20699 echo "$ac_t""$ac_cv_c_const" 1>&6
20700 if test $ac_cv_c_const = no; then
20701 cat >> confdefs.h <<\EOF
20707 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20708 echo "configure:20709: checking if compiler understands volatile" >&5
20709 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20710 echo $ac_n "(cached) $ac_c" 1>&6
20712 cat > conftest.$ac_ext <<EOF
20713 #line 20714 "configure"
20714 #include "confdefs.h"
20717 volatile int a; int * volatile b = x ? &y : &z;
20718 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20722 if { (eval echo configure:20723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20724 ol_cv_c_volatile=yes
20726 echo "configure: failed program was:" >&5
20727 cat conftest.$ac_ext >&5
20729 ol_cv_c_volatile=no
20734 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20735 if test $ol_cv_c_volatile = yes; then
20738 cat >> confdefs.h <<\EOF
20745 if test $cross_compiling = yes ; then
20746 cat >> confdefs.h <<\EOF
20747 #define CROSS_COMPILING 1
20751 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
20752 echo "configure:20753: checking whether byte ordering is bigendian" >&5
20753 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
20754 echo $ac_n "(cached) $ac_c" 1>&6
20756 ac_cv_c_bigendian=unknown
20757 # See if sys/param.h defines the BYTE_ORDER macro.
20758 cat > conftest.$ac_ext <<EOF
20759 #line 20760 "configure"
20760 #include "confdefs.h"
20761 #include <sys/types.h>
20762 #include <sys/param.h>
20765 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20766 bogus endian macros
20770 if { (eval echo configure:20771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20772 # It does; now see whether it defined to BIG_ENDIAN or not.
20773 cat > conftest.$ac_ext <<EOF
20774 #line 20775 "configure"
20775 #include "confdefs.h"
20776 #include <sys/types.h>
20777 #include <sys/param.h>
20780 #if BYTE_ORDER != BIG_ENDIAN
20785 if { (eval echo configure:20786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20787 ac_cv_c_bigendian=yes
20789 echo "configure: failed program was:" >&5
20790 cat conftest.$ac_ext >&5
20792 ac_cv_c_bigendian=no
20796 echo "configure: failed program was:" >&5
20797 cat conftest.$ac_ext >&5
20800 if test $ac_cv_c_bigendian = unknown; then
20801 if test "$cross_compiling" = yes; then
20802 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
20804 cat > conftest.$ac_ext <<EOF
20805 #line 20806 "configure"
20806 #include "confdefs.h"
20808 /* Are we little or big endian? From Harbison&Steele. */
20812 char c[sizeof (long)];
20815 exit (u.c[sizeof (long) - 1] == 1);
20818 if { (eval echo configure:20819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20820 ac_cv_c_bigendian=no
20822 echo "configure: failed program was:" >&5
20823 cat conftest.$ac_ext >&5
20825 ac_cv_c_bigendian=yes
20833 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
20834 if test $ac_cv_c_bigendian = yes; then
20835 cat >> confdefs.h <<\EOF
20836 #define WORDS_BIGENDIAN 1
20843 echo $ac_n "checking size of short""... $ac_c" 1>&6
20844 echo "configure:20845: checking size of short" >&5
20845 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
20846 echo $ac_n "(cached) $ac_c" 1>&6
20848 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20849 cat > conftest.$ac_ext <<EOF
20850 #line 20851 "configure"
20851 #include "confdefs.h"
20852 #include "confdefs.h"
20853 #include <sys/types.h>
20857 switch (0) case 0: case (sizeof (short) == $ac_size):;
20860 if { (eval echo configure:20861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20862 ac_cv_sizeof_short=$ac_size
20864 echo "configure: failed program was:" >&5
20865 cat conftest.$ac_ext >&5
20868 if test x$ac_cv_sizeof_short != x ; then break; fi
20873 if test x$ac_cv_sizeof_short = x ; then
20874 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
20876 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
20877 cat >> confdefs.h <<EOF
20878 #define SIZEOF_SHORT $ac_cv_sizeof_short
20882 echo $ac_n "checking size of int""... $ac_c" 1>&6
20883 echo "configure:20884: checking size of int" >&5
20884 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
20885 echo $ac_n "(cached) $ac_c" 1>&6
20887 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20888 cat > conftest.$ac_ext <<EOF
20889 #line 20890 "configure"
20890 #include "confdefs.h"
20891 #include "confdefs.h"
20892 #include <sys/types.h>
20896 switch (0) case 0: case (sizeof (int) == $ac_size):;
20899 if { (eval echo configure:20900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20901 ac_cv_sizeof_int=$ac_size
20903 echo "configure: failed program was:" >&5
20904 cat conftest.$ac_ext >&5
20907 if test x$ac_cv_sizeof_int != x ; then break; fi
20912 if test x$ac_cv_sizeof_int = x ; then
20913 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
20915 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
20916 cat >> confdefs.h <<EOF
20917 #define SIZEOF_INT $ac_cv_sizeof_int
20921 echo $ac_n "checking size of long""... $ac_c" 1>&6
20922 echo "configure:20923: checking size of long" >&5
20923 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
20924 echo $ac_n "(cached) $ac_c" 1>&6
20926 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20927 cat > conftest.$ac_ext <<EOF
20928 #line 20929 "configure"
20929 #include "confdefs.h"
20930 #include "confdefs.h"
20931 #include <sys/types.h>
20935 switch (0) case 0: case (sizeof (long) == $ac_size):;
20938 if { (eval echo configure:20939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20940 ac_cv_sizeof_long=$ac_size
20942 echo "configure: failed program was:" >&5
20943 cat conftest.$ac_ext >&5
20946 if test x$ac_cv_sizeof_long != x ; then break; fi
20951 if test x$ac_cv_sizeof_long = x ; then
20952 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
20954 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
20955 cat >> confdefs.h <<EOF
20956 #define SIZEOF_LONG $ac_cv_sizeof_long
20961 if test "$ac_cv_sizeof_int" -lt 4 ; then
20962 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
20964 cat >> confdefs.h <<\EOF
20965 #define LBER_INT_T long
20969 cat >> confdefs.h <<\EOF
20970 #define LBER_INT_T int
20975 cat >> confdefs.h <<\EOF
20976 #define LBER_LEN_T long
20979 cat >> confdefs.h <<\EOF
20980 #define LBER_SOCKET_T int
20983 cat >> confdefs.h <<\EOF
20984 #define LBER_TAG_T long
20988 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
20989 echo "configure:20990: checking for 8-bit clean memcmp" >&5
20990 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
20991 echo $ac_n "(cached) $ac_c" 1>&6
20993 if test "$cross_compiling" = yes; then
20994 ac_cv_func_memcmp_clean=no
20996 cat > conftest.$ac_ext <<EOF
20997 #line 20998 "configure"
20998 #include "confdefs.h"
21002 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21003 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
21007 if { (eval echo configure:21008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21009 ac_cv_func_memcmp_clean=yes
21011 echo "configure: failed program was:" >&5
21012 cat conftest.$ac_ext >&5
21014 ac_cv_func_memcmp_clean=no
21021 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21022 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21024 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21025 echo "configure:21026: checking for strftime" >&5
21026 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21027 echo $ac_n "(cached) $ac_c" 1>&6
21029 cat > conftest.$ac_ext <<EOF
21030 #line 21031 "configure"
21031 #include "confdefs.h"
21032 /* System header to define __stub macros and hopefully few prototypes,
21033 which can conflict with char strftime(); below. */
21034 #include <assert.h>
21035 /* Override any gcc2 internal prototype to avoid an error. */
21036 /* We use char because int might match the return type of a gcc2
21037 builtin and then its argument prototype would still apply. */
21043 /* The GNU C library defines this for functions which it implements
21044 to always fail with ENOSYS. Some functions are actually named
21045 something starting with __ and the normal name is an alias. */
21046 #if defined (__stub_strftime) || defined (__stub___strftime)
21054 if { (eval echo configure:21055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21056 eval "ac_cv_func_strftime=yes"
21058 echo "configure: failed program was:" >&5
21059 cat conftest.$ac_ext >&5
21061 eval "ac_cv_func_strftime=no"
21066 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21067 echo "$ac_t""yes" 1>&6
21068 cat >> confdefs.h <<\EOF
21069 #define HAVE_STRFTIME 1
21073 echo "$ac_t""no" 1>&6
21074 # strftime is in -lintl on SCO UNIX.
21075 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21076 echo "configure:21077: checking for strftime in -lintl" >&5
21077 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21078 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21079 echo $ac_n "(cached) $ac_c" 1>&6
21081 ac_save_LIBS="$LIBS"
21082 LIBS="-lintl $LIBS"
21083 cat > conftest.$ac_ext <<EOF
21084 #line 21085 "configure"
21085 #include "confdefs.h"
21086 /* Override any gcc2 internal prototype to avoid an error. */
21087 /* We use char because int might match the return type of a gcc2
21088 builtin and then its argument prototype would still apply. */
21095 if { (eval echo configure:21096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21097 eval "ac_cv_lib_$ac_lib_var=yes"
21099 echo "configure: failed program was:" >&5
21100 cat conftest.$ac_ext >&5
21102 eval "ac_cv_lib_$ac_lib_var=no"
21105 LIBS="$ac_save_LIBS"
21108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21109 echo "$ac_t""yes" 1>&6
21110 cat >> confdefs.h <<\EOF
21111 #define HAVE_STRFTIME 1
21114 LIBS="-lintl $LIBS"
21116 echo "$ac_t""no" 1>&6
21122 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21123 echo "configure:21124: checking for inet_aton()" >&5
21124 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21125 echo $ac_n "(cached) $ac_c" 1>&6
21127 cat > conftest.$ac_ext <<EOF
21128 #line 21129 "configure"
21129 #include "confdefs.h"
21131 #ifdef HAVE_SYS_TYPES_H
21132 # include <sys/types.h>
21134 #ifdef HAVE_SYS_SOCKET_H
21135 # include <sys/socket.h>
21136 # ifdef HAVE_SYS_SELECT_H
21137 # include <sys/select.h>
21139 # include <netinet/in.h>
21140 # ifdef HAVE_ARPA_INET_H
21141 # include <arpa/inet.h>
21147 int rc = inet_aton( "255.255.255.255", &in );
21150 if { (eval echo configure:21151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21152 ol_cv_func_inet_aton=yes
21154 echo "configure: failed program was:" >&5
21155 cat conftest.$ac_ext >&5
21157 ol_cv_func_inet_aton=no
21162 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21163 if test $ol_cv_func_inet_aton != no; then
21164 cat >> confdefs.h <<\EOF
21165 #define HAVE_INET_ATON 1
21171 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21172 echo "configure:21173: checking for _spawnlp" >&5
21173 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21174 echo $ac_n "(cached) $ac_c" 1>&6
21176 cat > conftest.$ac_ext <<EOF
21177 #line 21178 "configure"
21178 #include "confdefs.h"
21179 /* System header to define __stub macros and hopefully few prototypes,
21180 which can conflict with char _spawnlp(); below. */
21181 #include <assert.h>
21182 /* Override any gcc2 internal prototype to avoid an error. */
21183 /* We use char because int might match the return type of a gcc2
21184 builtin and then its argument prototype would still apply. */
21190 /* The GNU C library defines this for functions which it implements
21191 to always fail with ENOSYS. Some functions are actually named
21192 something starting with __ and the normal name is an alias. */
21193 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21201 if { (eval echo configure:21202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21203 eval "ac_cv_func__spawnlp=yes"
21205 echo "configure: failed program was:" >&5
21206 cat conftest.$ac_ext >&5
21208 eval "ac_cv_func__spawnlp=no"
21213 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21214 echo "$ac_t""yes" 1>&6
21215 cat >> confdefs.h <<\EOF
21216 #define HAVE_SPAWNLP 1
21220 echo "$ac_t""no" 1>&6
21224 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21225 echo "configure:21226: checking for _snprintf" >&5
21226 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21227 echo $ac_n "(cached) $ac_c" 1>&6
21229 cat > conftest.$ac_ext <<EOF
21230 #line 21231 "configure"
21231 #include "confdefs.h"
21232 /* System header to define __stub macros and hopefully few prototypes,
21233 which can conflict with char _snprintf(); below. */
21234 #include <assert.h>
21235 /* Override any gcc2 internal prototype to avoid an error. */
21236 /* We use char because int might match the return type of a gcc2
21237 builtin and then its argument prototype would still apply. */
21243 /* The GNU C library defines this for functions which it implements
21244 to always fail with ENOSYS. Some functions are actually named
21245 something starting with __ and the normal name is an alias. */
21246 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21254 if { (eval echo configure:21255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21256 eval "ac_cv_func__snprintf=yes"
21258 echo "configure: failed program was:" >&5
21259 cat conftest.$ac_ext >&5
21261 eval "ac_cv_func__snprintf=no"
21266 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21267 echo "$ac_t""yes" 1>&6
21268 ac_cv_func_snprintf=yes
21269 cat >> confdefs.h <<\EOF
21270 #define snprintf _snprintf
21275 echo "$ac_t""no" 1>&6
21279 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21280 echo "configure:21281: checking for _vsnprintf" >&5
21281 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21282 echo $ac_n "(cached) $ac_c" 1>&6
21284 cat > conftest.$ac_ext <<EOF
21285 #line 21286 "configure"
21286 #include "confdefs.h"
21287 /* System header to define __stub macros and hopefully few prototypes,
21288 which can conflict with char _vsnprintf(); below. */
21289 #include <assert.h>
21290 /* Override any gcc2 internal prototype to avoid an error. */
21291 /* We use char because int might match the return type of a gcc2
21292 builtin and then its argument prototype would still apply. */
21298 /* The GNU C library defines this for functions which it implements
21299 to always fail with ENOSYS. Some functions are actually named
21300 something starting with __ and the normal name is an alias. */
21301 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21309 if { (eval echo configure:21310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21311 eval "ac_cv_func__vsnprintf=yes"
21313 echo "configure: failed program was:" >&5
21314 cat conftest.$ac_ext >&5
21316 eval "ac_cv_func__vsnprintf=no"
21321 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21322 echo "$ac_t""yes" 1>&6
21323 ac_cv_func_vsnprintf=yes
21324 cat >> confdefs.h <<\EOF
21325 #define vsnprintf _vsnprintf
21330 echo "$ac_t""no" 1>&6
21334 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21335 echo "configure:21336: checking for vprintf" >&5
21336 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21337 echo $ac_n "(cached) $ac_c" 1>&6
21339 cat > conftest.$ac_ext <<EOF
21340 #line 21341 "configure"
21341 #include "confdefs.h"
21342 /* System header to define __stub macros and hopefully few prototypes,
21343 which can conflict with char vprintf(); below. */
21344 #include <assert.h>
21345 /* Override any gcc2 internal prototype to avoid an error. */
21346 /* We use char because int might match the return type of a gcc2
21347 builtin and then its argument prototype would still apply. */
21353 /* The GNU C library defines this for functions which it implements
21354 to always fail with ENOSYS. Some functions are actually named
21355 something starting with __ and the normal name is an alias. */
21356 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21364 if { (eval echo configure:21365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21366 eval "ac_cv_func_vprintf=yes"
21368 echo "configure: failed program was:" >&5
21369 cat conftest.$ac_ext >&5
21371 eval "ac_cv_func_vprintf=no"
21376 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21377 echo "$ac_t""yes" 1>&6
21378 cat >> confdefs.h <<\EOF
21379 #define HAVE_VPRINTF 1
21383 echo "$ac_t""no" 1>&6
21386 if test "$ac_cv_func_vprintf" != yes; then
21387 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21388 echo "configure:21389: checking for _doprnt" >&5
21389 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21390 echo $ac_n "(cached) $ac_c" 1>&6
21392 cat > conftest.$ac_ext <<EOF
21393 #line 21394 "configure"
21394 #include "confdefs.h"
21395 /* System header to define __stub macros and hopefully few prototypes,
21396 which can conflict with char _doprnt(); below. */
21397 #include <assert.h>
21398 /* Override any gcc2 internal prototype to avoid an error. */
21399 /* We use char because int might match the return type of a gcc2
21400 builtin and then its argument prototype would still apply. */
21406 /* The GNU C library defines this for functions which it implements
21407 to always fail with ENOSYS. Some functions are actually named
21408 something starting with __ and the normal name is an alias. */
21409 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21417 if { (eval echo configure:21418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21419 eval "ac_cv_func__doprnt=yes"
21421 echo "configure: failed program was:" >&5
21422 cat conftest.$ac_ext >&5
21424 eval "ac_cv_func__doprnt=no"
21429 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21430 echo "$ac_t""yes" 1>&6
21431 cat >> confdefs.h <<\EOF
21432 #define HAVE_DOPRNT 1
21436 echo "$ac_t""no" 1>&6
21442 if test $ac_cv_func_vprintf = yes ; then
21443 for ac_func in vsnprintf vsprintf
21445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21446 echo "configure:21447: checking for $ac_func" >&5
21447 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21448 echo $ac_n "(cached) $ac_c" 1>&6
21450 cat > conftest.$ac_ext <<EOF
21451 #line 21452 "configure"
21452 #include "confdefs.h"
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char $ac_func(); below. */
21455 #include <assert.h>
21456 /* Override any gcc2 internal prototype to avoid an error. */
21457 /* We use char because int might match the return type of a gcc2
21458 builtin and then its argument prototype would still apply. */
21464 /* The GNU C library defines this for functions which it implements
21465 to always fail with ENOSYS. Some functions are actually named
21466 something starting with __ and the normal name is an alias. */
21467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21475 if { (eval echo configure:21476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21477 eval "ac_cv_func_$ac_func=yes"
21479 echo "configure: failed program was:" >&5
21480 cat conftest.$ac_ext >&5
21482 eval "ac_cv_func_$ac_func=no"
21487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21488 echo "$ac_t""yes" 1>&6
21489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21490 cat >> confdefs.h <<EOF
21491 #define $ac_tr_func 1
21495 echo "$ac_t""no" 1>&6
21555 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21556 echo "configure:21557: checking for $ac_func" >&5
21557 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21558 echo $ac_n "(cached) $ac_c" 1>&6
21560 cat > conftest.$ac_ext <<EOF
21561 #line 21562 "configure"
21562 #include "confdefs.h"
21563 /* System header to define __stub macros and hopefully few prototypes,
21564 which can conflict with char $ac_func(); below. */
21565 #include <assert.h>
21566 /* Override any gcc2 internal prototype to avoid an error. */
21567 /* We use char because int might match the return type of a gcc2
21568 builtin and then its argument prototype would still apply. */
21574 /* The GNU C library defines this for functions which it implements
21575 to always fail with ENOSYS. Some functions are actually named
21576 something starting with __ and the normal name is an alias. */
21577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21585 if { (eval echo configure:21586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21587 eval "ac_cv_func_$ac_func=yes"
21589 echo "configure: failed program was:" >&5
21590 cat conftest.$ac_ext >&5
21592 eval "ac_cv_func_$ac_func=no"
21597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21598 echo "$ac_t""yes" 1>&6
21599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21600 cat >> confdefs.h <<EOF
21601 #define $ac_tr_func 1
21605 echo "$ac_t""no" 1>&6
21610 for ac_func in getopt
21612 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21613 echo "configure:21614: checking for $ac_func" >&5
21614 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21615 echo $ac_n "(cached) $ac_c" 1>&6
21617 cat > conftest.$ac_ext <<EOF
21618 #line 21619 "configure"
21619 #include "confdefs.h"
21620 /* System header to define __stub macros and hopefully few prototypes,
21621 which can conflict with char $ac_func(); below. */
21622 #include <assert.h>
21623 /* Override any gcc2 internal prototype to avoid an error. */
21624 /* We use char because int might match the return type of a gcc2
21625 builtin and then its argument prototype would still apply. */
21631 /* The GNU C library defines this for functions which it implements
21632 to always fail with ENOSYS. Some functions are actually named
21633 something starting with __ and the normal name is an alias. */
21634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21642 if { (eval echo configure:21643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21644 eval "ac_cv_func_$ac_func=yes"
21646 echo "configure: failed program was:" >&5
21647 cat conftest.$ac_ext >&5
21649 eval "ac_cv_func_$ac_func=no"
21654 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21655 echo "$ac_t""yes" 1>&6
21656 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21657 cat >> confdefs.h <<EOF
21658 #define $ac_tr_func 1
21662 echo "$ac_t""no" 1>&6
21663 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21669 if test "$ac_cv_func_getopt" != yes; then
21670 LIBSRCS="$LIBSRCS getopt.c"
21673 # Check Configuration
21674 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21675 echo "configure:21676: checking declaration of sys_errlist" >&5
21676 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21677 echo $ac_n "(cached) $ac_c" 1>&6
21680 cat > conftest.$ac_ext <<EOF
21681 #line 21682 "configure"
21682 #include "confdefs.h"
21685 #include <sys/types.h>
21688 #include <stdlib.h>
21691 char *c = (char *) *sys_errlist
21694 if { (eval echo configure:21695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21696 ol_cv_dcl_sys_errlist=yes
21697 ol_cv_have_sys_errlist=yes
21699 echo "configure: failed program was:" >&5
21700 cat conftest.$ac_ext >&5
21702 ol_cv_dcl_sys_errlist=no
21707 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21709 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21710 if test $ol_cv_dcl_sys_errlist = no ; then
21711 cat >> confdefs.h <<\EOF
21712 #define DECL_SYS_ERRLIST 1
21716 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21717 echo "configure:21718: checking existence of sys_errlist" >&5
21718 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21719 echo $ac_n "(cached) $ac_c" 1>&6
21722 cat > conftest.$ac_ext <<EOF
21723 #line 21724 "configure"
21724 #include "confdefs.h"
21727 char *c = (char *) *sys_errlist
21730 if { (eval echo configure:21731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21732 ol_cv_have_sys_errlist=yes
21734 echo "configure: failed program was:" >&5
21735 cat conftest.$ac_ext >&5
21737 ol_cv_have_sys_errlist=no
21742 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21744 if test $ol_cv_have_sys_errlist = yes ; then
21745 cat >> confdefs.h <<\EOF
21746 #define HAVE_SYS_ERRLIST 1
21753 if test "$ol_enable_debug" != no ; then
21754 cat >> confdefs.h <<\EOF
21755 #define LDAP_DEBUG 1
21759 if test "$ol_enable_syslog" = yes ; then
21760 cat >> confdefs.h <<\EOF
21761 #define LDAP_SYSLOG 1
21765 if test "$ol_enable_cache" = no ; then
21766 cat >> confdefs.h <<\EOF
21767 #define LDAP_NOCACHE 1
21771 if test "$ol_link_kbind" != no ; then
21772 cat >> confdefs.h <<\EOF
21773 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
21777 if test "$ol_enable_proctitle" != no ; then
21778 cat >> confdefs.h <<\EOF
21779 #define LDAP_PROCTITLE 1
21783 if test "$ol_enable_referrals" != no ; then
21784 cat >> confdefs.h <<\EOF
21785 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
21789 if test "$ol_enable_local" != no; then
21790 cat >> confdefs.h <<\EOF
21791 #define LDAP_PF_LOCAL 1
21795 if test "$ol_link_ipv6" != no; then
21796 cat >> confdefs.h <<\EOF
21797 #define LDAP_PF_INET6 1
21801 if test "$ol_enable_cleartext" != no ; then
21802 cat >> confdefs.h <<\EOF
21803 #define SLAPD_CLEARTEXT 1
21807 if test "$ol_enable_crypt" != no ; then
21808 cat >> confdefs.h <<\EOF
21809 #define SLAPD_CRYPT 1
21813 if test "$ol_link_kpasswd" != no ; then
21814 cat >> confdefs.h <<\EOF
21815 #define SLAPD_KPASSWD 1
21819 if test "$ol_link_spasswd" != no ; then
21820 cat >> confdefs.h <<\EOF
21821 #define SLAPD_SPASSWD 1
21825 if test "$ol_enable_phonetic" != no ; then
21826 cat >> confdefs.h <<\EOF
21827 #define SLAPD_PHONETIC 1
21831 if test "$ol_enable_rlookups" != no ; then
21832 cat >> confdefs.h <<\EOF
21833 #define SLAPD_RLOOKUPS 1
21837 if test "$ol_enable_aci" != no ; then
21838 cat >> confdefs.h <<\EOF
21839 #define SLAPD_ACI_ENABLED 1
21844 if test "$ol_link_modules" != no ; then
21845 cat >> confdefs.h <<\EOF
21846 #define SLAPD_MODULES 1
21850 SLAPD_MODULES_LDFLAGS="-dlopen self"
21853 if test "$ol_enable_bdb" != no ; then
21854 cat >> confdefs.h <<\EOF
21855 #define SLAPD_BDB 1
21860 if test "$ol_with_bdb_module" != static ; then
21861 cat >> confdefs.h <<\EOF
21862 #define SLAPD_BDB_DYNAMIC 1
21866 BUILD_BDB_DYNAMIC=shared
21867 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
21868 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
21870 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
21874 if test "$ol_link_dnssrv" != no ; then
21875 cat >> confdefs.h <<\EOF
21876 #define SLAPD_DNSSRV 1
21881 if test "$ol_with_dnssrv_module" != static ; then
21882 cat >> confdefs.h <<\EOF
21883 #define SLAPD_DNSSRV_DYNAMIC 1
21887 BUILD_DNSSRV_DYNAMIC=shared
21888 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
21889 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
21891 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
21895 if test "$ol_enable_ldap" != no ; then
21896 cat >> confdefs.h <<\EOF
21897 #define SLAPD_LDAP 1
21902 if test "$ol_with_ldap_module" != static ; then
21903 cat >> confdefs.h <<\EOF
21904 #define SLAPD_LDAP_DYNAMIC 1
21908 BUILD_LDAP_DYNAMIC=shared
21909 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
21910 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
21912 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
21916 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
21917 cat >> confdefs.h <<\EOF
21918 #define SLAPD_LDBM 1
21924 if test "$ol_with_ldbm_module" != static ; then
21925 cat >> confdefs.h <<\EOF
21926 #define SLAPD_LDBM_DYNAMIC 1
21930 BUILD_LDBM_DYNAMIC=shared
21931 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
21932 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
21934 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
21938 if test "$ol_enable_meta" != no ; then
21939 if test "$ol_enable_ldap" = no ; then
21940 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
21942 if test "$ol_enable_rewrite" = no ; then
21943 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
21945 cat >> confdefs.h <<\EOF
21946 #define SLAPD_META 1
21951 if test "$ol_with_meta_module" != static ; then
21952 cat >> confdefs.h <<\EOF
21953 #define SLAPD_META_DYNAMIC 1
21957 BUILD_META_DYNAMIC=shared
21958 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
21959 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
21961 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
21965 if test "$ol_enable_monitor" != no ; then
21966 cat >> confdefs.h <<\EOF
21967 #define SLAPD_MONITOR 1
21972 if test "$ol_with_monitor_module" != static ; then
21973 cat >> confdefs.h <<\EOF
21974 #define SLAPD_MONITOR_DYNAMIC 1
21978 BUILD_MONITOR_DYNAMIC=shared
21979 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
21980 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
21982 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
21986 if test "$ol_enable_passwd" != no ; then
21987 cat >> confdefs.h <<\EOF
21988 #define SLAPD_PASSWD 1
21993 if test "$ol_with_passwd_module" != static ; then
21994 cat >> confdefs.h <<\EOF
21995 #define SLAPD_PASSWD_DYNAMIC 1
21999 BUILD_PASSWD_DYNAMIC=shared
22000 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
22001 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
22003 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
22007 if test "$ol_link_perl" != no ; then
22008 cat >> confdefs.h <<\EOF
22009 #define SLAPD_PERL 1
22014 if test "$ol_with_perl_module" != static ; then
22015 cat >> confdefs.h <<\EOF
22016 #define SLAPD_PERL_DYNAMIC 1
22020 BUILD_PERL_DYNAMIC=shared
22021 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22022 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22024 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22028 if test "$ol_enable_shell" != no ; then
22029 cat >> confdefs.h <<\EOF
22030 #define SLAPD_SHELL 1
22035 if test "$ol_with_shell_module" != static ; then
22036 cat >> confdefs.h <<\EOF
22037 #define SLAPD_SHELL_DYNAMIC 1
22041 BUILD_SHELL_DYNAMIC=shared
22042 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22043 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22045 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22049 if test "$ol_enable_tcl" != no ; then
22050 cat >> confdefs.h <<\EOF
22051 #define SLAPD_TCL 1
22056 if test "$ol_with_tcl_module" != static; then
22057 cat >> confdefs.h <<\EOF
22058 #define SLAPD_TCL_DYNAMIC 1
22062 BUILD_TCL_DYNAMIC=shared
22063 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
22064 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22066 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22070 if test "$ol_link_sql" != no ; then
22071 cat >> confdefs.h <<\EOF
22072 #define SLAPD_SQL 1
22077 if test "$ol_with_sql_module" != static; then
22078 cat >> confdefs.h <<\EOF
22079 #define SLAPD_SQL_DYNAMIC 1
22083 BUILD_SQL_DYNAMIC=shared
22084 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22085 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22087 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22091 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22092 $BUILD_SLAPD = yes ; then
22096 if test "$ol_enable_rewrite" != no ; then
22097 cat >> confdefs.h <<\EOF
22098 #define ENABLE_REWRITE 1
22102 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
22107 if test "$ac_cv_mingw32" = yes ; then
22109 SLAPD_MODULES_LDFLAGS=
22110 SLAPD_MODULES_LIST=
22185 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22188 # Let make expand exec_prefix.
22189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22191 # Any assignment to VPATH causes Sun make to only execute
22192 # the first set of double-colon rules, so remove it if not needed.
22193 # If there is a colon in the path, we need to keep it.
22194 if test "x$srcdir" = x.; then
22195 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22198 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22200 DEFS=-DHAVE_CONFIG_H
22202 # Without the "./", some shells look in PATH for config.status.
22203 : ${CONFIG_STATUS=./config.status}
22205 echo creating $CONFIG_STATUS
22206 rm -f $CONFIG_STATUS
22207 cat > $CONFIG_STATUS <<EOF
22209 # Generated automatically by configure.
22210 # Run this file to recreate the current configuration.
22211 # This directory was configured as follows,
22212 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22214 # $0 $ac_configure_args
22216 # Compiler output produced by configure, useful for debugging
22217 # configure, is in ./config.log if it exists.
22219 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22222 case "\$ac_option" in
22223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22224 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22225 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22226 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22227 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22229 -help | --help | --hel | --he | --h)
22230 echo "\$ac_cs_usage"; exit 0 ;;
22231 *) echo "\$ac_cs_usage"; exit 1 ;;
22235 ac_given_srcdir=$srcdir
22236 ac_given_INSTALL="$INSTALL"
22238 trap 'rm -fr `echo "\
22239 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22240 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22241 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22242 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22243 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22244 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22245 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22246 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22247 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22248 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22249 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22250 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22251 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22252 include/Makefile:build/top.mk:include/Makefile.in \
22253 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22254 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22255 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22256 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22257 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22258 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22259 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22260 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22261 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22262 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22263 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22264 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22265 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22266 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22267 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22268 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22269 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22270 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22271 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22272 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22273 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22274 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22275 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22276 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22277 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22278 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22279 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22280 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22281 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22283 cat >> $CONFIG_STATUS <<EOF
22285 # Protect against being on the right side of a sed subst in config.status.
22286 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22287 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22291 s%@CFLAGS@%$CFLAGS%g
22292 s%@CPPFLAGS@%$CPPFLAGS%g
22293 s%@CXXFLAGS@%$CXXFLAGS%g
22294 s%@FFLAGS@%$FFLAGS%g
22296 s%@LDFLAGS@%$LDFLAGS%g
22298 s%@exec_prefix@%$exec_prefix%g
22299 s%@prefix@%$prefix%g
22300 s%@program_transform_name@%$program_transform_name%g
22301 s%@bindir@%$bindir%g
22302 s%@sbindir@%$sbindir%g
22303 s%@libexecdir@%$libexecdir%g
22304 s%@datadir@%$datadir%g
22305 s%@sysconfdir@%$sysconfdir%g
22306 s%@sharedstatedir@%$sharedstatedir%g
22307 s%@localstatedir@%$localstatedir%g
22308 s%@libdir@%$libdir%g
22309 s%@includedir@%$includedir%g
22310 s%@oldincludedir@%$oldincludedir%g
22311 s%@infodir@%$infodir%g
22312 s%@mandir@%$mandir%g
22313 s%@SHTOOL@%$SHTOOL%g
22315 s%@host_alias@%$host_alias%g
22316 s%@host_cpu@%$host_cpu%g
22317 s%@host_vendor@%$host_vendor%g
22318 s%@host_os@%$host_os%g
22319 s%@target@%$target%g
22320 s%@target_alias@%$target_alias%g
22321 s%@target_cpu@%$target_cpu%g
22322 s%@target_vendor@%$target_vendor%g
22323 s%@target_os@%$target_os%g
22325 s%@build_alias@%$build_alias%g
22326 s%@build_cpu@%$build_cpu%g
22327 s%@build_vendor@%$build_vendor%g
22328 s%@build_os@%$build_os%g
22329 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22330 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22331 s%@INSTALL_DATA@%$INSTALL_DATA%g
22332 s%@PACKAGE@%$PACKAGE%g
22333 s%@VERSION@%$VERSION%g
22334 s%@ACLOCAL@%$ACLOCAL%g
22335 s%@AUTOCONF@%$AUTOCONF%g
22336 s%@AUTOMAKE@%$AUTOMAKE%g
22337 s%@AUTOHEADER@%$AUTOHEADER%g
22338 s%@MAKEINFO@%$MAKEINFO%g
22339 s%@install_sh@%$install_sh%g
22342 s%@AMTARFLAGS@%$AMTARFLAGS%g
22343 s%@SET_MAKE@%$SET_MAKE%g
22344 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22345 s%@top_builddir@%$top_builddir%g
22346 s%@ldap_subdir@%$ldap_subdir%g
22350 s%@OBJEXT@%$OBJEXT%g
22351 s%@EXEEXT@%$EXEEXT%g
22353 s%@RANLIB@%$RANLIB%g
22355 s%@DLLTOOL@%$DLLTOOL%g
22357 s%@OBJDUMP@%$OBJDUMP%g
22359 s%@LIBTOOL@%$LIBTOOL%g
22361 s%@SENDMAIL@%$SENDMAIL%g
22362 s%@EDITOR@%$EDITOR%g
22363 s%@FINGER@%$FINGER%g
22364 s%@PERLBIN@%$PERLBIN%g
22365 s%@OL_MKDEP@%$OL_MKDEP%g
22366 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22367 s%@LIBOBJS@%$LIBOBJS%g
22368 s%@LIBSRCS@%$LIBSRCS%g
22370 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22371 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22372 s%@BUILD_BDB@%$BUILD_BDB%g
22373 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22374 s%@BUILD_LDAP@%$BUILD_LDAP%g
22375 s%@BUILD_LDBM@%$BUILD_LDBM%g
22376 s%@BUILD_META@%$BUILD_META%g
22377 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22378 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22379 s%@BUILD_PERL@%$BUILD_PERL%g
22380 s%@BUILD_SHELL@%$BUILD_SHELL%g
22381 s%@BUILD_SQL@%$BUILD_SQL%g
22382 s%@BUILD_TCL@%$BUILD_TCL%g
22383 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22384 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22385 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22386 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22387 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22388 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22389 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22390 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22391 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22392 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22393 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22394 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22395 s%@LDBM_LIB@%$LDBM_LIB%g
22396 s%@LDAP_LIBS@%$LDAP_LIBS%g
22397 s%@LDIF_LIBS@%$LDIF_LIBS%g
22398 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22399 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22400 s%@LDBM_LIBS@%$LDBM_LIBS%g
22401 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22402 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22403 s%@WRAP_LIBS@%$WRAP_LIBS%g
22404 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22405 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22406 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22407 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22408 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22409 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22410 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22411 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22412 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22413 s%@KRB4_LIBS@%$KRB4_LIBS%g
22414 s%@KRB5_LIBS@%$KRB5_LIBS%g
22415 s%@READLINE_LIBS@%$READLINE_LIBS%g
22416 s%@SASL_LIBS@%$SASL_LIBS%g
22417 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22418 s%@TLS_LIBS@%$TLS_LIBS%g
22419 s%@MODULES_LIBS@%$MODULES_LIBS%g
22420 s%@AUTH_LIBS@%$AUTH_LIBS%g
22421 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22422 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22423 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22424 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22429 cat >> $CONFIG_STATUS <<\EOF
22431 # Split the substitutions into bite-sized pieces for seds with
22432 # small command number limits, like on Digital OSF/1 and HP-UX.
22433 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22434 ac_file=1 # Number of current file.
22435 ac_beg=1 # First line for current file.
22436 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22439 while $ac_more_lines; do
22440 if test $ac_beg -gt 1; then
22441 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22443 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22445 if test ! -s conftest.s$ac_file; then
22446 ac_more_lines=false
22447 rm -f conftest.s$ac_file
22449 if test -z "$ac_sed_cmds"; then
22450 ac_sed_cmds="sed -f conftest.s$ac_file"
22452 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22454 ac_file=`expr $ac_file + 1`
22456 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22459 if test -z "$ac_sed_cmds"; then
22464 cat >> $CONFIG_STATUS <<EOF
22466 CONFIG_FILES=\${CONFIG_FILES-"\
22467 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22468 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22469 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22470 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22471 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22472 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22473 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22474 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22475 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22476 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22477 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22478 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22479 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22480 include/Makefile:build/top.mk:include/Makefile.in \
22481 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22482 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22483 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22484 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22485 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22486 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22487 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22488 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22489 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22490 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22491 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22492 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22493 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22494 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22495 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22496 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22497 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22498 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22499 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22500 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22501 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22502 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22503 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22504 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22505 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22506 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22507 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22508 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22511 cat >> $CONFIG_STATUS <<\EOF
22512 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22513 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22515 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22516 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22517 *) ac_file_in="${ac_file}.in" ;;
22520 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22522 # Remove last slash and all that follows it. Not all systems have dirname.
22523 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22524 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22525 # The file is in a subdirectory.
22526 test ! -d "$ac_dir" && mkdir "$ac_dir"
22527 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22528 # A "../" for each directory in $ac_dir_suffix.
22529 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22531 ac_dir_suffix= ac_dots=
22534 case "$ac_given_srcdir" in
22536 if test -z "$ac_dots"; then top_srcdir=.
22537 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22538 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22539 *) # Relative path.
22540 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22541 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22544 case "$ac_given_INSTALL" in
22545 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22546 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22549 echo creating "$ac_file"
22551 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22553 *[Mm]akefile*) ac_comsub="1i\\
22554 # $configure_input" ;;
22558 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22560 s%@configure_input@%$configure_input%g
22561 s%@srcdir@%$srcdir%g
22562 s%@top_srcdir@%$top_srcdir%g
22563 s%@INSTALL@%$INSTALL%g
22564 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22568 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22569 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22571 # ac_d sets the value in "#define NAME VALUE" lines.
22572 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22573 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22576 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22577 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22578 ac_uB='\([ ]\)%\1#\2define\3'
22581 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22582 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22583 ac_eB='$%\1#\2define\3'
22587 if test "${CONFIG_HEADERS+set}" != set; then
22589 cat >> $CONFIG_STATUS <<EOF
22590 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22592 cat >> $CONFIG_STATUS <<\EOF
22594 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22597 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22598 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22599 *) ac_file_in="${ac_file}.in" ;;
22602 echo creating $ac_file
22604 rm -f conftest.frag conftest.in conftest.out
22605 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22606 cat $ac_file_inputs > conftest.in
22610 # Transform confdefs.h into a sed script conftest.vals that substitutes
22611 # the proper values into config.h.in to produce config.h. And first:
22612 # Protect against being on the right side of a sed subst in config.status.
22613 # Protect against being in an unquoted here document in config.status.
22614 rm -f conftest.vals
22615 cat > conftest.hdr <<\EOF
22618 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22622 sed -n -f conftest.hdr confdefs.h > conftest.vals
22625 # This sed command replaces #undef with comments. This is necessary, for
22626 # example, in the case of _POSIX_SOURCE, which is predefined and required
22627 # on some systems where configure will not decide to define it.
22628 cat >> conftest.vals <<\EOF
22629 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22632 # Break up conftest.vals because some shells have a limit on
22633 # the size of here documents, and old seds have small limits too.
22635 rm -f conftest.tail
22638 ac_lines=`grep -c . conftest.vals`
22639 # grep -c gives empty output for an empty file on some AIX systems.
22640 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22641 # Write a limited-size here document to conftest.frag.
22642 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22643 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22645 sed -f conftest.frag conftest.in > conftest.out
22647 mv conftest.out conftest.in
22648 ' >> $CONFIG_STATUS
22649 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22650 rm -f conftest.vals
22651 mv conftest.tail conftest.vals
22653 rm -f conftest.vals
22655 cat >> $CONFIG_STATUS <<\EOF
22656 rm -f conftest.frag conftest.h
22657 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22658 cat conftest.in >> conftest.h
22660 if cmp -s $ac_file conftest.h 2>/dev/null; then
22661 echo "$ac_file is unchanged"
22664 # Remove last slash and all that follows it. Not all systems have dirname.
22665 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22666 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22667 # The file is in a subdirectory.
22668 test ! -d "$ac_dir" && mkdir "$ac_dir"
22671 mv conftest.h $ac_file
22676 cat >> $CONFIG_STATUS <<EOF
22679 cat >> $CONFIG_STATUS <<\EOF
22682 echo Please \"make depend\" to build dependencies
22686 chmod +x $CONFIG_STATUS
22687 rm -fr confdefs* $ac_clean_files
22688 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1