3 # from OpenLDAP: pkg/ldap/configure.in,v 1.402 2002/02/10 13:23:55 hyc 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
7658 # Extract the first word of "sendmail", so it can be a program name with args.
7659 set dummy sendmail; ac_word=$2
7660 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7661 echo "configure:7662: checking for $ac_word" >&5
7662 if eval "test \"\${ac_cv_path_SENDMAIL+set}\" = set"; then
7663 echo $ac_n "(cached) $ac_c" 1>&6
7667 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
7670 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
7673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7674 ac_dummy="$PATH:/usr/libexec:/usr/lib:/usr/sbin:/usr/etc:/etc"
7675 for ac_dir in $ac_dummy; do
7676 test -z "$ac_dir" && ac_dir=.
7677 if test -f $ac_dir/$ac_word; then
7678 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
7683 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/lib/sendmail"
7687 SENDMAIL="$ac_cv_path_SENDMAIL"
7688 if test -n "$SENDMAIL"; then
7689 echo "$ac_t""$SENDMAIL" 1>&6
7691 echo "$ac_t""no" 1>&6
7694 # Extract the first word of "vi", so it can be a program name with args.
7695 set dummy vi; ac_word=$2
7696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7697 echo "configure:7698: checking for $ac_word" >&5
7698 if eval "test \"\${ac_cv_path_EDITOR+set}\" = set"; then
7699 echo $ac_n "(cached) $ac_c" 1>&6
7703 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a path.
7706 ac_cv_path_EDITOR="$EDITOR" # Let the user override the test with a dos path.
7709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7710 ac_dummy="$PATH:/usr/ucb"
7711 for ac_dir in $ac_dummy; do
7712 test -z "$ac_dir" && ac_dir=.
7713 if test -f $ac_dir/$ac_word; then
7714 ac_cv_path_EDITOR="$ac_dir/$ac_word"
7719 test -z "$ac_cv_path_EDITOR" && ac_cv_path_EDITOR="/usr/ucb/vi"
7723 EDITOR="$ac_cv_path_EDITOR"
7724 if test -n "$EDITOR"; then
7725 echo "$ac_t""$EDITOR" 1>&6
7727 echo "$ac_t""no" 1>&6
7730 # Extract the first word of "finger", so it can be a program name with args.
7731 set dummy finger; ac_word=$2
7732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7733 echo "configure:7734: checking for $ac_word" >&5
7734 if eval "test \"\${ac_cv_path_FINGER+set}\" = set"; then
7735 echo $ac_n "(cached) $ac_c" 1>&6
7739 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a path.
7742 ac_cv_path_FINGER="$FINGER" # Let the user override the test with a dos path.
7745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7746 ac_dummy="$PATH:/usr/ucb"
7747 for ac_dir in $ac_dummy; do
7748 test -z "$ac_dir" && ac_dir=.
7749 if test -f $ac_dir/$ac_word; then
7750 ac_cv_path_FINGER="$ac_dir/$ac_word"
7755 test -z "$ac_cv_path_FINGER" && ac_cv_path_FINGER="/usr/ucb/finger"
7759 FINGER="$ac_cv_path_FINGER"
7760 if test -n "$FINGER"; then
7761 echo "$ac_t""$FINGER" 1>&6
7763 echo "$ac_t""no" 1>&6
7768 if test $ol_enable_perl != no ; then
7769 # Extract the first word of "perl", so it can be a program name with args.
7770 set dummy perl; ac_word=$2
7771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7772 echo "configure:7773: checking for $ac_word" >&5
7773 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7774 echo $ac_n "(cached) $ac_c" 1>&6
7778 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7781 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7786 for ac_dir in $ac_dummy; do
7787 test -z "$ac_dir" && ac_dir=.
7788 if test -f $ac_dir/$ac_word; then
7789 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7794 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7798 PERLBIN="$ac_cv_path_PERLBIN"
7799 if test -n "$PERLBIN"; then
7800 echo "$ac_t""$PERLBIN" 1>&6
7802 echo "$ac_t""no" 1>&6
7806 if test "no$PERLBIN" = "no" ; then
7807 if test $ol_enable_perl = yes ; then
7808 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7812 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7813 if test x"$ol_with_perl_module" = "xstatic" ; then
7814 SLAPD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7816 MOD_PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e s/-lc//`"
7822 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7823 echo "configure:7824: checking how to run the C preprocessor" >&5
7824 # On Suns, sometimes $CPP names a directory.
7825 if test -n "$CPP" && test -d "$CPP"; then
7828 if test -z "$CPP"; then
7829 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7830 echo $ac_n "(cached) $ac_c" 1>&6
7832 # This must be in double quotes, not single quotes, because CPP may get
7833 # substituted into the Makefile and "${CC-cc}" will confuse make.
7835 # On the NeXT, cc -E runs the code through the compiler's parser,
7836 # not just through cpp.
7837 cat > conftest.$ac_ext <<EOF
7838 #line 7839 "configure"
7839 #include "confdefs.h"
7843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7844 { (eval echo configure:7845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7846 if test -z "$ac_err"; then
7850 echo "configure: failed program was:" >&5
7851 cat conftest.$ac_ext >&5
7853 CPP="${CC-cc} -E -traditional-cpp"
7854 cat > conftest.$ac_ext <<EOF
7855 #line 7856 "configure"
7856 #include "confdefs.h"
7860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7861 { (eval echo configure:7862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7863 if test -z "$ac_err"; then
7867 echo "configure: failed program was:" >&5
7868 cat conftest.$ac_ext >&5
7870 CPP="${CC-cc} -nologo -E"
7871 cat > conftest.$ac_ext <<EOF
7872 #line 7873 "configure"
7873 #include "confdefs.h"
7877 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7878 { (eval echo configure:7879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7879 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7880 if test -z "$ac_err"; then
7884 echo "configure: failed program was:" >&5
7885 cat conftest.$ac_ext >&5
7894 ac_cv_prog_CPP="$CPP"
7896 CPP="$ac_cv_prog_CPP"
7898 ac_cv_prog_CPP="$CPP"
7900 echo "$ac_t""$CPP" 1>&6
7903 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7904 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7906 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7907 echo "configure: warning: programs compiled here do run here..." 1>&2
7908 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7910 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7911 echo "configure: warning: programs compiled here do not run here..." 1>&2
7912 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7916 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7917 echo "configure:7918: checking for Cygwin environment" >&5
7918 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7919 echo $ac_n "(cached) $ac_c" 1>&6
7921 cat > conftest.$ac_ext <<EOF
7922 #line 7923 "configure"
7923 #include "confdefs.h"
7928 #define __CYGWIN__ __CYGWIN32__
7933 if { (eval echo configure:7934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7937 echo "configure: failed program was:" >&5
7938 cat conftest.$ac_ext >&5
7945 echo "$ac_t""$ac_cv_cygwin" 1>&6
7947 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7948 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7949 echo "configure:7950: checking for mingw32 environment" >&5
7950 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7951 echo $ac_n "(cached) $ac_c" 1>&6
7953 cat > conftest.$ac_ext <<EOF
7954 #line 7955 "configure"
7955 #include "confdefs.h"
7961 if { (eval echo configure:7962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7965 echo "configure: failed program was:" >&5
7966 cat conftest.$ac_ext >&5
7973 echo "$ac_t""$ac_cv_mingw32" 1>&6
7975 test "$ac_cv_mingw32" = yes && MINGW32=yes
7979 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7980 echo "configure:7981: checking for executable suffix" >&5
7981 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7982 echo $ac_n "(cached) $ac_c" 1>&6
7984 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7988 echo 'int main () { return 0; }' > conftest.$ac_ext
7990 if { (eval echo configure:7991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7991 for file in conftest.*; do
7993 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7994 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7998 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8001 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8006 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8007 echo "$ac_t""${ac_cv_exeext}" 1>&6
8010 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8011 echo "configure:8012: checking for object suffix" >&5
8012 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8016 echo 'int i = 1;' > conftest.$ac_ext
8017 if { (eval echo configure:8018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8018 for ac_file in conftest.*; do
8021 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8025 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8030 echo "$ac_t""$ac_cv_objext" 1>&6
8031 OBJEXT=$ac_cv_objext
8032 ac_objext=$ac_cv_objext
8035 cat >> confdefs.h <<EOF
8036 #define EXEEXT "${EXEEXT}"
8040 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8041 echo "configure:8042: checking for be_app in -lbe" >&5
8042 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8043 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8044 echo $ac_n "(cached) $ac_c" 1>&6
8046 ac_save_LIBS="$LIBS"
8047 LIBS="-lbe -lroot -lnet $LIBS"
8048 cat > conftest.$ac_ext <<EOF
8049 #line 8050 "configure"
8050 #include "confdefs.h"
8051 /* Override any gcc2 internal prototype to avoid an error. */
8052 /* We use char because int might match the return type of a gcc2
8053 builtin and then its argument prototype would still apply. */
8060 if { (eval echo configure:8061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8062 eval "ac_cv_lib_$ac_lib_var=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8067 eval "ac_cv_lib_$ac_lib_var=no"
8070 LIBS="$ac_save_LIBS"
8073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8074 echo "$ac_t""yes" 1>&6
8075 LIBS="$LIBS -lbe -lroot -lnet"
8077 echo "$ac_t""no" 1>&6
8085 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8086 echo "configure:8087: checking for ${CC-cc} option to accept ANSI C" >&5
8087 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8090 am_cv_prog_cc_stdc=no
8092 # Don't try gcc -ansi; that turns off useful extensions and
8093 # breaks some systems' header files.
8094 # AIX -qlanglvl=ansi
8095 # Ultrix and OSF/1 -std1
8096 # HP-UX 10.20 and later -Ae
8097 # HP-UX older versions -Aa -D_HPUX_SOURCE
8098 # SVR4 -Xc -D__EXTENSIONS__
8099 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8101 CC="$ac_save_CC $ac_arg"
8102 cat > conftest.$ac_ext <<EOF
8103 #line 8104 "configure"
8104 #include "confdefs.h"
8107 #include <sys/types.h>
8108 #include <sys/stat.h>
8109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8110 struct buf { int x; };
8111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8112 static char *e (p, i)
8118 static char *f (char * (*g) (char **, int), char **p, ...)
8123 s = g (p, va_arg (v,int));
8127 int test (int i, double x);
8128 struct s1 {int (*f) (int a);};
8129 struct s2 {int (*f) (double a);};
8130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8136 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8140 if { (eval echo configure:8141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8142 am_cv_prog_cc_stdc="$ac_arg"; break
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8153 if test -z "$am_cv_prog_cc_stdc"; then
8154 echo "$ac_t""none needed" 1>&6
8156 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8158 case "x$am_cv_prog_cc_stdc" in
8160 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8163 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8164 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8167 # test for make depend flag
8170 if test -z "${MKDEP}"; then
8172 if test -z "${MKDEP_FLAGS}"; then
8173 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8174 echo "configure:8175: checking for ${OL_MKDEP} depend flag" >&5
8175 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8176 echo $ac_n "(cached) $ac_c" 1>&6
8180 for flag in "-M" "-xM"; do
8181 cat > conftest.c <<EOF
8184 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8185 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8187 if test ! -f conftest."${ac_object}" ; then
8189 OL_MKDEP_FLAGS="$flag"
8198 echo "$ac_t""$ol_cv_mkdep" 1>&6
8201 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8206 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8211 if test "${ol_cv_mkdep}" = no ; then
8212 # this will soon become an error
8213 echo "configure: warning: do not know how to generate dependencies" 1>&2
8216 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8217 echo "configure:8218: checking for afopen in -ls" >&5
8218 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8220 echo $ac_n "(cached) $ac_c" 1>&6
8222 ac_save_LIBS="$LIBS"
8224 cat > conftest.$ac_ext <<EOF
8225 #line 8226 "configure"
8226 #include "confdefs.h"
8227 /* Override any gcc2 internal prototype to avoid an error. */
8228 /* We use char because int might match the return type of a gcc2
8229 builtin and then its argument prototype would still apply. */
8236 if { (eval echo configure:8237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8238 eval "ac_cv_lib_$ac_lib_var=yes"
8240 echo "configure: failed program was:" >&5
8241 cat conftest.$ac_ext >&5
8243 eval "ac_cv_lib_$ac_lib_var=no"
8246 LIBS="$ac_save_LIBS"
8249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8250 echo "$ac_t""yes" 1>&6
8253 cat >> confdefs.h <<\EOF
8254 #define HAVE_AIX_SECURITY 1
8259 echo "$ac_t""no" 1>&6
8265 if test $ol_enable_modules != no ; then
8266 for ac_hdr in ltdl.h
8268 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8269 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8270 echo "configure:8271: checking for $ac_hdr" >&5
8271 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8272 echo $ac_n "(cached) $ac_c" 1>&6
8274 cat > conftest.$ac_ext <<EOF
8275 #line 8276 "configure"
8276 #include "confdefs.h"
8279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8280 { (eval echo configure:8281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8282 if test -z "$ac_err"; then
8284 eval "ac_cv_header_$ac_safe=yes"
8287 echo "configure: failed program was:" >&5
8288 cat conftest.$ac_ext >&5
8290 eval "ac_cv_header_$ac_safe=no"
8294 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8295 echo "$ac_t""yes" 1>&6
8296 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8297 cat >> confdefs.h <<EOF
8298 #define $ac_tr_hdr 1
8302 echo "$ac_t""no" 1>&6
8307 if test $ac_cv_header_ltdl_h = no ; then
8308 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8311 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8312 echo "configure:8313: checking for lt_dlinit in -lltdl" >&5
8313 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8314 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8317 ac_save_LIBS="$LIBS"
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8322 /* Override any gcc2 internal prototype to avoid an error. */
8323 /* We use char because int might match the return type of a gcc2
8324 builtin and then its argument prototype would still apply. */
8331 if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8333 eval "ac_cv_lib_$ac_lib_var=yes"
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8338 eval "ac_cv_lib_$ac_lib_var=no"
8341 LIBS="$ac_save_LIBS"
8344 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8345 echo "$ac_t""yes" 1>&6
8348 cat >> confdefs.h <<\EOF
8349 #define HAVE_LIBLTDL 1
8354 echo "$ac_t""no" 1>&6
8358 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8359 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8363 ol_with_bdb_module=static
8364 ol_with_dnssrv_module=static
8365 ol_with_ldap_module=static
8366 ol_with_ldbm_module=static
8367 ol_with_meta_module=static
8368 ol_with_monitor_module=static
8369 ol_with_passwd_module=static
8370 ol_with_perl_module=static
8371 ol_with_shell_module=static
8372 ol_with_tcl_module=static
8373 ol_with_sql_module=static
8377 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8378 echo "configure:8379: checking for EBCDIC" >&5
8379 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8380 echo $ac_n "(cached) $ac_c" 1>&6
8383 cat > conftest.$ac_ext <<EOF
8384 #line 8385 "configure"
8385 #include "confdefs.h"
8388 #include <__ASCII__/generate_error.h>
8392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8393 { (eval echo configure:8394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8395 if test -z "$ac_err"; then
8397 ol_cv_cpp_ebcdic=yes
8400 echo "configure: failed program was:" >&5
8401 cat conftest.$ac_ext >&5
8408 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8409 if test $ol_cv_cpp_ebcdic = yes ; then
8410 cat >> confdefs.h <<\EOF
8411 #define HAVE_EBCDIC 1
8416 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8417 echo "configure:8418: checking for ANSI C header files" >&5
8418 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8430 { (eval echo configure:8431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8432 if test -z "$ac_err"; then
8434 ol_cv_header_stdc=yes
8437 echo "configure: failed program was:" >&5
8438 cat conftest.$ac_ext >&5
8440 ol_cv_header_stdc=no
8444 if test $ol_cv_header_stdc = yes; then
8445 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8446 cat > conftest.$ac_ext <<EOF
8447 #line 8448 "configure"
8448 #include "confdefs.h"
8451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8452 egrep "memchr" >/dev/null 2>&1; then
8456 ol_cv_header_stdc=no
8462 if test $ol_cv_header_stdc = yes; then
8463 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8464 cat > conftest.$ac_ext <<EOF
8465 #line 8466 "configure"
8466 #include "confdefs.h"
8469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8470 egrep "free" >/dev/null 2>&1; then
8474 ol_cv_header_stdc=no
8480 if test $ol_cv_header_stdc = yes; then
8481 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8482 if test "$cross_compiling" = yes; then
8485 cat > conftest.$ac_ext <<EOF
8486 #line 8487 "configure"
8487 #include "confdefs.h"
8490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8493 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8494 || ('j' <= (c) && (c) <= 'r') \
8495 || ('s' <= (c) && (c) <= 'z'))
8496 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8498 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8499 int main () { int i; for (i = 0; i < 256; i++)
8500 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8504 if { (eval echo configure:8505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8508 echo "configure: failed program was:" >&5
8509 cat conftest.$ac_ext >&5
8511 ol_cv_header_stdc=no
8519 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8520 if test $ol_cv_header_stdc = yes; then
8521 cat >> confdefs.h <<\EOF
8522 #define STDC_HEADERS 1
8526 ac_cv_header_stdc=disable
8529 if test $ol_cv_header_stdc != yes; then
8530 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8534 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8537 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8538 echo "configure:8539: checking for $ac_hdr that defines DIR" >&5
8539 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8540 echo $ac_n "(cached) $ac_c" 1>&6
8542 cat > conftest.$ac_ext <<EOF
8543 #line 8544 "configure"
8544 #include "confdefs.h"
8545 #include <sys/types.h>
8551 if { (eval echo configure:8552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8553 eval "ac_cv_header_dirent_$ac_safe=yes"
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8558 eval "ac_cv_header_dirent_$ac_safe=no"
8562 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8563 echo "$ac_t""yes" 1>&6
8564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8565 cat >> confdefs.h <<EOF
8566 #define $ac_tr_hdr 1
8568 ac_header_dirent=$ac_hdr; break
8570 echo "$ac_t""no" 1>&6
8573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8574 if test $ac_header_dirent = dirent.h; then
8575 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8576 echo "configure:8577: checking for opendir in -ldir" >&5
8577 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8581 ac_save_LIBS="$LIBS"
8583 cat > conftest.$ac_ext <<EOF
8584 #line 8585 "configure"
8585 #include "confdefs.h"
8586 /* Override any gcc2 internal prototype to avoid an error. */
8587 /* We use char because int might match the return type of a gcc2
8588 builtin and then its argument prototype would still apply. */
8595 if { (eval echo configure:8596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8597 eval "ac_cv_lib_$ac_lib_var=yes"
8599 echo "configure: failed program was:" >&5
8600 cat conftest.$ac_ext >&5
8602 eval "ac_cv_lib_$ac_lib_var=no"
8605 LIBS="$ac_save_LIBS"
8608 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8609 echo "$ac_t""yes" 1>&6
8612 echo "$ac_t""no" 1>&6
8616 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8617 echo "configure:8618: checking for opendir in -lx" >&5
8618 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8619 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8620 echo $ac_n "(cached) $ac_c" 1>&6
8622 ac_save_LIBS="$LIBS"
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 /* Override any gcc2 internal prototype to avoid an error. */
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8636 if { (eval echo configure:8637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8638 eval "ac_cv_lib_$ac_lib_var=yes"
8640 echo "configure: failed program was:" >&5
8641 cat conftest.$ac_ext >&5
8643 eval "ac_cv_lib_$ac_lib_var=no"
8646 LIBS="$ac_save_LIBS"
8649 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8650 echo "$ac_t""yes" 1>&6
8653 echo "$ac_t""no" 1>&6
8658 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8659 echo "configure:8660: checking for sys/wait.h that is POSIX.1 compatible" >&5
8660 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8661 echo $ac_n "(cached) $ac_c" 1>&6
8663 cat > conftest.$ac_ext <<EOF
8664 #line 8665 "configure"
8665 #include "confdefs.h"
8666 #include <sys/types.h>
8667 #include <sys/wait.h>
8669 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8672 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8677 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8680 if { (eval echo configure:8681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8682 ac_cv_header_sys_wait_h=yes
8684 echo "configure: failed program was:" >&5
8685 cat conftest.$ac_ext >&5
8687 ac_cv_header_sys_wait_h=no
8692 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8693 if test $ac_cv_header_sys_wait_h = yes; then
8694 cat >> confdefs.h <<\EOF
8695 #define HAVE_SYS_WAIT_H 1
8700 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8701 echo "configure:8702: checking POSIX termios" >&5
8702 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8705 cat > conftest.$ac_ext <<EOF
8706 #line 8707 "configure"
8707 #include "confdefs.h"
8708 #include <sys/types.h>
8710 #include <termios.h>
8712 /* SunOS 4.0.3 has termios.h but not the library calls. */
8716 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8718 am_cv_sys_posix_termios=yes
8720 echo "configure: failed program was:" >&5
8721 cat conftest.$ac_ext >&5
8723 am_cv_sys_posix_termios=no
8728 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8731 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8732 echo "configure:8733: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8733 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8734 echo $ac_n "(cached) $ac_c" 1>&6
8736 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8738 gwinsz_in_termios_h=no
8739 if test $am_cv_sys_posix_termios = yes; then
8740 cat > conftest.$ac_ext <<EOF
8741 #line 8742 "configure"
8742 #include "confdefs.h"
8743 #include <sys/types.h>
8744 # include <termios.h>
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751 egrep "yes" >/dev/null 2>&1; then
8753 gwinsz_in_termios_h=yes
8759 if test $gwinsz_in_termios_h = no; then
8760 cat > conftest.$ac_ext <<EOF
8761 #line 8762 "configure"
8762 #include "confdefs.h"
8763 #include <sys/types.h>
8764 # include <sys/ioctl.h>
8770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8771 egrep "yes" >/dev/null 2>&1; then
8773 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8781 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8782 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8783 cat >> confdefs.h <<\EOF
8784 #define GWINSZ_IN_SYS_IOCTL 1
8789 if test $am_cv_sys_posix_termios = yes ; then
8790 cat >> confdefs.h <<\EOF
8791 #define HAVE_POSIX_TERMIOS 1
8843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8845 echo "configure:8846: checking for $ac_hdr" >&5
8846 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8847 echo $ac_n "(cached) $ac_c" 1>&6
8849 cat > conftest.$ac_ext <<EOF
8850 #line 8851 "configure"
8851 #include "confdefs.h"
8854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8855 { (eval echo configure:8856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8857 if test -z "$ac_err"; then
8859 eval "ac_cv_header_$ac_safe=yes"
8862 echo "configure: failed program was:" >&5
8863 cat conftest.$ac_ext >&5
8865 eval "ac_cv_header_$ac_safe=no"
8869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8870 echo "$ac_t""yes" 1>&6
8871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8872 cat >> confdefs.h <<EOF
8873 #define $ac_tr_hdr 1
8877 echo "$ac_t""no" 1>&6
8884 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8885 echo "configure:8886: checking for dlopen" >&5
8886 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8887 echo $ac_n "(cached) $ac_c" 1>&6
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* System header to define __stub macros and hopefully few prototypes,
8893 which can conflict with char dlopen(); below. */
8895 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8903 /* The GNU C library defines this for functions which it implements
8904 to always fail with ENOSYS. Some functions are actually named
8905 something starting with __ and the normal name is an alias. */
8906 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8914 if { (eval echo configure:8915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8916 eval "ac_cv_func_dlopen=yes"
8918 echo "configure: failed program was:" >&5
8919 cat conftest.$ac_ext >&5
8921 eval "ac_cv_func_dlopen=no"
8926 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
8927 echo "$ac_t""yes" 1>&6
8930 echo "$ac_t""no" 1>&6
8931 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8932 echo "configure:8933: checking for dlopen in -ldl" >&5
8933 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
8934 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8935 echo $ac_n "(cached) $ac_c" 1>&6
8937 ac_save_LIBS="$LIBS"
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 /* Override any gcc2 internal prototype to avoid an error. */
8943 /* We use char because int might match the return type of a gcc2
8944 builtin and then its argument prototype would still apply. */
8951 if { (eval echo configure:8952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8953 eval "ac_cv_lib_$ac_lib_var=yes"
8955 echo "configure: failed program was:" >&5
8956 cat conftest.$ac_ext >&5
8958 eval "ac_cv_lib_$ac_lib_var=no"
8961 LIBS="$ac_save_LIBS"
8964 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8965 echo "$ac_t""yes" 1>&6
8966 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8967 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8968 cat >> confdefs.h <<EOF
8969 #define $ac_tr_lib 1
8975 echo "$ac_t""no" 1>&6
8981 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8982 echo "configure:8983: checking for sigset in -lV3" >&5
8983 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8985 echo $ac_n "(cached) $ac_c" 1>&6
8987 ac_save_LIBS="$LIBS"
8989 cat > conftest.$ac_ext <<EOF
8990 #line 8991 "configure"
8991 #include "confdefs.h"
8992 /* Override any gcc2 internal prototype to avoid an error. */
8993 /* We use char because int might match the return type of a gcc2
8994 builtin and then its argument prototype would still apply. */
9001 if { (eval echo configure:9002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9003 eval "ac_cv_lib_$ac_lib_var=yes"
9005 echo "configure: failed program was:" >&5
9006 cat conftest.$ac_ext >&5
9008 eval "ac_cv_lib_$ac_lib_var=no"
9011 LIBS="$ac_save_LIBS"
9014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9015 echo "$ac_t""yes" 1>&6
9016 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9018 cat >> confdefs.h <<EOF
9019 #define $ac_tr_lib 1
9025 echo "$ac_t""no" 1>&6
9029 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9030 echo "configure:9031: checking for winsock" >&5
9032 for curlib in ws2_32 wsock32; do
9033 LIBS="$LIBS -l$curlib"
9034 cat > conftest.$ac_ext <<EOF
9035 #line 9036 "configure"
9036 #include "confdefs.h"
9040 char closesocket@4();
9041 char gethostname@8();
9052 if { (eval echo configure:9053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9056 echo "configure: failed program was:" >&5
9057 cat conftest.$ac_ext >&5
9063 if test $have_winsock = yes; then
9064 cat >> confdefs.h <<\EOF
9065 #define HAVE_WINSOCK 1
9068 ac_cv_func_socket=yes
9069 ac_cv_func_select=yes
9070 ac_cv_func_closesocket=yes
9071 ac_cv_func_gethostname=yes
9072 if test $curlib = ws2_32; then
9073 have_winsock=winsock2
9074 cat >> confdefs.h <<\EOF
9075 #define HAVE_WINSOCK2 1
9083 echo "$ac_t""$have_winsock" 1>&6
9086 echo $ac_n "checking for socket""... $ac_c" 1>&6
9087 echo "configure:9088: checking for socket" >&5
9088 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9091 cat > conftest.$ac_ext <<EOF
9092 #line 9093 "configure"
9093 #include "confdefs.h"
9094 /* System header to define __stub macros and hopefully few prototypes,
9095 which can conflict with char socket(); below. */
9097 /* Override any gcc2 internal prototype to avoid an error. */
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9105 /* The GNU C library defines this for functions which it implements
9106 to always fail with ENOSYS. Some functions are actually named
9107 something starting with __ and the normal name is an alias. */
9108 #if defined (__stub_socket) || defined (__stub___socket)
9116 if { (eval echo configure:9117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9118 eval "ac_cv_func_socket=yes"
9120 echo "configure: failed program was:" >&5
9121 cat conftest.$ac_ext >&5
9123 eval "ac_cv_func_socket=no"
9128 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9129 echo "$ac_t""yes" 1>&6
9132 echo "$ac_t""no" 1>&6
9134 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9135 echo "configure:9136: checking for main in -lsocket" >&5
9136 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9137 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9140 ac_save_LIBS="$LIBS"
9141 LIBS="-lsocket $LIBS"
9142 cat > conftest.$ac_ext <<EOF
9143 #line 9144 "configure"
9144 #include "confdefs.h"
9150 if { (eval echo configure:9151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9152 eval "ac_cv_lib_$ac_lib_var=yes"
9154 echo "configure: failed program was:" >&5
9155 cat conftest.$ac_ext >&5
9157 eval "ac_cv_lib_$ac_lib_var=no"
9160 LIBS="$ac_save_LIBS"
9163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9164 echo "$ac_t""yes" 1>&6
9165 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9166 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9167 cat >> confdefs.h <<EOF
9168 #define $ac_tr_lib 1
9171 LIBS="-lsocket $LIBS"
9174 echo "$ac_t""no" 1>&6
9177 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9178 echo "configure:9179: checking for main in -lnet" >&5
9179 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9180 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9181 echo $ac_n "(cached) $ac_c" 1>&6
9183 ac_save_LIBS="$LIBS"
9185 cat > conftest.$ac_ext <<EOF
9186 #line 9187 "configure"
9187 #include "confdefs.h"
9193 if { (eval echo configure:9194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9195 eval "ac_cv_lib_$ac_lib_var=yes"
9197 echo "configure: failed program was:" >&5
9198 cat conftest.$ac_ext >&5
9200 eval "ac_cv_lib_$ac_lib_var=no"
9203 LIBS="$ac_save_LIBS"
9206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9207 echo "$ac_t""yes" 1>&6
9208 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9209 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9210 cat >> confdefs.h <<EOF
9211 #define $ac_tr_lib 1
9217 echo "$ac_t""no" 1>&6
9220 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9221 echo "configure:9222: checking for main in -lnsl_s" >&5
9222 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9223 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9224 echo $ac_n "(cached) $ac_c" 1>&6
9226 ac_save_LIBS="$LIBS"
9227 LIBS="-lnsl_s $LIBS"
9228 cat > conftest.$ac_ext <<EOF
9229 #line 9230 "configure"
9230 #include "confdefs.h"
9236 if { (eval echo configure:9237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9238 eval "ac_cv_lib_$ac_lib_var=yes"
9240 echo "configure: failed program was:" >&5
9241 cat conftest.$ac_ext >&5
9243 eval "ac_cv_lib_$ac_lib_var=no"
9246 LIBS="$ac_save_LIBS"
9249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9250 echo "$ac_t""yes" 1>&6
9251 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9252 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9253 cat >> confdefs.h <<EOF
9254 #define $ac_tr_lib 1
9257 LIBS="-lnsl_s $LIBS"
9260 echo "$ac_t""no" 1>&6
9263 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9264 echo "configure:9265: checking for main in -lnsl" >&5
9265 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9266 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9267 echo $ac_n "(cached) $ac_c" 1>&6
9269 ac_save_LIBS="$LIBS"
9271 cat > conftest.$ac_ext <<EOF
9272 #line 9273 "configure"
9273 #include "confdefs.h"
9279 if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281 eval "ac_cv_lib_$ac_lib_var=yes"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9286 eval "ac_cv_lib_$ac_lib_var=no"
9289 LIBS="$ac_save_LIBS"
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9296 cat >> confdefs.h <<EOF
9297 #define $ac_tr_lib 1
9303 echo "$ac_t""no" 1>&6
9306 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9307 echo "configure:9308: checking for socket in -linet" >&5
9308 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9312 ac_save_LIBS="$LIBS"
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9317 /* Override any gcc2 internal prototype to avoid an error. */
9318 /* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9326 if { (eval echo configure:9327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9328 eval "ac_cv_lib_$ac_lib_var=yes"
9330 echo "configure: failed program was:" >&5
9331 cat conftest.$ac_ext >&5
9333 eval "ac_cv_lib_$ac_lib_var=no"
9336 LIBS="$ac_save_LIBS"
9339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9340 echo "$ac_t""yes" 1>&6
9341 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9342 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9343 cat >> confdefs.h <<EOF
9344 #define $ac_tr_lib 1
9350 echo "$ac_t""no" 1>&6
9353 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9354 echo "configure:9355: checking for main in -lgen" >&5
9355 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9356 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9357 echo $ac_n "(cached) $ac_c" 1>&6
9359 ac_save_LIBS="$LIBS"
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9369 if { (eval echo configure:9370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9371 eval "ac_cv_lib_$ac_lib_var=yes"
9373 echo "configure: failed program was:" >&5
9374 cat conftest.$ac_ext >&5
9376 eval "ac_cv_lib_$ac_lib_var=no"
9379 LIBS="$ac_save_LIBS"
9382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9383 echo "$ac_t""yes" 1>&6
9384 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9385 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9386 cat >> confdefs.h <<EOF
9387 #define $ac_tr_lib 1
9393 echo "$ac_t""no" 1>&6
9400 echo $ac_n "checking for select""... $ac_c" 1>&6
9401 echo "configure:9402: checking for select" >&5
9402 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9403 echo $ac_n "(cached) $ac_c" 1>&6
9405 cat > conftest.$ac_ext <<EOF
9406 #line 9407 "configure"
9407 #include "confdefs.h"
9408 /* System header to define __stub macros and hopefully few prototypes,
9409 which can conflict with char select(); below. */
9411 /* Override any gcc2 internal prototype to avoid an error. */
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9419 /* The GNU C library defines this for functions which it implements
9420 to always fail with ENOSYS. Some functions are actually named
9421 something starting with __ and the normal name is an alias. */
9422 #if defined (__stub_select) || defined (__stub___select)
9430 if { (eval echo configure:9431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9432 eval "ac_cv_func_select=yes"
9434 echo "configure: failed program was:" >&5
9435 cat conftest.$ac_ext >&5
9437 eval "ac_cv_func_select=no"
9442 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9443 echo "$ac_t""yes" 1>&6
9446 echo "$ac_t""no" 1>&6
9447 { echo "configure: error: select() required." 1>&2; exit 1; }
9451 if test "${ac_cv_header_winsock_h}" != yes; then
9452 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9453 echo "configure:9454: checking types of arguments for select()" >&5
9454 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9455 echo $ac_n "(cached) $ac_c" 1>&6
9457 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9458 echo $ac_n "(cached) $ac_c" 1>&6
9460 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9461 echo $ac_n "(cached) $ac_c" 1>&6
9463 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9464 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9465 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469 #ifdef HAVE_SYS_TYPES_H
9470 #include <sys/types.h>
9472 #ifdef HAVE_SYS_TIME_H
9473 #include <sys/time.h>
9475 #ifdef HAVE_SYS_SELECT_H
9476 #include <sys/select.h>
9478 #ifdef HAVE_SYS_SOCKET_H
9479 #include <sys/socket.h>
9481 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);
9486 if { (eval echo configure:9487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9488 ac_not_found=no ; break 3
9490 echo "configure: failed program was:" >&5
9491 cat conftest.$ac_ext >&5
9505 if test "$ac_not_found" = yes; then
9506 ac_cv_func_select_arg1=int
9507 ac_cv_func_select_arg234='int *'
9508 ac_cv_func_select_arg5='struct timeval *'
9510 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9511 cat >> confdefs.h <<EOF
9512 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9515 cat >> confdefs.h <<EOF
9516 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9519 cat >> confdefs.h <<EOF
9520 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9527 for ac_hdr in regex.h
9529 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9530 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9531 echo "configure:9532: checking for $ac_hdr" >&5
9532 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9540 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9541 { (eval echo configure:9542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9542 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9543 if test -z "$ac_err"; then
9545 eval "ac_cv_header_$ac_safe=yes"
9548 echo "configure: failed program was:" >&5
9549 cat conftest.$ac_ext >&5
9551 eval "ac_cv_header_$ac_safe=no"
9555 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9556 echo "$ac_t""yes" 1>&6
9557 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9558 cat >> confdefs.h <<EOF
9559 #define $ac_tr_hdr 1
9563 echo "$ac_t""no" 1>&6
9567 if test "$ac_cv_header_regex_h" != yes ; then
9568 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9571 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9572 echo "configure:9573: checking for library containing regfree" >&5
9573 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9574 echo $ac_n "(cached) $ac_c" 1>&6
9576 ac_func_search_save_LIBS="$LIBS"
9577 ac_cv_search_regfree="no"
9578 cat > conftest.$ac_ext <<EOF
9579 #line 9580 "configure"
9580 #include "confdefs.h"
9581 /* Override any gcc2 internal prototype to avoid an error. */
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9590 if { (eval echo configure:9591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9592 ac_cv_search_regfree="none required"
9594 echo "configure: failed program was:" >&5
9595 cat conftest.$ac_ext >&5
9598 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9600 cat > conftest.$ac_ext <<EOF
9601 #line 9602 "configure"
9602 #include "confdefs.h"
9603 /* Override any gcc2 internal prototype to avoid an error. */
9604 /* We use char because int might match the return type of a gcc2
9605 builtin and then its argument prototype would still apply. */
9612 if { (eval echo configure:9613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9614 ac_cv_search_regfree="-l$ac_lib"
9617 echo "configure: failed program was:" >&5
9618 cat conftest.$ac_ext >&5
9622 LIBS="$ac_func_search_save_LIBS"
9625 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9626 if test "$ac_cv_search_regfree" != "no"; then
9627 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9630 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9634 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9635 echo "configure:9636: checking for compatible POSIX regex" >&5
9636 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9637 echo $ac_n "(cached) $ac_c" 1>&6
9640 if test "$cross_compiling" = yes; then
9641 ol_cv_c_posix_regex=cross
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9647 #include <sys/types.h>
9649 static char *pattern, *string;
9657 if(regcomp(&re, pattern, 0)) {
9661 string = "ALL MATCH";
9663 rc = regexec(&re, string, 0, (void*)0, 0);
9670 if { (eval echo configure:9671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9672 ol_cv_c_posix_regex=yes
9674 echo "configure: failed program was:" >&5
9675 cat conftest.$ac_ext >&5
9677 ol_cv_c_posix_regex=no
9684 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9686 if test "$ol_cv_c_posix_regex" = no ; then
9687 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9690 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9691 echo "configure:9692: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9693 LIBS="$LIBS -lrpcrt4"
9694 cat > conftest.$ac_ext <<EOF
9695 #line 9696 "configure"
9696 #include "confdefs.h"
9698 char UuidCreate@4();
9699 char UuidToStringA@8();
9708 if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 echo "configure: failed program was:" >&5
9713 cat conftest.$ac_ext >&5
9718 if test $need_rpcrt = yes; then
9719 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9722 echo "$ac_t""$need_rpcrt" 1>&6
9725 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9726 echo "configure:9727: checking for res_query" >&5
9727 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9728 echo $ac_n "(cached) $ac_c" 1>&6
9730 cat > conftest.$ac_ext <<EOF
9731 #line 9732 "configure"
9732 #include "confdefs.h"
9733 /* System header to define __stub macros and hopefully few prototypes,
9734 which can conflict with char res_query(); below. */
9736 /* Override any gcc2 internal prototype to avoid an error. */
9737 /* We use char because int might match the return type of a gcc2
9738 builtin and then its argument prototype would still apply. */
9744 /* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747 #if defined (__stub_res_query) || defined (__stub___res_query)
9755 if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9757 eval "ac_cv_func_res_query=yes"
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9762 eval "ac_cv_func_res_query=no"
9767 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9768 echo "$ac_t""yes" 1>&6
9771 echo "$ac_t""no" 1>&6
9774 if test $ac_cv_func_res_query = no ; then
9775 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9776 echo "configure:9777: checking for __res_query" >&5
9777 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9778 echo $ac_n "(cached) $ac_c" 1>&6
9780 cat > conftest.$ac_ext <<EOF
9781 #line 9782 "configure"
9782 #include "confdefs.h"
9783 /* System header to define __stub macros and hopefully few prototypes,
9784 which can conflict with char __res_query(); below. */
9786 /* Override any gcc2 internal prototype to avoid an error. */
9787 /* We use char because int might match the return type of a gcc2
9788 builtin and then its argument prototype would still apply. */
9794 /* The GNU C library defines this for functions which it implements
9795 to always fail with ENOSYS. Some functions are actually named
9796 something starting with __ and the normal name is an alias. */
9797 #if defined (__stub___res_query) || defined (__stub_____res_query)
9805 if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9807 eval "ac_cv_func___res_query=yes"
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9812 eval "ac_cv_func___res_query=no"
9817 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
9818 echo "$ac_t""yes" 1>&6
9821 echo "$ac_t""no" 1>&6
9824 ac_cv_func_res_query=$ac_cv_func___res_query
9827 if test $ac_cv_func_res_query = no ; then
9828 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
9829 echo "configure:9830: checking for res_query in -lbind" >&5
9830 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
9831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9834 ac_save_LIBS="$LIBS"
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 /* Override any gcc2 internal prototype to avoid an error. */
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9850 eval "ac_cv_lib_$ac_lib_var=yes"
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9855 eval "ac_cv_lib_$ac_lib_var=no"
9858 LIBS="$ac_save_LIBS"
9861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9863 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9864 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9865 cat >> confdefs.h <<EOF
9866 #define $ac_tr_lib 1
9872 echo "$ac_t""no" 1>&6
9875 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
9878 if test $ac_cv_func_res_query = no ; then
9879 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
9880 echo "configure:9881: checking for __res_query in -lbind" >&5
9881 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
9882 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9885 ac_save_LIBS="$LIBS"
9887 cat > conftest.$ac_ext <<EOF
9888 #line 9889 "configure"
9889 #include "confdefs.h"
9890 /* Override any gcc2 internal prototype to avoid an error. */
9891 /* We use char because int might match the return type of a gcc2
9892 builtin and then its argument prototype would still apply. */
9899 if { (eval echo configure:9900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9901 eval "ac_cv_lib_$ac_lib_var=yes"
9903 echo "configure: failed program was:" >&5
9904 cat conftest.$ac_ext >&5
9906 eval "ac_cv_lib_$ac_lib_var=no"
9909 LIBS="$ac_save_LIBS"
9912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9913 echo "$ac_t""yes" 1>&6
9914 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9916 cat >> confdefs.h <<EOF
9917 #define $ac_tr_lib 1
9923 echo "$ac_t""no" 1>&6
9926 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
9929 if test $ac_cv_func_res_query = no ; then
9930 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
9931 echo "configure:9932: checking for res_query in -lresolv" >&5
9932 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
9933 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9936 ac_save_LIBS="$LIBS"
9937 LIBS="-lresolv $LIBS"
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9941 /* Override any gcc2 internal prototype to avoid an error. */
9942 /* We use char because int might match the return type of a gcc2
9943 builtin and then its argument prototype would still apply. */
9950 if { (eval echo configure:9951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9952 eval "ac_cv_lib_$ac_lib_var=yes"
9954 echo "configure: failed program was:" >&5
9955 cat conftest.$ac_ext >&5
9957 eval "ac_cv_lib_$ac_lib_var=no"
9960 LIBS="$ac_save_LIBS"
9963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9964 echo "$ac_t""yes" 1>&6
9965 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9967 cat >> confdefs.h <<EOF
9968 #define $ac_tr_lib 1
9971 LIBS="-lresolv $LIBS"
9974 echo "$ac_t""no" 1>&6
9977 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
9980 if test $ac_cv_func_res_query = no ; then
9981 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
9982 echo "configure:9983: checking for __res_query in -lresolv" >&5
9983 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
9984 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9985 echo $ac_n "(cached) $ac_c" 1>&6
9987 ac_save_LIBS="$LIBS"
9988 LIBS="-lresolv $LIBS"
9989 cat > conftest.$ac_ext <<EOF
9990 #line 9991 "configure"
9991 #include "confdefs.h"
9992 /* Override any gcc2 internal prototype to avoid an error. */
9993 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
10001 if { (eval echo configure:10002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10003 eval "ac_cv_lib_$ac_lib_var=yes"
10005 echo "configure: failed program was:" >&5
10006 cat conftest.$ac_ext >&5
10008 eval "ac_cv_lib_$ac_lib_var=no"
10011 LIBS="$ac_save_LIBS"
10014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10015 echo "$ac_t""yes" 1>&6
10016 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10017 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10018 cat >> confdefs.h <<EOF
10019 #define $ac_tr_lib 1
10022 LIBS="-lresolv $LIBS"
10025 echo "$ac_t""no" 1>&6
10028 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10031 if test "$ac_cv_func_res_query" = yes ; then
10032 cat >> confdefs.h <<\EOF
10033 #define HAVE_RES_QUERY 1
10037 if test $ol_enable_dnssrv != no ; then
10042 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10043 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10046 for ac_func in getaddrinfo gai_strerror inet_ntop
10048 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10049 echo "configure:10050: checking for $ac_func" >&5
10050 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10051 echo $ac_n "(cached) $ac_c" 1>&6
10053 cat > conftest.$ac_ext <<EOF
10054 #line 10055 "configure"
10055 #include "confdefs.h"
10056 /* System header to define __stub macros and hopefully few prototypes,
10057 which can conflict with char $ac_func(); below. */
10058 #include <assert.h>
10059 /* Override any gcc2 internal prototype to avoid an error. */
10060 /* We use char because int might match the return type of a gcc2
10061 builtin and then its argument prototype would still apply. */
10067 /* The GNU C library defines this for functions which it implements
10068 to always fail with ENOSYS. Some functions are actually named
10069 something starting with __ and the normal name is an alias. */
10070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10078 if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10080 eval "ac_cv_func_$ac_func=yes"
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10085 eval "ac_cv_func_$ac_func=no"
10090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10091 echo "$ac_t""yes" 1>&6
10092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10093 cat >> confdefs.h <<EOF
10094 #define $ac_tr_func 1
10098 echo "$ac_t""no" 1>&6
10104 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10105 if test $ol_enable_ipv6 = yes ; then
10106 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10108 elif test $ol_enable_ipv6 != no ; then
10109 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10110 echo "configure:10111: checking INET6_ADDRSTRLEN" >&5
10111 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10115 cat > conftest.$ac_ext <<EOF
10116 #line 10117 "configure"
10117 #include "confdefs.h"
10119 # include <netinet/in.h>
10120 # ifdef INET6_ADDRSTRLEN
10121 __has_inet6_addrstrlen__;
10125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10126 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10128 ol_cv_inet6_addrstrlen=yes
10131 ol_cv_inet6_addrstrlen=no
10137 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10139 if test $ol_cv_inet6_addrstrlen = yes ; then
10141 elif test $ol_enable_ipv6 = yes ; then
10142 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10146 if test $ol_enable_local != no ; then
10147 for ac_hdr in sys/un.h
10149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10151 echo "configure:10152: checking for $ac_hdr" >&5
10152 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10153 echo $ac_n "(cached) $ac_c" 1>&6
10155 cat > conftest.$ac_ext <<EOF
10156 #line 10157 "configure"
10157 #include "confdefs.h"
10160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10161 { (eval echo configure:10162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10163 if test -z "$ac_err"; then
10165 eval "ac_cv_header_$ac_safe=yes"
10168 echo "configure: failed program was:" >&5
10169 cat conftest.$ac_ext >&5
10171 eval "ac_cv_header_$ac_safe=no"
10175 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10176 echo "$ac_t""yes" 1>&6
10177 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10178 cat >> confdefs.h <<EOF
10179 #define $ac_tr_hdr 1
10183 echo "$ac_t""no" 1>&6
10188 if test $ol_enable_local = auto ; then
10189 ol_enable_local=$ac_cv_header_sys_un_h
10190 elif test $ac_cv_header_sys_un_h = no ; then
10191 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10200 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10201 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10202 -o $ol_with_kerberos = k425 ; then
10204 for ac_hdr in krb5.h
10206 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10207 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10208 echo "configure:10209: checking for $ac_hdr" >&5
10209 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10212 cat > conftest.$ac_ext <<EOF
10213 #line 10214 "configure"
10214 #include "confdefs.h"
10217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10218 { (eval echo configure:10219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10220 if test -z "$ac_err"; then
10222 eval "ac_cv_header_$ac_safe=yes"
10225 echo "configure: failed program was:" >&5
10226 cat conftest.$ac_ext >&5
10228 eval "ac_cv_header_$ac_safe=no"
10232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10235 cat >> confdefs.h <<EOF
10236 #define $ac_tr_hdr 1
10240 echo "$ac_t""no" 1>&6
10245 if test $ac_cv_header_krb5_h = yes ; then
10246 for ac_hdr in heim_err.h
10248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10250 echo "configure:10251: checking for $ac_hdr" >&5
10251 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10260 { (eval echo configure:10261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10262 if test -z "$ac_err"; then
10264 eval "ac_cv_header_$ac_safe=yes"
10267 echo "configure: failed program was:" >&5
10268 cat conftest.$ac_ext >&5
10270 eval "ac_cv_header_$ac_safe=no"
10274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10275 echo "$ac_t""yes" 1>&6
10276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10277 cat >> confdefs.h <<EOF
10278 #define $ac_tr_hdr 1
10282 echo "$ac_t""no" 1>&6
10286 if test $ac_cv_header_heim_err_h = yes ; then
10292 if test $krb5_impl = mit; then
10293 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10294 echo "configure:10295: checking for main in -lk5crypto" >&5
10295 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10297 echo $ac_n "(cached) $ac_c" 1>&6
10299 ac_save_LIBS="$LIBS"
10300 LIBS="-lk5crypto $LIBS"
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10309 if { (eval echo configure:10310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10311 eval "ac_cv_lib_$ac_lib_var=yes"
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10316 eval "ac_cv_lib_$ac_lib_var=no"
10319 LIBS="$ac_save_LIBS"
10322 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10323 echo "$ac_t""yes" 1>&6
10324 krb5crypto=k5crypto
10326 echo "$ac_t""no" 1>&6
10331 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10332 echo "configure:10333: checking for main in -lkrb5" >&5
10333 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10334 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10335 echo $ac_n "(cached) $ac_c" 1>&6
10337 ac_save_LIBS="$LIBS"
10338 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10339 cat > conftest.$ac_ext <<EOF
10340 #line 10341 "configure"
10341 #include "confdefs.h"
10347 if { (eval echo configure:10348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10349 eval "ac_cv_lib_$ac_lib_var=yes"
10351 echo "configure: failed program was:" >&5
10352 cat conftest.$ac_ext >&5
10354 eval "ac_cv_lib_$ac_lib_var=no"
10357 LIBS="$ac_save_LIBS"
10360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10361 echo "$ac_t""yes" 1>&6
10363 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10365 echo "$ac_t""no" 1>&6
10370 elif test $krb5_impl = heimdal; then
10371 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10372 echo "configure:10373: checking for main in -lkrb5" >&5
10373 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10375 echo $ac_n "(cached) $ac_c" 1>&6
10377 ac_save_LIBS="$LIBS"
10378 LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10379 cat > conftest.$ac_ext <<EOF
10380 #line 10381 "configure"
10381 #include "confdefs.h"
10387 if { (eval echo configure:10388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10389 eval "ac_cv_lib_$ac_lib_var=yes"
10391 echo "configure: failed program was:" >&5
10392 cat conftest.$ac_ext >&5
10394 eval "ac_cv_lib_$ac_lib_var=no"
10397 LIBS="$ac_save_LIBS"
10400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10401 echo "$ac_t""yes" 1>&6
10403 KRB5_LIBS="-lkrb5 -ldes -lasn1 -lroken -lcom_err"
10405 echo "$ac_t""no" 1>&6
10410 cat >> confdefs.h <<\EOF
10411 #define HAVE_HEIMDAL_KERBEROS 1
10417 echo "configure: warning: Unrecongized Kerberos5 Implementation" 1>&2
10420 if test $have_krb5 = yes ; then
10423 cat >> confdefs.h <<\EOF
10424 #define HAVE_KRB5 1
10428 if test $ol_enable_kpasswd != no ; then
10429 ol_link_kpasswd=yes;
10432 if test $ol_with_kerberos = k5only ; then
10433 ol_with_kerberos=found
10436 elif test $ol_with_kerberos != auto ; then
10437 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10443 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10444 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10446 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10448 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10449 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10450 echo "configure:10451: checking for $ac_hdr" >&5
10451 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10452 echo $ac_n "(cached) $ac_c" 1>&6
10454 cat > conftest.$ac_ext <<EOF
10455 #line 10456 "configure"
10456 #include "confdefs.h"
10459 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10460 { (eval echo configure:10461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10461 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10462 if test -z "$ac_err"; then
10464 eval "ac_cv_header_$ac_safe=yes"
10467 echo "configure: failed program was:" >&5
10468 cat conftest.$ac_ext >&5
10470 eval "ac_cv_header_$ac_safe=no"
10474 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10475 echo "$ac_t""yes" 1>&6
10476 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10477 cat >> confdefs.h <<EOF
10478 #define $ac_tr_hdr 1
10482 echo "$ac_t""no" 1>&6
10487 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10488 if test $krb5_impl = mit; then
10489 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10490 echo "configure:10491: checking for main in -lkrb4" >&5
10491 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10492 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10493 echo $ac_n "(cached) $ac_c" 1>&6
10495 ac_save_LIBS="$LIBS"
10496 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10497 cat > conftest.$ac_ext <<EOF
10498 #line 10499 "configure"
10499 #include "confdefs.h"
10505 if { (eval echo configure:10506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10507 eval "ac_cv_lib_$ac_lib_var=yes"
10509 echo "configure: failed program was:" >&5
10510 cat conftest.$ac_ext >&5
10512 eval "ac_cv_lib_$ac_lib_var=no"
10515 LIBS="$ac_save_LIBS"
10518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10521 KRB4_LIBS="-lkrb4 -ldes425"
10523 echo "$ac_t""no" 1>&6
10528 elif test $krb5_impl = heimdal; then
10529 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10530 echo "configure:10531: checking for main in -lkrb4" >&5
10531 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10532 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10533 echo $ac_n "(cached) $ac_c" 1>&6
10535 ac_save_LIBS="$LIBS"
10536 LIBS="-lkrb4 -lkrb5 -ldes -lasn1 -lroken -lcom_err $LIBS"
10537 cat > conftest.$ac_ext <<EOF
10538 #line 10539 "configure"
10539 #include "confdefs.h"
10545 if { (eval echo configure:10546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10547 eval "ac_cv_lib_$ac_lib_var=yes"
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10552 eval "ac_cv_lib_$ac_lib_var=no"
10555 LIBS="$ac_save_LIBS"
10558 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10559 echo "$ac_t""yes" 1>&6
10563 echo "$ac_t""no" 1>&6
10570 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10573 if test $have_k425 = yes ; then
10574 ol_with_kerberos=found
10577 cat >> confdefs.h <<\EOF
10578 #define HAVE_KRB425 1
10581 cat >> confdefs.h <<\EOF
10582 #define HAVE_KRB4 1
10586 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10587 echo "configure:10588: checking for des_debug in Kerberos libraries" >&5
10588 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10589 echo $ac_n "(cached) $ac_c" 1>&6
10593 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10598 #include <kerberosIV/krb.h>
10599 #include <kerberosIV/des.h>
10600 extern int des_debug;
10608 if { (eval echo configure:10609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10610 ol_cv_var_des_debug=yes
10612 echo "configure: failed program was:" >&5
10613 cat conftest.$ac_ext >&5
10615 ol_cv_var_des_debug=no
10622 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10624 if test $ol_cv_var_des_debug = yes ; then
10625 cat >> confdefs.h <<\EOF
10626 #define HAVE_DES_DEBUG 1
10636 if test $ol_link_krb5 = yes ; then
10637 ol_with_kerberos=found
10640 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10641 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10643 for ac_hdr in krb.h des.h krb-archaeology.h
10645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10647 echo "configure:10648: checking for $ac_hdr" >&5
10648 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10649 echo $ac_n "(cached) $ac_c" 1>&6
10651 cat > conftest.$ac_ext <<EOF
10652 #line 10653 "configure"
10653 #include "confdefs.h"
10656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10657 { (eval echo configure:10658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10659 if test -z "$ac_err"; then
10661 eval "ac_cv_header_$ac_safe=yes"
10664 echo "configure: failed program was:" >&5
10665 cat conftest.$ac_ext >&5
10667 eval "ac_cv_header_$ac_safe=no"
10671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10672 echo "$ac_t""yes" 1>&6
10673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10674 cat >> confdefs.h <<EOF
10675 #define $ac_tr_hdr 1
10679 echo "$ac_t""no" 1>&6
10684 if test $ac_cv_header_krb_h = yes ; then
10685 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10686 echo "configure:10687: checking for main in -lkrb" >&5
10687 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10688 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10689 echo $ac_n "(cached) $ac_c" 1>&6
10691 ac_save_LIBS="$LIBS"
10692 LIBS="-lkrb -ldes $LIBS"
10693 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10701 if { (eval echo configure:10702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10703 eval "ac_cv_lib_$ac_lib_var=yes"
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10708 eval "ac_cv_lib_$ac_lib_var=no"
10711 LIBS="$ac_save_LIBS"
10714 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10715 echo "$ac_t""yes" 1>&6
10718 echo "$ac_t""no" 1>&6
10723 if test $have_k4 = yes ; then
10724 ol_with_kerberos=found
10727 cat >> confdefs.h <<\EOF
10728 #define HAVE_KRB4 1
10732 KRB4_LIBS="-lkrb -ldes"
10734 if test $ac_cv_header_krb_archaeology_h = yes ; then
10735 cat >> confdefs.h <<\EOF
10736 #define HAVE_KTH_KERBEROS 1
10744 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
10745 ol_link_kpasswd=yes
10748 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
10751 elif test $ol_enable_kbind = yes ; then
10752 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
10755 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
10756 cat >> confdefs.h <<\EOF
10757 #define HAVE_KERBEROS 1
10761 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
10762 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
10766 if test $ol_with_tls != no ; then
10767 for ac_hdr in openssl/ssl.h ssl.h
10769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10771 echo "configure:10772: checking for $ac_hdr" >&5
10772 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10773 echo $ac_n "(cached) $ac_c" 1>&6
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10781 { (eval echo configure:10782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10783 if test -z "$ac_err"; then
10785 eval "ac_cv_header_$ac_safe=yes"
10788 echo "configure: failed program was:" >&5
10789 cat conftest.$ac_ext >&5
10791 eval "ac_cv_header_$ac_safe=no"
10795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10796 echo "$ac_t""yes" 1>&6
10797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10798 cat >> confdefs.h <<EOF
10799 #define $ac_tr_hdr 1
10803 echo "$ac_t""no" 1>&6
10808 if test $ac_cv_header_openssl_ssl_h = yes -o $ac_cv_header_ssl_h = yes ; then
10809 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
10810 echo "configure:10811: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
10811 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
10812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10813 echo $ac_n "(cached) $ac_c" 1>&6
10815 ac_save_LIBS="$LIBS"
10816 LIBS="-lssl -lcrypto $LIBS"
10817 cat > conftest.$ac_ext <<EOF
10818 #line 10819 "configure"
10819 #include "confdefs.h"
10820 /* Override any gcc2 internal prototype to avoid an error. */
10821 /* We use char because int might match the return type of a gcc2
10822 builtin and then its argument prototype would still apply. */
10823 char SSLeay_add_ssl_algorithms();
10826 SSLeay_add_ssl_algorithms()
10829 if { (eval echo configure:10830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10831 eval "ac_cv_lib_$ac_lib_var=yes"
10833 echo "configure: failed program was:" >&5
10834 cat conftest.$ac_ext >&5
10836 eval "ac_cv_lib_$ac_lib_var=no"
10839 LIBS="$ac_save_LIBS"
10842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10843 echo "$ac_t""yes" 1>&6
10847 echo "$ac_t""no" 1>&6
10852 if test $have_ssleay = no ; then
10853 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
10854 echo "configure:10855: checking for SSL_library_init in -lssl" >&5
10855 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
10856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10857 echo $ac_n "(cached) $ac_c" 1>&6
10859 ac_save_LIBS="$LIBS"
10860 LIBS="-lssl -lcrypto $LIBS"
10861 cat > conftest.$ac_ext <<EOF
10862 #line 10863 "configure"
10863 #include "confdefs.h"
10864 /* Override any gcc2 internal prototype to avoid an error. */
10865 /* We use char because int might match the return type of a gcc2
10866 builtin and then its argument prototype would still apply. */
10867 char SSL_library_init();
10873 if { (eval echo configure:10874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10875 eval "ac_cv_lib_$ac_lib_var=yes"
10877 echo "configure: failed program was:" >&5
10878 cat conftest.$ac_ext >&5
10880 eval "ac_cv_lib_$ac_lib_var=no"
10883 LIBS="$ac_save_LIBS"
10886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10887 echo "$ac_t""yes" 1>&6
10891 echo "$ac_t""no" 1>&6
10897 if test $have_ssleay = no ; then
10898 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
10899 echo "configure:10900: checking for ssl3_accept in -lssl" >&5
10900 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
10901 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10902 echo $ac_n "(cached) $ac_c" 1>&6
10904 ac_save_LIBS="$LIBS"
10905 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
10906 cat > conftest.$ac_ext <<EOF
10907 #line 10908 "configure"
10908 #include "confdefs.h"
10909 /* Override any gcc2 internal prototype to avoid an error. */
10910 /* We use char because int might match the return type of a gcc2
10911 builtin and then its argument prototype would still apply. */
10912 char ssl3_accept();
10918 if { (eval echo configure:10919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10920 eval "ac_cv_lib_$ac_lib_var=yes"
10922 echo "configure: failed program was:" >&5
10923 cat conftest.$ac_ext >&5
10925 eval "ac_cv_lib_$ac_lib_var=no"
10928 LIBS="$ac_save_LIBS"
10931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10932 echo "$ac_t""yes" 1>&6
10936 echo "$ac_t""no" 1>&6
10942 if test $have_ssleay = yes ; then
10946 cat >> confdefs.h <<\EOF
10947 #define HAVE_SSLEAY 1
10951 if test $need_rsaref = yes; then
10952 cat >> confdefs.h <<\EOF
10953 #define HAVE_RSAREF 1
10957 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
10959 TLS_LIBS="-lssl -lcrypto"
10965 echo "configure: warning: TLS privacy protection not supported!" 1>&2
10968 if test $ol_link_tls = yes ; then
10969 cat >> confdefs.h <<\EOF
10974 elif test $ol_with_tls = auto ; then
10975 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
10976 echo "configure: warning: TLS privacy protection not supported!" 1>&2
10978 elif test $ol_with_tls != no ; then
10979 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
10982 if test $ol_enable_lmpasswd != no; then
10983 if test $ol_link_tls != yes ; then
10984 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
10987 cat >> confdefs.h <<\EOF
10988 #define SLAPD_LMHASH 1
10995 gethostbyname_r gethostbyaddr_r \
10998 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10999 echo "configure:11000: checking for $ac_func" >&5
11000 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
11001 echo $ac_n "(cached) $ac_c" 1>&6
11003 cat > conftest.$ac_ext <<EOF
11004 #line 11005 "configure"
11005 #include "confdefs.h"
11006 /* System header to define __stub macros and hopefully few prototypes,
11007 which can conflict with char $ac_func(); below. */
11008 #include <assert.h>
11009 /* Override any gcc2 internal prototype to avoid an error. */
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11017 /* The GNU C library defines this for functions which it implements
11018 to always fail with ENOSYS. Some functions are actually named
11019 something starting with __ and the normal name is an alias. */
11020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11028 if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11030 eval "ac_cv_func_$ac_func=yes"
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11035 eval "ac_cv_func_$ac_func=no"
11040 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11041 echo "$ac_t""yes" 1>&6
11042 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11043 cat >> confdefs.h <<EOF
11044 #define $ac_tr_func 1
11048 echo "$ac_t""no" 1>&6
11053 if test "$ac_cv_func_ctime_r" = no ; then
11054 ol_cv_func_ctime_r_nargs=0
11056 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
11057 echo "configure:11058: checking number of arguments of ctime_r" >&5
11058 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
11059 echo $ac_n "(cached) $ac_c" 1>&6
11061 cat > conftest.$ac_ext <<EOF
11062 #line 11063 "configure"
11063 #include "confdefs.h"
11066 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
11069 if { (eval echo configure:11070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11071 ol_cv_func_ctime_r_nargs3=yes
11073 echo "configure: failed program was:" >&5
11074 cat conftest.$ac_ext >&5
11076 ol_cv_func_ctime_r_nargs3=no
11080 cat > conftest.$ac_ext <<EOF
11081 #line 11082 "configure"
11082 #include "confdefs.h"
11085 time_t ti; char *buffer; ctime_r(&ti,buffer);
11088 if { (eval echo configure:11089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11090 ol_cv_func_ctime_r_nargs2=yes
11092 echo "configure: failed program was:" >&5
11093 cat conftest.$ac_ext >&5
11095 ol_cv_func_ctime_r_nargs2=no
11099 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
11100 $ol_cv_func_ctime_r_nargs2 = no ; then
11102 ol_cv_func_ctime_r_nargs=3
11104 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
11105 $ol_cv_func_ctime_r_nargs2 = yes ; then
11107 ol_cv_func_ctime_r_nargs=2
11110 ol_cv_func_ctime_r_nargs=0
11115 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
11117 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
11118 cat >> confdefs.h <<EOF
11119 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
11126 if test "$ac_cv_func_gethostbyname_r" = yes ; then
11127 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
11128 echo "configure:11129: checking number of arguments of gethostbyname_r" >&5
11129 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
11130 echo $ac_n "(cached) $ac_c" 1>&6
11132 cat > conftest.$ac_ext <<EOF
11133 #line 11134 "configure"
11134 #include "confdefs.h"
11135 #include <sys/types.h>
11136 #include <sys/socket.h>
11137 #include <netinet/in.h>
11139 #define BUFSIZE (sizeof(struct hostent)+10)
11141 struct hostent hent; char buffer[BUFSIZE];
11142 int bufsize=BUFSIZE;int h_errno;
11143 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
11144 buffer, bufsize, &h_errno);
11147 if { (eval echo configure:11148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11149 ol_cv_func_gethostbyname_r_nargs5=yes
11151 echo "configure: failed program was:" >&5
11152 cat conftest.$ac_ext >&5
11154 ol_cv_func_gethostbyname_r_nargs5=no
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11161 #include <sys/types.h>
11162 #include <sys/socket.h>
11163 #include <netinet/in.h>
11165 #define BUFSIZE (sizeof(struct hostent)+10)
11167 struct hostent hent;struct hostent *rhent;
11168 char buffer[BUFSIZE];
11169 int bufsize=BUFSIZE;int h_errno;
11170 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
11174 if { (eval echo configure:11175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11176 ol_cv_func_gethostbyname_r_nargs6=yes
11178 echo "configure: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11181 ol_cv_func_gethostbyname_r_nargs6=no
11185 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
11186 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
11188 ol_cv_func_gethostbyname_r_nargs=5
11190 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
11191 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
11193 ol_cv_func_gethostbyname_r_nargs=6
11196 ol_cv_func_gethostbyname_r_nargs=0
11201 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
11202 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
11203 cat >> confdefs.h <<EOF
11204 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
11210 ol_cv_func_gethostbyname_r_nargs=0
11213 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
11214 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
11215 echo "configure:11216: checking number of arguments of gethostbyaddr_r" >&5
11216 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
11217 echo $ac_n "(cached) $ac_c" 1>&6
11219 cat > conftest.$ac_ext <<EOF
11220 #line 11221 "configure"
11221 #include "confdefs.h"
11222 #include <sys/types.h>
11223 #include <sys/socket.h>
11224 #include <netinet/in.h>
11226 #define BUFSIZE (sizeof(struct hostent)+10)
11228 struct hostent hent; char buffer[BUFSIZE];
11229 struct in_addr add;
11230 size_t alen=sizeof(struct in_addr);
11231 int bufsize=BUFSIZE;int h_errno;
11232 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11233 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
11236 if { (eval echo configure:11237: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11238 ol_cv_func_gethostbyaddr_r_nargs7=yes
11240 echo "configure: failed program was:" >&5
11241 cat conftest.$ac_ext >&5
11243 ol_cv_func_gethostbyaddr_r_nargs7=no
11247 cat > conftest.$ac_ext <<EOF
11248 #line 11249 "configure"
11249 #include "confdefs.h"
11250 #include <sys/types.h>
11251 #include <sys/socket.h>
11252 #include <netinet/in.h>
11254 #define BUFSIZE (sizeof(struct hostent)+10)
11256 struct hostent hent;
11257 struct hostent *rhent; char buffer[BUFSIZE];
11258 struct in_addr add;
11259 size_t alen=sizeof(struct in_addr);
11260 int bufsize=BUFSIZE;int h_errno;
11261 (void)gethostbyaddr_r( (void *)&(add.s_addr),
11262 alen, AF_INET, &hent, buffer, bufsize,
11266 if { (eval echo configure:11267: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11268 ol_cv_func_gethostbyaddr_r_nargs8=yes
11270 echo "configure: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11273 ol_cv_func_gethostbyaddr_r_nargs8=no
11277 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
11278 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
11280 ol_cv_func_gethostbyaddr_r_nargs=7
11282 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
11283 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
11285 ol_cv_func_gethostbyaddr_r_nargs=8
11288 ol_cv_func_gethostbyaddr_r_nargs=0
11293 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
11294 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
11295 cat >> confdefs.h <<EOF
11296 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
11302 ol_cv_func_gethostbyaddr_r_nargs=0
11305 if test "$ac_cv_func_ctime_r" = yes \
11306 -a "$ol_cv_func_ctime_r_nargs" -ge 2 \
11307 -a "$ol_cv_func_ctime_r_nargs" -le 3 \
11308 -a "$ac_cv_func_gethostbyname_r" = yes \
11309 -a "$ol_cv_func_gethostbyname_r_nargs" -ge 5 \
11310 -a "$ol_cv_func_gethostbyname_r_nargs" -le 6 \
11311 -a "$ac_cv_func_gethostbyaddr_r" = yes \
11312 -a "$ol_cv_func_gethostbyaddr_r_nargs" -ge 5 \
11313 -a "$ol_cv_func_gethostbyaddr_r_nargs" -le 6 \
11316 cat >> confdefs.h <<\EOF
11317 #define LDAP_API_FEATURE_X_OPENLDAP_REENTRANT 1
11324 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11325 -o $ol_with_threads = nt ; then
11328 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11329 echo "configure:11330: checking for _beginthread" >&5
11330 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11331 echo $ac_n "(cached) $ac_c" 1>&6
11333 cat > conftest.$ac_ext <<EOF
11334 #line 11335 "configure"
11335 #include "confdefs.h"
11336 /* System header to define __stub macros and hopefully few prototypes,
11337 which can conflict with char _beginthread(); below. */
11338 #include <assert.h>
11339 /* Override any gcc2 internal prototype to avoid an error. */
11340 /* We use char because int might match the return type of a gcc2
11341 builtin and then its argument prototype would still apply. */
11342 char _beginthread();
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11358 if { (eval echo configure:11359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11360 eval "ac_cv_func__beginthread=yes"
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11365 eval "ac_cv_func__beginthread=no"
11370 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11371 echo "$ac_t""yes" 1>&6
11374 echo "$ac_t""no" 1>&6
11378 if test $ac_cv_func__beginthread = yes ; then
11379 cat >> confdefs.h <<\EOF
11380 #define HAVE_NT_THREADS 1
11383 ol_cv_nt_threads=yes
11387 if test "$ol_cv_nt_threads" = yes ; then
11389 ol_with_threads=found
11390 ol_with_yielding_select=yes
11392 cat >> confdefs.h <<\EOF
11393 #define HAVE_NT_SERVICE_MANAGER 1
11396 cat >> confdefs.h <<\EOF
11397 #define HAVE_NT_EVENT_LOG 1
11402 if test $ol_with_threads = nt ; then
11403 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11407 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11408 -o $ol_with_threads = posix ; then
11410 for ac_hdr in pthread.h
11412 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11413 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11414 echo "configure:11415: checking for $ac_hdr" >&5
11415 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11416 echo $ac_n "(cached) $ac_c" 1>&6
11418 cat > conftest.$ac_ext <<EOF
11419 #line 11420 "configure"
11420 #include "confdefs.h"
11423 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11424 { (eval echo configure:11425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11425 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11426 if test -z "$ac_err"; then
11428 eval "ac_cv_header_$ac_safe=yes"
11431 echo "configure: failed program was:" >&5
11432 cat conftest.$ac_ext >&5
11434 eval "ac_cv_header_$ac_safe=no"
11438 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11439 echo "$ac_t""yes" 1>&6
11440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11441 cat >> confdefs.h <<EOF
11442 #define $ac_tr_hdr 1
11446 echo "$ac_t""no" 1>&6
11451 if test $ac_cv_header_pthread_h = yes ; then
11452 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11453 echo "configure:11454: checking POSIX thread version" >&5
11454 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11462 # include <pthread.h>
11463 /* this check could be improved */
11464 # ifdef PTHREAD_ONCE_INIT
11465 pthread_version_final;
11469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11470 egrep "pthread_version_final" >/dev/null 2>&1; then
11472 ol_pthread_final=yes
11475 ol_pthread_final=no
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11484 # include <pthread.h>
11485 /* this check could be improved */
11486 # ifdef pthread_once_init
11487 pthread_version_draft4;
11491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11492 egrep "pthread_version_draft4" >/dev/null 2>&1; then
11494 ol_pthread_draft4=yes
11497 ol_pthread_draft4=no
11502 if test $ol_pthread_final = yes -a $ol_pthread_draft4 = no; then
11503 ol_cv_pthread_version=final
11504 elif test $ol_pthread_final = no -a $ol_pthread_draft4 = yes; then
11505 ol_cv_pthread_version=draft4
11507 ol_cv_pthread_version=unknown
11512 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11515 if test $ol_cv_pthread_version = final ; then
11516 cat >> confdefs.h <<\EOF
11517 #define HAVE_PTHREADS_FINAL 1
11520 elif test $ol_cv_pthread_version = draft4 ; then
11521 cat >> confdefs.h <<\EOF
11522 #define HAVE_PTHREADS_D4 1
11526 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11529 # consider threads found
11530 ol_with_threads=found
11533 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11534 echo "configure:11535: checking for LinuxThreads pthread.h" >&5
11535 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11536 echo $ac_n "(cached) $ac_c" 1>&6
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11541 #include <pthread.h>
11543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11544 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11546 ol_cv_header_linux_threads=yes
11549 ol_cv_header_linux_threads=no
11556 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11557 if test $ol_cv_header_linux_threads = yes; then
11558 cat >> confdefs.h <<\EOF
11559 #define HAVE_LINUX_THREADS 1
11565 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11566 echo "configure:11567: checking for GNU Pth pthread.h" >&5
11567 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11568 echo $ac_n "(cached) $ac_c" 1>&6
11570 cat > conftest.$ac_ext <<EOF
11571 #line 11572 "configure"
11572 #include "confdefs.h"
11573 #include <pthread.h>
11574 #ifdef _POSIX_THREAD_IS_GNU_PTH
11579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11580 egrep "__gnu_pth__" >/dev/null 2>&1; then
11582 ol_cv_header_gnu_pth_pthread_h=yes
11585 ol_cv_header_gnu_pth_pthread_h=no
11592 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11595 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11596 for ac_hdr in sched.h
11598 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11599 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11600 echo "configure:11601: checking for $ac_hdr" >&5
11601 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11602 echo $ac_n "(cached) $ac_c" 1>&6
11604 cat > conftest.$ac_ext <<EOF
11605 #line 11606 "configure"
11606 #include "confdefs.h"
11609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11610 { (eval echo configure:11611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11612 if test -z "$ac_err"; then
11614 eval "ac_cv_header_$ac_safe=yes"
11617 echo "configure: failed program was:" >&5
11618 cat conftest.$ac_ext >&5
11620 eval "ac_cv_header_$ac_safe=no"
11624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11625 echo "$ac_t""yes" 1>&6
11626 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11627 cat >> confdefs.h <<EOF
11628 #define $ac_tr_hdr 1
11632 echo "$ac_t""no" 1>&6
11639 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11640 echo "configure:11641: checking for pthread_create in default libraries" >&5
11641 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11642 echo $ac_n "(cached) $ac_c" 1>&6
11645 if test "$cross_compiling" = yes; then
11646 cat > conftest.$ac_ext <<EOF
11647 #line 11648 "configure"
11648 #include "confdefs.h"
11649 /* pthread test headers */
11650 #include <pthread.h>
11652 #define NULL (void*)0
11655 static void *task(p)
11658 return (void *) (p == NULL);
11663 /* pthread test function */
11668 #ifdef HAVE_PTHREADS_FINAL
11669 /* Final pthreads */
11670 pthread_attr_t attr;
11672 status = pthread_attr_init(&attr);
11673 if( status ) return status;
11675 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11677 #if defined( PTHREAD_CREATE_JOINABLE )
11678 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11680 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11683 #ifdef PTHREAD_CREATE_DETACHED
11685 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11688 if( status ) return status;
11691 status = pthread_create( &t, &attr, task, NULL );
11692 if( status ) return status;
11694 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11696 /* give thread a chance to complete */
11697 /* it should remain joinable and hence detachable */
11700 status = pthread_detach( t );
11701 if( status ) return status;
11706 /* Draft 4 pthreads */
11707 status = pthread_create( &t, pthread_attr_default, task, NULL );
11708 if( status ) return status;
11711 /* give thread a chance to complete */
11712 /* it should remain joinable and hence detachable */
11715 status = pthread_detach( &t );
11716 if( status ) return status;
11720 #ifdef HAVE_LINUX_THREADS
11721 pthread_kill_other_threads_np();
11728 if { (eval echo configure:11729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11730 ol_cv_pthread_create=yes
11732 echo "configure: failed program was:" >&5
11733 cat conftest.$ac_ext >&5
11735 ol_cv_pthread_create=no
11739 cat > conftest.$ac_ext <<EOF
11740 #line 11741 "configure"
11741 #include "confdefs.h"
11742 /* pthread test headers */
11743 #include <pthread.h>
11745 #define NULL (void*)0
11748 static void *task(p)
11751 return (void *) (p == NULL);
11755 int main(argc, argv)
11760 /* pthread test function */
11765 #ifdef HAVE_PTHREADS_FINAL
11766 /* Final pthreads */
11767 pthread_attr_t attr;
11769 status = pthread_attr_init(&attr);
11770 if( status ) return status;
11772 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11774 #if defined( PTHREAD_CREATE_JOINABLE )
11775 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11777 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11780 #ifdef PTHREAD_CREATE_DETACHED
11782 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11785 if( status ) return status;
11788 status = pthread_create( &t, &attr, task, NULL );
11789 if( status ) return status;
11791 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11793 /* give thread a chance to complete */
11794 /* it should remain joinable and hence detachable */
11797 status = pthread_detach( t );
11798 if( status ) return status;
11803 /* Draft 4 pthreads */
11804 status = pthread_create( &t, pthread_attr_default, task, NULL );
11805 if( status ) return status;
11808 /* give thread a chance to complete */
11809 /* it should remain joinable and hence detachable */
11812 status = pthread_detach( &t );
11813 if( status ) return status;
11817 #ifdef HAVE_LINUX_THREADS
11818 pthread_kill_other_threads_np();
11826 if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11828 ol_cv_pthread_create=yes
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11833 ol_cv_pthread_create=no
11840 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11842 if test $ol_cv_pthread_create != no ; then
11843 ol_link_threads=posix
11844 ol_link_pthreads=""
11847 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11848 if test "$ol_link_threads" = no ; then
11850 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11851 echo "configure:11852: checking for pthread link with -kthread" >&5
11852 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11853 echo $ac_n "(cached) $ac_c" 1>&6
11858 LIBS="-kthread $LIBS"
11860 if test "$cross_compiling" = yes; then
11861 cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11864 /* pthread test headers */
11865 #include <pthread.h>
11867 #define NULL (void*)0
11870 static void *task(p)
11873 return (void *) (p == NULL);
11878 /* pthread test function */
11883 #ifdef HAVE_PTHREADS_FINAL
11884 /* Final pthreads */
11885 pthread_attr_t attr;
11887 status = pthread_attr_init(&attr);
11888 if( status ) return status;
11890 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11892 #if defined( PTHREAD_CREATE_JOINABLE )
11893 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11895 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11898 #ifdef PTHREAD_CREATE_DETACHED
11900 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
11903 if( status ) return status;
11906 status = pthread_create( &t, &attr, task, NULL );
11907 if( status ) return status;
11909 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
11911 /* give thread a chance to complete */
11912 /* it should remain joinable and hence detachable */
11915 status = pthread_detach( t );
11916 if( status ) return status;
11921 /* Draft 4 pthreads */
11922 status = pthread_create( &t, pthread_attr_default, task, NULL );
11923 if( status ) return status;
11926 /* give thread a chance to complete */
11927 /* it should remain joinable and hence detachable */
11930 status = pthread_detach( &t );
11931 if( status ) return status;
11935 #ifdef HAVE_LINUX_THREADS
11936 pthread_kill_other_threads_np();
11943 if { (eval echo configure:11944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11945 ol_cv_pthread_kthread=yes
11947 echo "configure: failed program was:" >&5
11948 cat conftest.$ac_ext >&5
11950 ol_cv_pthread_kthread=no
11954 cat > conftest.$ac_ext <<EOF
11955 #line 11956 "configure"
11956 #include "confdefs.h"
11957 /* pthread test headers */
11958 #include <pthread.h>
11960 #define NULL (void*)0
11963 static void *task(p)
11966 return (void *) (p == NULL);
11970 int main(argc, argv)
11975 /* pthread test function */
11980 #ifdef HAVE_PTHREADS_FINAL
11981 /* Final pthreads */
11982 pthread_attr_t attr;
11984 status = pthread_attr_init(&attr);
11985 if( status ) return status;
11987 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
11989 #if defined( PTHREAD_CREATE_JOINABLE )
11990 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
11992 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
11995 #ifdef PTHREAD_CREATE_DETACHED
11997 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12000 if( status ) return status;
12003 status = pthread_create( &t, &attr, task, NULL );
12004 if( status ) return status;
12006 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12008 /* give thread a chance to complete */
12009 /* it should remain joinable and hence detachable */
12012 status = pthread_detach( t );
12013 if( status ) return status;
12018 /* Draft 4 pthreads */
12019 status = pthread_create( &t, pthread_attr_default, task, NULL );
12020 if( status ) return status;
12023 /* give thread a chance to complete */
12024 /* it should remain joinable and hence detachable */
12027 status = pthread_detach( &t );
12028 if( status ) return status;
12032 #ifdef HAVE_LINUX_THREADS
12033 pthread_kill_other_threads_np();
12041 if { (eval echo configure:12042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12043 ol_cv_pthread_kthread=yes
12045 echo "configure: failed program was:" >&5
12046 cat conftest.$ac_ext >&5
12048 ol_cv_pthread_kthread=no
12059 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12061 if test $ol_cv_pthread_kthread = yes ; then
12062 ol_link_pthreads="-kthread"
12063 ol_link_threads=posix
12067 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12068 if test "$ol_link_threads" = no ; then
12070 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12071 echo "configure:12072: checking for pthread link with -pthread" >&5
12072 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12073 echo $ac_n "(cached) $ac_c" 1>&6
12078 LIBS="-pthread $LIBS"
12080 if test "$cross_compiling" = yes; then
12081 cat > conftest.$ac_ext <<EOF
12082 #line 12083 "configure"
12083 #include "confdefs.h"
12084 /* pthread test headers */
12085 #include <pthread.h>
12087 #define NULL (void*)0
12090 static void *task(p)
12093 return (void *) (p == NULL);
12098 /* pthread test function */
12103 #ifdef HAVE_PTHREADS_FINAL
12104 /* Final pthreads */
12105 pthread_attr_t attr;
12107 status = pthread_attr_init(&attr);
12108 if( status ) return status;
12110 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12112 #if defined( PTHREAD_CREATE_JOINABLE )
12113 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12115 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12118 #ifdef PTHREAD_CREATE_DETACHED
12120 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12123 if( status ) return status;
12126 status = pthread_create( &t, &attr, task, NULL );
12127 if( status ) return status;
12129 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12131 /* give thread a chance to complete */
12132 /* it should remain joinable and hence detachable */
12135 status = pthread_detach( t );
12136 if( status ) return status;
12141 /* Draft 4 pthreads */
12142 status = pthread_create( &t, pthread_attr_default, task, NULL );
12143 if( status ) return status;
12146 /* give thread a chance to complete */
12147 /* it should remain joinable and hence detachable */
12150 status = pthread_detach( &t );
12151 if( status ) return status;
12155 #ifdef HAVE_LINUX_THREADS
12156 pthread_kill_other_threads_np();
12163 if { (eval echo configure:12164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12165 ol_cv_pthread_pthread=yes
12167 echo "configure: failed program was:" >&5
12168 cat conftest.$ac_ext >&5
12170 ol_cv_pthread_pthread=no
12174 cat > conftest.$ac_ext <<EOF
12175 #line 12176 "configure"
12176 #include "confdefs.h"
12177 /* pthread test headers */
12178 #include <pthread.h>
12180 #define NULL (void*)0
12183 static void *task(p)
12186 return (void *) (p == NULL);
12190 int main(argc, argv)
12195 /* pthread test function */
12200 #ifdef HAVE_PTHREADS_FINAL
12201 /* Final pthreads */
12202 pthread_attr_t attr;
12204 status = pthread_attr_init(&attr);
12205 if( status ) return status;
12207 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12209 #if defined( PTHREAD_CREATE_JOINABLE )
12210 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12212 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12215 #ifdef PTHREAD_CREATE_DETACHED
12217 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12220 if( status ) return status;
12223 status = pthread_create( &t, &attr, task, NULL );
12224 if( status ) return status;
12226 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12228 /* give thread a chance to complete */
12229 /* it should remain joinable and hence detachable */
12232 status = pthread_detach( t );
12233 if( status ) return status;
12238 /* Draft 4 pthreads */
12239 status = pthread_create( &t, pthread_attr_default, task, NULL );
12240 if( status ) return status;
12243 /* give thread a chance to complete */
12244 /* it should remain joinable and hence detachable */
12247 status = pthread_detach( &t );
12248 if( status ) return status;
12252 #ifdef HAVE_LINUX_THREADS
12253 pthread_kill_other_threads_np();
12261 if { (eval echo configure:12262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12263 ol_cv_pthread_pthread=yes
12265 echo "configure: failed program was:" >&5
12266 cat conftest.$ac_ext >&5
12268 ol_cv_pthread_pthread=no
12279 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12281 if test $ol_cv_pthread_pthread = yes ; then
12282 ol_link_pthreads="-pthread"
12283 ol_link_threads=posix
12287 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12288 if test "$ol_link_threads" = no ; then
12290 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12291 echo "configure:12292: checking for pthread link with -pthreads" >&5
12292 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12293 echo $ac_n "(cached) $ac_c" 1>&6
12298 LIBS="-pthreads $LIBS"
12300 if test "$cross_compiling" = yes; then
12301 cat > conftest.$ac_ext <<EOF
12302 #line 12303 "configure"
12303 #include "confdefs.h"
12304 /* pthread test headers */
12305 #include <pthread.h>
12307 #define NULL (void*)0
12310 static void *task(p)
12313 return (void *) (p == NULL);
12318 /* pthread test function */
12323 #ifdef HAVE_PTHREADS_FINAL
12324 /* Final pthreads */
12325 pthread_attr_t attr;
12327 status = pthread_attr_init(&attr);
12328 if( status ) return status;
12330 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12332 #if defined( PTHREAD_CREATE_JOINABLE )
12333 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12335 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12338 #ifdef PTHREAD_CREATE_DETACHED
12340 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12343 if( status ) return status;
12346 status = pthread_create( &t, &attr, task, NULL );
12347 if( status ) return status;
12349 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12351 /* give thread a chance to complete */
12352 /* it should remain joinable and hence detachable */
12355 status = pthread_detach( t );
12356 if( status ) return status;
12361 /* Draft 4 pthreads */
12362 status = pthread_create( &t, pthread_attr_default, task, NULL );
12363 if( status ) return status;
12366 /* give thread a chance to complete */
12367 /* it should remain joinable and hence detachable */
12370 status = pthread_detach( &t );
12371 if( status ) return status;
12375 #ifdef HAVE_LINUX_THREADS
12376 pthread_kill_other_threads_np();
12383 if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12385 ol_cv_pthread_pthreads=yes
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12390 ol_cv_pthread_pthreads=no
12394 cat > conftest.$ac_ext <<EOF
12395 #line 12396 "configure"
12396 #include "confdefs.h"
12397 /* pthread test headers */
12398 #include <pthread.h>
12400 #define NULL (void*)0
12403 static void *task(p)
12406 return (void *) (p == NULL);
12410 int main(argc, argv)
12415 /* pthread test function */
12420 #ifdef HAVE_PTHREADS_FINAL
12421 /* Final pthreads */
12422 pthread_attr_t attr;
12424 status = pthread_attr_init(&attr);
12425 if( status ) return status;
12427 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12429 #if defined( PTHREAD_CREATE_JOINABLE )
12430 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12432 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12435 #ifdef PTHREAD_CREATE_DETACHED
12437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12440 if( status ) return status;
12443 status = pthread_create( &t, &attr, task, NULL );
12444 if( status ) return status;
12446 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12448 /* give thread a chance to complete */
12449 /* it should remain joinable and hence detachable */
12452 status = pthread_detach( t );
12453 if( status ) return status;
12458 /* Draft 4 pthreads */
12459 status = pthread_create( &t, pthread_attr_default, task, NULL );
12460 if( status ) return status;
12463 /* give thread a chance to complete */
12464 /* it should remain joinable and hence detachable */
12467 status = pthread_detach( &t );
12468 if( status ) return status;
12472 #ifdef HAVE_LINUX_THREADS
12473 pthread_kill_other_threads_np();
12481 if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12483 ol_cv_pthread_pthreads=yes
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12488 ol_cv_pthread_pthreads=no
12499 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12501 if test $ol_cv_pthread_pthreads = yes ; then
12502 ol_link_pthreads="-pthreads"
12503 ol_link_threads=posix
12507 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12508 if test "$ol_link_threads" = no ; then
12510 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12511 echo "configure:12512: checking for pthread link with -mthreads" >&5
12512 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12513 echo $ac_n "(cached) $ac_c" 1>&6
12518 LIBS="-mthreads $LIBS"
12520 if test "$cross_compiling" = yes; then
12521 cat > conftest.$ac_ext <<EOF
12522 #line 12523 "configure"
12523 #include "confdefs.h"
12524 /* pthread test headers */
12525 #include <pthread.h>
12527 #define NULL (void*)0
12530 static void *task(p)
12533 return (void *) (p == NULL);
12538 /* pthread test function */
12543 #ifdef HAVE_PTHREADS_FINAL
12544 /* Final pthreads */
12545 pthread_attr_t attr;
12547 status = pthread_attr_init(&attr);
12548 if( status ) return status;
12550 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12552 #if defined( PTHREAD_CREATE_JOINABLE )
12553 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12555 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12558 #ifdef PTHREAD_CREATE_DETACHED
12560 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12563 if( status ) return status;
12566 status = pthread_create( &t, &attr, task, NULL );
12567 if( status ) return status;
12569 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12571 /* give thread a chance to complete */
12572 /* it should remain joinable and hence detachable */
12575 status = pthread_detach( t );
12576 if( status ) return status;
12581 /* Draft 4 pthreads */
12582 status = pthread_create( &t, pthread_attr_default, task, NULL );
12583 if( status ) return status;
12586 /* give thread a chance to complete */
12587 /* it should remain joinable and hence detachable */
12590 status = pthread_detach( &t );
12591 if( status ) return status;
12595 #ifdef HAVE_LINUX_THREADS
12596 pthread_kill_other_threads_np();
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12605 ol_cv_pthread_mthreads=yes
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12610 ol_cv_pthread_mthreads=no
12614 cat > conftest.$ac_ext <<EOF
12615 #line 12616 "configure"
12616 #include "confdefs.h"
12617 /* pthread test headers */
12618 #include <pthread.h>
12620 #define NULL (void*)0
12623 static void *task(p)
12626 return (void *) (p == NULL);
12630 int main(argc, argv)
12635 /* pthread test function */
12640 #ifdef HAVE_PTHREADS_FINAL
12641 /* Final pthreads */
12642 pthread_attr_t attr;
12644 status = pthread_attr_init(&attr);
12645 if( status ) return status;
12647 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12649 #if defined( PTHREAD_CREATE_JOINABLE )
12650 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12652 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12655 #ifdef PTHREAD_CREATE_DETACHED
12657 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12660 if( status ) return status;
12663 status = pthread_create( &t, &attr, task, NULL );
12664 if( status ) return status;
12666 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12668 /* give thread a chance to complete */
12669 /* it should remain joinable and hence detachable */
12672 status = pthread_detach( t );
12673 if( status ) return status;
12678 /* Draft 4 pthreads */
12679 status = pthread_create( &t, pthread_attr_default, task, NULL );
12680 if( status ) return status;
12683 /* give thread a chance to complete */
12684 /* it should remain joinable and hence detachable */
12687 status = pthread_detach( &t );
12688 if( status ) return status;
12692 #ifdef HAVE_LINUX_THREADS
12693 pthread_kill_other_threads_np();
12701 if { (eval echo configure:12702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12703 ol_cv_pthread_mthreads=yes
12705 echo "configure: failed program was:" >&5
12706 cat conftest.$ac_ext >&5
12708 ol_cv_pthread_mthreads=no
12719 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12721 if test $ol_cv_pthread_mthreads = yes ; then
12722 ol_link_pthreads="-mthreads"
12723 ol_link_threads=posix
12727 # Pthread try link: -thread (ol_cv_pthread_thread)
12728 if test "$ol_link_threads" = no ; then
12730 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12731 echo "configure:12732: checking for pthread link with -thread" >&5
12732 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12733 echo $ac_n "(cached) $ac_c" 1>&6
12738 LIBS="-thread $LIBS"
12740 if test "$cross_compiling" = yes; then
12741 cat > conftest.$ac_ext <<EOF
12742 #line 12743 "configure"
12743 #include "confdefs.h"
12744 /* pthread test headers */
12745 #include <pthread.h>
12747 #define NULL (void*)0
12750 static void *task(p)
12753 return (void *) (p == NULL);
12758 /* pthread test function */
12763 #ifdef HAVE_PTHREADS_FINAL
12764 /* Final pthreads */
12765 pthread_attr_t attr;
12767 status = pthread_attr_init(&attr);
12768 if( status ) return status;
12770 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12772 #if defined( PTHREAD_CREATE_JOINABLE )
12773 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12775 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12778 #ifdef PTHREAD_CREATE_DETACHED
12780 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12783 if( status ) return status;
12786 status = pthread_create( &t, &attr, task, NULL );
12787 if( status ) return status;
12789 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12791 /* give thread a chance to complete */
12792 /* it should remain joinable and hence detachable */
12795 status = pthread_detach( t );
12796 if( status ) return status;
12801 /* Draft 4 pthreads */
12802 status = pthread_create( &t, pthread_attr_default, task, NULL );
12803 if( status ) return status;
12806 /* give thread a chance to complete */
12807 /* it should remain joinable and hence detachable */
12810 status = pthread_detach( &t );
12811 if( status ) return status;
12815 #ifdef HAVE_LINUX_THREADS
12816 pthread_kill_other_threads_np();
12823 if { (eval echo configure:12824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12825 ol_cv_pthread_thread=yes
12827 echo "configure: failed program was:" >&5
12828 cat conftest.$ac_ext >&5
12830 ol_cv_pthread_thread=no
12834 cat > conftest.$ac_ext <<EOF
12835 #line 12836 "configure"
12836 #include "confdefs.h"
12837 /* pthread test headers */
12838 #include <pthread.h>
12840 #define NULL (void*)0
12843 static void *task(p)
12846 return (void *) (p == NULL);
12850 int main(argc, argv)
12855 /* pthread test function */
12860 #ifdef HAVE_PTHREADS_FINAL
12861 /* Final pthreads */
12862 pthread_attr_t attr;
12864 status = pthread_attr_init(&attr);
12865 if( status ) return status;
12867 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12869 #if defined( PTHREAD_CREATE_JOINABLE )
12870 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12872 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12875 #ifdef PTHREAD_CREATE_DETACHED
12877 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
12880 if( status ) return status;
12883 status = pthread_create( &t, &attr, task, NULL );
12884 if( status ) return status;
12886 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
12888 /* give thread a chance to complete */
12889 /* it should remain joinable and hence detachable */
12892 status = pthread_detach( t );
12893 if( status ) return status;
12898 /* Draft 4 pthreads */
12899 status = pthread_create( &t, pthread_attr_default, task, NULL );
12900 if( status ) return status;
12903 /* give thread a chance to complete */
12904 /* it should remain joinable and hence detachable */
12907 status = pthread_detach( &t );
12908 if( status ) return status;
12912 #ifdef HAVE_LINUX_THREADS
12913 pthread_kill_other_threads_np();
12921 if { (eval echo configure:12922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12923 ol_cv_pthread_thread=yes
12925 echo "configure: failed program was:" >&5
12926 cat conftest.$ac_ext >&5
12928 ol_cv_pthread_thread=no
12939 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12941 if test $ol_cv_pthread_thread = yes ; then
12942 ol_link_pthreads="-thread"
12943 ol_link_threads=posix
12948 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12949 if test "$ol_link_threads" = no ; then
12950 # try -lpthread -lmach -lexc -lc_r
12951 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12952 echo "configure:12953: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12953 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12954 echo $ac_n "(cached) $ac_c" 1>&6
12959 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12961 if test "$cross_compiling" = yes; then
12962 cat > conftest.$ac_ext <<EOF
12963 #line 12964 "configure"
12964 #include "confdefs.h"
12965 /* pthread test headers */
12966 #include <pthread.h>
12968 #define NULL (void*)0
12971 static void *task(p)
12974 return (void *) (p == NULL);
12979 /* pthread test function */
12984 #ifdef HAVE_PTHREADS_FINAL
12985 /* Final pthreads */
12986 pthread_attr_t attr;
12988 status = pthread_attr_init(&attr);
12989 if( status ) return status;
12991 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
12993 #if defined( PTHREAD_CREATE_JOINABLE )
12994 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
12996 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
12999 #ifdef PTHREAD_CREATE_DETACHED
13001 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13004 if( status ) return status;
13007 status = pthread_create( &t, &attr, task, NULL );
13008 if( status ) return status;
13010 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13012 /* give thread a chance to complete */
13013 /* it should remain joinable and hence detachable */
13016 status = pthread_detach( t );
13017 if( status ) return status;
13022 /* Draft 4 pthreads */
13023 status = pthread_create( &t, pthread_attr_default, task, NULL );
13024 if( status ) return status;
13027 /* give thread a chance to complete */
13028 /* it should remain joinable and hence detachable */
13031 status = pthread_detach( &t );
13032 if( status ) return status;
13036 #ifdef HAVE_LINUX_THREADS
13037 pthread_kill_other_threads_np();
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13046 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13051 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13055 cat > conftest.$ac_ext <<EOF
13056 #line 13057 "configure"
13057 #include "confdefs.h"
13058 /* pthread test headers */
13059 #include <pthread.h>
13061 #define NULL (void*)0
13064 static void *task(p)
13067 return (void *) (p == NULL);
13071 int main(argc, argv)
13076 /* pthread test function */
13081 #ifdef HAVE_PTHREADS_FINAL
13082 /* Final pthreads */
13083 pthread_attr_t attr;
13085 status = pthread_attr_init(&attr);
13086 if( status ) return status;
13088 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13090 #if defined( PTHREAD_CREATE_JOINABLE )
13091 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13093 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13096 #ifdef PTHREAD_CREATE_DETACHED
13098 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13101 if( status ) return status;
13104 status = pthread_create( &t, &attr, task, NULL );
13105 if( status ) return status;
13107 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13109 /* give thread a chance to complete */
13110 /* it should remain joinable and hence detachable */
13113 status = pthread_detach( t );
13114 if( status ) return status;
13119 /* Draft 4 pthreads */
13120 status = pthread_create( &t, pthread_attr_default, task, NULL );
13121 if( status ) return status;
13124 /* give thread a chance to complete */
13125 /* it should remain joinable and hence detachable */
13128 status = pthread_detach( &t );
13129 if( status ) return status;
13133 #ifdef HAVE_LINUX_THREADS
13134 pthread_kill_other_threads_np();
13142 if { (eval echo configure:13143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13144 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13146 echo "configure: failed program was:" >&5
13147 cat conftest.$ac_ext >&5
13149 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13160 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13162 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13163 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13164 ol_link_threads=posix
13168 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13169 if test "$ol_link_threads" = no ; then
13170 # try -lpthread -lmach -lexc
13171 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13172 echo "configure:13173: checking for pthread link with -lpthread -lmach -lexc" >&5
13173 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13174 echo $ac_n "(cached) $ac_c" 1>&6
13179 LIBS="-lpthread -lmach -lexc $LIBS"
13181 if test "$cross_compiling" = yes; then
13182 cat > conftest.$ac_ext <<EOF
13183 #line 13184 "configure"
13184 #include "confdefs.h"
13185 /* pthread test headers */
13186 #include <pthread.h>
13188 #define NULL (void*)0
13191 static void *task(p)
13194 return (void *) (p == NULL);
13199 /* pthread test function */
13204 #ifdef HAVE_PTHREADS_FINAL
13205 /* Final pthreads */
13206 pthread_attr_t attr;
13208 status = pthread_attr_init(&attr);
13209 if( status ) return status;
13211 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13213 #if defined( PTHREAD_CREATE_JOINABLE )
13214 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13216 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13219 #ifdef PTHREAD_CREATE_DETACHED
13221 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13224 if( status ) return status;
13227 status = pthread_create( &t, &attr, task, NULL );
13228 if( status ) return status;
13230 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13232 /* give thread a chance to complete */
13233 /* it should remain joinable and hence detachable */
13236 status = pthread_detach( t );
13237 if( status ) return status;
13242 /* Draft 4 pthreads */
13243 status = pthread_create( &t, pthread_attr_default, task, NULL );
13244 if( status ) return status;
13247 /* give thread a chance to complete */
13248 /* it should remain joinable and hence detachable */
13251 status = pthread_detach( &t );
13252 if( status ) return status;
13256 #ifdef HAVE_LINUX_THREADS
13257 pthread_kill_other_threads_np();
13264 if { (eval echo configure:13265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13266 ol_cv_pthread_lpthread_lmach_lexc=yes
13268 echo "configure: failed program was:" >&5
13269 cat conftest.$ac_ext >&5
13271 ol_cv_pthread_lpthread_lmach_lexc=no
13275 cat > conftest.$ac_ext <<EOF
13276 #line 13277 "configure"
13277 #include "confdefs.h"
13278 /* pthread test headers */
13279 #include <pthread.h>
13281 #define NULL (void*)0
13284 static void *task(p)
13287 return (void *) (p == NULL);
13291 int main(argc, argv)
13296 /* pthread test function */
13301 #ifdef HAVE_PTHREADS_FINAL
13302 /* Final pthreads */
13303 pthread_attr_t attr;
13305 status = pthread_attr_init(&attr);
13306 if( status ) return status;
13308 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13310 #if defined( PTHREAD_CREATE_JOINABLE )
13311 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13313 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13316 #ifdef PTHREAD_CREATE_DETACHED
13318 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13321 if( status ) return status;
13324 status = pthread_create( &t, &attr, task, NULL );
13325 if( status ) return status;
13327 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13329 /* give thread a chance to complete */
13330 /* it should remain joinable and hence detachable */
13333 status = pthread_detach( t );
13334 if( status ) return status;
13339 /* Draft 4 pthreads */
13340 status = pthread_create( &t, pthread_attr_default, task, NULL );
13341 if( status ) return status;
13344 /* give thread a chance to complete */
13345 /* it should remain joinable and hence detachable */
13348 status = pthread_detach( &t );
13349 if( status ) return status;
13353 #ifdef HAVE_LINUX_THREADS
13354 pthread_kill_other_threads_np();
13362 if { (eval echo configure:13363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13364 ol_cv_pthread_lpthread_lmach_lexc=yes
13366 echo "configure: failed program was:" >&5
13367 cat conftest.$ac_ext >&5
13369 ol_cv_pthread_lpthread_lmach_lexc=no
13380 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13382 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13383 ol_link_pthreads="-lpthread -lmach -lexc"
13384 ol_link_threads=posix
13389 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13390 if test "$ol_link_threads" = no ; then
13391 # try -lpthread -Wl,-woff,85
13392 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13393 echo "configure:13394: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13394 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13395 echo $ac_n "(cached) $ac_c" 1>&6
13400 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13402 if test "$cross_compiling" = yes; then
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 /* pthread test headers */
13407 #include <pthread.h>
13409 #define NULL (void*)0
13412 static void *task(p)
13415 return (void *) (p == NULL);
13420 /* pthread test function */
13425 #ifdef HAVE_PTHREADS_FINAL
13426 /* Final pthreads */
13427 pthread_attr_t attr;
13429 status = pthread_attr_init(&attr);
13430 if( status ) return status;
13432 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13434 #if defined( PTHREAD_CREATE_JOINABLE )
13435 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13437 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13440 #ifdef PTHREAD_CREATE_DETACHED
13442 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13445 if( status ) return status;
13448 status = pthread_create( &t, &attr, task, NULL );
13449 if( status ) return status;
13451 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13453 /* give thread a chance to complete */
13454 /* it should remain joinable and hence detachable */
13457 status = pthread_detach( t );
13458 if( status ) return status;
13463 /* Draft 4 pthreads */
13464 status = pthread_create( &t, pthread_attr_default, task, NULL );
13465 if( status ) return status;
13468 /* give thread a chance to complete */
13469 /* it should remain joinable and hence detachable */
13472 status = pthread_detach( &t );
13473 if( status ) return status;
13477 #ifdef HAVE_LINUX_THREADS
13478 pthread_kill_other_threads_np();
13485 if { (eval echo configure:13486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13487 ol_cv_pthread_lib_lpthread_woff=yes
13489 echo "configure: failed program was:" >&5
13490 cat conftest.$ac_ext >&5
13492 ol_cv_pthread_lib_lpthread_woff=no
13496 cat > conftest.$ac_ext <<EOF
13497 #line 13498 "configure"
13498 #include "confdefs.h"
13499 /* pthread test headers */
13500 #include <pthread.h>
13502 #define NULL (void*)0
13505 static void *task(p)
13508 return (void *) (p == NULL);
13512 int main(argc, argv)
13517 /* pthread test function */
13522 #ifdef HAVE_PTHREADS_FINAL
13523 /* Final pthreads */
13524 pthread_attr_t attr;
13526 status = pthread_attr_init(&attr);
13527 if( status ) return status;
13529 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13531 #if defined( PTHREAD_CREATE_JOINABLE )
13532 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13534 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13537 #ifdef PTHREAD_CREATE_DETACHED
13539 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13542 if( status ) return status;
13545 status = pthread_create( &t, &attr, task, NULL );
13546 if( status ) return status;
13548 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13550 /* give thread a chance to complete */
13551 /* it should remain joinable and hence detachable */
13554 status = pthread_detach( t );
13555 if( status ) return status;
13560 /* Draft 4 pthreads */
13561 status = pthread_create( &t, pthread_attr_default, task, NULL );
13562 if( status ) return status;
13565 /* give thread a chance to complete */
13566 /* it should remain joinable and hence detachable */
13569 status = pthread_detach( &t );
13570 if( status ) return status;
13574 #ifdef HAVE_LINUX_THREADS
13575 pthread_kill_other_threads_np();
13583 if { (eval echo configure:13584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13585 ol_cv_pthread_lib_lpthread_woff=yes
13587 echo "configure: failed program was:" >&5
13588 cat conftest.$ac_ext >&5
13590 ol_cv_pthread_lib_lpthread_woff=no
13601 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13603 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13604 ol_link_pthreads="-lpthread -Wl,-woff,85"
13605 ol_link_threads=posix
13610 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13611 if test "$ol_link_threads" = no ; then
13613 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13614 echo "configure:13615: checking for pthread link with -lpthread" >&5
13615 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13616 echo $ac_n "(cached) $ac_c" 1>&6
13621 LIBS="-lpthread $LIBS"
13623 if test "$cross_compiling" = yes; then
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13627 /* pthread test headers */
13628 #include <pthread.h>
13630 #define NULL (void*)0
13633 static void *task(p)
13636 return (void *) (p == NULL);
13641 /* pthread test function */
13646 #ifdef HAVE_PTHREADS_FINAL
13647 /* Final pthreads */
13648 pthread_attr_t attr;
13650 status = pthread_attr_init(&attr);
13651 if( status ) return status;
13653 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13655 #if defined( PTHREAD_CREATE_JOINABLE )
13656 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13658 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13661 #ifdef PTHREAD_CREATE_DETACHED
13663 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13666 if( status ) return status;
13669 status = pthread_create( &t, &attr, task, NULL );
13670 if( status ) return status;
13672 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13674 /* give thread a chance to complete */
13675 /* it should remain joinable and hence detachable */
13678 status = pthread_detach( t );
13679 if( status ) return status;
13684 /* Draft 4 pthreads */
13685 status = pthread_create( &t, pthread_attr_default, task, NULL );
13686 if( status ) return status;
13689 /* give thread a chance to complete */
13690 /* it should remain joinable and hence detachable */
13693 status = pthread_detach( &t );
13694 if( status ) return status;
13698 #ifdef HAVE_LINUX_THREADS
13699 pthread_kill_other_threads_np();
13706 if { (eval echo configure:13707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13708 ol_cv_pthread_lpthread=yes
13710 echo "configure: failed program was:" >&5
13711 cat conftest.$ac_ext >&5
13713 ol_cv_pthread_lpthread=no
13717 cat > conftest.$ac_ext <<EOF
13718 #line 13719 "configure"
13719 #include "confdefs.h"
13720 /* pthread test headers */
13721 #include <pthread.h>
13723 #define NULL (void*)0
13726 static void *task(p)
13729 return (void *) (p == NULL);
13733 int main(argc, argv)
13738 /* pthread test function */
13743 #ifdef HAVE_PTHREADS_FINAL
13744 /* Final pthreads */
13745 pthread_attr_t attr;
13747 status = pthread_attr_init(&attr);
13748 if( status ) return status;
13750 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13752 #if defined( PTHREAD_CREATE_JOINABLE )
13753 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13755 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13758 #ifdef PTHREAD_CREATE_DETACHED
13760 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13763 if( status ) return status;
13766 status = pthread_create( &t, &attr, task, NULL );
13767 if( status ) return status;
13769 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13771 /* give thread a chance to complete */
13772 /* it should remain joinable and hence detachable */
13775 status = pthread_detach( t );
13776 if( status ) return status;
13781 /* Draft 4 pthreads */
13782 status = pthread_create( &t, pthread_attr_default, task, NULL );
13783 if( status ) return status;
13786 /* give thread a chance to complete */
13787 /* it should remain joinable and hence detachable */
13790 status = pthread_detach( &t );
13791 if( status ) return status;
13795 #ifdef HAVE_LINUX_THREADS
13796 pthread_kill_other_threads_np();
13804 if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13806 ol_cv_pthread_lpthread=yes
13808 echo "configure: failed program was:" >&5
13809 cat conftest.$ac_ext >&5
13811 ol_cv_pthread_lpthread=no
13822 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13824 if test $ol_cv_pthread_lpthread = yes ; then
13825 ol_link_pthreads="-lpthread"
13826 ol_link_threads=posix
13830 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13831 if test "$ol_link_threads" = no ; then
13833 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13834 echo "configure:13835: checking for pthread link with -lc_r" >&5
13835 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13836 echo $ac_n "(cached) $ac_c" 1>&6
13843 if test "$cross_compiling" = yes; then
13844 cat > conftest.$ac_ext <<EOF
13845 #line 13846 "configure"
13846 #include "confdefs.h"
13847 /* pthread test headers */
13848 #include <pthread.h>
13850 #define NULL (void*)0
13853 static void *task(p)
13856 return (void *) (p == NULL);
13861 /* pthread test function */
13866 #ifdef HAVE_PTHREADS_FINAL
13867 /* Final pthreads */
13868 pthread_attr_t attr;
13870 status = pthread_attr_init(&attr);
13871 if( status ) return status;
13873 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13875 #if defined( PTHREAD_CREATE_JOINABLE )
13876 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13878 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13881 #ifdef PTHREAD_CREATE_DETACHED
13883 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13886 if( status ) return status;
13889 status = pthread_create( &t, &attr, task, NULL );
13890 if( status ) return status;
13892 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13894 /* give thread a chance to complete */
13895 /* it should remain joinable and hence detachable */
13898 status = pthread_detach( t );
13899 if( status ) return status;
13904 /* Draft 4 pthreads */
13905 status = pthread_create( &t, pthread_attr_default, task, NULL );
13906 if( status ) return status;
13909 /* give thread a chance to complete */
13910 /* it should remain joinable and hence detachable */
13913 status = pthread_detach( &t );
13914 if( status ) return status;
13918 #ifdef HAVE_LINUX_THREADS
13919 pthread_kill_other_threads_np();
13926 if { (eval echo configure:13927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13928 ol_cv_pthread_lc_r=yes
13930 echo "configure: failed program was:" >&5
13931 cat conftest.$ac_ext >&5
13933 ol_cv_pthread_lc_r=no
13937 cat > conftest.$ac_ext <<EOF
13938 #line 13939 "configure"
13939 #include "confdefs.h"
13940 /* pthread test headers */
13941 #include <pthread.h>
13943 #define NULL (void*)0
13946 static void *task(p)
13949 return (void *) (p == NULL);
13953 int main(argc, argv)
13958 /* pthread test function */
13963 #ifdef HAVE_PTHREADS_FINAL
13964 /* Final pthreads */
13965 pthread_attr_t attr;
13967 status = pthread_attr_init(&attr);
13968 if( status ) return status;
13970 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
13972 #if defined( PTHREAD_CREATE_JOINABLE )
13973 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
13975 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
13978 #ifdef PTHREAD_CREATE_DETACHED
13980 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
13983 if( status ) return status;
13986 status = pthread_create( &t, &attr, task, NULL );
13987 if( status ) return status;
13989 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
13991 /* give thread a chance to complete */
13992 /* it should remain joinable and hence detachable */
13995 status = pthread_detach( t );
13996 if( status ) return status;
14001 /* Draft 4 pthreads */
14002 status = pthread_create( &t, pthread_attr_default, task, NULL );
14003 if( status ) return status;
14006 /* give thread a chance to complete */
14007 /* it should remain joinable and hence detachable */
14010 status = pthread_detach( &t );
14011 if( status ) return status;
14015 #ifdef HAVE_LINUX_THREADS
14016 pthread_kill_other_threads_np();
14024 if { (eval echo configure:14025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14026 ol_cv_pthread_lc_r=yes
14028 echo "configure: failed program was:" >&5
14029 cat conftest.$ac_ext >&5
14031 ol_cv_pthread_lc_r=no
14042 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14044 if test $ol_cv_pthread_lc_r = yes ; then
14045 ol_link_pthreads="-lc_r"
14046 ol_link_threads=posix
14051 # Pthread try link: -threads (ol_cv_pthread_threads)
14052 if test "$ol_link_threads" = no ; then
14054 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14055 echo "configure:14056: checking for pthread link with -threads" >&5
14056 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14062 LIBS="-threads $LIBS"
14064 if test "$cross_compiling" = yes; then
14065 cat > conftest.$ac_ext <<EOF
14066 #line 14067 "configure"
14067 #include "confdefs.h"
14068 /* pthread test headers */
14069 #include <pthread.h>
14071 #define NULL (void*)0
14074 static void *task(p)
14077 return (void *) (p == NULL);
14082 /* pthread test function */
14087 #ifdef HAVE_PTHREADS_FINAL
14088 /* Final pthreads */
14089 pthread_attr_t attr;
14091 status = pthread_attr_init(&attr);
14092 if( status ) return status;
14094 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14096 #if defined( PTHREAD_CREATE_JOINABLE )
14097 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14099 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14102 #ifdef PTHREAD_CREATE_DETACHED
14104 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14107 if( status ) return status;
14110 status = pthread_create( &t, &attr, task, NULL );
14111 if( status ) return status;
14113 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14115 /* give thread a chance to complete */
14116 /* it should remain joinable and hence detachable */
14119 status = pthread_detach( t );
14120 if( status ) return status;
14125 /* Draft 4 pthreads */
14126 status = pthread_create( &t, pthread_attr_default, task, NULL );
14127 if( status ) return status;
14130 /* give thread a chance to complete */
14131 /* it should remain joinable and hence detachable */
14134 status = pthread_detach( &t );
14135 if( status ) return status;
14139 #ifdef HAVE_LINUX_THREADS
14140 pthread_kill_other_threads_np();
14147 if { (eval echo configure:14148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149 ol_cv_pthread_threads=yes
14151 echo "configure: failed program was:" >&5
14152 cat conftest.$ac_ext >&5
14154 ol_cv_pthread_threads=no
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 /* pthread test headers */
14162 #include <pthread.h>
14164 #define NULL (void*)0
14167 static void *task(p)
14170 return (void *) (p == NULL);
14174 int main(argc, argv)
14179 /* pthread test function */
14184 #ifdef HAVE_PTHREADS_FINAL
14185 /* Final pthreads */
14186 pthread_attr_t attr;
14188 status = pthread_attr_init(&attr);
14189 if( status ) return status;
14191 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14193 #if defined( PTHREAD_CREATE_JOINABLE )
14194 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14196 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14199 #ifdef PTHREAD_CREATE_DETACHED
14201 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14204 if( status ) return status;
14207 status = pthread_create( &t, &attr, task, NULL );
14208 if( status ) return status;
14210 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14212 /* give thread a chance to complete */
14213 /* it should remain joinable and hence detachable */
14216 status = pthread_detach( t );
14217 if( status ) return status;
14222 /* Draft 4 pthreads */
14223 status = pthread_create( &t, pthread_attr_default, task, NULL );
14224 if( status ) return status;
14227 /* give thread a chance to complete */
14228 /* it should remain joinable and hence detachable */
14231 status = pthread_detach( &t );
14232 if( status ) return status;
14236 #ifdef HAVE_LINUX_THREADS
14237 pthread_kill_other_threads_np();
14245 if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14247 ol_cv_pthread_threads=yes
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14252 ol_cv_pthread_threads=no
14263 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14265 if test $ol_cv_pthread_threads = yes ; then
14266 ol_link_pthreads="-threads"
14267 ol_link_threads=posix
14272 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14273 if test "$ol_link_threads" = no ; then
14274 # try -lpthreads -lmach -lexc -lc_r
14275 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14276 echo "configure:14277: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14277 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14278 echo $ac_n "(cached) $ac_c" 1>&6
14283 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14285 if test "$cross_compiling" = yes; then
14286 cat > conftest.$ac_ext <<EOF
14287 #line 14288 "configure"
14288 #include "confdefs.h"
14289 /* pthread test headers */
14290 #include <pthread.h>
14292 #define NULL (void*)0
14295 static void *task(p)
14298 return (void *) (p == NULL);
14303 /* pthread test function */
14308 #ifdef HAVE_PTHREADS_FINAL
14309 /* Final pthreads */
14310 pthread_attr_t attr;
14312 status = pthread_attr_init(&attr);
14313 if( status ) return status;
14315 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14317 #if defined( PTHREAD_CREATE_JOINABLE )
14318 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14320 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14323 #ifdef PTHREAD_CREATE_DETACHED
14325 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14328 if( status ) return status;
14331 status = pthread_create( &t, &attr, task, NULL );
14332 if( status ) return status;
14334 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14336 /* give thread a chance to complete */
14337 /* it should remain joinable and hence detachable */
14340 status = pthread_detach( t );
14341 if( status ) return status;
14346 /* Draft 4 pthreads */
14347 status = pthread_create( &t, pthread_attr_default, task, NULL );
14348 if( status ) return status;
14351 /* give thread a chance to complete */
14352 /* it should remain joinable and hence detachable */
14355 status = pthread_detach( &t );
14356 if( status ) return status;
14360 #ifdef HAVE_LINUX_THREADS
14361 pthread_kill_other_threads_np();
14368 if { (eval echo configure:14369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14370 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14372 echo "configure: failed program was:" >&5
14373 cat conftest.$ac_ext >&5
14375 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14379 cat > conftest.$ac_ext <<EOF
14380 #line 14381 "configure"
14381 #include "confdefs.h"
14382 /* pthread test headers */
14383 #include <pthread.h>
14385 #define NULL (void*)0
14388 static void *task(p)
14391 return (void *) (p == NULL);
14395 int main(argc, argv)
14400 /* pthread test function */
14405 #ifdef HAVE_PTHREADS_FINAL
14406 /* Final pthreads */
14407 pthread_attr_t attr;
14409 status = pthread_attr_init(&attr);
14410 if( status ) return status;
14412 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14414 #if defined( PTHREAD_CREATE_JOINABLE )
14415 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14417 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14420 #ifdef PTHREAD_CREATE_DETACHED
14422 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14425 if( status ) return status;
14428 status = pthread_create( &t, &attr, task, NULL );
14429 if( status ) return status;
14431 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14433 /* give thread a chance to complete */
14434 /* it should remain joinable and hence detachable */
14437 status = pthread_detach( t );
14438 if( status ) return status;
14443 /* Draft 4 pthreads */
14444 status = pthread_create( &t, pthread_attr_default, task, NULL );
14445 if( status ) return status;
14448 /* give thread a chance to complete */
14449 /* it should remain joinable and hence detachable */
14452 status = pthread_detach( &t );
14453 if( status ) return status;
14457 #ifdef HAVE_LINUX_THREADS
14458 pthread_kill_other_threads_np();
14466 if { (eval echo configure:14467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14468 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14470 echo "configure: failed program was:" >&5
14471 cat conftest.$ac_ext >&5
14473 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14484 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14486 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14487 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14488 ol_link_threads=posix
14492 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14493 if test "$ol_link_threads" = no ; then
14494 # try -lpthreads -lmach -lexc
14495 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14496 echo "configure:14497: checking for pthread link with -lpthreads -lmach -lexc" >&5
14497 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14498 echo $ac_n "(cached) $ac_c" 1>&6
14503 LIBS="-lpthreads -lmach -lexc $LIBS"
14505 if test "$cross_compiling" = yes; then
14506 cat > conftest.$ac_ext <<EOF
14507 #line 14508 "configure"
14508 #include "confdefs.h"
14509 /* pthread test headers */
14510 #include <pthread.h>
14512 #define NULL (void*)0
14515 static void *task(p)
14518 return (void *) (p == NULL);
14523 /* pthread test function */
14528 #ifdef HAVE_PTHREADS_FINAL
14529 /* Final pthreads */
14530 pthread_attr_t attr;
14532 status = pthread_attr_init(&attr);
14533 if( status ) return status;
14535 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14537 #if defined( PTHREAD_CREATE_JOINABLE )
14538 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14540 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14543 #ifdef PTHREAD_CREATE_DETACHED
14545 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14548 if( status ) return status;
14551 status = pthread_create( &t, &attr, task, NULL );
14552 if( status ) return status;
14554 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14556 /* give thread a chance to complete */
14557 /* it should remain joinable and hence detachable */
14560 status = pthread_detach( t );
14561 if( status ) return status;
14566 /* Draft 4 pthreads */
14567 status = pthread_create( &t, pthread_attr_default, task, NULL );
14568 if( status ) return status;
14571 /* give thread a chance to complete */
14572 /* it should remain joinable and hence detachable */
14575 status = pthread_detach( &t );
14576 if( status ) return status;
14580 #ifdef HAVE_LINUX_THREADS
14581 pthread_kill_other_threads_np();
14588 if { (eval echo configure:14589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14590 ol_cv_pthread_lpthreads_lmach_lexc=yes
14592 echo "configure: failed program was:" >&5
14593 cat conftest.$ac_ext >&5
14595 ol_cv_pthread_lpthreads_lmach_lexc=no
14599 cat > conftest.$ac_ext <<EOF
14600 #line 14601 "configure"
14601 #include "confdefs.h"
14602 /* pthread test headers */
14603 #include <pthread.h>
14605 #define NULL (void*)0
14608 static void *task(p)
14611 return (void *) (p == NULL);
14615 int main(argc, argv)
14620 /* pthread test function */
14625 #ifdef HAVE_PTHREADS_FINAL
14626 /* Final pthreads */
14627 pthread_attr_t attr;
14629 status = pthread_attr_init(&attr);
14630 if( status ) return status;
14632 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14634 #if defined( PTHREAD_CREATE_JOINABLE )
14635 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14637 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14640 #ifdef PTHREAD_CREATE_DETACHED
14642 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14645 if( status ) return status;
14648 status = pthread_create( &t, &attr, task, NULL );
14649 if( status ) return status;
14651 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14653 /* give thread a chance to complete */
14654 /* it should remain joinable and hence detachable */
14657 status = pthread_detach( t );
14658 if( status ) return status;
14663 /* Draft 4 pthreads */
14664 status = pthread_create( &t, pthread_attr_default, task, NULL );
14665 if( status ) return status;
14668 /* give thread a chance to complete */
14669 /* it should remain joinable and hence detachable */
14672 status = pthread_detach( &t );
14673 if( status ) return status;
14677 #ifdef HAVE_LINUX_THREADS
14678 pthread_kill_other_threads_np();
14686 if { (eval echo configure:14687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14688 ol_cv_pthread_lpthreads_lmach_lexc=yes
14690 echo "configure: failed program was:" >&5
14691 cat conftest.$ac_ext >&5
14693 ol_cv_pthread_lpthreads_lmach_lexc=no
14704 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14706 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14707 ol_link_pthreads="-lpthreads -lmach -lexc"
14708 ol_link_threads=posix
14712 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14713 if test "$ol_link_threads" = no ; then
14714 # try -lpthreads -lexc
14715 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14716 echo "configure:14717: checking for pthread link with -lpthreads -lexc" >&5
14717 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14718 echo $ac_n "(cached) $ac_c" 1>&6
14723 LIBS="-lpthreads -lexc $LIBS"
14725 if test "$cross_compiling" = yes; then
14726 cat > conftest.$ac_ext <<EOF
14727 #line 14728 "configure"
14728 #include "confdefs.h"
14729 /* pthread test headers */
14730 #include <pthread.h>
14732 #define NULL (void*)0
14735 static void *task(p)
14738 return (void *) (p == NULL);
14743 /* pthread test function */
14748 #ifdef HAVE_PTHREADS_FINAL
14749 /* Final pthreads */
14750 pthread_attr_t attr;
14752 status = pthread_attr_init(&attr);
14753 if( status ) return status;
14755 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14757 #if defined( PTHREAD_CREATE_JOINABLE )
14758 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14760 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14763 #ifdef PTHREAD_CREATE_DETACHED
14765 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14768 if( status ) return status;
14771 status = pthread_create( &t, &attr, task, NULL );
14772 if( status ) return status;
14774 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14776 /* give thread a chance to complete */
14777 /* it should remain joinable and hence detachable */
14780 status = pthread_detach( t );
14781 if( status ) return status;
14786 /* Draft 4 pthreads */
14787 status = pthread_create( &t, pthread_attr_default, task, NULL );
14788 if( status ) return status;
14791 /* give thread a chance to complete */
14792 /* it should remain joinable and hence detachable */
14795 status = pthread_detach( &t );
14796 if( status ) return status;
14800 #ifdef HAVE_LINUX_THREADS
14801 pthread_kill_other_threads_np();
14808 if { (eval echo configure:14809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14810 ol_cv_pthread_lpthreads_lexc=yes
14812 echo "configure: failed program was:" >&5
14813 cat conftest.$ac_ext >&5
14815 ol_cv_pthread_lpthreads_lexc=no
14819 cat > conftest.$ac_ext <<EOF
14820 #line 14821 "configure"
14821 #include "confdefs.h"
14822 /* pthread test headers */
14823 #include <pthread.h>
14825 #define NULL (void*)0
14828 static void *task(p)
14831 return (void *) (p == NULL);
14835 int main(argc, argv)
14840 /* pthread test function */
14845 #ifdef HAVE_PTHREADS_FINAL
14846 /* Final pthreads */
14847 pthread_attr_t attr;
14849 status = pthread_attr_init(&attr);
14850 if( status ) return status;
14852 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14854 #if defined( PTHREAD_CREATE_JOINABLE )
14855 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14857 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14860 #ifdef PTHREAD_CREATE_DETACHED
14862 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14865 if( status ) return status;
14868 status = pthread_create( &t, &attr, task, NULL );
14869 if( status ) return status;
14871 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14873 /* give thread a chance to complete */
14874 /* it should remain joinable and hence detachable */
14877 status = pthread_detach( t );
14878 if( status ) return status;
14883 /* Draft 4 pthreads */
14884 status = pthread_create( &t, pthread_attr_default, task, NULL );
14885 if( status ) return status;
14888 /* give thread a chance to complete */
14889 /* it should remain joinable and hence detachable */
14892 status = pthread_detach( &t );
14893 if( status ) return status;
14897 #ifdef HAVE_LINUX_THREADS
14898 pthread_kill_other_threads_np();
14906 if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14908 ol_cv_pthread_lpthreads_lexc=yes
14910 echo "configure: failed program was:" >&5
14911 cat conftest.$ac_ext >&5
14913 ol_cv_pthread_lpthreads_lexc=no
14924 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14926 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14927 ol_link_pthreads="-lpthreads -lexc"
14928 ol_link_threads=posix
14933 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14934 if test "$ol_link_threads" = no ; then
14936 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14937 echo "configure:14938: checking for pthread link with -lpthreads" >&5
14938 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14944 LIBS="-lpthreads $LIBS"
14946 if test "$cross_compiling" = yes; then
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14950 /* pthread test headers */
14951 #include <pthread.h>
14953 #define NULL (void*)0
14956 static void *task(p)
14959 return (void *) (p == NULL);
14964 /* pthread test function */
14969 #ifdef HAVE_PTHREADS_FINAL
14970 /* Final pthreads */
14971 pthread_attr_t attr;
14973 status = pthread_attr_init(&attr);
14974 if( status ) return status;
14976 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
14978 #if defined( PTHREAD_CREATE_JOINABLE )
14979 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
14981 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
14984 #ifdef PTHREAD_CREATE_DETACHED
14986 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
14989 if( status ) return status;
14992 status = pthread_create( &t, &attr, task, NULL );
14993 if( status ) return status;
14995 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
14997 /* give thread a chance to complete */
14998 /* it should remain joinable and hence detachable */
15001 status = pthread_detach( t );
15002 if( status ) return status;
15007 /* Draft 4 pthreads */
15008 status = pthread_create( &t, pthread_attr_default, task, NULL );
15009 if( status ) return status;
15012 /* give thread a chance to complete */
15013 /* it should remain joinable and hence detachable */
15016 status = pthread_detach( &t );
15017 if( status ) return status;
15021 #ifdef HAVE_LINUX_THREADS
15022 pthread_kill_other_threads_np();
15029 if { (eval echo configure:15030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15031 ol_cv_pthread_lib_lpthreads=yes
15033 echo "configure: failed program was:" >&5
15034 cat conftest.$ac_ext >&5
15036 ol_cv_pthread_lib_lpthreads=no
15040 cat > conftest.$ac_ext <<EOF
15041 #line 15042 "configure"
15042 #include "confdefs.h"
15043 /* pthread test headers */
15044 #include <pthread.h>
15046 #define NULL (void*)0
15049 static void *task(p)
15052 return (void *) (p == NULL);
15056 int main(argc, argv)
15061 /* pthread test function */
15066 #ifdef HAVE_PTHREADS_FINAL
15067 /* Final pthreads */
15068 pthread_attr_t attr;
15070 status = pthread_attr_init(&attr);
15071 if( status ) return status;
15073 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15075 #if defined( PTHREAD_CREATE_JOINABLE )
15076 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15078 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15081 #ifdef PTHREAD_CREATE_DETACHED
15083 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15086 if( status ) return status;
15089 status = pthread_create( &t, &attr, task, NULL );
15090 if( status ) return status;
15092 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15094 /* give thread a chance to complete */
15095 /* it should remain joinable and hence detachable */
15098 status = pthread_detach( t );
15099 if( status ) return status;
15104 /* Draft 4 pthreads */
15105 status = pthread_create( &t, pthread_attr_default, task, NULL );
15106 if( status ) return status;
15109 /* give thread a chance to complete */
15110 /* it should remain joinable and hence detachable */
15113 status = pthread_detach( &t );
15114 if( status ) return status;
15118 #ifdef HAVE_LINUX_THREADS
15119 pthread_kill_other_threads_np();
15127 if { (eval echo configure:15128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15129 ol_cv_pthread_lib_lpthreads=yes
15131 echo "configure: failed program was:" >&5
15132 cat conftest.$ac_ext >&5
15134 ol_cv_pthread_lib_lpthreads=no
15145 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15147 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15148 ol_link_pthreads="-lpthreads"
15149 ol_link_threads=posix
15154 if test $ol_link_threads != no ; then
15155 cat >> confdefs.h <<\EOF
15156 #define HAVE_PTHREADS 1
15160 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15162 save_CPPFLAGS="$CPPFLAGS"
15164 LIBS="$LTHREAD_LIBS $LIBS"
15166 for ac_func in sched_yield pthread_yield
15168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15169 echo "configure:15170: checking for $ac_func" >&5
15170 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15171 echo $ac_n "(cached) $ac_c" 1>&6
15173 cat > conftest.$ac_ext <<EOF
15174 #line 15175 "configure"
15175 #include "confdefs.h"
15176 /* System header to define __stub macros and hopefully few prototypes,
15177 which can conflict with char $ac_func(); below. */
15178 #include <assert.h>
15179 /* Override any gcc2 internal prototype to avoid an error. */
15180 /* We use char because int might match the return type of a gcc2
15181 builtin and then its argument prototype would still apply. */
15187 /* The GNU C library defines this for functions which it implements
15188 to always fail with ENOSYS. Some functions are actually named
15189 something starting with __ and the normal name is an alias. */
15190 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15198 if { (eval echo configure:15199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15200 eval "ac_cv_func_$ac_func=yes"
15202 echo "configure: failed program was:" >&5
15203 cat conftest.$ac_ext >&5
15205 eval "ac_cv_func_$ac_func=no"
15210 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15211 echo "$ac_t""yes" 1>&6
15212 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15213 cat >> confdefs.h <<EOF
15214 #define $ac_tr_func 1
15218 echo "$ac_t""no" 1>&6
15223 if test $ac_cv_func_sched_yield = no -a \
15224 $ac_cv_func_pthread_yield = no ; then
15225 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15226 echo "configure:15227: checking for sched_yield in -lrt" >&5
15227 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15228 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15231 ac_save_LIBS="$LIBS"
15233 cat > conftest.$ac_ext <<EOF
15234 #line 15235 "configure"
15235 #include "confdefs.h"
15236 /* Override any gcc2 internal prototype to avoid an error. */
15237 /* We use char because int might match the return type of a gcc2
15238 builtin and then its argument prototype would still apply. */
15239 char sched_yield();
15245 if { (eval echo configure:15246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15247 eval "ac_cv_lib_$ac_lib_var=yes"
15249 echo "configure: failed program was:" >&5
15250 cat conftest.$ac_ext >&5
15252 eval "ac_cv_lib_$ac_lib_var=no"
15255 LIBS="$ac_save_LIBS"
15258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15259 echo "$ac_t""yes" 1>&6
15260 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15261 cat >> confdefs.h <<\EOF
15262 #define HAVE_SCHED_YIELD 1
15265 ac_cv_func_sched_yield=yes
15267 echo "$ac_t""no" 1>&6
15268 ac_cv_func_sched_yield=no
15272 if test $ac_cv_func_sched_yield = no -a \
15273 $ac_cv_func_pthread_yield = no ; then
15274 for ac_func in thr_yield
15276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15277 echo "configure:15278: checking for $ac_func" >&5
15278 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15279 echo $ac_n "(cached) $ac_c" 1>&6
15281 cat > conftest.$ac_ext <<EOF
15282 #line 15283 "configure"
15283 #include "confdefs.h"
15284 /* System header to define __stub macros and hopefully few prototypes,
15285 which can conflict with char $ac_func(); below. */
15286 #include <assert.h>
15287 /* Override any gcc2 internal prototype to avoid an error. */
15288 /* We use char because int might match the return type of a gcc2
15289 builtin and then its argument prototype would still apply. */
15295 /* The GNU C library defines this for functions which it implements
15296 to always fail with ENOSYS. Some functions are actually named
15297 something starting with __ and the normal name is an alias. */
15298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15306 if { (eval echo configure:15307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15308 eval "ac_cv_func_$ac_func=yes"
15310 echo "configure: failed program was:" >&5
15311 cat conftest.$ac_ext >&5
15313 eval "ac_cv_func_$ac_func=no"
15318 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15319 echo "$ac_t""yes" 1>&6
15320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15321 cat >> confdefs.h <<EOF
15322 #define $ac_tr_func 1
15326 echo "$ac_t""no" 1>&6
15331 if test $ac_cv_func_sched_yield = no -a \
15332 $ac_cv_func_pthread_yield = no -a \
15333 "$ac_cv_func_thr_yield" = no ; then
15334 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15337 for ac_func in pthread_kill pthread_rwlock_destroy
15339 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15340 echo "configure:15341: checking for $ac_func" >&5
15341 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15342 echo $ac_n "(cached) $ac_c" 1>&6
15344 cat > conftest.$ac_ext <<EOF
15345 #line 15346 "configure"
15346 #include "confdefs.h"
15347 /* System header to define __stub macros and hopefully few prototypes,
15348 which can conflict with char $ac_func(); below. */
15349 #include <assert.h>
15350 /* Override any gcc2 internal prototype to avoid an error. */
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15358 /* The GNU C library defines this for functions which it implements
15359 to always fail with ENOSYS. Some functions are actually named
15360 something starting with __ and the normal name is an alias. */
15361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15369 if { (eval echo configure:15370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15371 eval "ac_cv_func_$ac_func=yes"
15373 echo "configure: failed program was:" >&5
15374 cat conftest.$ac_ext >&5
15376 eval "ac_cv_func_$ac_func=no"
15381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15382 echo "$ac_t""yes" 1>&6
15383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15384 cat >> confdefs.h <<EOF
15385 #define $ac_tr_func 1
15389 echo "$ac_t""no" 1>&6
15394 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15395 echo "configure:15396: checking for pthread_detach with <pthread.h>" >&5
15396 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15397 echo $ac_n "(cached) $ac_c" 1>&6
15400 cat > conftest.$ac_ext <<EOF
15401 #line 15402 "configure"
15402 #include "confdefs.h"
15404 #include <pthread.h>
15406 #define NULL (void*)0
15410 pthread_detach(NULL);
15413 if { (eval echo configure:15414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15415 ol_cv_func_pthread_detach=yes
15417 echo "configure: failed program was:" >&5
15418 cat conftest.$ac_ext >&5
15420 ol_cv_func_pthread_detach=no
15426 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15428 if test $ol_cv_func_pthread_detach = no ; then
15429 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15432 cat >> confdefs.h <<\EOF
15433 #define HAVE_PTHREAD_DETACH 1
15438 pthread_setconcurrency \
15439 pthread_getconcurrency \
15440 thr_setconcurrency \
15441 thr_getconcurrency \
15444 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15445 echo "configure:15446: checking for $ac_func" >&5
15446 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
15449 cat > conftest.$ac_ext <<EOF
15450 #line 15451 "configure"
15451 #include "confdefs.h"
15452 /* System header to define __stub macros and hopefully few prototypes,
15453 which can conflict with char $ac_func(); below. */
15454 #include <assert.h>
15455 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15463 /* The GNU C library defines this for functions which it implements
15464 to always fail with ENOSYS. Some functions are actually named
15465 something starting with __ and the normal name is an alias. */
15466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15474 if { (eval echo configure:15475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15476 eval "ac_cv_func_$ac_func=yes"
15478 echo "configure: failed program was:" >&5
15479 cat conftest.$ac_ext >&5
15481 eval "ac_cv_func_$ac_func=no"
15486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15487 echo "$ac_t""yes" 1>&6
15488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15489 cat >> confdefs.h <<EOF
15490 #define $ac_tr_func 1
15494 echo "$ac_t""no" 1>&6
15500 for ac_func in pthread_kill_other_threads_np
15502 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15503 echo "configure:15504: checking for $ac_func" >&5
15504 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15505 echo $ac_n "(cached) $ac_c" 1>&6
15507 cat > conftest.$ac_ext <<EOF
15508 #line 15509 "configure"
15509 #include "confdefs.h"
15510 /* System header to define __stub macros and hopefully few prototypes,
15511 which can conflict with char $ac_func(); below. */
15512 #include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15514 /* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15532 if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15534 eval "ac_cv_func_$ac_func=yes"
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15539 eval "ac_cv_func_$ac_func=no"
15544 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15545 echo "$ac_t""yes" 1>&6
15546 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15547 cat >> confdefs.h <<EOF
15548 #define $ac_tr_func 1
15552 echo "$ac_t""no" 1>&6
15556 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15557 echo "configure:15558: checking for LinuxThreads implementation" >&5
15558 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15559 echo $ac_n "(cached) $ac_c" 1>&6
15561 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15564 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15569 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15570 echo "configure:15571: checking for LinuxThreads consistency" >&5
15571 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15572 echo $ac_n "(cached) $ac_c" 1>&6
15575 if test $ol_cv_header_linux_threads = yes -a \
15576 $ol_cv_sys_linux_threads = yes; then
15577 ol_cv_linux_threads=yes
15578 elif test $ol_cv_header_linux_threads = no -a \
15579 $ol_cv_sys_linux_threads = no; then
15580 ol_cv_linux_threads=no
15582 ol_cv_linux_threads=error
15587 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15590 if test $ol_cv_linux_threads = error; then
15591 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15594 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15595 echo "configure:15596: checking if pthread_create() works" >&5
15596 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15597 echo $ac_n "(cached) $ac_c" 1>&6
15600 if test "$cross_compiling" = yes; then
15601 ol_cv_pthread_create_works=yes
15603 cat > conftest.$ac_ext <<EOF
15604 #line 15605 "configure"
15605 #include "confdefs.h"
15606 /* pthread test headers */
15607 #include <pthread.h>
15609 #define NULL (void*)0
15612 static void *task(p)
15615 return (void *) (p == NULL);
15619 int main(argc, argv)
15624 /* pthread test function */
15629 #ifdef HAVE_PTHREADS_FINAL
15630 /* Final pthreads */
15631 pthread_attr_t attr;
15633 status = pthread_attr_init(&attr);
15634 if( status ) return status;
15636 #if defined( PTHREAD_CREATE_JOINABLE ) || defined( PTHREAD_UNDETACHED )
15638 #if defined( PTHREAD_CREATE_JOINABLE )
15639 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
15641 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_UNDETACHED);
15644 #ifdef PTHREAD_CREATE_DETACHED
15646 status = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
15649 if( status ) return status;
15652 status = pthread_create( &t, &attr, task, NULL );
15653 if( status ) return status;
15655 #if !defined( PTHREAD_CREATE_JOINABLE ) && !defined( PTHREAD_UNDETACHED )
15657 /* give thread a chance to complete */
15658 /* it should remain joinable and hence detachable */
15661 status = pthread_detach( t );
15662 if( status ) return status;
15667 /* Draft 4 pthreads */
15668 status = pthread_create( &t, pthread_attr_default, task, NULL );
15669 if( status ) return status;
15672 /* give thread a chance to complete */
15673 /* it should remain joinable and hence detachable */
15676 status = pthread_detach( &t );
15677 if( status ) return status;
15681 #ifdef HAVE_LINUX_THREADS
15682 pthread_kill_other_threads_np();
15690 if { (eval echo configure:15691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15692 ol_cv_pthread_create_works=yes
15694 echo "configure: failed program was:" >&5
15695 cat conftest.$ac_ext >&5
15697 ol_cv_pthread_create_works=no
15704 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15706 if test $ol_cv_pthread_create_works = no ; then
15707 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15710 if test $ol_with_yielding_select = auto ; then
15711 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15712 echo "configure:15713: checking if select yields when using pthreads" >&5
15713 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15714 echo $ac_n "(cached) $ac_c" 1>&6
15717 if test "$cross_compiling" = yes; then
15718 ol_cv_pthread_select_yields=cross
15720 cat > conftest.$ac_ext <<EOF
15721 #line 15722 "configure"
15722 #include "confdefs.h"
15724 #include <sys/types.h>
15725 #include <sys/time.h>
15726 #include <unistd.h>
15727 #include <pthread.h>
15729 #define NULL (void*) 0
15732 static int fildes[2];
15734 static void *task(p)
15746 FD_SET(fildes[0], &rfds);
15748 /* we're not interested in any fds */
15749 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15756 exit(0); /* if we exit here, the select blocked the whole process */
15759 int main(argc, argv)
15765 /* create a pipe to select */
15766 if(pipe(&fildes[0])) {
15771 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15772 (void) pthread_setconcurrency(2);
15774 #ifdef HAVE_THR_SETCONCURRENCY
15775 /* Set Solaris LWP concurrency to 2 */
15776 thr_setconcurrency(2);
15780 #if HAVE_PTHREADS_D4
15781 pthread_create(&t, pthread_attr_default, task, NULL);
15783 pthread_create(&t, NULL, task, NULL);
15786 #if HAVE_SCHED_YIELD
15787 sched_yield(); /* make sure task runs first */
15789 #ifdef HAVE_PTHREAD_YIELD
15790 pthread_yield(); /* make sure task runs first */
15797 if { (eval echo configure:15798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15799 ol_cv_pthread_select_yields=no
15801 echo "configure: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15804 ol_cv_pthread_select_yields=yes
15811 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15813 if test $ol_cv_pthread_select_yields = cross ; then
15814 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15817 if test $ol_cv_pthread_select_yields = yes ; then
15818 ol_with_yielding_select=yes
15822 CPPFLAGS="$save_CPPFLAGS"
15825 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15829 if test $ol_with_threads = posix ; then
15830 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15834 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15835 -o $ol_with_threads = mach ; then
15837 for ac_hdr in mach/cthreads.h cthreads.h
15839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15841 echo "configure:15842: checking for $ac_hdr" >&5
15842 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15843 echo $ac_n "(cached) $ac_c" 1>&6
15845 cat > conftest.$ac_ext <<EOF
15846 #line 15847 "configure"
15847 #include "confdefs.h"
15850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15851 { (eval echo configure:15852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15853 if test -z "$ac_err"; then
15855 eval "ac_cv_header_$ac_safe=yes"
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15861 eval "ac_cv_header_$ac_safe=no"
15865 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15866 echo "$ac_t""yes" 1>&6
15867 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15868 cat >> confdefs.h <<EOF
15869 #define $ac_tr_hdr 1
15873 echo "$ac_t""no" 1>&6
15877 if test $ac_cv_header_mach_cthreads_h = yes ; then
15878 ol_with_threads=found
15880 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15881 echo "configure:15882: checking for cthread_fork" >&5
15882 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15885 cat > conftest.$ac_ext <<EOF
15886 #line 15887 "configure"
15887 #include "confdefs.h"
15888 /* System header to define __stub macros and hopefully few prototypes,
15889 which can conflict with char cthread_fork(); below. */
15890 #include <assert.h>
15891 /* Override any gcc2 internal prototype to avoid an error. */
15892 /* We use char because int might match the return type of a gcc2
15893 builtin and then its argument prototype would still apply. */
15894 char cthread_fork();
15899 /* The GNU C library defines this for functions which it implements
15900 to always fail with ENOSYS. Some functions are actually named
15901 something starting with __ and the normal name is an alias. */
15902 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15910 if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15912 eval "ac_cv_func_cthread_fork=yes"
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15917 eval "ac_cv_func_cthread_fork=no"
15922 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15923 echo "$ac_t""yes" 1>&6
15924 ol_link_threads=yes
15926 echo "$ac_t""no" 1>&6
15930 if test $ol_link_threads = no ; then
15931 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15932 echo "configure:15933: checking for cthread_fork with -all_load" >&5
15933 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15934 echo $ac_n "(cached) $ac_c" 1>&6
15938 LIBS="-all_load $LIBS"
15939 cat > conftest.$ac_ext <<EOF
15940 #line 15941 "configure"
15941 #include "confdefs.h"
15942 #include <mach/cthreads.h>
15945 cthread_fork((void *)0, (void *)0);
15949 if { (eval echo configure:15950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15951 ol_cv_cthread_all_load=yes
15953 echo "configure: failed program was:" >&5
15954 cat conftest.$ac_ext >&5
15956 ol_cv_cthread_all_load=no
15963 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15965 if test $ol_cv_cthread_all_load = yes ; then
15966 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15967 ol_link_threads=mach
15968 ol_with_threads=found
15972 elif test $ac_cv_header_cthreads_h = yes ; then
15974 ol_with_threads=found
15977 LIBS="$LIBS -lthreads"
15978 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15979 echo "configure:15980: checking for cthread_fork" >&5
15980 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15981 echo $ac_n "(cached) $ac_c" 1>&6
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986 /* System header to define __stub macros and hopefully few prototypes,
15987 which can conflict with char cthread_fork(); below. */
15988 #include <assert.h>
15989 /* Override any gcc2 internal prototype to avoid an error. */
15990 /* We use char because int might match the return type of a gcc2
15991 builtin and then its argument prototype would still apply. */
15992 char cthread_fork();
15997 /* The GNU C library defines this for functions which it implements
15998 to always fail with ENOSYS. Some functions are actually named
15999 something starting with __ and the normal name is an alias. */
16000 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
16008 if { (eval echo configure:16009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16010 eval "ac_cv_func_cthread_fork=yes"
16012 echo "configure: failed program was:" >&5
16013 cat conftest.$ac_ext >&5
16015 eval "ac_cv_func_cthread_fork=no"
16020 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
16021 echo "$ac_t""yes" 1>&6
16022 ol_link_threads=yes
16024 echo "$ac_t""no" 1>&6
16029 if test $ol_link_threads = yes ; then
16030 LTHREAD_LIBS="-lthreads"
16031 ol_link_threads=mach
16032 ol_with_threads=found
16034 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16037 elif test $ol_with_threads = mach ; then
16038 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
16041 if test $ol_link_threads = mach ; then
16042 cat >> confdefs.h <<\EOF
16043 #define HAVE_MACH_CTHREADS 1
16046 elif test $ol_with_threads = found ; then
16047 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
16051 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16052 -o $ol_with_threads = pth ; then
16054 for ac_hdr in pth.h
16056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16058 echo "configure:16059: checking for $ac_hdr" >&5
16059 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16060 echo $ac_n "(cached) $ac_c" 1>&6
16062 cat > conftest.$ac_ext <<EOF
16063 #line 16064 "configure"
16064 #include "confdefs.h"
16067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16068 { (eval echo configure:16069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16070 if test -z "$ac_err"; then
16072 eval "ac_cv_header_$ac_safe=yes"
16075 echo "configure: failed program was:" >&5
16076 cat conftest.$ac_ext >&5
16078 eval "ac_cv_header_$ac_safe=no"
16082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16083 echo "$ac_t""yes" 1>&6
16084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16085 cat >> confdefs.h <<EOF
16086 #define $ac_tr_hdr 1
16090 echo "$ac_t""no" 1>&6
16095 if test $ac_cv_header_pth_h = yes ; then
16096 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
16097 echo "configure:16098: checking for pth_version in -lpth" >&5
16098 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16099 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16100 echo $ac_n "(cached) $ac_c" 1>&6
16102 ac_save_LIBS="$LIBS"
16104 cat > conftest.$ac_ext <<EOF
16105 #line 16106 "configure"
16106 #include "confdefs.h"
16107 /* Override any gcc2 internal prototype to avoid an error. */
16108 /* We use char because int might match the return type of a gcc2
16109 builtin and then its argument prototype would still apply. */
16110 char pth_version();
16116 if { (eval echo configure:16117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16118 eval "ac_cv_lib_$ac_lib_var=yes"
16120 echo "configure: failed program was:" >&5
16121 cat conftest.$ac_ext >&5
16123 eval "ac_cv_lib_$ac_lib_var=no"
16126 LIBS="$ac_save_LIBS"
16129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16130 echo "$ac_t""yes" 1>&6
16133 echo "$ac_t""no" 1>&6
16138 if test $have_pth = yes ; then
16139 cat >> confdefs.h <<\EOF
16140 #define HAVE_GNU_PTH 1
16143 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16144 ol_link_threads=pth
16145 ol_with_threads=found
16147 if test $ol_with_yielding_select = auto ; then
16148 ol_with_yielding_select=yes
16154 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16155 -o $ol_with_threads = lwp ; then
16157 for ac_hdr in thread.h synch.h
16159 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16160 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16161 echo "configure:16162: checking for $ac_hdr" >&5
16162 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16163 echo $ac_n "(cached) $ac_c" 1>&6
16165 cat > conftest.$ac_ext <<EOF
16166 #line 16167 "configure"
16167 #include "confdefs.h"
16170 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16171 { (eval echo configure:16172: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16172 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16173 if test -z "$ac_err"; then
16175 eval "ac_cv_header_$ac_safe=yes"
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16181 eval "ac_cv_header_$ac_safe=no"
16185 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16186 echo "$ac_t""yes" 1>&6
16187 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16188 cat >> confdefs.h <<EOF
16189 #define $ac_tr_hdr 1
16193 echo "$ac_t""no" 1>&6
16197 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16198 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16199 echo "configure:16200: checking for thr_create in -lthread" >&5
16200 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
16204 ac_save_LIBS="$LIBS"
16205 LIBS="-lthread $LIBS"
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16209 /* Override any gcc2 internal prototype to avoid an error. */
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16218 if { (eval echo configure:16219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16220 eval "ac_cv_lib_$ac_lib_var=yes"
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16225 eval "ac_cv_lib_$ac_lib_var=no"
16228 LIBS="$ac_save_LIBS"
16231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16232 echo "$ac_t""yes" 1>&6
16235 echo "$ac_t""no" 1>&6
16240 if test $have_thr = yes ; then
16241 cat >> confdefs.h <<\EOF
16245 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16246 ol_link_threads=thr
16248 if test $ol_with_yielding_select = auto ; then
16249 ol_with_yielding_select=yes
16253 thr_setconcurrency \
16254 thr_getconcurrency \
16257 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16258 echo "configure:16259: checking for $ac_func" >&5
16259 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16260 echo $ac_n "(cached) $ac_c" 1>&6
16262 cat > conftest.$ac_ext <<EOF
16263 #line 16264 "configure"
16264 #include "confdefs.h"
16265 /* System header to define __stub macros and hopefully few prototypes,
16266 which can conflict with char $ac_func(); below. */
16267 #include <assert.h>
16268 /* Override any gcc2 internal prototype to avoid an error. */
16269 /* We use char because int might match the return type of a gcc2
16270 builtin and then its argument prototype would still apply. */
16276 /* The GNU C library defines this for functions which it implements
16277 to always fail with ENOSYS. Some functions are actually named
16278 something starting with __ and the normal name is an alias. */
16279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16287 if { (eval echo configure:16288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16289 eval "ac_cv_func_$ac_func=yes"
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 eval "ac_cv_func_$ac_func=no"
16299 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16300 echo "$ac_t""yes" 1>&6
16301 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16302 cat >> confdefs.h <<EOF
16303 #define $ac_tr_func 1
16307 echo "$ac_t""no" 1>&6
16314 for ac_hdr in lwp/lwp.h
16316 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16317 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16318 echo "configure:16319: checking for $ac_hdr" >&5
16319 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16320 echo $ac_n "(cached) $ac_c" 1>&6
16322 cat > conftest.$ac_ext <<EOF
16323 #line 16324 "configure"
16324 #include "confdefs.h"
16327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16328 { (eval echo configure:16329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16330 if test -z "$ac_err"; then
16332 eval "ac_cv_header_$ac_safe=yes"
16335 echo "configure: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16338 eval "ac_cv_header_$ac_safe=no"
16342 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16343 echo "$ac_t""yes" 1>&6
16344 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16345 cat >> confdefs.h <<EOF
16346 #define $ac_tr_hdr 1
16350 echo "$ac_t""no" 1>&6
16354 if test $ac_cv_header_lwp_lwp_h = yes ; then
16355 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16356 echo "configure:16357: checking for lwp_create in -llwp" >&5
16357 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16358 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16359 echo $ac_n "(cached) $ac_c" 1>&6
16361 ac_save_LIBS="$LIBS"
16363 cat > conftest.$ac_ext <<EOF
16364 #line 16365 "configure"
16365 #include "confdefs.h"
16366 /* Override any gcc2 internal prototype to avoid an error. */
16367 /* We use char because int might match the return type of a gcc2
16368 builtin and then its argument prototype would still apply. */
16375 if { (eval echo configure:16376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16377 eval "ac_cv_lib_$ac_lib_var=yes"
16379 echo "configure: failed program was:" >&5
16380 cat conftest.$ac_ext >&5
16382 eval "ac_cv_lib_$ac_lib_var=no"
16385 LIBS="$ac_save_LIBS"
16388 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16389 echo "$ac_t""yes" 1>&6
16392 echo "$ac_t""no" 1>&6
16397 if test $have_lwp = yes ; then
16398 cat >> confdefs.h <<\EOF
16402 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16403 ol_link_threads=lwp
16405 if test $ol_with_yielding_select = auto ; then
16406 ol_with_yielding_select=no
16412 if test $ol_with_yielding_select = yes ; then
16413 cat >> confdefs.h <<\EOF
16414 #define HAVE_YIELDING_SELECT 1
16419 if test $ol_with_threads = manual ; then
16420 ol_link_threads=yes
16422 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16424 for ac_hdr in pthread.h sched.h
16426 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16427 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16428 echo "configure:16429: checking for $ac_hdr" >&5
16429 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16430 echo $ac_n "(cached) $ac_c" 1>&6
16432 cat > conftest.$ac_ext <<EOF
16433 #line 16434 "configure"
16434 #include "confdefs.h"
16437 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16438 { (eval echo configure:16439: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16439 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16440 if test -z "$ac_err"; then
16442 eval "ac_cv_header_$ac_safe=yes"
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16448 eval "ac_cv_header_$ac_safe=no"
16452 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16453 echo "$ac_t""yes" 1>&6
16454 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16455 cat >> confdefs.h <<EOF
16456 #define $ac_tr_hdr 1
16460 echo "$ac_t""no" 1>&6
16464 for ac_func in sched_yield pthread_yield
16466 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16467 echo "configure:16468: checking for $ac_func" >&5
16468 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16469 echo $ac_n "(cached) $ac_c" 1>&6
16471 cat > conftest.$ac_ext <<EOF
16472 #line 16473 "configure"
16473 #include "confdefs.h"
16474 /* System header to define __stub macros and hopefully few prototypes,
16475 which can conflict with char $ac_func(); below. */
16476 #include <assert.h>
16477 /* Override any gcc2 internal prototype to avoid an error. */
16478 /* We use char because int might match the return type of a gcc2
16479 builtin and then its argument prototype would still apply. */
16485 /* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16496 if { (eval echo configure:16497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16498 eval "ac_cv_func_$ac_func=yes"
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16503 eval "ac_cv_func_$ac_func=no"
16508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16509 echo "$ac_t""yes" 1>&6
16510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16511 cat >> confdefs.h <<EOF
16512 #define $ac_tr_func 1
16516 echo "$ac_t""no" 1>&6
16521 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16522 echo "configure:16523: checking for LinuxThreads pthread.h" >&5
16523 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16524 echo $ac_n "(cached) $ac_c" 1>&6
16526 cat > conftest.$ac_ext <<EOF
16527 #line 16528 "configure"
16528 #include "confdefs.h"
16529 #include <pthread.h>
16531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16532 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16534 ol_cv_header_linux_threads=yes
16537 ol_cv_header_linux_threads=no
16544 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16545 if test $ol_cv_header_linux_threads = yes; then
16546 cat >> confdefs.h <<\EOF
16547 #define HAVE_LINUX_THREADS 1
16553 for ac_hdr in mach/cthreads.h
16555 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16556 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16557 echo "configure:16558: checking for $ac_hdr" >&5
16558 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16559 echo $ac_n "(cached) $ac_c" 1>&6
16561 cat > conftest.$ac_ext <<EOF
16562 #line 16563 "configure"
16563 #include "confdefs.h"
16566 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16567 { (eval echo configure:16568: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16568 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16569 if test -z "$ac_err"; then
16571 eval "ac_cv_header_$ac_safe=yes"
16574 echo "configure: failed program was:" >&5
16575 cat conftest.$ac_ext >&5
16577 eval "ac_cv_header_$ac_safe=no"
16581 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16582 echo "$ac_t""yes" 1>&6
16583 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16584 cat >> confdefs.h <<EOF
16585 #define $ac_tr_hdr 1
16589 echo "$ac_t""no" 1>&6
16593 for ac_hdr in lwp/lwp.h
16595 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16596 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16597 echo "configure:16598: checking for $ac_hdr" >&5
16598 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16599 echo $ac_n "(cached) $ac_c" 1>&6
16601 cat > conftest.$ac_ext <<EOF
16602 #line 16603 "configure"
16603 #include "confdefs.h"
16606 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16607 { (eval echo configure:16608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16608 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16609 if test -z "$ac_err"; then
16611 eval "ac_cv_header_$ac_safe=yes"
16614 echo "configure: failed program was:" >&5
16615 cat conftest.$ac_ext >&5
16617 eval "ac_cv_header_$ac_safe=no"
16621 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16622 echo "$ac_t""yes" 1>&6
16623 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16624 cat >> confdefs.h <<EOF
16625 #define $ac_tr_hdr 1
16629 echo "$ac_t""no" 1>&6
16633 for ac_hdr in thread.h synch.h
16635 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16636 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16637 echo "configure:16638: checking for $ac_hdr" >&5
16638 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16639 echo $ac_n "(cached) $ac_c" 1>&6
16641 cat > conftest.$ac_ext <<EOF
16642 #line 16643 "configure"
16643 #include "confdefs.h"
16646 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16647 { (eval echo configure:16648: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16648 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16649 if test -z "$ac_err"; then
16651 eval "ac_cv_header_$ac_safe=yes"
16654 echo "configure: failed program was:" >&5
16655 cat conftest.$ac_ext >&5
16657 eval "ac_cv_header_$ac_safe=no"
16661 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16662 echo "$ac_t""yes" 1>&6
16663 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16664 cat >> confdefs.h <<EOF
16665 #define $ac_tr_hdr 1
16669 echo "$ac_t""no" 1>&6
16675 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16676 cat >> confdefs.h <<\EOF
16677 #define REENTRANT 1
16680 cat >> confdefs.h <<\EOF
16681 #define _REENTRANT 1
16684 cat >> confdefs.h <<\EOF
16685 #define THREAD_SAFE 1
16688 cat >> confdefs.h <<\EOF
16689 #define _THREAD_SAFE 1
16692 cat >> confdefs.h <<\EOF
16693 #define THREADSAFE 1
16696 cat >> confdefs.h <<\EOF
16697 #define _THREADSAFE 1
16700 cat >> confdefs.h <<\EOF
16701 #define _SGI_MP_SOURCE 1
16705 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16706 echo "configure:16707: checking for thread specific errno" >&5
16707 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16708 echo $ac_n "(cached) $ac_c" 1>&6
16711 cat > conftest.$ac_ext <<EOF
16712 #line 16713 "configure"
16713 #include "confdefs.h"
16719 if { (eval echo configure:16720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16721 ol_cv_errno_thread_specific=yes
16723 echo "configure: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16726 ol_cv_errno_thread_specific=no
16732 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16734 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16735 echo "configure:16736: checking for thread specific h_errno" >&5
16736 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16737 echo $ac_n "(cached) $ac_c" 1>&6
16740 cat > conftest.$ac_ext <<EOF
16741 #line 16742 "configure"
16742 #include "confdefs.h"
16748 if { (eval echo configure:16749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16750 ol_cv_h_errno_thread_specific=yes
16752 echo "configure: failed program was:" >&5
16753 cat conftest.$ac_ext >&5
16755 ol_cv_h_errno_thread_specific=no
16761 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16763 if test $ol_cv_errno_thread_specific != yes \
16764 -o $ol_cv_h_errno_thread_specific != yes ; then
16765 LIBS="$LTHREAD_LIBS $LIBS"
16771 if test $ol_link_threads = no ; then
16772 if test $ol_with_threads = yes ; then
16773 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16776 if test $ol_with_threads = auto ; then
16777 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16781 cat >> confdefs.h <<\EOF
16782 #define NO_THREADS 1
16788 if test $ol_link_threads != no ; then
16789 cat >> confdefs.h <<\EOF
16790 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16797 if test $ol_with_ldbm_api = auto \
16798 -o $ol_with_ldbm_api = berkeley \
16799 -o $ol_with_ldbm_api = bcompat ; then
16801 if test $ol_with_ldbm_api = bcompat; then \
16802 for ac_hdr in db_185.h db.h
16804 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16805 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16806 echo "configure:16807: checking for $ac_hdr" >&5
16807 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16808 echo $ac_n "(cached) $ac_c" 1>&6
16810 cat > conftest.$ac_ext <<EOF
16811 #line 16812 "configure"
16812 #include "confdefs.h"
16815 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16816 { (eval echo configure:16817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16817 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16818 if test -z "$ac_err"; then
16820 eval "ac_cv_header_$ac_safe=yes"
16823 echo "configure: failed program was:" >&5
16824 cat conftest.$ac_ext >&5
16826 eval "ac_cv_header_$ac_safe=no"
16830 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16831 echo "$ac_t""yes" 1>&6
16832 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16833 cat >> confdefs.h <<EOF
16834 #define $ac_tr_hdr 1
16838 echo "$ac_t""no" 1>&6
16842 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16843 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16844 echo "configure:16845: checking if Berkeley DB header compatibility" >&5
16845 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16846 echo $ac_n "(cached) $ac_c" 1>&6
16849 cat > conftest.$ac_ext <<EOF
16850 #line 16851 "configure"
16851 #include "confdefs.h"
16854 # include <db_185.h>
16859 /* this check could be improved */
16860 #ifndef DB_VERSION_MAJOR
16861 # define DB_VERSION_MAJOR 1
16864 #if DB_VERSION_MAJOR == 1
16869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16870 egrep "__db_version_1" >/dev/null 2>&1; then
16872 ol_cv_header_db1=yes
16875 ol_cv_header_db1=no
16881 echo "$ac_t""$ol_cv_header_db1" 1>&6
16883 if test $ol_cv_header_db1 = yes ; then
16885 if test $ol_cv_lib_db = no ; then
16886 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16887 echo "configure:16888: checking for Berkeley DB link (default)" >&5
16888 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16889 echo $ac_n "(cached) $ac_c" 1>&6
16894 LIBS="$ol_DB_LIB $LIBS"
16896 cat > conftest.$ac_ext <<EOF
16897 #line 16898 "configure"
16898 #include "confdefs.h"
16900 #ifdef HAVE_DB_185_H
16901 # include <db_185.h>
16906 #ifndef DB_VERSION_MAJOR
16907 # define DB_VERSION_MAJOR 1
16911 #define NULL ((void*)0)
16916 #if DB_VERSION_MAJOR > 1
16919 int major, minor, patch;
16921 version = db_version( &major, &minor, &patch );
16923 if( major != DB_VERSION_MAJOR ||
16924 minor < DB_VERSION_MINOR )
16926 printf("Berkeley DB version mismatch\n"
16927 "\texpected: %s\n\tgot: %s\n",
16928 DB_VERSION_STRING, version);
16934 #if DB_VERSION_MAJOR > 2
16935 db_env_create( NULL, 0 );
16936 #elif DB_VERSION_MAJOR > 1
16937 db_appexit( NULL );
16939 (void) dbopen( NULL, 0, 0, 0, NULL);
16944 if { (eval echo configure:16945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16948 echo "configure: failed program was:" >&5
16949 cat conftest.$ac_ext >&5
16959 echo "$ac_t""$ol_cv_db_none" 1>&6
16961 if test $ol_cv_db_none = yes ; then
16966 if test $ol_cv_lib_db = no ; then
16967 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
16968 echo "configure:16969: checking for Berkeley DB link (-ldb)" >&5
16969 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
16970 echo $ac_n "(cached) $ac_c" 1>&6
16975 LIBS="$ol_DB_LIB $LIBS"
16977 cat > conftest.$ac_ext <<EOF
16978 #line 16979 "configure"
16979 #include "confdefs.h"
16981 #ifdef HAVE_DB_185_H
16982 # include <db_185.h>
16987 #ifndef DB_VERSION_MAJOR
16988 # define DB_VERSION_MAJOR 1
16992 #define NULL ((void*)0)
16997 #if DB_VERSION_MAJOR > 1
17000 int major, minor, patch;
17002 version = db_version( &major, &minor, &patch );
17004 if( major != DB_VERSION_MAJOR ||
17005 minor < DB_VERSION_MINOR )
17007 printf("Berkeley DB version mismatch\n"
17008 "\texpected: %s\n\tgot: %s\n",
17009 DB_VERSION_STRING, version);
17015 #if DB_VERSION_MAJOR > 2
17016 db_env_create( NULL, 0 );
17017 #elif DB_VERSION_MAJOR > 1
17018 db_appexit( NULL );
17020 (void) dbopen( NULL, 0, 0, 0, NULL);
17025 if { (eval echo configure:17026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17029 echo "configure: failed program was:" >&5
17030 cat conftest.$ac_ext >&5
17040 echo "$ac_t""$ol_cv_db_db" 1>&6
17042 if test $ol_cv_db_db = yes ; then
17047 if test $ol_cv_lib_db = no ; then
17048 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17049 echo "configure:17050: checking for Berkeley DB link (-ldb4)" >&5
17050 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17051 echo $ac_n "(cached) $ac_c" 1>&6
17056 LIBS="$ol_DB_LIB $LIBS"
17058 cat > conftest.$ac_ext <<EOF
17059 #line 17060 "configure"
17060 #include "confdefs.h"
17062 #ifdef HAVE_DB_185_H
17063 # include <db_185.h>
17068 #ifndef DB_VERSION_MAJOR
17069 # define DB_VERSION_MAJOR 1
17073 #define NULL ((void*)0)
17078 #if DB_VERSION_MAJOR > 1
17081 int major, minor, patch;
17083 version = db_version( &major, &minor, &patch );
17085 if( major != DB_VERSION_MAJOR ||
17086 minor < DB_VERSION_MINOR )
17088 printf("Berkeley DB version mismatch\n"
17089 "\texpected: %s\n\tgot: %s\n",
17090 DB_VERSION_STRING, version);
17096 #if DB_VERSION_MAJOR > 2
17097 db_env_create( NULL, 0 );
17098 #elif DB_VERSION_MAJOR > 1
17099 db_appexit( NULL );
17101 (void) dbopen( NULL, 0, 0, 0, NULL);
17106 if { (eval echo configure:17107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17110 echo "configure: failed program was:" >&5
17111 cat conftest.$ac_ext >&5
17121 echo "$ac_t""$ol_cv_db_db4" 1>&6
17123 if test $ol_cv_db_db4 = yes ; then
17128 if test $ol_cv_lib_db = no ; then
17129 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17130 echo "configure:17131: checking for Berkeley DB link (-ldb3)" >&5
17131 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17132 echo $ac_n "(cached) $ac_c" 1>&6
17137 LIBS="$ol_DB_LIB $LIBS"
17139 cat > conftest.$ac_ext <<EOF
17140 #line 17141 "configure"
17141 #include "confdefs.h"
17143 #ifdef HAVE_DB_185_H
17144 # include <db_185.h>
17149 #ifndef DB_VERSION_MAJOR
17150 # define DB_VERSION_MAJOR 1
17154 #define NULL ((void*)0)
17159 #if DB_VERSION_MAJOR > 1
17162 int major, minor, patch;
17164 version = db_version( &major, &minor, &patch );
17166 if( major != DB_VERSION_MAJOR ||
17167 minor < DB_VERSION_MINOR )
17169 printf("Berkeley DB version mismatch\n"
17170 "\texpected: %s\n\tgot: %s\n",
17171 DB_VERSION_STRING, version);
17177 #if DB_VERSION_MAJOR > 2
17178 db_env_create( NULL, 0 );
17179 #elif DB_VERSION_MAJOR > 1
17180 db_appexit( NULL );
17182 (void) dbopen( NULL, 0, 0, 0, NULL);
17187 if { (eval echo configure:17188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17191 echo "configure: failed program was:" >&5
17192 cat conftest.$ac_ext >&5
17202 echo "$ac_t""$ol_cv_db_db3" 1>&6
17204 if test $ol_cv_db_db3 = yes ; then
17209 if test $ol_cv_lib_db = no ; then
17210 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17211 echo "configure:17212: checking for Berkeley DB link (-ldb2)" >&5
17212 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17213 echo $ac_n "(cached) $ac_c" 1>&6
17218 LIBS="$ol_DB_LIB $LIBS"
17220 cat > conftest.$ac_ext <<EOF
17221 #line 17222 "configure"
17222 #include "confdefs.h"
17224 #ifdef HAVE_DB_185_H
17225 # include <db_185.h>
17230 #ifndef DB_VERSION_MAJOR
17231 # define DB_VERSION_MAJOR 1
17235 #define NULL ((void*)0)
17240 #if DB_VERSION_MAJOR > 1
17243 int major, minor, patch;
17245 version = db_version( &major, &minor, &patch );
17247 if( major != DB_VERSION_MAJOR ||
17248 minor < DB_VERSION_MINOR )
17250 printf("Berkeley DB version mismatch\n"
17251 "\texpected: %s\n\tgot: %s\n",
17252 DB_VERSION_STRING, version);
17258 #if DB_VERSION_MAJOR > 2
17259 db_env_create( NULL, 0 );
17260 #elif DB_VERSION_MAJOR > 1
17261 db_appexit( NULL );
17263 (void) dbopen( NULL, 0, 0, 0, NULL);
17268 if { (eval echo configure:17269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17272 echo "configure: failed program was:" >&5
17273 cat conftest.$ac_ext >&5
17283 echo "$ac_t""$ol_cv_db_db2" 1>&6
17285 if test $ol_cv_db_db2 = yes ; then
17290 if test $ol_cv_lib_db = no ; then
17291 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17292 echo "configure:17293: checking for Berkeley DB link (-ldb1)" >&5
17293 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17294 echo $ac_n "(cached) $ac_c" 1>&6
17299 LIBS="$ol_DB_LIB $LIBS"
17301 cat > conftest.$ac_ext <<EOF
17302 #line 17303 "configure"
17303 #include "confdefs.h"
17305 #ifdef HAVE_DB_185_H
17306 # include <db_185.h>
17311 #ifndef DB_VERSION_MAJOR
17312 # define DB_VERSION_MAJOR 1
17316 #define NULL ((void*)0)
17321 #if DB_VERSION_MAJOR > 1
17324 int major, minor, patch;
17326 version = db_version( &major, &minor, &patch );
17328 if( major != DB_VERSION_MAJOR ||
17329 minor < DB_VERSION_MINOR )
17331 printf("Berkeley DB version mismatch\n"
17332 "\texpected: %s\n\tgot: %s\n",
17333 DB_VERSION_STRING, version);
17339 #if DB_VERSION_MAJOR > 2
17340 db_env_create( NULL, 0 );
17341 #elif DB_VERSION_MAJOR > 1
17342 db_appexit( NULL );
17344 (void) dbopen( NULL, 0, 0, 0, NULL);
17349 if { (eval echo configure:17350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17353 echo "configure: failed program was:" >&5
17354 cat conftest.$ac_ext >&5
17364 echo "$ac_t""$ol_cv_db_db1" 1>&6
17366 if test $ol_cv_db_db1 = yes ; then
17372 if test "$ol_cv_lib_db" != no ; then
17373 ol_cv_berkeley_db=yes
17379 ol_cv_berkeley_db=no
17382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17384 echo "configure:17385: checking for $ac_hdr" >&5
17385 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17386 echo $ac_n "(cached) $ac_c" 1>&6
17388 cat > conftest.$ac_ext <<EOF
17389 #line 17390 "configure"
17390 #include "confdefs.h"
17393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17394 { (eval echo configure:17395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17396 if test -z "$ac_err"; then
17398 eval "ac_cv_header_$ac_safe=yes"
17401 echo "configure: failed program was:" >&5
17402 cat conftest.$ac_ext >&5
17404 eval "ac_cv_header_$ac_safe=no"
17408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17409 echo "$ac_t""yes" 1>&6
17410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17411 cat >> confdefs.h <<EOF
17412 #define $ac_tr_hdr 1
17416 echo "$ac_t""no" 1>&6
17420 if test $ac_cv_header_db_h = yes; then
17422 if test $ol_cv_lib_db = no ; then
17423 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17424 echo "configure:17425: checking for Berkeley DB link (default)" >&5
17425 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17426 echo $ac_n "(cached) $ac_c" 1>&6
17431 LIBS="$ol_DB_LIB $LIBS"
17433 cat > conftest.$ac_ext <<EOF
17434 #line 17435 "configure"
17435 #include "confdefs.h"
17437 #ifdef HAVE_DB_185_H
17438 # include <db_185.h>
17443 #ifndef DB_VERSION_MAJOR
17444 # define DB_VERSION_MAJOR 1
17448 #define NULL ((void*)0)
17453 #if DB_VERSION_MAJOR > 1
17456 int major, minor, patch;
17458 version = db_version( &major, &minor, &patch );
17460 if( major != DB_VERSION_MAJOR ||
17461 minor < DB_VERSION_MINOR )
17463 printf("Berkeley DB version mismatch\n"
17464 "\texpected: %s\n\tgot: %s\n",
17465 DB_VERSION_STRING, version);
17471 #if DB_VERSION_MAJOR > 2
17472 db_env_create( NULL, 0 );
17473 #elif DB_VERSION_MAJOR > 1
17474 db_appexit( NULL );
17476 (void) dbopen( NULL, 0, 0, 0, NULL);
17481 if { (eval echo configure:17482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17485 echo "configure: failed program was:" >&5
17486 cat conftest.$ac_ext >&5
17496 echo "$ac_t""$ol_cv_db_none" 1>&6
17498 if test $ol_cv_db_none = yes ; then
17503 if test $ol_cv_lib_db = no ; then
17504 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17505 echo "configure:17506: checking for Berkeley DB link (-ldb)" >&5
17506 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17507 echo $ac_n "(cached) $ac_c" 1>&6
17512 LIBS="$ol_DB_LIB $LIBS"
17514 cat > conftest.$ac_ext <<EOF
17515 #line 17516 "configure"
17516 #include "confdefs.h"
17518 #ifdef HAVE_DB_185_H
17519 # include <db_185.h>
17524 #ifndef DB_VERSION_MAJOR
17525 # define DB_VERSION_MAJOR 1
17529 #define NULL ((void*)0)
17534 #if DB_VERSION_MAJOR > 1
17537 int major, minor, patch;
17539 version = db_version( &major, &minor, &patch );
17541 if( major != DB_VERSION_MAJOR ||
17542 minor < DB_VERSION_MINOR )
17544 printf("Berkeley DB version mismatch\n"
17545 "\texpected: %s\n\tgot: %s\n",
17546 DB_VERSION_STRING, version);
17552 #if DB_VERSION_MAJOR > 2
17553 db_env_create( NULL, 0 );
17554 #elif DB_VERSION_MAJOR > 1
17555 db_appexit( NULL );
17557 (void) dbopen( NULL, 0, 0, 0, NULL);
17562 if { (eval echo configure:17563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17566 echo "configure: failed program was:" >&5
17567 cat conftest.$ac_ext >&5
17577 echo "$ac_t""$ol_cv_db_db" 1>&6
17579 if test $ol_cv_db_db = yes ; then
17584 if test $ol_cv_lib_db = no ; then
17585 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17586 echo "configure:17587: checking for Berkeley DB link (-ldb4)" >&5
17587 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17588 echo $ac_n "(cached) $ac_c" 1>&6
17593 LIBS="$ol_DB_LIB $LIBS"
17595 cat > conftest.$ac_ext <<EOF
17596 #line 17597 "configure"
17597 #include "confdefs.h"
17599 #ifdef HAVE_DB_185_H
17600 # include <db_185.h>
17605 #ifndef DB_VERSION_MAJOR
17606 # define DB_VERSION_MAJOR 1
17610 #define NULL ((void*)0)
17615 #if DB_VERSION_MAJOR > 1
17618 int major, minor, patch;
17620 version = db_version( &major, &minor, &patch );
17622 if( major != DB_VERSION_MAJOR ||
17623 minor < DB_VERSION_MINOR )
17625 printf("Berkeley DB version mismatch\n"
17626 "\texpected: %s\n\tgot: %s\n",
17627 DB_VERSION_STRING, version);
17633 #if DB_VERSION_MAJOR > 2
17634 db_env_create( NULL, 0 );
17635 #elif DB_VERSION_MAJOR > 1
17636 db_appexit( NULL );
17638 (void) dbopen( NULL, 0, 0, 0, NULL);
17643 if { (eval echo configure:17644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17647 echo "configure: failed program was:" >&5
17648 cat conftest.$ac_ext >&5
17658 echo "$ac_t""$ol_cv_db_db4" 1>&6
17660 if test $ol_cv_db_db4 = yes ; then
17665 if test $ol_cv_lib_db = no ; then
17666 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17667 echo "configure:17668: checking for Berkeley DB link (-ldb3)" >&5
17668 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17669 echo $ac_n "(cached) $ac_c" 1>&6
17674 LIBS="$ol_DB_LIB $LIBS"
17676 cat > conftest.$ac_ext <<EOF
17677 #line 17678 "configure"
17678 #include "confdefs.h"
17680 #ifdef HAVE_DB_185_H
17681 # include <db_185.h>
17686 #ifndef DB_VERSION_MAJOR
17687 # define DB_VERSION_MAJOR 1
17691 #define NULL ((void*)0)
17696 #if DB_VERSION_MAJOR > 1
17699 int major, minor, patch;
17701 version = db_version( &major, &minor, &patch );
17703 if( major != DB_VERSION_MAJOR ||
17704 minor < DB_VERSION_MINOR )
17706 printf("Berkeley DB version mismatch\n"
17707 "\texpected: %s\n\tgot: %s\n",
17708 DB_VERSION_STRING, version);
17714 #if DB_VERSION_MAJOR > 2
17715 db_env_create( NULL, 0 );
17716 #elif DB_VERSION_MAJOR > 1
17717 db_appexit( NULL );
17719 (void) dbopen( NULL, 0, 0, 0, NULL);
17724 if { (eval echo configure:17725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17728 echo "configure: failed program was:" >&5
17729 cat conftest.$ac_ext >&5
17739 echo "$ac_t""$ol_cv_db_db3" 1>&6
17741 if test $ol_cv_db_db3 = yes ; then
17746 if test $ol_cv_lib_db = no ; then
17747 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17748 echo "configure:17749: checking for Berkeley DB link (-ldb2)" >&5
17749 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17750 echo $ac_n "(cached) $ac_c" 1>&6
17755 LIBS="$ol_DB_LIB $LIBS"
17757 cat > conftest.$ac_ext <<EOF
17758 #line 17759 "configure"
17759 #include "confdefs.h"
17761 #ifdef HAVE_DB_185_H
17762 # include <db_185.h>
17767 #ifndef DB_VERSION_MAJOR
17768 # define DB_VERSION_MAJOR 1
17772 #define NULL ((void*)0)
17777 #if DB_VERSION_MAJOR > 1
17780 int major, minor, patch;
17782 version = db_version( &major, &minor, &patch );
17784 if( major != DB_VERSION_MAJOR ||
17785 minor < DB_VERSION_MINOR )
17787 printf("Berkeley DB version mismatch\n"
17788 "\texpected: %s\n\tgot: %s\n",
17789 DB_VERSION_STRING, version);
17795 #if DB_VERSION_MAJOR > 2
17796 db_env_create( NULL, 0 );
17797 #elif DB_VERSION_MAJOR > 1
17798 db_appexit( NULL );
17800 (void) dbopen( NULL, 0, 0, 0, NULL);
17805 if { (eval echo configure:17806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17809 echo "configure: failed program was:" >&5
17810 cat conftest.$ac_ext >&5
17820 echo "$ac_t""$ol_cv_db_db2" 1>&6
17822 if test $ol_cv_db_db2 = yes ; then
17827 if test $ol_cv_lib_db = no ; then
17828 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17829 echo "configure:17830: checking for Berkeley DB link (-ldb1)" >&5
17830 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17831 echo $ac_n "(cached) $ac_c" 1>&6
17836 LIBS="$ol_DB_LIB $LIBS"
17838 cat > conftest.$ac_ext <<EOF
17839 #line 17840 "configure"
17840 #include "confdefs.h"
17842 #ifdef HAVE_DB_185_H
17843 # include <db_185.h>
17848 #ifndef DB_VERSION_MAJOR
17849 # define DB_VERSION_MAJOR 1
17853 #define NULL ((void*)0)
17858 #if DB_VERSION_MAJOR > 1
17861 int major, minor, patch;
17863 version = db_version( &major, &minor, &patch );
17865 if( major != DB_VERSION_MAJOR ||
17866 minor < DB_VERSION_MINOR )
17868 printf("Berkeley DB version mismatch\n"
17869 "\texpected: %s\n\tgot: %s\n",
17870 DB_VERSION_STRING, version);
17876 #if DB_VERSION_MAJOR > 2
17877 db_env_create( NULL, 0 );
17878 #elif DB_VERSION_MAJOR > 1
17879 db_appexit( NULL );
17881 (void) dbopen( NULL, 0, 0, 0, NULL);
17886 if { (eval echo configure:17887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17890 echo "configure: failed program was:" >&5
17891 cat conftest.$ac_ext >&5
17901 echo "$ac_t""$ol_cv_db_db1" 1>&6
17903 if test $ol_cv_db_db1 = yes ; then
17909 if test "$ol_cv_lib_db" != no ; then
17910 ol_cv_berkeley_db=yes
17911 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
17912 echo "configure:17913: checking for Berkeley DB thread support" >&5
17913 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
17914 echo $ac_n "(cached) $ac_c" 1>&6
17918 if test $ol_cv_lib_db != yes ; then
17919 LIBS="$ol_cv_lib_db"
17922 if test "$cross_compiling" = yes; then
17923 ol_cv_berkeley_db_thread=cross
17925 cat > conftest.$ac_ext <<EOF
17926 #line 17927 "configure"
17927 #include "confdefs.h"
17929 #ifdef HAVE_DB_185_H
17935 #define NULL ((void *)0)
17940 u_int32_t flags = DB_CREATE |
17946 #if DB_VERSION_MAJOR > 2
17947 DB_ENV *env = NULL;
17949 rc = db_env_create( &env, 0 );
17951 flags |= DB_INIT_MPOOL;
17952 #ifdef DB_MPOOL_PRIVATE
17953 flags |= DB_MPOOL_PRIVATE;
17957 printf("BerkeleyDB: %s\n", db_strerror(rc) );
17961 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
17962 rc = env->open( env, NULL, flags, 0 );
17964 rc = env->open( env, NULL, NULL, flags, 0 );
17968 rc = env->close( env, 0 );
17972 printf("BerkeleyDB: %s\n", db_strerror(rc) );
17978 memset( &env, '\0', sizeof(env) );
17980 rc = db_appinit( NULL, NULL, &env, flags );
17983 db_appexit( &env );
17986 unlink("__db_mpool.share");
17987 unlink("__db_lock.share");
17993 if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17995 ol_cv_berkeley_db_thread=yes
17997 echo "configure: failed program was:" >&5
17998 cat conftest.$ac_ext >&5
18000 ol_cv_berkeley_db_thread=no
18008 if test $ol_cv_berkeley_db_thread != no ; then
18009 cat >> confdefs.h <<\EOF
18010 #define HAVE_BERKELEY_DB_THREAD 1
18017 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
18023 if test $ol_cv_berkeley_db != no ; then
18024 cat >> confdefs.h <<\EOF
18025 #define HAVE_BERKELEY_DB 1
18029 ol_link_ldbm=berkeley
18030 ol_with_ldbm_api=berkeley
18032 if test $ol_with_ldbm_type = hash ; then
18033 cat >> confdefs.h <<\EOF
18034 #define LDBM_USE_DBHASH 1
18038 cat >> confdefs.h <<\EOF
18039 #define LDBM_USE_DBBTREE 1
18044 if test $ol_cv_lib_db != yes ; then
18045 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
18050 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
18051 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
18052 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
18053 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
18054 echo "configure:18055: checking Berkeley DB version for BDB backend" >&5
18055 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
18056 echo $ac_n "(cached) $ac_c" 1>&6
18059 cat > conftest.$ac_ext <<EOF
18060 #line 18061 "configure"
18061 #include "confdefs.h"
18065 /* this check could be improved */
18066 #ifndef DB_VERSION_MAJOR
18067 # define DB_VERSION_MAJOR 1
18070 /* require 4.0 or later */
18071 #if DB_VERSION_MAJOR >= 4
18072 __db_version_compat
18076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18077 egrep "__db_version_compat" >/dev/null 2>&1; then
18079 ol_cv_bdb_compat=yes
18082 ol_cv_bdb_compat=no
18088 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
18091 if test $ol_cv_bdb_compat = yes ; then
18093 elif test $ol_enable_bdb = yes ; then
18094 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
18100 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
18101 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
18102 ol_with_ldbm_api=none
18105 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
18106 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
18107 echo "configure:18108: checking for MDBM library" >&5
18108 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
18109 echo $ac_n "(cached) $ac_c" 1>&6
18112 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
18113 echo "configure:18114: checking for mdbm_set_chain" >&5
18114 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
18115 echo $ac_n "(cached) $ac_c" 1>&6
18117 cat > conftest.$ac_ext <<EOF
18118 #line 18119 "configure"
18119 #include "confdefs.h"
18120 /* System header to define __stub macros and hopefully few prototypes,
18121 which can conflict with char mdbm_set_chain(); below. */
18122 #include <assert.h>
18123 /* Override any gcc2 internal prototype to avoid an error. */
18124 /* We use char because int might match the return type of a gcc2
18125 builtin and then its argument prototype would still apply. */
18126 char mdbm_set_chain();
18131 /* The GNU C library defines this for functions which it implements
18132 to always fail with ENOSYS. Some functions are actually named
18133 something starting with __ and the normal name is an alias. */
18134 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
18137 f = mdbm_set_chain;
18142 if { (eval echo configure:18143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18144 eval "ac_cv_func_mdbm_set_chain=yes"
18146 echo "configure: failed program was:" >&5
18147 cat conftest.$ac_ext >&5
18149 eval "ac_cv_func_mdbm_set_chain=no"
18154 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
18155 echo "$ac_t""yes" 1>&6
18158 echo "$ac_t""no" 1>&6
18160 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
18161 echo "configure:18162: checking for mdbm_set_chain in -lmdbm" >&5
18162 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
18163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18164 echo $ac_n "(cached) $ac_c" 1>&6
18166 ac_save_LIBS="$LIBS"
18167 LIBS="-lmdbm $LIBS"
18168 cat > conftest.$ac_ext <<EOF
18169 #line 18170 "configure"
18170 #include "confdefs.h"
18171 /* Override any gcc2 internal prototype to avoid an error. */
18172 /* We use char because int might match the return type of a gcc2
18173 builtin and then its argument prototype would still apply. */
18174 char mdbm_set_chain();
18180 if { (eval echo configure:18181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18182 eval "ac_cv_lib_$ac_lib_var=yes"
18184 echo "configure: failed program was:" >&5
18185 cat conftest.$ac_ext >&5
18187 eval "ac_cv_lib_$ac_lib_var=no"
18190 LIBS="$ac_save_LIBS"
18193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18194 echo "$ac_t""yes" 1>&6
18195 ol_cv_lib_mdbm=-lmdbm
18197 echo "$ac_t""no" 1>&6
18208 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
18211 for ac_hdr in mdbm.h
18213 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18214 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18215 echo "configure:18216: checking for $ac_hdr" >&5
18216 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18217 echo $ac_n "(cached) $ac_c" 1>&6
18219 cat > conftest.$ac_ext <<EOF
18220 #line 18221 "configure"
18221 #include "confdefs.h"
18224 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18225 { (eval echo configure:18226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18226 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18227 if test -z "$ac_err"; then
18229 eval "ac_cv_header_$ac_safe=yes"
18232 echo "configure: failed program was:" >&5
18233 cat conftest.$ac_ext >&5
18235 eval "ac_cv_header_$ac_safe=no"
18239 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18240 echo "$ac_t""yes" 1>&6
18241 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18242 cat >> confdefs.h <<EOF
18243 #define $ac_tr_hdr 1
18247 echo "$ac_t""no" 1>&6
18251 echo $ac_n "checking for db""... $ac_c" 1>&6
18252 echo "configure:18253: checking for db" >&5
18253 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
18254 echo $ac_n "(cached) $ac_c" 1>&6
18257 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
18265 echo "$ac_t""$ol_cv_mdbm" 1>&6
18266 if test $ol_cv_mdbm = yes ; then
18267 cat >> confdefs.h <<\EOF
18268 #define HAVE_MDBM 1
18274 if test $ol_cv_mdbm = yes ; then
18276 ol_with_ldbm_api=mdbm
18277 if test $ol_cv_lib_mdbm != yes ; then
18278 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
18283 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
18284 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
18285 echo "configure:18286: checking for GDBM library" >&5
18286 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
18287 echo $ac_n "(cached) $ac_c" 1>&6
18290 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
18291 echo "configure:18292: checking for gdbm_open" >&5
18292 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18295 cat > conftest.$ac_ext <<EOF
18296 #line 18297 "configure"
18297 #include "confdefs.h"
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char gdbm_open(); below. */
18300 #include <assert.h>
18301 /* Override any gcc2 internal prototype to avoid an error. */
18302 /* We use char because int might match the return type of a gcc2
18303 builtin and then its argument prototype would still apply. */
18309 /* The GNU C library defines this for functions which it implements
18310 to always fail with ENOSYS. Some functions are actually named
18311 something starting with __ and the normal name is an alias. */
18312 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
18320 if { (eval echo configure:18321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18322 eval "ac_cv_func_gdbm_open=yes"
18324 echo "configure: failed program was:" >&5
18325 cat conftest.$ac_ext >&5
18327 eval "ac_cv_func_gdbm_open=no"
18332 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
18333 echo "$ac_t""yes" 1>&6
18336 echo "$ac_t""no" 1>&6
18338 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
18339 echo "configure:18340: checking for gdbm_open in -lgdbm" >&5
18340 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
18341 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18342 echo $ac_n "(cached) $ac_c" 1>&6
18344 ac_save_LIBS="$LIBS"
18345 LIBS="-lgdbm $LIBS"
18346 cat > conftest.$ac_ext <<EOF
18347 #line 18348 "configure"
18348 #include "confdefs.h"
18349 /* Override any gcc2 internal prototype to avoid an error. */
18350 /* We use char because int might match the return type of a gcc2
18351 builtin and then its argument prototype would still apply. */
18358 if { (eval echo configure:18359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18360 eval "ac_cv_lib_$ac_lib_var=yes"
18362 echo "configure: failed program was:" >&5
18363 cat conftest.$ac_ext >&5
18365 eval "ac_cv_lib_$ac_lib_var=no"
18368 LIBS="$ac_save_LIBS"
18371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18372 echo "$ac_t""yes" 1>&6
18373 ol_cv_lib_gdbm=-lgdbm
18375 echo "$ac_t""no" 1>&6
18386 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
18389 for ac_hdr in gdbm.h
18391 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18392 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18393 echo "configure:18394: checking for $ac_hdr" >&5
18394 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
18397 cat > conftest.$ac_ext <<EOF
18398 #line 18399 "configure"
18399 #include "confdefs.h"
18402 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18403 { (eval echo configure:18404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18404 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18405 if test -z "$ac_err"; then
18407 eval "ac_cv_header_$ac_safe=yes"
18410 echo "configure: failed program was:" >&5
18411 cat conftest.$ac_ext >&5
18413 eval "ac_cv_header_$ac_safe=no"
18417 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18418 echo "$ac_t""yes" 1>&6
18419 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18420 cat >> confdefs.h <<EOF
18421 #define $ac_tr_hdr 1
18425 echo "$ac_t""no" 1>&6
18429 echo $ac_n "checking for db""... $ac_c" 1>&6
18430 echo "configure:18431: checking for db" >&5
18431 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
18432 echo $ac_n "(cached) $ac_c" 1>&6
18435 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
18443 echo "$ac_t""$ol_cv_gdbm" 1>&6
18444 if test $ol_cv_gdbm = yes ; then
18445 cat >> confdefs.h <<\EOF
18446 #define HAVE_GDBM 1
18452 if test $ol_cv_gdbm = yes ; then
18454 ol_with_ldbm_api=gdbm
18456 if test $ol_cv_lib_gdbm != yes ; then
18457 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
18462 if test $ol_with_ldbm_api = ndbm ; then
18463 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
18464 echo "configure:18465: checking for NDBM library" >&5
18465 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
18466 echo $ac_n "(cached) $ac_c" 1>&6
18469 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
18470 echo "configure:18471: checking for dbm_open" >&5
18471 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
18472 echo $ac_n "(cached) $ac_c" 1>&6
18474 cat > conftest.$ac_ext <<EOF
18475 #line 18476 "configure"
18476 #include "confdefs.h"
18477 /* System header to define __stub macros and hopefully few prototypes,
18478 which can conflict with char dbm_open(); below. */
18479 #include <assert.h>
18480 /* Override any gcc2 internal prototype to avoid an error. */
18481 /* We use char because int might match the return type of a gcc2
18482 builtin and then its argument prototype would still apply. */
18488 /* The GNU C library defines this for functions which it implements
18489 to always fail with ENOSYS. Some functions are actually named
18490 something starting with __ and the normal name is an alias. */
18491 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
18499 if { (eval echo configure:18500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18501 eval "ac_cv_func_dbm_open=yes"
18503 echo "configure: failed program was:" >&5
18504 cat conftest.$ac_ext >&5
18506 eval "ac_cv_func_dbm_open=no"
18511 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
18512 echo "$ac_t""yes" 1>&6
18515 echo "$ac_t""no" 1>&6
18517 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
18518 echo "configure:18519: checking for dbm_open in -lndbm" >&5
18519 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18521 echo $ac_n "(cached) $ac_c" 1>&6
18523 ac_save_LIBS="$LIBS"
18524 LIBS="-lndbm $LIBS"
18525 cat > conftest.$ac_ext <<EOF
18526 #line 18527 "configure"
18527 #include "confdefs.h"
18528 /* Override any gcc2 internal prototype to avoid an error. */
18529 /* We use char because int might match the return type of a gcc2
18530 builtin and then its argument prototype would still apply. */
18537 if { (eval echo configure:18538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18539 eval "ac_cv_lib_$ac_lib_var=yes"
18541 echo "configure: failed program was:" >&5
18542 cat conftest.$ac_ext >&5
18544 eval "ac_cv_lib_$ac_lib_var=no"
18547 LIBS="$ac_save_LIBS"
18550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18551 echo "$ac_t""yes" 1>&6
18552 ol_cv_lib_ndbm=-lndbm
18554 echo "$ac_t""no" 1>&6
18556 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
18557 echo "configure:18558: checking for dbm_open in -ldbm" >&5
18558 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
18559 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18560 echo $ac_n "(cached) $ac_c" 1>&6
18562 ac_save_LIBS="$LIBS"
18564 cat > conftest.$ac_ext <<EOF
18565 #line 18566 "configure"
18566 #include "confdefs.h"
18567 /* Override any gcc2 internal prototype to avoid an error. */
18568 /* We use char because int might match the return type of a gcc2
18569 builtin and then its argument prototype would still apply. */
18576 if { (eval echo configure:18577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18578 eval "ac_cv_lib_$ac_lib_var=yes"
18580 echo "configure: failed program was:" >&5
18581 cat conftest.$ac_ext >&5
18583 eval "ac_cv_lib_$ac_lib_var=no"
18586 LIBS="$ac_save_LIBS"
18589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18590 echo "$ac_t""yes" 1>&6
18591 ol_cv_lib_ndbm=-ldbm
18593 echo "$ac_t""no" 1>&6
18606 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
18609 for ac_hdr in ndbm.h
18611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18613 echo "configure:18614: checking for $ac_hdr" >&5
18614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18615 echo $ac_n "(cached) $ac_c" 1>&6
18617 cat > conftest.$ac_ext <<EOF
18618 #line 18619 "configure"
18619 #include "confdefs.h"
18622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18623 { (eval echo configure:18624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18625 if test -z "$ac_err"; then
18627 eval "ac_cv_header_$ac_safe=yes"
18630 echo "configure: failed program was:" >&5
18631 cat conftest.$ac_ext >&5
18633 eval "ac_cv_header_$ac_safe=no"
18637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18638 echo "$ac_t""yes" 1>&6
18639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18640 cat >> confdefs.h <<EOF
18641 #define $ac_tr_hdr 1
18645 echo "$ac_t""no" 1>&6
18649 echo $ac_n "checking for db""... $ac_c" 1>&6
18650 echo "configure:18651: checking for db" >&5
18651 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
18652 echo $ac_n "(cached) $ac_c" 1>&6
18655 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
18663 echo "$ac_t""$ol_cv_ndbm" 1>&6
18664 if test $ol_cv_ndbm = yes ; then
18665 cat >> confdefs.h <<\EOF
18666 #define HAVE_NDBM 1
18672 if test $ol_cv_ndbm = yes ; then
18674 ol_with_ldbm_api=ndbm
18676 if test $ol_cv_lib_ndbm != yes ; then
18677 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
18682 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
18683 echo "configure: warning: could not find suitable LDBM backend" 1>&2
18684 if test $ol_enable_ldbm = yes ; then
18685 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
18688 echo "configure: warning: disabling LDBM" 1>&2
18692 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
18693 BUILD_LIBS_DYNAMIC=shared
18694 cat >> confdefs.h <<\EOF
18695 #define LDAP_LIBS_DYNAMIC 1
18699 BUILD_LIBS_DYNAMIC=static
18702 if test $ol_enable_wrappers != no ; then
18703 for ac_hdr in tcpd.h
18705 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18706 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18707 echo "configure:18708: checking for $ac_hdr" >&5
18708 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18709 echo $ac_n "(cached) $ac_c" 1>&6
18711 cat > conftest.$ac_ext <<EOF
18712 #line 18713 "configure"
18713 #include "confdefs.h"
18716 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18717 { (eval echo configure:18718: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18718 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18719 if test -z "$ac_err"; then
18721 eval "ac_cv_header_$ac_safe=yes"
18724 echo "configure: failed program was:" >&5
18725 cat conftest.$ac_ext >&5
18727 eval "ac_cv_header_$ac_safe=no"
18731 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18732 echo "$ac_t""yes" 1>&6
18733 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18734 cat >> confdefs.h <<EOF
18735 #define $ac_tr_hdr 1
18738 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
18739 echo "configure:18740: checking for TCP wrappers library" >&5
18741 LIBS="$LIBS -lwrap"
18742 cat > conftest.$ac_ext <<EOF
18743 #line 18744 "configure"
18744 #include "confdefs.h"
18747 int allow_severity = 0;
18748 int deny_severity = 0;
18750 struct request_info *req;
18758 if { (eval echo configure:18759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18760 echo "$ac_t""-lwrap" 1>&6
18764 echo "configure: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18769 cat > conftest.$ac_ext <<EOF
18770 #line 18771 "configure"
18771 #include "confdefs.h"
18774 int allow_severity = 0;
18775 int deny_severity = 0;
18777 struct request_info *req;
18785 if { (eval echo configure:18786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18787 echo "$ac_t""-lwrap -lnsl" 1>&6
18789 LIBS="$save_LIBS -lnsl"
18791 echo "configure: failed program was:" >&5
18792 cat conftest.$ac_ext >&5
18795 echo "$ac_t""no" 1>&6
18803 echo "$ac_t""no" 1>&6
18809 if test $have_wrappers = yes ; then
18810 cat >> confdefs.h <<\EOF
18811 #define HAVE_TCPD 1
18815 elif test $ol_enable_wrappers = yes ; then
18816 { echo "configure: error: could not find TCP wrappers, select apppropriate options ore disable" 1>&2; exit 1; }
18818 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
18823 if test $ol_enable_syslog != no ; then
18824 echo $ac_n "checking for openlog""... $ac_c" 1>&6
18825 echo "configure:18826: checking for openlog" >&5
18826 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
18827 echo $ac_n "(cached) $ac_c" 1>&6
18829 cat > conftest.$ac_ext <<EOF
18830 #line 18831 "configure"
18831 #include "confdefs.h"
18832 /* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char openlog(); below. */
18834 #include <assert.h>
18835 /* Override any gcc2 internal prototype to avoid an error. */
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18843 /* The GNU C library defines this for functions which it implements
18844 to always fail with ENOSYS. Some functions are actually named
18845 something starting with __ and the normal name is an alias. */
18846 #if defined (__stub_openlog) || defined (__stub___openlog)
18854 if { (eval echo configure:18855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18856 eval "ac_cv_func_openlog=yes"
18858 echo "configure: failed program was:" >&5
18859 cat conftest.$ac_ext >&5
18861 eval "ac_cv_func_openlog=no"
18866 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
18867 echo "$ac_t""yes" 1>&6
18870 echo "$ac_t""no" 1>&6
18873 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
18874 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
18876 ol_enable_syslog=$ac_cv_func_openlog
18881 if test $ol_enable_sql != no ; then
18882 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
18883 echo "configure:18884: checking for SQLDriverConnect in -liodbc" >&5
18884 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18885 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18886 echo $ac_n "(cached) $ac_c" 1>&6
18888 ac_save_LIBS="$LIBS"
18889 LIBS="-liodbc $LIBS"
18890 cat > conftest.$ac_ext <<EOF
18891 #line 18892 "configure"
18892 #include "confdefs.h"
18893 /* Override any gcc2 internal prototype to avoid an error. */
18894 /* We use char because int might match the return type of a gcc2
18895 builtin and then its argument prototype would still apply. */
18896 char SQLDriverConnect();
18902 if { (eval echo configure:18903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18904 eval "ac_cv_lib_$ac_lib_var=yes"
18906 echo "configure: failed program was:" >&5
18907 cat conftest.$ac_ext >&5
18909 eval "ac_cv_lib_$ac_lib_var=no"
18912 LIBS="$ac_save_LIBS"
18915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18916 echo "$ac_t""yes" 1>&6
18919 echo "$ac_t""no" 1>&6
18923 if test $have_iodbc = yes ; then
18924 ol_link_sql="-liodbc"
18926 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
18927 echo "configure:18928: checking for SQLDriverConnect in -lodbc" >&5
18928 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
18929 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
18930 echo $ac_n "(cached) $ac_c" 1>&6
18932 ac_save_LIBS="$LIBS"
18933 LIBS="-lodbc $LIBS"
18934 cat > conftest.$ac_ext <<EOF
18935 #line 18936 "configure"
18936 #include "confdefs.h"
18937 /* Override any gcc2 internal prototype to avoid an error. */
18938 /* We use char because int might match the return type of a gcc2
18939 builtin and then its argument prototype would still apply. */
18940 char SQLDriverConnect();
18946 if { (eval echo configure:18947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18948 eval "ac_cv_lib_$ac_lib_var=yes"
18950 echo "configure: failed program was:" >&5
18951 cat conftest.$ac_ext >&5
18953 eval "ac_cv_lib_$ac_lib_var=no"
18956 LIBS="$ac_save_LIBS"
18959 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18960 echo "$ac_t""yes" 1>&6
18963 echo "$ac_t""no" 1>&6
18967 if test $have_odbc = yes ; then
18968 ol_link_sql="-lodbc"
18972 if test $ol_link_sql != no ; then
18973 SLAPD_SQL_LIBS="$ol_link_sql"
18975 elif test $ol_enable_sql != auto ; then
18976 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
18980 if test $ol_enable_tcl != no ; then
18981 for ac_hdr in tcl.h
18983 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18985 echo "configure:18986: checking for $ac_hdr" >&5
18986 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18987 echo $ac_n "(cached) $ac_c" 1>&6
18989 cat > conftest.$ac_ext <<EOF
18990 #line 18991 "configure"
18991 #include "confdefs.h"
18994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18995 { (eval echo configure:18996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18997 if test -z "$ac_err"; then
18999 eval "ac_cv_header_$ac_safe=yes"
19002 echo "configure: failed program was:" >&5
19003 cat conftest.$ac_ext >&5
19005 eval "ac_cv_header_$ac_safe=no"
19009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19010 echo "$ac_t""yes" 1>&6
19011 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19012 cat >> confdefs.h <<EOF
19013 #define $ac_tr_hdr 1
19017 echo "$ac_t""no" 1>&6
19022 if test $ac_cv_header_tcl_h != yes ; then
19025 for lib in tcl tcl7.6 tcl8.0 tcl8.2 ; do
19026 echo $ac_n "checking for main in -l$lib""... $ac_c" 1>&6
19027 echo "configure:19028: checking for main in -l$lib" >&5
19028 ac_lib_var=`echo $lib'_'main | sed 'y%./+-:%__p__%'`
19029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19030 echo $ac_n "(cached) $ac_c" 1>&6
19032 ac_save_LIBS="$LIBS"
19033 LIBS="-l$lib $LIBS"
19034 cat > conftest.$ac_ext <<EOF
19035 #line 19036 "configure"
19036 #include "confdefs.h"
19042 if { (eval echo configure:19043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19044 eval "ac_cv_lib_$ac_lib_var=yes"
19046 echo "configure: failed program was:" >&5
19047 cat conftest.$ac_ext >&5
19049 eval "ac_cv_lib_$ac_lib_var=no"
19052 LIBS="$ac_save_LIBS"
19055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19056 echo "$ac_t""yes" 1>&6
19058 if test x"$ol_with_tcl_module" = "xstatic" ; then
19059 SLAPD_LIBS="$SLAPD_LIBS -l${lib}"
19061 MOD_TCL_LIB="-l${lib}"
19064 echo "$ac_t""no" 1>&6
19071 if test $have_tcl != yes ; then
19072 echo "configure: warning: could not find -ltcl" 1>&2
19073 if test $ol_enable_tcl = yes ; then
19074 { echo "configure: error: could not find tcl, select appropriate options or disable" 1>&2; exit 1; }
19082 for ac_hdr in termcap.h ncurses.h
19084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19086 echo "configure:19087: checking for $ac_hdr" >&5
19087 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19088 echo $ac_n "(cached) $ac_c" 1>&6
19090 cat > conftest.$ac_ext <<EOF
19091 #line 19092 "configure"
19092 #include "confdefs.h"
19095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19096 { (eval echo configure:19097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19098 if test -z "$ac_err"; then
19100 eval "ac_cv_header_$ac_safe=yes"
19103 echo "configure: failed program was:" >&5
19104 cat conftest.$ac_ext >&5
19106 eval "ac_cv_header_$ac_safe=no"
19110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19111 echo "$ac_t""yes" 1>&6
19112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19113 cat >> confdefs.h <<EOF
19114 #define $ac_tr_hdr 1
19118 echo "$ac_t""no" 1>&6
19123 if test $ol_link_termcap = no ; then
19124 echo $ac_n "checking for tputs in -ltermcap""... $ac_c" 1>&6
19125 echo "configure:19126: checking for tputs in -ltermcap" >&5
19126 ac_lib_var=`echo termcap'_'tputs | sed 'y%./+-:%__p__%'`
19127 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19128 echo $ac_n "(cached) $ac_c" 1>&6
19130 ac_save_LIBS="$LIBS"
19131 LIBS="-ltermcap $LIBS"
19132 cat > conftest.$ac_ext <<EOF
19133 #line 19134 "configure"
19134 #include "confdefs.h"
19135 /* Override any gcc2 internal prototype to avoid an error. */
19136 /* We use char because int might match the return type of a gcc2
19137 builtin and then its argument prototype would still apply. */
19144 if { (eval echo configure:19145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19146 eval "ac_cv_lib_$ac_lib_var=yes"
19148 echo "configure: failed program was:" >&5
19149 cat conftest.$ac_ext >&5
19151 eval "ac_cv_lib_$ac_lib_var=no"
19154 LIBS="$ac_save_LIBS"
19157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19158 echo "$ac_t""yes" 1>&6
19161 echo "$ac_t""no" 1>&6
19165 if test $have_termcap = yes ; then
19166 cat >> confdefs.h <<\EOF
19167 #define HAVE_TERMCAP 1
19170 ol_link_termcap=yes
19171 TERMCAP_LIBS=-ltermcap
19175 if test $ol_link_termcap = no ; then
19176 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6
19177 echo "configure:19178: checking for initscr in -lncurses" >&5
19178 ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-:%__p__%'`
19179 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19180 echo $ac_n "(cached) $ac_c" 1>&6
19182 ac_save_LIBS="$LIBS"
19183 LIBS="-lncurses $LIBS"
19184 cat > conftest.$ac_ext <<EOF
19185 #line 19186 "configure"
19186 #include "confdefs.h"
19187 /* Override any gcc2 internal prototype to avoid an error. */
19188 /* We use char because int might match the return type of a gcc2
19189 builtin and then its argument prototype would still apply. */
19196 if { (eval echo configure:19197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19198 eval "ac_cv_lib_$ac_lib_var=yes"
19200 echo "configure: failed program was:" >&5
19201 cat conftest.$ac_ext >&5
19203 eval "ac_cv_lib_$ac_lib_var=no"
19206 LIBS="$ac_save_LIBS"
19209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19210 echo "$ac_t""yes" 1>&6
19213 echo "$ac_t""no" 1>&6
19217 if test $have_ncurses = yes ; then
19218 cat >> confdefs.h <<\EOF
19219 #define HAVE_NCURSES 1
19222 ol_link_termcap=yes
19223 TERMCAP_LIBS=-lncurses
19227 if test $ol_link_termcap = no ; then
19228 cat >> confdefs.h <<\EOF
19229 #define NO_TERMCAP 1
19237 if test $ol_with_cyrus_sasl != no ; then
19238 for ac_hdr in sasl.h
19240 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19241 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19242 echo "configure:19243: checking for $ac_hdr" >&5
19243 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19244 echo $ac_n "(cached) $ac_c" 1>&6
19246 cat > conftest.$ac_ext <<EOF
19247 #line 19248 "configure"
19248 #include "confdefs.h"
19251 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19252 { (eval echo configure:19253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19253 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19254 if test -z "$ac_err"; then
19256 eval "ac_cv_header_$ac_safe=yes"
19259 echo "configure: failed program was:" >&5
19260 cat conftest.$ac_ext >&5
19262 eval "ac_cv_header_$ac_safe=no"
19266 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19267 echo "$ac_t""yes" 1>&6
19268 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19269 cat >> confdefs.h <<EOF
19270 #define $ac_tr_hdr 1
19274 echo "$ac_t""no" 1>&6
19279 if test $ac_cv_header_sasl_h ; then
19280 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
19281 echo "configure:19282: checking for sasl_client_init in -lsasl2" >&5
19282 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19284 echo $ac_n "(cached) $ac_c" 1>&6
19286 ac_save_LIBS="$LIBS"
19287 LIBS="-lsasl2 $LIBS"
19288 cat > conftest.$ac_ext <<EOF
19289 #line 19290 "configure"
19290 #include "confdefs.h"
19291 /* Override any gcc2 internal prototype to avoid an error. */
19292 /* We use char because int might match the return type of a gcc2
19293 builtin and then its argument prototype would still apply. */
19294 char sasl_client_init();
19300 if { (eval echo configure:19301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19302 eval "ac_cv_lib_$ac_lib_var=yes"
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19307 eval "ac_cv_lib_$ac_lib_var=no"
19310 LIBS="$ac_save_LIBS"
19313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19314 echo "$ac_t""yes" 1>&6
19315 ol_link_sasl="-lsasl2"
19317 echo "$ac_t""no" 1>&6
19318 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
19319 echo "configure:19320: checking for sasl_client_init in -lsasl" >&5
19320 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
19321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19322 echo $ac_n "(cached) $ac_c" 1>&6
19324 ac_save_LIBS="$LIBS"
19325 LIBS="-lsasl $LIBS"
19326 cat > conftest.$ac_ext <<EOF
19327 #line 19328 "configure"
19328 #include "confdefs.h"
19329 /* Override any gcc2 internal prototype to avoid an error. */
19330 /* We use char because int might match the return type of a gcc2
19331 builtin and then its argument prototype would still apply. */
19332 char sasl_client_init();
19338 if { (eval echo configure:19339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19340 eval "ac_cv_lib_$ac_lib_var=yes"
19342 echo "configure: failed program was:" >&5
19343 cat conftest.$ac_ext >&5
19345 eval "ac_cv_lib_$ac_lib_var=no"
19348 LIBS="$ac_save_LIBS"
19351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19352 echo "$ac_t""yes" 1>&6
19353 ol_link_sasl="-lsasl"
19355 echo "$ac_t""no" 1>&6
19362 if test $ol_link_sasl = no ; then
19363 if test $ol_with_cyrus_sasl != auto ; then
19364 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
19366 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
19367 echo "configure: warning: SASL authentication not supported!" 1>&2
19368 if test $ol_link_tls = no ; then
19369 echo "configure: warning: Strong authentication not supported!" 1>&2
19373 cat >> confdefs.h <<\EOF
19374 #define HAVE_CYRUS_SASL 1
19377 SASL_LIBS="$ol_link_sasl"
19378 if test $ol_enable_spasswd != no ; then
19379 ol_link_spasswd=yes
19384 echo "configure: warning: SASL authentication not supported!" 1>&2
19385 if test $ol_link_tls = no ; then
19386 echo "configure: warning: Strong authentication not supported!" 1>&2
19390 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
19392 if test -r /dev/urandom ; then
19393 dev="/dev/urandom";
19394 elif test -r /idev/urandom ; then
19395 dev="/idev/urandom";
19396 elif test -r /dev/srandom ; then
19397 dev="/dev/srandom";
19398 elif test -r /dev/random ; then
19400 elif test -r /idev/random ; then
19401 dev="/idev/random";
19404 if test $dev != no ; then
19405 cat >> confdefs.h <<EOF
19406 #define URANDOM_DEVICE "$dev"
19413 if test $ol_with_fetch != no ; then
19415 LIBS="-lfetch -lcom_err $LIBS"
19416 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
19417 echo "configure:19418: checking fetch(3) library" >&5
19418 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
19419 echo $ac_n "(cached) $ac_c" 1>&6
19422 cat > conftest.$ac_ext <<EOF
19423 #line 19424 "configure"
19424 #include "confdefs.h"
19426 #include <sys/param.h>
19430 struct url *u = fetchParseURL("file:///");
19433 if { (eval echo configure:19434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19435 ol_cv_lib_fetch=yes
19437 echo "configure: failed program was:" >&5
19438 cat conftest.$ac_ext >&5
19445 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
19447 if test $ol_cv_lib_fetch != no ; then
19448 ol_link_fetch="-lfetch -lcom_err"
19449 cat >> confdefs.h <<\EOF
19450 #define HAVE_FETCH 1
19456 if test $ol_cv_lib_fetch != no ; then
19457 LDIF_LIBS="$LDIF_LIBS $ol_link_fetch"
19458 ol_link_fetch=freebsd
19460 elif test $ol_with_fetch != auto ; then
19461 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
19465 ol_link_readline=no
19466 if test $ol_with_readline != no ; then
19467 for ac_hdr in readline/readline.h readline/history.h
19469 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19470 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19471 echo "configure:19472: checking for $ac_hdr" >&5
19472 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19473 echo $ac_n "(cached) $ac_c" 1>&6
19475 cat > conftest.$ac_ext <<EOF
19476 #line 19477 "configure"
19477 #include "confdefs.h"
19480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19481 { (eval echo configure:19482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19483 if test -z "$ac_err"; then
19485 eval "ac_cv_header_$ac_safe=yes"
19488 echo "configure: failed program was:" >&5
19489 cat conftest.$ac_ext >&5
19491 eval "ac_cv_header_$ac_safe=no"
19495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19496 echo "$ac_t""yes" 1>&6
19497 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19498 cat >> confdefs.h <<EOF
19499 #define $ac_tr_hdr 1
19503 echo "$ac_t""no" 1>&6
19508 if test $ac_cv_header_readline_readline_h = yes ; then
19510 LIBS="$TERMCAP_LIBS $LIBS"
19511 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
19512 echo "configure:19513: checking for readline in -lreadline" >&5
19513 ac_lib_var=`echo readline'_'readline | sed 'y%./+-:%__p__%'`
19514 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19515 echo $ac_n "(cached) $ac_c" 1>&6
19517 ac_save_LIBS="$LIBS"
19518 LIBS="-lreadline $LIBS"
19519 cat > conftest.$ac_ext <<EOF
19520 #line 19521 "configure"
19521 #include "confdefs.h"
19522 /* Override any gcc2 internal prototype to avoid an error. */
19523 /* We use char because int might match the return type of a gcc2
19524 builtin and then its argument prototype would still apply. */
19531 if { (eval echo configure:19532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19533 eval "ac_cv_lib_$ac_lib_var=yes"
19535 echo "configure: failed program was:" >&5
19536 cat conftest.$ac_ext >&5
19538 eval "ac_cv_lib_$ac_lib_var=no"
19541 LIBS="$ac_save_LIBS"
19544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19545 echo "$ac_t""yes" 1>&6
19548 echo "$ac_t""no" 1>&6
19554 if test $have_readline = yes ; then
19555 ol_with_readline=found
19556 ol_link_readline=yes
19558 READLINE_LIBS="-lreadline"
19563 if test $ol_link_readline = yes ; then
19564 cat >> confdefs.h <<\EOF
19565 #define HAVE_READLINE 1
19571 if test $ol_enable_crypt != no ; then
19572 echo $ac_n "checking for crypt""... $ac_c" 1>&6
19573 echo "configure:19574: checking for crypt" >&5
19574 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
19575 echo $ac_n "(cached) $ac_c" 1>&6
19577 cat > conftest.$ac_ext <<EOF
19578 #line 19579 "configure"
19579 #include "confdefs.h"
19580 /* System header to define __stub macros and hopefully few prototypes,
19581 which can conflict with char crypt(); below. */
19582 #include <assert.h>
19583 /* Override any gcc2 internal prototype to avoid an error. */
19584 /* We use char because int might match the return type of a gcc2
19585 builtin and then its argument prototype would still apply. */
19591 /* The GNU C library defines this for functions which it implements
19592 to always fail with ENOSYS. Some functions are actually named
19593 something starting with __ and the normal name is an alias. */
19594 #if defined (__stub_crypt) || defined (__stub___crypt)
19602 if { (eval echo configure:19603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19604 eval "ac_cv_func_crypt=yes"
19606 echo "configure: failed program was:" >&5
19607 cat conftest.$ac_ext >&5
19609 eval "ac_cv_func_crypt=no"
19614 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
19615 echo "$ac_t""yes" 1>&6
19618 echo "$ac_t""no" 1>&6
19620 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
19621 echo "configure:19622: checking for crypt in -lcrypt" >&5
19622 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
19623 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19624 echo $ac_n "(cached) $ac_c" 1>&6
19626 ac_save_LIBS="$LIBS"
19627 LIBS="-lcrypt $LIBS"
19628 cat > conftest.$ac_ext <<EOF
19629 #line 19630 "configure"
19630 #include "confdefs.h"
19631 /* Override any gcc2 internal prototype to avoid an error. */
19632 /* We use char because int might match the return type of a gcc2
19633 builtin and then its argument prototype would still apply. */
19640 if { (eval echo configure:19641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19642 eval "ac_cv_lib_$ac_lib_var=yes"
19644 echo "configure: failed program was:" >&5
19645 cat conftest.$ac_ext >&5
19647 eval "ac_cv_lib_$ac_lib_var=no"
19650 LIBS="$ac_save_LIBS"
19653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19654 echo "$ac_t""yes" 1>&6
19655 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
19658 echo "$ac_t""no" 1>&6
19665 if test $have_crypt = yes ; then
19666 cat >> confdefs.h <<\EOF
19667 #define HAVE_CRYPT 1
19671 echo "configure: warning: could not find crypt" 1>&2
19672 if test $ol_enable_crypt = yes ; then
19673 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
19676 echo "configure: warning: disabling crypt support" 1>&2
19681 if test $ol_enable_proctitle != no ; then
19682 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
19683 echo "configure:19684: checking for setproctitle" >&5
19684 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
19685 echo $ac_n "(cached) $ac_c" 1>&6
19687 cat > conftest.$ac_ext <<EOF
19688 #line 19689 "configure"
19689 #include "confdefs.h"
19690 /* System header to define __stub macros and hopefully few prototypes,
19691 which can conflict with char setproctitle(); below. */
19692 #include <assert.h>
19693 /* Override any gcc2 internal prototype to avoid an error. */
19694 /* We use char because int might match the return type of a gcc2
19695 builtin and then its argument prototype would still apply. */
19696 char setproctitle();
19701 /* The GNU C library defines this for functions which it implements
19702 to always fail with ENOSYS. Some functions are actually named
19703 something starting with __ and the normal name is an alias. */
19704 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
19712 if { (eval echo configure:19713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19714 eval "ac_cv_func_setproctitle=yes"
19716 echo "configure: failed program was:" >&5
19717 cat conftest.$ac_ext >&5
19719 eval "ac_cv_func_setproctitle=no"
19724 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
19725 echo "$ac_t""yes" 1>&6
19726 have_setproctitle=yes
19728 echo "$ac_t""no" 1>&6
19730 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
19731 echo "configure:19732: checking for setproctitle in -lutil" >&5
19732 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
19733 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19734 echo $ac_n "(cached) $ac_c" 1>&6
19736 ac_save_LIBS="$LIBS"
19737 LIBS="-lutil $LIBS"
19738 cat > conftest.$ac_ext <<EOF
19739 #line 19740 "configure"
19740 #include "confdefs.h"
19741 /* Override any gcc2 internal prototype to avoid an error. */
19742 /* We use char because int might match the return type of a gcc2
19743 builtin and then its argument prototype would still apply. */
19744 char setproctitle();
19750 if { (eval echo configure:19751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19752 eval "ac_cv_lib_$ac_lib_var=yes"
19754 echo "configure: failed program was:" >&5
19755 cat conftest.$ac_ext >&5
19757 eval "ac_cv_lib_$ac_lib_var=no"
19760 LIBS="$ac_save_LIBS"
19763 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19764 echo "$ac_t""yes" 1>&6
19765 have_setproctitle=yes
19766 LUTIL_LIBS="$LUTIL_LIBS -lutil"
19768 echo "$ac_t""no" 1>&6
19769 have_setproctitle=no
19770 LIBOBJS="$LIBOBJS setproctitle.o"
19771 LIBSRCS="$LIBSRCS setproctitle.c"
19777 if test $have_setproctitle = yes ; then
19778 cat >> confdefs.h <<\EOF
19779 #define HAVE_SETPROCTITLE 1
19785 if test $ol_enable_slp != no ; then
19786 for ac_hdr in slp.h
19788 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19789 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19790 echo "configure:19791: checking for $ac_hdr" >&5
19791 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19792 echo $ac_n "(cached) $ac_c" 1>&6
19794 cat > conftest.$ac_ext <<EOF
19795 #line 19796 "configure"
19796 #include "confdefs.h"
19799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19800 { (eval echo configure:19801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19802 if test -z "$ac_err"; then
19804 eval "ac_cv_header_$ac_safe=yes"
19807 echo "configure: failed program was:" >&5
19808 cat conftest.$ac_ext >&5
19810 eval "ac_cv_header_$ac_safe=no"
19814 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19815 echo "$ac_t""yes" 1>&6
19816 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19817 cat >> confdefs.h <<EOF
19818 #define $ac_tr_hdr 1
19822 echo "$ac_t""no" 1>&6
19827 if test $ac_cv_header_slp_h = yes ; then
19828 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
19829 echo "configure:19830: checking for SLPOpen in -lslp" >&5
19830 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
19831 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19832 echo $ac_n "(cached) $ac_c" 1>&6
19834 ac_save_LIBS="$LIBS"
19836 cat > conftest.$ac_ext <<EOF
19837 #line 19838 "configure"
19838 #include "confdefs.h"
19839 /* Override any gcc2 internal prototype to avoid an error. */
19840 /* We use char because int might match the return type of a gcc2
19841 builtin and then its argument prototype would still apply. */
19848 if { (eval echo configure:19849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19850 eval "ac_cv_lib_$ac_lib_var=yes"
19852 echo "configure: failed program was:" >&5
19853 cat conftest.$ac_ext >&5
19855 eval "ac_cv_lib_$ac_lib_var=no"
19858 LIBS="$ac_save_LIBS"
19861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19862 echo "$ac_t""yes" 1>&6
19865 echo "$ac_t""no" 1>&6
19869 if test $have_slp = yes ; then
19870 cat >> confdefs.h <<\EOF
19874 SLAPD_SLP_LIBS=-lslp
19877 elif test $ol_enable_slp = yes ; then
19878 { echo "configure: error: SLP not found" 1>&2; exit 1; }
19882 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
19883 echo "configure:19884: checking for ANSI C header files" >&5
19884 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
19885 echo $ac_n "(cached) $ac_c" 1>&6
19887 cat > conftest.$ac_ext <<EOF
19888 #line 19889 "configure"
19889 #include "confdefs.h"
19890 #include <stdlib.h>
19891 #include <stdarg.h>
19892 #include <string.h>
19895 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19896 { (eval echo configure:19897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19897 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19898 if test -z "$ac_err"; then
19900 ac_cv_header_stdc=yes
19903 echo "configure: failed program was:" >&5
19904 cat conftest.$ac_ext >&5
19906 ac_cv_header_stdc=no
19910 if test $ac_cv_header_stdc = yes; then
19911 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19912 cat > conftest.$ac_ext <<EOF
19913 #line 19914 "configure"
19914 #include "confdefs.h"
19915 #include <string.h>
19917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19918 egrep "memchr" >/dev/null 2>&1; then
19922 ac_cv_header_stdc=no
19928 if test $ac_cv_header_stdc = yes; then
19929 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19930 cat > conftest.$ac_ext <<EOF
19931 #line 19932 "configure"
19932 #include "confdefs.h"
19933 #include <stdlib.h>
19935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19936 egrep "free" >/dev/null 2>&1; then
19940 ac_cv_header_stdc=no
19946 if test $ac_cv_header_stdc = yes; then
19947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19948 if test "$cross_compiling" = yes; then
19951 cat > conftest.$ac_ext <<EOF
19952 #line 19953 "configure"
19953 #include "confdefs.h"
19955 #if ((' ' & 0x0FF) == 0x020)
19956 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19957 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19959 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
19960 || ('j' <= (c) && (c) <= 'r') \
19961 || ('s' <= (c) && (c) <= 'z'))
19962 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19965 int main () { int i; for (i = 0; i < 256; i++)
19966 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
19970 if { (eval echo configure:19971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19974 echo "configure: failed program was:" >&5
19975 cat conftest.$ac_ext >&5
19977 ac_cv_header_stdc=no
19985 echo "$ac_t""$ac_cv_header_stdc" 1>&6
19986 if test $ac_cv_header_stdc = yes; then
19987 cat >> confdefs.h <<\EOF
19988 #define STDC_HEADERS 1
19993 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
19994 echo "configure:19995: checking for mode_t" >&5
19995 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
19996 echo $ac_n "(cached) $ac_c" 1>&6
19998 cat > conftest.$ac_ext <<EOF
19999 #line 20000 "configure"
20000 #include "confdefs.h"
20001 #include <sys/types.h>
20003 #include <stdlib.h>
20004 #include <stddef.h>
20008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20009 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20011 eval "ac_cv_type_mode_t=yes"
20014 eval "ac_cv_type_mode_t=no"
20019 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
20020 echo "$ac_t""yes" 1>&6
20022 echo "$ac_t""no" 1>&6
20023 cat >> confdefs.h <<EOF
20029 echo $ac_n "checking for off_t""... $ac_c" 1>&6
20030 echo "configure:20031: checking for off_t" >&5
20031 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
20032 echo $ac_n "(cached) $ac_c" 1>&6
20034 cat > conftest.$ac_ext <<EOF
20035 #line 20036 "configure"
20036 #include "confdefs.h"
20037 #include <sys/types.h>
20039 #include <stdlib.h>
20040 #include <stddef.h>
20044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20045 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20047 eval "ac_cv_type_off_t=yes"
20050 eval "ac_cv_type_off_t=no"
20055 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
20056 echo "$ac_t""yes" 1>&6
20058 echo "$ac_t""no" 1>&6
20059 cat >> confdefs.h <<EOF
20065 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
20066 echo "configure:20067: checking for pid_t" >&5
20067 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
20068 echo $ac_n "(cached) $ac_c" 1>&6
20070 cat > conftest.$ac_ext <<EOF
20071 #line 20072 "configure"
20072 #include "confdefs.h"
20073 #include <sys/types.h>
20075 #include <stdlib.h>
20076 #include <stddef.h>
20080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20081 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20083 eval "ac_cv_type_pid_t=yes"
20086 eval "ac_cv_type_pid_t=no"
20091 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
20092 echo "$ac_t""yes" 1>&6
20094 echo "$ac_t""no" 1>&6
20095 cat >> confdefs.h <<EOF
20101 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
20102 echo "configure:20103: checking for ptrdiff_t" >&5
20103 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
20104 echo $ac_n "(cached) $ac_c" 1>&6
20106 cat > conftest.$ac_ext <<EOF
20107 #line 20108 "configure"
20108 #include "confdefs.h"
20109 #include <stddef.h>
20114 if { (eval echo configure:20115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20116 am_cv_type_ptrdiff_t=yes
20118 echo "configure: failed program was:" >&5
20119 cat conftest.$ac_ext >&5
20121 am_cv_type_ptrdiff_t=no
20126 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
20127 if test $am_cv_type_ptrdiff_t = yes; then
20128 cat >> confdefs.h <<\EOF
20129 #define HAVE_PTRDIFF_T 1
20134 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
20135 echo "configure:20136: checking return type of signal handlers" >&5
20136 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
20137 echo $ac_n "(cached) $ac_c" 1>&6
20139 cat > conftest.$ac_ext <<EOF
20140 #line 20141 "configure"
20141 #include "confdefs.h"
20142 #include <sys/types.h>
20143 #include <signal.h>
20148 extern "C" void (*signal (int, void (*)(int)))(int);
20150 void (*signal ()) ();
20157 if { (eval echo configure:20158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20159 ac_cv_type_signal=void
20161 echo "configure: failed program was:" >&5
20162 cat conftest.$ac_ext >&5
20164 ac_cv_type_signal=int
20169 echo "$ac_t""$ac_cv_type_signal" 1>&6
20170 cat >> confdefs.h <<EOF
20171 #define RETSIGTYPE $ac_cv_type_signal
20175 echo $ac_n "checking for size_t""... $ac_c" 1>&6
20176 echo "configure:20177: checking for size_t" >&5
20177 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
20178 echo $ac_n "(cached) $ac_c" 1>&6
20180 cat > conftest.$ac_ext <<EOF
20181 #line 20182 "configure"
20182 #include "confdefs.h"
20183 #include <sys/types.h>
20185 #include <stdlib.h>
20186 #include <stddef.h>
20190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20191 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20193 eval "ac_cv_type_size_t=yes"
20196 eval "ac_cv_type_size_t=no"
20201 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
20202 echo "$ac_t""yes" 1>&6
20204 echo "$ac_t""no" 1>&6
20205 cat >> confdefs.h <<EOF
20206 #define size_t unsigned
20212 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
20213 echo "configure:20214: checking for ssize_t" >&5
20214 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
20215 echo $ac_n "(cached) $ac_c" 1>&6
20217 cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20220 #include <sys/types.h>
20222 #include <stdlib.h>
20223 #include <stddef.h>
20227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20228 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20230 eval "ac_cv_type_ssize_t=yes"
20233 eval "ac_cv_type_ssize_t=no"
20238 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
20239 echo "$ac_t""yes" 1>&6
20241 echo "$ac_t""no" 1>&6
20242 cat >> confdefs.h <<EOF
20243 #define ssize_t signed int
20248 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
20249 echo "configure:20250: checking for caddr_t" >&5
20250 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
20251 echo $ac_n "(cached) $ac_c" 1>&6
20253 cat > conftest.$ac_ext <<EOF
20254 #line 20255 "configure"
20255 #include "confdefs.h"
20256 #include <sys/types.h>
20258 #include <stdlib.h>
20259 #include <stddef.h>
20263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20264 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
20266 eval "ac_cv_type_caddr_t=yes"
20269 eval "ac_cv_type_caddr_t=no"
20274 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
20275 echo "$ac_t""yes" 1>&6
20277 echo "$ac_t""no" 1>&6
20278 cat >> confdefs.h <<EOF
20279 #define caddr_t char *
20285 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
20286 echo "configure:20287: checking for socklen_t" >&5
20287 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
20288 echo $ac_n "(cached) $ac_c" 1>&6
20290 cat > conftest.$ac_ext <<EOF
20291 #line 20292 "configure"
20292 #include "confdefs.h"
20294 #ifdef HAVE_SYS_TYPES_H
20295 #include <sys/types.h>
20297 #ifdef HAVE_SYS_SOCKET_H
20298 #include <sys/socket.h>
20305 if { (eval echo configure:20306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20307 ol_cv_type_socklen_t=yes
20309 echo "configure: failed program was:" >&5
20310 cat conftest.$ac_ext >&5
20312 ol_cv_type_socklen_t=no
20317 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
20318 if test $ol_cv_type_socklen_t = no; then
20319 cat >> confdefs.h <<\EOF
20320 #define socklen_t int
20325 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
20326 echo "configure:20327: checking for member st_blksize in aggregate type struct stat" >&5
20327 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
20328 echo $ac_n "(cached) $ac_c" 1>&6
20330 cat > conftest.$ac_ext <<EOF
20331 #line 20332 "configure"
20332 #include "confdefs.h"
20333 #include <sys/types.h>
20334 #include <sys/stat.h>
20336 struct stat foo; foo.st_blksize;
20339 if { (eval echo configure:20340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20341 ac_cv_c_struct_member_st_blksize=yes
20343 echo "configure: failed program was:" >&5
20344 cat conftest.$ac_ext >&5
20346 ac_cv_c_struct_member_st_blksize=no
20351 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
20352 st_blksize="$ac_cv_c_struct_member_st_blksize"
20353 if test $ac_cv_c_struct_member_st_blksize = yes; then
20354 cat >> confdefs.h <<\EOF
20355 #define HAVE_ST_BLKSIZE 1
20360 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
20361 echo "configure:20362: checking whether time.h and sys/time.h may both be included" >&5
20362 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
20363 echo $ac_n "(cached) $ac_c" 1>&6
20365 cat > conftest.$ac_ext <<EOF
20366 #line 20367 "configure"
20367 #include "confdefs.h"
20368 #include <sys/types.h>
20369 #include <sys/time.h>
20375 if { (eval echo configure:20376: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20377 ac_cv_header_time=yes
20379 echo "configure: failed program was:" >&5
20380 cat conftest.$ac_ext >&5
20382 ac_cv_header_time=no
20387 echo "$ac_t""$ac_cv_header_time" 1>&6
20388 if test $ac_cv_header_time = yes; then
20389 cat >> confdefs.h <<\EOF
20390 #define TIME_WITH_SYS_TIME 1
20395 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
20396 echo "configure:20397: checking whether struct tm is in sys/time.h or time.h" >&5
20397 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
20398 echo $ac_n "(cached) $ac_c" 1>&6
20400 cat > conftest.$ac_ext <<EOF
20401 #line 20402 "configure"
20402 #include "confdefs.h"
20403 #include <sys/types.h>
20406 struct tm *tp; tp->tm_sec;
20409 if { (eval echo configure:20410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20411 ac_cv_struct_tm=time.h
20413 echo "configure: failed program was:" >&5
20414 cat conftest.$ac_ext >&5
20416 ac_cv_struct_tm=sys/time.h
20421 echo "$ac_t""$ac_cv_struct_tm" 1>&6
20422 if test $ac_cv_struct_tm = sys/time.h; then
20423 cat >> confdefs.h <<\EOF
20424 #define TM_IN_SYS_TIME 1
20429 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
20430 echo "configure:20431: checking for uid_t in sys/types.h" >&5
20431 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
20432 echo $ac_n "(cached) $ac_c" 1>&6
20434 cat > conftest.$ac_ext <<EOF
20435 #line 20436 "configure"
20436 #include "confdefs.h"
20437 #include <sys/types.h>
20439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20440 egrep "uid_t" >/dev/null 2>&1; then
20442 ac_cv_type_uid_t=yes
20445 ac_cv_type_uid_t=no
20451 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
20452 if test $ac_cv_type_uid_t = no; then
20453 cat >> confdefs.h <<\EOF
20457 cat >> confdefs.h <<\EOF
20463 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
20464 echo "configure:20465: checking for sig_atomic_t" >&5
20465 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
20466 echo $ac_n "(cached) $ac_c" 1>&6
20468 cat > conftest.$ac_ext <<EOF
20469 #line 20470 "configure"
20470 #include "confdefs.h"
20471 #include <signal.h>
20473 sig_atomic_t atomic;
20476 if { (eval echo configure:20477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20478 ol_cv_type_sig_atomic_t=yes
20480 echo "configure: failed program was:" >&5
20481 cat conftest.$ac_ext >&5
20483 ol_cv_type_sig_atomic_t=no
20488 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
20489 if test $ol_cv_type_sig_atomic_t = no; then
20490 cat >> confdefs.h <<\EOF
20491 #define sig_atomic_t int
20498 # test for pw_gecos in struct passwd
20499 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
20500 echo "configure:20501: checking struct passwd for pw_gecos" >&5
20501 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
20502 echo $ac_n "(cached) $ac_c" 1>&6
20505 cat > conftest.$ac_ext <<EOF
20506 #line 20507 "configure"
20507 #include "confdefs.h"
20512 pwd.pw_gecos = pwd.pw_name;
20516 if { (eval echo configure:20517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20518 ol_cv_struct_passwd_pw_gecos=yes
20520 echo "configure: failed program was:" >&5
20521 cat conftest.$ac_ext >&5
20523 ol_cv_struct_passwd_pw_gecos=no
20528 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
20529 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
20530 cat >> confdefs.h <<\EOF
20531 #define HAVE_PW_GECOS 1
20536 # test for pw_passwd in struct passwd
20537 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
20538 echo "configure:20539: checking struct passwd for pw_passwd" >&5
20539 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
20540 echo $ac_n "(cached) $ac_c" 1>&6
20543 cat > conftest.$ac_ext <<EOF
20544 #line 20545 "configure"
20545 #include "confdefs.h"
20550 pwd.pw_passwd = pwd.pw_name;
20554 if { (eval echo configure:20555: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20556 ol_cv_struct_passwd_pw_passwd=yes
20558 echo "configure: failed program was:" >&5
20559 cat conftest.$ac_ext >&5
20561 ol_cv_struct_passwd_pw_passwd=no
20566 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
20567 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
20568 cat >> confdefs.h <<\EOF
20569 #define HAVE_PW_PASSWD 1
20575 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
20576 echo "configure:20577: checking if toupper() requires islower()" >&5
20577 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
20578 echo $ac_n "(cached) $ac_c" 1>&6
20581 if test "$cross_compiling" = yes; then
20582 ol_cv_c_upper_lower=safe
20584 cat > conftest.$ac_ext <<EOF
20585 #line 20586 "configure"
20586 #include "confdefs.h"
20591 if ('C' == toupper('C'))
20597 if { (eval echo configure:20598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20599 ol_cv_c_upper_lower=no
20601 echo "configure: failed program was:" >&5
20602 cat conftest.$ac_ext >&5
20604 ol_cv_c_upper_lower=yes
20611 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
20612 if test $ol_cv_c_upper_lower != no ; then
20613 cat >> confdefs.h <<\EOF
20614 #define C_UPPER_LOWER 1
20619 echo $ac_n "checking for working const""... $ac_c" 1>&6
20620 echo "configure:20621: checking for working const" >&5
20621 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
20622 echo $ac_n "(cached) $ac_c" 1>&6
20624 cat > conftest.$ac_ext <<EOF
20625 #line 20626 "configure"
20626 #include "confdefs.h"
20630 /* Ultrix mips cc rejects this. */
20631 typedef int charset[2]; const charset x;
20632 /* SunOS 4.1.1 cc rejects this. */
20633 char const *const *ccp;
20635 /* NEC SVR4.0.2 mips cc rejects this. */
20636 struct point {int x, y;};
20637 static struct point const zero = {0,0};
20638 /* AIX XL C 1.02.0.0 rejects this.
20639 It does not let you subtract one const X* pointer from another in an arm
20640 of an if-expression whose if-part is not a constant expression */
20641 const char *g = "string";
20642 ccp = &g + (g ? g-g : 0);
20643 /* HPUX 7.0 cc rejects these. */
20646 ccp = (char const *const *) p;
20647 { /* SCO 3.2v4 cc rejects this. */
20649 char const *s = 0 ? (char *) 0 : (char const *) 0;
20653 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20654 int x[] = {25, 17};
20655 const int *foo = &x[0];
20658 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20659 typedef const int *iptr;
20663 { /* AIX XL C 1.02.0.0 rejects this saying
20664 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20665 struct s { int j; const int *ap[3]; };
20666 struct s *b; b->j = 5;
20668 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20669 const int foo = 10;
20674 if { (eval echo configure:20675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20678 echo "configure: failed program was:" >&5
20679 cat conftest.$ac_ext >&5
20686 echo "$ac_t""$ac_cv_c_const" 1>&6
20687 if test $ac_cv_c_const = no; then
20688 cat >> confdefs.h <<\EOF
20694 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
20695 echo "configure:20696: checking if compiler understands volatile" >&5
20696 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
20697 echo $ac_n "(cached) $ac_c" 1>&6
20699 cat > conftest.$ac_ext <<EOF
20700 #line 20701 "configure"
20701 #include "confdefs.h"
20704 volatile int a; int * volatile b = x ? &y : &z;
20705 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
20709 if { (eval echo configure:20710: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20711 ol_cv_c_volatile=yes
20713 echo "configure: failed program was:" >&5
20714 cat conftest.$ac_ext >&5
20716 ol_cv_c_volatile=no
20721 echo "$ac_t""$ol_cv_c_volatile" 1>&6
20722 if test $ol_cv_c_volatile = yes; then
20725 cat >> confdefs.h <<\EOF
20732 if test $cross_compiling = yes ; then
20733 cat >> confdefs.h <<\EOF
20734 #define CROSS_COMPILING 1
20738 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
20739 echo "configure:20740: checking whether byte ordering is bigendian" >&5
20740 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
20741 echo $ac_n "(cached) $ac_c" 1>&6
20743 ac_cv_c_bigendian=unknown
20744 # See if sys/param.h defines the BYTE_ORDER macro.
20745 cat > conftest.$ac_ext <<EOF
20746 #line 20747 "configure"
20747 #include "confdefs.h"
20748 #include <sys/types.h>
20749 #include <sys/param.h>
20752 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20753 bogus endian macros
20757 if { (eval echo configure:20758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20759 # It does; now see whether it defined to BIG_ENDIAN or not.
20760 cat > conftest.$ac_ext <<EOF
20761 #line 20762 "configure"
20762 #include "confdefs.h"
20763 #include <sys/types.h>
20764 #include <sys/param.h>
20767 #if BYTE_ORDER != BIG_ENDIAN
20772 if { (eval echo configure:20773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20774 ac_cv_c_bigendian=yes
20776 echo "configure: failed program was:" >&5
20777 cat conftest.$ac_ext >&5
20779 ac_cv_c_bigendian=no
20783 echo "configure: failed program was:" >&5
20784 cat conftest.$ac_ext >&5
20787 if test $ac_cv_c_bigendian = unknown; then
20788 if test "$cross_compiling" = yes; then
20789 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
20791 cat > conftest.$ac_ext <<EOF
20792 #line 20793 "configure"
20793 #include "confdefs.h"
20795 /* Are we little or big endian? From Harbison&Steele. */
20799 char c[sizeof (long)];
20802 exit (u.c[sizeof (long) - 1] == 1);
20805 if { (eval echo configure:20806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20807 ac_cv_c_bigendian=no
20809 echo "configure: failed program was:" >&5
20810 cat conftest.$ac_ext >&5
20812 ac_cv_c_bigendian=yes
20820 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
20821 if test $ac_cv_c_bigendian = yes; then
20822 cat >> confdefs.h <<\EOF
20823 #define WORDS_BIGENDIAN 1
20830 echo $ac_n "checking size of short""... $ac_c" 1>&6
20831 echo "configure:20832: checking size of short" >&5
20832 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
20833 echo $ac_n "(cached) $ac_c" 1>&6
20835 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20836 cat > conftest.$ac_ext <<EOF
20837 #line 20838 "configure"
20838 #include "confdefs.h"
20839 #include "confdefs.h"
20840 #include <sys/types.h>
20844 switch (0) case 0: case (sizeof (short) == $ac_size):;
20847 if { (eval echo configure:20848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20849 ac_cv_sizeof_short=$ac_size
20851 echo "configure: failed program was:" >&5
20852 cat conftest.$ac_ext >&5
20855 if test x$ac_cv_sizeof_short != x ; then break; fi
20860 if test x$ac_cv_sizeof_short = x ; then
20861 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
20863 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
20864 cat >> confdefs.h <<EOF
20865 #define SIZEOF_SHORT $ac_cv_sizeof_short
20869 echo $ac_n "checking size of int""... $ac_c" 1>&6
20870 echo "configure:20871: checking size of int" >&5
20871 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
20872 echo $ac_n "(cached) $ac_c" 1>&6
20874 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20875 cat > conftest.$ac_ext <<EOF
20876 #line 20877 "configure"
20877 #include "confdefs.h"
20878 #include "confdefs.h"
20879 #include <sys/types.h>
20883 switch (0) case 0: case (sizeof (int) == $ac_size):;
20886 if { (eval echo configure:20887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20888 ac_cv_sizeof_int=$ac_size
20890 echo "configure: failed program was:" >&5
20891 cat conftest.$ac_ext >&5
20894 if test x$ac_cv_sizeof_int != x ; then break; fi
20899 if test x$ac_cv_sizeof_int = x ; then
20900 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
20902 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
20903 cat >> confdefs.h <<EOF
20904 #define SIZEOF_INT $ac_cv_sizeof_int
20908 echo $ac_n "checking size of long""... $ac_c" 1>&6
20909 echo "configure:20910: checking size of long" >&5
20910 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
20911 echo $ac_n "(cached) $ac_c" 1>&6
20913 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20914 cat > conftest.$ac_ext <<EOF
20915 #line 20916 "configure"
20916 #include "confdefs.h"
20917 #include "confdefs.h"
20918 #include <sys/types.h>
20922 switch (0) case 0: case (sizeof (long) == $ac_size):;
20925 if { (eval echo configure:20926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
20927 ac_cv_sizeof_long=$ac_size
20929 echo "configure: failed program was:" >&5
20930 cat conftest.$ac_ext >&5
20933 if test x$ac_cv_sizeof_long != x ; then break; fi
20938 if test x$ac_cv_sizeof_long = x ; then
20939 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
20941 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
20942 cat >> confdefs.h <<EOF
20943 #define SIZEOF_LONG $ac_cv_sizeof_long
20948 if test "$ac_cv_sizeof_int" -lt 4 ; then
20949 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
20951 cat >> confdefs.h <<\EOF
20952 #define LBER_INT_T long
20956 cat >> confdefs.h <<\EOF
20957 #define LBER_INT_T int
20962 cat >> confdefs.h <<\EOF
20963 #define LBER_LEN_T long
20966 cat >> confdefs.h <<\EOF
20967 #define LBER_SOCKET_T int
20970 cat >> confdefs.h <<\EOF
20971 #define LBER_TAG_T long
20975 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
20976 echo "configure:20977: checking for 8-bit clean memcmp" >&5
20977 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
20978 echo $ac_n "(cached) $ac_c" 1>&6
20980 if test "$cross_compiling" = yes; then
20981 ac_cv_func_memcmp_clean=no
20983 cat > conftest.$ac_ext <<EOF
20984 #line 20985 "configure"
20985 #include "confdefs.h"
20989 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
20990 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
20994 if { (eval echo configure:20995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20996 ac_cv_func_memcmp_clean=yes
20998 echo "configure: failed program was:" >&5
20999 cat conftest.$ac_ext >&5
21001 ac_cv_func_memcmp_clean=no
21008 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
21009 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
21011 echo $ac_n "checking for strftime""... $ac_c" 1>&6
21012 echo "configure:21013: checking for strftime" >&5
21013 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
21014 echo $ac_n "(cached) $ac_c" 1>&6
21016 cat > conftest.$ac_ext <<EOF
21017 #line 21018 "configure"
21018 #include "confdefs.h"
21019 /* System header to define __stub macros and hopefully few prototypes,
21020 which can conflict with char strftime(); below. */
21021 #include <assert.h>
21022 /* Override any gcc2 internal prototype to avoid an error. */
21023 /* We use char because int might match the return type of a gcc2
21024 builtin and then its argument prototype would still apply. */
21030 /* The GNU C library defines this for functions which it implements
21031 to always fail with ENOSYS. Some functions are actually named
21032 something starting with __ and the normal name is an alias. */
21033 #if defined (__stub_strftime) || defined (__stub___strftime)
21041 if { (eval echo configure:21042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21043 eval "ac_cv_func_strftime=yes"
21045 echo "configure: failed program was:" >&5
21046 cat conftest.$ac_ext >&5
21048 eval "ac_cv_func_strftime=no"
21053 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
21054 echo "$ac_t""yes" 1>&6
21055 cat >> confdefs.h <<\EOF
21056 #define HAVE_STRFTIME 1
21060 echo "$ac_t""no" 1>&6
21061 # strftime is in -lintl on SCO UNIX.
21062 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
21063 echo "configure:21064: checking for strftime in -lintl" >&5
21064 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
21065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21066 echo $ac_n "(cached) $ac_c" 1>&6
21068 ac_save_LIBS="$LIBS"
21069 LIBS="-lintl $LIBS"
21070 cat > conftest.$ac_ext <<EOF
21071 #line 21072 "configure"
21072 #include "confdefs.h"
21073 /* Override any gcc2 internal prototype to avoid an error. */
21074 /* We use char because int might match the return type of a gcc2
21075 builtin and then its argument prototype would still apply. */
21082 if { (eval echo configure:21083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21084 eval "ac_cv_lib_$ac_lib_var=yes"
21086 echo "configure: failed program was:" >&5
21087 cat conftest.$ac_ext >&5
21089 eval "ac_cv_lib_$ac_lib_var=no"
21092 LIBS="$ac_save_LIBS"
21095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21096 echo "$ac_t""yes" 1>&6
21097 cat >> confdefs.h <<\EOF
21098 #define HAVE_STRFTIME 1
21101 LIBS="-lintl $LIBS"
21103 echo "$ac_t""no" 1>&6
21109 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
21110 echo "configure:21111: checking for inet_aton()" >&5
21111 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
21112 echo $ac_n "(cached) $ac_c" 1>&6
21114 cat > conftest.$ac_ext <<EOF
21115 #line 21116 "configure"
21116 #include "confdefs.h"
21118 #ifdef HAVE_SYS_TYPES_H
21119 # include <sys/types.h>
21121 #ifdef HAVE_SYS_SOCKET_H
21122 # include <sys/socket.h>
21123 # ifdef HAVE_SYS_SELECT_H
21124 # include <sys/select.h>
21126 # include <netinet/in.h>
21127 # ifdef HAVE_ARPA_INET_H
21128 # include <arpa/inet.h>
21134 int rc = inet_aton( "255.255.255.255", &in );
21137 if { (eval echo configure:21138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21139 ol_cv_func_inet_aton=yes
21141 echo "configure: failed program was:" >&5
21142 cat conftest.$ac_ext >&5
21144 ol_cv_func_inet_aton=no
21149 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
21150 if test $ol_cv_func_inet_aton != no; then
21151 cat >> confdefs.h <<\EOF
21152 #define HAVE_INET_ATON 1
21158 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
21159 echo "configure:21160: checking for _spawnlp" >&5
21160 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
21161 echo $ac_n "(cached) $ac_c" 1>&6
21163 cat > conftest.$ac_ext <<EOF
21164 #line 21165 "configure"
21165 #include "confdefs.h"
21166 /* System header to define __stub macros and hopefully few prototypes,
21167 which can conflict with char _spawnlp(); below. */
21168 #include <assert.h>
21169 /* Override any gcc2 internal prototype to avoid an error. */
21170 /* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
21177 /* The GNU C library defines this for functions which it implements
21178 to always fail with ENOSYS. Some functions are actually named
21179 something starting with __ and the normal name is an alias. */
21180 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
21188 if { (eval echo configure:21189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21190 eval "ac_cv_func__spawnlp=yes"
21192 echo "configure: failed program was:" >&5
21193 cat conftest.$ac_ext >&5
21195 eval "ac_cv_func__spawnlp=no"
21200 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
21201 echo "$ac_t""yes" 1>&6
21202 cat >> confdefs.h <<\EOF
21203 #define HAVE_SPAWNLP 1
21207 echo "$ac_t""no" 1>&6
21211 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
21212 echo "configure:21213: checking for _snprintf" >&5
21213 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
21214 echo $ac_n "(cached) $ac_c" 1>&6
21216 cat > conftest.$ac_ext <<EOF
21217 #line 21218 "configure"
21218 #include "confdefs.h"
21219 /* System header to define __stub macros and hopefully few prototypes,
21220 which can conflict with char _snprintf(); below. */
21221 #include <assert.h>
21222 /* Override any gcc2 internal prototype to avoid an error. */
21223 /* We use char because int might match the return type of a gcc2
21224 builtin and then its argument prototype would still apply. */
21230 /* The GNU C library defines this for functions which it implements
21231 to always fail with ENOSYS. Some functions are actually named
21232 something starting with __ and the normal name is an alias. */
21233 #if defined (__stub__snprintf) || defined (__stub____snprintf)
21241 if { (eval echo configure:21242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21243 eval "ac_cv_func__snprintf=yes"
21245 echo "configure: failed program was:" >&5
21246 cat conftest.$ac_ext >&5
21248 eval "ac_cv_func__snprintf=no"
21253 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
21254 echo "$ac_t""yes" 1>&6
21255 ac_cv_func_snprintf=yes
21256 cat >> confdefs.h <<\EOF
21257 #define snprintf _snprintf
21262 echo "$ac_t""no" 1>&6
21266 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
21267 echo "configure:21268: checking for _vsnprintf" >&5
21268 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
21269 echo $ac_n "(cached) $ac_c" 1>&6
21271 cat > conftest.$ac_ext <<EOF
21272 #line 21273 "configure"
21273 #include "confdefs.h"
21274 /* System header to define __stub macros and hopefully few prototypes,
21275 which can conflict with char _vsnprintf(); below. */
21276 #include <assert.h>
21277 /* Override any gcc2 internal prototype to avoid an error. */
21278 /* We use char because int might match the return type of a gcc2
21279 builtin and then its argument prototype would still apply. */
21285 /* The GNU C library defines this for functions which it implements
21286 to always fail with ENOSYS. Some functions are actually named
21287 something starting with __ and the normal name is an alias. */
21288 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
21296 if { (eval echo configure:21297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21298 eval "ac_cv_func__vsnprintf=yes"
21300 echo "configure: failed program was:" >&5
21301 cat conftest.$ac_ext >&5
21303 eval "ac_cv_func__vsnprintf=no"
21308 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
21309 echo "$ac_t""yes" 1>&6
21310 ac_cv_func_vsnprintf=yes
21311 cat >> confdefs.h <<\EOF
21312 #define vsnprintf _vsnprintf
21317 echo "$ac_t""no" 1>&6
21321 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
21322 echo "configure:21323: checking for vprintf" >&5
21323 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
21324 echo $ac_n "(cached) $ac_c" 1>&6
21326 cat > conftest.$ac_ext <<EOF
21327 #line 21328 "configure"
21328 #include "confdefs.h"
21329 /* System header to define __stub macros and hopefully few prototypes,
21330 which can conflict with char vprintf(); below. */
21331 #include <assert.h>
21332 /* Override any gcc2 internal prototype to avoid an error. */
21333 /* We use char because int might match the return type of a gcc2
21334 builtin and then its argument prototype would still apply. */
21340 /* The GNU C library defines this for functions which it implements
21341 to always fail with ENOSYS. Some functions are actually named
21342 something starting with __ and the normal name is an alias. */
21343 #if defined (__stub_vprintf) || defined (__stub___vprintf)
21351 if { (eval echo configure:21352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21353 eval "ac_cv_func_vprintf=yes"
21355 echo "configure: failed program was:" >&5
21356 cat conftest.$ac_ext >&5
21358 eval "ac_cv_func_vprintf=no"
21363 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
21364 echo "$ac_t""yes" 1>&6
21365 cat >> confdefs.h <<\EOF
21366 #define HAVE_VPRINTF 1
21370 echo "$ac_t""no" 1>&6
21373 if test "$ac_cv_func_vprintf" != yes; then
21374 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
21375 echo "configure:21376: checking for _doprnt" >&5
21376 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
21377 echo $ac_n "(cached) $ac_c" 1>&6
21379 cat > conftest.$ac_ext <<EOF
21380 #line 21381 "configure"
21381 #include "confdefs.h"
21382 /* System header to define __stub macros and hopefully few prototypes,
21383 which can conflict with char _doprnt(); below. */
21384 #include <assert.h>
21385 /* Override any gcc2 internal prototype to avoid an error. */
21386 /* We use char because int might match the return type of a gcc2
21387 builtin and then its argument prototype would still apply. */
21393 /* The GNU C library defines this for functions which it implements
21394 to always fail with ENOSYS. Some functions are actually named
21395 something starting with __ and the normal name is an alias. */
21396 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21404 if { (eval echo configure:21405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21406 eval "ac_cv_func__doprnt=yes"
21408 echo "configure: failed program was:" >&5
21409 cat conftest.$ac_ext >&5
21411 eval "ac_cv_func__doprnt=no"
21416 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
21417 echo "$ac_t""yes" 1>&6
21418 cat >> confdefs.h <<\EOF
21419 #define HAVE_DOPRNT 1
21423 echo "$ac_t""no" 1>&6
21429 if test $ac_cv_func_vprintf = yes ; then
21430 for ac_func in vsnprintf vsprintf
21432 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21433 echo "configure:21434: checking for $ac_func" >&5
21434 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21435 echo $ac_n "(cached) $ac_c" 1>&6
21437 cat > conftest.$ac_ext <<EOF
21438 #line 21439 "configure"
21439 #include "confdefs.h"
21440 /* System header to define __stub macros and hopefully few prototypes,
21441 which can conflict with char $ac_func(); below. */
21442 #include <assert.h>
21443 /* Override any gcc2 internal prototype to avoid an error. */
21444 /* We use char because int might match the return type of a gcc2
21445 builtin and then its argument prototype would still apply. */
21451 /* The GNU C library defines this for functions which it implements
21452 to always fail with ENOSYS. Some functions are actually named
21453 something starting with __ and the normal name is an alias. */
21454 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21462 if { (eval echo configure:21463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21464 eval "ac_cv_func_$ac_func=yes"
21466 echo "configure: failed program was:" >&5
21467 cat conftest.$ac_ext >&5
21469 eval "ac_cv_func_$ac_func=no"
21474 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21475 echo "$ac_t""yes" 1>&6
21476 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21477 cat >> confdefs.h <<EOF
21478 #define $ac_tr_func 1
21482 echo "$ac_t""no" 1>&6
21542 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21543 echo "configure:21544: checking for $ac_func" >&5
21544 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21545 echo $ac_n "(cached) $ac_c" 1>&6
21547 cat > conftest.$ac_ext <<EOF
21548 #line 21549 "configure"
21549 #include "confdefs.h"
21550 /* System header to define __stub macros and hopefully few prototypes,
21551 which can conflict with char $ac_func(); below. */
21552 #include <assert.h>
21553 /* Override any gcc2 internal prototype to avoid an error. */
21554 /* We use char because int might match the return type of a gcc2
21555 builtin and then its argument prototype would still apply. */
21561 /* The GNU C library defines this for functions which it implements
21562 to always fail with ENOSYS. Some functions are actually named
21563 something starting with __ and the normal name is an alias. */
21564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21572 if { (eval echo configure:21573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21574 eval "ac_cv_func_$ac_func=yes"
21576 echo "configure: failed program was:" >&5
21577 cat conftest.$ac_ext >&5
21579 eval "ac_cv_func_$ac_func=no"
21584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21585 echo "$ac_t""yes" 1>&6
21586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21587 cat >> confdefs.h <<EOF
21588 #define $ac_tr_func 1
21592 echo "$ac_t""no" 1>&6
21597 for ac_func in getopt
21599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
21600 echo "configure:21601: checking for $ac_func" >&5
21601 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
21602 echo $ac_n "(cached) $ac_c" 1>&6
21604 cat > conftest.$ac_ext <<EOF
21605 #line 21606 "configure"
21606 #include "confdefs.h"
21607 /* System header to define __stub macros and hopefully few prototypes,
21608 which can conflict with char $ac_func(); below. */
21609 #include <assert.h>
21610 /* Override any gcc2 internal prototype to avoid an error. */
21611 /* We use char because int might match the return type of a gcc2
21612 builtin and then its argument prototype would still apply. */
21618 /* The GNU C library defines this for functions which it implements
21619 to always fail with ENOSYS. Some functions are actually named
21620 something starting with __ and the normal name is an alias. */
21621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21629 if { (eval echo configure:21630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21631 eval "ac_cv_func_$ac_func=yes"
21633 echo "configure: failed program was:" >&5
21634 cat conftest.$ac_ext >&5
21636 eval "ac_cv_func_$ac_func=no"
21641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
21642 echo "$ac_t""yes" 1>&6
21643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21644 cat >> confdefs.h <<EOF
21645 #define $ac_tr_func 1
21649 echo "$ac_t""no" 1>&6
21650 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
21656 if test "$ac_cv_func_getopt" != yes; then
21657 LIBSRCS="$LIBSRCS getopt.c"
21660 # Check Configuration
21661 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
21662 echo "configure:21663: checking declaration of sys_errlist" >&5
21663 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
21664 echo $ac_n "(cached) $ac_c" 1>&6
21667 cat > conftest.$ac_ext <<EOF
21668 #line 21669 "configure"
21669 #include "confdefs.h"
21672 #include <sys/types.h>
21675 #include <stdlib.h>
21678 char *c = (char *) *sys_errlist
21681 if { (eval echo configure:21682: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21683 ol_cv_dcl_sys_errlist=yes
21684 ol_cv_have_sys_errlist=yes
21686 echo "configure: failed program was:" >&5
21687 cat conftest.$ac_ext >&5
21689 ol_cv_dcl_sys_errlist=no
21694 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
21696 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
21697 if test $ol_cv_dcl_sys_errlist = no ; then
21698 cat >> confdefs.h <<\EOF
21699 #define DECL_SYS_ERRLIST 1
21703 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
21704 echo "configure:21705: checking existence of sys_errlist" >&5
21705 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
21706 echo $ac_n "(cached) $ac_c" 1>&6
21709 cat > conftest.$ac_ext <<EOF
21710 #line 21711 "configure"
21711 #include "confdefs.h"
21714 char *c = (char *) *sys_errlist
21717 if { (eval echo configure:21718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21719 ol_cv_have_sys_errlist=yes
21721 echo "configure: failed program was:" >&5
21722 cat conftest.$ac_ext >&5
21724 ol_cv_have_sys_errlist=no
21729 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
21731 if test $ol_cv_have_sys_errlist = yes ; then
21732 cat >> confdefs.h <<\EOF
21733 #define HAVE_SYS_ERRLIST 1
21740 if test "$ol_enable_debug" != no ; then
21741 cat >> confdefs.h <<\EOF
21742 #define LDAP_DEBUG 1
21746 if test "$ol_enable_syslog" = yes ; then
21747 cat >> confdefs.h <<\EOF
21748 #define LDAP_SYSLOG 1
21752 if test "$ol_enable_cache" = no ; then
21753 cat >> confdefs.h <<\EOF
21754 #define LDAP_NOCACHE 1
21758 if test "$ol_link_kbind" != no ; then
21759 cat >> confdefs.h <<\EOF
21760 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
21764 if test "$ol_enable_proctitle" != no ; then
21765 cat >> confdefs.h <<\EOF
21766 #define LDAP_PROCTITLE 1
21770 if test "$ol_enable_referrals" != no ; then
21771 cat >> confdefs.h <<\EOF
21772 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
21776 if test "$ol_enable_local" != no; then
21777 cat >> confdefs.h <<\EOF
21778 #define LDAP_PF_LOCAL 1
21782 if test "$ol_link_ipv6" != no; then
21783 cat >> confdefs.h <<\EOF
21784 #define LDAP_PF_INET6 1
21788 if test "$ol_enable_cleartext" != no ; then
21789 cat >> confdefs.h <<\EOF
21790 #define SLAPD_CLEARTEXT 1
21794 if test "$ol_enable_crypt" != no ; then
21795 cat >> confdefs.h <<\EOF
21796 #define SLAPD_CRYPT 1
21800 if test "$ol_link_kpasswd" != no ; then
21801 cat >> confdefs.h <<\EOF
21802 #define SLAPD_KPASSWD 1
21806 if test "$ol_link_spasswd" != no ; then
21807 cat >> confdefs.h <<\EOF
21808 #define SLAPD_SPASSWD 1
21812 if test "$ol_enable_phonetic" != no ; then
21813 cat >> confdefs.h <<\EOF
21814 #define SLAPD_PHONETIC 1
21818 if test "$ol_enable_rlookups" != no ; then
21819 cat >> confdefs.h <<\EOF
21820 #define SLAPD_RLOOKUPS 1
21824 if test "$ol_enable_aci" != no ; then
21825 cat >> confdefs.h <<\EOF
21826 #define SLAPD_ACI_ENABLED 1
21831 if test "$ol_link_modules" != no ; then
21832 cat >> confdefs.h <<\EOF
21833 #define SLAPD_MODULES 1
21837 SLAPD_MODULES_LDFLAGS="-dlopen self"
21840 if test "$ol_enable_bdb" != no ; then
21841 cat >> confdefs.h <<\EOF
21842 #define SLAPD_BDB 1
21847 if test "$ol_with_bdb_module" != static ; then
21848 cat >> confdefs.h <<\EOF
21849 #define SLAPD_BDB_DYNAMIC 1
21853 BUILD_BDB_DYNAMIC=shared
21854 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-bdb/back_bdb.la"
21855 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
21857 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
21861 if test "$ol_link_dnssrv" != no ; then
21862 cat >> confdefs.h <<\EOF
21863 #define SLAPD_DNSSRV 1
21868 if test "$ol_with_dnssrv_module" != static ; then
21869 cat >> confdefs.h <<\EOF
21870 #define SLAPD_DNSSRV_DYNAMIC 1
21874 BUILD_DNSSRV_DYNAMIC=shared
21875 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-dnssrv/back_dnssrv.la"
21876 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
21878 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
21882 if test "$ol_enable_ldap" != no ; then
21883 cat >> confdefs.h <<\EOF
21884 #define SLAPD_LDAP 1
21889 if test "$ol_with_ldap_module" != static ; then
21890 cat >> confdefs.h <<\EOF
21891 #define SLAPD_LDAP_DYNAMIC 1
21895 BUILD_LDAP_DYNAMIC=shared
21896 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldap/back_ldap.la"
21897 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
21899 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
21903 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
21904 cat >> confdefs.h <<\EOF
21905 #define SLAPD_LDBM 1
21911 if test "$ol_with_ldbm_module" != static ; then
21912 cat >> confdefs.h <<\EOF
21913 #define SLAPD_LDBM_DYNAMIC 1
21917 BUILD_LDBM_DYNAMIC=shared
21918 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-ldbm/back_ldbm.la"
21919 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
21921 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
21925 if test "$ol_enable_meta" != no ; then
21926 if test "$ol_enable_ldap" = no ; then
21927 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
21929 if test "$ol_enable_rewrite" = no ; then
21930 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
21932 cat >> confdefs.h <<\EOF
21933 #define SLAPD_META 1
21938 if test "$ol_with_meta_module" != static ; then
21939 cat >> confdefs.h <<\EOF
21940 #define SLAPD_META_DYNAMIC 1
21944 BUILD_META_DYNAMIC=shared
21945 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-meta/back_meta.la"
21946 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
21948 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
21952 if test "$ol_enable_monitor" != no ; then
21953 cat >> confdefs.h <<\EOF
21954 #define SLAPD_MONITOR 1
21959 if test "$ol_with_monitor_module" != static ; then
21960 cat >> confdefs.h <<\EOF
21961 #define SLAPD_MONITOR_DYNAMIC 1
21965 BUILD_MONITOR_DYNAMIC=shared
21966 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
21967 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
21969 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
21973 if test "$ol_enable_passwd" != no ; then
21974 cat >> confdefs.h <<\EOF
21975 #define SLAPD_PASSWD 1
21980 if test "$ol_with_passwd_module" != static ; then
21981 cat >> confdefs.h <<\EOF
21982 #define SLAPD_PASSWD_DYNAMIC 1
21986 BUILD_PASSWD_DYNAMIC=shared
21987 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-passwd/back_passwd.la"
21988 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
21990 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
21994 if test "$ol_link_perl" != no ; then
21995 cat >> confdefs.h <<\EOF
21996 #define SLAPD_PERL 1
22001 if test "$ol_with_perl_module" != static ; then
22002 cat >> confdefs.h <<\EOF
22003 #define SLAPD_PERL_DYNAMIC 1
22007 BUILD_PERL_DYNAMIC=shared
22008 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-perl/back_perl.la"
22009 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
22011 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
22015 if test "$ol_enable_shell" != no ; then
22016 cat >> confdefs.h <<\EOF
22017 #define SLAPD_SHELL 1
22022 if test "$ol_with_shell_module" != static ; then
22023 cat >> confdefs.h <<\EOF
22024 #define SLAPD_SHELL_DYNAMIC 1
22028 BUILD_SHELL_DYNAMIC=shared
22029 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-shell/back_shell.la"
22030 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
22032 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
22036 if test "$ol_enable_tcl" != no ; then
22037 cat >> confdefs.h <<\EOF
22038 #define SLAPD_TCL 1
22043 if test "$ol_with_tcl_module" != static; then
22044 cat >> confdefs.h <<\EOF
22045 #define SLAPD_TCL_DYNAMIC 1
22049 BUILD_TCL_DYNAMIC=shared
22050 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-tcl/back_tcl.la"
22051 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-tcl"
22053 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-tcl"
22057 if test "$ol_link_sql" != no ; then
22058 cat >> confdefs.h <<\EOF
22059 #define SLAPD_SQL 1
22064 if test "$ol_with_sql_module" != static; then
22065 cat >> confdefs.h <<\EOF
22066 #define SLAPD_SQL_DYNAMIC 1
22070 BUILD_SQL_DYNAMIC=shared
22071 SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-sql/back_sql.la"
22072 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
22074 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
22078 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
22079 $BUILD_SLAPD = yes ; then
22083 if test "$ol_enable_rewrite" != no ; then
22084 cat >> confdefs.h <<\EOF
22085 #define ENABLE_REWRITE 1
22089 SLAPD_LIBS="$SLAPD_LIBS -lrewrite"
22094 if test "$ac_cv_mingw32" = yes ; then
22096 SLAPD_MODULES_LDFLAGS=
22097 SLAPD_MODULES_LIST=
22172 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22175 # Let make expand exec_prefix.
22176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22178 # Any assignment to VPATH causes Sun make to only execute
22179 # the first set of double-colon rules, so remove it if not needed.
22180 # If there is a colon in the path, we need to keep it.
22181 if test "x$srcdir" = x.; then
22182 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
22185 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
22187 DEFS=-DHAVE_CONFIG_H
22189 # Without the "./", some shells look in PATH for config.status.
22190 : ${CONFIG_STATUS=./config.status}
22192 echo creating $CONFIG_STATUS
22193 rm -f $CONFIG_STATUS
22194 cat > $CONFIG_STATUS <<EOF
22196 # Generated automatically by configure.
22197 # Run this file to recreate the current configuration.
22198 # This directory was configured as follows,
22199 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22201 # $0 $ac_configure_args
22203 # Compiler output produced by configure, useful for debugging
22204 # configure, is in ./config.log if it exists.
22206 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
22209 case "\$ac_option" in
22210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22211 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
22212 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
22213 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
22214 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
22216 -help | --help | --hel | --he | --h)
22217 echo "\$ac_cs_usage"; exit 0 ;;
22218 *) echo "\$ac_cs_usage"; exit 1 ;;
22222 ac_given_srcdir=$srcdir
22223 ac_given_INSTALL="$INSTALL"
22225 trap 'rm -fr `echo "\
22226 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22227 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22228 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22229 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22230 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22231 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22232 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22233 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22234 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22235 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22236 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22237 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22238 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22239 include/Makefile:build/top.mk:include/Makefile.in \
22240 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22241 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22242 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22243 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22244 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22245 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22246 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22247 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22248 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22249 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22250 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22251 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22252 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22253 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22254 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22255 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22256 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22257 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22258 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22259 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22260 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22261 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22262 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22263 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22264 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22265 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22266 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22267 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22268 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
22270 cat >> $CONFIG_STATUS <<EOF
22272 # Protect against being on the right side of a sed subst in config.status.
22273 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
22274 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
22278 s%@CFLAGS@%$CFLAGS%g
22279 s%@CPPFLAGS@%$CPPFLAGS%g
22280 s%@CXXFLAGS@%$CXXFLAGS%g
22281 s%@FFLAGS@%$FFLAGS%g
22283 s%@LDFLAGS@%$LDFLAGS%g
22285 s%@exec_prefix@%$exec_prefix%g
22286 s%@prefix@%$prefix%g
22287 s%@program_transform_name@%$program_transform_name%g
22288 s%@bindir@%$bindir%g
22289 s%@sbindir@%$sbindir%g
22290 s%@libexecdir@%$libexecdir%g
22291 s%@datadir@%$datadir%g
22292 s%@sysconfdir@%$sysconfdir%g
22293 s%@sharedstatedir@%$sharedstatedir%g
22294 s%@localstatedir@%$localstatedir%g
22295 s%@libdir@%$libdir%g
22296 s%@includedir@%$includedir%g
22297 s%@oldincludedir@%$oldincludedir%g
22298 s%@infodir@%$infodir%g
22299 s%@mandir@%$mandir%g
22300 s%@SHTOOL@%$SHTOOL%g
22302 s%@host_alias@%$host_alias%g
22303 s%@host_cpu@%$host_cpu%g
22304 s%@host_vendor@%$host_vendor%g
22305 s%@host_os@%$host_os%g
22306 s%@target@%$target%g
22307 s%@target_alias@%$target_alias%g
22308 s%@target_cpu@%$target_cpu%g
22309 s%@target_vendor@%$target_vendor%g
22310 s%@target_os@%$target_os%g
22312 s%@build_alias@%$build_alias%g
22313 s%@build_cpu@%$build_cpu%g
22314 s%@build_vendor@%$build_vendor%g
22315 s%@build_os@%$build_os%g
22316 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
22317 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
22318 s%@INSTALL_DATA@%$INSTALL_DATA%g
22319 s%@PACKAGE@%$PACKAGE%g
22320 s%@VERSION@%$VERSION%g
22321 s%@ACLOCAL@%$ACLOCAL%g
22322 s%@AUTOCONF@%$AUTOCONF%g
22323 s%@AUTOMAKE@%$AUTOMAKE%g
22324 s%@AUTOHEADER@%$AUTOHEADER%g
22325 s%@MAKEINFO@%$MAKEINFO%g
22326 s%@install_sh@%$install_sh%g
22329 s%@AMTARFLAGS@%$AMTARFLAGS%g
22330 s%@SET_MAKE@%$SET_MAKE%g
22331 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
22332 s%@top_builddir@%$top_builddir%g
22333 s%@ldap_subdir@%$ldap_subdir%g
22337 s%@OBJEXT@%$OBJEXT%g
22338 s%@EXEEXT@%$EXEEXT%g
22340 s%@RANLIB@%$RANLIB%g
22342 s%@DLLTOOL@%$DLLTOOL%g
22344 s%@OBJDUMP@%$OBJDUMP%g
22346 s%@LIBTOOL@%$LIBTOOL%g
22347 s%@SENDMAIL@%$SENDMAIL%g
22348 s%@EDITOR@%$EDITOR%g
22349 s%@FINGER@%$FINGER%g
22350 s%@PERLBIN@%$PERLBIN%g
22351 s%@OL_MKDEP@%$OL_MKDEP%g
22352 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
22353 s%@LIBOBJS@%$LIBOBJS%g
22354 s%@LIBSRCS@%$LIBSRCS%g
22356 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
22357 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
22358 s%@BUILD_BDB@%$BUILD_BDB%g
22359 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
22360 s%@BUILD_LDAP@%$BUILD_LDAP%g
22361 s%@BUILD_LDBM@%$BUILD_LDBM%g
22362 s%@BUILD_META@%$BUILD_META%g
22363 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
22364 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
22365 s%@BUILD_PERL@%$BUILD_PERL%g
22366 s%@BUILD_SHELL@%$BUILD_SHELL%g
22367 s%@BUILD_SQL@%$BUILD_SQL%g
22368 s%@BUILD_TCL@%$BUILD_TCL%g
22369 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
22370 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
22371 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
22372 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
22373 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
22374 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
22375 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
22376 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
22377 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
22378 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
22379 s%@BUILD_TCL_DYNAMIC@%$BUILD_TCL_DYNAMIC%g
22380 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
22381 s%@LDBM_LIB@%$LDBM_LIB%g
22382 s%@LDAP_LIBS@%$LDAP_LIBS%g
22383 s%@LDIF_LIBS@%$LDIF_LIBS%g
22384 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
22385 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
22386 s%@LDBM_LIBS@%$LDBM_LIBS%g
22387 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
22388 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
22389 s%@WRAP_LIBS@%$WRAP_LIBS%g
22390 s%@MOD_TCL_LIB@%$MOD_TCL_LIB%g
22391 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
22392 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
22393 s%@SLAPD_MODULES_LIST@%$SLAPD_MODULES_LIST%g
22394 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
22395 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
22396 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
22397 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
22398 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
22399 s%@KRB4_LIBS@%$KRB4_LIBS%g
22400 s%@KRB5_LIBS@%$KRB5_LIBS%g
22401 s%@READLINE_LIBS@%$READLINE_LIBS%g
22402 s%@SASL_LIBS@%$SASL_LIBS%g
22403 s%@TERMCAP_LIBS@%$TERMCAP_LIBS%g
22404 s%@TLS_LIBS@%$TLS_LIBS%g
22405 s%@MODULES_LIBS@%$MODULES_LIBS%g
22406 s%@AUTH_LIBS@%$AUTH_LIBS%g
22407 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
22408 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
22409 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
22410 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
22415 cat >> $CONFIG_STATUS <<\EOF
22417 # Split the substitutions into bite-sized pieces for seds with
22418 # small command number limits, like on Digital OSF/1 and HP-UX.
22419 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
22420 ac_file=1 # Number of current file.
22421 ac_beg=1 # First line for current file.
22422 ac_end=$ac_max_sed_cmds # Line after last line for current file.
22425 while $ac_more_lines; do
22426 if test $ac_beg -gt 1; then
22427 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
22429 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
22431 if test ! -s conftest.s$ac_file; then
22432 ac_more_lines=false
22433 rm -f conftest.s$ac_file
22435 if test -z "$ac_sed_cmds"; then
22436 ac_sed_cmds="sed -f conftest.s$ac_file"
22438 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
22440 ac_file=`expr $ac_file + 1`
22442 ac_end=`expr $ac_end + $ac_max_sed_cmds`
22445 if test -z "$ac_sed_cmds"; then
22450 cat >> $CONFIG_STATUS <<EOF
22452 CONFIG_FILES=\${CONFIG_FILES-"\
22453 Makefile:build/top.mk:Makefile.in:build/dir.mk \
22454 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
22455 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
22456 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
22457 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
22458 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
22459 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
22460 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
22461 clients/finger/Makefile:build/top.mk:clients/finger/Makefile.in:build/rules.mk \
22462 clients/mail500/Makefile:build/top.mk:clients/mail500/Makefile.in:build/rules.mk \
22463 clients/ud/Makefile:build/top.mk:clients/ud/Makefile.in:build/rules.mk \
22464 clients/maildap/Makefile:build/top.mk:clients/maildap/Makefile.in:build/rules.mk \
22465 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
22466 include/Makefile:build/top.mk:include/Makefile.in \
22467 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
22468 libraries/libavl/Makefile:build/top.mk:libraries/libavl/Makefile.in:build/lib.mk:build/lib-static.mk \
22469 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
22470 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
22471 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
22472 libraries/libldbm/Makefile:build/top.mk:libraries/libldbm/Makefile.in:build/lib.mk:build/lib-static.mk \
22473 libraries/libldif/Makefile:build/top.mk:libraries/libldif/Makefile.in:build/lib.mk:build/lib-static.mk \
22474 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
22475 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
22476 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
22477 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
22478 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
22479 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
22480 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
22481 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
22482 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
22483 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
22484 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
22485 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
22486 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
22487 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
22488 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
22489 servers/slapd/back-tcl/Makefile:build/top.mk:servers/slapd/back-tcl/Makefile.in:build/mod.mk \
22490 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
22491 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
22492 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
22493 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
22494 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
22497 cat >> $CONFIG_STATUS <<\EOF
22498 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
22499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22501 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22502 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22503 *) ac_file_in="${ac_file}.in" ;;
22506 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
22508 # Remove last slash and all that follows it. Not all systems have dirname.
22509 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22510 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22511 # The file is in a subdirectory.
22512 test ! -d "$ac_dir" && mkdir "$ac_dir"
22513 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
22514 # A "../" for each directory in $ac_dir_suffix.
22515 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
22517 ac_dir_suffix= ac_dots=
22520 case "$ac_given_srcdir" in
22522 if test -z "$ac_dots"; then top_srcdir=.
22523 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
22524 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
22525 *) # Relative path.
22526 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
22527 top_srcdir="$ac_dots$ac_given_srcdir" ;;
22530 case "$ac_given_INSTALL" in
22531 [/$]*) INSTALL="$ac_given_INSTALL" ;;
22532 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
22535 echo creating "$ac_file"
22537 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
22539 *[Mm]akefile*) ac_comsub="1i\\
22540 # $configure_input" ;;
22544 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22546 s%@configure_input@%$configure_input%g
22547 s%@srcdir@%$srcdir%g
22548 s%@top_srcdir@%$top_srcdir%g
22549 s%@INSTALL@%$INSTALL%g
22550 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
22554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22557 # ac_d sets the value in "#define NAME VALUE" lines.
22558 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22559 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
22562 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
22563 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22564 ac_uB='\([ ]\)%\1#\2define\3'
22567 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22568 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22569 ac_eB='$%\1#\2define\3'
22573 if test "${CONFIG_HEADERS+set}" != set; then
22575 cat >> $CONFIG_STATUS <<EOF
22576 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
22578 cat >> $CONFIG_STATUS <<\EOF
22580 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
22581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
22584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22585 *) ac_file_in="${ac_file}.in" ;;
22588 echo creating $ac_file
22590 rm -f conftest.frag conftest.in conftest.out
22591 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
22592 cat $ac_file_inputs > conftest.in
22596 # Transform confdefs.h into a sed script conftest.vals that substitutes
22597 # the proper values into config.h.in to produce config.h. And first:
22598 # Protect against being on the right side of a sed subst in config.status.
22599 # Protect against being in an unquoted here document in config.status.
22600 rm -f conftest.vals
22601 cat > conftest.hdr <<\EOF
22604 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
22608 sed -n -f conftest.hdr confdefs.h > conftest.vals
22611 # This sed command replaces #undef with comments. This is necessary, for
22612 # example, in the case of _POSIX_SOURCE, which is predefined and required
22613 # on some systems where configure will not decide to define it.
22614 cat >> conftest.vals <<\EOF
22615 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
22618 # Break up conftest.vals because some shells have a limit on
22619 # the size of here documents, and old seds have small limits too.
22621 rm -f conftest.tail
22624 ac_lines=`grep -c . conftest.vals`
22625 # grep -c gives empty output for an empty file on some AIX systems.
22626 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
22627 # Write a limited-size here document to conftest.frag.
22628 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
22629 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
22631 sed -f conftest.frag conftest.in > conftest.out
22633 mv conftest.out conftest.in
22634 ' >> $CONFIG_STATUS
22635 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
22636 rm -f conftest.vals
22637 mv conftest.tail conftest.vals
22639 rm -f conftest.vals
22641 cat >> $CONFIG_STATUS <<\EOF
22642 rm -f conftest.frag conftest.h
22643 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
22644 cat conftest.in >> conftest.h
22646 if cmp -s $ac_file conftest.h 2>/dev/null; then
22647 echo "$ac_file is unchanged"
22650 # Remove last slash and all that follows it. Not all systems have dirname.
22651 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
22652 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
22653 # The file is in a subdirectory.
22654 test ! -d "$ac_dir" && mkdir "$ac_dir"
22657 mv conftest.h $ac_file
22662 cat >> $CONFIG_STATUS <<EOF
22665 cat >> $CONFIG_STATUS <<\EOF
22668 echo Please \"make depend\" to build dependencies
22672 chmod +x $CONFIG_STATUS
22673 rm -fr confdefs* $ac_clean_files
22674 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1