3 # from OpenLDAP: pkg/ldap/configure.in,v 1.514 2004/02/26 18:27:28 hyc Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --enable-x-compile enable cross compiling [no]"
50 --with-cyrus-sasl with Cyrus SASL support [auto]"
52 --with-fetch with fetch(3) URL support [auto]"
54 --with-threads with threads [auto]"
56 --with-tls with TLS/SSL support [auto]"
58 --with-yielding-select with implicitly yielding select [auto]"
61 SLAPD (Standalone LDAP Daemon) Options:"
63 --enable-slapd enable building slapd [yes]"
65 --enable-aci enable per-object ACIs (experimental) [no]"
67 --enable-cleartext enable cleartext passwords [yes]"
69 --enable-crypt enable crypt(3) passwords [no]"
71 --enable-lmpasswd enable LAN Manager passwords [no]"
73 --enable-spasswd enable (Cyrus) SASL password verification [no]"
75 --enable-modules enable dynamic module support [no]"
77 --enable-rewrite enable DN rewriting in back-ldap and back-meta [no]"
79 --enable-rlookups enable reverse lookups of client hostnames [no]"
81 --enable-slapi enable SLAPI support (experimental) [no]"
83 --enable-slp enable SLPv2 support [no]"
85 --enable-wrappers enable tcp wrapper support [no]"
87 --enable-bdb enable Berkeley DB backend [yes]"
89 --with-bdb-module module type static|dynamic [static]"
91 --enable-dnssrv enable dnssrv backend [no]"
93 --with-dnssrv-module module type static|dynamic [static]"
95 --enable-hdb enable Hierarchical DB backend [no]"
97 --with-hdb-module module type static|dynamic [static]"
99 --enable-ldap enable ldap backend [no]"
101 --with-ldap-module module type static|dynamic [static]"
103 --enable-ldbm enable ldbm backend [no]"
105 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
107 --with-ldbm-module module type static|dynamic [static]"
109 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
111 --enable-meta enable metadirectory backend [no]"
113 --with-meta-module module type static|dynamic [static]"
115 --enable-monitor enable monitor backend [yes]"
117 --with-monitor-module module type static|dynamic [static]"
119 --enable-null enable null backend [no]"
121 --with-null-module module type static|dynamic [static]"
123 --enable-passwd enable passwd backend [no]"
125 --with-passwd-module module type static|dynamic [static]"
127 --enable-perl enable perl backend [no]"
129 --with-perl-module module type static|dynamic [static]"
131 --enable-shell enable shell backend [no]"
133 --with-shell-module module type static|dynamic [static]"
135 --enable-sql enable sql backend [no]"
137 --with-sql-module module type static|dynamic [static]"
140 SLAPD Overlay Options:"
142 --with-dyngroup Dynamic Group overlay no|yes|mod [no]"
144 --with-proxycache Proxy Cache overlay no|yes|mod [no]"
146 --with-rwm Rewrite/Remap overlay no|yes|mod [no]"
149 SLURPD (Replication Daemon) Options:"
151 --enable-slurpd enable building slurpd [auto]"
154 Library Generation & Linking Options"
156 --enable-static[=PKGS] build static libraries [default=yes]"
158 --enable-shared[=PKGS] build shared libraries [default=yes]"
160 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
162 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
164 # Find the correct PATH separator. Usually this is `:', but
165 # DJGPP uses `;' like DOS.
166 if test "X${PATH_SEPARATOR+set}" != Xset; then
167 UNAME=${UNAME-`uname 2>/dev/null`}
169 *-DOS) lt_cv_sys_path_separator=';' ;;
170 *) lt_cv_sys_path_separator=':' ;;
172 PATH_SEPARATOR=$lt_cv_sys_path_separator
176 # Check that we are running under the correct shell.
177 SHELL=${CONFIG_SHELL-/bin/sh}
181 # Remove one level of quotation (which was required for Make).
182 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
187 if test "X$1" = X--no-reexec; then
188 # Discard the --no-reexec flag, and continue.
190 elif test "X$1" = X--fallback-echo; then
191 # Avoid inline document here, it may be left over
193 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
194 # Yippee, $echo works!
197 # Restart under the correct shell.
198 exec $SHELL "$0" --no-reexec ${1+"$@"}
201 if test "X$1" = X--fallback-echo; then
202 # used as fallback echo
210 # The HP-UX ksh and POSIX shell print the target directory to stdout
212 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
214 if test -z "$ECHO"; then
215 if test "X${echo_test_string+set}" != Xset; then
216 # find a string as large as possible, as long as the shell can cope with it
217 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
218 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
219 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
220 echo_test_string="`eval $cmd`" &&
221 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
228 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
229 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
230 test "X$echo_testing_string" = "X$echo_test_string"; then
233 # The Solaris, AIX, and Digital Unix default echo programs unquote
234 # backslashes. This makes it impossible to quote backslashes using
235 # echo "$something" | sed 's/\\/\\\\/g'
237 # So, first we look for a working echo in the user's PATH.
239 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
240 for dir in $PATH /usr/ucb; do
241 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
242 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
243 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
244 test "X$echo_testing_string" = "X$echo_test_string"; then
251 if test "X$echo" = Xecho; then
252 # We didn't find a better echo, so look for alternatives.
253 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
254 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
255 test "X$echo_testing_string" = "X$echo_test_string"; then
256 # This shell has a builtin print -r that does the trick.
258 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
259 test "X$CONFIG_SHELL" != X/bin/ksh; then
260 # If we have ksh, try running configure again with it.
261 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
262 export ORIGINAL_CONFIG_SHELL
263 CONFIG_SHELL=/bin/ksh
265 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
269 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
270 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
271 test "X$echo_testing_string" = "X$echo_test_string"; then
274 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
275 test "X$echo_testing_string" = 'X\t' &&
276 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
277 test "X$echo_testing_string" = "X$echo_test_string"; then
278 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
280 SHELL="$CONFIG_SHELL"
282 echo="$CONFIG_SHELL $0 --fallback-echo"
283 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
284 test "X$echo_testing_string" = 'X\t' &&
285 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
286 test "X$echo_testing_string" = "X$echo_test_string"; then
287 echo="$CONFIG_SHELL $0 --fallback-echo"
289 # maybe with a smaller string...
292 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
293 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
300 if test "$prev" != 'sed 50q "$0"'; then
301 echo_test_string=`eval $prev`
302 export echo_test_string
303 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
305 # Oops. We lost completely, so just stick with echo.
314 # Copy echo and quote the copy suitably for passing to libtool from
315 # the Makefile, instead of quoting the original, which is used later.
317 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
318 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
323 --disable-libtool-lock avoid locking (might break parallel builds)"
325 --with-pic try to use only PIC/non-PIC objects [default=use both]"
328 See INSTALL file for further details."
330 # Initialize some variables set by options.
331 # The variables have the same names as the options, with
332 # dashes changed to underlines.
334 cache_file=./config.cache
343 program_transform_name=s,x,x,
351 bindir='${exec_prefix}/bin'
352 sbindir='${exec_prefix}/sbin'
353 libexecdir='${exec_prefix}/libexec'
354 datadir='${prefix}/share'
355 sysconfdir='${prefix}/etc'
356 sharedstatedir='${prefix}/com'
357 localstatedir='${prefix}/var'
358 libdir='${exec_prefix}/lib'
359 includedir='${prefix}/include'
360 oldincludedir='/usr/include'
361 infodir='${prefix}/info'
362 mandir='${prefix}/man'
364 # Initialize some other variables.
367 SHELL=${CONFIG_SHELL-/bin/sh}
368 # Maximum number of lines to put in a shell here document.
375 # If the previous option needs an argument, assign it.
376 if test -n "$ac_prev"; then
377 eval "$ac_prev=\$ac_option"
383 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
387 # Accept the important Cygnus configure options, so we can diagnose typos.
391 -bindir | --bindir | --bindi | --bind | --bin | --bi)
393 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
394 bindir="$ac_optarg" ;;
396 -build | --build | --buil | --bui | --bu)
398 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
399 build="$ac_optarg" ;;
401 -cache-file | --cache-file | --cache-fil | --cache-fi \
402 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
403 ac_prev=cache_file ;;
404 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
405 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
406 cache_file="$ac_optarg" ;;
408 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
410 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
412 datadir="$ac_optarg" ;;
414 -disable-* | --disable-*)
415 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
416 # Reject names that are not valid shell variable names.
417 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
418 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
420 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
421 eval "enable_${ac_feature}=no" ;;
423 -enable-* | --enable-*)
424 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
427 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
429 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
434 eval "enable_${ac_feature}='$ac_optarg'" ;;
436 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
437 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
438 | --exec | --exe | --ex)
439 ac_prev=exec_prefix ;;
440 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
441 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
442 | --exec=* | --exe=* | --ex=*)
443 exec_prefix="$ac_optarg" ;;
445 -gas | --gas | --ga | --g)
446 # Obsolete; use --with-gas.
449 -help | --help | --hel | --he)
450 # Omit some internal or obsolete options to make the list less imposing.
451 # This message is too long to be a string in the A/UX 3.1 sh.
453 Usage: configure [options] [host]
454 Options: [defaults in brackets after descriptions]
456 --cache-file=FILE cache test results in FILE
457 --help print this message
458 --no-create do not create output files
459 --quiet, --silent do not print \`checking...' messages
460 --version print the version of autoconf that created configure
461 Directory and file names:
462 --prefix=PREFIX install architecture-independent files in PREFIX
464 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
466 --bindir=DIR user executables in DIR [EPREFIX/bin]
467 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
468 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
469 --datadir=DIR read-only architecture-independent data in DIR
471 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
472 --sharedstatedir=DIR modifiable architecture-independent data in DIR
474 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
475 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
476 --includedir=DIR C header files in DIR [PREFIX/include]
477 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
478 --infodir=DIR info documentation in DIR [PREFIX/info]
479 --mandir=DIR man documentation in DIR [PREFIX/man]
480 --srcdir=DIR find the sources in DIR [configure dir or ..]
481 --program-prefix=PREFIX prepend PREFIX to installed program names
482 --program-suffix=SUFFIX append SUFFIX to installed program names
483 --program-transform-name=PROGRAM
484 run sed PROGRAM on installed program names
488 --build=BUILD configure for building on BUILD [BUILD=HOST]
489 --host=HOST configure for HOST [guessed]
490 --target=TARGET configure for TARGET [TARGET=HOST]
491 Features and packages:
492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
494 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
495 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
496 --x-includes=DIR X include files are in DIR
497 --x-libraries=DIR X library files are in DIR
499 if test -n "$ac_help"; then
500 echo "--enable and --with options recognized:$ac_help"
504 -host | --host | --hos | --ho)
506 -host=* | --host=* | --hos=* | --ho=*)
509 -includedir | --includedir | --includedi | --included | --include \
510 | --includ | --inclu | --incl | --inc)
511 ac_prev=includedir ;;
512 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
513 | --includ=* | --inclu=* | --incl=* | --inc=*)
514 includedir="$ac_optarg" ;;
516 -infodir | --infodir | --infodi | --infod | --info | --inf)
518 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
519 infodir="$ac_optarg" ;;
521 -libdir | --libdir | --libdi | --libd)
523 -libdir=* | --libdir=* | --libdi=* | --libd=*)
524 libdir="$ac_optarg" ;;
526 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
527 | --libexe | --libex | --libe)
528 ac_prev=libexecdir ;;
529 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
530 | --libexe=* | --libex=* | --libe=*)
531 libexecdir="$ac_optarg" ;;
533 -localstatedir | --localstatedir | --localstatedi | --localstated \
534 | --localstate | --localstat | --localsta | --localst \
535 | --locals | --local | --loca | --loc | --lo)
536 ac_prev=localstatedir ;;
537 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
538 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
539 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
540 localstatedir="$ac_optarg" ;;
542 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
544 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
545 mandir="$ac_optarg" ;;
548 # Obsolete; use --without-fp.
551 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
556 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
559 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
560 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
561 | --oldin | --oldi | --old | --ol | --o)
562 ac_prev=oldincludedir ;;
563 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
564 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
565 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
566 oldincludedir="$ac_optarg" ;;
568 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
570 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
571 prefix="$ac_optarg" ;;
573 -program-prefix | --program-prefix | --program-prefi | --program-pref \
574 | --program-pre | --program-pr | --program-p)
575 ac_prev=program_prefix ;;
576 -program-prefix=* | --program-prefix=* | --program-prefi=* \
577 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
578 program_prefix="$ac_optarg" ;;
580 -program-suffix | --program-suffix | --program-suffi | --program-suff \
581 | --program-suf | --program-su | --program-s)
582 ac_prev=program_suffix ;;
583 -program-suffix=* | --program-suffix=* | --program-suffi=* \
584 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
585 program_suffix="$ac_optarg" ;;
587 -program-transform-name | --program-transform-name \
588 | --program-transform-nam | --program-transform-na \
589 | --program-transform-n | --program-transform- \
590 | --program-transform | --program-transfor \
591 | --program-transfo | --program-transf \
592 | --program-trans | --program-tran \
593 | --progr-tra | --program-tr | --program-t)
594 ac_prev=program_transform_name ;;
595 -program-transform-name=* | --program-transform-name=* \
596 | --program-transform-nam=* | --program-transform-na=* \
597 | --program-transform-n=* | --program-transform-=* \
598 | --program-transform=* | --program-transfor=* \
599 | --program-transfo=* | --program-transf=* \
600 | --program-trans=* | --program-tran=* \
601 | --progr-tra=* | --program-tr=* | --program-t=*)
602 program_transform_name="$ac_optarg" ;;
604 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
605 | -silent | --silent | --silen | --sile | --sil)
608 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
610 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
612 sbindir="$ac_optarg" ;;
614 -sharedstatedir | --sharedstatedir | --sharedstatedi \
615 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
616 | --sharedst | --shareds | --shared | --share | --shar \
618 ac_prev=sharedstatedir ;;
619 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
620 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
621 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
623 sharedstatedir="$ac_optarg" ;;
625 -site | --site | --sit)
627 -site=* | --site=* | --sit=*)
630 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
632 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
633 srcdir="$ac_optarg" ;;
635 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
636 | --syscon | --sysco | --sysc | --sys | --sy)
637 ac_prev=sysconfdir ;;
638 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
639 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
640 sysconfdir="$ac_optarg" ;;
642 -target | --target | --targe | --targ | --tar | --ta | --t)
644 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
645 target="$ac_optarg" ;;
647 -v | -verbose | --verbose | --verbos | --verbo | --verb)
650 -version | --version | --versio | --versi | --vers)
651 echo "configure generated by autoconf version 2.13.1"
655 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
656 # Reject names that are not valid shell variable names.
657 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
658 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
660 ac_package=`echo $ac_package| sed 's/-/_/g'`
665 eval "with_${ac_package}='$ac_optarg'" ;;
667 -without-* | --without-*)
668 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
669 # Reject names that are not valid shell variable names.
670 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
671 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
673 ac_package=`echo $ac_package| sed 's/-/_/g'`
674 eval "with_${ac_package}=no" ;;
677 # Obsolete; use --with-x.
680 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
681 | --x-incl | --x-inc | --x-in | --x-i)
682 ac_prev=x_includes ;;
683 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
684 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
685 x_includes="$ac_optarg" ;;
687 -x-libraries | --x-libraries | --x-librarie | --x-librari \
688 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
689 ac_prev=x_libraries ;;
690 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
691 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
692 x_libraries="$ac_optarg" ;;
694 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
698 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
699 echo "configure: warning: $ac_option: invalid host type" 1>&2
701 if test "x$nonopt" != xNONE; then
702 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
710 if test -n "$ac_prev"; then
711 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
714 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
716 # File descriptor usage:
719 # 2 errors and warnings
720 # 3 some systems may open it to /dev/tty
721 # 4 used on the Kubota Titan
722 # 6 checking for... messages and results
723 # 5 compiler messages saved in config.log
724 if test "$silent" = yes; then
732 This file contains any messages produced by compilers while
733 running configure, to aid debugging if configure makes a mistake.
736 # Strip out --no-create and --no-recursion so they do not pile up.
737 # Also quote any args containing shell metacharacters.
742 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
743 | --no-cr | --no-c) ;;
744 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
745 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
746 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
747 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
748 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
753 # Only set these to C if already set. These must not be set unconditionally
754 # because not all systems understand e.g. LANG=C (notably SCO).
755 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
756 # Non-C LC_CTYPE values break the ctype check.
757 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
758 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
759 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
760 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
762 # confdefs.h avoids OS command line length limits that DEFS can exceed.
763 rm -rf conftest* confdefs.h
764 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
767 # A filename unique to this package, relative to the directory that
768 # configure is in, which we can look for to find out if srcdir is correct.
769 ac_unique_file=build/version.sh
771 # Find the source files, if location was not specified.
772 if test -z "$srcdir"; then
773 ac_srcdir_defaulted=yes
774 # Try the directory containing this script, then its parent.
776 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
777 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
779 if test ! -r $srcdir/$ac_unique_file; then
783 ac_srcdir_defaulted=no
785 if test ! -r $srcdir/$ac_unique_file; then
786 if test "$ac_srcdir_defaulted" = yes; then
787 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
789 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
792 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
794 # Prefer explicitly selected file to automatically selected ones.
795 if test -z "$CONFIG_SITE"; then
796 if test "x$prefix" != xNONE; then
797 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
799 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
802 for ac_site_file in $CONFIG_SITE; do
803 if test -r "$ac_site_file"; then
804 echo "loading site script $ac_site_file"
811 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
812 ac_cpp='$CPP $CPPFLAGS'
813 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
814 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
815 cross_compiling=$ac_cv_prog_cc_cross
819 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
820 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
821 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
828 ac_n= ac_c='\c' ac_t=
832 # set unset (borrowed from autoconf 2.49c)
833 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
839 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
842 for ac_dir in build $srcdir/build; do
843 if test -f $ac_dir/install-sh; then
845 ac_install_sh="$ac_aux_dir/install-sh -c"
847 elif test -f $ac_dir/install.sh; then
849 ac_install_sh="$ac_aux_dir/install.sh -c"
851 elif test -f $ac_dir/shtool; then
853 ac_install_sh="$ac_aux_dir/shtool install -c"
857 if test -z "$ac_aux_dir"; then
858 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
860 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
861 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
862 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
864 eval `$ac_aux_dir/version.sh`
865 if test -z "$OL_STRING"; then
866 { echo "configure: error: could not determine version" 1>&2; exit 1; }
869 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
870 ac_cv_shtool="$ac_aux_dir/shtool"
872 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
875 SHTOOL="$ac_cv_shtool"
877 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
878 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
881 if test -d $ac_aux_dir/CVS; then
882 OPENLDAP_CVS="(from CVS sources) "
885 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
888 echo $ac_n "checking host system type""... $ac_c" 1>&6
889 echo "configure:890: checking host system type" >&5
890 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
892 # Make sure we can run config.sub.
893 if $ac_config_sub sun4 >/dev/null 2>&1; then :
894 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
897 ac_cv_host_alias=$host
898 case "$ac_cv_host_alias" in
902 if ac_cv_host_alias=`$ac_config_guess`; then :
903 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
905 *) ac_cv_host_alias=$nonopt ;;
909 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
910 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
911 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
912 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
914 echo $ac_n "(cached) $ac_c" 1>&6
917 echo "$ac_t""$ac_cv_host" 1>&6
920 host_alias=$ac_cv_host_alias
921 host_cpu=$ac_cv_host_cpu
922 host_vendor=$ac_cv_host_vendor
923 host_os=$ac_cv_host_os
929 echo $ac_n "checking target system type""... $ac_c" 1>&6
930 echo "configure:931: checking target system type" >&5
931 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
933 # Make sure we can run config.sub.
934 if $ac_config_sub sun4 >/dev/null 2>&1; then :
935 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
938 ac_cv_target_alias=$target
939 case "$ac_cv_target_alias" in
943 ac_cv_target_alias=$host_alias ;;
945 *) ac_cv_target_alias=$nonopt ;;
949 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
950 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
951 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
952 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
954 echo $ac_n "(cached) $ac_c" 1>&6
957 echo "$ac_t""$ac_cv_target" 1>&6
960 target_alias=$ac_cv_target_alias
961 target_cpu=$ac_cv_target_cpu
962 target_vendor=$ac_cv_target_vendor
963 target_os=$ac_cv_target_os
969 echo $ac_n "checking build system type""... $ac_c" 1>&6
970 echo "configure:971: checking build system type" >&5
971 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
973 # Make sure we can run config.sub.
974 if $ac_config_sub sun4 >/dev/null 2>&1; then :
975 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
978 ac_cv_build_alias=$build
979 case "$ac_cv_build_alias" in
983 ac_cv_build_alias=$host_alias ;;
985 *) ac_cv_build_alias=$nonopt ;;
989 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
990 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
994 echo $ac_n "(cached) $ac_c" 1>&6
997 echo "$ac_t""$ac_cv_build" 1>&6
1000 build_alias=$ac_cv_build_alias
1001 build_cpu=$ac_cv_build_cpu
1002 build_vendor=$ac_cv_build_vendor
1003 build_os=$ac_cv_build_os
1009 # Do some error checking and defaulting for the host and target type.
1011 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1014 # 1. You are not allowed to specify --host, --target, and nonopt at the
1016 # 2. Host defaults to nonopt.
1017 # 3. If nonopt is not specified, then host defaults to the current host,
1018 # as determined by config.guess.
1019 # 4. Target and build default to nonopt.
1020 # 5. If nonopt is not specified, then target and build default to host.
1022 # The aliases save the names the user supplied, while $host etc.
1023 # will get canonicalized.
1024 case $host---$target---$nonopt in
1025 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1026 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1029 test "$host_alias" != "$target_alias" &&
1030 test "$program_prefix$program_suffix$program_transform_name" = \
1032 program_prefix=${target_alias}-
1035 # Find a good install program. We prefer a C program (faster),
1036 # so one script is as good as another. But avoid the broken or
1037 # incompatible versions:
1038 # SysV /etc/install, /usr/sbin/install
1039 # SunOS /usr/etc/install
1040 # IRIX /sbin/install
1042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1045 # ./install, which can be erroneously created by make from ./install.sh.
1046 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1047 echo "configure:1048: checking for a BSD compatible install" >&5
1048 if test -z "$INSTALL"; then
1049 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1053 for ac_dir in $PATH; do
1054 # Account for people who put trailing slashes in PATH elements.
1056 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1058 # OSF1 and SCO ODT 3.0 have their own names for install.
1059 # Don't use installbsd from OSF since it installs stuff as root
1061 for ac_prog in ginstall scoinst install; do
1062 if test -f $ac_dir/$ac_prog; then
1063 if test $ac_prog = install &&
1064 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1065 # AIX install. It has an incompatible calling convention.
1067 elif test $ac_prog = install &&
1068 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1069 # program-specific install script used by HP pwplus--don't use.
1072 ac_cv_path_install="$ac_dir/$ac_prog -c"
1083 if test "${ac_cv_path_install+set}" = set; then
1084 INSTALL="$ac_cv_path_install"
1086 # As a last resort, use the slow shell script. We don't cache a
1087 # path for INSTALL within a source directory, because that will
1088 # break other packages using the cache if that directory is
1089 # removed, or if the path is relative.
1090 INSTALL="$ac_install_sh"
1093 echo "$ac_t""$INSTALL" 1>&6
1095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1096 # It thinks the first close brace ends the variable substitution.
1097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1103 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether build environment is sane" >&5
1107 echo timestamp > conftestfile
1108 # Do `set' in a subshell so we don't clobber the current shell's
1109 # arguments. Must try -L first in case configure is actually a
1110 # symlink; some systems play weird games with the mod time of symlinks
1111 # (eg FreeBSD returns the mod time of the symlink's containing
1114 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1115 if test "$*" = "X"; then
1117 set X `ls -t $srcdir/configure conftestfile`
1119 if test "$*" != "X $srcdir/configure conftestfile" \
1120 && test "$*" != "X conftestfile $srcdir/configure"; then
1122 # If neither matched, then we have a broken ls. This can happen
1123 # if, for instance, CONFIG_SHELL is bash and it inherits a
1124 # broken ls alias from the environment. This has actually
1125 # happened. Such a system could not be considered "sane".
1126 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1127 alias in your environment" 1>&2; exit 1; }
1130 test "$2" = conftestfile
1136 { echo "configure: error: newly created file is older than distributed files!
1137 Check your system clock" 1>&2; exit 1; }
1140 echo "$ac_t""yes" 1>&6
1141 if test "$program_transform_name" = s,x,x,; then
1142 program_transform_name=
1144 # Double any \ or $. echo might interpret backslashes.
1145 cat <<\EOF_SED > conftestsed
1146 s,\\,\\\\,g; s,\$,$$,g
1148 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1151 test "$program_prefix" != NONE &&
1152 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1153 # Use a double $ so make ignores it.
1154 test "$program_suffix" != NONE &&
1155 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1157 # sed with no file args requires a program.
1158 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1160 for ac_prog in mawk gawk nawk awk
1162 # Extract the first word of "$ac_prog", so it can be a program name with args.
1163 set dummy $ac_prog; ac_word=$2
1164 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165 echo "configure:1166: checking for $ac_word" >&5
1166 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1167 echo $ac_n "(cached) $ac_c" 1>&6
1169 if test -n "$AWK"; then
1170 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1172 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1174 for ac_dir in $ac_dummy; do
1175 test -z "$ac_dir" && ac_dir=.
1176 if test -f $ac_dir/$ac_word; then
1177 ac_cv_prog_AWK="$ac_prog"
1184 AWK="$ac_cv_prog_AWK"
1185 if test -n "$AWK"; then
1186 echo "$ac_t""$AWK" 1>&6
1188 echo "$ac_t""no" 1>&6
1191 test -n "$AWK" && break
1194 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1195 echo "configure:1196: checking whether ${MAKE-make} sets \${MAKE}" >&5
1196 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1197 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 cat > conftestmake <<\EOF
1202 @echo 'ac_maketemp="${MAKE}"'
1204 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1205 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1206 if test -n "$ac_maketemp"; then
1207 eval ac_cv_prog_make_${ac_make}_set=yes
1209 eval ac_cv_prog_make_${ac_make}_set=no
1213 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1214 echo "$ac_t""yes" 1>&6
1217 echo "$ac_t""no" 1>&6
1218 SET_MAKE="MAKE=${MAKE-make}"
1227 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1228 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1233 missing_dir=`cd $ac_aux_dir && pwd`
1234 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1235 echo "configure:1236: checking for working aclocal" >&5
1236 # Run test in a subshell; some versions of sh will print an error if
1237 # an executable is not found, even if stderr is redirected.
1238 # Redirect stdin to placate older versions of autoconf. Sigh.
1239 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1241 echo "$ac_t""found" 1>&6
1243 ACLOCAL="$missing_dir/missing aclocal"
1244 echo "$ac_t""missing" 1>&6
1247 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1248 echo "configure:1249: checking for working autoconf" >&5
1249 # Run test in a subshell; some versions of sh will print an error if
1250 # an executable is not found, even if stderr is redirected.
1251 # Redirect stdin to placate older versions of autoconf. Sigh.
1252 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1254 echo "$ac_t""found" 1>&6
1256 AUTOCONF="$missing_dir/missing autoconf"
1257 echo "$ac_t""missing" 1>&6
1260 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1261 echo "configure:1262: checking for working automake" >&5
1262 # Run test in a subshell; some versions of sh will print an error if
1263 # an executable is not found, even if stderr is redirected.
1264 # Redirect stdin to placate older versions of autoconf. Sigh.
1265 if (automake --version) < /dev/null > /dev/null 2>&1; then
1267 echo "$ac_t""found" 1>&6
1269 AUTOMAKE="$missing_dir/missing automake"
1270 echo "$ac_t""missing" 1>&6
1273 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1274 echo "configure:1275: checking for working autoheader" >&5
1275 # Run test in a subshell; some versions of sh will print an error if
1276 # an executable is not found, even if stderr is redirected.
1277 # Redirect stdin to placate older versions of autoconf. Sigh.
1278 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1279 AUTOHEADER=autoheader
1280 echo "$ac_t""found" 1>&6
1282 AUTOHEADER="$missing_dir/missing autoheader"
1283 echo "$ac_t""missing" 1>&6
1286 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1287 echo "configure:1288: checking for working makeinfo" >&5
1288 # Run test in a subshell; some versions of sh will print an error if
1289 # an executable is not found, even if stderr is redirected.
1290 # Redirect stdin to placate older versions of autoconf. Sigh.
1291 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1293 echo "$ac_t""found" 1>&6
1295 MAKEINFO="$missing_dir/missing makeinfo"
1296 echo "$ac_t""missing" 1>&6
1299 install_sh="$missing_dir/install-sh"
1300 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1302 for ac_prog in gnutar gtar tar
1304 # Extract the first word of "$ac_prog", so it can be a program name with args.
1305 set dummy $ac_prog; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$AMTAR"; then
1312 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1314 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1316 for ac_dir in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_AMTAR="$ac_prog"
1326 AMTAR="$ac_cv_prog_AMTAR"
1327 if test -n "$AMTAR"; then
1328 echo "$ac_t""$AMTAR" 1>&6
1330 echo "$ac_t""no" 1>&6
1333 test -n "$AMTAR" && break
1338 if test -n "$AMTAR"; then
1339 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1344 cat >> confdefs.h <<EOF
1345 #define OPENLDAP_PACKAGE "$PACKAGE"
1348 cat >> confdefs.h <<EOF
1349 #define OPENLDAP_VERSION "$VERSION"
1353 cat >> confdefs.h <<EOF
1354 #define LDAP_VENDOR_VERSION $OL_API_INC
1357 cat >> confdefs.h <<EOF
1358 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1361 cat >> confdefs.h <<EOF
1362 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1365 cat >> confdefs.h <<EOF
1366 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1370 OPENLDAP_LIBVERSION=$OL_API_LIB
1372 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1376 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1377 echo "configure:1378: checking configure arguments" >&5
1382 ldap_subdir="/openldap"
1384 # Check whether --with-subdir or --without-subdir was given.
1385 if test "${with_subdir+set}" = set; then
1386 withval="$with_subdir"
1393 ldap_subdir="$withval"
1396 ldap_subdir="/$withval"
1403 # OpenLDAP --enable-debug
1404 # Check whether --enable-debug or --disable-debug was given.
1405 if test "${enable_debug+set}" = set; then
1406 enableval="$enable_debug"
1409 for ol_val in auto yes no ; do
1410 if test "$enableval" = "$ol_val" ; then
1414 if test "$ol_arg" = "invalid" ; then
1415 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1417 ol_enable_debug="$ol_arg"
1420 ol_enable_debug="yes"
1422 # end --enable-debug
1423 # OpenLDAP --enable-dynamic
1424 # Check whether --enable-dynamic or --disable-dynamic was given.
1425 if test "${enable_dynamic+set}" = set; then
1426 enableval="$enable_dynamic"
1429 for ol_val in auto yes no ; do
1430 if test "$enableval" = "$ol_val" ; then
1434 if test "$ol_arg" = "invalid" ; then
1435 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1437 ol_enable_dynamic="$ol_arg"
1440 ol_enable_dynamic="no"
1442 # end --enable-dynamic
1443 # OpenLDAP --enable-syslog
1444 # Check whether --enable-syslog or --disable-syslog was given.
1445 if test "${enable_syslog+set}" = set; then
1446 enableval="$enable_syslog"
1449 for ol_val in auto yes no ; do
1450 if test "$enableval" = "$ol_val" ; then
1454 if test "$ol_arg" = "invalid" ; then
1455 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1457 ol_enable_syslog="$ol_arg"
1460 ol_enable_syslog="auto"
1462 # end --enable-syslog
1463 # OpenLDAP --enable-proctitle
1464 # Check whether --enable-proctitle or --disable-proctitle was given.
1465 if test "${enable_proctitle+set}" = set; then
1466 enableval="$enable_proctitle"
1469 for ol_val in auto yes no ; do
1470 if test "$enableval" = "$ol_val" ; then
1474 if test "$ol_arg" = "invalid" ; then
1475 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1477 ol_enable_proctitle="$ol_arg"
1480 ol_enable_proctitle="yes"
1482 # end --enable-proctitle
1483 ol_enable_referrals=${ol_enable_referrals-no}
1484 ol_enable_kbind=${ol_enable_kbind-no}
1485 # OpenLDAP --enable-ipv6
1486 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1487 if test "${enable_ipv6+set}" = set; then
1488 enableval="$enable_ipv6"
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-ipv6" 1>&2; exit 1; }
1499 ol_enable_ipv6="$ol_arg"
1502 ol_enable_ipv6="auto"
1505 # OpenLDAP --enable-local
1506 # Check whether --enable-local or --disable-local was given.
1507 if test "${enable_local+set}" = set; then
1508 enableval="$enable_local"
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-local" 1>&2; exit 1; }
1519 ol_enable_local="$ol_arg"
1522 ol_enable_local="auto"
1524 # end --enable-local
1525 # OpenLDAP --enable-x_compile
1526 # Check whether --enable-x_compile or --disable-x_compile was given.
1527 if test "${enable_x_compile+set}" = set; then
1528 enableval="$enable_x_compile"
1531 for ol_val in 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-x_compile" 1>&2; exit 1; }
1539 ol_enable_x_compile="$ol_arg"
1542 ol_enable_x_compile="no"
1544 # end --enable-x_compile
1547 # OpenLDAP --with-cyrus_sasl
1548 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1549 if test "${with_cyrus_sasl+set}" = set; then
1550 withval="$with_cyrus_sasl"
1553 for ol_val in auto yes no ; do
1554 if test "$withval" = "$ol_val" ; then
1558 if test "$ol_arg" = "invalid" ; then
1559 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1561 ol_with_cyrus_sasl="$ol_arg"
1564 ol_with_cyrus_sasl="auto"
1566 # end --with-cyrus_sasl
1568 # OpenLDAP --with-fetch
1569 # Check whether --with-fetch or --without-fetch was given.
1570 if test "${with_fetch+set}" = set; then
1571 withval="$with_fetch"
1574 for ol_val in auto yes no ; do
1575 if test "$withval" = "$ol_val" ; then
1579 if test "$ol_arg" = "invalid" ; then
1580 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1582 ol_with_fetch="$ol_arg"
1585 ol_with_fetch="auto"
1589 ol_with_kerberos=${ol_with_kerberos-auto}
1590 # OpenLDAP --with-threads
1591 # Check whether --with-threads or --without-threads was given.
1592 if test "${with_threads+set}" = set; then
1593 withval="$with_threads"
1596 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1597 if test "$withval" = "$ol_val" ; then
1601 if test "$ol_arg" = "invalid" ; then
1602 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1604 ol_with_threads="$ol_arg"
1607 ol_with_threads="auto"
1609 # end --with-threads
1611 # OpenLDAP --with-tls
1612 # Check whether --with-tls or --without-tls was given.
1613 if test "${with_tls+set}" = set; then
1617 for ol_val in auto ssleay openssl yes no ; do
1618 if test "$withval" = "$ol_val" ; then
1622 if test "$ol_arg" = "invalid" ; then
1623 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1625 ol_with_tls="$ol_arg"
1632 # OpenLDAP --with-yielding_select
1633 # Check whether --with-yielding_select or --without-yielding_select was given.
1634 if test "${with_yielding_select+set}" = set; then
1635 withval="$with_yielding_select"
1638 for ol_val in auto yes no manual ; do
1639 if test "$withval" = "$ol_val" ; then
1643 if test "$ol_arg" = "invalid" ; then
1644 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1646 ol_with_yielding_select="$ol_arg"
1649 ol_with_yielding_select="auto"
1651 # end --with-yielding_select
1655 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1656 if test "${with_xxslapdoptions+set}" = set; then
1657 withval="$with_xxslapdoptions"
1661 # OpenLDAP --enable-slapd
1662 # Check whether --enable-slapd or --disable-slapd was given.
1663 if test "${enable_slapd+set}" = set; then
1664 enableval="$enable_slapd"
1667 for ol_val in auto yes no ; do
1668 if test "$enableval" = "$ol_val" ; then
1672 if test "$ol_arg" = "invalid" ; then
1673 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1675 ol_enable_slapd="$ol_arg"
1678 ol_enable_slapd="yes"
1680 # end --enable-slapd
1681 # OpenLDAP --enable-aci
1682 # Check whether --enable-aci or --disable-aci was given.
1683 if test "${enable_aci+set}" = set; then
1684 enableval="$enable_aci"
1687 for ol_val in auto yes no ; do
1688 if test "$enableval" = "$ol_val" ; then
1692 if test "$ol_arg" = "invalid" ; then
1693 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1695 ol_enable_aci="$ol_arg"
1701 # OpenLDAP --enable-cleartext
1702 # Check whether --enable-cleartext or --disable-cleartext was given.
1703 if test "${enable_cleartext+set}" = set; then
1704 enableval="$enable_cleartext"
1707 for ol_val in auto yes no ; do
1708 if test "$enableval" = "$ol_val" ; then
1712 if test "$ol_arg" = "invalid" ; then
1713 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1715 ol_enable_cleartext="$ol_arg"
1718 ol_enable_cleartext="yes"
1720 # end --enable-cleartext
1721 # OpenLDAP --enable-crypt
1722 # Check whether --enable-crypt or --disable-crypt was given.
1723 if test "${enable_crypt+set}" = set; then
1724 enableval="$enable_crypt"
1727 for ol_val in auto yes no ; do
1728 if test "$enableval" = "$ol_val" ; then
1732 if test "$ol_arg" = "invalid" ; then
1733 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1735 ol_enable_crypt="$ol_arg"
1738 ol_enable_crypt="no"
1740 # end --enable-crypt
1741 # OpenLDAP --enable-lmpasswd
1742 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1743 if test "${enable_lmpasswd+set}" = set; then
1744 enableval="$enable_lmpasswd"
1747 for ol_val in auto yes no ; do
1748 if test "$enableval" = "$ol_val" ; then
1752 if test "$ol_arg" = "invalid" ; then
1753 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1755 ol_enable_lmpasswd="$ol_arg"
1758 ol_enable_lmpasswd="no"
1760 # end --enable-lmpasswd
1761 # OpenLDAP --enable-spasswd
1762 # Check whether --enable-spasswd or --disable-spasswd was given.
1763 if test "${enable_spasswd+set}" = set; then
1764 enableval="$enable_spasswd"
1767 for ol_val in auto yes no ; do
1768 if test "$enableval" = "$ol_val" ; then
1772 if test "$ol_arg" = "invalid" ; then
1773 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1775 ol_enable_spasswd="$ol_arg"
1778 ol_enable_spasswd="no"
1780 # end --enable-spasswd
1781 # OpenLDAP --enable-modules
1782 # Check whether --enable-modules or --disable-modules was given.
1783 if test "${enable_modules+set}" = set; then
1784 enableval="$enable_modules"
1787 for ol_val in auto yes no ; do
1788 if test "$enableval" = "$ol_val" ; then
1792 if test "$ol_arg" = "invalid" ; then
1793 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1795 ol_enable_modules="$ol_arg"
1798 ol_enable_modules="no"
1800 # end --enable-modules
1801 ol_enable_multimaster=${ol_enable_multimaster-no}
1802 # OpenLDAP --enable-rewrite
1803 # Check whether --enable-rewrite or --disable-rewrite was given.
1804 if test "${enable_rewrite+set}" = set; then
1805 enableval="$enable_rewrite"
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-rewrite" 1>&2; exit 1; }
1816 ol_enable_rewrite="$ol_arg"
1819 ol_enable_rewrite="no"
1821 # end --enable-rewrite
1822 # OpenLDAP --enable-rlookups
1823 # Check whether --enable-rlookups or --disable-rlookups was given.
1824 if test "${enable_rlookups+set}" = set; then
1825 enableval="$enable_rlookups"
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-rlookups" 1>&2; exit 1; }
1836 ol_enable_rlookups="$ol_arg"
1839 ol_enable_rlookups="no"
1841 # end --enable-rlookups
1842 # OpenLDAP --enable-slapi
1843 # Check whether --enable-slapi or --disable-slapi was given.
1844 if test "${enable_slapi+set}" = set; then
1845 enableval="$enable_slapi"
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-slapi" 1>&2; exit 1; }
1856 ol_enable_slapi="$ol_arg"
1859 ol_enable_slapi="no"
1861 # end --enable-slapi
1862 # OpenLDAP --enable-slp
1863 # Check whether --enable-slp or --disable-slp was given.
1864 if test "${enable_slp+set}" = set; then
1865 enableval="$enable_slp"
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-slp" 1>&2; exit 1; }
1876 ol_enable_slp="$ol_arg"
1882 # OpenLDAP --enable-wrappers
1883 # Check whether --enable-wrappers or --disable-wrappers was given.
1884 if test "${enable_wrappers+set}" = set; then
1885 enableval="$enable_wrappers"
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-wrappers" 1>&2; exit 1; }
1896 ol_enable_wrappers="$ol_arg"
1899 ol_enable_wrappers="no"
1901 # end --enable-wrappers
1904 # OpenLDAP --enable-bdb
1905 # Check whether --enable-bdb or --disable-bdb was given.
1906 if test "${enable_bdb+set}" = set; then
1907 enableval="$enable_bdb"
1910 for ol_val in auto yes no ; do
1911 if test "$enableval" = "$ol_val" ; then
1915 if test "$ol_arg" = "invalid" ; then
1916 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1918 ol_enable_bdb="$ol_arg"
1924 # OpenLDAP --with-bdb_module
1925 # Check whether --with-bdb_module or --without-bdb_module was given.
1926 if test "${with_bdb_module+set}" = set; then
1927 withval="$with_bdb_module"
1930 for ol_val in static dynamic ; do
1931 if test "$withval" = "$ol_val" ; then
1935 if test "$ol_arg" = "invalid" ; then
1936 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1938 ol_with_bdb_module="$ol_arg"
1941 ol_with_bdb_module="static"
1943 # end --with-bdb_module
1945 # OpenLDAP --enable-dnssrv
1946 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1947 if test "${enable_dnssrv+set}" = set; then
1948 enableval="$enable_dnssrv"
1951 for ol_val in auto yes no ; do
1952 if test "$enableval" = "$ol_val" ; then
1956 if test "$ol_arg" = "invalid" ; then
1957 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1959 ol_enable_dnssrv="$ol_arg"
1962 ol_enable_dnssrv="no"
1964 # end --enable-dnssrv
1965 # OpenLDAP --with-dnssrv_module
1966 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1967 if test "${with_dnssrv_module+set}" = set; then
1968 withval="$with_dnssrv_module"
1971 for ol_val in static dynamic ; do
1972 if test "$withval" = "$ol_val" ; then
1976 if test "$ol_arg" = "invalid" ; then
1977 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1979 ol_with_dnssrv_module="$ol_arg"
1982 ol_with_dnssrv_module="static"
1984 # end --with-dnssrv_module
1986 # OpenLDAP --enable-hdb
1987 # Check whether --enable-hdb or --disable-hdb was given.
1988 if test "${enable_hdb+set}" = set; then
1989 enableval="$enable_hdb"
1992 for ol_val in auto yes no ; do
1993 if test "$enableval" = "$ol_val" ; then
1997 if test "$ol_arg" = "invalid" ; then
1998 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
2000 ol_enable_hdb="$ol_arg"
2006 # OpenLDAP --with-hdb_module
2007 # Check whether --with-hdb_module or --without-hdb_module was given.
2008 if test "${with_hdb_module+set}" = set; then
2009 withval="$with_hdb_module"
2012 for ol_val in static dynamic ; do
2013 if test "$withval" = "$ol_val" ; then
2017 if test "$ol_arg" = "invalid" ; then
2018 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2020 ol_with_hdb_module="$ol_arg"
2023 ol_with_hdb_module="static"
2025 # end --with-hdb_module
2027 # OpenLDAP --enable-ldap
2028 # Check whether --enable-ldap or --disable-ldap was given.
2029 if test "${enable_ldap+set}" = set; then
2030 enableval="$enable_ldap"
2033 for ol_val in auto yes no ; do
2034 if test "$enableval" = "$ol_val" ; then
2038 if test "$ol_arg" = "invalid" ; then
2039 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2041 ol_enable_ldap="$ol_arg"
2047 # OpenLDAP --with-ldap_module
2048 # Check whether --with-ldap_module or --without-ldap_module was given.
2049 if test "${with_ldap_module+set}" = set; then
2050 withval="$with_ldap_module"
2053 for ol_val in static dynamic ; do
2054 if test "$withval" = "$ol_val" ; then
2058 if test "$ol_arg" = "invalid" ; then
2059 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2061 ol_with_ldap_module="$ol_arg"
2064 ol_with_ldap_module="static"
2066 # end --with-ldap_module
2068 # OpenLDAP --enable-ldbm
2069 # Check whether --enable-ldbm or --disable-ldbm was given.
2070 if test "${enable_ldbm+set}" = set; then
2071 enableval="$enable_ldbm"
2074 for ol_val in auto yes no ; do
2075 if test "$enableval" = "$ol_val" ; then
2079 if test "$ol_arg" = "invalid" ; then
2080 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2082 ol_enable_ldbm="$ol_arg"
2088 # OpenLDAP --with-ldbm_api
2089 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2090 if test "${with_ldbm_api+set}" = set; then
2091 withval="$with_ldbm_api"
2094 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2095 if test "$withval" = "$ol_val" ; then
2099 if test "$ol_arg" = "invalid" ; then
2100 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2102 ol_with_ldbm_api="$ol_arg"
2105 ol_with_ldbm_api="auto"
2107 # end --with-ldbm_api
2109 # OpenLDAP --with-ldbm_module
2110 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2111 if test "${with_ldbm_module+set}" = set; then
2112 withval="$with_ldbm_module"
2115 for ol_val in static dynamic ; do
2116 if test "$withval" = "$ol_val" ; then
2120 if test "$ol_arg" = "invalid" ; then
2121 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2123 ol_with_ldbm_module="$ol_arg"
2126 ol_with_ldbm_module="static"
2128 # end --with-ldbm_module
2130 # OpenLDAP --with-ldbm_type
2131 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2132 if test "${with_ldbm_type+set}" = set; then
2133 withval="$with_ldbm_type"
2136 for ol_val in auto btree hash ; do
2137 if test "$withval" = "$ol_val" ; then
2141 if test "$ol_arg" = "invalid" ; then
2142 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2144 ol_with_ldbm_type="$ol_arg"
2147 ol_with_ldbm_type="auto"
2149 # end --with-ldbm_type
2151 # OpenLDAP --enable-meta
2152 # Check whether --enable-meta or --disable-meta was given.
2153 if test "${enable_meta+set}" = set; then
2154 enableval="$enable_meta"
2157 for ol_val in auto yes no ; do
2158 if test "$enableval" = "$ol_val" ; then
2162 if test "$ol_arg" = "invalid" ; then
2163 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2165 ol_enable_meta="$ol_arg"
2171 # OpenLDAP --with-meta_module
2172 # Check whether --with-meta_module or --without-meta_module was given.
2173 if test "${with_meta_module+set}" = set; then
2174 withval="$with_meta_module"
2177 for ol_val in static dynamic ; do
2178 if test "$withval" = "$ol_val" ; then
2182 if test "$ol_arg" = "invalid" ; then
2183 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2185 ol_with_meta_module="$ol_arg"
2188 ol_with_meta_module="static"
2190 # end --with-meta_module
2192 # OpenLDAP --enable-monitor
2193 # Check whether --enable-monitor or --disable-monitor was given.
2194 if test "${enable_monitor+set}" = set; then
2195 enableval="$enable_monitor"
2198 for ol_val in auto yes no ; do
2199 if test "$enableval" = "$ol_val" ; then
2203 if test "$ol_arg" = "invalid" ; then
2204 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2206 ol_enable_monitor="$ol_arg"
2209 ol_enable_monitor="yes"
2211 # end --enable-monitor
2212 # OpenLDAP --with-monitor_module
2213 # Check whether --with-monitor_module or --without-monitor_module was given.
2214 if test "${with_monitor_module+set}" = set; then
2215 withval="$with_monitor_module"
2218 for ol_val in static dynamic ; do
2219 if test "$withval" = "$ol_val" ; then
2223 if test "$ol_arg" = "invalid" ; then
2224 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2226 ol_with_monitor_module="$ol_arg"
2229 ol_with_monitor_module="static"
2231 # end --with-monitor_module
2233 # OpenLDAP --enable-null
2234 # Check whether --enable-null or --disable-null was given.
2235 if test "${enable_null+set}" = set; then
2236 enableval="$enable_null"
2239 for ol_val in auto yes no ; do
2240 if test "$enableval" = "$ol_val" ; then
2244 if test "$ol_arg" = "invalid" ; then
2245 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2247 ol_enable_null="$ol_arg"
2253 # OpenLDAP --with-null_module
2254 # Check whether --with-null_module or --without-null_module was given.
2255 if test "${with_null_module+set}" = set; then
2256 withval="$with_null_module"
2259 for ol_val in static dynamic ; do
2260 if test "$withval" = "$ol_val" ; then
2264 if test "$ol_arg" = "invalid" ; then
2265 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2267 ol_with_null_module="$ol_arg"
2270 ol_with_null_module="static"
2272 # end --with-null_module
2274 # OpenLDAP --enable-passwd
2275 # Check whether --enable-passwd or --disable-passwd was given.
2276 if test "${enable_passwd+set}" = set; then
2277 enableval="$enable_passwd"
2280 for ol_val in auto yes no ; do
2281 if test "$enableval" = "$ol_val" ; then
2285 if test "$ol_arg" = "invalid" ; then
2286 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2288 ol_enable_passwd="$ol_arg"
2291 ol_enable_passwd="no"
2293 # end --enable-passwd
2294 # OpenLDAP --with-passwd_module
2295 # Check whether --with-passwd_module or --without-passwd_module was given.
2296 if test "${with_passwd_module+set}" = set; then
2297 withval="$with_passwd_module"
2300 for ol_val in static dynamic ; do
2301 if test "$withval" = "$ol_val" ; then
2305 if test "$ol_arg" = "invalid" ; then
2306 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2308 ol_with_passwd_module="$ol_arg"
2311 ol_with_passwd_module="static"
2313 # end --with-passwd_module
2315 # OpenLDAP --enable-perl
2316 # Check whether --enable-perl or --disable-perl was given.
2317 if test "${enable_perl+set}" = set; then
2318 enableval="$enable_perl"
2321 for ol_val in auto yes no ; do
2322 if test "$enableval" = "$ol_val" ; then
2326 if test "$ol_arg" = "invalid" ; then
2327 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2329 ol_enable_perl="$ol_arg"
2335 # OpenLDAP --with-perl_module
2336 # Check whether --with-perl_module or --without-perl_module was given.
2337 if test "${with_perl_module+set}" = set; then
2338 withval="$with_perl_module"
2341 for ol_val in static dynamic ; do
2342 if test "$withval" = "$ol_val" ; then
2346 if test "$ol_arg" = "invalid" ; then
2347 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2349 ol_with_perl_module="$ol_arg"
2352 ol_with_perl_module="static"
2354 # end --with-perl_module
2356 # OpenLDAP --enable-shell
2357 # Check whether --enable-shell or --disable-shell was given.
2358 if test "${enable_shell+set}" = set; then
2359 enableval="$enable_shell"
2362 for ol_val in auto yes no ; do
2363 if test "$enableval" = "$ol_val" ; then
2367 if test "$ol_arg" = "invalid" ; then
2368 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2370 ol_enable_shell="$ol_arg"
2373 ol_enable_shell="no"
2375 # end --enable-shell
2376 # OpenLDAP --with-shell_module
2377 # Check whether --with-shell_module or --without-shell_module was given.
2378 if test "${with_shell_module+set}" = set; then
2379 withval="$with_shell_module"
2382 for ol_val in static dynamic ; do
2383 if test "$withval" = "$ol_val" ; then
2387 if test "$ol_arg" = "invalid" ; then
2388 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2390 ol_with_shell_module="$ol_arg"
2393 ol_with_shell_module="static"
2395 # end --with-shell_module
2397 # OpenLDAP --enable-sql
2398 # Check whether --enable-sql or --disable-sql was given.
2399 if test "${enable_sql+set}" = set; then
2400 enableval="$enable_sql"
2403 for ol_val in auto yes no ; do
2404 if test "$enableval" = "$ol_val" ; then
2408 if test "$ol_arg" = "invalid" ; then
2409 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2411 ol_enable_sql="$ol_arg"
2417 # OpenLDAP --with-sql_module
2418 # Check whether --with-sql_module or --without-sql_module was given.
2419 if test "${with_sql_module+set}" = set; then
2420 withval="$with_sql_module"
2423 for ol_val in static dynamic ; do
2424 if test "$withval" = "$ol_val" ; then
2428 if test "$ol_arg" = "invalid" ; then
2429 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2431 ol_with_sql_module="$ol_arg"
2434 ol_with_sql_module="static"
2436 # end --with-sql_module
2439 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2440 if test "${with_xxslapoverlays+set}" = set; then
2441 withval="$with_xxslapoverlays"
2445 # OpenLDAP --with-dyngroup
2446 # Check whether --with-dyngroup or --without-dyngroup was given.
2447 if test "${with_dyngroup+set}" = set; then
2448 withval="$with_dyngroup"
2451 for ol_val in no yes mod ; do
2452 if test "$withval" = "$ol_val" ; then
2456 if test "$ol_arg" = "invalid" ; then
2457 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2459 ol_with_dyngroup="$ol_arg"
2462 ol_with_dyngroup="no"
2464 # end --with-dyngroup
2466 # OpenLDAP --with-proxycache
2467 # Check whether --with-proxycache or --without-proxycache was given.
2468 if test "${with_proxycache+set}" = set; then
2469 withval="$with_proxycache"
2472 for ol_val in no yes mod ; do
2473 if test "$withval" = "$ol_val" ; then
2477 if test "$ol_arg" = "invalid" ; then
2478 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2480 ol_with_proxycache="$ol_arg"
2483 ol_with_proxycache="no"
2485 # end --with-proxycache
2487 # OpenLDAP --with-rwm
2488 # Check whether --with-rwm or --without-rwm was given.
2489 if test "${with_rwm+set}" = set; then
2493 for ol_val in no yes mod ; do
2494 if test "$withval" = "$ol_val" ; then
2498 if test "$ol_arg" = "invalid" ; then
2499 { echo "configure: error: bad value $withval for --with-rwm" 1>&2; exit 1; }
2501 ol_with_rwm="$ol_arg"
2509 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2510 if test "${with_xxslurpdoptions+set}" = set; then
2511 withval="$with_xxslurpdoptions"
2515 # OpenLDAP --enable-slurpd
2516 # Check whether --enable-slurpd or --disable-slurpd was given.
2517 if test "${enable_slurpd+set}" = set; then
2518 enableval="$enable_slurpd"
2521 for ol_val in auto yes no ; do
2522 if test "$enableval" = "$ol_val" ; then
2526 if test "$ol_arg" = "invalid" ; then
2527 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2529 ol_enable_slurpd="$ol_arg"
2532 ol_enable_slurpd="auto"
2534 # end --enable-slurpd
2536 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2537 if test "${with_xxliboptions+set}" = set; then
2538 withval="$with_xxliboptions"
2542 # Check whether --enable-static or --disable-static was given.
2543 if test "${enable_static+set}" = set; then
2544 enableval="$enable_static"
2545 p=${PACKAGE-default}
2547 yes) enable_static=yes ;;
2548 no) enable_static=no ;;
2551 # Look at the argument we got. We use all the common list separators.
2552 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2553 for pkg in $enableval; do
2554 if test "X$pkg" = "X$p"; then
2565 # Check whether --enable-shared or --disable-shared was given.
2566 if test "${enable_shared+set}" = set; then
2567 enableval="$enable_shared"
2568 p=${PACKAGE-default}
2570 yes) enable_shared=yes ;;
2571 no) enable_shared=no ;;
2574 # Look at the argument we got. We use all the common list separators.
2575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2576 for pkg in $enableval; do
2577 if test "X$pkg" = "X$p"; then
2591 if test $ol_enable_slapd = no ; then
2592 if test $ol_enable_slapi = yes ; then
2593 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2595 if test $ol_enable_bdb = yes ; then
2596 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2598 if test $ol_enable_dnssrv = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2601 if test $ol_enable_hdb = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2604 if test $ol_enable_ldap = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2607 if test $ol_enable_ldbm = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2610 if test $ol_enable_meta = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2613 if test $ol_enable_monitor = yes ; then
2614 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2616 if test $ol_enable_null = yes ; then
2617 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2619 if test $ol_enable_passwd = yes ; then
2620 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2622 if test $ol_enable_perl = yes ; then
2623 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2625 if test $ol_enable_shell = yes ; then
2626 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2628 if test $ol_enable_sql = yes ; then
2629 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2631 if test $ol_enable_modules = yes ; then
2632 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2634 if test $ol_enable_multimaster = yes ; then
2635 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2637 if test $ol_enable_wrappers = yes ; then
2638 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2640 if test $ol_enable_rlookups = yes ; then
2641 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2643 if test $ol_enable_aci = yes ; then
2644 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2646 if test $ol_with_ldbm_api != auto ; then
2647 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2649 if test $ol_with_ldbm_type != auto ; then
2650 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2652 if test $ol_with_bdb_module != static ; then
2653 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2655 if test $ol_with_dnssrv_module != static ; then
2656 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2658 if test $ol_with_hdb_module != static ; then
2659 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2661 if test $ol_with_ldap_module != static ; then
2662 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2664 if test $ol_with_ldbm_module != static ; then
2665 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2667 if test $ol_with_meta_module != static ; then
2668 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2670 if test $ol_with_monitor_module != static ; then
2671 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2673 if test $ol_with_null_module != static ; then
2674 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2676 if test $ol_with_passwd_module != static ; then
2677 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2679 if test $ol_with_perl_module != static ; then
2680 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2682 if test $ol_with_shell_module != static ; then
2683 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2685 if test $ol_with_sql_module != static ; then
2686 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2688 if test $ol_enable_slurpd = yes ; then
2689 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2691 if test $ol_enable_rewrite = yes ; then
2692 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2694 if test $ol_with_dyngroup != no ; then
2695 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2697 if test $ol_with_proxycache != no ; then
2698 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2700 if test $ol_with_rwm != no ; then
2701 echo "configure: warning: slapd disabled, ignoring --with-rwm argument" 1>&2
2704 # force settings to no
2712 ol_enable_monitor=no
2719 ol_enable_modules=no
2720 ol_enable_multimaster=no
2721 ol_enable_rlookups=no
2723 ol_enable_wrappers=no
2726 ol_with_ldbm_type=no
2728 ol_with_bdb_module=static
2729 ol_with_dnssrv_module=static
2730 ol_with_hdb_module=static
2731 ol_with_ldap_module=static
2732 ol_with_ldbm_module=static
2733 ol_with_meta_module=static
2734 ol_with_monitor_module=static
2735 ol_with_null_module=static
2736 ol_with_passwd_module=static
2737 ol_with_perl_module=static
2738 ol_with_shell_module=static
2739 ol_with_sql_module=static
2743 ol_enable_rewrite=no
2746 ol_with_proxycache=no
2749 elif test $ol_enable_ldbm = no ; then
2751 if test $ol_with_ldbm_api != auto ; then
2752 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2755 if test $ol_with_ldbm_type != auto ; then
2756 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2759 if test $ol_with_ldbm_module != static ; then
2760 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2763 if test $ol_enable_modules != yes -a \
2764 $ol_enable_bdb = no -a \
2765 $ol_enable_dnssrv = no -a \
2766 $ol_enable_hdb = no -a \
2767 $ol_enable_ldap = no -a \
2768 $ol_enable_meta = no -a \
2769 $ol_enable_monitor = no -a \
2770 $ol_enable_null = no -a \
2771 $ol_enable_passwd = no -a \
2772 $ol_enable_perl = no -a \
2773 $ol_enable_shell = no -a \
2774 $ol_enable_sql = no ; then
2776 if test $ol_enable_slapd = yes ; then
2777 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2779 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2785 ol_with_ldbm_type=no
2786 ol_with_ldbm_module=static
2788 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2789 ol_with_ldbm_api=berkeley
2793 if test $ol_with_ldbm_api = gdbm -a \
2794 $ol_with_ldbm_type = btree ; then
2795 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2797 if test $ol_with_ldbm_api = mdbm -a \
2798 $ol_with_ldbm_type = btree ; then
2799 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2801 if test $ol_with_ldbm_api = ndbm -a \
2802 $ol_with_ldbm_type = btree ; then
2803 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2806 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2807 if test $ol_with_ldbm_api = auto ; then
2808 ol_with_ldbm_api=berkeley
2809 elif test $ol_with_ldbm_api != berkeley ; then
2810 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2813 elif test $ol_enable_bdb = auto ; then
2814 if test $ol_with_ldbm_api != berkeley \
2815 -o $ol_with_ldbm_api != auto ; then
2816 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2822 if test $ol_enable_slurpd = yes ; then
2823 if test $ol_with_threads = no ; then
2824 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2828 if test $ol_enable_lmpasswd = yes ; then
2829 if test $ol_with_tls = no ; then
2830 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2834 if test $ol_enable_kbind = yes ; then
2835 if test $ol_with_kerberos = no ; then
2836 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2837 elif test $ol_with_kerberos = auto ; then
2838 ol_with_kerberos=yes
2841 elif test $ol_enable_kbind = no ; then
2842 if test $ol_with_kerberos = auto ; then
2844 elif test $ol_with_kerberos != no ; then
2845 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2850 if test $ol_enable_spasswd = yes ; then
2851 if test $ol_with_cyrus_sasl = no ; then
2852 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2854 ol_with_cyrus_sasl=yes
2857 echo "$ac_t""done" 1>&6
2888 BUILD_BDB_DYNAMIC=static
2889 BUILD_DNSSRV_DYNAMIC=static
2890 BUILD_HDB_DYNAMIC=static
2891 BUILD_LDAP_DYNAMIC=static
2892 BUILD_LDBM_DYNAMIC=static
2893 BUILD_META_DYNAMIC=static
2894 BUILD_MONITOR_DYNAMIC=static
2895 BUILD_NULL_DYNAMIC=static
2896 BUILD_PASSWD_DYNAMIC=static
2897 BUILD_PERL_DYNAMIC=static
2898 BUILD_SHELL_DYNAMIC=static
2899 BUILD_SQL_DYNAMIC=static
2905 SLAPD_DYNAMIC_OVERLAYS=
2907 SLAPD_MODULES_LDFLAGS=
2908 SLAPD_MODULES_CPPFLAGS=
2910 SLAPD_STATIC_BACKENDS=
2911 SLAPD_DYNAMIC_BACKENDS=
2934 # Find a good install program. We prefer a C program (faster),
2935 # so one script is as good as another. But avoid the broken or
2936 # incompatible versions:
2937 # SysV /etc/install, /usr/sbin/install
2938 # SunOS /usr/etc/install
2939 # IRIX /sbin/install
2941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2946 echo "configure:2947: checking for a BSD compatible install" >&5
2947 if test -z "$INSTALL"; then
2948 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2952 for ac_dir in $PATH; do
2953 # Account for people who put trailing slashes in PATH elements.
2955 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2957 # OSF1 and SCO ODT 3.0 have their own names for install.
2958 # Don't use installbsd from OSF since it installs stuff as root
2960 for ac_prog in ginstall scoinst install; do
2961 if test -f $ac_dir/$ac_prog; then
2962 if test $ac_prog = install &&
2963 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2964 # AIX install. It has an incompatible calling convention.
2966 elif test $ac_prog = install &&
2967 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2968 # program-specific install script used by HP pwplus--don't use.
2971 ac_cv_path_install="$ac_dir/$ac_prog -c"
2982 if test "${ac_cv_path_install+set}" = set; then
2983 INSTALL="$ac_cv_path_install"
2985 # As a last resort, use the slow shell script. We don't cache a
2986 # path for INSTALL within a source directory, because that will
2987 # break other packages using the cache if that directory is
2988 # removed, or if the path is relative.
2989 INSTALL="$ac_install_sh"
2992 echo "$ac_t""$INSTALL" 1>&6
2994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2995 # It thinks the first close brace ends the variable substitution.
2996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3003 cat >> confdefs.h <<\EOF
3004 #define HAVE_MKVERSION 1
3012 *-*-aix*) if test -z "$CC" ; then
3013 case "$ol_with_threads" in
3014 auto | yes | posix) ol_aix_threads=yes ;;
3020 if test $ol_aix_threads = yes ; then
3021 if test -z "${CC}" ; then
3022 for ac_prog in cc_r xlc_r cc
3024 # Extract the first word of "$ac_prog", so it can be a program name with args.
3025 set dummy $ac_prog; ac_word=$2
3026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3027 echo "configure:3028: checking for $ac_word" >&5
3028 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3029 echo $ac_n "(cached) $ac_c" 1>&6
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3036 for ac_dir in $ac_dummy; do
3037 test -z "$ac_dir" && ac_dir=.
3038 if test -f $ac_dir/$ac_word; then
3039 ac_cv_prog_CC="$ac_prog"
3047 if test -n "$CC"; then
3048 echo "$ac_t""$CC" 1>&6
3050 echo "$ac_t""no" 1>&6
3053 test -n "$CC" && break
3057 if test "$CC" = cc ; then
3058 if test $ol_with_threads != auto ; then
3059 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3061 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3067 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3068 ol_with_threads=posix
3069 ol_cv_pthread_create=yes
3073 if test -z "${CC}"; then
3074 for ac_prog in cc gcc
3076 # Extract the first word of "$ac_prog", so it can be a program name with args.
3077 set dummy $ac_prog; ac_word=$2
3078 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_word" >&5
3080 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3088 for ac_dir in $ac_dummy; do
3089 test -z "$ac_dir" && ac_dir=.
3090 if test -f $ac_dir/$ac_word; then
3091 ac_cv_prog_CC="$ac_prog"
3099 if test -n "$CC"; then
3100 echo "$ac_t""$CC" 1>&6
3102 echo "$ac_t""no" 1>&6
3105 test -n "$CC" && break
3107 test -n "$CC" || CC="missing"
3110 if test "${CC}" = "missing" ; then
3111 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3115 if test -z "${AR}"; then
3116 for ac_prog in ar gar
3118 # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3121 echo "configure:3122: checking for $ac_word" >&5
3122 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3123 echo $ac_n "(cached) $ac_c" 1>&6
3125 if test -n "$AR"; then
3126 ac_cv_prog_AR="$AR" # Let the user override the test.
3128 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3130 for ac_dir in $ac_dummy; do
3131 test -z "$ac_dir" && ac_dir=.
3132 if test -f $ac_dir/$ac_word; then
3133 ac_cv_prog_AR="$ac_prog"
3141 if test -n "$AR"; then
3142 echo "$ac_t""$AR" 1>&6
3144 echo "$ac_t""no" 1>&6
3147 test -n "$AR" && break
3149 test -n "$AR" || AR="missing"
3152 if test "${AR}" = "missing" ; then
3153 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3159 # Find the correct PATH separator. Usually this is `:', but
3160 # DJGPP uses `;' like DOS.
3161 if test "X${PATH_SEPARATOR+set}" != Xset; then
3162 UNAME=${UNAME-`uname 2>/dev/null`}
3164 *-DOS) lt_cv_sys_path_separator=';' ;;
3165 *) lt_cv_sys_path_separator=':' ;;
3167 PATH_SEPARATOR=$lt_cv_sys_path_separator
3170 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3171 echo "configure:3172: checking for Cygwin environment" >&5
3172 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3173 echo $ac_n "(cached) $ac_c" 1>&6
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3182 #define __CYGWIN__ __CYGWIN32__
3187 if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3191 echo "configure: failed program was:" >&5
3192 cat conftest.$ac_ext >&5
3199 echo "$ac_t""$ac_cv_cygwin" 1>&6
3201 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3202 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3203 echo "configure:3204: checking for mingw32 environment" >&5
3204 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3215 if { (eval echo configure:3216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 echo "configure: failed program was:" >&5
3220 cat conftest.$ac_ext >&5
3227 echo "$ac_t""$ac_cv_mingw32" 1>&6
3229 test "$ac_cv_mingw32" = yes && MINGW32=yes
3230 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3231 echo "configure:3232: checking for EMX OS/2 environment" >&5
3232 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3243 if { (eval echo configure:3244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3255 echo "$ac_t""$ac_cv_emxos2" 1>&6
3257 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3258 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3259 echo "configure:3260: checking how to run the C preprocessor" >&5
3260 # On Suns, sometimes $CPP names a directory.
3261 if test -n "$CPP" && test -d "$CPP"; then
3264 if test -z "$CPP"; then
3265 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 # This must be in double quotes, not single quotes, because CPP may get
3269 # substituted into the Makefile and "${CC-cc}" will confuse make.
3271 # On the NeXT, cc -E runs the code through the compiler's parser,
3272 # not just through cpp.
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3279 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3280 { (eval echo configure:3281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3281 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3282 if test -z "$ac_err"; then
3286 echo "configure: failed program was:" >&5
3287 cat conftest.$ac_ext >&5
3289 CPP="${CC-cc} -E -traditional-cpp"
3290 cat > conftest.$ac_ext <<EOF
3291 #line 3292 "configure"
3292 #include "confdefs.h"
3296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3297 { (eval echo configure:3298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3299 if test -z "$ac_err"; then
3303 echo "configure: failed program was:" >&5
3304 cat conftest.$ac_ext >&5
3306 CPP="${CC-cc} -nologo -E"
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3313 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3314 { (eval echo configure:3315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3315 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3316 if test -z "$ac_err"; then
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3330 ac_cv_prog_CPP="$CPP"
3332 CPP="$ac_cv_prog_CPP"
3334 ac_cv_prog_CPP="$CPP"
3336 echo "$ac_t""$CPP" 1>&6
3338 # Check whether --enable-fast-install or --disable-fast-install was given.
3339 if test "${enable_fast_install+set}" = set; then
3340 enableval="$enable_fast_install"
3341 p=${PACKAGE-default}
3343 yes) enable_fast_install=yes ;;
3344 no) enable_fast_install=no ;;
3346 enable_fast_install=no
3347 # Look at the argument we got. We use all the common list separators.
3348 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3349 for pkg in $enableval; do
3350 if test "X$pkg" = "X$p"; then
3351 enable_fast_install=yes
3358 enable_fast_install=yes
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3364 echo "configure:3365: checking for $ac_word" >&5
3365 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3366 echo $ac_n "(cached) $ac_c" 1>&6
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3373 for ac_dir in $ac_dummy; do
3374 test -z "$ac_dir" && ac_dir=.
3375 if test -f $ac_dir/$ac_word; then
3384 if test -n "$CC"; then
3385 echo "$ac_t""$CC" 1>&6
3387 echo "$ac_t""no" 1>&6
3390 if test -z "$CC"; then
3391 # Extract the first word of "cc", so it can be a program name with args.
3392 set dummy cc; ac_word=$2
3393 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3394 echo "configure:3395: checking for $ac_word" >&5
3395 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3398 if test -n "$CC"; then
3399 ac_cv_prog_CC="$CC" # Let the user override the test.
3401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3404 for ac_dir in $ac_dummy; do
3405 test -z "$ac_dir" && ac_dir=.
3406 if test -f $ac_dir/$ac_word; then
3407 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3416 if test $ac_prog_rejected = yes; then
3417 # We found a bogon in the path, so make sure we never use it.
3418 set dummy $ac_cv_prog_CC
3420 if test $# -gt 0; then
3421 # We chose a different compiler from the bogus one.
3422 # However, it has the same basename, so the bogon will be chosen
3423 # first if we set CC to just the basename; use the full file name.
3425 set dummy "$ac_dir/$ac_word" "$@"
3433 if test -n "$CC"; then
3434 echo "$ac_t""$CC" 1>&6
3436 echo "$ac_t""no" 1>&6
3439 if test -z "$CC"; then
3440 case "`uname -s`" in
3441 *win32* | *WIN32* | *CYGWIN*)
3442 # Extract the first word of "cl", so it can be a program name with args.
3443 set dummy cl; ac_word=$2
3444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3445 echo "configure:3446: checking for $ac_word" >&5
3446 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3447 echo $ac_n "(cached) $ac_c" 1>&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC="$CC" # Let the user override the test.
3452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3454 for ac_dir in $ac_dummy; do
3455 test -z "$ac_dir" && ac_dir=.
3456 if test -f $ac_dir/$ac_word; then
3465 if test -n "$CC"; then
3466 echo "$ac_t""$CC" 1>&6
3468 echo "$ac_t""no" 1>&6
3473 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3476 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3477 echo "configure:3478: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3480 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3481 ac_cpp='$CPP $CPPFLAGS'
3482 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3483 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3484 cross_compiling=$ac_cv_prog_cc_cross
3486 cat > conftest.$ac_ext << EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3494 ac_cv_prog_cc_works=yes
3495 # If we can't run a trivial program, we are probably using a cross compiler.
3496 if (./conftest; exit) 2>/dev/null; then
3497 ac_cv_prog_cc_cross=no
3499 ac_cv_prog_cc_cross=yes
3502 echo "configure: failed program was:" >&5
3503 cat conftest.$ac_ext >&5
3504 ac_cv_prog_cc_works=no
3508 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3511 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3512 cross_compiling=$ac_cv_prog_cc_cross
3514 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3515 if test $ac_cv_prog_cc_works = no; then
3516 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3518 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3519 echo "configure:3520: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3520 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3521 cross_compiling=$ac_cv_prog_cc_cross
3523 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3524 echo "configure:3525: checking whether we are using GNU C" >&5
3525 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3526 echo $ac_n "(cached) $ac_c" 1>&6
3528 cat > conftest.c <<EOF
3533 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3540 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3542 if test $ac_cv_prog_gcc = yes; then
3548 ac_test_CFLAGS="${CFLAGS+set}"
3549 ac_save_CFLAGS="$CFLAGS"
3551 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3552 echo "configure:3553: checking whether ${CC-cc} accepts -g" >&5
3553 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3556 echo 'void f(){}' > conftest.c
3557 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3566 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3567 if test "$ac_test_CFLAGS" = set; then
3568 CFLAGS="$ac_save_CFLAGS"
3569 elif test $ac_cv_prog_cc_g = yes; then
3570 if test "$GCC" = yes; then
3576 if test "$GCC" = yes; then
3583 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3584 if test "${with_gnu_ld+set}" = set; then
3585 withval="$with_gnu_ld"
3586 test "$withval" = no || with_gnu_ld=yes
3592 if test "$GCC" = yes; then
3593 # Check if gcc -print-prog-name=ld gives a path.
3594 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3595 echo "configure:3596: checking for ld used by GCC" >&5
3598 # gcc leaves a trailing carriage return which upsets mingw
3599 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3601 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3604 # Accept absolute paths.
3605 [\\/]* | [A-Za-z]:[\\/]*)
3606 re_direlt='/[^/][^/]*/\.\./'
3607 # Canonicalize the path of ld
3608 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3609 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3610 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3612 test -z "$LD" && LD="$ac_prog"
3615 # If it fails, then pretend we aren't using GCC.
3619 # If it is relative, then search for the first ld in PATH.
3623 elif test "$with_gnu_ld" = yes; then
3624 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3625 echo "configure:3626: checking for GNU ld" >&5
3627 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3628 echo "configure:3629: checking for non-GNU ld" >&5
3630 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3631 echo $ac_n "(cached) $ac_c" 1>&6
3633 if test -z "$LD"; then
3634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3635 for ac_dir in $PATH; do
3636 test -z "$ac_dir" && ac_dir=.
3637 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3638 lt_cv_path_LD="$ac_dir/$ac_prog"
3639 # Check to see if the program is GNU ld. I'd rather use --version,
3640 # but apparently some GNU ld's only accept -v.
3641 # Break only if it was the GNU/non-GNU ld that we prefer.
3642 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3643 test "$with_gnu_ld" != no && break
3645 test "$with_gnu_ld" != yes && break
3651 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3656 if test -n "$LD"; then
3657 echo "$ac_t""$LD" 1>&6
3659 echo "$ac_t""no" 1>&6
3661 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3662 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3663 echo "configure:3664: checking if the linker ($LD) is GNU ld" >&5
3664 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3668 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3669 lt_cv_prog_gnu_ld=yes
3671 lt_cv_prog_gnu_ld=no
3675 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3676 with_gnu_ld=$lt_cv_prog_gnu_ld
3679 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3680 echo "configure:3681: checking for $LD option to reload object files" >&5
3681 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 lt_cv_ld_reload_flag='-r'
3687 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3688 reload_flag=$lt_cv_ld_reload_flag
3689 test -n "$reload_flag" && reload_flag=" $reload_flag"
3691 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3692 echo "configure:3693: checking for BSD-compatible nm" >&5
3693 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3696 if test -n "$NM"; then
3697 # Let the user override the test.
3700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3701 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3702 test -z "$ac_dir" && ac_dir=.
3703 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3704 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3705 # Check to see if the nm accepts a BSD-compat flag.
3706 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3707 # nm: unknown option "B" ignored
3708 # Tru64's nm complains that /dev/null is an invalid object file
3709 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3710 lt_cv_path_NM="$tmp_nm -B"
3712 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3713 lt_cv_path_NM="$tmp_nm -p"
3716 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3717 continue # so that we can try to find one that supports BSD flags
3722 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3727 echo "$ac_t""$NM" 1>&6
3729 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3730 echo "configure:3731: checking for a sed that does not truncate output" >&5
3731 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3732 echo $ac_n "(cached) $ac_c" 1>&6
3734 # Loop through the user's path and test for sed and gsed.
3735 # Then use that list of sed's as ones to test for truncation.
3736 as_executable_p="test -f"
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 test -z "$as_dir" && as_dir=.
3742 for ac_prog in sed gsed; do
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3745 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3751 # Create a temporary directory, and hook for its removal unless debugging.
3754 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3755 trap '{ (exit 1); exit 1; }' 1 2 13 15
3758 # Create a (secure) tmp directory for tmp files.
3761 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3762 test -n "$tmp" && test -d "$tmp"
3765 tmp=$TMPDIR/sed$$-$RANDOM
3766 (umask 077 && mkdir $tmp)
3769 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3770 { (exit 1); exit 1; }
3774 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3775 # along with /bin/sed that truncates output.
3776 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3777 test ! -f ${_sed} && break
3778 cat /dev/null > "$tmp/sed.in"
3780 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3781 # Check for GNU sed and select it if it is found.
3782 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3783 lt_cv_path_SED=${_sed}
3787 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3788 mv "$tmp/sed.tmp" "$tmp/sed.in"
3789 cp "$tmp/sed.in" "$tmp/sed.nl"
3790 echo >>"$tmp/sed.nl"
3791 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3792 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3793 # 40000 chars as input seems more than enough
3794 test $_count -gt 10 && break
3795 _count=`expr $_count + 1`
3796 if test $_count -gt $_max; then
3798 lt_cv_path_SED=$_sed
3806 if test "X$SED" != "X"; then
3811 echo "$ac_t""$SED" 1>&6
3813 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3814 echo "configure:3815: checking whether ln -s works" >&5
3815 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3816 echo $ac_n "(cached) $ac_c" 1>&6
3819 if ln -s X conftestdata 2>/dev/null
3822 ac_cv_prog_LN_S="ln -s"
3827 LN_S="$ac_cv_prog_LN_S"
3828 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3829 echo "$ac_t""yes" 1>&6
3831 echo "$ac_t""no" 1>&6
3834 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3835 echo "configure:3836: checking how to recognise dependent libraries" >&5
3836 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3837 echo $ac_n "(cached) $ac_c" 1>&6
3839 lt_cv_file_magic_cmd='$MAGIC_CMD'
3840 lt_cv_file_magic_test_file=
3841 lt_cv_deplibs_check_method='unknown'
3842 # Need to set the preceding variable on all platforms that support
3843 # interlibrary dependencies.
3844 # 'none' -- dependencies not supported.
3845 # `unknown' -- same as none, but documents that we really don't know.
3846 # 'pass_all' -- all dependencies passed with no checks.
3847 # 'test_compile' -- check by making test program.
3848 # 'file_magic [[regex]]' -- check by looking for files in library path
3849 # which responds to the $file_magic_cmd with a given egrep regex.
3850 # If you have `file' or equivalent on your system and you're not sure
3851 # whether `pass_all' will *always* work, you probably want this one.
3855 lt_cv_deplibs_check_method=pass_all
3859 lt_cv_deplibs_check_method=pass_all
3863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3864 lt_cv_file_magic_cmd='/usr/bin/file -L'
3865 lt_cv_file_magic_test_file=/shlib/libc.so
3868 cygwin* | mingw* | pw32*)
3869 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3870 lt_cv_file_magic_cmd='$OBJDUMP -f'
3873 darwin* | rhapsody*)
3874 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3875 lt_cv_file_magic_cmd='/usr/bin/file -L'
3877 rhapsody* | darwin1.[012])
3878 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3881 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3887 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3890 # Not sure whether the presence of OpenBSD here was a mistake.
3891 # Let's accept both of them until this is cleared up.
3892 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3893 lt_cv_file_magic_cmd=/usr/bin/file
3894 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3898 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_deplibs_check_method=pass_all
3907 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3908 lt_cv_file_magic_cmd=/usr/bin/file
3909 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3912 irix5* | irix6* | nonstopux*)
3914 irix5* | nonstopux*)
3915 # this will be overridden with pass_all, but let us keep it just in case
3916 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3920 *-32|*"-32 ") libmagic=32-bit;;
3921 *-n32|*"-n32 ") libmagic=N32;;
3922 *-64|*"-64 ") libmagic=64-bit;;
3923 *) libmagic=never-match;;
3925 # this will be overridden with pass_all, but let us keep it just in case
3926 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3929 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3930 lt_cv_deplibs_check_method=pass_all
3933 # This must be Linux ELF.
3936 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3937 lt_cv_deplibs_check_method=pass_all ;;
3939 # glibc up to 2.1.1 does not perform some relocations on ARM
3940 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3942 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3946 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3947 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3949 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3954 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3955 lt_cv_file_magic_cmd=/usr/bin/file
3956 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3960 lt_cv_file_magic_cmd=/usr/bin/file
3961 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3965 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3970 lt_cv_deplibs_check_method=pass_all
3973 osf3* | osf4* | osf5*)
3974 # this will be overridden with pass_all, but let us keep it just in case
3975 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3976 lt_cv_file_magic_test_file=/shlib/libc.so
3977 lt_cv_deplibs_check_method=pass_all
3981 lt_cv_deplibs_check_method=pass_all
3985 lt_cv_deplibs_check_method=pass_all
3986 lt_cv_file_magic_test_file=/lib/libc.so
3989 sysv5uw[78]* | sysv4*uw2*)
3990 lt_cv_deplibs_check_method=pass_all
3993 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3994 case $host_vendor in
3996 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]'
3997 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4000 lt_cv_deplibs_check_method=pass_all
4003 lt_cv_file_magic_cmd='/bin/file'
4004 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4007 lt_cv_file_magic_cmd='/bin/file'
4008 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4009 lt_cv_file_magic_test_file=/lib/libc.so
4012 lt_cv_deplibs_check_method=pass_all
4020 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4021 file_magic_cmd=$lt_cv_file_magic_cmd
4022 deplibs_check_method=$lt_cv_deplibs_check_method
4024 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4025 echo "configure:4026: checking for object suffix" >&5
4026 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4027 echo $ac_n "(cached) $ac_c" 1>&6
4030 echo 'int i = 1;' > conftest.$ac_ext
4031 if { (eval echo configure:4032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4032 for ac_file in conftest.*; do
4035 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4039 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4044 echo "$ac_t""$ac_cv_objext" 1>&6
4045 OBJEXT=$ac_cv_objext
4046 ac_objext=$ac_cv_objext
4051 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4052 echo "configure:4053: checking for executable suffix" >&5
4053 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4060 echo 'int main () { return 0; }' > conftest.$ac_ext
4062 if { (eval echo configure:4063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4063 for file in conftest.*; do
4065 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4066 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4070 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4073 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4078 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4079 echo "$ac_t""${ac_cv_exeext}" 1>&6
4082 if test $host != $build; then
4083 ac_tool_prefix=${host_alias}-
4091 # Check for command to grab the raw symbol name followed by C symbol from nm.
4092 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4093 echo "configure:4094: checking command to parse $NM output" >&5
4094 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4095 echo $ac_n "(cached) $ac_c" 1>&6
4098 # These are sane defaults that work on at least a few old systems.
4099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4101 # Character class describing NM global symbol codes.
4102 symcode='[BCDEGRST]'
4104 # Regexp to match symbols that can be accessed directly from C.
4105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4107 # Transform the above into a raw symbol and a C symbol.
4108 symxfrm='\1 \2\3 \3'
4110 # Transform an extracted symbol line into a proper C declaration
4111 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4113 # Transform an extracted symbol line into symbol name and symbol address
4114 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'"
4116 # Define system-specific variables.
4121 cygwin* | mingw* | pw32*)
4122 symcode='[ABCDGISTW]'
4124 hpux*) # Its linker distinguishes data from code symbols
4125 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4126 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'"
4129 symcode='[BCDEGRST]'
4132 symcode='[BCDEGQRST]'
4142 # Handle CRLF in mingw tool chain
4146 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4150 # If we're using GNU nm, then use its standard symbol codes.
4151 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4152 symcode='[ABCDGISTW]'
4155 # Try without a prefix undercore, then with it.
4156 for ac_symprfx in "" "_"; do
4158 # Write the raw and C identifiers.
4159 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4161 # Check to see that the pipe works correctly.
4164 cat > conftest.$ac_ext <<EOF
4169 void nm_test_func(){}
4173 int main(){nm_test_var='a';nm_test_func();return(0);}
4176 if { (eval echo configure:4177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4177 # Now try to grab the symbols.
4179 if { (eval echo configure:4180: \"$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
4180 # Try sorting and uniquifying the output.
4181 if sort "$nlist" | uniq > "$nlist"T; then
4182 mv -f "$nlist"T "$nlist"
4187 # Make sure that we snagged all the symbols we need.
4188 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4189 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4190 cat <<EOF > conftest.$ac_ext
4196 # Now generate the symbol file.
4197 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4199 cat <<EOF >> conftest.$ac_ext
4200 #if defined (__STDC__) && __STDC__
4201 # define lt_ptr void *
4203 # define lt_ptr char *
4207 /* The mapping between symbol names and symbols. */
4212 lt_preloaded_symbols[] =
4215 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4216 cat <<\EOF >> conftest.$ac_ext
4224 # Now try linking the two files.
4225 mv conftest.$ac_objext conftstm.$ac_objext
4227 save_CFLAGS="$CFLAGS"
4228 LIBS="conftstm.$ac_objext"
4229 CFLAGS="$CFLAGS$no_builtin_flag"
4230 if { (eval echo configure:4231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4234 CFLAGS="$save_CFLAGS"
4236 echo "cannot find nm_test_func in $nlist" >&5
4239 echo "cannot find nm_test_var in $nlist" >&5
4242 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4245 echo "$progname: failed program was:" >&5
4246 cat conftest.$ac_ext >&5
4248 rm -f conftest* conftst*
4250 # Do not use the global_symbol_pipe unless it works.
4251 if test "$pipe_works" = yes; then
4254 lt_cv_sys_global_symbol_pipe=
4260 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4261 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4262 global_symbol_to_cdecl=
4263 global_symbol_to_c_name_address=
4265 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4266 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4268 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4270 echo "$ac_t""failed" 1>&6
4272 echo "$ac_t""ok" 1>&6
4275 for ac_hdr in dlfcn.h
4277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4279 echo "configure:4280: checking for $ac_hdr" >&5
4280 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4289 { (eval echo configure:4290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4291 if test -z "$ac_err"; then
4293 eval "ac_cv_header_$ac_safe=yes"
4296 echo "configure: failed program was:" >&5
4297 cat conftest.$ac_ext >&5
4299 eval "ac_cv_header_$ac_safe=no"
4303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4304 echo "$ac_t""yes" 1>&6
4305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4306 cat >> confdefs.h <<EOF
4307 #define $ac_tr_hdr 1
4311 echo "$ac_t""no" 1>&6
4320 # Only perform the check for file, if the check method requires it
4321 case $deplibs_check_method in
4323 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4324 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4325 echo "configure:4326: checking for ${ac_tool_prefix}file" >&5
4326 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4334 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4337 ac_save_MAGIC_CMD="$MAGIC_CMD"
4338 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4339 ac_dummy="/usr/bin:$PATH"
4340 for ac_dir in $ac_dummy; do
4341 test -z "$ac_dir" && ac_dir=.
4342 if test -f $ac_dir/${ac_tool_prefix}file; then
4343 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4344 if test -n "$file_magic_test_file"; then
4345 case $deplibs_check_method in
4347 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4348 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4349 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4350 egrep "$file_magic_regex" > /dev/null; then
4355 *** Warning: the command libtool uses to detect shared libraries,
4356 *** $file_magic_cmd, produces output that libtool cannot recognize.
4357 *** The result is that libtool may fail to recognize shared libraries
4358 *** as such. This will affect the creation of libtool libraries that
4359 *** depend on shared libraries, but programs linked with such libtool
4360 *** libraries will work regardless of this problem. Nevertheless, you
4361 *** may want to report the problem to your system manager and/or to
4362 *** bug-libtool@gnu.org
4372 MAGIC_CMD="$ac_save_MAGIC_CMD"
4377 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4378 if test -n "$MAGIC_CMD"; then
4379 echo "$ac_t""$MAGIC_CMD" 1>&6
4381 echo "$ac_t""no" 1>&6
4384 if test -z "$lt_cv_path_MAGIC_CMD"; then
4385 if test -n "$ac_tool_prefix"; then
4386 echo $ac_n "checking for file""... $ac_c" 1>&6
4387 echo "configure:4388: checking for file" >&5
4388 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4389 echo $ac_n "(cached) $ac_c" 1>&6
4393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4396 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4399 ac_save_MAGIC_CMD="$MAGIC_CMD"
4400 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4401 ac_dummy="/usr/bin:$PATH"
4402 for ac_dir in $ac_dummy; do
4403 test -z "$ac_dir" && ac_dir=.
4404 if test -f $ac_dir/file; then
4405 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4406 if test -n "$file_magic_test_file"; then
4407 case $deplibs_check_method in
4409 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4410 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4411 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4412 egrep "$file_magic_regex" > /dev/null; then
4417 *** Warning: the command libtool uses to detect shared libraries,
4418 *** $file_magic_cmd, produces output that libtool cannot recognize.
4419 *** The result is that libtool may fail to recognize shared libraries
4420 *** as such. This will affect the creation of libtool libraries that
4421 *** depend on shared libraries, but programs linked with such libtool
4422 *** libraries will work regardless of this problem. Nevertheless, you
4423 *** may want to report the problem to your system manager and/or to
4424 *** bug-libtool@gnu.org
4434 MAGIC_CMD="$ac_save_MAGIC_CMD"
4439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4440 if test -n "$MAGIC_CMD"; then
4441 echo "$ac_t""$MAGIC_CMD" 1>&6
4443 echo "$ac_t""no" 1>&6
4455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4458 echo "configure:4459: checking for $ac_word" >&5
4459 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4460 echo $ac_n "(cached) $ac_c" 1>&6
4462 if test -n "$RANLIB"; then
4463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4467 for ac_dir in $ac_dummy; do
4468 test -z "$ac_dir" && ac_dir=.
4469 if test -f $ac_dir/$ac_word; then
4470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4477 RANLIB="$ac_cv_prog_RANLIB"
4478 if test -n "$RANLIB"; then
4479 echo "$ac_t""$RANLIB" 1>&6
4481 echo "$ac_t""no" 1>&6
4485 if test -z "$ac_cv_prog_RANLIB"; then
4486 if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "ranlib", so it can be a program name with args.
4488 set dummy ranlib; ac_word=$2
4489 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_word" >&5
4491 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 if test -n "$RANLIB"; then
4495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4497 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4499 for ac_dir in $ac_dummy; do
4500 test -z "$ac_dir" && ac_dir=.
4501 if test -f $ac_dir/$ac_word; then
4502 ac_cv_prog_RANLIB="ranlib"
4507 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4510 RANLIB="$ac_cv_prog_RANLIB"
4511 if test -n "$RANLIB"; then
4512 echo "$ac_t""$RANLIB" 1>&6
4514 echo "$ac_t""no" 1>&6
4522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4523 set dummy ${ac_tool_prefix}strip; ac_word=$2
4524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4525 echo "configure:4526: checking for $ac_word" >&5
4526 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4527 echo $ac_n "(cached) $ac_c" 1>&6
4529 if test -n "$STRIP"; then
4530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4534 for ac_dir in $ac_dummy; do
4535 test -z "$ac_dir" && ac_dir=.
4536 if test -f $ac_dir/$ac_word; then
4537 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4544 STRIP="$ac_cv_prog_STRIP"
4545 if test -n "$STRIP"; then
4546 echo "$ac_t""$STRIP" 1>&6
4548 echo "$ac_t""no" 1>&6
4552 if test -z "$ac_cv_prog_STRIP"; then
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "strip", so it can be a program name with args.
4555 set dummy strip; ac_word=$2
4556 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4557 echo "configure:4558: checking for $ac_word" >&5
4558 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 if test -n "$STRIP"; then
4562 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4564 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4566 for ac_dir in $ac_dummy; do
4567 test -z "$ac_dir" && ac_dir=.
4568 if test -f $ac_dir/$ac_word; then
4569 ac_cv_prog_STRIP="strip"
4574 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4577 STRIP="$ac_cv_prog_STRIP"
4578 if test -n "$STRIP"; then
4579 echo "$ac_t""$STRIP" 1>&6
4581 echo "$ac_t""no" 1>&6
4591 enable_win32_dll=yes
4593 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4594 if test "${enable_libtool_lock+set}" = set; then
4595 enableval="$enable_libtool_lock"
4599 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4601 # Some flags need to be propagated to the compiler or linker for good
4605 # Find out which ABI we are using.
4606 echo '#line 4607 "configure"' > conftest.$ac_ext
4607 if { (eval echo configure:4608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4608 case `/usr/bin/file conftest.$ac_objext` in
4624 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4625 SAVE_CFLAGS="$CFLAGS"
4626 CFLAGS="$CFLAGS -belf"
4627 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4628 echo "configure:4629: checking whether the C compiler needs -belf" >&5
4629 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4634 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4635 ac_cpp='$CPP $CPPFLAGS'
4636 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4637 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4638 cross_compiling=$ac_cv_prog_cc_cross
4640 cat > conftest.$ac_ext <<EOF
4641 #line 4642 "configure"
4642 #include "confdefs.h"
4648 if { (eval echo configure:4649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4650 lt_cv_cc_needs_belf=yes
4652 echo "configure: failed program was:" >&5
4653 cat conftest.$ac_ext >&5
4655 lt_cv_cc_needs_belf=no
4659 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4660 ac_cpp='$CPP $CPPFLAGS'
4661 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4662 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4663 cross_compiling=$ac_cv_prog_cc_cross
4667 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4668 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4669 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4670 CFLAGS="$SAVE_CFLAGS"
4674 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4675 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4677 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4678 echo "configure:4679: checking for $ac_word" >&5
4679 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4680 echo $ac_n "(cached) $ac_c" 1>&6
4682 if test -n "$DLLTOOL"; then
4683 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4685 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4687 for ac_dir in $ac_dummy; do
4688 test -z "$ac_dir" && ac_dir=.
4689 if test -f $ac_dir/$ac_word; then
4690 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4697 DLLTOOL="$ac_cv_prog_DLLTOOL"
4698 if test -n "$DLLTOOL"; then
4699 echo "$ac_t""$DLLTOOL" 1>&6
4701 echo "$ac_t""no" 1>&6
4705 if test -z "$ac_cv_prog_DLLTOOL"; then
4706 if test -n "$ac_tool_prefix"; then
4707 # Extract the first word of "dlltool", so it can be a program name with args.
4708 set dummy dlltool; ac_word=$2
4709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4710 echo "configure:4711: checking for $ac_word" >&5
4711 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4712 echo $ac_n "(cached) $ac_c" 1>&6
4714 if test -n "$DLLTOOL"; then
4715 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4719 for ac_dir in $ac_dummy; do
4720 test -z "$ac_dir" && ac_dir=.
4721 if test -f $ac_dir/$ac_word; then
4722 ac_cv_prog_DLLTOOL="dlltool"
4727 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4730 DLLTOOL="$ac_cv_prog_DLLTOOL"
4731 if test -n "$DLLTOOL"; then
4732 echo "$ac_t""$DLLTOOL" 1>&6
4734 echo "$ac_t""no" 1>&6
4742 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4743 set dummy ${ac_tool_prefix}as; ac_word=$2
4744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4745 echo "configure:4746: checking for $ac_word" >&5
4746 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4747 echo $ac_n "(cached) $ac_c" 1>&6
4749 if test -n "$AS"; then
4750 ac_cv_prog_AS="$AS" # Let the user override the test.
4752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4754 for ac_dir in $ac_dummy; do
4755 test -z "$ac_dir" && ac_dir=.
4756 if test -f $ac_dir/$ac_word; then
4757 ac_cv_prog_AS="${ac_tool_prefix}as"
4765 if test -n "$AS"; then
4766 echo "$ac_t""$AS" 1>&6
4768 echo "$ac_t""no" 1>&6
4772 if test -z "$ac_cv_prog_AS"; then
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "as", so it can be a program name with args.
4775 set dummy as; ac_word=$2
4776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4777 echo "configure:4778: checking for $ac_word" >&5
4778 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4779 echo $ac_n "(cached) $ac_c" 1>&6
4781 if test -n "$AS"; then
4782 ac_cv_prog_AS="$AS" # Let the user override the test.
4784 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4786 for ac_dir in $ac_dummy; do
4787 test -z "$ac_dir" && ac_dir=.
4788 if test -f $ac_dir/$ac_word; then
4794 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4798 if test -n "$AS"; then
4799 echo "$ac_t""$AS" 1>&6
4801 echo "$ac_t""no" 1>&6
4809 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4810 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4812 echo "configure:4813: checking for $ac_word" >&5
4813 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4814 echo $ac_n "(cached) $ac_c" 1>&6
4816 if test -n "$OBJDUMP"; then
4817 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4819 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4821 for ac_dir in $ac_dummy; do
4822 test -z "$ac_dir" && ac_dir=.
4823 if test -f $ac_dir/$ac_word; then
4824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4831 OBJDUMP="$ac_cv_prog_OBJDUMP"
4832 if test -n "$OBJDUMP"; then
4833 echo "$ac_t""$OBJDUMP" 1>&6
4835 echo "$ac_t""no" 1>&6
4839 if test -z "$ac_cv_prog_OBJDUMP"; then
4840 if test -n "$ac_tool_prefix"; then
4841 # Extract the first word of "objdump", so it can be a program name with args.
4842 set dummy objdump; ac_word=$2
4843 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4844 echo "configure:4845: checking for $ac_word" >&5
4845 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4846 echo $ac_n "(cached) $ac_c" 1>&6
4848 if test -n "$OBJDUMP"; then
4849 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4851 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4853 for ac_dir in $ac_dummy; do
4854 test -z "$ac_dir" && ac_dir=.
4855 if test -f $ac_dir/$ac_word; then
4856 ac_cv_prog_OBJDUMP="objdump"
4861 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4864 OBJDUMP="$ac_cv_prog_OBJDUMP"
4865 if test -n "$OBJDUMP"; then
4866 echo "$ac_t""$OBJDUMP" 1>&6
4868 echo "$ac_t""no" 1>&6
4877 # recent cygwin and mingw systems supply a stub DllMain which the user
4878 # can override, but on older systems we have to supply one
4879 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4880 echo "configure:4881: checking if libtool should supply DllMain function" >&5
4881 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4882 echo $ac_n "(cached) $ac_c" 1>&6
4884 cat > conftest.$ac_ext <<EOF
4885 #line 4886 "configure"
4886 #include "confdefs.h"
4889 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4893 if { (eval echo configure:4894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4895 lt_cv_need_dllmain=no
4897 echo "configure: failed program was:" >&5
4898 cat conftest.$ac_ext >&5
4900 lt_cv_need_dllmain=yes
4905 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4908 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4909 # old mingw systems require "-dll" to link a DLL, while more recent ones
4911 SAVE_CFLAGS="$CFLAGS"
4912 CFLAGS="$CFLAGS -mdll"
4913 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4914 echo "configure:4915: checking how to link DLLs" >&5
4915 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4916 echo $ac_n "(cached) $ac_c" 1>&6
4918 cat > conftest.$ac_ext <<EOF
4919 #line 4920 "configure"
4920 #include "confdefs.h"
4926 if { (eval echo configure:4927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4928 lt_cv_cc_dll_switch=-mdll
4930 echo "configure: failed program was:" >&5
4931 cat conftest.$ac_ext >&5
4933 lt_cv_cc_dll_switch=-dll
4938 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4939 CFLAGS="$SAVE_CFLAGS" ;;
4940 *-*-cygwin* | *-*-pw32*)
4941 # cygwin systems need to pass --dll to the linker, and not link
4942 # crt.o which will require a WinMain@16 definition.
4943 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4949 # Sed substitution that helps us do robust quoting. It backslashifies
4950 # metacharacters that are still active within double-quoted strings.
4951 Xsed='sed -e s/^X//'
4952 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4954 # Same as above, but do not quote variable references.
4955 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4957 # Sed substitution to delay expansion of an escaped shell variable in a
4958 # double_quote_subst'ed string.
4959 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4965 default_ofile=libtool
4966 can_build_shared=yes
4968 # All known linkers require a `.a' archive for static linking (except M$VC,
4969 # which needs '.lib').
4971 ltmain="$ac_aux_dir/ltmain.sh"
4972 ofile="$default_ofile"
4973 with_gnu_ld="$lt_cv_prog_gnu_ld"
4974 need_locks="$enable_libtool_lock"
4977 old_CFLAGS="$CFLAGS"
4979 # Set sane defaults for various variables
4980 test -z "$AR" && AR=ar
4981 test -z "$AR_FLAGS" && AR_FLAGS=cru
4982 test -z "$AS" && AS=as
4983 test -z "$CC" && CC=cc
4984 test -z "$DLLTOOL" && DLLTOOL=dlltool
4985 test -z "$LD" && LD=ld
4986 test -z "$LN_S" && LN_S="ln -s"
4987 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4988 test -z "$NM" && NM=nm
4989 test -z "$OBJDUMP" && OBJDUMP=objdump
4990 test -z "$RANLIB" && RANLIB=:
4991 test -z "$STRIP" && STRIP=:
4992 test -z "$ac_objext" && ac_objext=o
4994 if test x"$host" != x"$build"; then
4995 ac_tool_prefix=${host_alias}-
5000 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5003 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5008 # AIX sometimes has problems with the GCC collect2 program. For some
5009 # reason, if we set the COLLECT_NAMES environment variable, the problems
5010 # vanish in a puff of smoke.
5011 if test "X${COLLECT_NAMES+set}" != Xset; then
5013 export COLLECT_NAMES
5018 # Determine commands to create old-style static archives.
5019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5020 old_postinstall_cmds='chmod 644 $oldlib'
5021 old_postuninstall_cmds=
5023 if test -n "$RANLIB"; then
5026 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5029 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5035 # Allow CC to be a program name with arguments.
5039 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5040 echo "configure:5041: checking for objdir" >&5
5041 rm -f .libs 2>/dev/null
5042 mkdir .libs 2>/dev/null
5043 if test -d .libs; then
5046 # MS-DOS does not allow filenames that begin with a dot.
5049 rmdir .libs 2>/dev/null
5050 echo "$ac_t""$objdir" 1>&6
5053 # Check whether --with-pic or --without-pic was given.
5054 if test "${with_pic+set}" = set; then
5061 test -z "$pic_mode" && pic_mode=default
5063 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5064 # in isolation, and that seeing it set (from the cache) indicates that
5065 # the associated values are set (in the cache) correctly too.
5066 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5067 echo "configure:5068: checking for $compiler option to produce PIC" >&5
5068 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5072 lt_cv_prog_cc_shlib=
5074 lt_cv_prog_cc_static=
5075 lt_cv_prog_cc_no_builtin=
5076 lt_cv_prog_cc_can_build_shared=$can_build_shared
5078 if test "$GCC" = yes; then
5079 lt_cv_prog_cc_wl='-Wl,'
5080 lt_cv_prog_cc_static='-static'
5084 # Below there is a dirty hack to force normal static linking with -ldl
5085 # The problem is because libdl dynamically linked with both libc and
5086 # libC (AIX C++ library), which obviously doesn't included in libraries
5087 # list by gcc. This cause undefined symbols with -static flags.
5088 # This hack allows C programs to be linked with "-static -ldl", but
5089 # not sure about C++ programs.
5090 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5093 # FIXME: we need at least 68020 code to build shared libraries, but
5094 # adding the `-m68020' flag to GCC prevents building anything better,
5096 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5098 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5099 # PIC is the default for these OSes.
5101 darwin* | rhapsody*)
5102 # PIC is the default on this platform
5103 # Common symbols not allowed in MH_DYLIB files
5104 lt_cv_prog_cc_pic='-fno-common'
5106 cygwin* | mingw* | pw32* | os2*)
5107 # This hack is so that the source file can tell whether it is being
5108 # built for inclusion in a dll (and should export symbols for example).
5109 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5112 if test -d /usr/nec; then
5113 lt_cv_prog_cc_pic=-Kconform_pic
5117 lt_cv_prog_cc_pic='-fPIC'
5121 # PORTME Check for PIC flags for the system compiler.
5123 aix3* | aix4* | aix5*)
5124 lt_cv_prog_cc_wl='-Wl,'
5125 # All AIX code is PIC.
5126 if test "$host_cpu" = ia64; then
5127 # AIX 5 now supports IA64 processor
5128 lt_cv_prog_cc_static='-Bstatic'
5130 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5134 hpux9* | hpux10* | hpux11*)
5135 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5136 lt_cv_prog_cc_wl='-Wl,'
5137 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5138 lt_cv_prog_cc_pic='+Z'
5141 irix5* | irix6* | nonstopux*)
5142 lt_cv_prog_cc_wl='-Wl,'
5143 lt_cv_prog_cc_static='-non_shared'
5144 # PIC (with -KPIC) is the default.
5147 cygwin* | mingw* | pw32* | os2*)
5148 # This hack is so that the source file can tell whether it is being
5149 # built for inclusion in a dll (and should export symbols for example).
5150 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5154 lt_cv_prog_cc_pic='-KPIC'
5155 lt_cv_prog_cc_static='-Bstatic'
5159 # XPLINK code is PIC by default
5162 osf3* | osf4* | osf5*)
5163 # All OSF/1 code is PIC.
5164 lt_cv_prog_cc_wl='-Wl,'
5165 lt_cv_prog_cc_static='-non_shared'
5169 lt_cv_prog_cc_pic='-Kpic'
5170 lt_cv_prog_cc_static='-dn'
5171 lt_cv_prog_cc_shlib='-belf'
5175 lt_cv_prog_cc_pic='-KPIC'
5176 lt_cv_prog_cc_static='-Bstatic'
5177 lt_cv_prog_cc_wl='-Wl,'
5181 lt_cv_prog_cc_pic='-PIC'
5182 lt_cv_prog_cc_static='-Bstatic'
5183 lt_cv_prog_cc_wl='-Qoption ld '
5186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5187 lt_cv_prog_cc_pic='-KPIC'
5188 lt_cv_prog_cc_static='-Bstatic'
5189 lt_cv_prog_cc_wl='-Wl,'
5193 lt_cv_prog_cc_pic='-pic'
5194 lt_cv_prog_cc_static='-Bstatic'
5198 if test -d /usr/nec ;then
5199 lt_cv_prog_cc_pic='-Kconform_pic'
5200 lt_cv_prog_cc_static='-Bstatic'
5205 lt_cv_prog_cc_can_build_shared=no
5212 if test -z "$lt_cv_prog_cc_pic"; then
5213 echo "$ac_t""none" 1>&6
5215 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5217 # Check to make sure the pic_flag actually works.
5218 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5219 echo "configure:5220: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5220 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5223 save_CFLAGS="$CFLAGS"
5224 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5225 cat > conftest.$ac_ext <<EOF
5226 #line 5227 "configure"
5227 #include "confdefs.h"
5233 if { (eval echo configure:5234: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5236 hpux9* | hpux10* | hpux11*)
5237 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5238 # they create non-PIC objects. So, if there were any warnings, we
5239 # assume that PIC is not supported.
5240 if test -s conftest.err; then
5241 lt_cv_prog_cc_pic_works=no
5243 lt_cv_prog_cc_pic_works=yes
5247 lt_cv_prog_cc_pic_works=yes
5252 echo "configure: failed program was:" >&5
5253 cat conftest.$ac_ext >&5
5255 lt_cv_prog_cc_pic_works=no
5259 CFLAGS="$save_CFLAGS"
5264 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5266 lt_cv_prog_cc_can_build_shared=no
5268 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5271 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5274 # Check for any special shared library compilation flags.
5275 if test -n "$lt_cv_prog_cc_shlib"; then
5276 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5277 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5279 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5280 lt_cv_prog_cc_can_build_shared=no
5284 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5285 echo "configure:5286: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5286 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5287 echo $ac_n "(cached) $ac_c" 1>&6
5289 lt_cv_prog_cc_static_works=no
5290 save_LDFLAGS="$LDFLAGS"
5291 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5302 lt_cv_prog_cc_static_works=yes
5304 echo "configure: failed program was:" >&5
5305 cat conftest.$ac_ext >&5
5308 LDFLAGS="$save_LDFLAGS"
5313 # Belt *and* braces to stop my trousers falling down:
5314 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5315 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5317 pic_flag="$lt_cv_prog_cc_pic"
5318 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5319 wl="$lt_cv_prog_cc_wl"
5320 link_static_flag="$lt_cv_prog_cc_static"
5321 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5322 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5325 # Check to see if options -o and -c are simultaneously supported by compiler
5326 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5327 echo "configure:5328: checking if $compiler supports -c -o file.$ac_objext" >&5
5328 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5329 echo $ac_n "(cached) $ac_c" 1>&6
5332 $rm -r conftest 2>/dev/null
5335 echo "int some_variable = 0;" > conftest.$ac_ext
5337 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5338 # that will create temporary files in the current directory regardless of
5339 # the output directory. Thus, making CWD read-only will cause this test
5340 # to fail, enabling locking or at least warning the user not to do parallel
5343 save_CFLAGS="$CFLAGS"
5344 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5346 if { (eval echo configure:5347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5347 # The compiler can only warn and ignore the option if not recognized
5348 # So say no if there are warnings
5349 if test -s out/conftest.err; then
5350 lt_cv_compiler_c_o=no
5352 lt_cv_compiler_c_o=yes
5355 # Append any errors to the config.log.
5356 cat out/conftest.err 1>&5
5357 lt_cv_compiler_c_o=no
5359 CFLAGS="$save_CFLAGS"
5365 $rm -r conftest 2>/dev/null
5369 compiler_c_o=$lt_cv_compiler_c_o
5370 echo "$ac_t""$compiler_c_o" 1>&6
5372 if test x"$compiler_c_o" = x"yes"; then
5373 # Check to see if we can write to a .lo
5374 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5375 echo "configure:5376: checking if $compiler supports -c -o file.lo" >&5
5376 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5380 lt_cv_compiler_o_lo=no
5381 save_CFLAGS="$CFLAGS"
5382 CFLAGS="$CFLAGS -c -o conftest.lo"
5383 save_objext="$ac_objext"
5385 cat > conftest.$ac_ext <<EOF
5386 #line 5387 "configure"
5387 #include "confdefs.h"
5390 int some_variable = 0;
5393 if { (eval echo configure:5394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5395 # The compiler can only warn and ignore the option if not recognized
5396 # So say no if there are warnings
5397 if test -s conftest.err; then
5398 lt_cv_compiler_o_lo=no
5400 lt_cv_compiler_o_lo=yes
5404 echo "configure: failed program was:" >&5
5405 cat conftest.$ac_ext >&5
5408 ac_objext="$save_objext"
5409 CFLAGS="$save_CFLAGS"
5413 compiler_o_lo=$lt_cv_compiler_o_lo
5414 echo "$ac_t""$compiler_o_lo" 1>&6
5419 # Check to see if we can do hard links to lock some files if needed
5420 hard_links="nottested"
5421 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5422 # do not overwrite the value of need_locks provided by the user
5423 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5424 echo "configure:5425: checking if we can lock with hard links" >&5
5427 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5429 ln conftest.a conftest.b 2>&5 || hard_links=no
5430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5431 echo "$ac_t""$hard_links" 1>&6
5432 if test "$hard_links" = no; then
5433 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5440 if test "$GCC" = yes; then
5441 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5442 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5443 echo "configure:5444: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5444 echo "int some_variable = 0;" > conftest.$ac_ext
5445 save_CFLAGS="$CFLAGS"
5446 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5447 compiler_rtti_exceptions=no
5448 cat > conftest.$ac_ext <<EOF
5449 #line 5450 "configure"
5450 #include "confdefs.h"
5453 int some_variable = 0;
5456 if { (eval echo configure:5457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5458 # The compiler can only warn and ignore the option if not recognized
5459 # So say no if there are warnings
5460 if test -s conftest.err; then
5461 compiler_rtti_exceptions=no
5463 compiler_rtti_exceptions=yes
5467 echo "configure: failed program was:" >&5
5468 cat conftest.$ac_ext >&5
5471 CFLAGS="$save_CFLAGS"
5472 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5474 if test "$compiler_rtti_exceptions" = "yes"; then
5475 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5477 no_builtin_flag=' -fno-builtin'
5481 # See if the linker supports building shared libraries.
5482 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5483 echo "configure:5484: checking whether the linker ($LD) supports shared libraries" >&5
5485 allow_undefined_flag=
5487 need_lib_prefix=unknown
5488 need_version=unknown
5489 # when you set need_version to no, make sure it does not cause -set_version
5490 # flags to be left without arguments
5492 archive_expsym_cmds=
5493 old_archive_from_new_cmds=
5494 old_archive_from_expsyms_cmds=
5495 export_dynamic_flag_spec=
5496 whole_archive_flag_spec=
5497 thread_safe_flag_spec=
5498 hardcode_into_libs=no
5499 hardcode_libdir_flag_spec=
5500 hardcode_libdir_separator=
5503 hardcode_shlibpath_var=unsupported
5505 link_all_deplibs=unknown
5506 always_export_symbols=no
5507 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5508 # include_expsyms should be a list of space-separated symbols to be *always*
5509 # included in the symbol list
5511 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5512 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5513 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5514 # as well as any symbol that contains `d'.
5515 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5516 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5517 # platforms (ab)use it in PIC code, but their linkers get confused if
5518 # the symbol is explicitly referenced. Since portable code cannot
5519 # rely on this symbol name, it's probably fine to never include it in
5520 # preloaded symbol tables.
5521 extract_expsyms_cmds=
5524 cygwin* | mingw* | pw32*)
5525 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5526 # When not using gcc, we currently assume that we are using
5527 # Microsoft Visual C++.
5528 if test "$GCC" != yes; then
5538 if test "$with_gnu_ld" = yes; then
5539 # If archive_cmds runs LD, not CC, wlarc should be empty
5542 # See if GNU ld supports shared libraries.
5544 aix3* | aix4* | aix5*)
5545 # On AIX, the GNU linker is very broken
5546 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5550 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5551 *** to be unable to reliably create shared libraries on AIX.
5552 *** Therefore, libtool is disabling shared libraries support. If you
5553 *** really care for shared libraries, you may want to modify your PATH
5554 *** so that a non-GNU linker is found, and then restart.
5560 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)'
5561 hardcode_libdir_flag_spec='-L$libdir'
5562 hardcode_minus_L=yes
5564 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5565 # that the semantics of dynamic libraries on AmigaOS, at least up
5566 # to version 4, is to share data among multiple programs linked
5567 # with the same dynamic library. Since this doesn't match the
5568 # behavior of shared libraries on other platforms, we can use
5574 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5575 allow_undefined_flag=unsupported
5576 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5577 # support --undefined. This deserves some investigation. FIXME
5578 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5584 cygwin* | mingw* | pw32*)
5585 # hardcode_libdir_flag_spec is actually meaningless, as there is
5586 # no search path for DLLs.
5587 hardcode_libdir_flag_spec='-L$libdir'
5588 allow_undefined_flag=unsupported
5589 always_export_symbols=yes
5591 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5592 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5593 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5594 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5595 else $CC -o impgen impgen.c ; fi)~
5596 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5598 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5600 # cygwin and mingw dlls have different entry points and sets of symbols
5602 # FIXME: what about values for MSVC?
5603 dll_entry=__cygwin_dll_entry@12
5604 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5608 dll_entry=_DllMainCRTStartup@12
5609 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5613 # mingw and cygwin differ, and it's simplest to just exclude the union
5614 # of the two symbol sets.
5615 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5617 # recent cygwin and mingw systems supply a stub DllMain which the user
5618 # can override, but on older systems we have to supply one (in ltdll.c)
5619 if test "x$lt_cv_need_dllmain" = "xyes"; then
5620 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5621 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~
5622 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5628 # Extract the symbol export list from an `--export-all' def file,
5629 # then regenerate the def file from the symbol export list, so that
5630 # the compiled dll only exports the symbol export list.
5631 # Be careful not to strip the DATA tag left be newer dlltools.
5632 export_symbols_cmds="$ltdll_cmds"'
5633 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5634 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5636 # If the export-symbols file already is a .def file (1st line
5637 # is EXPORTS), use it as is.
5638 # If DATA tags from a recent dlltool are present, honour them!
5639 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5640 cp $export_symbols $output_objdir/$soname-def;
5642 echo EXPORTS > $output_objdir/$soname-def;
5644 cat $export_symbols | while read symbol; do
5647 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5648 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5649 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5651 _lt_hint=`expr 1 + \$_lt_hint`;
5655 $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~
5656 $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~
5657 $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~
5658 $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~
5659 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5663 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5664 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5667 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5668 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5673 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5677 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5678 *** create shared libraries on Solaris systems. Therefore, libtool
5679 *** is disabling shared libraries support. We urge you to upgrade GNU
5680 *** binutils to release 2.9.1 or newer. Another option is to modify
5681 *** your PATH or compiler configuration so that the native linker is
5682 *** used, and then restart.
5685 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5694 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5697 hardcode_shlibpath_var=no
5701 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5710 if test "$ld_shlibs" = yes; then
5711 runpath_var=LD_RUN_PATH
5712 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5713 export_dynamic_flag_spec='${wl}--export-dynamic'
5715 cygwin* | mingw* | pw32*)
5716 # dlltool doesn't understand --whole-archive et. al.
5717 whole_archive_flag_spec=
5720 # ancient GNU ld didn't support --whole-archive et. al.
5721 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5722 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5724 whole_archive_flag_spec=
5730 # PORTME fill in a description of your system's linker (not GNU ld)
5733 allow_undefined_flag=unsupported
5734 always_export_symbols=yes
5735 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'
5736 # Note: this linker hardcodes the directories in LIBPATH if there
5737 # are no directories specified by -L.
5738 hardcode_minus_L=yes
5739 if test "$GCC" = yes && test -z "$link_static_flag"; then
5740 # Neither direct hardcoding nor static linking is supported with a
5742 hardcode_direct=unsupported
5747 if test "$host_cpu" = ia64; then
5748 # On IA64, the linker does run time linking by default, so we don't
5749 # have to do anything special.
5750 aix_use_runtimelinking=no
5751 exp_sym_flag='-Bexport'
5754 aix_use_runtimelinking=no
5756 # Test if we are trying to use run time linking or normal
5757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5758 # need to do runtime linking.
5759 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5760 for ld_flag in $LDFLAGS; do
5763 aix_use_runtimelinking=yes
5770 exp_sym_flag='-bexport'
5771 no_entry_flag='-bnoentry'
5774 # When large executables or shared objects are built, AIX ld can
5775 # have problems creating the table of contents. If linking a library
5776 # or program results in "error TOC overflow" add -mminimal-toc to
5777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5782 hardcode_libdir_separator=':'
5783 if test "$GCC" = yes; then
5784 case $host_os in aix4.[012]|aix4.[012].*)
5785 collect2name=`${CC} -print-prog-name=collect2`
5786 if test -f "$collect2name" && \
5787 strings "$collect2name" | grep resolve_lib_name >/dev/null
5789 # We have reworked collect2
5792 # We have old collect2
5793 hardcode_direct=unsupported
5794 # It fails to find uninstalled libraries when the uninstalled
5795 # path is not listed in the libpath. Setting hardcode_minus_L
5796 # to unsupported forces relinking
5797 hardcode_minus_L=yes
5798 hardcode_libdir_flag_spec='-L$libdir'
5799 hardcode_libdir_separator=
5803 shared_flag='-shared'
5806 if test "$host_cpu" = ia64; then
5807 shared_flag='${wl}-G'
5809 if test "$aix_use_runtimelinking" = yes; then
5810 shared_flag='${wl}-G'
5812 shared_flag='${wl}-bM:SRE'
5817 # It seems that -bexpall can do strange things, so it is better to
5818 # generate a list of symbols to export.
5819 always_export_symbols=yes
5820 if test "$aix_use_runtimelinking" = yes; then
5821 # Warning - without using the other runtime loading flags (-brtl),
5822 # -berok will link without error, but may produce a broken library.
5823 allow_undefined_flag='-berok'
5824 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5825 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"
5827 if test "$host_cpu" = ia64; then
5828 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5829 allow_undefined_flag="-z nodefs"
5830 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"
5832 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5833 # Warning - without using the other run time loading flags,
5834 # -berok will link without error, but may produce a broken library.
5835 allow_undefined_flag='${wl}-berok'
5836 # This is a bit strange, but is similar to how AIX traditionally builds
5837 # it's shared libraries.
5838 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'
5844 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)'
5845 hardcode_libdir_flag_spec='-L$libdir'
5846 hardcode_minus_L=yes
5847 # see comment about different semantics on the GNU ld section
5851 cygwin* | mingw* | pw32*)
5852 # When not using gcc, we currently assume that we are using
5853 # Microsoft Visual C++.
5854 # hardcode_libdir_flag_spec is actually meaningless, as there is
5855 # no search path for DLLs.
5856 hardcode_libdir_flag_spec=' '
5857 allow_undefined_flag=unsupported
5858 # Tell ltmain to make .lib files, not .a files.
5860 # FIXME: Setting linknames here is a bad hack.
5861 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5862 # The linker will automatically build a .lib file if we build a DLL.
5863 old_archive_from_new_cmds='true'
5864 # FIXME: Should let the user specify the lib program.
5865 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5866 fix_srcfile_path='`cygpath -w "$srcfile"`'
5869 darwin* | rhapsody*)
5871 rhapsody* | darwin1.[012])
5872 allow_undefined_flag='-undefined suppress'
5875 allow_undefined_flag='-flat_namespace -undefined suppress'
5878 # FIXME: Relying on posixy $() will cause problems for
5879 # cross-compilation, but unfortunately the echo tests do not
5880 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5881 # `"' quotes if we put them in here... so don't!
5882 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5883 # We need to add '_' to the symbols in $export_symbols first
5884 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5886 hardcode_shlibpath_var=no
5887 whole_archive_flag_spec='-all_load $convenience'
5894 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5895 # support. Future versions do this automatically, but an explicit c++rt0.o
5896 # does not break anything, and helps significantly (at the cost of a little
5899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5900 hardcode_libdir_flag_spec='-R$libdir'
5902 hardcode_shlibpath_var=no
5905 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5909 hardcode_minus_L=yes
5910 hardcode_shlibpath_var=no
5913 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5915 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5916 hardcode_libdir_flag_spec='-R$libdir'
5918 hardcode_shlibpath_var=no
5921 hpux9* | hpux10* | hpux11*)
5923 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' ;;
5924 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5927 hardcode_libdir_separator=:
5929 hardcode_minus_L=yes # Not in the search PATH, but as the default
5930 # location of the library.
5931 export_dynamic_flag_spec='${wl}-E'
5934 irix5* | irix6* | nonstopux*)
5935 if test "$GCC" = yes; then
5936 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'
5937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5939 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'
5940 hardcode_libdir_flag_spec='-rpath $libdir'
5942 hardcode_libdir_separator=:
5943 link_all_deplibs=yes
5947 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5950 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5952 hardcode_libdir_flag_spec='-R$libdir'
5954 hardcode_shlibpath_var=no
5958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5961 hardcode_libdir_separator=:
5962 hardcode_shlibpath_var=no
5967 hardcode_shlibpath_var=no
5968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5969 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5970 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5971 export_dynamic_flag_spec='${wl}-E'
5974 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5976 hardcode_libdir_flag_spec='-R$libdir'
5979 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5980 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5987 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5988 cp \$linknames \$output_objdir && linknames=''"
5989 export_dynamic_flag_spec="-Wl,DLL"
5993 hardcode_libdir_flag_spec='-L$libdir'
5994 hardcode_minus_L=yes
5995 allow_undefined_flag=unsupported
5996 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'
5997 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6001 if test "$GCC" = yes; then
6002 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6003 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'
6005 allow_undefined_flag=' -expect_unresolved \*'
6006 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'
6008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6009 hardcode_libdir_separator=:
6012 osf4* | osf5*) # as osf3* with the addition of -msym flag
6013 if test "$GCC" = yes; then
6014 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6015 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'
6016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6018 allow_undefined_flag=' -expect_unresolved \*'
6019 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'
6020 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6021 $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'
6023 #Both c and cxx compiler support -rpath directly
6024 hardcode_libdir_flag_spec='-rpath $libdir'
6026 hardcode_libdir_separator=:
6030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6031 hardcode_shlibpath_var=no
6032 runpath_var=LD_RUN_PATH
6033 hardcode_runpath_var=yes
6034 export_dynamic_flag_spec='${wl}-Bexport'
6038 # gcc --version < 3.0 without binutils cannot create self contained
6039 # shared libraries reliably, requiring libgcc.a to resolve some of
6040 # the object symbols generated in some cases. Libraries that use
6041 # assert need libgcc.a to resolve __eprintf, for example. Linking
6042 # a copy of libgcc.a into every shared library to guarantee resolving
6043 # such symbols causes other problems: According to Tim Van Holder
6044 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6045 # (to the application) exception stack for one thing.
6046 no_undefined_flag=' -z defs'
6047 if test "$GCC" = yes; then
6048 case `$CC --version 2>/dev/null` in
6052 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6053 *** create self contained shared libraries on Solaris systems, without
6054 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6055 *** -no-undefined support, which will at least allow you to build shared
6056 *** libraries. However, you may find that when you link such libraries
6057 *** into an application without using GCC, you have to manually add
6058 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6059 *** upgrade to a newer version of GCC. Another option is to rebuild your
6060 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6067 # $CC -shared without GNU ld will not create a library from C++
6068 # object files and a static libstdc++, better avoid it by now
6069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6070 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6072 hardcode_libdir_flag_spec='-R$libdir'
6073 hardcode_shlibpath_var=no
6075 solaris2.[0-5] | solaris2.[0-5].*) ;;
6076 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6077 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6079 link_all_deplibs=yes
6083 if test "x$host_vendor" = xsequent; then
6084 # Use $CC to link under sequent, because it throws in some extra .o
6085 # files that make .init and .fini sections work.
6086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6090 hardcode_libdir_flag_spec='-L$libdir'
6092 hardcode_minus_L=yes
6093 hardcode_shlibpath_var=no
6097 case $host_vendor in
6099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6100 hardcode_direct=yes # is this really true???
6103 ## LD is ld it makes a PLAMLIB
6104 ## CC just makes a GrossModule.
6105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6106 reload_cmds='$CC -r -o $output$reload_objs'
6110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6114 runpath_var='LD_RUN_PATH'
6115 hardcode_shlibpath_var=no
6119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6120 hardcode_shlibpath_var=no
6121 export_dynamic_flag_spec='-Bexport'
6125 no_undefined_flag=' -z text'
6126 # $CC -shared without GNU ld will not create a library from C++
6127 # object files and a static libstdc++, better avoid it by now
6128 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6129 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6130 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6131 hardcode_libdir_flag_spec=
6132 hardcode_shlibpath_var=no
6133 runpath_var='LD_RUN_PATH'
6137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6138 hardcode_libdir_flag_spec='-L$libdir'
6139 hardcode_shlibpath_var=no
6143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6144 hardcode_libdir_flag_spec='-L$libdir'
6145 hardcode_shlibpath_var=no
6149 if test -d /usr/nec; then
6150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6151 hardcode_shlibpath_var=no
6152 runpath_var=LD_RUN_PATH
6153 hardcode_runpath_var=yes
6159 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6162 hardcode_shlibpath_var=no
6163 hardcode_runpath_var=yes
6164 runpath_var=LD_RUN_PATH
6167 sysv5uw7* | unixware7*)
6168 no_undefined_flag='${wl}-z ${wl}text'
6169 if test "$GCC" = yes; then
6170 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6172 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6174 runpath_var='LD_RUN_PATH'
6175 hardcode_shlibpath_var=no
6183 echo "$ac_t""$ld_shlibs" 1>&6
6184 test "$ld_shlibs" = no && can_build_shared=no
6186 # Check hardcoding attributes.
6187 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6188 echo "configure:6189: checking how to hardcode library paths into programs" >&5
6190 if test -n "$hardcode_libdir_flag_spec" || \
6191 test -n "$runpath_var"; then
6193 # We can hardcode non-existant directories.
6194 if test "$hardcode_direct" != no &&
6195 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6196 # have to relink, otherwise we might link with an installed library
6197 # when we should be linking with a yet-to-be-installed one
6198 ## test "$hardcode_shlibpath_var" != no &&
6199 test "$hardcode_minus_L" != no; then
6200 # Linking always hardcodes the temporary library directory.
6201 hardcode_action=relink
6203 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6204 hardcode_action=immediate
6207 # We cannot hardcode anything, or else we can only hardcode existing
6209 hardcode_action=unsupported
6211 echo "$ac_t""$hardcode_action" 1>&6
6215 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6216 echo "configure:6217: checking whether stripping libraries is possible" >&5
6217 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6218 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6219 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6220 echo "$ac_t""yes" 1>&6
6222 echo "$ac_t""no" 1>&6
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6228 # PORTME Fill in your ld.so characteristics
6229 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6230 echo "configure:6231: checking dynamic linker characteristics" >&5
6232 libname_spec='lib$name'
6239 shlibpath_overrides_runpath=unknown
6241 dynamic_linker="$host_os ld.so"
6242 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6243 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6248 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6249 shlibpath_var=LIBPATH
6251 # AIX has no versioning support, so we append a major version to the name.
6252 soname_spec='${libname}${release}.so$major'
6259 hardcode_into_libs=yes
6260 if test "$host_cpu" = ia64; then
6261 # AIX 5 supports IA64
6262 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6263 shlibpath_var=LD_LIBRARY_PATH
6265 # With GCC up to 2.95.x, collect2 would create an import file
6266 # for dependence libraries. The import file would start with
6267 # the line `#! .'. This would cause the generated library to
6268 # depend on `.', always an invalid library. This was fixed in
6269 # development snapshots of GCC prior to 3.0.
6271 aix4 | aix4.[01] | aix4.[01].*)
6272 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6274 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6281 # AIX (on Power*) has no versioning support, so currently we can
6282 # not hardcode correct soname into executable. Probably we can
6283 # add versioning support to collect2, so additional links can
6284 # be useful in future.
6285 if test "$aix_use_runtimelinking" = yes; then
6286 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6287 # instead of lib<name>.a to let people know that these are not
6288 # typical AIX shared libraries.
6289 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6291 # We preserve .a as extension for shared libraries through AIX4.2
6292 # and later when we are not doing run time linking.
6293 library_names_spec='${libname}${release}.a $libname.a'
6294 soname_spec='${libname}${release}.so$major'
6296 shlibpath_var=LIBPATH
6298 hardcode_into_libs=yes
6302 library_names_spec='$libname.ixlibrary $libname.a'
6303 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6304 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'
6308 library_names_spec='${libname}.so'
6309 dynamic_linker="$host_os ld.so"
6310 shlibpath_var=LIBRARY_PATH
6316 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6317 soname_spec='${libname}${release}.so$major'
6318 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6319 shlibpath_var=LD_LIBRARY_PATH
6320 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6321 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6322 export_dynamic_flag_spec=-rdynamic
6323 # the default ld.so.conf also contains /usr/contrib/lib and
6324 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6325 # libtool to hard-code these into programs
6328 cygwin* | mingw* | pw32*)
6329 version_type=windows
6332 case $GCC,$host_os in
6334 library_names_spec='$libname.dll.a'
6335 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6336 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6337 dldir=$destdir/`dirname \$dlpath`~
6338 test -d \$dldir || mkdir -p \$dldir~
6339 $install_prog .libs/$dlname \$dldir/$dlname'
6340 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6341 dlpath=$dir/\$dldll~
6345 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6346 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6349 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6352 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6355 dynamic_linker='Win32 ld.exe'
6356 # FIXME: first we should search . and the directory the executable is in
6360 darwin* | rhapsody*)
6361 dynamic_linker="$host_os dyld"
6365 # FIXME: Relying on posixy $() will cause problems for
6366 # cross-compilation, but unfortunately the echo tests do not
6367 # yet detect zsh echo's removal of \ escapes.
6368 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)'
6369 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6370 shlibpath_overrides_runpath=yes
6371 shlibpath_var=DYLD_LIBRARY_PATH
6379 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6380 version_type=freebsd-$objformat
6381 case $version_type in
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6388 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6392 shlibpath_var=LD_LIBRARY_PATH
6395 shlibpath_overrides_runpath=yes
6398 shlibpath_overrides_runpath=no
6399 hardcode_into_libs=yes
6408 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6409 soname_spec='${libname}${release}.so$major'
6410 shlibpath_var=LD_LIBRARY_PATH
6411 hardcode_into_libs=yes
6414 hpux9* | hpux10* | hpux11*)
6415 # Give a soname corresponding to the major version so that dld.sl refuses to
6416 # link against other versions.
6417 dynamic_linker="$host_os dld.sl"
6421 shlibpath_var=SHLIB_PATH
6422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6423 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6424 soname_spec='${libname}${release}.sl$major'
6425 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6426 postinstall_cmds='chmod 555 $lib'
6429 irix5* | irix6* | nonstopux*)
6431 nonstopux*) version_type=nonstopux ;;
6432 *) version_type=irix ;;
6436 soname_spec='${libname}${release}.so$major'
6437 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6439 irix5* | nonstopux*)
6443 case $LD in # libtool.m4 will add one of these switches to LD
6444 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6445 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6446 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6447 *) libsuff= shlibsuff= libmagic=never-match;;
6451 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6452 shlibpath_overrides_runpath=no
6453 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6454 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6457 # No shared lib support for Linux oldld, aout, or coff.
6458 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6462 # This must be Linux ELF.
6467 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6468 soname_spec='${libname}${release}.so$major'
6469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6470 shlibpath_var=LD_LIBRARY_PATH
6471 shlibpath_overrides_runpath=no
6472 # This implies no fast_install, which is unacceptable.
6473 # Some rework will be needed to allow for fast_install
6474 # before this can be enabled.
6475 hardcode_into_libs=yes
6477 # We used to test for /lib/ld.so.1 and disable shared libraries on
6478 # powerpc, because MkLinux only supported shared libraries with the
6479 # GNU dynamic linker. Since this was broken with cross compilers,
6480 # most powerpc-linux boxes support dynamic linking these days and
6481 # people can always --disable-shared, the test was removed, and we
6482 # assume the GNU/Linux dynamic linker is in use.
6483 dynamic_linker='GNU/Linux ld.so'
6490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6491 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6493 dynamic_linker='NetBSD (a.out) ld.so'
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6496 soname_spec='${libname}${release}.so$major'
6497 dynamic_linker='NetBSD ld.elf_so'
6499 shlibpath_var=LD_LIBRARY_PATH
6500 shlibpath_overrides_runpath=yes
6501 hardcode_into_libs=yes
6506 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6507 shlibpath_var=LD_LIBRARY_PATH
6508 shlibpath_overrides_runpath=yes
6515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6517 openbsd2.[89] | openbsd2.[89].*)
6518 shlibpath_overrides_runpath=no
6521 shlibpath_overrides_runpath=yes
6525 shlibpath_overrides_runpath=yes
6527 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6529 shlibpath_var=LD_LIBRARY_PATH
6535 shlibpath_overrides_runpath=yes
6536 shlibpath_var=LIBPATH
6537 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6538 # the library's exports are in libname.x; this is the file that must
6539 # actually be linked with to use a DLL.
6540 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6544 libname_spec='$name'
6546 library_names_spec='$libname.dll $libname.a'
6547 dynamic_linker='OS/2 ld.exe'
6548 shlibpath_var=LIBPATH
6551 osf3* | osf4* | osf5*)
6554 soname_spec='${libname}${release}.so$major'
6555 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6556 shlibpath_var=LD_LIBRARY_PATH
6557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6559 hardcode_into_libs=yes
6564 soname_spec='${libname}${release}.so$major'
6565 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6566 shlibpath_var=LD_LIBRARY_PATH
6573 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6574 soname_spec='${libname}${release}.so$major'
6575 shlibpath_var=LD_LIBRARY_PATH
6576 shlibpath_overrides_runpath=yes
6577 hardcode_into_libs=yes
6578 # ldd complains unless libraries are executable
6579 postinstall_cmds='chmod +x $lib'
6584 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6586 shlibpath_var=LD_LIBRARY_PATH
6587 shlibpath_overrides_runpath=yes
6588 if test "$with_gnu_ld" = yes; then
6594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6596 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6597 soname_spec='${libname}${release}.so$major'
6598 shlibpath_var=LD_LIBRARY_PATH
6599 case $host_vendor in
6601 shlibpath_overrides_runpath=no
6603 export_dynamic_flag_spec='${wl}-Blargedynsym'
6604 runpath_var=LD_RUN_PATH
6612 shlibpath_overrides_runpath=no
6613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6620 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6621 soname_spec='${libname}${release}.so$major'
6622 shlibpath_var=LD_LIBRARY_PATH
6629 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6630 soname_spec='${libname}${release}.so$major'
6631 shlibpath_var=LD_LIBRARY_PATH
6635 if test -d /usr/nec ;then
6637 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6638 soname_spec='$libname.so.$major'
6639 shlibpath_var=LD_LIBRARY_PATH
6647 echo "$ac_t""$dynamic_linker" 1>&6
6648 test "$dynamic_linker" = no && can_build_shared=no
6650 # Report the final consequences.
6651 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6652 echo "configure:6653: checking if libtool supports shared libraries" >&5
6653 echo "$ac_t""$can_build_shared" 1>&6
6655 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6656 echo "configure:6657: checking whether to build shared libraries" >&5
6657 test "$can_build_shared" = "no" && enable_shared=no
6659 # On AIX, shared libraries and static libraries use the same namespace, and
6660 # are all built from PIC.
6663 test "$enable_shared" = yes && enable_static=no
6664 if test -n "$RANLIB"; then
6665 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6666 postinstall_cmds='$RANLIB $lib'
6671 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6672 test "$enable_shared" = yes && enable_static=no
6676 echo "$ac_t""$enable_shared" 1>&6
6678 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6679 echo "configure:6680: checking whether to build static libraries" >&5
6680 # Make sure either enable_shared or enable_static is yes.
6681 test "$enable_shared" = yes || enable_static=yes
6682 echo "$ac_t""$enable_static" 1>&6
6684 if test "$hardcode_action" = relink; then
6685 # Fast installation is not supported
6686 enable_fast_install=no
6687 elif test "$shlibpath_overrides_runpath" = yes ||
6688 test "$enable_shared" = no; then
6689 # Fast installation is not necessary
6690 enable_fast_install=needless
6693 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6694 if test "$GCC" = yes; then
6695 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6698 if test "x$enable_dlopen" != xyes; then
6699 enable_dlopen=unknown
6700 enable_dlopen_self=unknown
6701 enable_dlopen_self_static=unknown
6708 lt_cv_dlopen="load_add_on"
6710 lt_cv_dlopen_self=yes
6713 cygwin* | mingw* | pw32*)
6714 lt_cv_dlopen="LoadLibrary"
6719 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6720 echo "configure:6721: checking for dllload" >&5
6721 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6722 echo $ac_n "(cached) $ac_c" 1>&6
6724 cat > conftest.$ac_ext <<EOF
6725 #line 6726 "configure"
6726 #include "confdefs.h"
6727 /* System header to define __stub macros and hopefully few prototypes,
6728 which can conflict with char dllload(); below. */
6730 /* Override any gcc2 internal prototype to avoid an error. */
6731 /* We use char because int might match the return type of a gcc2
6732 builtin and then its argument prototype would still apply. */
6738 /* The GNU C library defines this for functions which it implements
6739 to always fail with ENOSYS. Some functions are actually named
6740 something starting with __ and the normal name is an alias. */
6741 #if defined (__stub_dllload) || defined (__stub___dllload)
6749 if { (eval echo configure:6750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6751 eval "ac_cv_func_dllload=yes"
6753 echo "configure: failed program was:" >&5
6754 cat conftest.$ac_ext >&5
6756 eval "ac_cv_func_dllload=no"
6761 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6762 echo "$ac_t""yes" 1>&6
6763 lt_cv_dlopen="dllload"
6765 echo "$ac_t""no" 1>&6
6766 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6767 echo "configure:6768: checking for shl_load" >&5
6768 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6769 echo $ac_n "(cached) $ac_c" 1>&6
6771 cat > conftest.$ac_ext <<EOF
6772 #line 6773 "configure"
6773 #include "confdefs.h"
6774 /* System header to define __stub macros and hopefully few prototypes,
6775 which can conflict with char shl_load(); below. */
6777 /* Override any gcc2 internal prototype to avoid an error. */
6778 /* We use char because int might match the return type of a gcc2
6779 builtin and then its argument prototype would still apply. */
6785 /* The GNU C library defines this for functions which it implements
6786 to always fail with ENOSYS. Some functions are actually named
6787 something starting with __ and the normal name is an alias. */
6788 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6796 if { (eval echo configure:6797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6798 eval "ac_cv_func_shl_load=yes"
6800 echo "configure: failed program was:" >&5
6801 cat conftest.$ac_ext >&5
6803 eval "ac_cv_func_shl_load=no"
6808 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6809 echo "$ac_t""yes" 1>&6
6810 lt_cv_dlopen="shl_load"
6812 echo "$ac_t""no" 1>&6
6813 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6814 echo "configure:6815: checking for shl_load in -ldld" >&5
6815 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6816 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6817 echo $ac_n "(cached) $ac_c" 1>&6
6819 ac_save_LIBS="$LIBS"
6821 cat > conftest.$ac_ext <<EOF
6822 #line 6823 "configure"
6823 #include "confdefs.h"
6824 /* Override any gcc2 internal prototype to avoid an error. */
6825 /* We use char because int might match the return type of a gcc2
6826 builtin and then its argument prototype would still apply. */
6833 if { (eval echo configure:6834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6835 eval "ac_cv_lib_$ac_lib_var=yes"
6837 echo "configure: failed program was:" >&5
6838 cat conftest.$ac_ext >&5
6840 eval "ac_cv_lib_$ac_lib_var=no"
6843 LIBS="$ac_save_LIBS"
6846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6847 echo "$ac_t""yes" 1>&6
6848 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6850 echo "$ac_t""no" 1>&6
6851 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6852 echo "configure:6853: checking for dlopen" >&5
6853 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char dlopen(); below. */
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6870 /* The GNU C library defines this for functions which it implements
6871 to always fail with ENOSYS. Some functions are actually named
6872 something starting with __ and the normal name is an alias. */
6873 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6881 if { (eval echo configure:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6883 eval "ac_cv_func_dlopen=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.$ac_ext >&5
6888 eval "ac_cv_func_dlopen=no"
6893 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6894 echo "$ac_t""yes" 1>&6
6895 lt_cv_dlopen="dlopen"
6897 echo "$ac_t""no" 1>&6
6898 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6899 echo "configure:6900: checking for dlopen in -ldl" >&5
6900 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6901 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6902 echo $ac_n "(cached) $ac_c" 1>&6
6904 ac_save_LIBS="$LIBS"
6906 cat > conftest.$ac_ext <<EOF
6907 #line 6908 "configure"
6908 #include "confdefs.h"
6909 /* Override any gcc2 internal prototype to avoid an error. */
6910 /* We use char because int might match the return type of a gcc2
6911 builtin and then its argument prototype would still apply. */
6918 if { (eval echo configure:6919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6920 eval "ac_cv_lib_$ac_lib_var=yes"
6922 echo "configure: failed program was:" >&5
6923 cat conftest.$ac_ext >&5
6925 eval "ac_cv_lib_$ac_lib_var=no"
6928 LIBS="$ac_save_LIBS"
6931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6932 echo "$ac_t""yes" 1>&6
6933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6935 echo "$ac_t""no" 1>&6
6936 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6937 echo "configure:6938: checking for dlopen in -lsvld" >&5
6938 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6939 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6940 echo $ac_n "(cached) $ac_c" 1>&6
6942 ac_save_LIBS="$LIBS"
6944 cat > conftest.$ac_ext <<EOF
6945 #line 6946 "configure"
6946 #include "confdefs.h"
6947 /* Override any gcc2 internal prototype to avoid an error. */
6948 /* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
6956 if { (eval echo configure:6957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6958 eval "ac_cv_lib_$ac_lib_var=yes"
6960 echo "configure: failed program was:" >&5
6961 cat conftest.$ac_ext >&5
6963 eval "ac_cv_lib_$ac_lib_var=no"
6966 LIBS="$ac_save_LIBS"
6969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6970 echo "$ac_t""yes" 1>&6
6971 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6973 echo "$ac_t""no" 1>&6
6974 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6975 echo "configure:6976: checking for dld_link in -ldld" >&5
6976 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6977 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6978 echo $ac_n "(cached) $ac_c" 1>&6
6980 ac_save_LIBS="$LIBS"
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6985 /* Override any gcc2 internal prototype to avoid an error. */
6986 /* We use char because int might match the return type of a gcc2
6987 builtin and then its argument prototype would still apply. */
6994 if { (eval echo configure:6995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6996 eval "ac_cv_lib_$ac_lib_var=yes"
6998 echo "configure: failed program was:" >&5
6999 cat conftest.$ac_ext >&5
7001 eval "ac_cv_lib_$ac_lib_var=no"
7004 LIBS="$ac_save_LIBS"
7007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7008 echo "$ac_t""yes" 1>&6
7009 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7011 echo "$ac_t""no" 1>&6
7035 if test "x$lt_cv_dlopen" != xno; then
7041 case $lt_cv_dlopen in
7043 save_CPPFLAGS="$CPPFLAGS"
7044 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7046 save_LDFLAGS="$LDFLAGS"
7047 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7050 LIBS="$lt_cv_dlopen_libs $LIBS"
7052 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7053 echo "configure:7054: checking whether a program can dlopen itself" >&5
7054 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7055 echo $ac_n "(cached) $ac_c" 1>&6
7057 if test "$cross_compiling" = yes; then :
7058 lt_cv_dlopen_self=cross
7060 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7061 lt_status=$lt_dlunknown
7062 cat > conftest.$ac_ext <<EOF
7063 #line 7064 "configure"
7064 #include "confdefs.h"
7073 # define LT_DLGLOBAL RTLD_GLOBAL
7076 # define LT_DLGLOBAL DL_GLOBAL
7078 # define LT_DLGLOBAL 0
7082 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7083 find out it does not work in some platform. */
7084 #ifndef LT_DLLAZY_OR_NOW
7086 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7089 # define LT_DLLAZY_OR_NOW DL_LAZY
7092 # define LT_DLLAZY_OR_NOW RTLD_NOW
7095 # define LT_DLLAZY_OR_NOW DL_NOW
7097 # define LT_DLLAZY_OR_NOW 0
7105 extern "C" void exit (int);
7108 void fnord() { int i=42;}
7111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7112 int status = $lt_dlunknown;
7116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7117 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7118 /* dlclose (self); */
7124 if { (eval echo configure:7125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7125 (./conftest; exit; ) 2>/dev/null
7128 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7129 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7130 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7133 # compilation failed
7134 lt_cv_dlopen_self=no
7142 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7144 if test "x$lt_cv_dlopen_self" = xyes; then
7145 LDFLAGS="$LDFLAGS $link_static_flag"
7146 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7147 echo "configure:7148: checking whether a statically linked program can dlopen itself" >&5
7148 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7149 echo $ac_n "(cached) $ac_c" 1>&6
7151 if test "$cross_compiling" = yes; then :
7152 lt_cv_dlopen_self_static=cross
7154 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7155 lt_status=$lt_dlunknown
7156 cat > conftest.$ac_ext <<EOF
7157 #line 7158 "configure"
7158 #include "confdefs.h"
7167 # define LT_DLGLOBAL RTLD_GLOBAL
7170 # define LT_DLGLOBAL DL_GLOBAL
7172 # define LT_DLGLOBAL 0
7176 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7177 find out it does not work in some platform. */
7178 #ifndef LT_DLLAZY_OR_NOW
7180 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7183 # define LT_DLLAZY_OR_NOW DL_LAZY
7186 # define LT_DLLAZY_OR_NOW RTLD_NOW
7189 # define LT_DLLAZY_OR_NOW DL_NOW
7191 # define LT_DLLAZY_OR_NOW 0
7199 extern "C" void exit (int);
7202 void fnord() { int i=42;}
7205 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7206 int status = $lt_dlunknown;
7210 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7211 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7212 /* dlclose (self); */
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7219 (./conftest; exit; ) 2>/dev/null
7222 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7223 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7224 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7227 # compilation failed
7228 lt_cv_dlopen_self_static=no
7236 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7239 CPPFLAGS="$save_CPPFLAGS"
7240 LDFLAGS="$save_LDFLAGS"
7245 case $lt_cv_dlopen_self in
7246 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7247 *) enable_dlopen_self=unknown ;;
7250 case $lt_cv_dlopen_self_static in
7251 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7252 *) enable_dlopen_self_static=unknown ;;
7257 if test "$enable_shared" = yes && test "$GCC" = yes; then
7258 case $archive_cmds in
7260 # FIXME: we may have to deal with multi-command sequences.
7263 # Test whether the compiler implicitly links with -lc since on some
7264 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7265 # to ld, don't add -lc before -lgcc.
7266 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7267 echo "configure:7268: checking whether -lc should be explicitly linked in" >&5
7268 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7269 echo $ac_n "(cached) $ac_c" 1>&6
7272 echo 'static int dummy;' > conftest.$ac_ext
7274 if { (eval echo configure:7275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7277 libobjs=conftest.$ac_objext
7279 wl=$lt_cv_prog_cc_wl
7285 save_allow_undefined_flag=$allow_undefined_flag
7286 allow_undefined_flag=
7287 if { (eval echo configure:7288: \"$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; }
7289 lt_cv_archive_cmds_need_lc=no
7291 lt_cv_archive_cmds_need_lc=yes
7293 allow_undefined_flag=$save_allow_undefined_flag
7295 cat conftest.err 1>&5
7299 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7303 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7305 # The second clause should only fire when bootstrapping the
7306 # libtool distribution, otherwise you forgot to ship ltmain.sh
7307 # with your package, and you will get complaints that there are
7308 # no rules to generate ltmain.sh.
7309 if test -f "$ltmain"; then
7312 # If there is no Makefile yet, we rely on a make rule to execute
7313 # `config.status --recheck' to rerun these tests and create the
7314 # libtool script then.
7315 test -f Makefile && make "$ltmain"
7318 if test -f "$ltmain"; then
7319 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7322 echo creating $ofile
7324 # Now quote all the things that may contain metacharacters while being
7325 # careful not to overquote the AC_SUBSTed values. We take copies of the
7326 # variables and quote the copies for generation of the libtool script.
7327 for var in echo old_CC old_CFLAGS SED \
7328 AR AR_FLAGS CC LD LN_S NM SHELL \
7329 reload_flag reload_cmds wl \
7330 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7331 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7332 library_names_spec soname_spec \
7333 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7334 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7335 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7336 old_striplib striplib file_magic_cmd export_symbols_cmds \
7337 deplibs_check_method allow_undefined_flag no_undefined_flag \
7338 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7339 global_symbol_to_c_name_address \
7340 hardcode_libdir_flag_spec hardcode_libdir_separator \
7341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7342 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7345 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7346 old_postinstall_cmds | old_postuninstall_cmds | \
7347 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7348 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7349 postinstall_cmds | postuninstall_cmds | \
7350 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7351 # Double-quote double-evaled strings.
7352 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7355 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7360 cat <<__EOF__ > "${ofile}T"
7363 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7364 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7365 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7367 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7368 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7370 # This program is free software; you can redistribute it and/or modify
7371 # it under the terms of the GNU General Public License as published by
7372 # the Free Software Foundation; either version 2 of the License, or
7373 # (at your option) any later version.
7375 # This program is distributed in the hope that it will be useful, but
7376 # WITHOUT ANY WARRANTY; without even the implied warranty of
7377 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7378 # General Public License for more details.
7380 # You should have received a copy of the GNU General Public License
7381 # along with this program; if not, write to the Free Software
7382 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7384 # As a special exception to the GNU General Public License, if you
7385 # distribute this file as part of a program that contains a
7386 # configuration script generated by Autoconf, you may include it under
7387 # the same distribution terms that you use for the rest of that program.
7389 # A sed that does not truncate output.
7392 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7393 Xsed="${SED} -e s/^X//"
7395 # The HP-UX ksh and POSIX shell print the target directory to stdout
7397 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7399 # ### BEGIN LIBTOOL CONFIG
7401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7403 # Shell to use when invoking shell scripts.
7406 # Whether or not to build shared libraries.
7407 build_libtool_libs=$enable_shared
7409 # Whether or not to build static libraries.
7410 build_old_libs=$enable_static
7412 # Whether or not to add -lc for building shared libraries.
7413 build_libtool_need_lc=$need_lc
7415 # Whether or not to optimize for fast installation.
7416 fast_install=$enable_fast_install
7419 host_alias=$host_alias
7422 # An echo program that does not interpret backslashes.
7427 AR_FLAGS=$lt_AR_FLAGS
7429 # The default C compiler.
7432 # Is the compiler the GNU C compiler?
7435 # The linker used to build libraries.
7438 # Whether we need hard or soft links.
7441 # A BSD-compatible nm program.
7444 # A symbol stripping program
7447 # Used to examine libraries when file_magic_cmd begins "file"
7448 MAGIC_CMD=$MAGIC_CMD
7450 # Used on cygwin: DLL creation program.
7453 # Used on cygwin: object dumper.
7456 # Used on cygwin: assembler.
7459 # The name of the directory that contains temporary libtool files.
7462 # How to create reloadable object files.
7463 reload_flag=$lt_reload_flag
7464 reload_cmds=$lt_reload_cmds
7466 # How to pass a linker flag through the compiler.
7469 # Object file suffix (normally "o").
7472 # Old archive suffix (normally "a").
7475 # Executable file suffix (normally "").
7478 # Additional compiler flags for building library objects.
7479 pic_flag=$lt_pic_flag
7482 # Does compiler simultaneously support -c and -o options?
7483 compiler_c_o=$lt_compiler_c_o
7485 # Can we write directly to a .lo ?
7486 compiler_o_lo=$lt_compiler_o_lo
7488 # Must we lock files when doing compilation ?
7489 need_locks=$lt_need_locks
7491 # Do we need the lib prefix for modules?
7492 need_lib_prefix=$need_lib_prefix
7494 # Do we need a version for libraries?
7495 need_version=$need_version
7497 # Whether dlopen is supported.
7498 dlopen_support=$enable_dlopen
7500 # Whether dlopen of programs is supported.
7501 dlopen_self=$enable_dlopen_self
7503 # Whether dlopen of statically linked programs is supported.
7504 dlopen_self_static=$enable_dlopen_self_static
7506 # Compiler flag to prevent dynamic linking.
7507 link_static_flag=$lt_link_static_flag
7509 # Compiler flag to turn off builtin functions.
7510 no_builtin_flag=$lt_no_builtin_flag
7512 # Compiler flag to allow reflexive dlopens.
7513 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7515 # Compiler flag to generate shared objects directly from archives.
7516 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7518 # Compiler flag to generate thread-safe objects.
7519 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7521 # Library versioning type.
7522 version_type=$version_type
7524 # Format of library name prefix.
7525 libname_spec=$lt_libname_spec
7527 # List of archive names. First name is the real one, the rest are links.
7528 # The last name is the one that the linker finds with -lNAME.
7529 library_names_spec=$lt_library_names_spec
7531 # The coded name of the library, if different from the real name.
7532 soname_spec=$lt_soname_spec
7534 # Commands used to build and install an old-style archive.
7536 old_archive_cmds=$lt_old_archive_cmds
7537 old_postinstall_cmds=$lt_old_postinstall_cmds
7538 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7540 # Create an old-style archive from a shared archive.
7541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7543 # Create a temporary old-style archive to link instead of a shared archive.
7544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7546 # Commands used to build and install a shared archive.
7547 archive_cmds=$lt_archive_cmds
7548 archive_expsym_cmds=$lt_archive_expsym_cmds
7549 postinstall_cmds=$lt_postinstall_cmds
7550 postuninstall_cmds=$lt_postuninstall_cmds
7552 # Commands to strip libraries.
7553 old_striplib=$lt_old_striplib
7554 striplib=$lt_striplib
7556 # Method to check whether dependent libraries are shared objects.
7557 deplibs_check_method=$lt_deplibs_check_method
7559 # Command to use when deplibs_check_method == file_magic.
7560 file_magic_cmd=$lt_file_magic_cmd
7562 # Flag that allows shared libraries with undefined symbols to be built.
7563 allow_undefined_flag=$lt_allow_undefined_flag
7565 # Flag that forces no undefined symbols.
7566 no_undefined_flag=$lt_no_undefined_flag
7568 # Commands used to finish a libtool library installation in a directory.
7569 finish_cmds=$lt_finish_cmds
7571 # Same as above, but a single script fragment to be evaled but not shown.
7572 finish_eval=$lt_finish_eval
7574 # Take the output of nm and produce a listing of raw symbols and C names.
7575 global_symbol_pipe=$lt_global_symbol_pipe
7577 # Transform the output of nm in a proper C declaration
7578 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7580 # Transform the output of nm in a C name address pair
7581 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7583 # This is the shared library runtime path variable.
7584 runpath_var=$runpath_var
7586 # This is the shared library path variable.
7587 shlibpath_var=$shlibpath_var
7589 # Is shlibpath searched before the hard-coded library search path?
7590 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7592 # How to hardcode a shared library path into an executable.
7593 hardcode_action=$hardcode_action
7595 # Whether we should hardcode library paths into libraries.
7596 hardcode_into_libs=$hardcode_into_libs
7598 # Flag to hardcode \$libdir into a binary during linking.
7599 # This must work even if \$libdir does not exist.
7600 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7602 # Whether we need a single -rpath flag with a separated argument.
7603 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7605 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7607 hardcode_direct=$hardcode_direct
7609 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7611 hardcode_minus_L=$hardcode_minus_L
7613 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7614 # the resulting binary.
7615 hardcode_shlibpath_var=$hardcode_shlibpath_var
7617 # Variables whose values should be saved in libtool wrapper scripts and
7618 # restored at relink time.
7619 variables_saved_for_relink="$variables_saved_for_relink"
7621 # Whether libtool must link a program against all its dependency libraries.
7622 link_all_deplibs=$link_all_deplibs
7624 # Compile-time system search path for libraries
7625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7627 # Run-time system search path for libraries
7628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7630 # Fix the shell variable \$srcfile for the compiler.
7631 fix_srcfile_path="$fix_srcfile_path"
7633 # Set to yes if exported symbols are required.
7634 always_export_symbols=$always_export_symbols
7636 # The commands to list exported symbols.
7637 export_symbols_cmds=$lt_export_symbols_cmds
7639 # The commands to extract the exported symbol list from a shared archive.
7640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7642 # Symbols that should not be listed in the preloaded symbols.
7643 exclude_expsyms=$lt_exclude_expsyms
7645 # Symbols that must always be exported.
7646 include_expsyms=$lt_include_expsyms
7648 # ### END LIBTOOL CONFIG
7654 cat <<\EOF >> "${ofile}T"
7656 # AIX sometimes has problems with the GCC collect2 program. For some
7657 # reason, if we set the COLLECT_NAMES environment variable, the problems
7658 # vanish in a puff of smoke.
7659 if test "X${COLLECT_NAMES+set}" != Xset; then
7661 export COLLECT_NAMES
7668 cygwin* | mingw* | pw32* | os2*)
7669 cat <<'EOF' >> "${ofile}T"
7670 # This is a source program that is used to create dlls on Windows
7671 # Don't remove nor modify the starting and closing comments
7672 # /* ltdll.c starts here */
7673 # #define WIN32_LEAN_AND_MEAN
7674 # #include <windows.h>
7675 # #undef WIN32_LEAN_AND_MEAN
7676 # #include <stdio.h>
7678 # #ifndef __CYGWIN__
7679 # # ifdef __CYGWIN32__
7680 # # define __CYGWIN__ __CYGWIN32__
7684 # #ifdef __cplusplus
7687 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7688 # #ifdef __cplusplus
7693 # #include <cygwin/cygwin_dll.h>
7694 # DECLARE_CYGWIN_DLL( DllMain );
7696 # HINSTANCE __hDllInstance_base;
7699 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7701 # __hDllInstance_base = hInst;
7704 # /* ltdll.c ends here */
7705 # This is a source program that is used to create import libraries
7706 # on Windows for dlls which lack them. Don't remove nor modify the
7707 # starting and closing comments
7708 # /* impgen.c starts here */
7709 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7711 # This file is part of GNU libtool.
7713 # This program is free software; you can redistribute it and/or modify
7714 # it under the terms of the GNU General Public License as published by
7715 # the Free Software Foundation; either version 2 of the License, or
7716 # (at your option) any later version.
7718 # This program is distributed in the hope that it will be useful,
7719 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7720 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7721 # GNU General Public License for more details.
7723 # You should have received a copy of the GNU General Public License
7724 # along with this program; if not, write to the Free Software
7725 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7728 # #include <stdio.h> /* for printf() */
7729 # #include <unistd.h> /* for open(), lseek(), read() */
7730 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7731 # #include <string.h> /* for strdup() */
7733 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7735 # #define O_BINARY 0
7738 # static unsigned int
7739 # pe_get16 (fd, offset)
7743 # unsigned char b[2];
7744 # lseek (fd, offset, SEEK_SET);
7746 # return b[0] + (b[1]<<8);
7749 # static unsigned int
7750 # pe_get32 (fd, offset)
7754 # unsigned char b[4];
7755 # lseek (fd, offset, SEEK_SET);
7757 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7760 # static unsigned int
7764 # unsigned char *b = ptr;
7765 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7774 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7775 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7776 # unsigned long name_rvas, nexp;
7777 # unsigned char *expdata, *erva;
7778 # char *filename, *dll_name;
7780 # filename = argv[1];
7782 # dll = open(filename, O_RDONLY|O_BINARY);
7786 # dll_name = filename;
7788 # for (i=0; filename[i]; i++)
7789 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7790 # dll_name = filename + i +1;
7792 # pe_header_offset = pe_get32 (dll, 0x3c);
7793 # opthdr_ofs = pe_header_offset + 4 + 20;
7794 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7796 # if (num_entries < 1) /* no exports */
7799 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7800 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7801 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7802 # secptr = (pe_header_offset + 4 + 20 +
7803 # pe_get16 (dll, pe_header_offset + 4 + 16));
7806 # for (i = 0; i < nsections; i++)
7809 # unsigned long secptr1 = secptr + 40 * i;
7810 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7811 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7812 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7813 # lseek(dll, secptr1, SEEK_SET);
7814 # read(dll, sname, 8);
7815 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7817 # expptr = fptr + (export_rva - vaddr);
7818 # if (export_rva + export_size > vaddr + vsize)
7819 # export_size = vsize - (export_rva - vaddr);
7824 # expdata = (unsigned char*)malloc(export_size);
7825 # lseek (dll, expptr, SEEK_SET);
7826 # read (dll, expdata, export_size);
7827 # erva = expdata - export_rva;
7829 # nexp = pe_as32 (expdata+24);
7830 # name_rvas = pe_as32 (expdata+32);
7832 # printf ("EXPORTS\n");
7833 # for (i = 0; i<nexp; i++)
7835 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7836 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7841 # /* impgen.c ends here */
7847 # We use sed instead of cat because bash on DJGPP gets confused if
7848 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7849 # text mode, it properly converts lines to CR/LF. This bash problem
7850 # is reportedly fixed, but why not run on old versions too?
7851 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7853 mv -f "${ofile}T" "$ofile" || \
7854 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7862 # This can be used to rebuild libtool when needed
7863 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7865 # Always use our own libtool.
7866 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7868 # Prevent multiple expansion
7872 # test for ln hardlink support
7873 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7874 echo "configure:7875: checking whether ln works" >&5
7875 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 rm -f conftest.src conftest.dst
7879 echo "conftest" > conftest.src
7880 if ln conftest.src conftest.dst 2>/dev/null
7882 ol_cv_prog_LN_H="ln"
7884 ol_cv_prog_LN_H="cp"
7886 rm -f conftest.src conftest.dst
7889 LN_H="$ol_cv_prog_LN_H"
7890 if test "$ol_cv_prog_LN_H" = "ln"; then
7891 echo "$ac_t""yes" 1>&6
7893 echo "$ac_t""no" 1>&6
7896 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7897 echo "configure:7898: checking whether ln -s works" >&5
7898 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7899 echo $ac_n "(cached) $ac_c" 1>&6
7902 if ln -s X conftestdata 2>/dev/null
7905 ac_cv_prog_LN_S="ln -s"
7910 LN_S="$ac_cv_prog_LN_S"
7911 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7912 echo "$ac_t""yes" 1>&6
7914 echo "$ac_t""no" 1>&6
7919 if test $ol_enable_perl != no ; then
7920 # Extract the first word of "perl", so it can be a program name with args.
7921 set dummy perl; ac_word=$2
7922 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7923 echo "configure:7924: checking for $ac_word" >&5
7924 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7929 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7932 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7937 for ac_dir in $ac_dummy; do
7938 test -z "$ac_dir" && ac_dir=.
7939 if test -f $ac_dir/$ac_word; then
7940 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7945 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7949 PERLBIN="$ac_cv_path_PERLBIN"
7950 if test -n "$PERLBIN"; then
7951 echo "$ac_t""$PERLBIN" 1>&6
7953 echo "$ac_t""no" 1>&6
7957 if test "no$PERLBIN" = "no" ; then
7958 if test $ol_enable_perl = yes ; then
7959 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7963 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7964 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7966 if test x"$ol_with_perl_module" = "xstatic" ; then
7967 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7969 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7975 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7976 echo "configure:7977: checking how to run the C preprocessor" >&5
7977 # On Suns, sometimes $CPP names a directory.
7978 if test -n "$CPP" && test -d "$CPP"; then
7981 if test -z "$CPP"; then
7982 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7985 # This must be in double quotes, not single quotes, because CPP may get
7986 # substituted into the Makefile and "${CC-cc}" will confuse make.
7988 # On the NeXT, cc -E runs the code through the compiler's parser,
7989 # not just through cpp.
7990 cat > conftest.$ac_ext <<EOF
7991 #line 7992 "configure"
7992 #include "confdefs.h"
7996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7997 { (eval echo configure:7998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7999 if test -z "$ac_err"; then
8003 echo "configure: failed program was:" >&5
8004 cat conftest.$ac_ext >&5
8006 CPP="${CC-cc} -E -traditional-cpp"
8007 cat > conftest.$ac_ext <<EOF
8008 #line 8009 "configure"
8009 #include "confdefs.h"
8013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8014 { (eval echo configure:8015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8016 if test -z "$ac_err"; then
8020 echo "configure: failed program was:" >&5
8021 cat conftest.$ac_ext >&5
8023 CPP="${CC-cc} -nologo -E"
8024 cat > conftest.$ac_ext <<EOF
8025 #line 8026 "configure"
8026 #include "confdefs.h"
8030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8031 { (eval echo configure:8032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8033 if test -z "$ac_err"; then
8037 echo "configure: failed program was:" >&5
8038 cat conftest.$ac_ext >&5
8047 ac_cv_prog_CPP="$CPP"
8049 CPP="$ac_cv_prog_CPP"
8051 ac_cv_prog_CPP="$CPP"
8053 echo "$ac_t""$CPP" 1>&6
8056 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
8057 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
8059 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
8060 echo "configure: warning: programs compiled here do run here..." 1>&2
8061 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
8063 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
8064 echo "configure: warning: programs compiled here do not run here..." 1>&2
8065 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
8069 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8070 echo "configure:8071: checking for Cygwin environment" >&5
8071 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8072 echo $ac_n "(cached) $ac_c" 1>&6
8074 cat > conftest.$ac_ext <<EOF
8075 #line 8076 "configure"
8076 #include "confdefs.h"
8081 #define __CYGWIN__ __CYGWIN32__
8086 if { (eval echo configure:8087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8090 echo "configure: failed program was:" >&5
8091 cat conftest.$ac_ext >&5
8098 echo "$ac_t""$ac_cv_cygwin" 1>&6
8100 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8101 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8102 echo "configure:8103: checking for mingw32 environment" >&5
8103 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8104 echo $ac_n "(cached) $ac_c" 1>&6
8106 cat > conftest.$ac_ext <<EOF
8107 #line 8108 "configure"
8108 #include "confdefs.h"
8114 if { (eval echo configure:8115: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8118 echo "configure: failed program was:" >&5
8119 cat conftest.$ac_ext >&5
8126 echo "$ac_t""$ac_cv_mingw32" 1>&6
8128 test "$ac_cv_mingw32" = yes && MINGW32=yes
8132 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8133 echo "configure:8134: checking for executable suffix" >&5
8134 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8135 echo $ac_n "(cached) $ac_c" 1>&6
8137 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8141 echo 'int main () { return 0; }' > conftest.$ac_ext
8143 if { (eval echo configure:8144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8144 for file in conftest.*; do
8146 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8147 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8151 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8154 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8159 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8160 echo "$ac_t""${ac_cv_exeext}" 1>&6
8163 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8164 echo "configure:8165: checking for object suffix" >&5
8165 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8169 echo 'int i = 1;' > conftest.$ac_ext
8170 if { (eval echo configure:8171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8171 for ac_file in conftest.*; do
8174 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8178 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8183 echo "$ac_t""$ac_cv_objext" 1>&6
8184 OBJEXT=$ac_cv_objext
8185 ac_objext=$ac_cv_objext
8188 cat >> confdefs.h <<EOF
8189 #define EXEEXT "${EXEEXT}"
8193 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8194 echo "configure:8195: checking for be_app in -lbe" >&5
8195 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8197 echo $ac_n "(cached) $ac_c" 1>&6
8199 ac_save_LIBS="$LIBS"
8200 LIBS="-lbe -lroot -lnet $LIBS"
8201 cat > conftest.$ac_ext <<EOF
8202 #line 8203 "configure"
8203 #include "confdefs.h"
8204 /* Override any gcc2 internal prototype to avoid an error. */
8205 /* We use char because int might match the return type of a gcc2
8206 builtin and then its argument prototype would still apply. */
8213 if { (eval echo configure:8214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8215 eval "ac_cv_lib_$ac_lib_var=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 eval "ac_cv_lib_$ac_lib_var=no"
8223 LIBS="$ac_save_LIBS"
8226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 LIBS="$LIBS -lbe -lroot -lnet"
8230 echo "$ac_t""no" 1>&6
8238 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8239 echo "configure:8240: checking for ${CC-cc} option to accept ANSI C" >&5
8240 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8241 echo $ac_n "(cached) $ac_c" 1>&6
8243 am_cv_prog_cc_stdc=no
8245 # Don't try gcc -ansi; that turns off useful extensions and
8246 # breaks some systems' header files.
8247 # AIX -qlanglvl=ansi
8248 # Ultrix and OSF/1 -std1
8249 # HP-UX 10.20 and later -Ae
8250 # HP-UX older versions -Aa -D_HPUX_SOURCE
8251 # SVR4 -Xc -D__EXTENSIONS__
8252 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8254 CC="$ac_save_CC $ac_arg"
8255 cat > conftest.$ac_ext <<EOF
8256 #line 8257 "configure"
8257 #include "confdefs.h"
8260 #include <sys/types.h>
8261 #include <sys/stat.h>
8262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8263 struct buf { int x; };
8264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8265 static char *e (p, i)
8271 static char *f (char * (*g) (char **, int), char **p, ...)
8276 s = g (p, va_arg (v,int));
8280 int test (int i, double x);
8281 struct s1 {int (*f) (int a);};
8282 struct s2 {int (*f) (double a);};
8283 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8289 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8293 if { (eval echo configure:8294: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8295 am_cv_prog_cc_stdc="$ac_arg"; break
8297 echo "configure: failed program was:" >&5
8298 cat conftest.$ac_ext >&5
8306 if test -z "$am_cv_prog_cc_stdc"; then
8307 echo "$ac_t""none needed" 1>&6
8309 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8311 case "x$am_cv_prog_cc_stdc" in
8313 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8316 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8317 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8320 # test for make depend flag
8323 if test -z "${MKDEP}"; then
8325 if test -z "${MKDEP_FLAGS}"; then
8326 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8327 echo "configure:8328: checking for ${OL_MKDEP} depend flag" >&5
8328 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8329 echo $ac_n "(cached) $ac_c" 1>&6
8333 for flag in "-M" "-xM"; do
8334 cat > conftest.c <<EOF
8337 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8338 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8340 if test ! -f conftest."${ac_object}" ; then
8342 OL_MKDEP_FLAGS="$flag"
8351 echo "$ac_t""$ol_cv_mkdep" 1>&6
8354 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8359 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8364 if test "${ol_cv_mkdep}" = no ; then
8365 # this will soon become an error
8366 echo "configure: warning: do not know how to generate dependencies" 1>&2
8369 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8370 echo "configure:8371: checking for afopen in -ls" >&5
8371 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8373 echo $ac_n "(cached) $ac_c" 1>&6
8375 ac_save_LIBS="$LIBS"
8377 cat > conftest.$ac_ext <<EOF
8378 #line 8379 "configure"
8379 #include "confdefs.h"
8380 /* Override any gcc2 internal prototype to avoid an error. */
8381 /* We use char because int might match the return type of a gcc2
8382 builtin and then its argument prototype would still apply. */
8389 if { (eval echo configure:8390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8391 eval "ac_cv_lib_$ac_lib_var=yes"
8393 echo "configure: failed program was:" >&5
8394 cat conftest.$ac_ext >&5
8396 eval "ac_cv_lib_$ac_lib_var=no"
8399 LIBS="$ac_save_LIBS"
8402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8403 echo "$ac_t""yes" 1>&6
8406 cat >> confdefs.h <<\EOF
8407 #define HAVE_AIX_SECURITY 1
8412 echo "$ac_t""no" 1>&6
8418 ac_cv_func_getopt=no
8419 cat >> confdefs.h <<\EOF
8420 #define BOTH_STRINGS_H 1
8427 if test $ol_enable_modules != no ; then
8428 for ac_hdr in ltdl.h
8430 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8431 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8432 echo "configure:8433: checking for $ac_hdr" >&5
8433 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8434 echo $ac_n "(cached) $ac_c" 1>&6
8436 cat > conftest.$ac_ext <<EOF
8437 #line 8438 "configure"
8438 #include "confdefs.h"
8441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8442 { (eval echo configure:8443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8444 if test -z "$ac_err"; then
8446 eval "ac_cv_header_$ac_safe=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 eval "ac_cv_header_$ac_safe=no"
8456 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8457 echo "$ac_t""yes" 1>&6
8458 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8459 cat >> confdefs.h <<EOF
8460 #define $ac_tr_hdr 1
8464 echo "$ac_t""no" 1>&6
8469 if test $ac_cv_header_ltdl_h = no ; then
8470 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8473 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8474 echo "configure:8475: checking for lt_dlinit in -lltdl" >&5
8475 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8476 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8477 echo $ac_n "(cached) $ac_c" 1>&6
8479 ac_save_LIBS="$LIBS"
8481 cat > conftest.$ac_ext <<EOF
8482 #line 8483 "configure"
8483 #include "confdefs.h"
8484 /* Override any gcc2 internal prototype to avoid an error. */
8485 /* We use char because int might match the return type of a gcc2
8486 builtin and then its argument prototype would still apply. */
8493 if { (eval echo configure:8494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8495 eval "ac_cv_lib_$ac_lib_var=yes"
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8500 eval "ac_cv_lib_$ac_lib_var=no"
8503 LIBS="$ac_save_LIBS"
8506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8507 echo "$ac_t""yes" 1>&6
8510 cat >> confdefs.h <<\EOF
8511 #define HAVE_LIBLTDL 1
8516 echo "$ac_t""no" 1>&6
8520 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8521 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8525 ol_with_bdb_module=static
8526 ol_with_dnssrv_module=static
8527 ol_with_hdb_module=static
8528 ol_with_ldap_module=static
8529 ol_with_ldbm_module=static
8530 ol_with_meta_module=static
8531 ol_with_monitor_module=static
8532 ol_with_null_module=static
8533 ol_with_passwd_module=static
8534 ol_with_perl_module=static
8535 ol_with_shell_module=static
8536 ol_with_sql_module=static
8537 if test $ol_with_dyngroup = mod ; then
8538 echo "configure: warning: building static dyngroup overlay" 1>&2
8539 ol_with_dyngroup=yes
8541 if test $ol_with_proxycache = mod ; then
8542 echo "configure: warning: building static proxycache overlay" 1>&2
8543 ol_with_proxycache=yes
8545 if test $ol_with_rwm = mod ; then
8546 echo "configure: warning: building static rwm overlay" 1>&2
8552 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8553 echo "configure:8554: checking for EBCDIC" >&5
8554 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8558 cat > conftest.$ac_ext <<EOF
8559 #line 8560 "configure"
8560 #include "confdefs.h"
8563 #include <__ASCII__/generate_error.h>
8567 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8568 { (eval echo configure:8569: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8569 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8570 if test -z "$ac_err"; then
8572 ol_cv_cpp_ebcdic=yes
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8583 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8584 if test $ol_cv_cpp_ebcdic = yes ; then
8585 cat >> confdefs.h <<\EOF
8586 #define HAVE_EBCDIC 1
8591 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8592 echo "configure:8593: checking for ANSI C header files" >&5
8593 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8594 echo $ac_n "(cached) $ac_c" 1>&6
8596 cat > conftest.$ac_ext <<EOF
8597 #line 8598 "configure"
8598 #include "confdefs.h"
8604 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8605 { (eval echo configure:8606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8606 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8607 if test -z "$ac_err"; then
8609 ol_cv_header_stdc=yes
8612 echo "configure: failed program was:" >&5
8613 cat conftest.$ac_ext >&5
8615 ol_cv_header_stdc=no
8619 if test $ol_cv_header_stdc = yes; then
8620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8621 cat > conftest.$ac_ext <<EOF
8622 #line 8623 "configure"
8623 #include "confdefs.h"
8626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8627 egrep "memchr" >/dev/null 2>&1; then
8631 ol_cv_header_stdc=no
8637 if test $ol_cv_header_stdc = yes; then
8638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8639 cat > conftest.$ac_ext <<EOF
8640 #line 8641 "configure"
8641 #include "confdefs.h"
8644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8645 egrep "free" >/dev/null 2>&1; then
8649 ol_cv_header_stdc=no
8655 if test $ol_cv_header_stdc = yes; then
8656 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8657 if test "$cross_compiling" = yes; then
8660 cat > conftest.$ac_ext <<EOF
8661 #line 8662 "configure"
8662 #include "confdefs.h"
8665 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8666 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8668 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8669 || ('j' <= (c) && (c) <= 'r') \
8670 || ('s' <= (c) && (c) <= 'z'))
8671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8674 int main () { int i; for (i = 0; i < 256; i++)
8675 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8679 if { (eval echo configure:8680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8683 echo "configure: failed program was:" >&5
8684 cat conftest.$ac_ext >&5
8686 ol_cv_header_stdc=no
8694 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8695 if test $ol_cv_header_stdc = yes; then
8696 cat >> confdefs.h <<\EOF
8697 #define STDC_HEADERS 1
8701 ac_cv_header_stdc=disable
8704 if test $ol_cv_header_stdc != yes; then
8705 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8709 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8711 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8712 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8713 echo "configure:8714: checking for $ac_hdr that defines DIR" >&5
8714 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8715 echo $ac_n "(cached) $ac_c" 1>&6
8717 cat > conftest.$ac_ext <<EOF
8718 #line 8719 "configure"
8719 #include "confdefs.h"
8720 #include <sys/types.h>
8726 if { (eval echo configure:8727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8728 eval "ac_cv_header_dirent_$ac_safe=yes"
8730 echo "configure: failed program was:" >&5
8731 cat conftest.$ac_ext >&5
8733 eval "ac_cv_header_dirent_$ac_safe=no"
8737 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8738 echo "$ac_t""yes" 1>&6
8739 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8740 cat >> confdefs.h <<EOF
8741 #define $ac_tr_hdr 1
8743 ac_header_dirent=$ac_hdr; break
8745 echo "$ac_t""no" 1>&6
8748 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8749 if test $ac_header_dirent = dirent.h; then
8750 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8751 echo "configure:8752: checking for opendir in -ldir" >&5
8752 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8753 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8754 echo $ac_n "(cached) $ac_c" 1>&6
8756 ac_save_LIBS="$LIBS"
8758 cat > conftest.$ac_ext <<EOF
8759 #line 8760 "configure"
8760 #include "confdefs.h"
8761 /* Override any gcc2 internal prototype to avoid an error. */
8762 /* We use char because int might match the return type of a gcc2
8763 builtin and then its argument prototype would still apply. */
8770 if { (eval echo configure:8771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8772 eval "ac_cv_lib_$ac_lib_var=yes"
8774 echo "configure: failed program was:" >&5
8775 cat conftest.$ac_ext >&5
8777 eval "ac_cv_lib_$ac_lib_var=no"
8780 LIBS="$ac_save_LIBS"
8783 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8784 echo "$ac_t""yes" 1>&6
8787 echo "$ac_t""no" 1>&6
8791 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8792 echo "configure:8793: checking for opendir in -lx" >&5
8793 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8794 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8795 echo $ac_n "(cached) $ac_c" 1>&6
8797 ac_save_LIBS="$LIBS"
8799 cat > conftest.$ac_ext <<EOF
8800 #line 8801 "configure"
8801 #include "confdefs.h"
8802 /* Override any gcc2 internal prototype to avoid an error. */
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8811 if { (eval echo configure:8812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8813 eval "ac_cv_lib_$ac_lib_var=yes"
8815 echo "configure: failed program was:" >&5
8816 cat conftest.$ac_ext >&5
8818 eval "ac_cv_lib_$ac_lib_var=no"
8821 LIBS="$ac_save_LIBS"
8824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8825 echo "$ac_t""yes" 1>&6
8828 echo "$ac_t""no" 1>&6
8833 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8834 echo "configure:8835: checking for sys/wait.h that is POSIX.1 compatible" >&5
8835 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 #include <sys/types.h>
8842 #include <sys/wait.h>
8844 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8847 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8852 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8855 if { (eval echo configure:8856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8857 ac_cv_header_sys_wait_h=yes
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 ac_cv_header_sys_wait_h=no
8867 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8868 if test $ac_cv_header_sys_wait_h = yes; then
8869 cat >> confdefs.h <<\EOF
8870 #define HAVE_SYS_WAIT_H 1
8875 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8876 echo "configure:8877: checking POSIX termios" >&5
8877 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8880 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8883 #include <sys/types.h>
8885 #include <termios.h>
8887 /* SunOS 4.0.3 has termios.h but not the library calls. */
8891 if { (eval echo configure:8892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8893 am_cv_sys_posix_termios=yes
8895 echo "configure: failed program was:" >&5
8896 cat conftest.$ac_ext >&5
8898 am_cv_sys_posix_termios=no
8903 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8906 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8907 echo "configure:8908: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8908 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8909 echo $ac_n "(cached) $ac_c" 1>&6
8911 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8913 gwinsz_in_termios_h=no
8914 if test $am_cv_sys_posix_termios = yes; then
8915 cat > conftest.$ac_ext <<EOF
8916 #line 8917 "configure"
8917 #include "confdefs.h"
8918 #include <sys/types.h>
8919 # include <termios.h>
8925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8926 egrep "yes" >/dev/null 2>&1; then
8928 gwinsz_in_termios_h=yes
8934 if test $gwinsz_in_termios_h = no; then
8935 cat > conftest.$ac_ext <<EOF
8936 #line 8937 "configure"
8937 #include "confdefs.h"
8938 #include <sys/types.h>
8939 # include <sys/ioctl.h>
8945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8946 egrep "yes" >/dev/null 2>&1; then
8948 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8956 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8957 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8958 cat >> confdefs.h <<\EOF
8959 #define GWINSZ_IN_SYS_IOCTL 1
8964 if test $am_cv_sys_posix_termios = yes ; then
8965 cat >> confdefs.h <<\EOF
8966 #define HAVE_POSIX_TERMIOS 1
9022 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9023 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9024 echo "configure:9025: checking for $ac_hdr" >&5
9025 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9026 echo $ac_n "(cached) $ac_c" 1>&6
9028 cat > conftest.$ac_ext <<EOF
9029 #line 9030 "configure"
9030 #include "confdefs.h"
9033 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9034 { (eval echo configure:9035: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9035 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9036 if test -z "$ac_err"; then
9038 eval "ac_cv_header_$ac_safe=yes"
9041 echo "configure: failed program was:" >&5
9042 cat conftest.$ac_ext >&5
9044 eval "ac_cv_header_$ac_safe=no"
9048 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9049 echo "$ac_t""yes" 1>&6
9050 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9051 cat >> confdefs.h <<EOF
9052 #define $ac_tr_hdr 1
9056 echo "$ac_t""no" 1>&6
9063 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9064 echo "configure:9065: checking for sigset in -lV3" >&5
9065 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9066 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9067 echo $ac_n "(cached) $ac_c" 1>&6
9069 ac_save_LIBS="$LIBS"
9071 cat > conftest.$ac_ext <<EOF
9072 #line 9073 "configure"
9073 #include "confdefs.h"
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9083 if { (eval echo configure:9084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9085 eval "ac_cv_lib_$ac_lib_var=yes"
9087 echo "configure: failed program was:" >&5
9088 cat conftest.$ac_ext >&5
9090 eval "ac_cv_lib_$ac_lib_var=no"
9093 LIBS="$ac_save_LIBS"
9096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9097 echo "$ac_t""yes" 1>&6
9098 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9100 cat >> confdefs.h <<EOF
9101 #define $ac_tr_lib 1
9107 echo "$ac_t""no" 1>&6
9111 if test "$ac_cv_header_winsock_h" = yes; then
9112 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9113 echo "configure:9114: checking for winsock" >&5
9114 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9118 for curlib in ws2_32 wsock32; do
9119 LIBS="$LIBS -l$curlib"
9120 cat > conftest.$ac_ext <<EOF
9121 #line 9122 "configure"
9122 #include "confdefs.h"
9123 #include <winsock.h>
9128 select(0,NULL,NULL,NULL,NULL);
9130 gethostname(NULL,0);
9134 if { (eval echo configure:9135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9138 echo "configure: failed program was:" >&5
9139 cat conftest.$ac_ext >&5
9145 if test $ol_cv_winsock = yes; then
9146 cat >> confdefs.h <<\EOF
9147 #define HAVE_WINSOCK 1
9150 ac_cv_func_socket=yes
9151 ac_cv_func_select=yes
9152 ac_cv_func_closesocket=yes
9153 ac_cv_func_gethostname=yes
9154 if test $curlib = ws2_32; then
9155 ol_cv_winsock=winsock2
9156 cat >> confdefs.h <<\EOF
9157 #define HAVE_WINSOCK2 1
9167 echo "$ac_t""$ol_cv_winsock" 1>&6
9171 echo $ac_n "checking for socket""... $ac_c" 1>&6
9172 echo "configure:9173: checking for socket" >&5
9173 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9174 echo $ac_n "(cached) $ac_c" 1>&6
9176 cat > conftest.$ac_ext <<EOF
9177 #line 9178 "configure"
9178 #include "confdefs.h"
9179 /* System header to define __stub macros and hopefully few prototypes,
9180 which can conflict with char socket(); below. */
9182 /* Override any gcc2 internal prototype to avoid an error. */
9183 /* We use char because int might match the return type of a gcc2
9184 builtin and then its argument prototype would still apply. */
9190 /* The GNU C library defines this for functions which it implements
9191 to always fail with ENOSYS. Some functions are actually named
9192 something starting with __ and the normal name is an alias. */
9193 #if defined (__stub_socket) || defined (__stub___socket)
9201 if { (eval echo configure:9202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9203 eval "ac_cv_func_socket=yes"
9205 echo "configure: failed program was:" >&5
9206 cat conftest.$ac_ext >&5
9208 eval "ac_cv_func_socket=no"
9213 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9214 echo "$ac_t""yes" 1>&6
9217 echo "$ac_t""no" 1>&6
9219 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9220 echo "configure:9221: checking for main in -lsocket" >&5
9221 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9223 echo $ac_n "(cached) $ac_c" 1>&6
9225 ac_save_LIBS="$LIBS"
9226 LIBS="-lsocket $LIBS"
9227 cat > conftest.$ac_ext <<EOF
9228 #line 9229 "configure"
9229 #include "confdefs.h"
9235 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9237 eval "ac_cv_lib_$ac_lib_var=yes"
9239 echo "configure: failed program was:" >&5
9240 cat conftest.$ac_ext >&5
9242 eval "ac_cv_lib_$ac_lib_var=no"
9245 LIBS="$ac_save_LIBS"
9248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9249 echo "$ac_t""yes" 1>&6
9250 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9252 cat >> confdefs.h <<EOF
9253 #define $ac_tr_lib 1
9256 LIBS="-lsocket $LIBS"
9259 echo "$ac_t""no" 1>&6
9262 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9263 echo "configure:9264: checking for main in -lnet" >&5
9264 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9265 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9266 echo $ac_n "(cached) $ac_c" 1>&6
9268 ac_save_LIBS="$LIBS"
9270 cat > conftest.$ac_ext <<EOF
9271 #line 9272 "configure"
9272 #include "confdefs.h"
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280 eval "ac_cv_lib_$ac_lib_var=yes"
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 eval "ac_cv_lib_$ac_lib_var=no"
9288 LIBS="$ac_save_LIBS"
9291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9292 echo "$ac_t""yes" 1>&6
9293 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9294 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9295 cat >> confdefs.h <<EOF
9296 #define $ac_tr_lib 1
9302 echo "$ac_t""no" 1>&6
9305 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9306 echo "configure:9307: checking for main in -lnsl_s" >&5
9307 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9308 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9311 ac_save_LIBS="$LIBS"
9312 LIBS="-lnsl_s $LIBS"
9313 cat > conftest.$ac_ext <<EOF
9314 #line 9315 "configure"
9315 #include "confdefs.h"
9321 if { (eval echo configure:9322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9323 eval "ac_cv_lib_$ac_lib_var=yes"
9325 echo "configure: failed program was:" >&5
9326 cat conftest.$ac_ext >&5
9328 eval "ac_cv_lib_$ac_lib_var=no"
9331 LIBS="$ac_save_LIBS"
9334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9335 echo "$ac_t""yes" 1>&6
9336 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9337 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9338 cat >> confdefs.h <<EOF
9339 #define $ac_tr_lib 1
9342 LIBS="-lnsl_s $LIBS"
9345 echo "$ac_t""no" 1>&6
9348 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9349 echo "configure:9350: checking for main in -lnsl" >&5
9350 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9351 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9352 echo $ac_n "(cached) $ac_c" 1>&6
9354 ac_save_LIBS="$LIBS"
9356 cat > conftest.$ac_ext <<EOF
9357 #line 9358 "configure"
9358 #include "confdefs.h"
9364 if { (eval echo configure:9365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9366 eval "ac_cv_lib_$ac_lib_var=yes"
9368 echo "configure: failed program was:" >&5
9369 cat conftest.$ac_ext >&5
9371 eval "ac_cv_lib_$ac_lib_var=no"
9374 LIBS="$ac_save_LIBS"
9377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9378 echo "$ac_t""yes" 1>&6
9379 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9380 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9381 cat >> confdefs.h <<EOF
9382 #define $ac_tr_lib 1
9388 echo "$ac_t""no" 1>&6
9391 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9392 echo "configure:9393: checking for socket in -linet" >&5
9393 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9394 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9397 ac_save_LIBS="$LIBS"
9399 cat > conftest.$ac_ext <<EOF
9400 #line 9401 "configure"
9401 #include "confdefs.h"
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 eval "ac_cv_lib_$ac_lib_var=yes"
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9418 eval "ac_cv_lib_$ac_lib_var=no"
9421 LIBS="$ac_save_LIBS"
9424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9425 echo "$ac_t""yes" 1>&6
9426 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9427 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9428 cat >> confdefs.h <<EOF
9429 #define $ac_tr_lib 1
9435 echo "$ac_t""no" 1>&6
9438 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9439 echo "configure:9440: checking for main in -lgen" >&5
9440 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9441 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9442 echo $ac_n "(cached) $ac_c" 1>&6
9444 ac_save_LIBS="$LIBS"
9446 cat > conftest.$ac_ext <<EOF
9447 #line 9448 "configure"
9448 #include "confdefs.h"
9454 if { (eval echo configure:9455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9456 eval "ac_cv_lib_$ac_lib_var=yes"
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9461 eval "ac_cv_lib_$ac_lib_var=no"
9464 LIBS="$ac_save_LIBS"
9467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9468 echo "$ac_t""yes" 1>&6
9469 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9470 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9471 cat >> confdefs.h <<EOF
9472 #define $ac_tr_lib 1
9478 echo "$ac_t""no" 1>&6
9485 echo $ac_n "checking for select""... $ac_c" 1>&6
9486 echo "configure:9487: checking for select" >&5
9487 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9488 echo $ac_n "(cached) $ac_c" 1>&6
9490 cat > conftest.$ac_ext <<EOF
9491 #line 9492 "configure"
9492 #include "confdefs.h"
9493 /* System header to define __stub macros and hopefully few prototypes,
9494 which can conflict with char select(); below. */
9496 /* Override any gcc2 internal prototype to avoid an error. */
9497 /* We use char because int might match the return type of a gcc2
9498 builtin and then its argument prototype would still apply. */
9504 /* The GNU C library defines this for functions which it implements
9505 to always fail with ENOSYS. Some functions are actually named
9506 something starting with __ and the normal name is an alias. */
9507 #if defined (__stub_select) || defined (__stub___select)
9515 if { (eval echo configure:9516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9517 eval "ac_cv_func_select=yes"
9519 echo "configure: failed program was:" >&5
9520 cat conftest.$ac_ext >&5
9522 eval "ac_cv_func_select=no"
9527 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9528 echo "$ac_t""yes" 1>&6
9531 echo "$ac_t""no" 1>&6
9532 { echo "configure: error: select() required." 1>&2; exit 1; }
9536 if test "${ac_cv_header_winsock_h}" != yes; then
9537 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9538 echo "configure:9539: checking types of arguments for select()" >&5
9539 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9540 echo $ac_n "(cached) $ac_c" 1>&6
9542 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9545 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9546 echo $ac_n "(cached) $ac_c" 1>&6
9548 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9549 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9550 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9551 cat > conftest.$ac_ext <<EOF
9552 #line 9553 "configure"
9553 #include "confdefs.h"
9554 #ifdef HAVE_SYS_TYPES_H
9555 #include <sys/types.h>
9557 #ifdef HAVE_SYS_TIME_H
9558 #include <sys/time.h>
9560 #ifdef HAVE_SYS_SELECT_H
9561 #include <sys/select.h>
9563 #ifdef HAVE_SYS_SOCKET_H
9564 #include <sys/socket.h>
9566 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);
9571 if { (eval echo configure:9572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9573 ac_not_found=no ; break 3
9575 echo "configure: failed program was:" >&5
9576 cat conftest.$ac_ext >&5
9590 if test "$ac_not_found" = yes; then
9591 ac_cv_func_select_arg1=int
9592 ac_cv_func_select_arg234='int *'
9593 ac_cv_func_select_arg5='struct timeval *'
9595 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9596 cat >> confdefs.h <<EOF
9597 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9600 cat >> confdefs.h <<EOF
9601 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9604 cat >> confdefs.h <<EOF
9605 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9612 for ac_hdr in regex.h
9614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9616 echo "configure:9617: checking for $ac_hdr" >&5
9617 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9626 { (eval echo configure:9627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9628 if test -z "$ac_err"; then
9630 eval "ac_cv_header_$ac_safe=yes"
9633 echo "configure: failed program was:" >&5
9634 cat conftest.$ac_ext >&5
9636 eval "ac_cv_header_$ac_safe=no"
9640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9641 echo "$ac_t""yes" 1>&6
9642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9643 cat >> confdefs.h <<EOF
9644 #define $ac_tr_hdr 1
9648 echo "$ac_t""no" 1>&6
9652 if test "$ac_cv_header_regex_h" != yes ; then
9653 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9656 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9657 echo "configure:9658: checking for library containing regfree" >&5
9658 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9659 echo $ac_n "(cached) $ac_c" 1>&6
9661 ac_func_search_save_LIBS="$LIBS"
9662 ac_cv_search_regfree="no"
9663 cat > conftest.$ac_ext <<EOF
9664 #line 9665 "configure"
9665 #include "confdefs.h"
9666 /* Override any gcc2 internal prototype to avoid an error. */
9667 /* We use char because int might match the return type of a gcc2
9668 builtin and then its argument prototype would still apply. */
9675 if { (eval echo configure:9676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9677 ac_cv_search_regfree="none required"
9679 echo "configure: failed program was:" >&5
9680 cat conftest.$ac_ext >&5
9683 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9688 /* Override any gcc2 internal prototype to avoid an error. */
9689 /* We use char because int might match the return type of a gcc2
9690 builtin and then its argument prototype would still apply. */
9697 if { (eval echo configure:9698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9699 ac_cv_search_regfree="-l$ac_lib"
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9707 LIBS="$ac_func_search_save_LIBS"
9710 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9711 if test "$ac_cv_search_regfree" != "no"; then
9712 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9715 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9719 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9720 echo "configure:9721: checking for compatible POSIX regex" >&5
9721 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9722 echo $ac_n "(cached) $ac_c" 1>&6
9725 if test "$cross_compiling" = yes; then
9726 ol_cv_c_posix_regex=cross
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9732 #include <sys/types.h>
9734 static char *pattern, *string;
9742 if(regcomp(&re, pattern, 0)) {
9746 string = "ALL MATCH";
9748 rc = regexec(&re, string, 0, (void*)0, 0);
9755 if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9757 ol_cv_c_posix_regex=yes
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9762 ol_cv_c_posix_regex=no
9769 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9771 if test "$ol_cv_c_posix_regex" = no ; then
9772 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9777 for ac_hdr in sys/uuid.h
9779 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9780 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9781 echo "configure:9782: checking for $ac_hdr" >&5
9782 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9783 echo $ac_n "(cached) $ac_c" 1>&6
9785 cat > conftest.$ac_ext <<EOF
9786 #line 9787 "configure"
9787 #include "confdefs.h"
9790 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9791 { (eval echo configure:9792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9792 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9793 if test -z "$ac_err"; then
9795 eval "ac_cv_header_$ac_safe=yes"
9798 echo "configure: failed program was:" >&5
9799 cat conftest.$ac_ext >&5
9801 eval "ac_cv_header_$ac_safe=no"
9805 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9806 echo "$ac_t""yes" 1>&6
9807 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9808 cat >> confdefs.h <<EOF
9809 #define $ac_tr_hdr 1
9813 echo "$ac_t""no" 1>&6
9817 if test $ac_cv_header_sys_uuid_h = yes ; then
9820 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9821 echo "configure:9822: checking for library containing uuid_to_str" >&5
9822 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9825 ac_func_search_save_LIBS="$LIBS"
9826 ac_cv_search_uuid_to_str="no"
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9830 /* Override any gcc2 internal prototype to avoid an error. */
9831 /* We use char because int might match the return type of a gcc2
9832 builtin and then its argument prototype would still apply. */
9839 if { (eval echo configure:9840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9841 ac_cv_search_uuid_to_str="none required"
9843 echo "configure: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9847 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 /* Override any gcc2 internal prototype to avoid an error. */
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9861 if { (eval echo configure:9862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9863 ac_cv_search_uuid_to_str="-l$ac_lib"
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9871 LIBS="$ac_func_search_save_LIBS"
9874 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9875 if test "$ac_cv_search_uuid_to_str" != "no"; then
9876 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9883 if test have_uuid = yes ; then
9884 cat >> confdefs.h <<\EOF
9885 #define HAVE_UUID_TO_STR 1
9889 test "$ac_cv_search_uuid_to_str" = "none required" || \
9890 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9894 if test $have_uuid = no ; then
9895 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9896 echo "configure:9897: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9898 LIBS="$LIBS -lrpcrt4"
9899 cat > conftest.$ac_ext <<EOF
9900 #line 9901 "configure"
9901 #include "confdefs.h"
9903 int __stdcall UuidCreate(void *);
9904 int __stdcall UuidToStringA(void *,void **);
9913 if { (eval echo configure:9914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9917 echo "configure: failed program was:" >&5
9918 cat conftest.$ac_ext >&5
9923 if test $need_rpcrt = yes; then
9924 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9927 echo "$ac_t""$need_rpcrt" 1>&6
9931 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9932 echo "configure:9933: checking for res_query" >&5
9933 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9934 echo $ac_n "(cached) $ac_c" 1>&6
9936 cat > conftest.$ac_ext <<EOF
9937 #line 9938 "configure"
9938 #include "confdefs.h"
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char res_query(); below. */
9942 /* Override any gcc2 internal prototype to avoid an error. */
9943 /* We use char because int might match the return type of a gcc2
9944 builtin and then its argument prototype would still apply. */
9950 /* The GNU C library defines this for functions which it implements
9951 to always fail with ENOSYS. Some functions are actually named
9952 something starting with __ and the normal name is an alias. */
9953 #if defined (__stub_res_query) || defined (__stub___res_query)
9961 if { (eval echo configure:9962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9963 eval "ac_cv_func_res_query=yes"
9965 echo "configure: failed program was:" >&5
9966 cat conftest.$ac_ext >&5
9968 eval "ac_cv_func_res_query=no"
9973 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9974 echo "$ac_t""yes" 1>&6
9977 echo "$ac_t""no" 1>&6
9980 if test $ac_cv_func_res_query = no ; then
9981 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
9982 echo "configure:9983: checking for __res_query" >&5
9983 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
9984 echo $ac_n "(cached) $ac_c" 1>&6
9986 cat > conftest.$ac_ext <<EOF
9987 #line 9988 "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char __res_query(); below. */
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. */
10000 /* The GNU C library defines this for functions which it implements
10001 to always fail with ENOSYS. Some functions are actually named
10002 something starting with __ and the normal name is an alias. */
10003 #if defined (__stub___res_query) || defined (__stub_____res_query)
10011 if { (eval echo configure:10012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10013 eval "ac_cv_func___res_query=yes"
10015 echo "configure: failed program was:" >&5
10016 cat conftest.$ac_ext >&5
10018 eval "ac_cv_func___res_query=no"
10023 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10024 echo "$ac_t""yes" 1>&6
10027 echo "$ac_t""no" 1>&6
10030 ac_cv_func_res_query=$ac_cv_func___res_query
10033 if test $ac_cv_func_res_query = no ; then
10034 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10035 echo "configure:10036: checking for res_query in -lbind" >&5
10036 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10037 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10038 echo $ac_n "(cached) $ac_c" 1>&6
10040 ac_save_LIBS="$LIBS"
10041 LIBS="-lbind $LIBS"
10042 cat > conftest.$ac_ext <<EOF
10043 #line 10044 "configure"
10044 #include "confdefs.h"
10045 /* Override any gcc2 internal prototype to avoid an error. */
10046 /* We use char because int might match the return type of a gcc2
10047 builtin and then its argument prototype would still apply. */
10054 if { (eval echo configure:10055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10056 eval "ac_cv_lib_$ac_lib_var=yes"
10058 echo "configure: failed program was:" >&5
10059 cat conftest.$ac_ext >&5
10061 eval "ac_cv_lib_$ac_lib_var=no"
10064 LIBS="$ac_save_LIBS"
10067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10068 echo "$ac_t""yes" 1>&6
10069 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10071 cat >> confdefs.h <<EOF
10072 #define $ac_tr_lib 1
10075 LIBS="-lbind $LIBS"
10078 echo "$ac_t""no" 1>&6
10081 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10084 if test $ac_cv_func_res_query = no ; then
10085 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10086 echo "configure:10087: checking for __res_query in -lbind" >&5
10087 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10088 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10089 echo $ac_n "(cached) $ac_c" 1>&6
10091 ac_save_LIBS="$LIBS"
10092 LIBS="-lbind $LIBS"
10093 cat > conftest.$ac_ext <<EOF
10094 #line 10095 "configure"
10095 #include "confdefs.h"
10096 /* Override any gcc2 internal prototype to avoid an error. */
10097 /* We use char because int might match the return type of a gcc2
10098 builtin and then its argument prototype would still apply. */
10099 char __res_query();
10105 if { (eval echo configure:10106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10107 eval "ac_cv_lib_$ac_lib_var=yes"
10109 echo "configure: failed program was:" >&5
10110 cat conftest.$ac_ext >&5
10112 eval "ac_cv_lib_$ac_lib_var=no"
10115 LIBS="$ac_save_LIBS"
10118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10119 echo "$ac_t""yes" 1>&6
10120 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10121 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10122 cat >> confdefs.h <<EOF
10123 #define $ac_tr_lib 1
10126 LIBS="-lbind $LIBS"
10129 echo "$ac_t""no" 1>&6
10132 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10135 if test $ac_cv_func_res_query = no ; then
10136 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10137 echo "configure:10138: checking for res_query in -lresolv" >&5
10138 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10142 ac_save_LIBS="$LIBS"
10143 LIBS="-lresolv $LIBS"
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10158 eval "ac_cv_lib_$ac_lib_var=yes"
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10163 eval "ac_cv_lib_$ac_lib_var=no"
10166 LIBS="$ac_save_LIBS"
10169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10170 echo "$ac_t""yes" 1>&6
10171 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10172 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10173 cat >> confdefs.h <<EOF
10174 #define $ac_tr_lib 1
10177 LIBS="-lresolv $LIBS"
10180 echo "$ac_t""no" 1>&6
10183 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10186 if test $ac_cv_func_res_query = no ; then
10187 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10188 echo "configure:10189: checking for __res_query in -lresolv" >&5
10189 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10190 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10193 ac_save_LIBS="$LIBS"
10194 LIBS="-lresolv $LIBS"
10195 cat > conftest.$ac_ext <<EOF
10196 #line 10197 "configure"
10197 #include "confdefs.h"
10198 /* Override any gcc2 internal prototype to avoid an error. */
10199 /* We use char because int might match the return type of a gcc2
10200 builtin and then its argument prototype would still apply. */
10201 char __res_query();
10207 if { (eval echo configure:10208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10209 eval "ac_cv_lib_$ac_lib_var=yes"
10211 echo "configure: failed program was:" >&5
10212 cat conftest.$ac_ext >&5
10214 eval "ac_cv_lib_$ac_lib_var=no"
10217 LIBS="$ac_save_LIBS"
10220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10221 echo "$ac_t""yes" 1>&6
10222 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10223 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10224 cat >> confdefs.h <<EOF
10225 #define $ac_tr_lib 1
10228 LIBS="-lresolv $LIBS"
10231 echo "$ac_t""no" 1>&6
10234 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10237 if test "$ac_cv_func_res_query" = yes ; then
10238 cat >> confdefs.h <<\EOF
10239 #define HAVE_RES_QUERY 1
10243 if test $ol_enable_dnssrv != no ; then
10248 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10249 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10252 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10255 echo "configure:10256: checking for $ac_func" >&5
10256 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10259 cat > conftest.$ac_ext <<EOF
10260 #line 10261 "configure"
10261 #include "confdefs.h"
10262 /* System header to define __stub macros and hopefully few prototypes,
10263 which can conflict with char $ac_func(); below. */
10264 #include <assert.h>
10265 /* Override any gcc2 internal prototype to avoid an error. */
10266 /* We use char because int might match the return type of a gcc2
10267 builtin and then its argument prototype would still apply. */
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10284 if { (eval echo configure:10285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10286 eval "ac_cv_func_$ac_func=yes"
10288 echo "configure: failed program was:" >&5
10289 cat conftest.$ac_ext >&5
10291 eval "ac_cv_func_$ac_func=no"
10296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10297 echo "$ac_t""yes" 1>&6
10298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10299 cat >> confdefs.h <<EOF
10300 #define $ac_tr_func 1
10304 echo "$ac_t""no" 1>&6
10310 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10311 if test $ol_enable_ipv6 = yes ; then
10312 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10314 elif test $ol_enable_ipv6 != no ; then
10315 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10316 echo "configure:10317: checking INET6_ADDRSTRLEN" >&5
10317 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10318 echo $ac_n "(cached) $ac_c" 1>&6
10321 cat > conftest.$ac_ext <<EOF
10322 #line 10323 "configure"
10323 #include "confdefs.h"
10325 # include <netinet/in.h>
10326 # ifdef INET6_ADDRSTRLEN
10327 __has_inet6_addrstrlen__;
10331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10332 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10334 ol_cv_inet6_addrstrlen=yes
10337 ol_cv_inet6_addrstrlen=no
10343 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10346 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10347 echo "configure:10348: checking struct sockaddr_storage" >&5
10348 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10352 cat > conftest.$ac_ext <<EOF
10353 #line 10354 "configure"
10354 #include "confdefs.h"
10356 #include <sys/types.h>
10357 #include <sys/socket.h>
10361 struct sockaddr_storage ss;
10365 if { (eval echo configure:10366: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10367 ol_cv_struct_sockaddr_storage=yes
10369 echo "configure: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10372 ol_cv_struct_sockaddr_storage=no
10377 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10379 if test $ol_cv_inet6_addrstrlen = yes \
10380 -a $ol_cv_struct_sockaddr_storage = yes ; then
10382 elif test $ol_enable_ipv6 = yes \
10383 -a $ol_cv_inet6_addrstrlen = no ; then
10384 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10385 elif test $ol_enable_ipv6 = yes \
10386 -a $ol_cv_struct_sockaddr_storage = no ; then
10387 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10391 if test $ol_enable_local != no ; then
10392 for ac_hdr in sys/un.h
10394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10396 echo "configure:10397: checking for $ac_hdr" >&5
10397 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10398 echo $ac_n "(cached) $ac_c" 1>&6
10400 cat > conftest.$ac_ext <<EOF
10401 #line 10402 "configure"
10402 #include "confdefs.h"
10405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10406 { (eval echo configure:10407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10408 if test -z "$ac_err"; then
10410 eval "ac_cv_header_$ac_safe=yes"
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10416 eval "ac_cv_header_$ac_safe=no"
10420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10421 echo "$ac_t""yes" 1>&6
10422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10423 cat >> confdefs.h <<EOF
10424 #define $ac_tr_hdr 1
10428 echo "$ac_t""no" 1>&6
10433 if test $ol_enable_local = auto ; then
10434 ol_enable_local=$ac_cv_header_sys_un_h
10435 elif test $ac_cv_header_sys_un_h = no ; then
10436 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10444 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10445 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10446 -o $ol_with_kerberos = k425 ; then
10448 for ac_hdr in krb5.h
10450 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10451 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10452 echo "configure:10453: checking for $ac_hdr" >&5
10453 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10454 echo $ac_n "(cached) $ac_c" 1>&6
10456 cat > conftest.$ac_ext <<EOF
10457 #line 10458 "configure"
10458 #include "confdefs.h"
10461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10462 { (eval echo configure:10463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10464 if test -z "$ac_err"; then
10466 eval "ac_cv_header_$ac_safe=yes"
10469 echo "configure: failed program was:" >&5
10470 cat conftest.$ac_ext >&5
10472 eval "ac_cv_header_$ac_safe=no"
10476 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10477 echo "$ac_t""yes" 1>&6
10478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10479 cat >> confdefs.h <<EOF
10480 #define $ac_tr_hdr 1
10484 echo "$ac_t""no" 1>&6
10489 if test $ac_cv_header_krb5_h = yes ; then
10490 for ac_hdr in heim_err.h
10492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10494 echo "configure:10495: checking for $ac_hdr" >&5
10495 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10496 echo $ac_n "(cached) $ac_c" 1>&6
10498 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure"
10500 #include "confdefs.h"
10503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10504 { (eval echo configure:10505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10506 if test -z "$ac_err"; then
10508 eval "ac_cv_header_$ac_safe=yes"
10511 echo "configure: failed program was:" >&5
10512 cat conftest.$ac_ext >&5
10514 eval "ac_cv_header_$ac_safe=no"
10518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10519 echo "$ac_t""yes" 1>&6
10520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10521 cat >> confdefs.h <<EOF
10522 #define $ac_tr_hdr 1
10526 echo "$ac_t""no" 1>&6
10530 if test $ac_cv_header_heim_err_h = yes ; then
10536 if test $krb5_impl = mit; then
10537 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10538 echo "configure:10539: checking for main in -lk5crypto" >&5
10539 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10540 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
10543 ac_save_LIBS="$LIBS"
10544 LIBS="-lk5crypto $LIBS"
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10553 if { (eval echo configure:10554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10555 eval "ac_cv_lib_$ac_lib_var=yes"
10557 echo "configure: failed program was:" >&5
10558 cat conftest.$ac_ext >&5
10560 eval "ac_cv_lib_$ac_lib_var=no"
10563 LIBS="$ac_save_LIBS"
10566 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10567 echo "$ac_t""yes" 1>&6
10568 krb5crypto=k5crypto
10570 echo "$ac_t""no" 1>&6
10575 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10576 echo "configure:10577: checking for main in -lkrb5" >&5
10577 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10578 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10579 echo $ac_n "(cached) $ac_c" 1>&6
10581 ac_save_LIBS="$LIBS"
10582 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10583 cat > conftest.$ac_ext <<EOF
10584 #line 10585 "configure"
10585 #include "confdefs.h"
10591 if { (eval echo configure:10592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10593 eval "ac_cv_lib_$ac_lib_var=yes"
10595 echo "configure: failed program was:" >&5
10596 cat conftest.$ac_ext >&5
10598 eval "ac_cv_lib_$ac_lib_var=no"
10601 LIBS="$ac_save_LIBS"
10604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10605 echo "$ac_t""yes" 1>&6
10607 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10609 echo "$ac_t""no" 1>&6
10614 elif test $krb5_impl = heimdal; then
10615 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10616 echo "configure:10617: checking for main in -ldes" >&5
10617 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10618 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10619 echo $ac_n "(cached) $ac_c" 1>&6
10621 ac_save_LIBS="$LIBS"
10623 cat > conftest.$ac_ext <<EOF
10624 #line 10625 "configure"
10625 #include "confdefs.h"
10631 if { (eval echo configure:10632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10633 eval "ac_cv_lib_$ac_lib_var=yes"
10635 echo "configure: failed program was:" >&5
10636 cat conftest.$ac_ext >&5
10638 eval "ac_cv_lib_$ac_lib_var=no"
10641 LIBS="$ac_save_LIBS"
10644 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10645 echo "$ac_t""yes" 1>&6
10648 echo "$ac_t""no" 1>&6
10653 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10654 echo "configure:10655: checking for main in -lkrb5" >&5
10655 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10656 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10657 echo $ac_n "(cached) $ac_c" 1>&6
10659 ac_save_LIBS="$LIBS"
10660 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10661 cat > conftest.$ac_ext <<EOF
10662 #line 10663 "configure"
10663 #include "confdefs.h"
10669 if { (eval echo configure:10670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10671 eval "ac_cv_lib_$ac_lib_var=yes"
10673 echo "configure: failed program was:" >&5
10674 cat conftest.$ac_ext >&5
10676 eval "ac_cv_lib_$ac_lib_var=no"
10679 LIBS="$ac_save_LIBS"
10682 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10683 echo "$ac_t""yes" 1>&6
10685 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10687 echo "$ac_t""no" 1>&6
10692 cat >> confdefs.h <<\EOF
10693 #define HAVE_HEIMDAL_KERBEROS 1
10699 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10702 if test $have_krb5 = yes ; then
10705 cat >> confdefs.h <<\EOF
10706 #define HAVE_KRB5 1
10710 if test $ol_with_kerberos = k5only ; then
10711 ol_with_kerberos=found
10714 elif test $ol_with_kerberos != auto ; then
10715 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10721 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10722 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10724 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10728 echo "configure:10729: checking for $ac_hdr" >&5
10729 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10730 echo $ac_n "(cached) $ac_c" 1>&6
10732 cat > conftest.$ac_ext <<EOF
10733 #line 10734 "configure"
10734 #include "confdefs.h"
10737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10738 { (eval echo configure:10739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10740 if test -z "$ac_err"; then
10742 eval "ac_cv_header_$ac_safe=yes"
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10748 eval "ac_cv_header_$ac_safe=no"
10752 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10753 echo "$ac_t""yes" 1>&6
10754 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10755 cat >> confdefs.h <<EOF
10756 #define $ac_tr_hdr 1
10760 echo "$ac_t""no" 1>&6
10765 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10766 if test $krb5_impl = mit; then
10767 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10768 echo "configure:10769: checking for main in -lkrb4" >&5
10769 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10770 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10771 echo $ac_n "(cached) $ac_c" 1>&6
10773 ac_save_LIBS="$LIBS"
10774 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10783 if { (eval echo configure:10784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10785 eval "ac_cv_lib_$ac_lib_var=yes"
10787 echo "configure: failed program was:" >&5
10788 cat conftest.$ac_ext >&5
10790 eval "ac_cv_lib_$ac_lib_var=no"
10793 LIBS="$ac_save_LIBS"
10796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10797 echo "$ac_t""yes" 1>&6
10799 KRB4_LIBS="-lkrb4 -ldes425"
10801 echo "$ac_t""no" 1>&6
10806 elif test $krb5_impl = heimdal; then
10807 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10808 echo "configure:10809: checking for main in -lkrb4" >&5
10809 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10810 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10811 echo $ac_n "(cached) $ac_c" 1>&6
10813 ac_save_LIBS="$LIBS"
10814 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10815 cat > conftest.$ac_ext <<EOF
10816 #line 10817 "configure"
10817 #include "confdefs.h"
10823 if { (eval echo configure:10824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10825 eval "ac_cv_lib_$ac_lib_var=yes"
10827 echo "configure: failed program was:" >&5
10828 cat conftest.$ac_ext >&5
10830 eval "ac_cv_lib_$ac_lib_var=no"
10833 LIBS="$ac_save_LIBS"
10836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10837 echo "$ac_t""yes" 1>&6
10841 echo "$ac_t""no" 1>&6
10848 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10851 if test $have_k425 = yes ; then
10852 ol_with_kerberos=found
10855 cat >> confdefs.h <<\EOF
10856 #define HAVE_KRB425 1
10859 cat >> confdefs.h <<\EOF
10860 #define HAVE_KRB4 1
10864 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10865 echo "configure:10866: checking for des_debug in Kerberos libraries" >&5
10866 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10867 echo $ac_n "(cached) $ac_c" 1>&6
10871 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10872 cat > conftest.$ac_ext <<EOF
10873 #line 10874 "configure"
10874 #include "confdefs.h"
10876 #include <kerberosIV/krb.h>
10877 #include <kerberosIV/des.h>
10878 extern int des_debug;
10886 if { (eval echo configure:10887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10888 ol_cv_var_des_debug=yes
10890 echo "configure: failed program was:" >&5
10891 cat conftest.$ac_ext >&5
10893 ol_cv_var_des_debug=no
10900 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10902 if test $ol_cv_var_des_debug = yes ; then
10903 cat >> confdefs.h <<\EOF
10904 #define HAVE_DES_DEBUG 1
10914 if test $ol_link_krb5 = yes ; then
10915 ol_with_kerberos=found
10918 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10919 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10921 for ac_hdr in krb.h des.h krb-archaeology.h
10923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10925 echo "configure:10926: checking for $ac_hdr" >&5
10926 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10927 echo $ac_n "(cached) $ac_c" 1>&6
10929 cat > conftest.$ac_ext <<EOF
10930 #line 10931 "configure"
10931 #include "confdefs.h"
10934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10935 { (eval echo configure:10936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10937 if test -z "$ac_err"; then
10939 eval "ac_cv_header_$ac_safe=yes"
10942 echo "configure: failed program was:" >&5
10943 cat conftest.$ac_ext >&5
10945 eval "ac_cv_header_$ac_safe=no"
10949 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10950 echo "$ac_t""yes" 1>&6
10951 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10952 cat >> confdefs.h <<EOF
10953 #define $ac_tr_hdr 1
10957 echo "$ac_t""no" 1>&6
10962 if test $ac_cv_header_krb_h = yes ; then
10963 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10964 echo "configure:10965: checking for main in -lkrb" >&5
10965 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10967 echo $ac_n "(cached) $ac_c" 1>&6
10969 ac_save_LIBS="$LIBS"
10970 LIBS="-lkrb -ldes $LIBS"
10971 cat > conftest.$ac_ext <<EOF
10972 #line 10973 "configure"
10973 #include "confdefs.h"
10979 if { (eval echo configure:10980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10981 eval "ac_cv_lib_$ac_lib_var=yes"
10983 echo "configure: failed program was:" >&5
10984 cat conftest.$ac_ext >&5
10986 eval "ac_cv_lib_$ac_lib_var=no"
10989 LIBS="$ac_save_LIBS"
10992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10993 echo "$ac_t""yes" 1>&6
10996 echo "$ac_t""no" 1>&6
11001 if test $have_k4 = yes ; then
11002 ol_with_kerberos=found
11005 cat >> confdefs.h <<\EOF
11006 #define HAVE_KRB4 1
11010 KRB4_LIBS="-lkrb -ldes"
11012 if test $ac_cv_header_krb_archaeology_h = yes ; then
11013 cat >> confdefs.h <<\EOF
11014 #define HAVE_KTH_KERBEROS 1
11022 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11025 elif test $ol_enable_kbind = yes ; then
11026 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11029 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11030 cat >> confdefs.h <<\EOF
11031 #define HAVE_KERBEROS 1
11035 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11036 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11040 if test $ol_with_tls != no ; then
11041 for ac_hdr in openssl/ssl.h ssl.h
11043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11045 echo "configure:11046: checking for $ac_hdr" >&5
11046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11047 echo $ac_n "(cached) $ac_c" 1>&6
11049 cat > conftest.$ac_ext <<EOF
11050 #line 11051 "configure"
11051 #include "confdefs.h"
11054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11055 { (eval echo configure:11056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11057 if test -z "$ac_err"; then
11059 eval "ac_cv_header_$ac_safe=yes"
11062 echo "configure: failed program was:" >&5
11063 cat conftest.$ac_ext >&5
11065 eval "ac_cv_header_$ac_safe=no"
11069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11070 echo "$ac_t""yes" 1>&6
11071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11072 cat >> confdefs.h <<EOF
11073 #define $ac_tr_hdr 1
11077 echo "$ac_t""no" 1>&6
11082 if test $ac_cv_header_openssl_ssl_h = yes \
11083 -o $ac_cv_header_ssl_h = yes ; then
11084 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11085 echo "configure:11086: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11086 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11087 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11088 echo $ac_n "(cached) $ac_c" 1>&6
11090 ac_save_LIBS="$LIBS"
11091 LIBS="-lssl -lcrypto $LIBS"
11092 cat > conftest.$ac_ext <<EOF
11093 #line 11094 "configure"
11094 #include "confdefs.h"
11095 /* Override any gcc2 internal prototype to avoid an error. */
11096 /* We use char because int might match the return type of a gcc2
11097 builtin and then its argument prototype would still apply. */
11098 char SSLeay_add_ssl_algorithms();
11101 SSLeay_add_ssl_algorithms()
11104 if { (eval echo configure:11105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11106 eval "ac_cv_lib_$ac_lib_var=yes"
11108 echo "configure: failed program was:" >&5
11109 cat conftest.$ac_ext >&5
11111 eval "ac_cv_lib_$ac_lib_var=no"
11114 LIBS="$ac_save_LIBS"
11117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11118 echo "$ac_t""yes" 1>&6
11122 echo "$ac_t""no" 1>&6
11127 if test $have_ssleay = no ; then
11128 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11129 echo "configure:11130: checking for SSL_library_init in -lssl" >&5
11130 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11131 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11132 echo $ac_n "(cached) $ac_c" 1>&6
11134 ac_save_LIBS="$LIBS"
11135 LIBS="-lssl -lcrypto $LIBS"
11136 cat > conftest.$ac_ext <<EOF
11137 #line 11138 "configure"
11138 #include "confdefs.h"
11139 /* Override any gcc2 internal prototype to avoid an error. */
11140 /* We use char because int might match the return type of a gcc2
11141 builtin and then its argument prototype would still apply. */
11142 char SSL_library_init();
11148 if { (eval echo configure:11149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11150 eval "ac_cv_lib_$ac_lib_var=yes"
11152 echo "configure: failed program was:" >&5
11153 cat conftest.$ac_ext >&5
11155 eval "ac_cv_lib_$ac_lib_var=no"
11158 LIBS="$ac_save_LIBS"
11161 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11162 echo "$ac_t""yes" 1>&6
11166 echo "$ac_t""no" 1>&6
11172 if test $have_ssleay = no ; then
11173 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11174 echo "configure:11175: checking for ssl3_accept in -lssl" >&5
11175 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11179 ac_save_LIBS="$LIBS"
11180 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11181 cat > conftest.$ac_ext <<EOF
11182 #line 11183 "configure"
11183 #include "confdefs.h"
11184 /* Override any gcc2 internal prototype to avoid an error. */
11185 /* We use char because int might match the return type of a gcc2
11186 builtin and then its argument prototype would still apply. */
11187 char ssl3_accept();
11193 if { (eval echo configure:11194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11195 eval "ac_cv_lib_$ac_lib_var=yes"
11197 echo "configure: failed program was:" >&5
11198 cat conftest.$ac_ext >&5
11200 eval "ac_cv_lib_$ac_lib_var=no"
11203 LIBS="$ac_save_LIBS"
11206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11207 echo "$ac_t""yes" 1>&6
11211 echo "$ac_t""no" 1>&6
11217 if test $have_ssleay = yes ; then
11221 cat >> confdefs.h <<\EOF
11222 #define HAVE_SSLEAY 1
11226 if test $need_rsaref = yes; then
11227 cat >> confdefs.h <<\EOF
11228 #define HAVE_RSAREF 1
11232 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11234 TLS_LIBS="-lssl -lcrypto"
11240 echo "configure: warning: TLS data protection not supported!" 1>&2
11244 if test $ol_link_tls = yes ; then
11245 cat >> confdefs.h <<\EOF
11251 elif test $ol_with_tls = auto ; then
11252 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11253 echo "configure: warning: TLS data protection not supported!" 1>&2
11255 elif test $ol_with_tls != no ; then
11256 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11259 if test $ol_enable_lmpasswd != no; then
11260 if test $ol_link_tls != yes ; then
11261 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11264 cat >> confdefs.h <<\EOF
11265 #define SLAPD_LMHASH 1
11272 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11273 -o $ol_with_threads = nt ; then
11276 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11277 echo "configure:11278: checking for _beginthread" >&5
11278 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11279 echo $ac_n "(cached) $ac_c" 1>&6
11281 cat > conftest.$ac_ext <<EOF
11282 #line 11283 "configure"
11283 #include "confdefs.h"
11284 /* System header to define __stub macros and hopefully few prototypes,
11285 which can conflict with char _beginthread(); below. */
11286 #include <assert.h>
11287 /* Override any gcc2 internal prototype to avoid an error. */
11288 /* We use char because int might match the return type of a gcc2
11289 builtin and then its argument prototype would still apply. */
11290 char _beginthread();
11295 /* The GNU C library defines this for functions which it implements
11296 to always fail with ENOSYS. Some functions are actually named
11297 something starting with __ and the normal name is an alias. */
11298 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11306 if { (eval echo configure:11307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11308 eval "ac_cv_func__beginthread=yes"
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11313 eval "ac_cv_func__beginthread=no"
11318 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11319 echo "$ac_t""yes" 1>&6
11322 echo "$ac_t""no" 1>&6
11326 if test $ac_cv_func__beginthread = yes ; then
11327 cat >> confdefs.h <<\EOF
11328 #define HAVE_NT_THREADS 1
11331 ol_cv_nt_threads=yes
11335 if test "$ol_cv_nt_threads" = yes ; then
11337 ol_with_threads=found
11338 ol_with_yielding_select=yes
11340 cat >> confdefs.h <<\EOF
11341 #define HAVE_NT_SERVICE_MANAGER 1
11344 cat >> confdefs.h <<\EOF
11345 #define HAVE_NT_EVENT_LOG 1
11350 if test $ol_with_threads = nt ; then
11351 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11355 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11356 -o $ol_with_threads = posix ; then
11358 for ac_hdr in pthread.h
11360 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11361 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11362 echo "configure:11363: checking for $ac_hdr" >&5
11363 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11366 cat > conftest.$ac_ext <<EOF
11367 #line 11368 "configure"
11368 #include "confdefs.h"
11371 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11372 { (eval echo configure:11373: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11373 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11374 if test -z "$ac_err"; then
11376 eval "ac_cv_header_$ac_safe=yes"
11379 echo "configure: failed program was:" >&5
11380 cat conftest.$ac_ext >&5
11382 eval "ac_cv_header_$ac_safe=no"
11386 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11387 echo "$ac_t""yes" 1>&6
11388 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11389 cat >> confdefs.h <<EOF
11390 #define $ac_tr_hdr 1
11394 echo "$ac_t""no" 1>&6
11399 if test $ac_cv_header_pthread_h = yes ; then
11400 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11401 echo "configure:11402: checking POSIX thread version" >&5
11402 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11403 echo $ac_n "(cached) $ac_c" 1>&6
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11410 # include <pthread.h>
11414 int i = PTHREAD_CREATE_JOINABLE;
11418 if { (eval echo configure:11419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11421 cat > conftest.$ac_ext <<EOF
11422 #line 11423 "configure"
11423 #include "confdefs.h"
11424 #include <pthread.h>
11426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11427 egrep "pthread_detach" >/dev/null 2>&1; then
11429 ol_cv_pthread_version=10
11432 ol_cv_pthread_version=8
11437 echo "configure: failed program was:" >&5
11438 cat conftest.$ac_ext >&5
11441 cat > conftest.$ac_ext <<EOF
11442 #line 11443 "configure"
11443 #include "confdefs.h"
11445 # include <pthread.h>
11446 # ifdef PTHREAD_CREATE_UNDETACHED
11451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11452 egrep "draft7" >/dev/null 2>&1; then
11454 ol_cv_pthread_version=7
11458 cat > conftest.$ac_ext <<EOF
11459 #line 11460 "configure"
11460 #include "confdefs.h"
11461 #include <pthread.h>
11463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11464 egrep "pthread_attr_init" >/dev/null 2>&1; then
11466 ol_cv_pthread_version=6
11470 cat > conftest.$ac_ext <<EOF
11471 #line 11472 "configure"
11472 #include "confdefs.h"
11474 # include <pthread.h>
11475 #ifdef PTHREAD_MUTEX_INITIALIZER
11480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11481 egrep "draft5" >/dev/null 2>&1; then
11483 ol_cv_pthread_version=5
11486 ol_cv_pthread_version=4
11501 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11504 if test $ol_cv_pthread_version != 0 ; then
11505 cat >> confdefs.h <<EOF
11506 #define HAVE_PTHREADS $ol_cv_pthread_version
11510 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11513 # consider threads found
11514 ol_with_threads=found
11517 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11518 echo "configure:11519: checking for LinuxThreads pthread.h" >&5
11519 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11520 echo $ac_n "(cached) $ac_c" 1>&6
11522 cat > conftest.$ac_ext <<EOF
11523 #line 11524 "configure"
11524 #include "confdefs.h"
11525 #include <pthread.h>
11527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11528 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11530 ol_cv_header_linux_threads=yes
11533 ol_cv_header_linux_threads=no
11540 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11541 if test $ol_cv_header_linux_threads = yes; then
11542 cat >> confdefs.h <<\EOF
11543 #define HAVE_LINUX_THREADS 1
11549 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11550 echo "configure:11551: checking for GNU Pth pthread.h" >&5
11551 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11552 echo $ac_n "(cached) $ac_c" 1>&6
11554 cat > conftest.$ac_ext <<EOF
11555 #line 11556 "configure"
11556 #include "confdefs.h"
11557 #include <pthread.h>
11558 #ifdef _POSIX_THREAD_IS_GNU_PTH
11563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11564 egrep "__gnu_pth__" >/dev/null 2>&1; then
11566 ol_cv_header_gnu_pth_pthread_h=yes
11569 ol_cv_header_gnu_pth_pthread_h=no
11576 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11579 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11580 for ac_hdr in sched.h
11582 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11583 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11584 echo "configure:11585: checking for $ac_hdr" >&5
11585 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11586 echo $ac_n "(cached) $ac_c" 1>&6
11588 cat > conftest.$ac_ext <<EOF
11589 #line 11590 "configure"
11590 #include "confdefs.h"
11593 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11594 { (eval echo configure:11595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11595 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11596 if test -z "$ac_err"; then
11598 eval "ac_cv_header_$ac_safe=yes"
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11604 eval "ac_cv_header_$ac_safe=no"
11608 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11609 echo "$ac_t""yes" 1>&6
11610 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11611 cat >> confdefs.h <<EOF
11612 #define $ac_tr_hdr 1
11616 echo "$ac_t""no" 1>&6
11623 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11624 echo "configure:11625: checking for pthread_create in default libraries" >&5
11625 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11626 echo $ac_n "(cached) $ac_c" 1>&6
11629 if test "$cross_compiling" = yes; then
11630 cat > conftest.$ac_ext <<EOF
11631 #line 11632 "configure"
11632 #include "confdefs.h"
11633 /* pthread test headers */
11634 #include <pthread.h>
11635 #if HAVE_PTHREADS < 7
11639 #define NULL (void*)0
11642 static void *task(p)
11645 return (void *) (p == NULL);
11650 /* pthread test function */
11651 #ifndef PTHREAD_CREATE_DETACHED
11652 #define PTHREAD_CREATE_DETACHED 1
11656 int detach = PTHREAD_CREATE_DETACHED;
11658 #if HAVE_PTHREADS > 4
11659 /* Final pthreads */
11660 pthread_attr_t attr;
11662 status = pthread_attr_init(&attr);
11663 if( status ) return status;
11665 #if HAVE_PTHREADS < 7
11666 status = pthread_attr_setdetachstate(&attr, &detach);
11667 if( status < 0 ) status = errno;
11669 status = pthread_attr_setdetachstate(&attr, detach);
11671 if( status ) return status;
11672 status = pthread_create( &t, &attr, task, NULL );
11673 #if HAVE_PTHREADS < 7
11674 if( status < 0 ) status = errno;
11676 if( status ) return status;
11678 /* Draft 4 pthreads */
11679 status = pthread_create( &t, pthread_attr_default, task, NULL );
11680 if( status ) return errno;
11682 /* give thread a chance to complete */
11683 /* it should remain joinable and hence detachable */
11686 status = pthread_detach( &t );
11687 if( status ) return errno;
11690 #ifdef HAVE_LINUX_THREADS
11691 pthread_kill_other_threads_np();
11698 if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11700 ol_cv_pthread_create=yes
11702 echo "configure: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11705 ol_cv_pthread_create=no
11709 cat > conftest.$ac_ext <<EOF
11710 #line 11711 "configure"
11711 #include "confdefs.h"
11712 /* pthread test headers */
11713 #include <pthread.h>
11714 #if HAVE_PTHREADS < 7
11718 #define NULL (void*)0
11721 static void *task(p)
11724 return (void *) (p == NULL);
11728 int main(argc, argv)
11733 /* pthread test function */
11734 #ifndef PTHREAD_CREATE_DETACHED
11735 #define PTHREAD_CREATE_DETACHED 1
11739 int detach = PTHREAD_CREATE_DETACHED;
11741 #if HAVE_PTHREADS > 4
11742 /* Final pthreads */
11743 pthread_attr_t attr;
11745 status = pthread_attr_init(&attr);
11746 if( status ) return status;
11748 #if HAVE_PTHREADS < 7
11749 status = pthread_attr_setdetachstate(&attr, &detach);
11750 if( status < 0 ) status = errno;
11752 status = pthread_attr_setdetachstate(&attr, detach);
11754 if( status ) return status;
11755 status = pthread_create( &t, &attr, task, NULL );
11756 #if HAVE_PTHREADS < 7
11757 if( status < 0 ) status = errno;
11759 if( status ) return status;
11761 /* Draft 4 pthreads */
11762 status = pthread_create( &t, pthread_attr_default, task, NULL );
11763 if( status ) return errno;
11765 /* give thread a chance to complete */
11766 /* it should remain joinable and hence detachable */
11769 status = pthread_detach( &t );
11770 if( status ) return errno;
11773 #ifdef HAVE_LINUX_THREADS
11774 pthread_kill_other_threads_np();
11782 if { (eval echo configure:11783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11784 ol_cv_pthread_create=yes
11786 echo "configure: failed program was:" >&5
11787 cat conftest.$ac_ext >&5
11789 ol_cv_pthread_create=no
11796 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11798 if test $ol_cv_pthread_create != no ; then
11799 ol_link_threads=posix
11800 ol_link_pthreads=""
11803 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11804 if test "$ol_link_threads" = no ; then
11806 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11807 echo "configure:11808: checking for pthread link with -kthread" >&5
11808 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11809 echo $ac_n "(cached) $ac_c" 1>&6
11814 LIBS="-kthread $LIBS"
11816 if test "$cross_compiling" = yes; then
11817 cat > conftest.$ac_ext <<EOF
11818 #line 11819 "configure"
11819 #include "confdefs.h"
11820 /* pthread test headers */
11821 #include <pthread.h>
11822 #if HAVE_PTHREADS < 7
11826 #define NULL (void*)0
11829 static void *task(p)
11832 return (void *) (p == NULL);
11837 /* pthread test function */
11838 #ifndef PTHREAD_CREATE_DETACHED
11839 #define PTHREAD_CREATE_DETACHED 1
11843 int detach = PTHREAD_CREATE_DETACHED;
11845 #if HAVE_PTHREADS > 4
11846 /* Final pthreads */
11847 pthread_attr_t attr;
11849 status = pthread_attr_init(&attr);
11850 if( status ) return status;
11852 #if HAVE_PTHREADS < 7
11853 status = pthread_attr_setdetachstate(&attr, &detach);
11854 if( status < 0 ) status = errno;
11856 status = pthread_attr_setdetachstate(&attr, detach);
11858 if( status ) return status;
11859 status = pthread_create( &t, &attr, task, NULL );
11860 #if HAVE_PTHREADS < 7
11861 if( status < 0 ) status = errno;
11863 if( status ) return status;
11865 /* Draft 4 pthreads */
11866 status = pthread_create( &t, pthread_attr_default, task, NULL );
11867 if( status ) return errno;
11869 /* give thread a chance to complete */
11870 /* it should remain joinable and hence detachable */
11873 status = pthread_detach( &t );
11874 if( status ) return errno;
11877 #ifdef HAVE_LINUX_THREADS
11878 pthread_kill_other_threads_np();
11885 if { (eval echo configure:11886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11887 ol_cv_pthread_kthread=yes
11889 echo "configure: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11892 ol_cv_pthread_kthread=no
11896 cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 /* pthread test headers */
11900 #include <pthread.h>
11901 #if HAVE_PTHREADS < 7
11905 #define NULL (void*)0
11908 static void *task(p)
11911 return (void *) (p == NULL);
11915 int main(argc, argv)
11920 /* pthread test function */
11921 #ifndef PTHREAD_CREATE_DETACHED
11922 #define PTHREAD_CREATE_DETACHED 1
11926 int detach = PTHREAD_CREATE_DETACHED;
11928 #if HAVE_PTHREADS > 4
11929 /* Final pthreads */
11930 pthread_attr_t attr;
11932 status = pthread_attr_init(&attr);
11933 if( status ) return status;
11935 #if HAVE_PTHREADS < 7
11936 status = pthread_attr_setdetachstate(&attr, &detach);
11937 if( status < 0 ) status = errno;
11939 status = pthread_attr_setdetachstate(&attr, detach);
11941 if( status ) return status;
11942 status = pthread_create( &t, &attr, task, NULL );
11943 #if HAVE_PTHREADS < 7
11944 if( status < 0 ) status = errno;
11946 if( status ) return status;
11948 /* Draft 4 pthreads */
11949 status = pthread_create( &t, pthread_attr_default, task, NULL );
11950 if( status ) return errno;
11952 /* give thread a chance to complete */
11953 /* it should remain joinable and hence detachable */
11956 status = pthread_detach( &t );
11957 if( status ) return errno;
11960 #ifdef HAVE_LINUX_THREADS
11961 pthread_kill_other_threads_np();
11969 if { (eval echo configure:11970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11971 ol_cv_pthread_kthread=yes
11973 echo "configure: failed program was:" >&5
11974 cat conftest.$ac_ext >&5
11976 ol_cv_pthread_kthread=no
11987 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
11989 if test $ol_cv_pthread_kthread = yes ; then
11990 ol_link_pthreads="-kthread"
11991 ol_link_threads=posix
11995 # Pthread try link: -pthread (ol_cv_pthread_pthread)
11996 if test "$ol_link_threads" = no ; then
11998 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
11999 echo "configure:12000: checking for pthread link with -pthread" >&5
12000 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12001 echo $ac_n "(cached) $ac_c" 1>&6
12006 LIBS="-pthread $LIBS"
12008 if test "$cross_compiling" = yes; then
12009 cat > conftest.$ac_ext <<EOF
12010 #line 12011 "configure"
12011 #include "confdefs.h"
12012 /* pthread test headers */
12013 #include <pthread.h>
12014 #if HAVE_PTHREADS < 7
12018 #define NULL (void*)0
12021 static void *task(p)
12024 return (void *) (p == NULL);
12029 /* pthread test function */
12030 #ifndef PTHREAD_CREATE_DETACHED
12031 #define PTHREAD_CREATE_DETACHED 1
12035 int detach = PTHREAD_CREATE_DETACHED;
12037 #if HAVE_PTHREADS > 4
12038 /* Final pthreads */
12039 pthread_attr_t attr;
12041 status = pthread_attr_init(&attr);
12042 if( status ) return status;
12044 #if HAVE_PTHREADS < 7
12045 status = pthread_attr_setdetachstate(&attr, &detach);
12046 if( status < 0 ) status = errno;
12048 status = pthread_attr_setdetachstate(&attr, detach);
12050 if( status ) return status;
12051 status = pthread_create( &t, &attr, task, NULL );
12052 #if HAVE_PTHREADS < 7
12053 if( status < 0 ) status = errno;
12055 if( status ) return status;
12057 /* Draft 4 pthreads */
12058 status = pthread_create( &t, pthread_attr_default, task, NULL );
12059 if( status ) return errno;
12061 /* give thread a chance to complete */
12062 /* it should remain joinable and hence detachable */
12065 status = pthread_detach( &t );
12066 if( status ) return errno;
12069 #ifdef HAVE_LINUX_THREADS
12070 pthread_kill_other_threads_np();
12077 if { (eval echo configure:12078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12079 ol_cv_pthread_pthread=yes
12081 echo "configure: failed program was:" >&5
12082 cat conftest.$ac_ext >&5
12084 ol_cv_pthread_pthread=no
12088 cat > conftest.$ac_ext <<EOF
12089 #line 12090 "configure"
12090 #include "confdefs.h"
12091 /* pthread test headers */
12092 #include <pthread.h>
12093 #if HAVE_PTHREADS < 7
12097 #define NULL (void*)0
12100 static void *task(p)
12103 return (void *) (p == NULL);
12107 int main(argc, argv)
12112 /* pthread test function */
12113 #ifndef PTHREAD_CREATE_DETACHED
12114 #define PTHREAD_CREATE_DETACHED 1
12118 int detach = PTHREAD_CREATE_DETACHED;
12120 #if HAVE_PTHREADS > 4
12121 /* Final pthreads */
12122 pthread_attr_t attr;
12124 status = pthread_attr_init(&attr);
12125 if( status ) return status;
12127 #if HAVE_PTHREADS < 7
12128 status = pthread_attr_setdetachstate(&attr, &detach);
12129 if( status < 0 ) status = errno;
12131 status = pthread_attr_setdetachstate(&attr, detach);
12133 if( status ) return status;
12134 status = pthread_create( &t, &attr, task, NULL );
12135 #if HAVE_PTHREADS < 7
12136 if( status < 0 ) status = errno;
12138 if( status ) return status;
12140 /* Draft 4 pthreads */
12141 status = pthread_create( &t, pthread_attr_default, task, NULL );
12142 if( status ) return errno;
12144 /* give thread a chance to complete */
12145 /* it should remain joinable and hence detachable */
12148 status = pthread_detach( &t );
12149 if( status ) return errno;
12152 #ifdef HAVE_LINUX_THREADS
12153 pthread_kill_other_threads_np();
12161 if { (eval echo configure:12162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12163 ol_cv_pthread_pthread=yes
12165 echo "configure: failed program was:" >&5
12166 cat conftest.$ac_ext >&5
12168 ol_cv_pthread_pthread=no
12179 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12181 if test $ol_cv_pthread_pthread = yes ; then
12182 ol_link_pthreads="-pthread"
12183 ol_link_threads=posix
12187 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12188 if test "$ol_link_threads" = no ; then
12190 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12191 echo "configure:12192: checking for pthread link with -pthreads" >&5
12192 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12193 echo $ac_n "(cached) $ac_c" 1>&6
12198 LIBS="-pthreads $LIBS"
12200 if test "$cross_compiling" = yes; then
12201 cat > conftest.$ac_ext <<EOF
12202 #line 12203 "configure"
12203 #include "confdefs.h"
12204 /* pthread test headers */
12205 #include <pthread.h>
12206 #if HAVE_PTHREADS < 7
12210 #define NULL (void*)0
12213 static void *task(p)
12216 return (void *) (p == NULL);
12221 /* pthread test function */
12222 #ifndef PTHREAD_CREATE_DETACHED
12223 #define PTHREAD_CREATE_DETACHED 1
12227 int detach = PTHREAD_CREATE_DETACHED;
12229 #if HAVE_PTHREADS > 4
12230 /* Final pthreads */
12231 pthread_attr_t attr;
12233 status = pthread_attr_init(&attr);
12234 if( status ) return status;
12236 #if HAVE_PTHREADS < 7
12237 status = pthread_attr_setdetachstate(&attr, &detach);
12238 if( status < 0 ) status = errno;
12240 status = pthread_attr_setdetachstate(&attr, detach);
12242 if( status ) return status;
12243 status = pthread_create( &t, &attr, task, NULL );
12244 #if HAVE_PTHREADS < 7
12245 if( status < 0 ) status = errno;
12247 if( status ) return status;
12249 /* Draft 4 pthreads */
12250 status = pthread_create( &t, pthread_attr_default, task, NULL );
12251 if( status ) return errno;
12253 /* give thread a chance to complete */
12254 /* it should remain joinable and hence detachable */
12257 status = pthread_detach( &t );
12258 if( status ) return errno;
12261 #ifdef HAVE_LINUX_THREADS
12262 pthread_kill_other_threads_np();
12269 if { (eval echo configure:12270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12271 ol_cv_pthread_pthreads=yes
12273 echo "configure: failed program was:" >&5
12274 cat conftest.$ac_ext >&5
12276 ol_cv_pthread_pthreads=no
12280 cat > conftest.$ac_ext <<EOF
12281 #line 12282 "configure"
12282 #include "confdefs.h"
12283 /* pthread test headers */
12284 #include <pthread.h>
12285 #if HAVE_PTHREADS < 7
12289 #define NULL (void*)0
12292 static void *task(p)
12295 return (void *) (p == NULL);
12299 int main(argc, argv)
12304 /* pthread test function */
12305 #ifndef PTHREAD_CREATE_DETACHED
12306 #define PTHREAD_CREATE_DETACHED 1
12310 int detach = PTHREAD_CREATE_DETACHED;
12312 #if HAVE_PTHREADS > 4
12313 /* Final pthreads */
12314 pthread_attr_t attr;
12316 status = pthread_attr_init(&attr);
12317 if( status ) return status;
12319 #if HAVE_PTHREADS < 7
12320 status = pthread_attr_setdetachstate(&attr, &detach);
12321 if( status < 0 ) status = errno;
12323 status = pthread_attr_setdetachstate(&attr, detach);
12325 if( status ) return status;
12326 status = pthread_create( &t, &attr, task, NULL );
12327 #if HAVE_PTHREADS < 7
12328 if( status < 0 ) status = errno;
12330 if( status ) return status;
12332 /* Draft 4 pthreads */
12333 status = pthread_create( &t, pthread_attr_default, task, NULL );
12334 if( status ) return errno;
12336 /* give thread a chance to complete */
12337 /* it should remain joinable and hence detachable */
12340 status = pthread_detach( &t );
12341 if( status ) return errno;
12344 #ifdef HAVE_LINUX_THREADS
12345 pthread_kill_other_threads_np();
12353 if { (eval echo configure:12354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12355 ol_cv_pthread_pthreads=yes
12357 echo "configure: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12360 ol_cv_pthread_pthreads=no
12371 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12373 if test $ol_cv_pthread_pthreads = yes ; then
12374 ol_link_pthreads="-pthreads"
12375 ol_link_threads=posix
12379 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12380 if test "$ol_link_threads" = no ; then
12382 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12383 echo "configure:12384: checking for pthread link with -mthreads" >&5
12384 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12385 echo $ac_n "(cached) $ac_c" 1>&6
12390 LIBS="-mthreads $LIBS"
12392 if test "$cross_compiling" = yes; then
12393 cat > conftest.$ac_ext <<EOF
12394 #line 12395 "configure"
12395 #include "confdefs.h"
12396 /* pthread test headers */
12397 #include <pthread.h>
12398 #if HAVE_PTHREADS < 7
12402 #define NULL (void*)0
12405 static void *task(p)
12408 return (void *) (p == NULL);
12413 /* pthread test function */
12414 #ifndef PTHREAD_CREATE_DETACHED
12415 #define PTHREAD_CREATE_DETACHED 1
12419 int detach = PTHREAD_CREATE_DETACHED;
12421 #if HAVE_PTHREADS > 4
12422 /* Final pthreads */
12423 pthread_attr_t attr;
12425 status = pthread_attr_init(&attr);
12426 if( status ) return status;
12428 #if HAVE_PTHREADS < 7
12429 status = pthread_attr_setdetachstate(&attr, &detach);
12430 if( status < 0 ) status = errno;
12432 status = pthread_attr_setdetachstate(&attr, detach);
12434 if( status ) return status;
12435 status = pthread_create( &t, &attr, task, NULL );
12436 #if HAVE_PTHREADS < 7
12437 if( status < 0 ) status = errno;
12439 if( status ) return status;
12441 /* Draft 4 pthreads */
12442 status = pthread_create( &t, pthread_attr_default, task, NULL );
12443 if( status ) return errno;
12445 /* give thread a chance to complete */
12446 /* it should remain joinable and hence detachable */
12449 status = pthread_detach( &t );
12450 if( status ) return errno;
12453 #ifdef HAVE_LINUX_THREADS
12454 pthread_kill_other_threads_np();
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12463 ol_cv_pthread_mthreads=yes
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12468 ol_cv_pthread_mthreads=no
12472 cat > conftest.$ac_ext <<EOF
12473 #line 12474 "configure"
12474 #include "confdefs.h"
12475 /* pthread test headers */
12476 #include <pthread.h>
12477 #if HAVE_PTHREADS < 7
12481 #define NULL (void*)0
12484 static void *task(p)
12487 return (void *) (p == NULL);
12491 int main(argc, argv)
12496 /* pthread test function */
12497 #ifndef PTHREAD_CREATE_DETACHED
12498 #define PTHREAD_CREATE_DETACHED 1
12502 int detach = PTHREAD_CREATE_DETACHED;
12504 #if HAVE_PTHREADS > 4
12505 /* Final pthreads */
12506 pthread_attr_t attr;
12508 status = pthread_attr_init(&attr);
12509 if( status ) return status;
12511 #if HAVE_PTHREADS < 7
12512 status = pthread_attr_setdetachstate(&attr, &detach);
12513 if( status < 0 ) status = errno;
12515 status = pthread_attr_setdetachstate(&attr, detach);
12517 if( status ) return status;
12518 status = pthread_create( &t, &attr, task, NULL );
12519 #if HAVE_PTHREADS < 7
12520 if( status < 0 ) status = errno;
12522 if( status ) return status;
12524 /* Draft 4 pthreads */
12525 status = pthread_create( &t, pthread_attr_default, task, NULL );
12526 if( status ) return errno;
12528 /* give thread a chance to complete */
12529 /* it should remain joinable and hence detachable */
12532 status = pthread_detach( &t );
12533 if( status ) return errno;
12536 #ifdef HAVE_LINUX_THREADS
12537 pthread_kill_other_threads_np();
12545 if { (eval echo configure:12546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12547 ol_cv_pthread_mthreads=yes
12549 echo "configure: failed program was:" >&5
12550 cat conftest.$ac_ext >&5
12552 ol_cv_pthread_mthreads=no
12563 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12565 if test $ol_cv_pthread_mthreads = yes ; then
12566 ol_link_pthreads="-mthreads"
12567 ol_link_threads=posix
12571 # Pthread try link: -thread (ol_cv_pthread_thread)
12572 if test "$ol_link_threads" = no ; then
12574 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12575 echo "configure:12576: checking for pthread link with -thread" >&5
12576 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12577 echo $ac_n "(cached) $ac_c" 1>&6
12582 LIBS="-thread $LIBS"
12584 if test "$cross_compiling" = yes; then
12585 cat > conftest.$ac_ext <<EOF
12586 #line 12587 "configure"
12587 #include "confdefs.h"
12588 /* pthread test headers */
12589 #include <pthread.h>
12590 #if HAVE_PTHREADS < 7
12594 #define NULL (void*)0
12597 static void *task(p)
12600 return (void *) (p == NULL);
12605 /* pthread test function */
12606 #ifndef PTHREAD_CREATE_DETACHED
12607 #define PTHREAD_CREATE_DETACHED 1
12611 int detach = PTHREAD_CREATE_DETACHED;
12613 #if HAVE_PTHREADS > 4
12614 /* Final pthreads */
12615 pthread_attr_t attr;
12617 status = pthread_attr_init(&attr);
12618 if( status ) return status;
12620 #if HAVE_PTHREADS < 7
12621 status = pthread_attr_setdetachstate(&attr, &detach);
12622 if( status < 0 ) status = errno;
12624 status = pthread_attr_setdetachstate(&attr, detach);
12626 if( status ) return status;
12627 status = pthread_create( &t, &attr, task, NULL );
12628 #if HAVE_PTHREADS < 7
12629 if( status < 0 ) status = errno;
12631 if( status ) return status;
12633 /* Draft 4 pthreads */
12634 status = pthread_create( &t, pthread_attr_default, task, NULL );
12635 if( status ) return errno;
12637 /* give thread a chance to complete */
12638 /* it should remain joinable and hence detachable */
12641 status = pthread_detach( &t );
12642 if( status ) return errno;
12645 #ifdef HAVE_LINUX_THREADS
12646 pthread_kill_other_threads_np();
12653 if { (eval echo configure:12654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12655 ol_cv_pthread_thread=yes
12657 echo "configure: failed program was:" >&5
12658 cat conftest.$ac_ext >&5
12660 ol_cv_pthread_thread=no
12664 cat > conftest.$ac_ext <<EOF
12665 #line 12666 "configure"
12666 #include "confdefs.h"
12667 /* pthread test headers */
12668 #include <pthread.h>
12669 #if HAVE_PTHREADS < 7
12673 #define NULL (void*)0
12676 static void *task(p)
12679 return (void *) (p == NULL);
12683 int main(argc, argv)
12688 /* pthread test function */
12689 #ifndef PTHREAD_CREATE_DETACHED
12690 #define PTHREAD_CREATE_DETACHED 1
12694 int detach = PTHREAD_CREATE_DETACHED;
12696 #if HAVE_PTHREADS > 4
12697 /* Final pthreads */
12698 pthread_attr_t attr;
12700 status = pthread_attr_init(&attr);
12701 if( status ) return status;
12703 #if HAVE_PTHREADS < 7
12704 status = pthread_attr_setdetachstate(&attr, &detach);
12705 if( status < 0 ) status = errno;
12707 status = pthread_attr_setdetachstate(&attr, detach);
12709 if( status ) return status;
12710 status = pthread_create( &t, &attr, task, NULL );
12711 #if HAVE_PTHREADS < 7
12712 if( status < 0 ) status = errno;
12714 if( status ) return status;
12716 /* Draft 4 pthreads */
12717 status = pthread_create( &t, pthread_attr_default, task, NULL );
12718 if( status ) return errno;
12720 /* give thread a chance to complete */
12721 /* it should remain joinable and hence detachable */
12724 status = pthread_detach( &t );
12725 if( status ) return errno;
12728 #ifdef HAVE_LINUX_THREADS
12729 pthread_kill_other_threads_np();
12737 if { (eval echo configure:12738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12739 ol_cv_pthread_thread=yes
12741 echo "configure: failed program was:" >&5
12742 cat conftest.$ac_ext >&5
12744 ol_cv_pthread_thread=no
12755 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12757 if test $ol_cv_pthread_thread = yes ; then
12758 ol_link_pthreads="-thread"
12759 ol_link_threads=posix
12764 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12765 if test "$ol_link_threads" = no ; then
12766 # try -lpthread -lmach -lexc -lc_r
12767 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12768 echo "configure:12769: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12769 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12770 echo $ac_n "(cached) $ac_c" 1>&6
12775 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12777 if test "$cross_compiling" = yes; then
12778 cat > conftest.$ac_ext <<EOF
12779 #line 12780 "configure"
12780 #include "confdefs.h"
12781 /* pthread test headers */
12782 #include <pthread.h>
12783 #if HAVE_PTHREADS < 7
12787 #define NULL (void*)0
12790 static void *task(p)
12793 return (void *) (p == NULL);
12798 /* pthread test function */
12799 #ifndef PTHREAD_CREATE_DETACHED
12800 #define PTHREAD_CREATE_DETACHED 1
12804 int detach = PTHREAD_CREATE_DETACHED;
12806 #if HAVE_PTHREADS > 4
12807 /* Final pthreads */
12808 pthread_attr_t attr;
12810 status = pthread_attr_init(&attr);
12811 if( status ) return status;
12813 #if HAVE_PTHREADS < 7
12814 status = pthread_attr_setdetachstate(&attr, &detach);
12815 if( status < 0 ) status = errno;
12817 status = pthread_attr_setdetachstate(&attr, detach);
12819 if( status ) return status;
12820 status = pthread_create( &t, &attr, task, NULL );
12821 #if HAVE_PTHREADS < 7
12822 if( status < 0 ) status = errno;
12824 if( status ) return status;
12826 /* Draft 4 pthreads */
12827 status = pthread_create( &t, pthread_attr_default, task, NULL );
12828 if( status ) return errno;
12830 /* give thread a chance to complete */
12831 /* it should remain joinable and hence detachable */
12834 status = pthread_detach( &t );
12835 if( status ) return errno;
12838 #ifdef HAVE_LINUX_THREADS
12839 pthread_kill_other_threads_np();
12846 if { (eval echo configure:12847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12848 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12850 echo "configure: failed program was:" >&5
12851 cat conftest.$ac_ext >&5
12853 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12857 cat > conftest.$ac_ext <<EOF
12858 #line 12859 "configure"
12859 #include "confdefs.h"
12860 /* pthread test headers */
12861 #include <pthread.h>
12862 #if HAVE_PTHREADS < 7
12866 #define NULL (void*)0
12869 static void *task(p)
12872 return (void *) (p == NULL);
12876 int main(argc, argv)
12881 /* pthread test function */
12882 #ifndef PTHREAD_CREATE_DETACHED
12883 #define PTHREAD_CREATE_DETACHED 1
12887 int detach = PTHREAD_CREATE_DETACHED;
12889 #if HAVE_PTHREADS > 4
12890 /* Final pthreads */
12891 pthread_attr_t attr;
12893 status = pthread_attr_init(&attr);
12894 if( status ) return status;
12896 #if HAVE_PTHREADS < 7
12897 status = pthread_attr_setdetachstate(&attr, &detach);
12898 if( status < 0 ) status = errno;
12900 status = pthread_attr_setdetachstate(&attr, detach);
12902 if( status ) return status;
12903 status = pthread_create( &t, &attr, task, NULL );
12904 #if HAVE_PTHREADS < 7
12905 if( status < 0 ) status = errno;
12907 if( status ) return status;
12909 /* Draft 4 pthreads */
12910 status = pthread_create( &t, pthread_attr_default, task, NULL );
12911 if( status ) return errno;
12913 /* give thread a chance to complete */
12914 /* it should remain joinable and hence detachable */
12917 status = pthread_detach( &t );
12918 if( status ) return errno;
12921 #ifdef HAVE_LINUX_THREADS
12922 pthread_kill_other_threads_np();
12930 if { (eval echo configure:12931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12932 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12934 echo "configure: failed program was:" >&5
12935 cat conftest.$ac_ext >&5
12937 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12948 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12950 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12951 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12952 ol_link_threads=posix
12956 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12957 if test "$ol_link_threads" = no ; then
12958 # try -lpthread -lmach -lexc
12959 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12960 echo "configure:12961: checking for pthread link with -lpthread -lmach -lexc" >&5
12961 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12962 echo $ac_n "(cached) $ac_c" 1>&6
12967 LIBS="-lpthread -lmach -lexc $LIBS"
12969 if test "$cross_compiling" = yes; then
12970 cat > conftest.$ac_ext <<EOF
12971 #line 12972 "configure"
12972 #include "confdefs.h"
12973 /* pthread test headers */
12974 #include <pthread.h>
12975 #if HAVE_PTHREADS < 7
12979 #define NULL (void*)0
12982 static void *task(p)
12985 return (void *) (p == NULL);
12990 /* pthread test function */
12991 #ifndef PTHREAD_CREATE_DETACHED
12992 #define PTHREAD_CREATE_DETACHED 1
12996 int detach = PTHREAD_CREATE_DETACHED;
12998 #if HAVE_PTHREADS > 4
12999 /* Final pthreads */
13000 pthread_attr_t attr;
13002 status = pthread_attr_init(&attr);
13003 if( status ) return status;
13005 #if HAVE_PTHREADS < 7
13006 status = pthread_attr_setdetachstate(&attr, &detach);
13007 if( status < 0 ) status = errno;
13009 status = pthread_attr_setdetachstate(&attr, detach);
13011 if( status ) return status;
13012 status = pthread_create( &t, &attr, task, NULL );
13013 #if HAVE_PTHREADS < 7
13014 if( status < 0 ) status = errno;
13016 if( status ) return status;
13018 /* Draft 4 pthreads */
13019 status = pthread_create( &t, pthread_attr_default, task, NULL );
13020 if( status ) return errno;
13022 /* give thread a chance to complete */
13023 /* it should remain joinable and hence detachable */
13026 status = pthread_detach( &t );
13027 if( status ) return errno;
13030 #ifdef HAVE_LINUX_THREADS
13031 pthread_kill_other_threads_np();
13038 if { (eval echo configure:13039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13040 ol_cv_pthread_lpthread_lmach_lexc=yes
13042 echo "configure: failed program was:" >&5
13043 cat conftest.$ac_ext >&5
13045 ol_cv_pthread_lpthread_lmach_lexc=no
13049 cat > conftest.$ac_ext <<EOF
13050 #line 13051 "configure"
13051 #include "confdefs.h"
13052 /* pthread test headers */
13053 #include <pthread.h>
13054 #if HAVE_PTHREADS < 7
13058 #define NULL (void*)0
13061 static void *task(p)
13064 return (void *) (p == NULL);
13068 int main(argc, argv)
13073 /* pthread test function */
13074 #ifndef PTHREAD_CREATE_DETACHED
13075 #define PTHREAD_CREATE_DETACHED 1
13079 int detach = PTHREAD_CREATE_DETACHED;
13081 #if HAVE_PTHREADS > 4
13082 /* Final pthreads */
13083 pthread_attr_t attr;
13085 status = pthread_attr_init(&attr);
13086 if( status ) return status;
13088 #if HAVE_PTHREADS < 7
13089 status = pthread_attr_setdetachstate(&attr, &detach);
13090 if( status < 0 ) status = errno;
13092 status = pthread_attr_setdetachstate(&attr, detach);
13094 if( status ) return status;
13095 status = pthread_create( &t, &attr, task, NULL );
13096 #if HAVE_PTHREADS < 7
13097 if( status < 0 ) status = errno;
13099 if( status ) return status;
13101 /* Draft 4 pthreads */
13102 status = pthread_create( &t, pthread_attr_default, task, NULL );
13103 if( status ) return errno;
13105 /* give thread a chance to complete */
13106 /* it should remain joinable and hence detachable */
13109 status = pthread_detach( &t );
13110 if( status ) return errno;
13113 #ifdef HAVE_LINUX_THREADS
13114 pthread_kill_other_threads_np();
13122 if { (eval echo configure:13123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13124 ol_cv_pthread_lpthread_lmach_lexc=yes
13126 echo "configure: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13129 ol_cv_pthread_lpthread_lmach_lexc=no
13140 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13142 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13143 ol_link_pthreads="-lpthread -lmach -lexc"
13144 ol_link_threads=posix
13149 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13150 if test "$ol_link_threads" = no ; then
13151 # try -lpthread -Wl,-woff,85
13152 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13153 echo "configure:13154: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13154 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13155 echo $ac_n "(cached) $ac_c" 1>&6
13160 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13162 if test "$cross_compiling" = yes; then
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 /* pthread test headers */
13167 #include <pthread.h>
13168 #if HAVE_PTHREADS < 7
13172 #define NULL (void*)0
13175 static void *task(p)
13178 return (void *) (p == NULL);
13183 /* pthread test function */
13184 #ifndef PTHREAD_CREATE_DETACHED
13185 #define PTHREAD_CREATE_DETACHED 1
13189 int detach = PTHREAD_CREATE_DETACHED;
13191 #if HAVE_PTHREADS > 4
13192 /* Final pthreads */
13193 pthread_attr_t attr;
13195 status = pthread_attr_init(&attr);
13196 if( status ) return status;
13198 #if HAVE_PTHREADS < 7
13199 status = pthread_attr_setdetachstate(&attr, &detach);
13200 if( status < 0 ) status = errno;
13202 status = pthread_attr_setdetachstate(&attr, detach);
13204 if( status ) return status;
13205 status = pthread_create( &t, &attr, task, NULL );
13206 #if HAVE_PTHREADS < 7
13207 if( status < 0 ) status = errno;
13209 if( status ) return status;
13211 /* Draft 4 pthreads */
13212 status = pthread_create( &t, pthread_attr_default, task, NULL );
13213 if( status ) return errno;
13215 /* give thread a chance to complete */
13216 /* it should remain joinable and hence detachable */
13219 status = pthread_detach( &t );
13220 if( status ) return errno;
13223 #ifdef HAVE_LINUX_THREADS
13224 pthread_kill_other_threads_np();
13231 if { (eval echo configure:13232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13233 ol_cv_pthread_lib_lpthread_woff=yes
13235 echo "configure: failed program was:" >&5
13236 cat conftest.$ac_ext >&5
13238 ol_cv_pthread_lib_lpthread_woff=no
13242 cat > conftest.$ac_ext <<EOF
13243 #line 13244 "configure"
13244 #include "confdefs.h"
13245 /* pthread test headers */
13246 #include <pthread.h>
13247 #if HAVE_PTHREADS < 7
13251 #define NULL (void*)0
13254 static void *task(p)
13257 return (void *) (p == NULL);
13261 int main(argc, argv)
13266 /* pthread test function */
13267 #ifndef PTHREAD_CREATE_DETACHED
13268 #define PTHREAD_CREATE_DETACHED 1
13272 int detach = PTHREAD_CREATE_DETACHED;
13274 #if HAVE_PTHREADS > 4
13275 /* Final pthreads */
13276 pthread_attr_t attr;
13278 status = pthread_attr_init(&attr);
13279 if( status ) return status;
13281 #if HAVE_PTHREADS < 7
13282 status = pthread_attr_setdetachstate(&attr, &detach);
13283 if( status < 0 ) status = errno;
13285 status = pthread_attr_setdetachstate(&attr, detach);
13287 if( status ) return status;
13288 status = pthread_create( &t, &attr, task, NULL );
13289 #if HAVE_PTHREADS < 7
13290 if( status < 0 ) status = errno;
13292 if( status ) return status;
13294 /* Draft 4 pthreads */
13295 status = pthread_create( &t, pthread_attr_default, task, NULL );
13296 if( status ) return errno;
13298 /* give thread a chance to complete */
13299 /* it should remain joinable and hence detachable */
13302 status = pthread_detach( &t );
13303 if( status ) return errno;
13306 #ifdef HAVE_LINUX_THREADS
13307 pthread_kill_other_threads_np();
13315 if { (eval echo configure:13316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13317 ol_cv_pthread_lib_lpthread_woff=yes
13319 echo "configure: failed program was:" >&5
13320 cat conftest.$ac_ext >&5
13322 ol_cv_pthread_lib_lpthread_woff=no
13333 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13335 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13336 ol_link_pthreads="-lpthread -Wl,-woff,85"
13337 ol_link_threads=posix
13342 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13343 if test "$ol_link_threads" = no ; then
13345 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13346 echo "configure:13347: checking for pthread link with -lpthread" >&5
13347 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13353 LIBS="-lpthread $LIBS"
13355 if test "$cross_compiling" = yes; then
13356 cat > conftest.$ac_ext <<EOF
13357 #line 13358 "configure"
13358 #include "confdefs.h"
13359 /* pthread test headers */
13360 #include <pthread.h>
13361 #if HAVE_PTHREADS < 7
13365 #define NULL (void*)0
13368 static void *task(p)
13371 return (void *) (p == NULL);
13376 /* pthread test function */
13377 #ifndef PTHREAD_CREATE_DETACHED
13378 #define PTHREAD_CREATE_DETACHED 1
13382 int detach = PTHREAD_CREATE_DETACHED;
13384 #if HAVE_PTHREADS > 4
13385 /* Final pthreads */
13386 pthread_attr_t attr;
13388 status = pthread_attr_init(&attr);
13389 if( status ) return status;
13391 #if HAVE_PTHREADS < 7
13392 status = pthread_attr_setdetachstate(&attr, &detach);
13393 if( status < 0 ) status = errno;
13395 status = pthread_attr_setdetachstate(&attr, detach);
13397 if( status ) return status;
13398 status = pthread_create( &t, &attr, task, NULL );
13399 #if HAVE_PTHREADS < 7
13400 if( status < 0 ) status = errno;
13402 if( status ) return status;
13404 /* Draft 4 pthreads */
13405 status = pthread_create( &t, pthread_attr_default, task, NULL );
13406 if( status ) return errno;
13408 /* give thread a chance to complete */
13409 /* it should remain joinable and hence detachable */
13412 status = pthread_detach( &t );
13413 if( status ) return errno;
13416 #ifdef HAVE_LINUX_THREADS
13417 pthread_kill_other_threads_np();
13424 if { (eval echo configure:13425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13426 ol_cv_pthread_lpthread=yes
13428 echo "configure: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13431 ol_cv_pthread_lpthread=no
13435 cat > conftest.$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13438 /* pthread test headers */
13439 #include <pthread.h>
13440 #if HAVE_PTHREADS < 7
13444 #define NULL (void*)0
13447 static void *task(p)
13450 return (void *) (p == NULL);
13454 int main(argc, argv)
13459 /* pthread test function */
13460 #ifndef PTHREAD_CREATE_DETACHED
13461 #define PTHREAD_CREATE_DETACHED 1
13465 int detach = PTHREAD_CREATE_DETACHED;
13467 #if HAVE_PTHREADS > 4
13468 /* Final pthreads */
13469 pthread_attr_t attr;
13471 status = pthread_attr_init(&attr);
13472 if( status ) return status;
13474 #if HAVE_PTHREADS < 7
13475 status = pthread_attr_setdetachstate(&attr, &detach);
13476 if( status < 0 ) status = errno;
13478 status = pthread_attr_setdetachstate(&attr, detach);
13480 if( status ) return status;
13481 status = pthread_create( &t, &attr, task, NULL );
13482 #if HAVE_PTHREADS < 7
13483 if( status < 0 ) status = errno;
13485 if( status ) return status;
13487 /* Draft 4 pthreads */
13488 status = pthread_create( &t, pthread_attr_default, task, NULL );
13489 if( status ) return errno;
13491 /* give thread a chance to complete */
13492 /* it should remain joinable and hence detachable */
13495 status = pthread_detach( &t );
13496 if( status ) return errno;
13499 #ifdef HAVE_LINUX_THREADS
13500 pthread_kill_other_threads_np();
13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13510 ol_cv_pthread_lpthread=yes
13512 echo "configure: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13515 ol_cv_pthread_lpthread=no
13526 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13528 if test $ol_cv_pthread_lpthread = yes ; then
13529 ol_link_pthreads="-lpthread"
13530 ol_link_threads=posix
13534 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13535 if test "$ol_link_threads" = no ; then
13537 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13538 echo "configure:13539: checking for pthread link with -lc_r" >&5
13539 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13540 echo $ac_n "(cached) $ac_c" 1>&6
13547 if test "$cross_compiling" = yes; then
13548 cat > conftest.$ac_ext <<EOF
13549 #line 13550 "configure"
13550 #include "confdefs.h"
13551 /* pthread test headers */
13552 #include <pthread.h>
13553 #if HAVE_PTHREADS < 7
13557 #define NULL (void*)0
13560 static void *task(p)
13563 return (void *) (p == NULL);
13568 /* pthread test function */
13569 #ifndef PTHREAD_CREATE_DETACHED
13570 #define PTHREAD_CREATE_DETACHED 1
13574 int detach = PTHREAD_CREATE_DETACHED;
13576 #if HAVE_PTHREADS > 4
13577 /* Final pthreads */
13578 pthread_attr_t attr;
13580 status = pthread_attr_init(&attr);
13581 if( status ) return status;
13583 #if HAVE_PTHREADS < 7
13584 status = pthread_attr_setdetachstate(&attr, &detach);
13585 if( status < 0 ) status = errno;
13587 status = pthread_attr_setdetachstate(&attr, detach);
13589 if( status ) return status;
13590 status = pthread_create( &t, &attr, task, NULL );
13591 #if HAVE_PTHREADS < 7
13592 if( status < 0 ) status = errno;
13594 if( status ) return status;
13596 /* Draft 4 pthreads */
13597 status = pthread_create( &t, pthread_attr_default, task, NULL );
13598 if( status ) return errno;
13600 /* give thread a chance to complete */
13601 /* it should remain joinable and hence detachable */
13604 status = pthread_detach( &t );
13605 if( status ) return errno;
13608 #ifdef HAVE_LINUX_THREADS
13609 pthread_kill_other_threads_np();
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13618 ol_cv_pthread_lc_r=yes
13620 echo "configure: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13623 ol_cv_pthread_lc_r=no
13627 cat > conftest.$ac_ext <<EOF
13628 #line 13629 "configure"
13629 #include "confdefs.h"
13630 /* pthread test headers */
13631 #include <pthread.h>
13632 #if HAVE_PTHREADS < 7
13636 #define NULL (void*)0
13639 static void *task(p)
13642 return (void *) (p == NULL);
13646 int main(argc, argv)
13651 /* pthread test function */
13652 #ifndef PTHREAD_CREATE_DETACHED
13653 #define PTHREAD_CREATE_DETACHED 1
13657 int detach = PTHREAD_CREATE_DETACHED;
13659 #if HAVE_PTHREADS > 4
13660 /* Final pthreads */
13661 pthread_attr_t attr;
13663 status = pthread_attr_init(&attr);
13664 if( status ) return status;
13666 #if HAVE_PTHREADS < 7
13667 status = pthread_attr_setdetachstate(&attr, &detach);
13668 if( status < 0 ) status = errno;
13670 status = pthread_attr_setdetachstate(&attr, detach);
13672 if( status ) return status;
13673 status = pthread_create( &t, &attr, task, NULL );
13674 #if HAVE_PTHREADS < 7
13675 if( status < 0 ) status = errno;
13677 if( status ) return status;
13679 /* Draft 4 pthreads */
13680 status = pthread_create( &t, pthread_attr_default, task, NULL );
13681 if( status ) return errno;
13683 /* give thread a chance to complete */
13684 /* it should remain joinable and hence detachable */
13687 status = pthread_detach( &t );
13688 if( status ) return errno;
13691 #ifdef HAVE_LINUX_THREADS
13692 pthread_kill_other_threads_np();
13700 if { (eval echo configure:13701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13702 ol_cv_pthread_lc_r=yes
13704 echo "configure: failed program was:" >&5
13705 cat conftest.$ac_ext >&5
13707 ol_cv_pthread_lc_r=no
13718 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13720 if test $ol_cv_pthread_lc_r = yes ; then
13721 ol_link_pthreads="-lc_r"
13722 ol_link_threads=posix
13727 # Pthread try link: -threads (ol_cv_pthread_threads)
13728 if test "$ol_link_threads" = no ; then
13730 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13731 echo "configure:13732: checking for pthread link with -threads" >&5
13732 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13738 LIBS="-threads $LIBS"
13740 if test "$cross_compiling" = yes; then
13741 cat > conftest.$ac_ext <<EOF
13742 #line 13743 "configure"
13743 #include "confdefs.h"
13744 /* pthread test headers */
13745 #include <pthread.h>
13746 #if HAVE_PTHREADS < 7
13750 #define NULL (void*)0
13753 static void *task(p)
13756 return (void *) (p == NULL);
13761 /* pthread test function */
13762 #ifndef PTHREAD_CREATE_DETACHED
13763 #define PTHREAD_CREATE_DETACHED 1
13767 int detach = PTHREAD_CREATE_DETACHED;
13769 #if HAVE_PTHREADS > 4
13770 /* Final pthreads */
13771 pthread_attr_t attr;
13773 status = pthread_attr_init(&attr);
13774 if( status ) return status;
13776 #if HAVE_PTHREADS < 7
13777 status = pthread_attr_setdetachstate(&attr, &detach);
13778 if( status < 0 ) status = errno;
13780 status = pthread_attr_setdetachstate(&attr, detach);
13782 if( status ) return status;
13783 status = pthread_create( &t, &attr, task, NULL );
13784 #if HAVE_PTHREADS < 7
13785 if( status < 0 ) status = errno;
13787 if( status ) return status;
13789 /* Draft 4 pthreads */
13790 status = pthread_create( &t, pthread_attr_default, task, NULL );
13791 if( status ) return errno;
13793 /* give thread a chance to complete */
13794 /* it should remain joinable and hence detachable */
13797 status = pthread_detach( &t );
13798 if( status ) return errno;
13801 #ifdef HAVE_LINUX_THREADS
13802 pthread_kill_other_threads_np();
13809 if { (eval echo configure:13810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13811 ol_cv_pthread_threads=yes
13813 echo "configure: failed program was:" >&5
13814 cat conftest.$ac_ext >&5
13816 ol_cv_pthread_threads=no
13820 cat > conftest.$ac_ext <<EOF
13821 #line 13822 "configure"
13822 #include "confdefs.h"
13823 /* pthread test headers */
13824 #include <pthread.h>
13825 #if HAVE_PTHREADS < 7
13829 #define NULL (void*)0
13832 static void *task(p)
13835 return (void *) (p == NULL);
13839 int main(argc, argv)
13844 /* pthread test function */
13845 #ifndef PTHREAD_CREATE_DETACHED
13846 #define PTHREAD_CREATE_DETACHED 1
13850 int detach = PTHREAD_CREATE_DETACHED;
13852 #if HAVE_PTHREADS > 4
13853 /* Final pthreads */
13854 pthread_attr_t attr;
13856 status = pthread_attr_init(&attr);
13857 if( status ) return status;
13859 #if HAVE_PTHREADS < 7
13860 status = pthread_attr_setdetachstate(&attr, &detach);
13861 if( status < 0 ) status = errno;
13863 status = pthread_attr_setdetachstate(&attr, detach);
13865 if( status ) return status;
13866 status = pthread_create( &t, &attr, task, NULL );
13867 #if HAVE_PTHREADS < 7
13868 if( status < 0 ) status = errno;
13870 if( status ) return status;
13872 /* Draft 4 pthreads */
13873 status = pthread_create( &t, pthread_attr_default, task, NULL );
13874 if( status ) return errno;
13876 /* give thread a chance to complete */
13877 /* it should remain joinable and hence detachable */
13880 status = pthread_detach( &t );
13881 if( status ) return errno;
13884 #ifdef HAVE_LINUX_THREADS
13885 pthread_kill_other_threads_np();
13893 if { (eval echo configure:13894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13895 ol_cv_pthread_threads=yes
13897 echo "configure: failed program was:" >&5
13898 cat conftest.$ac_ext >&5
13900 ol_cv_pthread_threads=no
13911 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13913 if test $ol_cv_pthread_threads = yes ; then
13914 ol_link_pthreads="-threads"
13915 ol_link_threads=posix
13920 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13921 if test "$ol_link_threads" = no ; then
13922 # try -lpthreads -lmach -lexc -lc_r
13923 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13924 echo "configure:13925: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13925 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13926 echo $ac_n "(cached) $ac_c" 1>&6
13931 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13933 if test "$cross_compiling" = yes; then
13934 cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 /* pthread test headers */
13938 #include <pthread.h>
13939 #if HAVE_PTHREADS < 7
13943 #define NULL (void*)0
13946 static void *task(p)
13949 return (void *) (p == NULL);
13954 /* pthread test function */
13955 #ifndef PTHREAD_CREATE_DETACHED
13956 #define PTHREAD_CREATE_DETACHED 1
13960 int detach = PTHREAD_CREATE_DETACHED;
13962 #if HAVE_PTHREADS > 4
13963 /* Final pthreads */
13964 pthread_attr_t attr;
13966 status = pthread_attr_init(&attr);
13967 if( status ) return status;
13969 #if HAVE_PTHREADS < 7
13970 status = pthread_attr_setdetachstate(&attr, &detach);
13971 if( status < 0 ) status = errno;
13973 status = pthread_attr_setdetachstate(&attr, detach);
13975 if( status ) return status;
13976 status = pthread_create( &t, &attr, task, NULL );
13977 #if HAVE_PTHREADS < 7
13978 if( status < 0 ) status = errno;
13980 if( status ) return status;
13982 /* Draft 4 pthreads */
13983 status = pthread_create( &t, pthread_attr_default, task, NULL );
13984 if( status ) return errno;
13986 /* give thread a chance to complete */
13987 /* it should remain joinable and hence detachable */
13990 status = pthread_detach( &t );
13991 if( status ) return errno;
13994 #ifdef HAVE_LINUX_THREADS
13995 pthread_kill_other_threads_np();
14002 if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14004 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14006 echo "configure: failed program was:" >&5
14007 cat conftest.$ac_ext >&5
14009 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14013 cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* pthread test headers */
14017 #include <pthread.h>
14018 #if HAVE_PTHREADS < 7
14022 #define NULL (void*)0
14025 static void *task(p)
14028 return (void *) (p == NULL);
14032 int main(argc, argv)
14037 /* pthread test function */
14038 #ifndef PTHREAD_CREATE_DETACHED
14039 #define PTHREAD_CREATE_DETACHED 1
14043 int detach = PTHREAD_CREATE_DETACHED;
14045 #if HAVE_PTHREADS > 4
14046 /* Final pthreads */
14047 pthread_attr_t attr;
14049 status = pthread_attr_init(&attr);
14050 if( status ) return status;
14052 #if HAVE_PTHREADS < 7
14053 status = pthread_attr_setdetachstate(&attr, &detach);
14054 if( status < 0 ) status = errno;
14056 status = pthread_attr_setdetachstate(&attr, detach);
14058 if( status ) return status;
14059 status = pthread_create( &t, &attr, task, NULL );
14060 #if HAVE_PTHREADS < 7
14061 if( status < 0 ) status = errno;
14063 if( status ) return status;
14065 /* Draft 4 pthreads */
14066 status = pthread_create( &t, pthread_attr_default, task, NULL );
14067 if( status ) return errno;
14069 /* give thread a chance to complete */
14070 /* it should remain joinable and hence detachable */
14073 status = pthread_detach( &t );
14074 if( status ) return errno;
14077 #ifdef HAVE_LINUX_THREADS
14078 pthread_kill_other_threads_np();
14086 if { (eval echo configure:14087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14088 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14090 echo "configure: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14093 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14104 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14106 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14107 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14108 ol_link_threads=posix
14112 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14113 if test "$ol_link_threads" = no ; then
14114 # try -lpthreads -lmach -lexc
14115 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14116 echo "configure:14117: checking for pthread link with -lpthreads -lmach -lexc" >&5
14117 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14118 echo $ac_n "(cached) $ac_c" 1>&6
14123 LIBS="-lpthreads -lmach -lexc $LIBS"
14125 if test "$cross_compiling" = yes; then
14126 cat > conftest.$ac_ext <<EOF
14127 #line 14128 "configure"
14128 #include "confdefs.h"
14129 /* pthread test headers */
14130 #include <pthread.h>
14131 #if HAVE_PTHREADS < 7
14135 #define NULL (void*)0
14138 static void *task(p)
14141 return (void *) (p == NULL);
14146 /* pthread test function */
14147 #ifndef PTHREAD_CREATE_DETACHED
14148 #define PTHREAD_CREATE_DETACHED 1
14152 int detach = PTHREAD_CREATE_DETACHED;
14154 #if HAVE_PTHREADS > 4
14155 /* Final pthreads */
14156 pthread_attr_t attr;
14158 status = pthread_attr_init(&attr);
14159 if( status ) return status;
14161 #if HAVE_PTHREADS < 7
14162 status = pthread_attr_setdetachstate(&attr, &detach);
14163 if( status < 0 ) status = errno;
14165 status = pthread_attr_setdetachstate(&attr, detach);
14167 if( status ) return status;
14168 status = pthread_create( &t, &attr, task, NULL );
14169 #if HAVE_PTHREADS < 7
14170 if( status < 0 ) status = errno;
14172 if( status ) return status;
14174 /* Draft 4 pthreads */
14175 status = pthread_create( &t, pthread_attr_default, task, NULL );
14176 if( status ) return errno;
14178 /* give thread a chance to complete */
14179 /* it should remain joinable and hence detachable */
14182 status = pthread_detach( &t );
14183 if( status ) return errno;
14186 #ifdef HAVE_LINUX_THREADS
14187 pthread_kill_other_threads_np();
14194 if { (eval echo configure:14195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14196 ol_cv_pthread_lpthreads_lmach_lexc=yes
14198 echo "configure: failed program was:" >&5
14199 cat conftest.$ac_ext >&5
14201 ol_cv_pthread_lpthreads_lmach_lexc=no
14205 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure"
14207 #include "confdefs.h"
14208 /* pthread test headers */
14209 #include <pthread.h>
14210 #if HAVE_PTHREADS < 7
14214 #define NULL (void*)0
14217 static void *task(p)
14220 return (void *) (p == NULL);
14224 int main(argc, argv)
14229 /* pthread test function */
14230 #ifndef PTHREAD_CREATE_DETACHED
14231 #define PTHREAD_CREATE_DETACHED 1
14235 int detach = PTHREAD_CREATE_DETACHED;
14237 #if HAVE_PTHREADS > 4
14238 /* Final pthreads */
14239 pthread_attr_t attr;
14241 status = pthread_attr_init(&attr);
14242 if( status ) return status;
14244 #if HAVE_PTHREADS < 7
14245 status = pthread_attr_setdetachstate(&attr, &detach);
14246 if( status < 0 ) status = errno;
14248 status = pthread_attr_setdetachstate(&attr, detach);
14250 if( status ) return status;
14251 status = pthread_create( &t, &attr, task, NULL );
14252 #if HAVE_PTHREADS < 7
14253 if( status < 0 ) status = errno;
14255 if( status ) return status;
14257 /* Draft 4 pthreads */
14258 status = pthread_create( &t, pthread_attr_default, task, NULL );
14259 if( status ) return errno;
14261 /* give thread a chance to complete */
14262 /* it should remain joinable and hence detachable */
14265 status = pthread_detach( &t );
14266 if( status ) return errno;
14269 #ifdef HAVE_LINUX_THREADS
14270 pthread_kill_other_threads_np();
14278 if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14280 ol_cv_pthread_lpthreads_lmach_lexc=yes
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14285 ol_cv_pthread_lpthreads_lmach_lexc=no
14296 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14298 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14299 ol_link_pthreads="-lpthreads -lmach -lexc"
14300 ol_link_threads=posix
14304 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14305 if test "$ol_link_threads" = no ; then
14306 # try -lpthreads -lexc
14307 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14308 echo "configure:14309: checking for pthread link with -lpthreads -lexc" >&5
14309 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14310 echo $ac_n "(cached) $ac_c" 1>&6
14315 LIBS="-lpthreads -lexc $LIBS"
14317 if test "$cross_compiling" = yes; then
14318 cat > conftest.$ac_ext <<EOF
14319 #line 14320 "configure"
14320 #include "confdefs.h"
14321 /* pthread test headers */
14322 #include <pthread.h>
14323 #if HAVE_PTHREADS < 7
14327 #define NULL (void*)0
14330 static void *task(p)
14333 return (void *) (p == NULL);
14338 /* pthread test function */
14339 #ifndef PTHREAD_CREATE_DETACHED
14340 #define PTHREAD_CREATE_DETACHED 1
14344 int detach = PTHREAD_CREATE_DETACHED;
14346 #if HAVE_PTHREADS > 4
14347 /* Final pthreads */
14348 pthread_attr_t attr;
14350 status = pthread_attr_init(&attr);
14351 if( status ) return status;
14353 #if HAVE_PTHREADS < 7
14354 status = pthread_attr_setdetachstate(&attr, &detach);
14355 if( status < 0 ) status = errno;
14357 status = pthread_attr_setdetachstate(&attr, detach);
14359 if( status ) return status;
14360 status = pthread_create( &t, &attr, task, NULL );
14361 #if HAVE_PTHREADS < 7
14362 if( status < 0 ) status = errno;
14364 if( status ) return status;
14366 /* Draft 4 pthreads */
14367 status = pthread_create( &t, pthread_attr_default, task, NULL );
14368 if( status ) return errno;
14370 /* give thread a chance to complete */
14371 /* it should remain joinable and hence detachable */
14374 status = pthread_detach( &t );
14375 if( status ) return errno;
14378 #ifdef HAVE_LINUX_THREADS
14379 pthread_kill_other_threads_np();
14386 if { (eval echo configure:14387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14388 ol_cv_pthread_lpthreads_lexc=yes
14390 echo "configure: failed program was:" >&5
14391 cat conftest.$ac_ext >&5
14393 ol_cv_pthread_lpthreads_lexc=no
14397 cat > conftest.$ac_ext <<EOF
14398 #line 14399 "configure"
14399 #include "confdefs.h"
14400 /* pthread test headers */
14401 #include <pthread.h>
14402 #if HAVE_PTHREADS < 7
14406 #define NULL (void*)0
14409 static void *task(p)
14412 return (void *) (p == NULL);
14416 int main(argc, argv)
14421 /* pthread test function */
14422 #ifndef PTHREAD_CREATE_DETACHED
14423 #define PTHREAD_CREATE_DETACHED 1
14427 int detach = PTHREAD_CREATE_DETACHED;
14429 #if HAVE_PTHREADS > 4
14430 /* Final pthreads */
14431 pthread_attr_t attr;
14433 status = pthread_attr_init(&attr);
14434 if( status ) return status;
14436 #if HAVE_PTHREADS < 7
14437 status = pthread_attr_setdetachstate(&attr, &detach);
14438 if( status < 0 ) status = errno;
14440 status = pthread_attr_setdetachstate(&attr, detach);
14442 if( status ) return status;
14443 status = pthread_create( &t, &attr, task, NULL );
14444 #if HAVE_PTHREADS < 7
14445 if( status < 0 ) status = errno;
14447 if( status ) return status;
14449 /* Draft 4 pthreads */
14450 status = pthread_create( &t, pthread_attr_default, task, NULL );
14451 if( status ) return errno;
14453 /* give thread a chance to complete */
14454 /* it should remain joinable and hence detachable */
14457 status = pthread_detach( &t );
14458 if( status ) return errno;
14461 #ifdef HAVE_LINUX_THREADS
14462 pthread_kill_other_threads_np();
14470 if { (eval echo configure:14471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14472 ol_cv_pthread_lpthreads_lexc=yes
14474 echo "configure: failed program was:" >&5
14475 cat conftest.$ac_ext >&5
14477 ol_cv_pthread_lpthreads_lexc=no
14488 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14490 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14491 ol_link_pthreads="-lpthreads -lexc"
14492 ol_link_threads=posix
14497 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14498 if test "$ol_link_threads" = no ; then
14500 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14501 echo "configure:14502: checking for pthread link with -lpthreads" >&5
14502 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14503 echo $ac_n "(cached) $ac_c" 1>&6
14508 LIBS="-lpthreads $LIBS"
14510 if test "$cross_compiling" = yes; then
14511 cat > conftest.$ac_ext <<EOF
14512 #line 14513 "configure"
14513 #include "confdefs.h"
14514 /* pthread test headers */
14515 #include <pthread.h>
14516 #if HAVE_PTHREADS < 7
14520 #define NULL (void*)0
14523 static void *task(p)
14526 return (void *) (p == NULL);
14531 /* pthread test function */
14532 #ifndef PTHREAD_CREATE_DETACHED
14533 #define PTHREAD_CREATE_DETACHED 1
14537 int detach = PTHREAD_CREATE_DETACHED;
14539 #if HAVE_PTHREADS > 4
14540 /* Final pthreads */
14541 pthread_attr_t attr;
14543 status = pthread_attr_init(&attr);
14544 if( status ) return status;
14546 #if HAVE_PTHREADS < 7
14547 status = pthread_attr_setdetachstate(&attr, &detach);
14548 if( status < 0 ) status = errno;
14550 status = pthread_attr_setdetachstate(&attr, detach);
14552 if( status ) return status;
14553 status = pthread_create( &t, &attr, task, NULL );
14554 #if HAVE_PTHREADS < 7
14555 if( status < 0 ) status = errno;
14557 if( status ) return status;
14559 /* Draft 4 pthreads */
14560 status = pthread_create( &t, pthread_attr_default, task, NULL );
14561 if( status ) return errno;
14563 /* give thread a chance to complete */
14564 /* it should remain joinable and hence detachable */
14567 status = pthread_detach( &t );
14568 if( status ) return errno;
14571 #ifdef HAVE_LINUX_THREADS
14572 pthread_kill_other_threads_np();
14579 if { (eval echo configure:14580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14581 ol_cv_pthread_lib_lpthreads=yes
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14586 ol_cv_pthread_lib_lpthreads=no
14590 cat > conftest.$ac_ext <<EOF
14591 #line 14592 "configure"
14592 #include "confdefs.h"
14593 /* pthread test headers */
14594 #include <pthread.h>
14595 #if HAVE_PTHREADS < 7
14599 #define NULL (void*)0
14602 static void *task(p)
14605 return (void *) (p == NULL);
14609 int main(argc, argv)
14614 /* pthread test function */
14615 #ifndef PTHREAD_CREATE_DETACHED
14616 #define PTHREAD_CREATE_DETACHED 1
14620 int detach = PTHREAD_CREATE_DETACHED;
14622 #if HAVE_PTHREADS > 4
14623 /* Final pthreads */
14624 pthread_attr_t attr;
14626 status = pthread_attr_init(&attr);
14627 if( status ) return status;
14629 #if HAVE_PTHREADS < 7
14630 status = pthread_attr_setdetachstate(&attr, &detach);
14631 if( status < 0 ) status = errno;
14633 status = pthread_attr_setdetachstate(&attr, detach);
14635 if( status ) return status;
14636 status = pthread_create( &t, &attr, task, NULL );
14637 #if HAVE_PTHREADS < 7
14638 if( status < 0 ) status = errno;
14640 if( status ) return status;
14642 /* Draft 4 pthreads */
14643 status = pthread_create( &t, pthread_attr_default, task, NULL );
14644 if( status ) return errno;
14646 /* give thread a chance to complete */
14647 /* it should remain joinable and hence detachable */
14650 status = pthread_detach( &t );
14651 if( status ) return errno;
14654 #ifdef HAVE_LINUX_THREADS
14655 pthread_kill_other_threads_np();
14663 if { (eval echo configure:14664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14665 ol_cv_pthread_lib_lpthreads=yes
14667 echo "configure: failed program was:" >&5
14668 cat conftest.$ac_ext >&5
14670 ol_cv_pthread_lib_lpthreads=no
14681 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14683 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14684 ol_link_pthreads="-lpthreads"
14685 ol_link_threads=posix
14690 if test $ol_link_threads != no ; then
14691 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14693 save_CPPFLAGS="$CPPFLAGS"
14695 LIBS="$LTHREAD_LIBS $LIBS"
14697 for ac_func in sched_yield pthread_yield thr_yield
14699 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14700 echo "configure:14701: checking for $ac_func" >&5
14701 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14702 echo $ac_n "(cached) $ac_c" 1>&6
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14707 /* System header to define __stub macros and hopefully few prototypes,
14708 which can conflict with char $ac_func(); below. */
14709 #include <assert.h>
14710 /* Override any gcc2 internal prototype to avoid an error. */
14711 /* We use char because int might match the return type of a gcc2
14712 builtin and then its argument prototype would still apply. */
14718 /* The GNU C library defines this for functions which it implements
14719 to always fail with ENOSYS. Some functions are actually named
14720 something starting with __ and the normal name is an alias. */
14721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14729 if { (eval echo configure:14730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14731 eval "ac_cv_func_$ac_func=yes"
14733 echo "configure: failed program was:" >&5
14734 cat conftest.$ac_ext >&5
14736 eval "ac_cv_func_$ac_func=no"
14741 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14742 echo "$ac_t""yes" 1>&6
14743 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14744 cat >> confdefs.h <<EOF
14745 #define $ac_tr_func 1
14749 echo "$ac_t""no" 1>&6
14754 if test $ac_cv_func_sched_yield = no -a \
14755 $ac_cv_func_pthread_yield = no -a \
14756 $ac_cv_func_thr_yield = no ; then
14757 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14758 echo "configure:14759: checking for sched_yield in -lrt" >&5
14759 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14760 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14761 echo $ac_n "(cached) $ac_c" 1>&6
14763 ac_save_LIBS="$LIBS"
14765 cat > conftest.$ac_ext <<EOF
14766 #line 14767 "configure"
14767 #include "confdefs.h"
14768 /* Override any gcc2 internal prototype to avoid an error. */
14769 /* We use char because int might match the return type of a gcc2
14770 builtin and then its argument prototype would still apply. */
14771 char sched_yield();
14777 if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14779 eval "ac_cv_lib_$ac_lib_var=yes"
14781 echo "configure: failed program was:" >&5
14782 cat conftest.$ac_ext >&5
14784 eval "ac_cv_lib_$ac_lib_var=no"
14787 LIBS="$ac_save_LIBS"
14790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14791 echo "$ac_t""yes" 1>&6
14792 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14793 cat >> confdefs.h <<\EOF
14794 #define HAVE_SCHED_YIELD 1
14797 ac_cv_func_sched_yield=yes
14799 echo "$ac_t""no" 1>&6
14800 ac_cv_func_sched_yield=no
14804 if test $ac_cv_func_sched_yield = no -a \
14805 $ac_cv_func_pthread_yield = no -a \
14806 "$ac_cv_func_thr_yield" = no ; then
14807 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14810 for ac_func in pthread_kill pthread_rwlock_destroy
14812 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14813 echo "configure:14814: checking for $ac_func" >&5
14814 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14815 echo $ac_n "(cached) $ac_c" 1>&6
14817 cat > conftest.$ac_ext <<EOF
14818 #line 14819 "configure"
14819 #include "confdefs.h"
14820 /* System header to define __stub macros and hopefully few prototypes,
14821 which can conflict with char $ac_func(); below. */
14822 #include <assert.h>
14823 /* Override any gcc2 internal prototype to avoid an error. */
14824 /* We use char because int might match the return type of a gcc2
14825 builtin and then its argument prototype would still apply. */
14831 /* The GNU C library defines this for functions which it implements
14832 to always fail with ENOSYS. Some functions are actually named
14833 something starting with __ and the normal name is an alias. */
14834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14842 if { (eval echo configure:14843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14844 eval "ac_cv_func_$ac_func=yes"
14846 echo "configure: failed program was:" >&5
14847 cat conftest.$ac_ext >&5
14849 eval "ac_cv_func_$ac_func=no"
14854 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14855 echo "$ac_t""yes" 1>&6
14856 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14857 cat >> confdefs.h <<EOF
14858 #define $ac_tr_func 1
14862 echo "$ac_t""no" 1>&6
14867 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14868 echo "configure:14869: checking for pthread_detach with <pthread.h>" >&5
14869 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14870 echo $ac_n "(cached) $ac_c" 1>&6
14873 cat > conftest.$ac_ext <<EOF
14874 #line 14875 "configure"
14875 #include "confdefs.h"
14877 #include <pthread.h>
14879 #define NULL (void*)0
14883 pthread_detach(NULL);
14886 if { (eval echo configure:14887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14888 ol_cv_func_pthread_detach=yes
14890 echo "configure: failed program was:" >&5
14891 cat conftest.$ac_ext >&5
14893 ol_cv_func_pthread_detach=no
14899 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14901 if test $ol_cv_func_pthread_detach = no ; then
14902 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14905 cat >> confdefs.h <<\EOF
14906 #define HAVE_PTHREAD_DETACH 1
14911 pthread_setconcurrency \
14912 pthread_getconcurrency \
14913 thr_setconcurrency \
14914 thr_getconcurrency \
14917 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14918 echo "configure:14919: checking for $ac_func" >&5
14919 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14920 echo $ac_n "(cached) $ac_c" 1>&6
14922 cat > conftest.$ac_ext <<EOF
14923 #line 14924 "configure"
14924 #include "confdefs.h"
14925 /* System header to define __stub macros and hopefully few prototypes,
14926 which can conflict with char $ac_func(); below. */
14927 #include <assert.h>
14928 /* Override any gcc2 internal prototype to avoid an error. */
14929 /* We use char because int might match the return type of a gcc2
14930 builtin and then its argument prototype would still apply. */
14936 /* The GNU C library defines this for functions which it implements
14937 to always fail with ENOSYS. Some functions are actually named
14938 something starting with __ and the normal name is an alias. */
14939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14947 if { (eval echo configure:14948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14949 eval "ac_cv_func_$ac_func=yes"
14951 echo "configure: failed program was:" >&5
14952 cat conftest.$ac_ext >&5
14954 eval "ac_cv_func_$ac_func=no"
14959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14960 echo "$ac_t""yes" 1>&6
14961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14962 cat >> confdefs.h <<EOF
14963 #define $ac_tr_func 1
14967 echo "$ac_t""no" 1>&6
14973 for ac_func in pthread_kill_other_threads_np
14975 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14976 echo "configure:14977: checking for $ac_func" >&5
14977 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14978 echo $ac_n "(cached) $ac_c" 1>&6
14980 cat > conftest.$ac_ext <<EOF
14981 #line 14982 "configure"
14982 #include "confdefs.h"
14983 /* System header to define __stub macros and hopefully few prototypes,
14984 which can conflict with char $ac_func(); below. */
14985 #include <assert.h>
14986 /* Override any gcc2 internal prototype to avoid an error. */
14987 /* We use char because int might match the return type of a gcc2
14988 builtin and then its argument prototype would still apply. */
14994 /* The GNU C library defines this for functions which it implements
14995 to always fail with ENOSYS. Some functions are actually named
14996 something starting with __ and the normal name is an alias. */
14997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15005 if { (eval echo configure:15006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15007 eval "ac_cv_func_$ac_func=yes"
15009 echo "configure: failed program was:" >&5
15010 cat conftest.$ac_ext >&5
15012 eval "ac_cv_func_$ac_func=no"
15017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15018 echo "$ac_t""yes" 1>&6
15019 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15020 cat >> confdefs.h <<EOF
15021 #define $ac_tr_func 1
15025 echo "$ac_t""no" 1>&6
15029 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15030 echo "configure:15031: checking for LinuxThreads implementation" >&5
15031 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15032 echo $ac_n "(cached) $ac_c" 1>&6
15034 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15037 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15042 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15043 echo "configure:15044: checking for LinuxThreads consistency" >&5
15044 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15045 echo $ac_n "(cached) $ac_c" 1>&6
15048 if test $ol_cv_header_linux_threads = yes -a \
15049 $ol_cv_sys_linux_threads = yes; then
15050 ol_cv_linux_threads=yes
15051 elif test $ol_cv_header_linux_threads = no -a \
15052 $ol_cv_sys_linux_threads = no; then
15053 ol_cv_linux_threads=no
15055 ol_cv_linux_threads=error
15060 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15063 if test $ol_cv_linux_threads = error; then
15064 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15067 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15068 echo "configure:15069: checking if pthread_create() works" >&5
15069 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15070 echo $ac_n "(cached) $ac_c" 1>&6
15073 if test "$cross_compiling" = yes; then
15074 ol_cv_pthread_create_works=yes
15076 cat > conftest.$ac_ext <<EOF
15077 #line 15078 "configure"
15078 #include "confdefs.h"
15079 /* pthread test headers */
15080 #include <pthread.h>
15081 #if HAVE_PTHREADS < 7
15085 #define NULL (void*)0
15088 static void *task(p)
15091 return (void *) (p == NULL);
15095 int main(argc, argv)
15100 /* pthread test function */
15101 #ifndef PTHREAD_CREATE_DETACHED
15102 #define PTHREAD_CREATE_DETACHED 1
15106 int detach = PTHREAD_CREATE_DETACHED;
15108 #if HAVE_PTHREADS > 4
15109 /* Final pthreads */
15110 pthread_attr_t attr;
15112 status = pthread_attr_init(&attr);
15113 if( status ) return status;
15115 #if HAVE_PTHREADS < 7
15116 status = pthread_attr_setdetachstate(&attr, &detach);
15117 if( status < 0 ) status = errno;
15119 status = pthread_attr_setdetachstate(&attr, detach);
15121 if( status ) return status;
15122 status = pthread_create( &t, &attr, task, NULL );
15123 #if HAVE_PTHREADS < 7
15124 if( status < 0 ) status = errno;
15126 if( status ) return status;
15128 /* Draft 4 pthreads */
15129 status = pthread_create( &t, pthread_attr_default, task, NULL );
15130 if( status ) return errno;
15132 /* give thread a chance to complete */
15133 /* it should remain joinable and hence detachable */
15136 status = pthread_detach( &t );
15137 if( status ) return errno;
15140 #ifdef HAVE_LINUX_THREADS
15141 pthread_kill_other_threads_np();
15149 if { (eval echo configure:15150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15151 ol_cv_pthread_create_works=yes
15153 echo "configure: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15156 ol_cv_pthread_create_works=no
15163 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15165 if test $ol_cv_pthread_create_works = no ; then
15166 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15169 if test $ol_with_yielding_select = auto ; then
15170 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15171 echo "configure:15172: checking if select yields when using pthreads" >&5
15172 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15173 echo $ac_n "(cached) $ac_c" 1>&6
15176 if test "$cross_compiling" = yes; then
15177 ol_cv_pthread_select_yields=cross
15179 cat > conftest.$ac_ext <<EOF
15180 #line 15181 "configure"
15181 #include "confdefs.h"
15183 #include <sys/types.h>
15184 #include <sys/time.h>
15185 #include <unistd.h>
15186 #include <pthread.h>
15188 #define NULL (void*) 0
15191 static int fildes[2];
15193 static void *task(p)
15205 FD_SET(fildes[0], &rfds);
15207 /* we're not interested in any fds */
15208 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15215 exit(0); /* if we exit here, the select blocked the whole process */
15218 int main(argc, argv)
15224 /* create a pipe to select */
15225 if(pipe(&fildes[0])) {
15230 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15231 (void) pthread_setconcurrency(2);
15233 #ifdef HAVE_THR_SETCONCURRENCY
15234 /* Set Solaris LWP concurrency to 2 */
15235 thr_setconcurrency(2);
15239 #if HAVE_PTHREADS < 6
15240 pthread_create(&t, pthread_attr_default, task, NULL);
15242 pthread_create(&t, NULL, task, NULL);
15245 /* make sure task runs first */
15248 #elif defined( HAVE_SCHED_YIELD )
15250 #elif defined( HAVE_PTHREAD_YIELD )
15257 if { (eval echo configure:15258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15259 ol_cv_pthread_select_yields=no
15261 echo "configure: failed program was:" >&5
15262 cat conftest.$ac_ext >&5
15264 ol_cv_pthread_select_yields=yes
15271 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15273 if test $ol_cv_pthread_select_yields = cross ; then
15274 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15277 if test $ol_cv_pthread_select_yields = yes ; then
15278 ol_with_yielding_select=yes
15282 CPPFLAGS="$save_CPPFLAGS"
15285 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15289 if test $ol_with_threads = posix ; then
15290 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15294 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15295 -o $ol_with_threads = mach ; then
15297 for ac_hdr in mach/cthreads.h cthreads.h
15299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15301 echo "configure:15302: checking for $ac_hdr" >&5
15302 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15303 echo $ac_n "(cached) $ac_c" 1>&6
15305 cat > conftest.$ac_ext <<EOF
15306 #line 15307 "configure"
15307 #include "confdefs.h"
15310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15311 { (eval echo configure:15312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15313 if test -z "$ac_err"; then
15315 eval "ac_cv_header_$ac_safe=yes"
15318 echo "configure: failed program was:" >&5
15319 cat conftest.$ac_ext >&5
15321 eval "ac_cv_header_$ac_safe=no"
15325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15326 echo "$ac_t""yes" 1>&6
15327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15328 cat >> confdefs.h <<EOF
15329 #define $ac_tr_hdr 1
15333 echo "$ac_t""no" 1>&6
15337 if test $ac_cv_header_mach_cthreads_h = yes ; then
15338 ol_with_threads=found
15340 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15341 echo "configure:15342: checking for cthread_fork" >&5
15342 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15343 echo $ac_n "(cached) $ac_c" 1>&6
15345 cat > conftest.$ac_ext <<EOF
15346 #line 15347 "configure"
15347 #include "confdefs.h"
15348 /* System header to define __stub macros and hopefully few prototypes,
15349 which can conflict with char cthread_fork(); below. */
15350 #include <assert.h>
15351 /* Override any gcc2 internal prototype to avoid an error. */
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15354 char cthread_fork();
15359 /* The GNU C library defines this for functions which it implements
15360 to always fail with ENOSYS. Some functions are actually named
15361 something starting with __ and the normal name is an alias. */
15362 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15370 if { (eval echo configure:15371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15372 eval "ac_cv_func_cthread_fork=yes"
15374 echo "configure: failed program was:" >&5
15375 cat conftest.$ac_ext >&5
15377 eval "ac_cv_func_cthread_fork=no"
15382 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15383 echo "$ac_t""yes" 1>&6
15384 ol_link_threads=yes
15386 echo "$ac_t""no" 1>&6
15390 if test $ol_link_threads = no ; then
15391 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15392 echo "configure:15393: checking for cthread_fork with -all_load" >&5
15393 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15394 echo $ac_n "(cached) $ac_c" 1>&6
15398 LIBS="-all_load $LIBS"
15399 cat > conftest.$ac_ext <<EOF
15400 #line 15401 "configure"
15401 #include "confdefs.h"
15402 #include <mach/cthreads.h>
15405 cthread_fork((void *)0, (void *)0);
15409 if { (eval echo configure:15410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15411 ol_cv_cthread_all_load=yes
15413 echo "configure: failed program was:" >&5
15414 cat conftest.$ac_ext >&5
15416 ol_cv_cthread_all_load=no
15423 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15425 if test $ol_cv_cthread_all_load = yes ; then
15426 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15427 ol_link_threads=mach
15428 ol_with_threads=found
15432 elif test $ac_cv_header_cthreads_h = yes ; then
15434 ol_with_threads=found
15437 LIBS="$LIBS -lthreads"
15438 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15439 echo "configure:15440: checking for cthread_fork" >&5
15440 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15441 echo $ac_n "(cached) $ac_c" 1>&6
15443 cat > conftest.$ac_ext <<EOF
15444 #line 15445 "configure"
15445 #include "confdefs.h"
15446 /* System header to define __stub macros and hopefully few prototypes,
15447 which can conflict with char cthread_fork(); below. */
15448 #include <assert.h>
15449 /* Override any gcc2 internal prototype to avoid an error. */
15450 /* We use char because int might match the return type of a gcc2
15451 builtin and then its argument prototype would still apply. */
15452 char cthread_fork();
15457 /* The GNU C library defines this for functions which it implements
15458 to always fail with ENOSYS. Some functions are actually named
15459 something starting with __ and the normal name is an alias. */
15460 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15468 if { (eval echo configure:15469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15470 eval "ac_cv_func_cthread_fork=yes"
15472 echo "configure: failed program was:" >&5
15473 cat conftest.$ac_ext >&5
15475 eval "ac_cv_func_cthread_fork=no"
15480 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15481 echo "$ac_t""yes" 1>&6
15482 ol_link_threads=yes
15484 echo "$ac_t""no" 1>&6
15489 if test $ol_link_threads = yes ; then
15490 LTHREAD_LIBS="-lthreads"
15491 ol_link_threads=mach
15492 ol_with_threads=found
15494 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15497 elif test $ol_with_threads = mach ; then
15498 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15501 if test $ol_link_threads = mach ; then
15502 cat >> confdefs.h <<\EOF
15503 #define HAVE_MACH_CTHREADS 1
15506 elif test $ol_with_threads = found ; then
15507 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15511 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15512 -o $ol_with_threads = pth ; then
15514 for ac_hdr in pth.h
15516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15518 echo "configure:15519: checking for $ac_hdr" >&5
15519 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15520 echo $ac_n "(cached) $ac_c" 1>&6
15522 cat > conftest.$ac_ext <<EOF
15523 #line 15524 "configure"
15524 #include "confdefs.h"
15527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15528 { (eval echo configure:15529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15530 if test -z "$ac_err"; then
15532 eval "ac_cv_header_$ac_safe=yes"
15535 echo "configure: failed program was:" >&5
15536 cat conftest.$ac_ext >&5
15538 eval "ac_cv_header_$ac_safe=no"
15542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15543 echo "$ac_t""yes" 1>&6
15544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15545 cat >> confdefs.h <<EOF
15546 #define $ac_tr_hdr 1
15550 echo "$ac_t""no" 1>&6
15555 if test $ac_cv_header_pth_h = yes ; then
15556 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15557 echo "configure:15558: checking for pth_version in -lpth" >&5
15558 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15559 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15560 echo $ac_n "(cached) $ac_c" 1>&6
15562 ac_save_LIBS="$LIBS"
15564 cat > conftest.$ac_ext <<EOF
15565 #line 15566 "configure"
15566 #include "confdefs.h"
15567 /* Override any gcc2 internal prototype to avoid an error. */
15568 /* We use char because int might match the return type of a gcc2
15569 builtin and then its argument prototype would still apply. */
15570 char pth_version();
15576 if { (eval echo configure:15577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15578 eval "ac_cv_lib_$ac_lib_var=yes"
15580 echo "configure: failed program was:" >&5
15581 cat conftest.$ac_ext >&5
15583 eval "ac_cv_lib_$ac_lib_var=no"
15586 LIBS="$ac_save_LIBS"
15589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15590 echo "$ac_t""yes" 1>&6
15593 echo "$ac_t""no" 1>&6
15598 if test $have_pth = yes ; then
15599 cat >> confdefs.h <<\EOF
15600 #define HAVE_GNU_PTH 1
15603 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15604 ol_link_threads=pth
15605 ol_with_threads=found
15607 if test $ol_with_yielding_select = auto ; then
15608 ol_with_yielding_select=yes
15614 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15615 -o $ol_with_threads = lwp ; then
15617 for ac_hdr in thread.h synch.h
15619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15621 echo "configure:15622: checking for $ac_hdr" >&5
15622 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15623 echo $ac_n "(cached) $ac_c" 1>&6
15625 cat > conftest.$ac_ext <<EOF
15626 #line 15627 "configure"
15627 #include "confdefs.h"
15630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15631 { (eval echo configure:15632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15633 if test -z "$ac_err"; then
15635 eval "ac_cv_header_$ac_safe=yes"
15638 echo "configure: failed program was:" >&5
15639 cat conftest.$ac_ext >&5
15641 eval "ac_cv_header_$ac_safe=no"
15645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15646 echo "$ac_t""yes" 1>&6
15647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15648 cat >> confdefs.h <<EOF
15649 #define $ac_tr_hdr 1
15653 echo "$ac_t""no" 1>&6
15657 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15658 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15659 echo "configure:15660: checking for thr_create in -lthread" >&5
15660 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15661 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15662 echo $ac_n "(cached) $ac_c" 1>&6
15664 ac_save_LIBS="$LIBS"
15665 LIBS="-lthread $LIBS"
15666 cat > conftest.$ac_ext <<EOF
15667 #line 15668 "configure"
15668 #include "confdefs.h"
15669 /* Override any gcc2 internal prototype to avoid an error. */
15670 /* We use char because int might match the return type of a gcc2
15671 builtin and then its argument prototype would still apply. */
15678 if { (eval echo configure:15679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15680 eval "ac_cv_lib_$ac_lib_var=yes"
15682 echo "configure: failed program was:" >&5
15683 cat conftest.$ac_ext >&5
15685 eval "ac_cv_lib_$ac_lib_var=no"
15688 LIBS="$ac_save_LIBS"
15691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15692 echo "$ac_t""yes" 1>&6
15695 echo "$ac_t""no" 1>&6
15700 if test $have_thr = yes ; then
15701 cat >> confdefs.h <<\EOF
15705 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15706 ol_link_threads=thr
15708 if test $ol_with_yielding_select = auto ; then
15709 ol_with_yielding_select=yes
15713 thr_setconcurrency \
15714 thr_getconcurrency \
15717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15718 echo "configure:15719: checking for $ac_func" >&5
15719 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15720 echo $ac_n "(cached) $ac_c" 1>&6
15722 cat > conftest.$ac_ext <<EOF
15723 #line 15724 "configure"
15724 #include "confdefs.h"
15725 /* System header to define __stub macros and hopefully few prototypes,
15726 which can conflict with char $ac_func(); below. */
15727 #include <assert.h>
15728 /* Override any gcc2 internal prototype to avoid an error. */
15729 /* We use char because int might match the return type of a gcc2
15730 builtin and then its argument prototype would still apply. */
15736 /* The GNU C library defines this for functions which it implements
15737 to always fail with ENOSYS. Some functions are actually named
15738 something starting with __ and the normal name is an alias. */
15739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15747 if { (eval echo configure:15748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15749 eval "ac_cv_func_$ac_func=yes"
15751 echo "configure: failed program was:" >&5
15752 cat conftest.$ac_ext >&5
15754 eval "ac_cv_func_$ac_func=no"
15759 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15760 echo "$ac_t""yes" 1>&6
15761 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15762 cat >> confdefs.h <<EOF
15763 #define $ac_tr_func 1
15767 echo "$ac_t""no" 1>&6
15774 for ac_hdr in lwp/lwp.h
15776 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15777 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15778 echo "configure:15779: checking for $ac_hdr" >&5
15779 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15782 cat > conftest.$ac_ext <<EOF
15783 #line 15784 "configure"
15784 #include "confdefs.h"
15787 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15788 { (eval echo configure:15789: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15789 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15790 if test -z "$ac_err"; then
15792 eval "ac_cv_header_$ac_safe=yes"
15795 echo "configure: failed program was:" >&5
15796 cat conftest.$ac_ext >&5
15798 eval "ac_cv_header_$ac_safe=no"
15802 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15803 echo "$ac_t""yes" 1>&6
15804 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15805 cat >> confdefs.h <<EOF
15806 #define $ac_tr_hdr 1
15810 echo "$ac_t""no" 1>&6
15814 if test $ac_cv_header_lwp_lwp_h = yes ; then
15815 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15816 echo "configure:15817: checking for lwp_create in -llwp" >&5
15817 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15818 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15819 echo $ac_n "(cached) $ac_c" 1>&6
15821 ac_save_LIBS="$LIBS"
15823 cat > conftest.$ac_ext <<EOF
15824 #line 15825 "configure"
15825 #include "confdefs.h"
15826 /* Override any gcc2 internal prototype to avoid an error. */
15827 /* We use char because int might match the return type of a gcc2
15828 builtin and then its argument prototype would still apply. */
15835 if { (eval echo configure:15836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15837 eval "ac_cv_lib_$ac_lib_var=yes"
15839 echo "configure: failed program was:" >&5
15840 cat conftest.$ac_ext >&5
15842 eval "ac_cv_lib_$ac_lib_var=no"
15845 LIBS="$ac_save_LIBS"
15848 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15849 echo "$ac_t""yes" 1>&6
15852 echo "$ac_t""no" 1>&6
15857 if test $have_lwp = yes ; then
15858 cat >> confdefs.h <<\EOF
15862 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15863 ol_link_threads=lwp
15865 if test $ol_with_yielding_select = auto ; then
15866 ol_with_yielding_select=no
15872 if test $ol_with_yielding_select = yes ; then
15873 cat >> confdefs.h <<\EOF
15874 #define HAVE_YIELDING_SELECT 1
15879 if test $ol_with_threads = manual ; then
15880 ol_link_threads=yes
15882 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15884 for ac_hdr in pthread.h sched.h
15886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15888 echo "configure:15889: checking for $ac_hdr" >&5
15889 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15890 echo $ac_n "(cached) $ac_c" 1>&6
15892 cat > conftest.$ac_ext <<EOF
15893 #line 15894 "configure"
15894 #include "confdefs.h"
15897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15898 { (eval echo configure:15899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15900 if test -z "$ac_err"; then
15902 eval "ac_cv_header_$ac_safe=yes"
15905 echo "configure: failed program was:" >&5
15906 cat conftest.$ac_ext >&5
15908 eval "ac_cv_header_$ac_safe=no"
15912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15913 echo "$ac_t""yes" 1>&6
15914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15915 cat >> confdefs.h <<EOF
15916 #define $ac_tr_hdr 1
15920 echo "$ac_t""no" 1>&6
15924 for ac_func in sched_yield pthread_yield
15926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15927 echo "configure:15928: checking for $ac_func" >&5
15928 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15929 echo $ac_n "(cached) $ac_c" 1>&6
15931 cat > conftest.$ac_ext <<EOF
15932 #line 15933 "configure"
15933 #include "confdefs.h"
15934 /* System header to define __stub macros and hopefully few prototypes,
15935 which can conflict with char $ac_func(); below. */
15936 #include <assert.h>
15937 /* Override any gcc2 internal prototype to avoid an error. */
15938 /* We use char because int might match the return type of a gcc2
15939 builtin and then its argument prototype would still apply. */
15945 /* The GNU C library defines this for functions which it implements
15946 to always fail with ENOSYS. Some functions are actually named
15947 something starting with __ and the normal name is an alias. */
15948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15956 if { (eval echo configure:15957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15958 eval "ac_cv_func_$ac_func=yes"
15960 echo "configure: failed program was:" >&5
15961 cat conftest.$ac_ext >&5
15963 eval "ac_cv_func_$ac_func=no"
15968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15969 echo "$ac_t""yes" 1>&6
15970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15971 cat >> confdefs.h <<EOF
15972 #define $ac_tr_func 1
15976 echo "$ac_t""no" 1>&6
15981 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
15982 echo "configure:15983: checking for LinuxThreads pthread.h" >&5
15983 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
15984 echo $ac_n "(cached) $ac_c" 1>&6
15986 cat > conftest.$ac_ext <<EOF
15987 #line 15988 "configure"
15988 #include "confdefs.h"
15989 #include <pthread.h>
15991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15992 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
15994 ol_cv_header_linux_threads=yes
15997 ol_cv_header_linux_threads=no
16004 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16005 if test $ol_cv_header_linux_threads = yes; then
16006 cat >> confdefs.h <<\EOF
16007 #define HAVE_LINUX_THREADS 1
16013 for ac_hdr in mach/cthreads.h
16015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16017 echo "configure:16018: checking for $ac_hdr" >&5
16018 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16019 echo $ac_n "(cached) $ac_c" 1>&6
16021 cat > conftest.$ac_ext <<EOF
16022 #line 16023 "configure"
16023 #include "confdefs.h"
16026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16027 { (eval echo configure:16028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16029 if test -z "$ac_err"; then
16031 eval "ac_cv_header_$ac_safe=yes"
16034 echo "configure: failed program was:" >&5
16035 cat conftest.$ac_ext >&5
16037 eval "ac_cv_header_$ac_safe=no"
16041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16042 echo "$ac_t""yes" 1>&6
16043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16044 cat >> confdefs.h <<EOF
16045 #define $ac_tr_hdr 1
16049 echo "$ac_t""no" 1>&6
16053 for ac_hdr in lwp/lwp.h
16055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16057 echo "configure:16058: checking for $ac_hdr" >&5
16058 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16059 echo $ac_n "(cached) $ac_c" 1>&6
16061 cat > conftest.$ac_ext <<EOF
16062 #line 16063 "configure"
16063 #include "confdefs.h"
16066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16067 { (eval echo configure:16068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16069 if test -z "$ac_err"; then
16071 eval "ac_cv_header_$ac_safe=yes"
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16077 eval "ac_cv_header_$ac_safe=no"
16081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16082 echo "$ac_t""yes" 1>&6
16083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16084 cat >> confdefs.h <<EOF
16085 #define $ac_tr_hdr 1
16089 echo "$ac_t""no" 1>&6
16093 for ac_hdr in thread.h synch.h
16095 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16096 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16097 echo "configure:16098: checking for $ac_hdr" >&5
16098 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16099 echo $ac_n "(cached) $ac_c" 1>&6
16101 cat > conftest.$ac_ext <<EOF
16102 #line 16103 "configure"
16103 #include "confdefs.h"
16106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16107 { (eval echo configure:16108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16109 if test -z "$ac_err"; then
16111 eval "ac_cv_header_$ac_safe=yes"
16114 echo "configure: failed program was:" >&5
16115 cat conftest.$ac_ext >&5
16117 eval "ac_cv_header_$ac_safe=no"
16121 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16122 echo "$ac_t""yes" 1>&6
16123 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16124 cat >> confdefs.h <<EOF
16125 #define $ac_tr_hdr 1
16129 echo "$ac_t""no" 1>&6
16135 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16136 cat >> confdefs.h <<\EOF
16137 #define REENTRANT 1
16140 cat >> confdefs.h <<\EOF
16141 #define _REENTRANT 1
16144 cat >> confdefs.h <<\EOF
16145 #define THREAD_SAFE 1
16148 cat >> confdefs.h <<\EOF
16149 #define _THREAD_SAFE 1
16152 cat >> confdefs.h <<\EOF
16153 #define THREADSAFE 1
16156 cat >> confdefs.h <<\EOF
16157 #define _THREADSAFE 1
16160 cat >> confdefs.h <<\EOF
16161 #define _SGI_MP_SOURCE 1
16165 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16166 echo "configure:16167: checking for thread specific errno" >&5
16167 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16168 echo $ac_n "(cached) $ac_c" 1>&6
16171 cat > conftest.$ac_ext <<EOF
16172 #line 16173 "configure"
16173 #include "confdefs.h"
16179 if { (eval echo configure:16180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16181 ol_cv_errno_thread_specific=yes
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16186 ol_cv_errno_thread_specific=no
16192 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16194 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16195 echo "configure:16196: checking for thread specific h_errno" >&5
16196 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16197 echo $ac_n "(cached) $ac_c" 1>&6
16200 cat > conftest.$ac_ext <<EOF
16201 #line 16202 "configure"
16202 #include "confdefs.h"
16208 if { (eval echo configure:16209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16210 ol_cv_h_errno_thread_specific=yes
16212 echo "configure: failed program was:" >&5
16213 cat conftest.$ac_ext >&5
16215 ol_cv_h_errno_thread_specific=no
16221 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16223 if test $ol_cv_errno_thread_specific != yes \
16224 -o $ol_cv_h_errno_thread_specific != yes ; then
16225 LIBS="$LTHREAD_LIBS $LIBS"
16231 if test $ol_link_threads = no ; then
16232 if test $ol_with_threads = yes ; then
16233 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16236 if test $ol_with_threads = auto ; then
16237 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16241 cat >> confdefs.h <<\EOF
16242 #define NO_THREADS 1
16248 if test $ol_link_threads != no ; then
16249 cat >> confdefs.h <<\EOF
16250 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16257 gethostbyname_r gethostbyaddr_r \
16260 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16261 echo "configure:16262: checking for $ac_func" >&5
16262 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16263 echo $ac_n "(cached) $ac_c" 1>&6
16265 cat > conftest.$ac_ext <<EOF
16266 #line 16267 "configure"
16267 #include "confdefs.h"
16268 /* System header to define __stub macros and hopefully few prototypes,
16269 which can conflict with char $ac_func(); below. */
16270 #include <assert.h>
16271 /* Override any gcc2 internal prototype to avoid an error. */
16272 /* We use char because int might match the return type of a gcc2
16273 builtin and then its argument prototype would still apply. */
16279 /* The GNU C library defines this for functions which it implements
16280 to always fail with ENOSYS. Some functions are actually named
16281 something starting with __ and the normal name is an alias. */
16282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16290 if { (eval echo configure:16291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16292 eval "ac_cv_func_$ac_func=yes"
16294 echo "configure: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16297 eval "ac_cv_func_$ac_func=no"
16302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16303 echo "$ac_t""yes" 1>&6
16304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16305 cat >> confdefs.h <<EOF
16306 #define $ac_tr_func 1
16310 echo "$ac_t""no" 1>&6
16315 if test "$ac_cv_func_ctime_r" = no ; then
16316 ol_cv_func_ctime_r_nargs=0
16318 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16319 echo "configure:16320: checking number of arguments of ctime_r" >&5
16320 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16321 echo $ac_n "(cached) $ac_c" 1>&6
16323 cat > conftest.$ac_ext <<EOF
16324 #line 16325 "configure"
16325 #include "confdefs.h"
16328 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16331 if { (eval echo configure:16332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16333 ol_cv_func_ctime_r_nargs3=yes
16335 echo "configure: failed program was:" >&5
16336 cat conftest.$ac_ext >&5
16338 ol_cv_func_ctime_r_nargs3=no
16342 cat > conftest.$ac_ext <<EOF
16343 #line 16344 "configure"
16344 #include "confdefs.h"
16347 time_t ti; char *buffer; ctime_r(&ti,buffer);
16350 if { (eval echo configure:16351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16352 ol_cv_func_ctime_r_nargs2=yes
16354 echo "configure: failed program was:" >&5
16355 cat conftest.$ac_ext >&5
16357 ol_cv_func_ctime_r_nargs2=no
16361 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16362 $ol_cv_func_ctime_r_nargs2 = no ; then
16364 ol_cv_func_ctime_r_nargs=3
16366 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16367 $ol_cv_func_ctime_r_nargs2 = yes ; then
16369 ol_cv_func_ctime_r_nargs=2
16372 ol_cv_func_ctime_r_nargs=0
16377 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16379 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16380 cat >> confdefs.h <<EOF
16381 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16388 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16389 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16390 echo "configure:16391: checking number of arguments of gethostbyname_r" >&5
16391 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16392 echo $ac_n "(cached) $ac_c" 1>&6
16394 cat > conftest.$ac_ext <<EOF
16395 #line 16396 "configure"
16396 #include "confdefs.h"
16397 #include <sys/types.h>
16398 #include <sys/socket.h>
16399 #include <netinet/in.h>
16401 #define BUFSIZE (sizeof(struct hostent)+10)
16403 struct hostent hent; char buffer[BUFSIZE];
16404 int bufsize=BUFSIZE;int h_errno;
16405 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16406 buffer, bufsize, &h_errno);
16409 if { (eval echo configure:16410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16411 ol_cv_func_gethostbyname_r_nargs5=yes
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16416 ol_cv_func_gethostbyname_r_nargs5=no
16420 cat > conftest.$ac_ext <<EOF
16421 #line 16422 "configure"
16422 #include "confdefs.h"
16423 #include <sys/types.h>
16424 #include <sys/socket.h>
16425 #include <netinet/in.h>
16427 #define BUFSIZE (sizeof(struct hostent)+10)
16429 struct hostent hent;struct hostent *rhent;
16430 char buffer[BUFSIZE];
16431 int bufsize=BUFSIZE;int h_errno;
16432 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16436 if { (eval echo configure:16437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16438 ol_cv_func_gethostbyname_r_nargs6=yes
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16443 ol_cv_func_gethostbyname_r_nargs6=no
16447 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16448 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16450 ol_cv_func_gethostbyname_r_nargs=5
16452 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16453 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16455 ol_cv_func_gethostbyname_r_nargs=6
16458 ol_cv_func_gethostbyname_r_nargs=0
16463 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16464 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16465 cat >> confdefs.h <<EOF
16466 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16472 ol_cv_func_gethostbyname_r_nargs=0
16475 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16476 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16477 echo "configure:16478: checking number of arguments of gethostbyaddr_r" >&5
16478 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16479 echo $ac_n "(cached) $ac_c" 1>&6
16481 cat > conftest.$ac_ext <<EOF
16482 #line 16483 "configure"
16483 #include "confdefs.h"
16484 #include <sys/types.h>
16485 #include <sys/socket.h>
16486 #include <netinet/in.h>
16488 #define BUFSIZE (sizeof(struct hostent)+10)
16490 struct hostent hent; char buffer[BUFSIZE];
16491 struct in_addr add;
16492 size_t alen=sizeof(struct in_addr);
16493 int bufsize=BUFSIZE;int h_errno;
16494 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16495 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16498 if { (eval echo configure:16499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16500 ol_cv_func_gethostbyaddr_r_nargs7=yes
16502 echo "configure: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16505 ol_cv_func_gethostbyaddr_r_nargs7=no
16509 cat > conftest.$ac_ext <<EOF
16510 #line 16511 "configure"
16511 #include "confdefs.h"
16512 #include <sys/types.h>
16513 #include <sys/socket.h>
16514 #include <netinet/in.h>
16516 #define BUFSIZE (sizeof(struct hostent)+10)
16518 struct hostent hent;
16519 struct hostent *rhent; char buffer[BUFSIZE];
16520 struct in_addr add;
16521 size_t alen=sizeof(struct in_addr);
16522 int bufsize=BUFSIZE;int h_errno;
16523 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16524 alen, AF_INET, &hent, buffer, bufsize,
16528 if { (eval echo configure:16529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16530 ol_cv_func_gethostbyaddr_r_nargs8=yes
16532 echo "configure: failed program was:" >&5
16533 cat conftest.$ac_ext >&5
16535 ol_cv_func_gethostbyaddr_r_nargs8=no
16539 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16540 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16542 ol_cv_func_gethostbyaddr_r_nargs=7
16544 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16545 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16547 ol_cv_func_gethostbyaddr_r_nargs=8
16550 ol_cv_func_gethostbyaddr_r_nargs=0
16555 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16556 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16557 cat >> confdefs.h <<EOF
16558 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16564 ol_cv_func_gethostbyaddr_r_nargs=0
16569 if test $ol_with_ldbm_api = auto \
16570 -o $ol_with_ldbm_api = berkeley \
16571 -o $ol_with_ldbm_api = bcompat ; then
16573 if test $ol_with_ldbm_api = bcompat; then \
16574 for ac_hdr in db_185.h db.h
16576 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16577 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16578 echo "configure:16579: checking for $ac_hdr" >&5
16579 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16580 echo $ac_n "(cached) $ac_c" 1>&6
16582 cat > conftest.$ac_ext <<EOF
16583 #line 16584 "configure"
16584 #include "confdefs.h"
16587 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16588 { (eval echo configure:16589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16589 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16590 if test -z "$ac_err"; then
16592 eval "ac_cv_header_$ac_safe=yes"
16595 echo "configure: failed program was:" >&5
16596 cat conftest.$ac_ext >&5
16598 eval "ac_cv_header_$ac_safe=no"
16602 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16603 echo "$ac_t""yes" 1>&6
16604 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16605 cat >> confdefs.h <<EOF
16606 #define $ac_tr_hdr 1
16610 echo "$ac_t""no" 1>&6
16614 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16615 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16616 echo "configure:16617: checking if Berkeley DB header compatibility" >&5
16617 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16618 echo $ac_n "(cached) $ac_c" 1>&6
16621 cat > conftest.$ac_ext <<EOF
16622 #line 16623 "configure"
16623 #include "confdefs.h"
16626 # include <db_185.h>
16631 /* this check could be improved */
16632 #ifndef DB_VERSION_MAJOR
16633 # define DB_VERSION_MAJOR 1
16636 #if DB_VERSION_MAJOR == 1
16641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16642 egrep "__db_version_1" >/dev/null 2>&1; then
16644 ol_cv_header_db1=yes
16647 ol_cv_header_db1=no
16653 echo "$ac_t""$ol_cv_header_db1" 1>&6
16655 if test $ol_cv_header_db1 = yes ; then
16657 if test $ol_cv_lib_db = no ; then
16658 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16659 echo "configure:16660: checking for Berkeley DB link (default)" >&5
16660 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16661 echo $ac_n "(cached) $ac_c" 1>&6
16666 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16668 cat > conftest.$ac_ext <<EOF
16669 #line 16670 "configure"
16670 #include "confdefs.h"
16672 #ifdef HAVE_DB_185_H
16673 # include <db_185.h>
16678 #ifndef DB_VERSION_MAJOR
16679 # define DB_VERSION_MAJOR 1
16683 #define NULL ((void*)0)
16688 #if DB_VERSION_MAJOR > 1
16691 int major, minor, patch;
16693 version = db_version( &major, &minor, &patch );
16695 if( major != DB_VERSION_MAJOR ||
16696 minor < DB_VERSION_MINOR )
16698 printf("Berkeley DB version mismatch\n"
16699 "\texpected: %s\n\tgot: %s\n",
16700 DB_VERSION_STRING, version);
16706 #if DB_VERSION_MAJOR > 2
16707 db_env_create( NULL, 0 );
16708 #elif DB_VERSION_MAJOR > 1
16709 db_appexit( NULL );
16711 (void) dbopen( NULL, 0, 0, 0, NULL);
16716 if { (eval echo configure:16717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16720 echo "configure: failed program was:" >&5
16721 cat conftest.$ac_ext >&5
16731 echo "$ac_t""$ol_cv_db_none" 1>&6
16733 if test $ol_cv_db_none = yes ; then
16738 if test $ol_cv_lib_db = no ; then
16739 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16740 echo "configure:16741: checking for Berkeley DB link (-ldb42)" >&5
16741 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16742 echo $ac_n "(cached) $ac_c" 1>&6
16747 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16749 cat > conftest.$ac_ext <<EOF
16750 #line 16751 "configure"
16751 #include "confdefs.h"
16753 #ifdef HAVE_DB_185_H
16754 # include <db_185.h>
16759 #ifndef DB_VERSION_MAJOR
16760 # define DB_VERSION_MAJOR 1
16764 #define NULL ((void*)0)
16769 #if DB_VERSION_MAJOR > 1
16772 int major, minor, patch;
16774 version = db_version( &major, &minor, &patch );
16776 if( major != DB_VERSION_MAJOR ||
16777 minor < DB_VERSION_MINOR )
16779 printf("Berkeley DB version mismatch\n"
16780 "\texpected: %s\n\tgot: %s\n",
16781 DB_VERSION_STRING, version);
16787 #if DB_VERSION_MAJOR > 2
16788 db_env_create( NULL, 0 );
16789 #elif DB_VERSION_MAJOR > 1
16790 db_appexit( NULL );
16792 (void) dbopen( NULL, 0, 0, 0, NULL);
16797 if { (eval echo configure:16798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16801 echo "configure: failed program was:" >&5
16802 cat conftest.$ac_ext >&5
16812 echo "$ac_t""$ol_cv_db_db42" 1>&6
16814 if test $ol_cv_db_db42 = yes ; then
16815 ol_cv_lib_db=-ldb42
16819 if test $ol_cv_lib_db = no ; then
16820 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16821 echo "configure:16822: checking for Berkeley DB link (-ldb-42)" >&5
16822 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16823 echo $ac_n "(cached) $ac_c" 1>&6
16828 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16830 cat > conftest.$ac_ext <<EOF
16831 #line 16832 "configure"
16832 #include "confdefs.h"
16834 #ifdef HAVE_DB_185_H
16835 # include <db_185.h>
16840 #ifndef DB_VERSION_MAJOR
16841 # define DB_VERSION_MAJOR 1
16845 #define NULL ((void*)0)
16850 #if DB_VERSION_MAJOR > 1
16853 int major, minor, patch;
16855 version = db_version( &major, &minor, &patch );
16857 if( major != DB_VERSION_MAJOR ||
16858 minor < DB_VERSION_MINOR )
16860 printf("Berkeley DB version mismatch\n"
16861 "\texpected: %s\n\tgot: %s\n",
16862 DB_VERSION_STRING, version);
16868 #if DB_VERSION_MAJOR > 2
16869 db_env_create( NULL, 0 );
16870 #elif DB_VERSION_MAJOR > 1
16871 db_appexit( NULL );
16873 (void) dbopen( NULL, 0, 0, 0, NULL);
16878 if { (eval echo configure:16879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16882 echo "configure: failed program was:" >&5
16883 cat conftest.$ac_ext >&5
16893 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16895 if test $ol_cv_db_db_42 = yes ; then
16896 ol_cv_lib_db=-ldb-42
16900 if test $ol_cv_lib_db = no ; then
16901 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16902 echo "configure:16903: checking for Berkeley DB link (-ldb-4.2)" >&5
16903 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16904 echo $ac_n "(cached) $ac_c" 1>&6
16909 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16911 cat > conftest.$ac_ext <<EOF
16912 #line 16913 "configure"
16913 #include "confdefs.h"
16915 #ifdef HAVE_DB_185_H
16916 # include <db_185.h>
16921 #ifndef DB_VERSION_MAJOR
16922 # define DB_VERSION_MAJOR 1
16926 #define NULL ((void*)0)
16931 #if DB_VERSION_MAJOR > 1
16934 int major, minor, patch;
16936 version = db_version( &major, &minor, &patch );
16938 if( major != DB_VERSION_MAJOR ||
16939 minor < DB_VERSION_MINOR )
16941 printf("Berkeley DB version mismatch\n"
16942 "\texpected: %s\n\tgot: %s\n",
16943 DB_VERSION_STRING, version);
16949 #if DB_VERSION_MAJOR > 2
16950 db_env_create( NULL, 0 );
16951 #elif DB_VERSION_MAJOR > 1
16952 db_appexit( NULL );
16954 (void) dbopen( NULL, 0, 0, 0, NULL);
16959 if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16961 ol_cv_db_db_4_dot_2=yes
16963 echo "configure: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16966 ol_cv_db_db_4_dot_2=no
16974 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
16976 if test $ol_cv_db_db_4_dot_2 = yes ; then
16977 ol_cv_lib_db=-ldb-4.2
16981 if test $ol_cv_lib_db = no ; then
16982 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
16983 echo "configure:16984: checking for Berkeley DB link (-ldb-4-2)" >&5
16984 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
16985 echo $ac_n "(cached) $ac_c" 1>&6
16990 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16992 cat > conftest.$ac_ext <<EOF
16993 #line 16994 "configure"
16994 #include "confdefs.h"
16996 #ifdef HAVE_DB_185_H
16997 # include <db_185.h>
17002 #ifndef DB_VERSION_MAJOR
17003 # define DB_VERSION_MAJOR 1
17007 #define NULL ((void*)0)
17012 #if DB_VERSION_MAJOR > 1
17015 int major, minor, patch;
17017 version = db_version( &major, &minor, &patch );
17019 if( major != DB_VERSION_MAJOR ||
17020 minor < DB_VERSION_MINOR )
17022 printf("Berkeley DB version mismatch\n"
17023 "\texpected: %s\n\tgot: %s\n",
17024 DB_VERSION_STRING, version);
17030 #if DB_VERSION_MAJOR > 2
17031 db_env_create( NULL, 0 );
17032 #elif DB_VERSION_MAJOR > 1
17033 db_appexit( NULL );
17035 (void) dbopen( NULL, 0, 0, 0, NULL);
17040 if { (eval echo configure:17041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17042 ol_cv_db_db_4_2=yes
17044 echo "configure: failed program was:" >&5
17045 cat conftest.$ac_ext >&5
17055 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17057 if test $ol_cv_db_db_4_2 = yes ; then
17058 ol_cv_lib_db=-ldb-4-2
17062 if test $ol_cv_lib_db = no ; then
17063 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17064 echo "configure:17065: checking for Berkeley DB link (-ldb-4)" >&5
17065 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17066 echo $ac_n "(cached) $ac_c" 1>&6
17071 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17073 cat > conftest.$ac_ext <<EOF
17074 #line 17075 "configure"
17075 #include "confdefs.h"
17077 #ifdef HAVE_DB_185_H
17078 # include <db_185.h>
17083 #ifndef DB_VERSION_MAJOR
17084 # define DB_VERSION_MAJOR 1
17088 #define NULL ((void*)0)
17093 #if DB_VERSION_MAJOR > 1
17096 int major, minor, patch;
17098 version = db_version( &major, &minor, &patch );
17100 if( major != DB_VERSION_MAJOR ||
17101 minor < DB_VERSION_MINOR )
17103 printf("Berkeley DB version mismatch\n"
17104 "\texpected: %s\n\tgot: %s\n",
17105 DB_VERSION_STRING, version);
17111 #if DB_VERSION_MAJOR > 2
17112 db_env_create( NULL, 0 );
17113 #elif DB_VERSION_MAJOR > 1
17114 db_appexit( NULL );
17116 (void) dbopen( NULL, 0, 0, 0, NULL);
17121 if { (eval echo configure:17122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17125 echo "configure: failed program was:" >&5
17126 cat conftest.$ac_ext >&5
17136 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17138 if test $ol_cv_db_db_4 = yes ; then
17139 ol_cv_lib_db=-ldb-4
17143 if test $ol_cv_lib_db = no ; then
17144 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17145 echo "configure:17146: checking for Berkeley DB link (-ldb4)" >&5
17146 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17147 echo $ac_n "(cached) $ac_c" 1>&6
17152 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17154 cat > conftest.$ac_ext <<EOF
17155 #line 17156 "configure"
17156 #include "confdefs.h"
17158 #ifdef HAVE_DB_185_H
17159 # include <db_185.h>
17164 #ifndef DB_VERSION_MAJOR
17165 # define DB_VERSION_MAJOR 1
17169 #define NULL ((void*)0)
17174 #if DB_VERSION_MAJOR > 1
17177 int major, minor, patch;
17179 version = db_version( &major, &minor, &patch );
17181 if( major != DB_VERSION_MAJOR ||
17182 minor < DB_VERSION_MINOR )
17184 printf("Berkeley DB version mismatch\n"
17185 "\texpected: %s\n\tgot: %s\n",
17186 DB_VERSION_STRING, version);
17192 #if DB_VERSION_MAJOR > 2
17193 db_env_create( NULL, 0 );
17194 #elif DB_VERSION_MAJOR > 1
17195 db_appexit( NULL );
17197 (void) dbopen( NULL, 0, 0, 0, NULL);
17202 if { (eval echo configure:17203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17206 echo "configure: failed program was:" >&5
17207 cat conftest.$ac_ext >&5
17217 echo "$ac_t""$ol_cv_db_db4" 1>&6
17219 if test $ol_cv_db_db4 = yes ; then
17224 if test $ol_cv_lib_db = no ; then
17225 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17226 echo "configure:17227: checking for Berkeley DB link (-ldb)" >&5
17227 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17228 echo $ac_n "(cached) $ac_c" 1>&6
17233 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17235 cat > conftest.$ac_ext <<EOF
17236 #line 17237 "configure"
17237 #include "confdefs.h"
17239 #ifdef HAVE_DB_185_H
17240 # include <db_185.h>
17245 #ifndef DB_VERSION_MAJOR
17246 # define DB_VERSION_MAJOR 1
17250 #define NULL ((void*)0)
17255 #if DB_VERSION_MAJOR > 1
17258 int major, minor, patch;
17260 version = db_version( &major, &minor, &patch );
17262 if( major != DB_VERSION_MAJOR ||
17263 minor < DB_VERSION_MINOR )
17265 printf("Berkeley DB version mismatch\n"
17266 "\texpected: %s\n\tgot: %s\n",
17267 DB_VERSION_STRING, version);
17273 #if DB_VERSION_MAJOR > 2
17274 db_env_create( NULL, 0 );
17275 #elif DB_VERSION_MAJOR > 1
17276 db_appexit( NULL );
17278 (void) dbopen( NULL, 0, 0, 0, NULL);
17283 if { (eval echo configure:17284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17287 echo "configure: failed program was:" >&5
17288 cat conftest.$ac_ext >&5
17298 echo "$ac_t""$ol_cv_db_db" 1>&6
17300 if test $ol_cv_db_db = yes ; then
17305 if test $ol_cv_lib_db = no ; then
17306 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17307 echo "configure:17308: checking for Berkeley DB link (-ldb41)" >&5
17308 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17309 echo $ac_n "(cached) $ac_c" 1>&6
17314 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17316 cat > conftest.$ac_ext <<EOF
17317 #line 17318 "configure"
17318 #include "confdefs.h"
17320 #ifdef HAVE_DB_185_H
17321 # include <db_185.h>
17326 #ifndef DB_VERSION_MAJOR
17327 # define DB_VERSION_MAJOR 1
17331 #define NULL ((void*)0)
17336 #if DB_VERSION_MAJOR > 1
17339 int major, minor, patch;
17341 version = db_version( &major, &minor, &patch );
17343 if( major != DB_VERSION_MAJOR ||
17344 minor < DB_VERSION_MINOR )
17346 printf("Berkeley DB version mismatch\n"
17347 "\texpected: %s\n\tgot: %s\n",
17348 DB_VERSION_STRING, version);
17354 #if DB_VERSION_MAJOR > 2
17355 db_env_create( NULL, 0 );
17356 #elif DB_VERSION_MAJOR > 1
17357 db_appexit( NULL );
17359 (void) dbopen( NULL, 0, 0, 0, NULL);
17364 if { (eval echo configure:17365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17368 echo "configure: failed program was:" >&5
17369 cat conftest.$ac_ext >&5
17379 echo "$ac_t""$ol_cv_db_db41" 1>&6
17381 if test $ol_cv_db_db41 = yes ; then
17382 ol_cv_lib_db=-ldb41
17386 if test $ol_cv_lib_db = no ; then
17387 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17388 echo "configure:17389: checking for Berkeley DB link (-ldb-41)" >&5
17389 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17390 echo $ac_n "(cached) $ac_c" 1>&6
17395 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17397 cat > conftest.$ac_ext <<EOF
17398 #line 17399 "configure"
17399 #include "confdefs.h"
17401 #ifdef HAVE_DB_185_H
17402 # include <db_185.h>
17407 #ifndef DB_VERSION_MAJOR
17408 # define DB_VERSION_MAJOR 1
17412 #define NULL ((void*)0)
17417 #if DB_VERSION_MAJOR > 1
17420 int major, minor, patch;
17422 version = db_version( &major, &minor, &patch );
17424 if( major != DB_VERSION_MAJOR ||
17425 minor < DB_VERSION_MINOR )
17427 printf("Berkeley DB version mismatch\n"
17428 "\texpected: %s\n\tgot: %s\n",
17429 DB_VERSION_STRING, version);
17435 #if DB_VERSION_MAJOR > 2
17436 db_env_create( NULL, 0 );
17437 #elif DB_VERSION_MAJOR > 1
17438 db_appexit( NULL );
17440 (void) dbopen( NULL, 0, 0, 0, NULL);
17445 if { (eval echo configure:17446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17449 echo "configure: failed program was:" >&5
17450 cat conftest.$ac_ext >&5
17460 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17462 if test $ol_cv_db_db_41 = yes ; then
17463 ol_cv_lib_db=-ldb-41
17467 if test $ol_cv_lib_db = no ; then
17468 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17469 echo "configure:17470: checking for Berkeley DB link (-ldb-4.1)" >&5
17470 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17471 echo $ac_n "(cached) $ac_c" 1>&6
17476 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17478 cat > conftest.$ac_ext <<EOF
17479 #line 17480 "configure"
17480 #include "confdefs.h"
17482 #ifdef HAVE_DB_185_H
17483 # include <db_185.h>
17488 #ifndef DB_VERSION_MAJOR
17489 # define DB_VERSION_MAJOR 1
17493 #define NULL ((void*)0)
17498 #if DB_VERSION_MAJOR > 1
17501 int major, minor, patch;
17503 version = db_version( &major, &minor, &patch );
17505 if( major != DB_VERSION_MAJOR ||
17506 minor < DB_VERSION_MINOR )
17508 printf("Berkeley DB version mismatch\n"
17509 "\texpected: %s\n\tgot: %s\n",
17510 DB_VERSION_STRING, version);
17516 #if DB_VERSION_MAJOR > 2
17517 db_env_create( NULL, 0 );
17518 #elif DB_VERSION_MAJOR > 1
17519 db_appexit( NULL );
17521 (void) dbopen( NULL, 0, 0, 0, NULL);
17526 if { (eval echo configure:17527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17528 ol_cv_db_db_4_dot_1=yes
17530 echo "configure: failed program was:" >&5
17531 cat conftest.$ac_ext >&5
17533 ol_cv_db_db_4_dot_1=no
17541 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17543 if test $ol_cv_db_db_4_dot_1 = yes ; then
17544 ol_cv_lib_db=-ldb-4.1
17548 if test $ol_cv_lib_db = no ; then
17549 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17550 echo "configure:17551: checking for Berkeley DB link (-ldb-4-1)" >&5
17551 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17552 echo $ac_n "(cached) $ac_c" 1>&6
17557 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17559 cat > conftest.$ac_ext <<EOF
17560 #line 17561 "configure"
17561 #include "confdefs.h"
17563 #ifdef HAVE_DB_185_H
17564 # include <db_185.h>
17569 #ifndef DB_VERSION_MAJOR
17570 # define DB_VERSION_MAJOR 1
17574 #define NULL ((void*)0)
17579 #if DB_VERSION_MAJOR > 1
17582 int major, minor, patch;
17584 version = db_version( &major, &minor, &patch );
17586 if( major != DB_VERSION_MAJOR ||
17587 minor < DB_VERSION_MINOR )
17589 printf("Berkeley DB version mismatch\n"
17590 "\texpected: %s\n\tgot: %s\n",
17591 DB_VERSION_STRING, version);
17597 #if DB_VERSION_MAJOR > 2
17598 db_env_create( NULL, 0 );
17599 #elif DB_VERSION_MAJOR > 1
17600 db_appexit( NULL );
17602 (void) dbopen( NULL, 0, 0, 0, NULL);
17607 if { (eval echo configure:17608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17609 ol_cv_db_db_4_1=yes
17611 echo "configure: failed program was:" >&5
17612 cat conftest.$ac_ext >&5
17622 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17624 if test $ol_cv_db_db_4_1 = yes ; then
17625 ol_cv_lib_db=-ldb-4-1
17629 if test $ol_cv_lib_db = no ; then
17630 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17631 echo "configure:17632: checking for Berkeley DB link (-ldb3)" >&5
17632 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17633 echo $ac_n "(cached) $ac_c" 1>&6
17638 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17640 cat > conftest.$ac_ext <<EOF
17641 #line 17642 "configure"
17642 #include "confdefs.h"
17644 #ifdef HAVE_DB_185_H
17645 # include <db_185.h>
17650 #ifndef DB_VERSION_MAJOR
17651 # define DB_VERSION_MAJOR 1
17655 #define NULL ((void*)0)
17660 #if DB_VERSION_MAJOR > 1
17663 int major, minor, patch;
17665 version = db_version( &major, &minor, &patch );
17667 if( major != DB_VERSION_MAJOR ||
17668 minor < DB_VERSION_MINOR )
17670 printf("Berkeley DB version mismatch\n"
17671 "\texpected: %s\n\tgot: %s\n",
17672 DB_VERSION_STRING, version);
17678 #if DB_VERSION_MAJOR > 2
17679 db_env_create( NULL, 0 );
17680 #elif DB_VERSION_MAJOR > 1
17681 db_appexit( NULL );
17683 (void) dbopen( NULL, 0, 0, 0, NULL);
17688 if { (eval echo configure:17689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17692 echo "configure: failed program was:" >&5
17693 cat conftest.$ac_ext >&5
17703 echo "$ac_t""$ol_cv_db_db3" 1>&6
17705 if test $ol_cv_db_db3 = yes ; then
17710 if test $ol_cv_lib_db = no ; then
17711 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17712 echo "configure:17713: checking for Berkeley DB link (-ldb-3)" >&5
17713 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17714 echo $ac_n "(cached) $ac_c" 1>&6
17719 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17721 cat > conftest.$ac_ext <<EOF
17722 #line 17723 "configure"
17723 #include "confdefs.h"
17725 #ifdef HAVE_DB_185_H
17726 # include <db_185.h>
17731 #ifndef DB_VERSION_MAJOR
17732 # define DB_VERSION_MAJOR 1
17736 #define NULL ((void*)0)
17741 #if DB_VERSION_MAJOR > 1
17744 int major, minor, patch;
17746 version = db_version( &major, &minor, &patch );
17748 if( major != DB_VERSION_MAJOR ||
17749 minor < DB_VERSION_MINOR )
17751 printf("Berkeley DB version mismatch\n"
17752 "\texpected: %s\n\tgot: %s\n",
17753 DB_VERSION_STRING, version);
17759 #if DB_VERSION_MAJOR > 2
17760 db_env_create( NULL, 0 );
17761 #elif DB_VERSION_MAJOR > 1
17762 db_appexit( NULL );
17764 (void) dbopen( NULL, 0, 0, 0, NULL);
17769 if { (eval echo configure:17770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17773 echo "configure: failed program was:" >&5
17774 cat conftest.$ac_ext >&5
17784 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17786 if test $ol_cv_db_db_3 = yes ; then
17787 ol_cv_lib_db=-ldb-3
17791 if test $ol_cv_lib_db = no ; then
17792 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17793 echo "configure:17794: checking for Berkeley DB link (-ldb2)" >&5
17794 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17795 echo $ac_n "(cached) $ac_c" 1>&6
17800 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17802 cat > conftest.$ac_ext <<EOF
17803 #line 17804 "configure"
17804 #include "confdefs.h"
17806 #ifdef HAVE_DB_185_H
17807 # include <db_185.h>
17812 #ifndef DB_VERSION_MAJOR
17813 # define DB_VERSION_MAJOR 1
17817 #define NULL ((void*)0)
17822 #if DB_VERSION_MAJOR > 1
17825 int major, minor, patch;
17827 version = db_version( &major, &minor, &patch );
17829 if( major != DB_VERSION_MAJOR ||
17830 minor < DB_VERSION_MINOR )
17832 printf("Berkeley DB version mismatch\n"
17833 "\texpected: %s\n\tgot: %s\n",
17834 DB_VERSION_STRING, version);
17840 #if DB_VERSION_MAJOR > 2
17841 db_env_create( NULL, 0 );
17842 #elif DB_VERSION_MAJOR > 1
17843 db_appexit( NULL );
17845 (void) dbopen( NULL, 0, 0, 0, NULL);
17850 if { (eval echo configure:17851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17854 echo "configure: failed program was:" >&5
17855 cat conftest.$ac_ext >&5
17865 echo "$ac_t""$ol_cv_db_db2" 1>&6
17867 if test $ol_cv_db_db2 = yes ; then
17872 if test $ol_cv_lib_db = no ; then
17873 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17874 echo "configure:17875: checking for Berkeley DB link (-ldb-2)" >&5
17875 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17876 echo $ac_n "(cached) $ac_c" 1>&6
17881 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17883 cat > conftest.$ac_ext <<EOF
17884 #line 17885 "configure"
17885 #include "confdefs.h"
17887 #ifdef HAVE_DB_185_H
17888 # include <db_185.h>
17893 #ifndef DB_VERSION_MAJOR
17894 # define DB_VERSION_MAJOR 1
17898 #define NULL ((void*)0)
17903 #if DB_VERSION_MAJOR > 1
17906 int major, minor, patch;
17908 version = db_version( &major, &minor, &patch );
17910 if( major != DB_VERSION_MAJOR ||
17911 minor < DB_VERSION_MINOR )
17913 printf("Berkeley DB version mismatch\n"
17914 "\texpected: %s\n\tgot: %s\n",
17915 DB_VERSION_STRING, version);
17921 #if DB_VERSION_MAJOR > 2
17922 db_env_create( NULL, 0 );
17923 #elif DB_VERSION_MAJOR > 1
17924 db_appexit( NULL );
17926 (void) dbopen( NULL, 0, 0, 0, NULL);
17931 if { (eval echo configure:17932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17935 echo "configure: failed program was:" >&5
17936 cat conftest.$ac_ext >&5
17946 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17948 if test $ol_cv_db_db_2 = yes ; then
17949 ol_cv_lib_db=-ldb-2
17953 if test $ol_cv_lib_db = no ; then
17954 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17955 echo "configure:17956: checking for Berkeley DB link (-ldb1)" >&5
17956 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17957 echo $ac_n "(cached) $ac_c" 1>&6
17962 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17964 cat > conftest.$ac_ext <<EOF
17965 #line 17966 "configure"
17966 #include "confdefs.h"
17968 #ifdef HAVE_DB_185_H
17969 # include <db_185.h>
17974 #ifndef DB_VERSION_MAJOR
17975 # define DB_VERSION_MAJOR 1
17979 #define NULL ((void*)0)
17984 #if DB_VERSION_MAJOR > 1
17987 int major, minor, patch;
17989 version = db_version( &major, &minor, &patch );
17991 if( major != DB_VERSION_MAJOR ||
17992 minor < DB_VERSION_MINOR )
17994 printf("Berkeley DB version mismatch\n"
17995 "\texpected: %s\n\tgot: %s\n",
17996 DB_VERSION_STRING, version);
18002 #if DB_VERSION_MAJOR > 2
18003 db_env_create( NULL, 0 );
18004 #elif DB_VERSION_MAJOR > 1
18005 db_appexit( NULL );
18007 (void) dbopen( NULL, 0, 0, 0, NULL);
18012 if { (eval echo configure:18013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18016 echo "configure: failed program was:" >&5
18017 cat conftest.$ac_ext >&5
18027 echo "$ac_t""$ol_cv_db_db1" 1>&6
18029 if test $ol_cv_db_db1 = yes ; then
18034 if test $ol_cv_lib_db = no ; then
18035 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18036 echo "configure:18037: checking for Berkeley DB link (-ldb-1)" >&5
18037 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18038 echo $ac_n "(cached) $ac_c" 1>&6
18043 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18045 cat > conftest.$ac_ext <<EOF
18046 #line 18047 "configure"
18047 #include "confdefs.h"
18049 #ifdef HAVE_DB_185_H
18050 # include <db_185.h>
18055 #ifndef DB_VERSION_MAJOR
18056 # define DB_VERSION_MAJOR 1
18060 #define NULL ((void*)0)
18065 #if DB_VERSION_MAJOR > 1
18068 int major, minor, patch;
18070 version = db_version( &major, &minor, &patch );
18072 if( major != DB_VERSION_MAJOR ||
18073 minor < DB_VERSION_MINOR )
18075 printf("Berkeley DB version mismatch\n"
18076 "\texpected: %s\n\tgot: %s\n",
18077 DB_VERSION_STRING, version);
18083 #if DB_VERSION_MAJOR > 2
18084 db_env_create( NULL, 0 );
18085 #elif DB_VERSION_MAJOR > 1
18086 db_appexit( NULL );
18088 (void) dbopen( NULL, 0, 0, 0, NULL);
18093 if { (eval echo configure:18094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18097 echo "configure: failed program was:" >&5
18098 cat conftest.$ac_ext >&5
18108 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18110 if test $ol_cv_db_db_1 = yes ; then
18111 ol_cv_lib_db=-ldb-1
18116 if test "$ol_cv_lib_db" != no ; then
18117 ol_cv_berkeley_db=yes
18123 ol_cv_berkeley_db=no
18126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18128 echo "configure:18129: checking for $ac_hdr" >&5
18129 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18130 echo $ac_n "(cached) $ac_c" 1>&6
18132 cat > conftest.$ac_ext <<EOF
18133 #line 18134 "configure"
18134 #include "confdefs.h"
18137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18138 { (eval echo configure:18139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18140 if test -z "$ac_err"; then
18142 eval "ac_cv_header_$ac_safe=yes"
18145 echo "configure: failed program was:" >&5
18146 cat conftest.$ac_ext >&5
18148 eval "ac_cv_header_$ac_safe=no"
18152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18153 echo "$ac_t""yes" 1>&6
18154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18155 cat >> confdefs.h <<EOF
18156 #define $ac_tr_hdr 1
18160 echo "$ac_t""no" 1>&6
18164 if test $ac_cv_header_db_h = yes; then
18166 if test $ol_cv_lib_db = no ; then
18167 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18168 echo "configure:18169: checking for Berkeley DB link (default)" >&5
18169 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18170 echo $ac_n "(cached) $ac_c" 1>&6
18175 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18177 cat > conftest.$ac_ext <<EOF
18178 #line 18179 "configure"
18179 #include "confdefs.h"
18181 #ifdef HAVE_DB_185_H
18182 # include <db_185.h>
18187 #ifndef DB_VERSION_MAJOR
18188 # define DB_VERSION_MAJOR 1
18192 #define NULL ((void*)0)
18197 #if DB_VERSION_MAJOR > 1
18200 int major, minor, patch;
18202 version = db_version( &major, &minor, &patch );
18204 if( major != DB_VERSION_MAJOR ||
18205 minor < DB_VERSION_MINOR )
18207 printf("Berkeley DB version mismatch\n"
18208 "\texpected: %s\n\tgot: %s\n",
18209 DB_VERSION_STRING, version);
18215 #if DB_VERSION_MAJOR > 2
18216 db_env_create( NULL, 0 );
18217 #elif DB_VERSION_MAJOR > 1
18218 db_appexit( NULL );
18220 (void) dbopen( NULL, 0, 0, 0, NULL);
18225 if { (eval echo configure:18226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18229 echo "configure: failed program was:" >&5
18230 cat conftest.$ac_ext >&5
18240 echo "$ac_t""$ol_cv_db_none" 1>&6
18242 if test $ol_cv_db_none = yes ; then
18247 if test $ol_cv_lib_db = no ; then
18248 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18249 echo "configure:18250: checking for Berkeley DB link (-ldb42)" >&5
18250 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18251 echo $ac_n "(cached) $ac_c" 1>&6
18256 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18258 cat > conftest.$ac_ext <<EOF
18259 #line 18260 "configure"
18260 #include "confdefs.h"
18262 #ifdef HAVE_DB_185_H
18263 # include <db_185.h>
18268 #ifndef DB_VERSION_MAJOR
18269 # define DB_VERSION_MAJOR 1
18273 #define NULL ((void*)0)
18278 #if DB_VERSION_MAJOR > 1
18281 int major, minor, patch;
18283 version = db_version( &major, &minor, &patch );
18285 if( major != DB_VERSION_MAJOR ||
18286 minor < DB_VERSION_MINOR )
18288 printf("Berkeley DB version mismatch\n"
18289 "\texpected: %s\n\tgot: %s\n",
18290 DB_VERSION_STRING, version);
18296 #if DB_VERSION_MAJOR > 2
18297 db_env_create( NULL, 0 );
18298 #elif DB_VERSION_MAJOR > 1
18299 db_appexit( NULL );
18301 (void) dbopen( NULL, 0, 0, 0, NULL);
18306 if { (eval echo configure:18307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18310 echo "configure: failed program was:" >&5
18311 cat conftest.$ac_ext >&5
18321 echo "$ac_t""$ol_cv_db_db42" 1>&6
18323 if test $ol_cv_db_db42 = yes ; then
18324 ol_cv_lib_db=-ldb42
18328 if test $ol_cv_lib_db = no ; then
18329 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18330 echo "configure:18331: checking for Berkeley DB link (-ldb-42)" >&5
18331 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18332 echo $ac_n "(cached) $ac_c" 1>&6
18337 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18339 cat > conftest.$ac_ext <<EOF
18340 #line 18341 "configure"
18341 #include "confdefs.h"
18343 #ifdef HAVE_DB_185_H
18344 # include <db_185.h>
18349 #ifndef DB_VERSION_MAJOR
18350 # define DB_VERSION_MAJOR 1
18354 #define NULL ((void*)0)
18359 #if DB_VERSION_MAJOR > 1
18362 int major, minor, patch;
18364 version = db_version( &major, &minor, &patch );
18366 if( major != DB_VERSION_MAJOR ||
18367 minor < DB_VERSION_MINOR )
18369 printf("Berkeley DB version mismatch\n"
18370 "\texpected: %s\n\tgot: %s\n",
18371 DB_VERSION_STRING, version);
18377 #if DB_VERSION_MAJOR > 2
18378 db_env_create( NULL, 0 );
18379 #elif DB_VERSION_MAJOR > 1
18380 db_appexit( NULL );
18382 (void) dbopen( NULL, 0, 0, 0, NULL);
18387 if { (eval echo configure:18388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18391 echo "configure: failed program was:" >&5
18392 cat conftest.$ac_ext >&5
18402 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18404 if test $ol_cv_db_db_42 = yes ; then
18405 ol_cv_lib_db=-ldb-42
18409 if test $ol_cv_lib_db = no ; then
18410 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18411 echo "configure:18412: checking for Berkeley DB link (-ldb-4.2)" >&5
18412 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18413 echo $ac_n "(cached) $ac_c" 1>&6
18418 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18420 cat > conftest.$ac_ext <<EOF
18421 #line 18422 "configure"
18422 #include "confdefs.h"
18424 #ifdef HAVE_DB_185_H
18425 # include <db_185.h>
18430 #ifndef DB_VERSION_MAJOR
18431 # define DB_VERSION_MAJOR 1
18435 #define NULL ((void*)0)
18440 #if DB_VERSION_MAJOR > 1
18443 int major, minor, patch;
18445 version = db_version( &major, &minor, &patch );
18447 if( major != DB_VERSION_MAJOR ||
18448 minor < DB_VERSION_MINOR )
18450 printf("Berkeley DB version mismatch\n"
18451 "\texpected: %s\n\tgot: %s\n",
18452 DB_VERSION_STRING, version);
18458 #if DB_VERSION_MAJOR > 2
18459 db_env_create( NULL, 0 );
18460 #elif DB_VERSION_MAJOR > 1
18461 db_appexit( NULL );
18463 (void) dbopen( NULL, 0, 0, 0, NULL);
18468 if { (eval echo configure:18469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18470 ol_cv_db_db_4_dot_2=yes
18472 echo "configure: failed program was:" >&5
18473 cat conftest.$ac_ext >&5
18475 ol_cv_db_db_4_dot_2=no
18483 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18485 if test $ol_cv_db_db_4_dot_2 = yes ; then
18486 ol_cv_lib_db=-ldb-4.2
18490 if test $ol_cv_lib_db = no ; then
18491 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18492 echo "configure:18493: checking for Berkeley DB link (-ldb-4-2)" >&5
18493 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18494 echo $ac_n "(cached) $ac_c" 1>&6
18499 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18501 cat > conftest.$ac_ext <<EOF
18502 #line 18503 "configure"
18503 #include "confdefs.h"
18505 #ifdef HAVE_DB_185_H
18506 # include <db_185.h>
18511 #ifndef DB_VERSION_MAJOR
18512 # define DB_VERSION_MAJOR 1
18516 #define NULL ((void*)0)
18521 #if DB_VERSION_MAJOR > 1
18524 int major, minor, patch;
18526 version = db_version( &major, &minor, &patch );
18528 if( major != DB_VERSION_MAJOR ||
18529 minor < DB_VERSION_MINOR )
18531 printf("Berkeley DB version mismatch\n"
18532 "\texpected: %s\n\tgot: %s\n",
18533 DB_VERSION_STRING, version);
18539 #if DB_VERSION_MAJOR > 2
18540 db_env_create( NULL, 0 );
18541 #elif DB_VERSION_MAJOR > 1
18542 db_appexit( NULL );
18544 (void) dbopen( NULL, 0, 0, 0, NULL);
18549 if { (eval echo configure:18550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18551 ol_cv_db_db_4_2=yes
18553 echo "configure: failed program was:" >&5
18554 cat conftest.$ac_ext >&5
18564 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18566 if test $ol_cv_db_db_4_2 = yes ; then
18567 ol_cv_lib_db=-ldb-4-2
18571 if test $ol_cv_lib_db = no ; then
18572 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18573 echo "configure:18574: checking for Berkeley DB link (-ldb-4)" >&5
18574 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18575 echo $ac_n "(cached) $ac_c" 1>&6
18580 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18582 cat > conftest.$ac_ext <<EOF
18583 #line 18584 "configure"
18584 #include "confdefs.h"
18586 #ifdef HAVE_DB_185_H
18587 # include <db_185.h>
18592 #ifndef DB_VERSION_MAJOR
18593 # define DB_VERSION_MAJOR 1
18597 #define NULL ((void*)0)
18602 #if DB_VERSION_MAJOR > 1
18605 int major, minor, patch;
18607 version = db_version( &major, &minor, &patch );
18609 if( major != DB_VERSION_MAJOR ||
18610 minor < DB_VERSION_MINOR )
18612 printf("Berkeley DB version mismatch\n"
18613 "\texpected: %s\n\tgot: %s\n",
18614 DB_VERSION_STRING, version);
18620 #if DB_VERSION_MAJOR > 2
18621 db_env_create( NULL, 0 );
18622 #elif DB_VERSION_MAJOR > 1
18623 db_appexit( NULL );
18625 (void) dbopen( NULL, 0, 0, 0, NULL);
18630 if { (eval echo configure:18631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18634 echo "configure: failed program was:" >&5
18635 cat conftest.$ac_ext >&5
18645 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18647 if test $ol_cv_db_db_4 = yes ; then
18648 ol_cv_lib_db=-ldb-4
18652 if test $ol_cv_lib_db = no ; then
18653 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18654 echo "configure:18655: checking for Berkeley DB link (-ldb4)" >&5
18655 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18656 echo $ac_n "(cached) $ac_c" 1>&6
18661 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18663 cat > conftest.$ac_ext <<EOF
18664 #line 18665 "configure"
18665 #include "confdefs.h"
18667 #ifdef HAVE_DB_185_H
18668 # include <db_185.h>
18673 #ifndef DB_VERSION_MAJOR
18674 # define DB_VERSION_MAJOR 1
18678 #define NULL ((void*)0)
18683 #if DB_VERSION_MAJOR > 1
18686 int major, minor, patch;
18688 version = db_version( &major, &minor, &patch );
18690 if( major != DB_VERSION_MAJOR ||
18691 minor < DB_VERSION_MINOR )
18693 printf("Berkeley DB version mismatch\n"
18694 "\texpected: %s\n\tgot: %s\n",
18695 DB_VERSION_STRING, version);
18701 #if DB_VERSION_MAJOR > 2
18702 db_env_create( NULL, 0 );
18703 #elif DB_VERSION_MAJOR > 1
18704 db_appexit( NULL );
18706 (void) dbopen( NULL, 0, 0, 0, NULL);
18711 if { (eval echo configure:18712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18715 echo "configure: failed program was:" >&5
18716 cat conftest.$ac_ext >&5
18726 echo "$ac_t""$ol_cv_db_db4" 1>&6
18728 if test $ol_cv_db_db4 = yes ; then
18733 if test $ol_cv_lib_db = no ; then
18734 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18735 echo "configure:18736: checking for Berkeley DB link (-ldb)" >&5
18736 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18737 echo $ac_n "(cached) $ac_c" 1>&6
18742 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18744 cat > conftest.$ac_ext <<EOF
18745 #line 18746 "configure"
18746 #include "confdefs.h"
18748 #ifdef HAVE_DB_185_H
18749 # include <db_185.h>
18754 #ifndef DB_VERSION_MAJOR
18755 # define DB_VERSION_MAJOR 1
18759 #define NULL ((void*)0)
18764 #if DB_VERSION_MAJOR > 1
18767 int major, minor, patch;
18769 version = db_version( &major, &minor, &patch );
18771 if( major != DB_VERSION_MAJOR ||
18772 minor < DB_VERSION_MINOR )
18774 printf("Berkeley DB version mismatch\n"
18775 "\texpected: %s\n\tgot: %s\n",
18776 DB_VERSION_STRING, version);
18782 #if DB_VERSION_MAJOR > 2
18783 db_env_create( NULL, 0 );
18784 #elif DB_VERSION_MAJOR > 1
18785 db_appexit( NULL );
18787 (void) dbopen( NULL, 0, 0, 0, NULL);
18792 if { (eval echo configure:18793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18796 echo "configure: failed program was:" >&5
18797 cat conftest.$ac_ext >&5
18807 echo "$ac_t""$ol_cv_db_db" 1>&6
18809 if test $ol_cv_db_db = yes ; then
18814 if test $ol_cv_lib_db = no ; then
18815 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18816 echo "configure:18817: checking for Berkeley DB link (-ldb41)" >&5
18817 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18818 echo $ac_n "(cached) $ac_c" 1>&6
18823 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18825 cat > conftest.$ac_ext <<EOF
18826 #line 18827 "configure"
18827 #include "confdefs.h"
18829 #ifdef HAVE_DB_185_H
18830 # include <db_185.h>
18835 #ifndef DB_VERSION_MAJOR
18836 # define DB_VERSION_MAJOR 1
18840 #define NULL ((void*)0)
18845 #if DB_VERSION_MAJOR > 1
18848 int major, minor, patch;
18850 version = db_version( &major, &minor, &patch );
18852 if( major != DB_VERSION_MAJOR ||
18853 minor < DB_VERSION_MINOR )
18855 printf("Berkeley DB version mismatch\n"
18856 "\texpected: %s\n\tgot: %s\n",
18857 DB_VERSION_STRING, version);
18863 #if DB_VERSION_MAJOR > 2
18864 db_env_create( NULL, 0 );
18865 #elif DB_VERSION_MAJOR > 1
18866 db_appexit( NULL );
18868 (void) dbopen( NULL, 0, 0, 0, NULL);
18873 if { (eval echo configure:18874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18877 echo "configure: failed program was:" >&5
18878 cat conftest.$ac_ext >&5
18888 echo "$ac_t""$ol_cv_db_db41" 1>&6
18890 if test $ol_cv_db_db41 = yes ; then
18891 ol_cv_lib_db=-ldb41
18895 if test $ol_cv_lib_db = no ; then
18896 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18897 echo "configure:18898: checking for Berkeley DB link (-ldb-41)" >&5
18898 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18899 echo $ac_n "(cached) $ac_c" 1>&6
18904 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18906 cat > conftest.$ac_ext <<EOF
18907 #line 18908 "configure"
18908 #include "confdefs.h"
18910 #ifdef HAVE_DB_185_H
18911 # include <db_185.h>
18916 #ifndef DB_VERSION_MAJOR
18917 # define DB_VERSION_MAJOR 1
18921 #define NULL ((void*)0)
18926 #if DB_VERSION_MAJOR > 1
18929 int major, minor, patch;
18931 version = db_version( &major, &minor, &patch );
18933 if( major != DB_VERSION_MAJOR ||
18934 minor < DB_VERSION_MINOR )
18936 printf("Berkeley DB version mismatch\n"
18937 "\texpected: %s\n\tgot: %s\n",
18938 DB_VERSION_STRING, version);
18944 #if DB_VERSION_MAJOR > 2
18945 db_env_create( NULL, 0 );
18946 #elif DB_VERSION_MAJOR > 1
18947 db_appexit( NULL );
18949 (void) dbopen( NULL, 0, 0, 0, NULL);
18954 if { (eval echo configure:18955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18958 echo "configure: failed program was:" >&5
18959 cat conftest.$ac_ext >&5
18969 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18971 if test $ol_cv_db_db_41 = yes ; then
18972 ol_cv_lib_db=-ldb-41
18976 if test $ol_cv_lib_db = no ; then
18977 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18978 echo "configure:18979: checking for Berkeley DB link (-ldb-4.1)" >&5
18979 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18980 echo $ac_n "(cached) $ac_c" 1>&6
18985 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18987 cat > conftest.$ac_ext <<EOF
18988 #line 18989 "configure"
18989 #include "confdefs.h"
18991 #ifdef HAVE_DB_185_H
18992 # include <db_185.h>
18997 #ifndef DB_VERSION_MAJOR
18998 # define DB_VERSION_MAJOR 1
19002 #define NULL ((void*)0)
19007 #if DB_VERSION_MAJOR > 1
19010 int major, minor, patch;
19012 version = db_version( &major, &minor, &patch );
19014 if( major != DB_VERSION_MAJOR ||
19015 minor < DB_VERSION_MINOR )
19017 printf("Berkeley DB version mismatch\n"
19018 "\texpected: %s\n\tgot: %s\n",
19019 DB_VERSION_STRING, version);
19025 #if DB_VERSION_MAJOR > 2
19026 db_env_create( NULL, 0 );
19027 #elif DB_VERSION_MAJOR > 1
19028 db_appexit( NULL );
19030 (void) dbopen( NULL, 0, 0, 0, NULL);
19035 if { (eval echo configure:19036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19037 ol_cv_db_db_4_dot_1=yes
19039 echo "configure: failed program was:" >&5
19040 cat conftest.$ac_ext >&5
19042 ol_cv_db_db_4_dot_1=no
19050 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19052 if test $ol_cv_db_db_4_dot_1 = yes ; then
19053 ol_cv_lib_db=-ldb-4.1
19057 if test $ol_cv_lib_db = no ; then
19058 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19059 echo "configure:19060: checking for Berkeley DB link (-ldb-4-1)" >&5
19060 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19061 echo $ac_n "(cached) $ac_c" 1>&6
19066 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19068 cat > conftest.$ac_ext <<EOF
19069 #line 19070 "configure"
19070 #include "confdefs.h"
19072 #ifdef HAVE_DB_185_H
19073 # include <db_185.h>
19078 #ifndef DB_VERSION_MAJOR
19079 # define DB_VERSION_MAJOR 1
19083 #define NULL ((void*)0)
19088 #if DB_VERSION_MAJOR > 1
19091 int major, minor, patch;
19093 version = db_version( &major, &minor, &patch );
19095 if( major != DB_VERSION_MAJOR ||
19096 minor < DB_VERSION_MINOR )
19098 printf("Berkeley DB version mismatch\n"
19099 "\texpected: %s\n\tgot: %s\n",
19100 DB_VERSION_STRING, version);
19106 #if DB_VERSION_MAJOR > 2
19107 db_env_create( NULL, 0 );
19108 #elif DB_VERSION_MAJOR > 1
19109 db_appexit( NULL );
19111 (void) dbopen( NULL, 0, 0, 0, NULL);
19116 if { (eval echo configure:19117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19118 ol_cv_db_db_4_1=yes
19120 echo "configure: failed program was:" >&5
19121 cat conftest.$ac_ext >&5
19131 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19133 if test $ol_cv_db_db_4_1 = yes ; then
19134 ol_cv_lib_db=-ldb-4-1
19138 if test $ol_cv_lib_db = no ; then
19139 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19140 echo "configure:19141: checking for Berkeley DB link (-ldb3)" >&5
19141 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19142 echo $ac_n "(cached) $ac_c" 1>&6
19147 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19149 cat > conftest.$ac_ext <<EOF
19150 #line 19151 "configure"
19151 #include "confdefs.h"
19153 #ifdef HAVE_DB_185_H
19154 # include <db_185.h>
19159 #ifndef DB_VERSION_MAJOR
19160 # define DB_VERSION_MAJOR 1
19164 #define NULL ((void*)0)
19169 #if DB_VERSION_MAJOR > 1
19172 int major, minor, patch;
19174 version = db_version( &major, &minor, &patch );
19176 if( major != DB_VERSION_MAJOR ||
19177 minor < DB_VERSION_MINOR )
19179 printf("Berkeley DB version mismatch\n"
19180 "\texpected: %s\n\tgot: %s\n",
19181 DB_VERSION_STRING, version);
19187 #if DB_VERSION_MAJOR > 2
19188 db_env_create( NULL, 0 );
19189 #elif DB_VERSION_MAJOR > 1
19190 db_appexit( NULL );
19192 (void) dbopen( NULL, 0, 0, 0, NULL);
19197 if { (eval echo configure:19198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19201 echo "configure: failed program was:" >&5
19202 cat conftest.$ac_ext >&5
19212 echo "$ac_t""$ol_cv_db_db3" 1>&6
19214 if test $ol_cv_db_db3 = yes ; then
19219 if test $ol_cv_lib_db = no ; then
19220 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19221 echo "configure:19222: checking for Berkeley DB link (-ldb-3)" >&5
19222 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19223 echo $ac_n "(cached) $ac_c" 1>&6
19228 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19230 cat > conftest.$ac_ext <<EOF
19231 #line 19232 "configure"
19232 #include "confdefs.h"
19234 #ifdef HAVE_DB_185_H
19235 # include <db_185.h>
19240 #ifndef DB_VERSION_MAJOR
19241 # define DB_VERSION_MAJOR 1
19245 #define NULL ((void*)0)
19250 #if DB_VERSION_MAJOR > 1
19253 int major, minor, patch;
19255 version = db_version( &major, &minor, &patch );
19257 if( major != DB_VERSION_MAJOR ||
19258 minor < DB_VERSION_MINOR )
19260 printf("Berkeley DB version mismatch\n"
19261 "\texpected: %s\n\tgot: %s\n",
19262 DB_VERSION_STRING, version);
19268 #if DB_VERSION_MAJOR > 2
19269 db_env_create( NULL, 0 );
19270 #elif DB_VERSION_MAJOR > 1
19271 db_appexit( NULL );
19273 (void) dbopen( NULL, 0, 0, 0, NULL);
19278 if { (eval echo configure:19279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19282 echo "configure: failed program was:" >&5
19283 cat conftest.$ac_ext >&5
19293 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19295 if test $ol_cv_db_db_3 = yes ; then
19296 ol_cv_lib_db=-ldb-3
19300 if test $ol_cv_lib_db = no ; then
19301 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19302 echo "configure:19303: checking for Berkeley DB link (-ldb2)" >&5
19303 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19304 echo $ac_n "(cached) $ac_c" 1>&6
19309 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19311 cat > conftest.$ac_ext <<EOF
19312 #line 19313 "configure"
19313 #include "confdefs.h"
19315 #ifdef HAVE_DB_185_H
19316 # include <db_185.h>
19321 #ifndef DB_VERSION_MAJOR
19322 # define DB_VERSION_MAJOR 1
19326 #define NULL ((void*)0)
19331 #if DB_VERSION_MAJOR > 1
19334 int major, minor, patch;
19336 version = db_version( &major, &minor, &patch );
19338 if( major != DB_VERSION_MAJOR ||
19339 minor < DB_VERSION_MINOR )
19341 printf("Berkeley DB version mismatch\n"
19342 "\texpected: %s\n\tgot: %s\n",
19343 DB_VERSION_STRING, version);
19349 #if DB_VERSION_MAJOR > 2
19350 db_env_create( NULL, 0 );
19351 #elif DB_VERSION_MAJOR > 1
19352 db_appexit( NULL );
19354 (void) dbopen( NULL, 0, 0, 0, NULL);
19359 if { (eval echo configure:19360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19363 echo "configure: failed program was:" >&5
19364 cat conftest.$ac_ext >&5
19374 echo "$ac_t""$ol_cv_db_db2" 1>&6
19376 if test $ol_cv_db_db2 = yes ; then
19381 if test $ol_cv_lib_db = no ; then
19382 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19383 echo "configure:19384: checking for Berkeley DB link (-ldb-2)" >&5
19384 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19385 echo $ac_n "(cached) $ac_c" 1>&6
19390 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19392 cat > conftest.$ac_ext <<EOF
19393 #line 19394 "configure"
19394 #include "confdefs.h"
19396 #ifdef HAVE_DB_185_H
19397 # include <db_185.h>
19402 #ifndef DB_VERSION_MAJOR
19403 # define DB_VERSION_MAJOR 1
19407 #define NULL ((void*)0)
19412 #if DB_VERSION_MAJOR > 1
19415 int major, minor, patch;
19417 version = db_version( &major, &minor, &patch );
19419 if( major != DB_VERSION_MAJOR ||
19420 minor < DB_VERSION_MINOR )
19422 printf("Berkeley DB version mismatch\n"
19423 "\texpected: %s\n\tgot: %s\n",
19424 DB_VERSION_STRING, version);
19430 #if DB_VERSION_MAJOR > 2
19431 db_env_create( NULL, 0 );
19432 #elif DB_VERSION_MAJOR > 1
19433 db_appexit( NULL );
19435 (void) dbopen( NULL, 0, 0, 0, NULL);
19440 if { (eval echo configure:19441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19444 echo "configure: failed program was:" >&5
19445 cat conftest.$ac_ext >&5
19455 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19457 if test $ol_cv_db_db_2 = yes ; then
19458 ol_cv_lib_db=-ldb-2
19462 if test $ol_cv_lib_db = no ; then
19463 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19464 echo "configure:19465: checking for Berkeley DB link (-ldb1)" >&5
19465 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19466 echo $ac_n "(cached) $ac_c" 1>&6
19471 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19473 cat > conftest.$ac_ext <<EOF
19474 #line 19475 "configure"
19475 #include "confdefs.h"
19477 #ifdef HAVE_DB_185_H
19478 # include <db_185.h>
19483 #ifndef DB_VERSION_MAJOR
19484 # define DB_VERSION_MAJOR 1
19488 #define NULL ((void*)0)
19493 #if DB_VERSION_MAJOR > 1
19496 int major, minor, patch;
19498 version = db_version( &major, &minor, &patch );
19500 if( major != DB_VERSION_MAJOR ||
19501 minor < DB_VERSION_MINOR )
19503 printf("Berkeley DB version mismatch\n"
19504 "\texpected: %s\n\tgot: %s\n",
19505 DB_VERSION_STRING, version);
19511 #if DB_VERSION_MAJOR > 2
19512 db_env_create( NULL, 0 );
19513 #elif DB_VERSION_MAJOR > 1
19514 db_appexit( NULL );
19516 (void) dbopen( NULL, 0, 0, 0, NULL);
19521 if { (eval echo configure:19522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19525 echo "configure: failed program was:" >&5
19526 cat conftest.$ac_ext >&5
19536 echo "$ac_t""$ol_cv_db_db1" 1>&6
19538 if test $ol_cv_db_db1 = yes ; then
19543 if test $ol_cv_lib_db = no ; then
19544 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19545 echo "configure:19546: checking for Berkeley DB link (-ldb-1)" >&5
19546 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19547 echo $ac_n "(cached) $ac_c" 1>&6
19552 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19554 cat > conftest.$ac_ext <<EOF
19555 #line 19556 "configure"
19556 #include "confdefs.h"
19558 #ifdef HAVE_DB_185_H
19559 # include <db_185.h>
19564 #ifndef DB_VERSION_MAJOR
19565 # define DB_VERSION_MAJOR 1
19569 #define NULL ((void*)0)
19574 #if DB_VERSION_MAJOR > 1
19577 int major, minor, patch;
19579 version = db_version( &major, &minor, &patch );
19581 if( major != DB_VERSION_MAJOR ||
19582 minor < DB_VERSION_MINOR )
19584 printf("Berkeley DB version mismatch\n"
19585 "\texpected: %s\n\tgot: %s\n",
19586 DB_VERSION_STRING, version);
19592 #if DB_VERSION_MAJOR > 2
19593 db_env_create( NULL, 0 );
19594 #elif DB_VERSION_MAJOR > 1
19595 db_appexit( NULL );
19597 (void) dbopen( NULL, 0, 0, 0, NULL);
19602 if { (eval echo configure:19603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19606 echo "configure: failed program was:" >&5
19607 cat conftest.$ac_ext >&5
19617 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19619 if test $ol_cv_db_db_1 = yes ; then
19620 ol_cv_lib_db=-ldb-1
19625 if test "$ol_cv_lib_db" != no ; then
19626 ol_cv_berkeley_db=yes
19627 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19628 echo "configure:19629: checking for Berkeley DB thread support" >&5
19629 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19630 echo $ac_n "(cached) $ac_c" 1>&6
19634 LIBS="$LTHREAD_LIBS $LIBS"
19635 if test $ol_cv_lib_db != yes ; then
19636 LIBS="$ol_cv_lib_db $LIBS"
19639 if test "$cross_compiling" = yes; then
19640 ol_cv_berkeley_db_thread=cross
19642 cat > conftest.$ac_ext <<EOF
19643 #line 19644 "configure"
19644 #include "confdefs.h"
19646 #ifdef HAVE_DB_185_H
19652 #define NULL ((void *)0)
19657 u_int32_t flags = DB_CREATE |
19663 #if DB_VERSION_MAJOR > 2
19664 DB_ENV *env = NULL;
19666 rc = db_env_create( &env, 0 );
19668 flags |= DB_INIT_MPOOL;
19669 #ifdef DB_MPOOL_PRIVATE
19670 flags |= DB_MPOOL_PRIVATE;
19674 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19678 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19679 rc = env->open( env, NULL, flags, 0 );
19681 rc = env->open( env, NULL, NULL, flags, 0 );
19685 rc = env->close( env, 0 );
19689 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19695 memset( &env, '\0', sizeof(env) );
19697 rc = db_appinit( NULL, NULL, &env, flags );
19700 db_appexit( &env );
19703 unlink("__db_mpool.share");
19704 unlink("__db_lock.share");
19710 if { (eval echo configure:19711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19712 ol_cv_berkeley_db_thread=yes
19714 echo "configure: failed program was:" >&5
19715 cat conftest.$ac_ext >&5
19717 ol_cv_berkeley_db_thread=no
19727 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19729 if test $ol_cv_berkeley_db_thread != no ; then
19730 cat >> confdefs.h <<\EOF
19731 #define HAVE_BERKELEY_DB_THREAD 1
19741 if test $ol_cv_berkeley_db != no ; then
19742 cat >> confdefs.h <<\EOF
19743 #define HAVE_BERKELEY_DB 1
19747 ol_link_ldbm=berkeley
19748 ol_with_ldbm_api=berkeley
19750 if test $ol_with_ldbm_type = hash ; then
19751 cat >> confdefs.h <<\EOF
19752 #define LDBM_USE_DBHASH 1
19756 cat >> confdefs.h <<\EOF
19757 #define LDBM_USE_DBBTREE 1
19762 if test $ol_cv_lib_db != yes ; then
19763 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19768 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19769 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19770 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19771 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19772 echo "configure:19773: checking Berkeley DB version for BDB backend" >&5
19773 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19774 echo $ac_n "(cached) $ac_c" 1>&6
19777 cat > conftest.$ac_ext <<EOF
19778 #line 19779 "configure"
19779 #include "confdefs.h"
19783 /* this check could be improved */
19784 #ifndef DB_VERSION_MAJOR
19785 # define DB_VERSION_MAJOR 1
19787 #ifndef DB_VERSION_MINOR
19788 # define DB_VERSION_MINOR 0
19791 /* require 4.2 or later */
19792 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19793 __db_version_compat
19797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19798 egrep "__db_version_compat" >/dev/null 2>&1; then
19800 ol_cv_bdb_compat=yes
19803 ol_cv_bdb_compat=no
19809 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19812 if test $ol_cv_bdb_compat = yes ; then
19814 elif test $ol_enable_bdb = yes ; then
19815 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19820 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19821 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19824 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19825 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19826 ol_with_ldbm_api=none
19829 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19830 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19831 echo "configure:19832: checking for MDBM library" >&5
19832 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19833 echo $ac_n "(cached) $ac_c" 1>&6
19836 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19837 echo "configure:19838: checking for mdbm_set_chain" >&5
19838 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19839 echo $ac_n "(cached) $ac_c" 1>&6
19841 cat > conftest.$ac_ext <<EOF
19842 #line 19843 "configure"
19843 #include "confdefs.h"
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char mdbm_set_chain(); below. */
19846 #include <assert.h>
19847 /* Override any gcc2 internal prototype to avoid an error. */
19848 /* We use char because int might match the return type of a gcc2
19849 builtin and then its argument prototype would still apply. */
19850 char mdbm_set_chain();
19855 /* The GNU C library defines this for functions which it implements
19856 to always fail with ENOSYS. Some functions are actually named
19857 something starting with __ and the normal name is an alias. */
19858 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19861 f = mdbm_set_chain;
19866 if { (eval echo configure:19867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19868 eval "ac_cv_func_mdbm_set_chain=yes"
19870 echo "configure: failed program was:" >&5
19871 cat conftest.$ac_ext >&5
19873 eval "ac_cv_func_mdbm_set_chain=no"
19878 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19879 echo "$ac_t""yes" 1>&6
19882 echo "$ac_t""no" 1>&6
19884 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19885 echo "configure:19886: checking for mdbm_set_chain in -lmdbm" >&5
19886 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19887 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19888 echo $ac_n "(cached) $ac_c" 1>&6
19890 ac_save_LIBS="$LIBS"
19891 LIBS="-lmdbm $LIBS"
19892 cat > conftest.$ac_ext <<EOF
19893 #line 19894 "configure"
19894 #include "confdefs.h"
19895 /* Override any gcc2 internal prototype to avoid an error. */
19896 /* We use char because int might match the return type of a gcc2
19897 builtin and then its argument prototype would still apply. */
19898 char mdbm_set_chain();
19904 if { (eval echo configure:19905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19906 eval "ac_cv_lib_$ac_lib_var=yes"
19908 echo "configure: failed program was:" >&5
19909 cat conftest.$ac_ext >&5
19911 eval "ac_cv_lib_$ac_lib_var=no"
19914 LIBS="$ac_save_LIBS"
19917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19918 echo "$ac_t""yes" 1>&6
19919 ol_cv_lib_mdbm=-lmdbm
19921 echo "$ac_t""no" 1>&6
19932 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19935 for ac_hdr in mdbm.h
19937 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19938 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19939 echo "configure:19940: checking for $ac_hdr" >&5
19940 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19941 echo $ac_n "(cached) $ac_c" 1>&6
19943 cat > conftest.$ac_ext <<EOF
19944 #line 19945 "configure"
19945 #include "confdefs.h"
19948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19949 { (eval echo configure:19950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19950 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19951 if test -z "$ac_err"; then
19953 eval "ac_cv_header_$ac_safe=yes"
19956 echo "configure: failed program was:" >&5
19957 cat conftest.$ac_ext >&5
19959 eval "ac_cv_header_$ac_safe=no"
19963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19964 echo "$ac_t""yes" 1>&6
19965 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19966 cat >> confdefs.h <<EOF
19967 #define $ac_tr_hdr 1
19971 echo "$ac_t""no" 1>&6
19975 echo $ac_n "checking for db""... $ac_c" 1>&6
19976 echo "configure:19977: checking for db" >&5
19977 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
19978 echo $ac_n "(cached) $ac_c" 1>&6
19981 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
19989 echo "$ac_t""$ol_cv_mdbm" 1>&6
19990 if test $ol_cv_mdbm = yes ; then
19991 cat >> confdefs.h <<\EOF
19992 #define HAVE_MDBM 1
19998 if test $ol_cv_mdbm = yes ; then
20000 ol_with_ldbm_api=mdbm
20001 if test $ol_cv_lib_mdbm != yes ; then
20002 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20007 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20008 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20009 echo "configure:20010: checking for GDBM library" >&5
20010 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20011 echo $ac_n "(cached) $ac_c" 1>&6
20014 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20015 echo "configure:20016: checking for gdbm_open" >&5
20016 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20017 echo $ac_n "(cached) $ac_c" 1>&6
20019 cat > conftest.$ac_ext <<EOF
20020 #line 20021 "configure"
20021 #include "confdefs.h"
20022 /* System header to define __stub macros and hopefully few prototypes,
20023 which can conflict with char gdbm_open(); below. */
20024 #include <assert.h>
20025 /* Override any gcc2 internal prototype to avoid an error. */
20026 /* We use char because int might match the return type of a gcc2
20027 builtin and then its argument prototype would still apply. */
20033 /* The GNU C library defines this for functions which it implements
20034 to always fail with ENOSYS. Some functions are actually named
20035 something starting with __ and the normal name is an alias. */
20036 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20044 if { (eval echo configure:20045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20046 eval "ac_cv_func_gdbm_open=yes"
20048 echo "configure: failed program was:" >&5
20049 cat conftest.$ac_ext >&5
20051 eval "ac_cv_func_gdbm_open=no"
20056 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20057 echo "$ac_t""yes" 1>&6
20060 echo "$ac_t""no" 1>&6
20062 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20063 echo "configure:20064: checking for gdbm_open in -lgdbm" >&5
20064 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20065 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20066 echo $ac_n "(cached) $ac_c" 1>&6
20068 ac_save_LIBS="$LIBS"
20069 LIBS="-lgdbm $LIBS"
20070 cat > conftest.$ac_ext <<EOF
20071 #line 20072 "configure"
20072 #include "confdefs.h"
20073 /* Override any gcc2 internal prototype to avoid an error. */
20074 /* We use char because int might match the return type of a gcc2
20075 builtin and then its argument prototype would still apply. */
20082 if { (eval echo configure:20083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20084 eval "ac_cv_lib_$ac_lib_var=yes"
20086 echo "configure: failed program was:" >&5
20087 cat conftest.$ac_ext >&5
20089 eval "ac_cv_lib_$ac_lib_var=no"
20092 LIBS="$ac_save_LIBS"
20095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20096 echo "$ac_t""yes" 1>&6
20097 ol_cv_lib_gdbm=-lgdbm
20099 echo "$ac_t""no" 1>&6
20110 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20113 for ac_hdr in gdbm.h
20115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20117 echo "configure:20118: checking for $ac_hdr" >&5
20118 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20119 echo $ac_n "(cached) $ac_c" 1>&6
20121 cat > conftest.$ac_ext <<EOF
20122 #line 20123 "configure"
20123 #include "confdefs.h"
20126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20127 { (eval echo configure:20128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20129 if test -z "$ac_err"; then
20131 eval "ac_cv_header_$ac_safe=yes"
20134 echo "configure: failed program was:" >&5
20135 cat conftest.$ac_ext >&5
20137 eval "ac_cv_header_$ac_safe=no"
20141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20142 echo "$ac_t""yes" 1>&6
20143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20144 cat >> confdefs.h <<EOF
20145 #define $ac_tr_hdr 1
20149 echo "$ac_t""no" 1>&6
20153 echo $ac_n "checking for db""... $ac_c" 1>&6
20154 echo "configure:20155: checking for db" >&5
20155 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20156 echo $ac_n "(cached) $ac_c" 1>&6
20159 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20167 echo "$ac_t""$ol_cv_gdbm" 1>&6
20168 if test $ol_cv_gdbm = yes ; then
20169 cat >> confdefs.h <<\EOF
20170 #define HAVE_GDBM 1
20176 if test $ol_cv_gdbm = yes ; then
20178 ol_with_ldbm_api=gdbm
20180 if test $ol_cv_lib_gdbm != yes ; then
20181 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20186 if test $ol_with_ldbm_api = ndbm ; then
20187 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20188 echo "configure:20189: checking for NDBM library" >&5
20189 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20190 echo $ac_n "(cached) $ac_c" 1>&6
20193 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20194 echo "configure:20195: checking for dbm_open" >&5
20195 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20196 echo $ac_n "(cached) $ac_c" 1>&6
20198 cat > conftest.$ac_ext <<EOF
20199 #line 20200 "configure"
20200 #include "confdefs.h"
20201 /* System header to define __stub macros and hopefully few prototypes,
20202 which can conflict with char dbm_open(); below. */
20203 #include <assert.h>
20204 /* Override any gcc2 internal prototype to avoid an error. */
20205 /* We use char because int might match the return type of a gcc2
20206 builtin and then its argument prototype would still apply. */
20212 /* The GNU C library defines this for functions which it implements
20213 to always fail with ENOSYS. Some functions are actually named
20214 something starting with __ and the normal name is an alias. */
20215 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20223 if { (eval echo configure:20224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20225 eval "ac_cv_func_dbm_open=yes"
20227 echo "configure: failed program was:" >&5
20228 cat conftest.$ac_ext >&5
20230 eval "ac_cv_func_dbm_open=no"
20235 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20236 echo "$ac_t""yes" 1>&6
20239 echo "$ac_t""no" 1>&6
20241 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20242 echo "configure:20243: checking for dbm_open in -lndbm" >&5
20243 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20245 echo $ac_n "(cached) $ac_c" 1>&6
20247 ac_save_LIBS="$LIBS"
20248 LIBS="-lndbm $LIBS"
20249 cat > conftest.$ac_ext <<EOF
20250 #line 20251 "configure"
20251 #include "confdefs.h"
20252 /* Override any gcc2 internal prototype to avoid an error. */
20253 /* We use char because int might match the return type of a gcc2
20254 builtin and then its argument prototype would still apply. */
20261 if { (eval echo configure:20262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20263 eval "ac_cv_lib_$ac_lib_var=yes"
20265 echo "configure: failed program was:" >&5
20266 cat conftest.$ac_ext >&5
20268 eval "ac_cv_lib_$ac_lib_var=no"
20271 LIBS="$ac_save_LIBS"
20274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20275 echo "$ac_t""yes" 1>&6
20276 ol_cv_lib_ndbm=-lndbm
20278 echo "$ac_t""no" 1>&6
20280 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20281 echo "configure:20282: checking for dbm_open in -ldbm" >&5
20282 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20283 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20284 echo $ac_n "(cached) $ac_c" 1>&6
20286 ac_save_LIBS="$LIBS"
20288 cat > conftest.$ac_ext <<EOF
20289 #line 20290 "configure"
20290 #include "confdefs.h"
20291 /* Override any gcc2 internal prototype to avoid an error. */
20292 /* We use char because int might match the return type of a gcc2
20293 builtin and then its argument prototype would still apply. */
20300 if { (eval echo configure:20301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20302 eval "ac_cv_lib_$ac_lib_var=yes"
20304 echo "configure: failed program was:" >&5
20305 cat conftest.$ac_ext >&5
20307 eval "ac_cv_lib_$ac_lib_var=no"
20310 LIBS="$ac_save_LIBS"
20313 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20314 echo "$ac_t""yes" 1>&6
20315 ol_cv_lib_ndbm=-ldbm
20317 echo "$ac_t""no" 1>&6
20330 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20333 for ac_hdr in ndbm.h
20335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20337 echo "configure:20338: checking for $ac_hdr" >&5
20338 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20339 echo $ac_n "(cached) $ac_c" 1>&6
20341 cat > conftest.$ac_ext <<EOF
20342 #line 20343 "configure"
20343 #include "confdefs.h"
20346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20347 { (eval echo configure:20348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20349 if test -z "$ac_err"; then
20351 eval "ac_cv_header_$ac_safe=yes"
20354 echo "configure: failed program was:" >&5
20355 cat conftest.$ac_ext >&5
20357 eval "ac_cv_header_$ac_safe=no"
20361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20362 echo "$ac_t""yes" 1>&6
20363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20364 cat >> confdefs.h <<EOF
20365 #define $ac_tr_hdr 1
20369 echo "$ac_t""no" 1>&6
20373 echo $ac_n "checking for db""... $ac_c" 1>&6
20374 echo "configure:20375: checking for db" >&5
20375 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20376 echo $ac_n "(cached) $ac_c" 1>&6
20379 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20387 echo "$ac_t""$ol_cv_ndbm" 1>&6
20388 if test $ol_cv_ndbm = yes ; then
20389 cat >> confdefs.h <<\EOF
20390 #define HAVE_NDBM 1
20396 if test $ol_cv_ndbm = yes ; then
20398 ol_with_ldbm_api=ndbm
20400 if test $ol_cv_lib_ndbm != yes ; then
20401 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20406 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20407 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20408 if test $ol_enable_ldbm = yes ; then
20409 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20412 echo "configure: warning: disabling LDBM" 1>&2
20417 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20418 BUILD_LIBS_DYNAMIC=shared
20419 cat >> confdefs.h <<\EOF
20420 #define LDAP_LIBS_DYNAMIC 1
20425 BUILD_LIBS_DYNAMIC=static
20429 if test $ol_enable_wrappers != no ; then
20430 for ac_hdr in tcpd.h
20432 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20433 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20434 echo "configure:20435: checking for $ac_hdr" >&5
20435 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20436 echo $ac_n "(cached) $ac_c" 1>&6
20438 cat > conftest.$ac_ext <<EOF
20439 #line 20440 "configure"
20440 #include "confdefs.h"
20443 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20444 { (eval echo configure:20445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20445 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20446 if test -z "$ac_err"; then
20448 eval "ac_cv_header_$ac_safe=yes"
20451 echo "configure: failed program was:" >&5
20452 cat conftest.$ac_ext >&5
20454 eval "ac_cv_header_$ac_safe=no"
20458 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20459 echo "$ac_t""yes" 1>&6
20460 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20461 cat >> confdefs.h <<EOF
20462 #define $ac_tr_hdr 1
20465 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20466 echo "configure:20467: checking for TCP wrappers library" >&5
20468 LIBS="$LIBS -lwrap"
20469 cat > conftest.$ac_ext <<EOF
20470 #line 20471 "configure"
20471 #include "confdefs.h"
20474 int allow_severity = 0;
20475 int deny_severity = 0;
20477 struct request_info *req;
20485 if { (eval echo configure:20486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20487 echo "$ac_t""-lwrap" 1>&6
20491 echo "configure: failed program was:" >&5
20492 cat conftest.$ac_ext >&5
20496 cat > conftest.$ac_ext <<EOF
20497 #line 20498 "configure"
20498 #include "confdefs.h"
20501 int allow_severity = 0;
20502 int deny_severity = 0;
20504 struct request_info *req;
20512 if { (eval echo configure:20513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20514 echo "$ac_t""-lwrap -lnsl" 1>&6
20516 LIBS="$save_LIBS -lnsl"
20518 echo "configure: failed program was:" >&5
20519 cat conftest.$ac_ext >&5
20522 echo "$ac_t""no" 1>&6
20530 echo "$ac_t""no" 1>&6
20536 if test $have_wrappers = yes ; then
20537 cat >> confdefs.h <<\EOF
20538 #define HAVE_TCPD 1
20542 elif test $ol_enable_wrappers = yes ; then
20543 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20545 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20550 if test $ol_enable_syslog != no ; then
20551 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20552 echo "configure:20553: checking for openlog" >&5
20553 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20554 echo $ac_n "(cached) $ac_c" 1>&6
20556 cat > conftest.$ac_ext <<EOF
20557 #line 20558 "configure"
20558 #include "confdefs.h"
20559 /* System header to define __stub macros and hopefully few prototypes,
20560 which can conflict with char openlog(); below. */
20561 #include <assert.h>
20562 /* Override any gcc2 internal prototype to avoid an error. */
20563 /* We use char because int might match the return type of a gcc2
20564 builtin and then its argument prototype would still apply. */
20570 /* The GNU C library defines this for functions which it implements
20571 to always fail with ENOSYS. Some functions are actually named
20572 something starting with __ and the normal name is an alias. */
20573 #if defined (__stub_openlog) || defined (__stub___openlog)
20581 if { (eval echo configure:20582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20583 eval "ac_cv_func_openlog=yes"
20585 echo "configure: failed program was:" >&5
20586 cat conftest.$ac_ext >&5
20588 eval "ac_cv_func_openlog=no"
20593 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20594 echo "$ac_t""yes" 1>&6
20597 echo "$ac_t""no" 1>&6
20600 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20601 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20603 ol_enable_syslog=$ac_cv_func_openlog
20608 if test $ol_enable_sql != no ; then
20609 for ac_hdr in sql.h sqlext.h
20611 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20612 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20613 echo "configure:20614: checking for $ac_hdr" >&5
20614 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20615 echo $ac_n "(cached) $ac_c" 1>&6
20617 cat > conftest.$ac_ext <<EOF
20618 #line 20619 "configure"
20619 #include "confdefs.h"
20622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20623 { (eval echo configure:20624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20624 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20625 if test -z "$ac_err"; then
20627 eval "ac_cv_header_$ac_safe=yes"
20630 echo "configure: failed program was:" >&5
20631 cat conftest.$ac_ext >&5
20633 eval "ac_cv_header_$ac_safe=no"
20637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20638 echo "$ac_t""yes" 1>&6
20639 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20640 cat >> confdefs.h <<EOF
20641 #define $ac_tr_hdr 1
20645 echo "$ac_t""no" 1>&6
20646 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20652 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20653 echo "configure:20654: checking for SQLDriverConnect in -liodbc" >&5
20654 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20655 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20656 echo $ac_n "(cached) $ac_c" 1>&6
20658 ac_save_LIBS="$LIBS"
20659 LIBS="-liodbc $LIBS"
20660 cat > conftest.$ac_ext <<EOF
20661 #line 20662 "configure"
20662 #include "confdefs.h"
20663 /* Override any gcc2 internal prototype to avoid an error. */
20664 /* We use char because int might match the return type of a gcc2
20665 builtin and then its argument prototype would still apply. */
20666 char SQLDriverConnect();
20672 if { (eval echo configure:20673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20674 eval "ac_cv_lib_$ac_lib_var=yes"
20676 echo "configure: failed program was:" >&5
20677 cat conftest.$ac_ext >&5
20679 eval "ac_cv_lib_$ac_lib_var=no"
20682 LIBS="$ac_save_LIBS"
20685 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20686 echo "$ac_t""yes" 1>&6
20689 echo "$ac_t""no" 1>&6
20693 if test $have_iodbc = yes ; then
20694 ol_link_sql="-liodbc"
20696 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20697 echo "configure:20698: checking for SQLDriverConnect in -lodbc" >&5
20698 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20699 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20700 echo $ac_n "(cached) $ac_c" 1>&6
20702 ac_save_LIBS="$LIBS"
20703 LIBS="-lodbc $LIBS"
20704 cat > conftest.$ac_ext <<EOF
20705 #line 20706 "configure"
20706 #include "confdefs.h"
20707 /* Override any gcc2 internal prototype to avoid an error. */
20708 /* We use char because int might match the return type of a gcc2
20709 builtin and then its argument prototype would still apply. */
20710 char SQLDriverConnect();
20716 if { (eval echo configure:20717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20718 eval "ac_cv_lib_$ac_lib_var=yes"
20720 echo "configure: failed program was:" >&5
20721 cat conftest.$ac_ext >&5
20723 eval "ac_cv_lib_$ac_lib_var=no"
20726 LIBS="$ac_save_LIBS"
20729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20730 echo "$ac_t""yes" 1>&6
20733 echo "$ac_t""no" 1>&6
20737 if test $have_odbc = yes ; then
20738 ol_link_sql="-lodbc"
20742 if test $ol_link_sql != no ; then
20743 SLAPD_SQL_LIBS="$ol_link_sql"
20745 elif test $ol_enable_sql != auto ; then
20746 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20752 if test $ol_with_cyrus_sasl != no ; then
20753 for ac_hdr in sasl/sasl.h sasl.h
20755 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20756 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20757 echo "configure:20758: checking for $ac_hdr" >&5
20758 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20759 echo $ac_n "(cached) $ac_c" 1>&6
20761 cat > conftest.$ac_ext <<EOF
20762 #line 20763 "configure"
20763 #include "confdefs.h"
20766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20767 { (eval echo configure:20768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20769 if test -z "$ac_err"; then
20771 eval "ac_cv_header_$ac_safe=yes"
20774 echo "configure: failed program was:" >&5
20775 cat conftest.$ac_ext >&5
20777 eval "ac_cv_header_$ac_safe=no"
20781 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20782 echo "$ac_t""yes" 1>&6
20783 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20784 cat >> confdefs.h <<EOF
20785 #define $ac_tr_hdr 1
20789 echo "$ac_t""no" 1>&6
20794 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20795 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20796 echo "configure:20797: checking for sasl_client_init in -lsasl2" >&5
20797 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20799 echo $ac_n "(cached) $ac_c" 1>&6
20801 ac_save_LIBS="$LIBS"
20802 LIBS="-lsasl2 $LIBS"
20803 cat > conftest.$ac_ext <<EOF
20804 #line 20805 "configure"
20805 #include "confdefs.h"
20806 /* Override any gcc2 internal prototype to avoid an error. */
20807 /* We use char because int might match the return type of a gcc2
20808 builtin and then its argument prototype would still apply. */
20809 char sasl_client_init();
20815 if { (eval echo configure:20816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20817 eval "ac_cv_lib_$ac_lib_var=yes"
20819 echo "configure: failed program was:" >&5
20820 cat conftest.$ac_ext >&5
20822 eval "ac_cv_lib_$ac_lib_var=no"
20825 LIBS="$ac_save_LIBS"
20828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20829 echo "$ac_t""yes" 1>&6
20830 ol_link_sasl="-lsasl2"
20832 echo "$ac_t""no" 1>&6
20833 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20834 echo "configure:20835: checking for sasl_client_init in -lsasl" >&5
20835 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20836 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20837 echo $ac_n "(cached) $ac_c" 1>&6
20839 ac_save_LIBS="$LIBS"
20840 LIBS="-lsasl $LIBS"
20841 cat > conftest.$ac_ext <<EOF
20842 #line 20843 "configure"
20843 #include "confdefs.h"
20844 /* Override any gcc2 internal prototype to avoid an error. */
20845 /* We use char because int might match the return type of a gcc2
20846 builtin and then its argument prototype would still apply. */
20847 char sasl_client_init();
20853 if { (eval echo configure:20854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20855 eval "ac_cv_lib_$ac_lib_var=yes"
20857 echo "configure: failed program was:" >&5
20858 cat conftest.$ac_ext >&5
20860 eval "ac_cv_lib_$ac_lib_var=no"
20863 LIBS="$ac_save_LIBS"
20866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20867 echo "$ac_t""yes" 1>&6
20868 ol_link_sasl="-lsasl"
20870 echo "$ac_t""no" 1>&6
20877 if test $ol_link_sasl = no ; then
20878 if test $ol_with_cyrus_sasl != auto ; then
20879 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20881 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20882 echo "configure: warning: SASL authentication not supported!" 1>&2
20883 if test $ol_link_tls = no ; then
20884 echo "configure: warning: Strong authentication not supported!" 1>&2
20888 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20889 echo "configure:20890: checking Cyrus SASL library version" >&5
20890 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20891 echo $ac_n "(cached) $ac_c" 1>&6
20894 cat > conftest.$ac_ext <<EOF
20895 #line 20896 "configure"
20896 #include "confdefs.h"
20898 #ifdef HAVE_SASL_SASL_H
20899 #include <sasl/sasl.h>
20904 /* Require 2.1.15+ */
20905 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20906 char *__sasl_compat = "2.2+ or better okay (we guess)";
20907 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20908 && SASL_VERSION_STEP >=15
20909 char *__sasl_compat = "2.1.15+ or better okay";
20913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20914 egrep "__sasl_compat" >/dev/null 2>&1; then
20916 ol_cv_sasl_compat=yes
20919 ol_cv_sasl_compat=no
20925 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20927 if test $ol_cv_sasl_compat = no ; then
20929 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20932 cat >> confdefs.h <<\EOF
20933 #define HAVE_CYRUS_SASL 1
20936 SASL_LIBS="$ol_link_sasl"
20937 if test $ol_enable_spasswd != no ; then
20938 ol_link_spasswd=yes
20941 ac_save_LIBS="$LIBS"
20942 LIBS="$LIBS $ol_link_sasl"
20943 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20944 echo "configure:20945: checking for sasl_version" >&5
20945 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20946 echo $ac_n "(cached) $ac_c" 1>&6
20948 cat > conftest.$ac_ext <<EOF
20949 #line 20950 "configure"
20950 #include "confdefs.h"
20951 /* System header to define __stub macros and hopefully few prototypes,
20952 which can conflict with char sasl_version(); below. */
20953 #include <assert.h>
20954 /* Override any gcc2 internal prototype to avoid an error. */
20955 /* We use char because int might match the return type of a gcc2
20956 builtin and then its argument prototype would still apply. */
20957 char sasl_version();
20962 /* The GNU C library defines this for functions which it implements
20963 to always fail with ENOSYS. Some functions are actually named
20964 something starting with __ and the normal name is an alias. */
20965 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
20973 if { (eval echo configure:20974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20975 eval "ac_cv_func_sasl_version=yes"
20977 echo "configure: failed program was:" >&5
20978 cat conftest.$ac_ext >&5
20980 eval "ac_cv_func_sasl_version=no"
20985 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
20986 echo "$ac_t""yes" 1>&6
20987 cat >> confdefs.h <<\EOF
20988 #define HAVE_SASL_VERSION 1
20992 echo "$ac_t""no" 1>&6
20995 LIBS="$ac_save_LIBS"
20999 echo "configure: warning: SASL authentication not supported!" 1>&2
21000 if test $ol_link_tls = no ; then
21001 echo "configure: warning: Strong authentication not supported!" 1>&2
21005 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21007 if test -r /dev/urandom ; then
21008 dev="/dev/urandom";
21009 elif test -r /idev/urandom ; then
21010 dev="/idev/urandom";
21011 elif test -r /dev/srandom ; then
21012 dev="/dev/srandom";
21013 elif test -r /dev/random ; then
21015 elif test -r /idev/random ; then
21016 dev="/idev/random";
21019 if test $dev != no ; then
21020 cat >> confdefs.h <<EOF
21021 #define URANDOM_DEVICE "$dev"
21028 if test $ol_with_fetch != no ; then
21030 LIBS="-lfetch -lcom_err $LIBS"
21031 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21032 echo "configure:21033: checking fetch(3) library" >&5
21033 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21034 echo $ac_n "(cached) $ac_c" 1>&6
21037 cat > conftest.$ac_ext <<EOF
21038 #line 21039 "configure"
21039 #include "confdefs.h"
21041 #include <sys/param.h>
21045 struct url *u = fetchParseURL("file:///");
21048 if { (eval echo configure:21049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21050 ol_cv_lib_fetch=yes
21052 echo "configure: failed program was:" >&5
21053 cat conftest.$ac_ext >&5
21060 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21062 if test $ol_cv_lib_fetch != no ; then
21063 ol_link_fetch="-lfetch -lcom_err"
21064 cat >> confdefs.h <<\EOF
21065 #define HAVE_FETCH 1
21071 if test $ol_cv_lib_fetch != no ; then
21072 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21073 ol_link_fetch=freebsd
21075 elif test $ol_with_fetch != auto ; then
21076 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21080 if test $ol_enable_crypt != no ; then
21082 LIBS="$TLS_LIBS $LIBS"
21084 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21085 echo "configure:21086: checking for crypt" >&5
21086 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21087 echo $ac_n "(cached) $ac_c" 1>&6
21089 cat > conftest.$ac_ext <<EOF
21090 #line 21091 "configure"
21091 #include "confdefs.h"
21092 /* System header to define __stub macros and hopefully few prototypes,
21093 which can conflict with char crypt(); below. */
21094 #include <assert.h>
21095 /* Override any gcc2 internal prototype to avoid an error. */
21096 /* We use char because int might match the return type of a gcc2
21097 builtin and then its argument prototype would still apply. */
21103 /* The GNU C library defines this for functions which it implements
21104 to always fail with ENOSYS. Some functions are actually named
21105 something starting with __ and the normal name is an alias. */
21106 #if defined (__stub_crypt) || defined (__stub___crypt)
21114 if { (eval echo configure:21115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21116 eval "ac_cv_func_crypt=yes"
21118 echo "configure: failed program was:" >&5
21119 cat conftest.$ac_ext >&5
21121 eval "ac_cv_func_crypt=no"
21126 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21127 echo "$ac_t""yes" 1>&6
21130 echo "$ac_t""no" 1>&6
21133 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21134 echo "configure:21135: checking for crypt in -lcrypt" >&5
21135 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21136 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21137 echo $ac_n "(cached) $ac_c" 1>&6
21139 ac_save_LIBS="$LIBS"
21140 LIBS="-lcrypt $LIBS"
21141 cat > conftest.$ac_ext <<EOF
21142 #line 21143 "configure"
21143 #include "confdefs.h"
21144 /* Override any gcc2 internal prototype to avoid an error. */
21145 /* We use char because int might match the return type of a gcc2
21146 builtin and then its argument prototype would still apply. */
21153 if { (eval echo configure:21154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21155 eval "ac_cv_lib_$ac_lib_var=yes"
21157 echo "configure: failed program was:" >&5
21158 cat conftest.$ac_ext >&5
21160 eval "ac_cv_lib_$ac_lib_var=no"
21163 LIBS="$ac_save_LIBS"
21166 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21167 echo "$ac_t""yes" 1>&6
21168 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21171 echo "$ac_t""no" 1>&6
21180 if test $have_crypt = yes ; then
21181 cat >> confdefs.h <<\EOF
21182 #define HAVE_CRYPT 1
21186 echo "configure: warning: could not find crypt" 1>&2
21187 if test $ol_enable_crypt = yes ; then
21188 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21191 echo "configure: warning: disabling crypt support" 1>&2
21196 if test $ol_enable_proctitle != no ; then
21197 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21198 echo "configure:21199: checking for setproctitle" >&5
21199 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21200 echo $ac_n "(cached) $ac_c" 1>&6
21202 cat > conftest.$ac_ext <<EOF
21203 #line 21204 "configure"
21204 #include "confdefs.h"
21205 /* System header to define __stub macros and hopefully few prototypes,
21206 which can conflict with char setproctitle(); below. */
21207 #include <assert.h>
21208 /* Override any gcc2 internal prototype to avoid an error. */
21209 /* We use char because int might match the return type of a gcc2
21210 builtin and then its argument prototype would still apply. */
21211 char setproctitle();
21216 /* The GNU C library defines this for functions which it implements
21217 to always fail with ENOSYS. Some functions are actually named
21218 something starting with __ and the normal name is an alias. */
21219 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21227 if { (eval echo configure:21228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21229 eval "ac_cv_func_setproctitle=yes"
21231 echo "configure: failed program was:" >&5
21232 cat conftest.$ac_ext >&5
21234 eval "ac_cv_func_setproctitle=no"
21239 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21240 echo "$ac_t""yes" 1>&6
21241 have_setproctitle=yes
21243 echo "$ac_t""no" 1>&6
21245 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21246 echo "configure:21247: checking for setproctitle in -lutil" >&5
21247 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21248 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21249 echo $ac_n "(cached) $ac_c" 1>&6
21251 ac_save_LIBS="$LIBS"
21252 LIBS="-lutil $LIBS"
21253 cat > conftest.$ac_ext <<EOF
21254 #line 21255 "configure"
21255 #include "confdefs.h"
21256 /* Override any gcc2 internal prototype to avoid an error. */
21257 /* We use char because int might match the return type of a gcc2
21258 builtin and then its argument prototype would still apply. */
21259 char setproctitle();
21265 if { (eval echo configure:21266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21267 eval "ac_cv_lib_$ac_lib_var=yes"
21269 echo "configure: failed program was:" >&5
21270 cat conftest.$ac_ext >&5
21272 eval "ac_cv_lib_$ac_lib_var=no"
21275 LIBS="$ac_save_LIBS"
21278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21279 echo "$ac_t""yes" 1>&6
21280 have_setproctitle=yes
21281 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21283 echo "$ac_t""no" 1>&6
21284 have_setproctitle=no
21285 LIBOBJS="$LIBOBJS setproctitle.o"
21286 LIBSRCS="$LIBSRCS setproctitle.c"
21292 if test $have_setproctitle = yes ; then
21293 cat >> confdefs.h <<\EOF
21294 #define HAVE_SETPROCTITLE 1
21300 if test $ol_enable_slp != no ; then
21301 for ac_hdr in slp.h
21303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21305 echo "configure:21306: checking for $ac_hdr" >&5
21306 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21307 echo $ac_n "(cached) $ac_c" 1>&6
21309 cat > conftest.$ac_ext <<EOF
21310 #line 21311 "configure"
21311 #include "confdefs.h"
21314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21315 { (eval echo configure:21316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21317 if test -z "$ac_err"; then
21319 eval "ac_cv_header_$ac_safe=yes"
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21325 eval "ac_cv_header_$ac_safe=no"
21329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21330 echo "$ac_t""yes" 1>&6
21331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21332 cat >> confdefs.h <<EOF
21333 #define $ac_tr_hdr 1
21337 echo "$ac_t""no" 1>&6
21342 if test $ac_cv_header_slp_h = yes ; then
21343 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21344 echo "configure:21345: checking for SLPOpen in -lslp" >&5
21345 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21346 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21347 echo $ac_n "(cached) $ac_c" 1>&6
21349 ac_save_LIBS="$LIBS"
21351 cat > conftest.$ac_ext <<EOF
21352 #line 21353 "configure"
21353 #include "confdefs.h"
21354 /* Override any gcc2 internal prototype to avoid an error. */
21355 /* We use char because int might match the return type of a gcc2
21356 builtin and then its argument prototype would still apply. */
21363 if { (eval echo configure:21364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21365 eval "ac_cv_lib_$ac_lib_var=yes"
21367 echo "configure: failed program was:" >&5
21368 cat conftest.$ac_ext >&5
21370 eval "ac_cv_lib_$ac_lib_var=no"
21373 LIBS="$ac_save_LIBS"
21376 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21377 echo "$ac_t""yes" 1>&6
21380 echo "$ac_t""no" 1>&6
21384 if test $have_slp = yes ; then
21385 cat >> confdefs.h <<\EOF
21389 SLAPD_SLP_LIBS=-lslp
21392 elif test $ol_enable_slp = yes ; then
21393 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21398 echo $ac_n "checking long long""... $ac_c" 1>&6
21399 echo "configure:21400: checking long long" >&5
21400 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21401 echo $ac_n "(cached) $ac_c" 1>&6
21404 cat > conftest.$ac_ext <<EOF
21405 #line 21406 "configure"
21406 #include "confdefs.h"
21412 if { (eval echo configure:21413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21414 ol_cv_type_long_long=yes
21416 echo "configure: failed program was:" >&5
21417 cat conftest.$ac_ext >&5
21419 ol_cv_type_long_long=no
21424 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21425 if test $ol_cv_type_long_long = yes; then
21426 cat >> confdefs.h <<\EOF
21427 #define HAVE_LONG_LONG 1
21432 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21433 echo "configure:21434: checking for ANSI C header files" >&5
21434 if eval "test \"\${ac_cv_header_stdc+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 #include <stdlib.h>
21441 #include <stdarg.h>
21442 #include <string.h>
21445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21446 { (eval echo configure:21447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21448 if test -z "$ac_err"; then
21450 ac_cv_header_stdc=yes
21453 echo "configure: failed program was:" >&5
21454 cat conftest.$ac_ext >&5
21456 ac_cv_header_stdc=no
21460 if test $ac_cv_header_stdc = yes; then
21461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21462 cat > conftest.$ac_ext <<EOF
21463 #line 21464 "configure"
21464 #include "confdefs.h"
21465 #include <string.h>
21467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21468 egrep "memchr" >/dev/null 2>&1; then
21472 ac_cv_header_stdc=no
21478 if test $ac_cv_header_stdc = yes; then
21479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21480 cat > conftest.$ac_ext <<EOF
21481 #line 21482 "configure"
21482 #include "confdefs.h"
21483 #include <stdlib.h>
21485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21486 egrep "free" >/dev/null 2>&1; then
21490 ac_cv_header_stdc=no
21496 if test $ac_cv_header_stdc = yes; then
21497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21498 if test "$cross_compiling" = yes; then
21501 cat > conftest.$ac_ext <<EOF
21502 #line 21503 "configure"
21503 #include "confdefs.h"
21505 #if ((' ' & 0x0FF) == 0x020)
21506 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21507 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21509 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21510 || ('j' <= (c) && (c) <= 'r') \
21511 || ('s' <= (c) && (c) <= 'z'))
21512 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21514 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21515 int main () { int i; for (i = 0; i < 256; i++)
21516 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21520 if { (eval echo configure:21521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21524 echo "configure: failed program was:" >&5
21525 cat conftest.$ac_ext >&5
21527 ac_cv_header_stdc=no
21535 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21536 if test $ac_cv_header_stdc = yes; then
21537 cat >> confdefs.h <<\EOF
21538 #define STDC_HEADERS 1
21543 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21544 echo "configure:21545: checking for mode_t" >&5
21545 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21546 echo $ac_n "(cached) $ac_c" 1>&6
21548 cat > conftest.$ac_ext <<EOF
21549 #line 21550 "configure"
21550 #include "confdefs.h"
21551 #include <sys/types.h>
21553 #include <stdlib.h>
21554 #include <stddef.h>
21558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21559 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21561 eval "ac_cv_type_mode_t=yes"
21564 eval "ac_cv_type_mode_t=no"
21569 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21570 echo "$ac_t""yes" 1>&6
21572 echo "$ac_t""no" 1>&6
21573 cat >> confdefs.h <<EOF
21579 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21580 echo "configure:21581: checking for off_t" >&5
21581 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21582 echo $ac_n "(cached) $ac_c" 1>&6
21584 cat > conftest.$ac_ext <<EOF
21585 #line 21586 "configure"
21586 #include "confdefs.h"
21587 #include <sys/types.h>
21589 #include <stdlib.h>
21590 #include <stddef.h>
21594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21595 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21597 eval "ac_cv_type_off_t=yes"
21600 eval "ac_cv_type_off_t=no"
21605 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21606 echo "$ac_t""yes" 1>&6
21608 echo "$ac_t""no" 1>&6
21609 cat >> confdefs.h <<EOF
21615 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21616 echo "configure:21617: checking for pid_t" >&5
21617 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21618 echo $ac_n "(cached) $ac_c" 1>&6
21620 cat > conftest.$ac_ext <<EOF
21621 #line 21622 "configure"
21622 #include "confdefs.h"
21623 #include <sys/types.h>
21625 #include <stdlib.h>
21626 #include <stddef.h>
21630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21631 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21633 eval "ac_cv_type_pid_t=yes"
21636 eval "ac_cv_type_pid_t=no"
21641 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21642 echo "$ac_t""yes" 1>&6
21644 echo "$ac_t""no" 1>&6
21645 cat >> confdefs.h <<EOF
21651 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21652 echo "configure:21653: checking for ptrdiff_t" >&5
21653 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21654 echo $ac_n "(cached) $ac_c" 1>&6
21656 cat > conftest.$ac_ext <<EOF
21657 #line 21658 "configure"
21658 #include "confdefs.h"
21659 #include <stddef.h>
21664 if { (eval echo configure:21665: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21666 am_cv_type_ptrdiff_t=yes
21668 echo "configure: failed program was:" >&5
21669 cat conftest.$ac_ext >&5
21671 am_cv_type_ptrdiff_t=no
21676 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21677 if test $am_cv_type_ptrdiff_t = yes; then
21678 cat >> confdefs.h <<\EOF
21679 #define HAVE_PTRDIFF_T 1
21684 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21685 echo "configure:21686: checking return type of signal handlers" >&5
21686 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21687 echo $ac_n "(cached) $ac_c" 1>&6
21689 cat > conftest.$ac_ext <<EOF
21690 #line 21691 "configure"
21691 #include "confdefs.h"
21692 #include <sys/types.h>
21693 #include <signal.h>
21698 extern "C" void (*signal (int, void (*)(int)))(int);
21700 void (*signal ()) ();
21707 if { (eval echo configure:21708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21709 ac_cv_type_signal=void
21711 echo "configure: failed program was:" >&5
21712 cat conftest.$ac_ext >&5
21714 ac_cv_type_signal=int
21719 echo "$ac_t""$ac_cv_type_signal" 1>&6
21720 cat >> confdefs.h <<EOF
21721 #define RETSIGTYPE $ac_cv_type_signal
21725 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21726 echo "configure:21727: checking for size_t" >&5
21727 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21728 echo $ac_n "(cached) $ac_c" 1>&6
21730 cat > conftest.$ac_ext <<EOF
21731 #line 21732 "configure"
21732 #include "confdefs.h"
21733 #include <sys/types.h>
21735 #include <stdlib.h>
21736 #include <stddef.h>
21740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21741 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21743 eval "ac_cv_type_size_t=yes"
21746 eval "ac_cv_type_size_t=no"
21751 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21752 echo "$ac_t""yes" 1>&6
21754 echo "$ac_t""no" 1>&6
21755 cat >> confdefs.h <<EOF
21756 #define size_t unsigned
21762 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21763 echo "configure:21764: checking for ssize_t" >&5
21764 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21765 echo $ac_n "(cached) $ac_c" 1>&6
21767 cat > conftest.$ac_ext <<EOF
21768 #line 21769 "configure"
21769 #include "confdefs.h"
21770 #include <sys/types.h>
21772 #include <stdlib.h>
21773 #include <stddef.h>
21777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21778 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21780 eval "ac_cv_type_ssize_t=yes"
21783 eval "ac_cv_type_ssize_t=no"
21788 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21789 echo "$ac_t""yes" 1>&6
21791 echo "$ac_t""no" 1>&6
21792 cat >> confdefs.h <<EOF
21793 #define ssize_t signed int
21798 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21799 echo "configure:21800: checking for caddr_t" >&5
21800 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21801 echo $ac_n "(cached) $ac_c" 1>&6
21803 cat > conftest.$ac_ext <<EOF
21804 #line 21805 "configure"
21805 #include "confdefs.h"
21806 #include <sys/types.h>
21808 #include <stdlib.h>
21809 #include <stddef.h>
21813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21814 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21816 eval "ac_cv_type_caddr_t=yes"
21819 eval "ac_cv_type_caddr_t=no"
21824 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21825 echo "$ac_t""yes" 1>&6
21827 echo "$ac_t""no" 1>&6
21828 cat >> confdefs.h <<EOF
21829 #define caddr_t char *
21835 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21836 echo "configure:21837: checking for socklen_t" >&5
21837 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21838 echo $ac_n "(cached) $ac_c" 1>&6
21840 cat > conftest.$ac_ext <<EOF
21841 #line 21842 "configure"
21842 #include "confdefs.h"
21844 #ifdef HAVE_SYS_TYPES_H
21845 #include <sys/types.h>
21847 #ifdef HAVE_SYS_SOCKET_H
21848 #include <sys/socket.h>
21855 if { (eval echo configure:21856: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21857 ol_cv_type_socklen_t=yes
21859 echo "configure: failed program was:" >&5
21860 cat conftest.$ac_ext >&5
21862 ol_cv_type_socklen_t=no
21867 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21868 if test $ol_cv_type_socklen_t = no; then
21869 cat >> confdefs.h <<\EOF
21870 #define socklen_t int
21875 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21876 echo "configure:21877: checking for member st_blksize in aggregate type struct stat" >&5
21877 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21878 echo $ac_n "(cached) $ac_c" 1>&6
21880 cat > conftest.$ac_ext <<EOF
21881 #line 21882 "configure"
21882 #include "confdefs.h"
21883 #include <sys/types.h>
21884 #include <sys/stat.h>
21886 struct stat foo; foo.st_blksize;
21889 if { (eval echo configure:21890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21891 ac_cv_c_struct_member_st_blksize=yes
21893 echo "configure: failed program was:" >&5
21894 cat conftest.$ac_ext >&5
21896 ac_cv_c_struct_member_st_blksize=no
21901 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21902 st_blksize="$ac_cv_c_struct_member_st_blksize"
21903 if test $ac_cv_c_struct_member_st_blksize = yes; then
21904 cat >> confdefs.h <<\EOF
21905 #define HAVE_ST_BLKSIZE 1
21910 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21911 echo "configure:21912: checking whether time.h and sys/time.h may both be included" >&5
21912 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21913 echo $ac_n "(cached) $ac_c" 1>&6
21915 cat > conftest.$ac_ext <<EOF
21916 #line 21917 "configure"
21917 #include "confdefs.h"
21918 #include <sys/types.h>
21919 #include <sys/time.h>
21925 if { (eval echo configure:21926: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21927 ac_cv_header_time=yes
21929 echo "configure: failed program was:" >&5
21930 cat conftest.$ac_ext >&5
21932 ac_cv_header_time=no
21937 echo "$ac_t""$ac_cv_header_time" 1>&6
21938 if test $ac_cv_header_time = yes; then
21939 cat >> confdefs.h <<\EOF
21940 #define TIME_WITH_SYS_TIME 1
21945 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21946 echo "configure:21947: checking whether struct tm is in sys/time.h or time.h" >&5
21947 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21948 echo $ac_n "(cached) $ac_c" 1>&6
21950 cat > conftest.$ac_ext <<EOF
21951 #line 21952 "configure"
21952 #include "confdefs.h"
21953 #include <sys/types.h>
21956 struct tm *tp; tp->tm_sec;
21959 if { (eval echo configure:21960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21961 ac_cv_struct_tm=time.h
21963 echo "configure: failed program was:" >&5
21964 cat conftest.$ac_ext >&5
21966 ac_cv_struct_tm=sys/time.h
21971 echo "$ac_t""$ac_cv_struct_tm" 1>&6
21972 if test $ac_cv_struct_tm = sys/time.h; then
21973 cat >> confdefs.h <<\EOF
21974 #define TM_IN_SYS_TIME 1
21979 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
21980 echo "configure:21981: checking for uid_t in sys/types.h" >&5
21981 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
21982 echo $ac_n "(cached) $ac_c" 1>&6
21984 cat > conftest.$ac_ext <<EOF
21985 #line 21986 "configure"
21986 #include "confdefs.h"
21987 #include <sys/types.h>
21989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21990 egrep "uid_t" >/dev/null 2>&1; then
21992 ac_cv_type_uid_t=yes
21995 ac_cv_type_uid_t=no
22001 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22002 if test $ac_cv_type_uid_t = no; then
22003 cat >> confdefs.h <<\EOF
22007 cat >> confdefs.h <<\EOF
22013 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22014 echo "configure:22015: checking for sig_atomic_t" >&5
22015 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22016 echo $ac_n "(cached) $ac_c" 1>&6
22018 cat > conftest.$ac_ext <<EOF
22019 #line 22020 "configure"
22020 #include "confdefs.h"
22021 #include <signal.h>
22023 sig_atomic_t atomic;
22026 if { (eval echo configure:22027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22028 ol_cv_type_sig_atomic_t=yes
22030 echo "configure: failed program was:" >&5
22031 cat conftest.$ac_ext >&5
22033 ol_cv_type_sig_atomic_t=no
22038 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22039 if test $ol_cv_type_sig_atomic_t = no; then
22040 cat >> confdefs.h <<\EOF
22041 #define sig_atomic_t int
22048 # test for pw_gecos in struct passwd
22049 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22050 echo "configure:22051: checking struct passwd for pw_gecos" >&5
22051 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22052 echo $ac_n "(cached) $ac_c" 1>&6
22055 cat > conftest.$ac_ext <<EOF
22056 #line 22057 "configure"
22057 #include "confdefs.h"
22062 pwd.pw_gecos = pwd.pw_name;
22066 if { (eval echo configure:22067: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22068 ol_cv_struct_passwd_pw_gecos=yes
22070 echo "configure: failed program was:" >&5
22071 cat conftest.$ac_ext >&5
22073 ol_cv_struct_passwd_pw_gecos=no
22078 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22079 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22080 cat >> confdefs.h <<\EOF
22081 #define HAVE_PW_GECOS 1
22086 # test for pw_passwd in struct passwd
22087 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22088 echo "configure:22089: checking struct passwd for pw_passwd" >&5
22089 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22090 echo $ac_n "(cached) $ac_c" 1>&6
22093 cat > conftest.$ac_ext <<EOF
22094 #line 22095 "configure"
22095 #include "confdefs.h"
22100 pwd.pw_passwd = pwd.pw_name;
22104 if { (eval echo configure:22105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22106 ol_cv_struct_passwd_pw_passwd=yes
22108 echo "configure: failed program was:" >&5
22109 cat conftest.$ac_ext >&5
22111 ol_cv_struct_passwd_pw_passwd=no
22116 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22117 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22118 cat >> confdefs.h <<\EOF
22119 #define HAVE_PW_PASSWD 1
22125 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22126 echo "configure:22127: checking if toupper() requires islower()" >&5
22127 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22128 echo $ac_n "(cached) $ac_c" 1>&6
22131 if test "$cross_compiling" = yes; then
22132 ol_cv_c_upper_lower=safe
22134 cat > conftest.$ac_ext <<EOF
22135 #line 22136 "configure"
22136 #include "confdefs.h"
22141 if ('C' == toupper('C'))
22147 if { (eval echo configure:22148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22149 ol_cv_c_upper_lower=no
22151 echo "configure: failed program was:" >&5
22152 cat conftest.$ac_ext >&5
22154 ol_cv_c_upper_lower=yes
22161 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22162 if test $ol_cv_c_upper_lower != no ; then
22163 cat >> confdefs.h <<\EOF
22164 #define C_UPPER_LOWER 1
22169 echo $ac_n "checking for working const""... $ac_c" 1>&6
22170 echo "configure:22171: checking for working const" >&5
22171 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22172 echo $ac_n "(cached) $ac_c" 1>&6
22174 cat > conftest.$ac_ext <<EOF
22175 #line 22176 "configure"
22176 #include "confdefs.h"
22180 /* Ultrix mips cc rejects this. */
22181 typedef int charset[2]; const charset x;
22182 /* SunOS 4.1.1 cc rejects this. */
22183 char const *const *ccp;
22185 /* NEC SVR4.0.2 mips cc rejects this. */
22186 struct point {int x, y;};
22187 static struct point const zero = {0,0};
22188 /* AIX XL C 1.02.0.0 rejects this.
22189 It does not let you subtract one const X* pointer from another in an arm
22190 of an if-expression whose if-part is not a constant expression */
22191 const char *g = "string";
22192 ccp = &g + (g ? g-g : 0);
22193 /* HPUX 7.0 cc rejects these. */
22196 ccp = (char const *const *) p;
22197 { /* SCO 3.2v4 cc rejects this. */
22199 char const *s = 0 ? (char *) 0 : (char const *) 0;
22203 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22204 int x[] = {25, 17};
22205 const int *foo = &x[0];
22208 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22209 typedef const int *iptr;
22213 { /* AIX XL C 1.02.0.0 rejects this saying
22214 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22215 struct s { int j; const int *ap[3]; };
22216 struct s *b; b->j = 5;
22218 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22219 const int foo = 10;
22224 if { (eval echo configure:22225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22228 echo "configure: failed program was:" >&5
22229 cat conftest.$ac_ext >&5
22236 echo "$ac_t""$ac_cv_c_const" 1>&6
22237 if test $ac_cv_c_const = no; then
22238 cat >> confdefs.h <<\EOF
22244 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22245 echo "configure:22246: checking if compiler understands volatile" >&5
22246 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22247 echo $ac_n "(cached) $ac_c" 1>&6
22249 cat > conftest.$ac_ext <<EOF
22250 #line 22251 "configure"
22251 #include "confdefs.h"
22254 volatile int a; int * volatile b = x ? &y : &z;
22255 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22259 if { (eval echo configure:22260: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22261 ol_cv_c_volatile=yes
22263 echo "configure: failed program was:" >&5
22264 cat conftest.$ac_ext >&5
22266 ol_cv_c_volatile=no
22271 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22272 if test $ol_cv_c_volatile = yes; then
22275 cat >> confdefs.h <<\EOF
22282 if test $cross_compiling = yes ; then
22283 cat >> confdefs.h <<\EOF
22284 #define CROSS_COMPILING 1
22288 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22289 echo "configure:22290: checking whether byte ordering is bigendian" >&5
22290 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22291 echo $ac_n "(cached) $ac_c" 1>&6
22293 ac_cv_c_bigendian=unknown
22294 # See if sys/param.h defines the BYTE_ORDER macro.
22295 cat > conftest.$ac_ext <<EOF
22296 #line 22297 "configure"
22297 #include "confdefs.h"
22298 #include <sys/types.h>
22299 #include <sys/param.h>
22302 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22303 bogus endian macros
22307 if { (eval echo configure:22308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22309 # It does; now see whether it defined to BIG_ENDIAN or not.
22310 cat > conftest.$ac_ext <<EOF
22311 #line 22312 "configure"
22312 #include "confdefs.h"
22313 #include <sys/types.h>
22314 #include <sys/param.h>
22317 #if BYTE_ORDER != BIG_ENDIAN
22322 if { (eval echo configure:22323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22324 ac_cv_c_bigendian=yes
22326 echo "configure: failed program was:" >&5
22327 cat conftest.$ac_ext >&5
22329 ac_cv_c_bigendian=no
22333 echo "configure: failed program was:" >&5
22334 cat conftest.$ac_ext >&5
22337 if test $ac_cv_c_bigendian = unknown; then
22338 if test "$cross_compiling" = yes; then
22339 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22341 cat > conftest.$ac_ext <<EOF
22342 #line 22343 "configure"
22343 #include "confdefs.h"
22345 /* Are we little or big endian? From Harbison&Steele. */
22349 char c[sizeof (long)];
22352 exit (u.c[sizeof (long) - 1] == 1);
22355 if { (eval echo configure:22356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22357 ac_cv_c_bigendian=no
22359 echo "configure: failed program was:" >&5
22360 cat conftest.$ac_ext >&5
22362 ac_cv_c_bigendian=yes
22370 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22371 if test $ac_cv_c_bigendian = yes; then
22372 cat >> confdefs.h <<\EOF
22373 #define WORDS_BIGENDIAN 1
22380 echo $ac_n "checking size of short""... $ac_c" 1>&6
22381 echo "configure:22382: checking size of short" >&5
22382 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22383 echo $ac_n "(cached) $ac_c" 1>&6
22385 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22386 cat > conftest.$ac_ext <<EOF
22387 #line 22388 "configure"
22388 #include "confdefs.h"
22389 #include "confdefs.h"
22390 #include <sys/types.h>
22394 switch (0) case 0: case (sizeof (short) == $ac_size):;
22397 if { (eval echo configure:22398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22399 ac_cv_sizeof_short=$ac_size
22401 echo "configure: failed program was:" >&5
22402 cat conftest.$ac_ext >&5
22405 if test x$ac_cv_sizeof_short != x ; then break; fi
22410 if test x$ac_cv_sizeof_short = x ; then
22411 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22413 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22414 cat >> confdefs.h <<EOF
22415 #define SIZEOF_SHORT $ac_cv_sizeof_short
22419 echo $ac_n "checking size of int""... $ac_c" 1>&6
22420 echo "configure:22421: checking size of int" >&5
22421 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22422 echo $ac_n "(cached) $ac_c" 1>&6
22424 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22425 cat > conftest.$ac_ext <<EOF
22426 #line 22427 "configure"
22427 #include "confdefs.h"
22428 #include "confdefs.h"
22429 #include <sys/types.h>
22433 switch (0) case 0: case (sizeof (int) == $ac_size):;
22436 if { (eval echo configure:22437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22438 ac_cv_sizeof_int=$ac_size
22440 echo "configure: failed program was:" >&5
22441 cat conftest.$ac_ext >&5
22444 if test x$ac_cv_sizeof_int != x ; then break; fi
22449 if test x$ac_cv_sizeof_int = x ; then
22450 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22452 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22453 cat >> confdefs.h <<EOF
22454 #define SIZEOF_INT $ac_cv_sizeof_int
22458 echo $ac_n "checking size of long""... $ac_c" 1>&6
22459 echo "configure:22460: checking size of long" >&5
22460 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22461 echo $ac_n "(cached) $ac_c" 1>&6
22463 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22464 cat > conftest.$ac_ext <<EOF
22465 #line 22466 "configure"
22466 #include "confdefs.h"
22467 #include "confdefs.h"
22468 #include <sys/types.h>
22472 switch (0) case 0: case (sizeof (long) == $ac_size):;
22475 if { (eval echo configure:22476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22477 ac_cv_sizeof_long=$ac_size
22479 echo "configure: failed program was:" >&5
22480 cat conftest.$ac_ext >&5
22483 if test x$ac_cv_sizeof_long != x ; then break; fi
22488 if test x$ac_cv_sizeof_long = x ; then
22489 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22491 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22492 cat >> confdefs.h <<EOF
22493 #define SIZEOF_LONG $ac_cv_sizeof_long
22498 if test "$ac_cv_sizeof_int" -lt 4 ; then
22499 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22501 cat >> confdefs.h <<\EOF
22502 #define LBER_INT_T long
22506 cat >> confdefs.h <<\EOF
22507 #define LBER_INT_T int
22512 cat >> confdefs.h <<\EOF
22513 #define LBER_LEN_T long
22516 cat >> confdefs.h <<\EOF
22517 #define LBER_SOCKET_T int
22520 cat >> confdefs.h <<\EOF
22521 #define LBER_TAG_T long
22525 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22526 echo "configure:22527: checking for 8-bit clean memcmp" >&5
22527 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22528 echo $ac_n "(cached) $ac_c" 1>&6
22530 if test "$cross_compiling" = yes; then
22531 ac_cv_func_memcmp_clean=no
22533 cat > conftest.$ac_ext <<EOF
22534 #line 22535 "configure"
22535 #include "confdefs.h"
22539 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22540 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22544 if { (eval echo configure:22545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22546 ac_cv_func_memcmp_clean=yes
22548 echo "configure: failed program was:" >&5
22549 cat conftest.$ac_ext >&5
22551 ac_cv_func_memcmp_clean=no
22558 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22559 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22561 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22562 echo "configure:22563: checking for strftime" >&5
22563 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22564 echo $ac_n "(cached) $ac_c" 1>&6
22566 cat > conftest.$ac_ext <<EOF
22567 #line 22568 "configure"
22568 #include "confdefs.h"
22569 /* System header to define __stub macros and hopefully few prototypes,
22570 which can conflict with char strftime(); below. */
22571 #include <assert.h>
22572 /* Override any gcc2 internal prototype to avoid an error. */
22573 /* We use char because int might match the return type of a gcc2
22574 builtin and then its argument prototype would still apply. */
22580 /* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined (__stub_strftime) || defined (__stub___strftime)
22591 if { (eval echo configure:22592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22593 eval "ac_cv_func_strftime=yes"
22595 echo "configure: failed program was:" >&5
22596 cat conftest.$ac_ext >&5
22598 eval "ac_cv_func_strftime=no"
22603 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22604 echo "$ac_t""yes" 1>&6
22605 cat >> confdefs.h <<\EOF
22606 #define HAVE_STRFTIME 1
22610 echo "$ac_t""no" 1>&6
22611 # strftime is in -lintl on SCO UNIX.
22612 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22613 echo "configure:22614: checking for strftime in -lintl" >&5
22614 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22615 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22616 echo $ac_n "(cached) $ac_c" 1>&6
22618 ac_save_LIBS="$LIBS"
22619 LIBS="-lintl $LIBS"
22620 cat > conftest.$ac_ext <<EOF
22621 #line 22622 "configure"
22622 #include "confdefs.h"
22623 /* Override any gcc2 internal prototype to avoid an error. */
22624 /* We use char because int might match the return type of a gcc2
22625 builtin and then its argument prototype would still apply. */
22632 if { (eval echo configure:22633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22634 eval "ac_cv_lib_$ac_lib_var=yes"
22636 echo "configure: failed program was:" >&5
22637 cat conftest.$ac_ext >&5
22639 eval "ac_cv_lib_$ac_lib_var=no"
22642 LIBS="$ac_save_LIBS"
22645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22646 echo "$ac_t""yes" 1>&6
22647 cat >> confdefs.h <<\EOF
22648 #define HAVE_STRFTIME 1
22651 LIBS="-lintl $LIBS"
22653 echo "$ac_t""no" 1>&6
22659 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22660 echo "configure:22661: checking for inet_aton()" >&5
22661 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22662 echo $ac_n "(cached) $ac_c" 1>&6
22664 cat > conftest.$ac_ext <<EOF
22665 #line 22666 "configure"
22666 #include "confdefs.h"
22668 #ifdef HAVE_SYS_TYPES_H
22669 # include <sys/types.h>
22671 #ifdef HAVE_SYS_SOCKET_H
22672 # include <sys/socket.h>
22673 # ifdef HAVE_SYS_SELECT_H
22674 # include <sys/select.h>
22676 # include <netinet/in.h>
22677 # ifdef HAVE_ARPA_INET_H
22678 # include <arpa/inet.h>
22684 int rc = inet_aton( "255.255.255.255", &in );
22687 if { (eval echo configure:22688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22689 ol_cv_func_inet_aton=yes
22691 echo "configure: failed program was:" >&5
22692 cat conftest.$ac_ext >&5
22694 ol_cv_func_inet_aton=no
22699 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22700 if test $ol_cv_func_inet_aton != no; then
22701 cat >> confdefs.h <<\EOF
22702 #define HAVE_INET_ATON 1
22708 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22709 echo "configure:22710: checking for _spawnlp" >&5
22710 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22711 echo $ac_n "(cached) $ac_c" 1>&6
22713 cat > conftest.$ac_ext <<EOF
22714 #line 22715 "configure"
22715 #include "confdefs.h"
22716 /* System header to define __stub macros and hopefully few prototypes,
22717 which can conflict with char _spawnlp(); below. */
22718 #include <assert.h>
22719 /* Override any gcc2 internal prototype to avoid an error. */
22720 /* We use char because int might match the return type of a gcc2
22721 builtin and then its argument prototype would still apply. */
22727 /* The GNU C library defines this for functions which it implements
22728 to always fail with ENOSYS. Some functions are actually named
22729 something starting with __ and the normal name is an alias. */
22730 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22738 if { (eval echo configure:22739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22740 eval "ac_cv_func__spawnlp=yes"
22742 echo "configure: failed program was:" >&5
22743 cat conftest.$ac_ext >&5
22745 eval "ac_cv_func__spawnlp=no"
22750 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22751 echo "$ac_t""yes" 1>&6
22752 cat >> confdefs.h <<\EOF
22753 #define HAVE_SPAWNLP 1
22757 echo "$ac_t""no" 1>&6
22761 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22762 echo "configure:22763: checking for _snprintf" >&5
22763 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22764 echo $ac_n "(cached) $ac_c" 1>&6
22766 cat > conftest.$ac_ext <<EOF
22767 #line 22768 "configure"
22768 #include "confdefs.h"
22769 /* System header to define __stub macros and hopefully few prototypes,
22770 which can conflict with char _snprintf(); below. */
22771 #include <assert.h>
22772 /* Override any gcc2 internal prototype to avoid an error. */
22773 /* We use char because int might match the return type of a gcc2
22774 builtin and then its argument prototype would still apply. */
22780 /* The GNU C library defines this for functions which it implements
22781 to always fail with ENOSYS. Some functions are actually named
22782 something starting with __ and the normal name is an alias. */
22783 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22791 if { (eval echo configure:22792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22793 eval "ac_cv_func__snprintf=yes"
22795 echo "configure: failed program was:" >&5
22796 cat conftest.$ac_ext >&5
22798 eval "ac_cv_func__snprintf=no"
22803 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22804 echo "$ac_t""yes" 1>&6
22805 ac_cv_func_snprintf=yes
22806 cat >> confdefs.h <<\EOF
22807 #define snprintf _snprintf
22812 echo "$ac_t""no" 1>&6
22816 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22817 echo "configure:22818: checking for _vsnprintf" >&5
22818 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22819 echo $ac_n "(cached) $ac_c" 1>&6
22821 cat > conftest.$ac_ext <<EOF
22822 #line 22823 "configure"
22823 #include "confdefs.h"
22824 /* System header to define __stub macros and hopefully few prototypes,
22825 which can conflict with char _vsnprintf(); below. */
22826 #include <assert.h>
22827 /* Override any gcc2 internal prototype to avoid an error. */
22828 /* We use char because int might match the return type of a gcc2
22829 builtin and then its argument prototype would still apply. */
22835 /* The GNU C library defines this for functions which it implements
22836 to always fail with ENOSYS. Some functions are actually named
22837 something starting with __ and the normal name is an alias. */
22838 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22846 if { (eval echo configure:22847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22848 eval "ac_cv_func__vsnprintf=yes"
22850 echo "configure: failed program was:" >&5
22851 cat conftest.$ac_ext >&5
22853 eval "ac_cv_func__vsnprintf=no"
22858 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22859 echo "$ac_t""yes" 1>&6
22860 ac_cv_func_vsnprintf=yes
22861 cat >> confdefs.h <<\EOF
22862 #define vsnprintf _vsnprintf
22867 echo "$ac_t""no" 1>&6
22871 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22872 echo "configure:22873: checking for vprintf" >&5
22873 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22874 echo $ac_n "(cached) $ac_c" 1>&6
22876 cat > conftest.$ac_ext <<EOF
22877 #line 22878 "configure"
22878 #include "confdefs.h"
22879 /* System header to define __stub macros and hopefully few prototypes,
22880 which can conflict with char vprintf(); below. */
22881 #include <assert.h>
22882 /* Override any gcc2 internal prototype to avoid an error. */
22883 /* We use char because int might match the return type of a gcc2
22884 builtin and then its argument prototype would still apply. */
22890 /* The GNU C library defines this for functions which it implements
22891 to always fail with ENOSYS. Some functions are actually named
22892 something starting with __ and the normal name is an alias. */
22893 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22901 if { (eval echo configure:22902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22903 eval "ac_cv_func_vprintf=yes"
22905 echo "configure: failed program was:" >&5
22906 cat conftest.$ac_ext >&5
22908 eval "ac_cv_func_vprintf=no"
22913 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22914 echo "$ac_t""yes" 1>&6
22915 cat >> confdefs.h <<\EOF
22916 #define HAVE_VPRINTF 1
22920 echo "$ac_t""no" 1>&6
22923 if test "$ac_cv_func_vprintf" != yes; then
22924 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22925 echo "configure:22926: checking for _doprnt" >&5
22926 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22927 echo $ac_n "(cached) $ac_c" 1>&6
22929 cat > conftest.$ac_ext <<EOF
22930 #line 22931 "configure"
22931 #include "confdefs.h"
22932 /* System header to define __stub macros and hopefully few prototypes,
22933 which can conflict with char _doprnt(); below. */
22934 #include <assert.h>
22935 /* Override any gcc2 internal prototype to avoid an error. */
22936 /* We use char because int might match the return type of a gcc2
22937 builtin and then its argument prototype would still apply. */
22943 /* The GNU C library defines this for functions which it implements
22944 to always fail with ENOSYS. Some functions are actually named
22945 something starting with __ and the normal name is an alias. */
22946 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22954 if { (eval echo configure:22955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22956 eval "ac_cv_func__doprnt=yes"
22958 echo "configure: failed program was:" >&5
22959 cat conftest.$ac_ext >&5
22961 eval "ac_cv_func__doprnt=no"
22966 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22967 echo "$ac_t""yes" 1>&6
22968 cat >> confdefs.h <<\EOF
22969 #define HAVE_DOPRNT 1
22973 echo "$ac_t""no" 1>&6
22979 if test $ac_cv_func_vprintf = yes ; then
22980 for ac_func in snprintf vsnprintf
22982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
22983 echo "configure:22984: checking for $ac_func" >&5
22984 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
22985 echo $ac_n "(cached) $ac_c" 1>&6
22987 cat > conftest.$ac_ext <<EOF
22988 #line 22989 "configure"
22989 #include "confdefs.h"
22990 /* System header to define __stub macros and hopefully few prototypes,
22991 which can conflict with char $ac_func(); below. */
22992 #include <assert.h>
22993 /* Override any gcc2 internal prototype to avoid an error. */
22994 /* We use char because int might match the return type of a gcc2
22995 builtin and then its argument prototype would still apply. */
23001 /* The GNU C library defines this for functions which it implements
23002 to always fail with ENOSYS. Some functions are actually named
23003 something starting with __ and the normal name is an alias. */
23004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23012 if { (eval echo configure:23013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23014 eval "ac_cv_func_$ac_func=yes"
23016 echo "configure: failed program was:" >&5
23017 cat conftest.$ac_ext >&5
23019 eval "ac_cv_func_$ac_func=no"
23024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23025 echo "$ac_t""yes" 1>&6
23026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23027 cat >> confdefs.h <<EOF
23028 #define $ac_tr_func 1
23032 echo "$ac_t""no" 1>&6
23097 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23098 echo "configure:23099: checking for $ac_func" >&5
23099 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23100 echo $ac_n "(cached) $ac_c" 1>&6
23102 cat > conftest.$ac_ext <<EOF
23103 #line 23104 "configure"
23104 #include "confdefs.h"
23105 /* System header to define __stub macros and hopefully few prototypes,
23106 which can conflict with char $ac_func(); below. */
23107 #include <assert.h>
23108 /* Override any gcc2 internal prototype to avoid an error. */
23109 /* We use char because int might match the return type of a gcc2
23110 builtin and then its argument prototype would still apply. */
23116 /* The GNU C library defines this for functions which it implements
23117 to always fail with ENOSYS. Some functions are actually named
23118 something starting with __ and the normal name is an alias. */
23119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23127 if { (eval echo configure:23128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23129 eval "ac_cv_func_$ac_func=yes"
23131 echo "configure: failed program was:" >&5
23132 cat conftest.$ac_ext >&5
23134 eval "ac_cv_func_$ac_func=no"
23139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23140 echo "$ac_t""yes" 1>&6
23141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23142 cat >> confdefs.h <<EOF
23143 #define $ac_tr_func 1
23147 echo "$ac_t""no" 1>&6
23152 for ac_func in getopt getpeereid
23154 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23155 echo "configure:23156: checking for $ac_func" >&5
23156 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23157 echo $ac_n "(cached) $ac_c" 1>&6
23159 cat > conftest.$ac_ext <<EOF
23160 #line 23161 "configure"
23161 #include "confdefs.h"
23162 /* System header to define __stub macros and hopefully few prototypes,
23163 which can conflict with char $ac_func(); below. */
23164 #include <assert.h>
23165 /* Override any gcc2 internal prototype to avoid an error. */
23166 /* We use char because int might match the return type of a gcc2
23167 builtin and then its argument prototype would still apply. */
23173 /* The GNU C library defines this for functions which it implements
23174 to always fail with ENOSYS. Some functions are actually named
23175 something starting with __ and the normal name is an alias. */
23176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23184 if { (eval echo configure:23185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23186 eval "ac_cv_func_$ac_func=yes"
23188 echo "configure: failed program was:" >&5
23189 cat conftest.$ac_ext >&5
23191 eval "ac_cv_func_$ac_func=no"
23196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23197 echo "$ac_t""yes" 1>&6
23198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23199 cat >> confdefs.h <<EOF
23200 #define $ac_tr_func 1
23204 echo "$ac_t""no" 1>&6
23205 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23211 if test "$ac_cv_func_getopt" != yes; then
23212 LIBSRCS="$LIBSRCS getopt.c"
23214 if test "$ac_cv_func_getpeereid" != yes; then
23215 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23216 echo "configure:23217: checking for msg_accrights in msghdr" >&5
23217 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23218 echo $ac_n "(cached) $ac_c" 1>&6
23220 cat > conftest.$ac_ext <<EOF
23221 #line 23222 "configure"
23222 #include "confdefs.h"
23223 #include <sys/socket.h>
23225 struct msghdr m; m.msg_accrightslen=0
23228 if { (eval echo configure:23229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23230 ol_cv_msghdr_msg_accrights=yes
23232 echo "configure: failed program was:" >&5
23233 cat conftest.$ac_ext >&5
23235 ol_cv_msghdr_msg_accrights=no
23241 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23242 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23243 cat >> confdefs.h <<\EOF
23244 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23249 LIBSRCS="$LIBSRCS getpeereid.c"
23251 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23252 if test "$ac_cv_func_snprintf" != yes; then
23253 cat >> confdefs.h <<\EOF
23254 #define snprintf ber_pvt_snprintf
23258 if test "$ac_cv_func_vsnprintf" != yes; then
23259 cat >> confdefs.h <<\EOF
23260 #define vsnprintf ber_pvt_vsnprintf
23266 # Check Configuration
23267 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23268 echo "configure:23269: checking declaration of sys_errlist" >&5
23269 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23270 echo $ac_n "(cached) $ac_c" 1>&6
23273 cat > conftest.$ac_ext <<EOF
23274 #line 23275 "configure"
23275 #include "confdefs.h"
23278 #include <sys/types.h>
23281 #include <stdlib.h>
23284 char *c = (char *) *sys_errlist
23287 if { (eval echo configure:23288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23289 ol_cv_dcl_sys_errlist=yes
23290 ol_cv_have_sys_errlist=yes
23292 echo "configure: failed program was:" >&5
23293 cat conftest.$ac_ext >&5
23295 ol_cv_dcl_sys_errlist=no
23300 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23302 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23303 if test $ol_cv_dcl_sys_errlist = no ; then
23304 cat >> confdefs.h <<\EOF
23305 #define DECL_SYS_ERRLIST 1
23309 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23310 echo "configure:23311: checking existence of sys_errlist" >&5
23311 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23312 echo $ac_n "(cached) $ac_c" 1>&6
23315 cat > conftest.$ac_ext <<EOF
23316 #line 23317 "configure"
23317 #include "confdefs.h"
23320 char *c = (char *) *sys_errlist
23323 if { (eval echo configure:23324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23325 ol_cv_have_sys_errlist=yes
23327 echo "configure: failed program was:" >&5
23328 cat conftest.$ac_ext >&5
23330 ol_cv_have_sys_errlist=no
23335 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23337 if test $ol_cv_have_sys_errlist = yes ; then
23338 cat >> confdefs.h <<\EOF
23339 #define HAVE_SYS_ERRLIST 1
23346 if test "$ol_enable_slapi" != no ; then
23347 for ac_hdr in ltdl.h
23349 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23350 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23351 echo "configure:23352: checking for $ac_hdr" >&5
23352 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23353 echo $ac_n "(cached) $ac_c" 1>&6
23355 cat > conftest.$ac_ext <<EOF
23356 #line 23357 "configure"
23357 #include "confdefs.h"
23360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23361 { (eval echo configure:23362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23363 if test -z "$ac_err"; then
23365 eval "ac_cv_header_$ac_safe=yes"
23368 echo "configure: failed program was:" >&5
23369 cat conftest.$ac_ext >&5
23371 eval "ac_cv_header_$ac_safe=no"
23375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23376 echo "$ac_t""yes" 1>&6
23377 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23378 cat >> confdefs.h <<EOF
23379 #define $ac_tr_hdr 1
23383 echo "$ac_t""no" 1>&6
23388 if test $ac_cv_header_ltdl_h != yes ; then
23389 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23391 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23392 echo "configure:23393: checking for lt_dlinit in -lltdl" >&5
23393 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23394 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23395 echo $ac_n "(cached) $ac_c" 1>&6
23397 ac_save_LIBS="$LIBS"
23398 LIBS="-lltdl $LIBS"
23399 cat > conftest.$ac_ext <<EOF
23400 #line 23401 "configure"
23401 #include "confdefs.h"
23402 /* Override any gcc2 internal prototype to avoid an error. */
23403 /* We use char because int might match the return type of a gcc2
23404 builtin and then its argument prototype would still apply. */
23411 if { (eval echo configure:23412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23413 eval "ac_cv_lib_$ac_lib_var=yes"
23415 echo "configure: failed program was:" >&5
23416 cat conftest.$ac_ext >&5
23418 eval "ac_cv_lib_$ac_lib_var=no"
23421 LIBS="$ac_save_LIBS"
23424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23425 echo "$ac_t""yes" 1>&6
23428 LIBSLAPI=libslapi.a
23429 LIBSLAPITOOLS=../libslapi.a
23430 cat >> confdefs.h <<\EOF
23431 #define HAVE_LIBLTDL 1
23436 echo "$ac_t""no" 1>&6
23437 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23441 cat >> confdefs.h <<\EOF
23442 #define LDAP_SLAPI 1
23447 if test "$ol_enable_debug" != no ; then
23448 cat >> confdefs.h <<\EOF
23449 #define LDAP_DEBUG 1
23453 if test "$ol_enable_syslog" = yes ; then
23454 cat >> confdefs.h <<\EOF
23455 #define LDAP_SYSLOG 1
23459 if test "$ol_link_kbind" != no ; then
23460 cat >> confdefs.h <<\EOF
23461 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23465 if test "$ol_enable_proctitle" != no ; then
23466 cat >> confdefs.h <<\EOF
23467 #define LDAP_PROCTITLE 1
23471 if test "$ol_enable_referrals" != no ; then
23472 cat >> confdefs.h <<\EOF
23473 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23477 if test "$ol_enable_local" != no; then
23478 cat >> confdefs.h <<\EOF
23479 #define LDAP_PF_LOCAL 1
23483 if test "$ol_link_ipv6" != no; then
23484 cat >> confdefs.h <<\EOF
23485 #define LDAP_PF_INET6 1
23489 if test "$ol_enable_cleartext" != no ; then
23490 cat >> confdefs.h <<\EOF
23491 #define SLAPD_CLEARTEXT 1
23495 if test "$ol_enable_crypt" != no ; then
23496 cat >> confdefs.h <<\EOF
23497 #define SLAPD_CRYPT 1
23501 if test "$ol_link_spasswd" != no ; then
23502 cat >> confdefs.h <<\EOF
23503 #define SLAPD_SPASSWD 1
23507 if test "$ol_enable_multimaster" != no ; then
23508 cat >> confdefs.h <<\EOF
23509 #define SLAPD_MULTIMASTER 1
23513 if test "$ol_enable_rlookups" != no ; then
23514 cat >> confdefs.h <<\EOF
23515 #define SLAPD_RLOOKUPS 1
23519 if test "$ol_enable_aci" != no ; then
23520 cat >> confdefs.h <<\EOF
23521 #define SLAPD_ACI_ENABLED 1
23526 if test "$ol_link_modules" != no ; then
23527 cat >> confdefs.h <<\EOF
23528 #define SLAPD_MODULES 1
23532 SLAPD_MODULES_LDFLAGS="-dlopen self"
23535 cat >> confdefs.h <<\EOF
23536 #define SLAPD_MOD_STATIC 1
23539 cat >> confdefs.h <<\EOF
23540 #define SLAPD_MOD_DYNAMIC 2
23544 if test "$ol_enable_bdb" != no ; then
23545 cat >> confdefs.h <<\EOF
23546 #define SLAPD_BDB 1
23551 if test "$ol_with_bdb_module" != static ; then
23552 cat >> confdefs.h <<\EOF
23553 #define SLAPD_BDB_DYNAMIC 1
23557 BUILD_BDB_DYNAMIC=shared
23558 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23560 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23564 if test "$ol_link_dnssrv" != no ; then
23565 cat >> confdefs.h <<\EOF
23566 #define SLAPD_DNSSRV 1
23571 if test "$ol_with_dnssrv_module" != static ; then
23572 cat >> confdefs.h <<\EOF
23573 #define SLAPD_DNSSRV_DYNAMIC 1
23577 BUILD_DNSSRV_DYNAMIC=shared
23578 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23580 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23584 if test "$ol_enable_hdb" != no ; then
23585 cat >> confdefs.h <<\EOF
23586 #define SLAPD_HDB 1
23591 if test "$ol_with_hdb_module" != static ; then
23592 cat >> confdefs.h <<\EOF
23593 #define SLAPD_HDB_DYNAMIC 1
23597 BUILD_HDB_DYNAMIC=shared
23598 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23600 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23604 if test "$ol_enable_ldap" != no ; then
23605 cat >> confdefs.h <<\EOF
23606 #define SLAPD_LDAP 1
23611 if test "$ol_with_ldap_module" != static ; then
23612 cat >> confdefs.h <<\EOF
23613 #define SLAPD_LDAP_DYNAMIC 1
23617 BUILD_LDAP_DYNAMIC=shared
23618 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23620 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23624 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23625 cat >> confdefs.h <<\EOF
23626 #define SLAPD_LDBM 1
23631 if test "$ol_with_ldbm_module" != static ; then
23632 cat >> confdefs.h <<\EOF
23633 #define SLAPD_LDBM_DYNAMIC 1
23637 BUILD_LDBM_DYNAMIC=shared
23638 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23640 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23644 if test "$ol_enable_meta" != no ; then
23645 if test "$ol_enable_ldap" = no ; then
23646 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23648 if test "$ol_enable_rewrite" = no ; then
23649 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23651 cat >> confdefs.h <<\EOF
23652 #define SLAPD_META 1
23658 if test "$ol_with_meta_module" != static ; then
23659 cat >> confdefs.h <<\EOF
23660 #define SLAPD_META_DYNAMIC 1
23664 BUILD_META_DYNAMIC=shared
23665 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23667 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23671 if test "$ol_enable_monitor" != no ; then
23672 cat >> confdefs.h <<\EOF
23673 #define SLAPD_MONITOR 1
23678 if test "$ol_with_monitor_module" != static ; then
23679 cat >> confdefs.h <<\EOF
23680 #define SLAPD_MONITOR_DYNAMIC 1
23684 BUILD_MONITOR_DYNAMIC=shared
23685 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23687 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23691 if test "$ol_enable_null" != no ; then
23692 cat >> confdefs.h <<\EOF
23693 #define SLAPD_NULL 1
23698 if test "$ol_with_null_module" != static ; then
23699 cat >> confdefs.h <<\EOF
23700 #define SLAPD_NULL_DYNAMIC 1
23704 BUILD_NULL_DYNAMIC=shared
23705 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23707 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23711 if test "$ol_enable_passwd" != no ; then
23712 cat >> confdefs.h <<\EOF
23713 #define SLAPD_PASSWD 1
23718 if test "$ol_with_passwd_module" != static ; then
23719 cat >> confdefs.h <<\EOF
23720 #define SLAPD_PASSWD_DYNAMIC 1
23724 BUILD_PASSWD_DYNAMIC=shared
23725 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23727 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23731 if test "$ol_link_perl" != no ; then
23732 cat >> confdefs.h <<\EOF
23733 #define SLAPD_PERL 1
23738 if test "$ol_with_perl_module" != static ; then
23739 cat >> confdefs.h <<\EOF
23740 #define SLAPD_PERL_DYNAMIC 1
23744 BUILD_PERL_DYNAMIC=shared
23745 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23747 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23751 if test "$ol_enable_shell" != no ; then
23752 if test "$ol_link_thread" != no ; then
23753 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23755 cat >> confdefs.h <<\EOF
23756 #define SLAPD_SHELL 1
23761 if test "$ol_with_shell_module" != static ; then
23762 cat >> confdefs.h <<\EOF
23763 #define SLAPD_SHELL_DYNAMIC 1
23767 BUILD_SHELL_DYNAMIC=shared
23768 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23770 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23774 if test "$ol_link_sql" != no ; then
23775 cat >> confdefs.h <<\EOF
23776 #define SLAPD_SQL 1
23781 if test "$ol_with_sql_module" != static; then
23782 cat >> confdefs.h <<\EOF
23783 #define SLAPD_SQL_DYNAMIC 1
23787 BUILD_SQL_DYNAMIC=shared
23788 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23790 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23794 if test "$ol_with_dyngroup" != no ; then
23795 BUILD_DYNGROUP=$ol_with_dyngroup
23796 if test "$ol_with_dyngroup" = mod ; then
23797 MFLAG=SLAPD_MOD_DYNAMIC
23798 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23800 MFLAG=SLAPD_MOD_STATIC
23802 cat >> confdefs.h <<EOF
23803 #define SLAPD_OVER_DYNGROUP $MFLAG
23808 if test "$ol_with_proxycache" != no ; then
23809 BUILD_PROXYCACHE=$ol_with_proxycache
23810 if test "$ol_with_proxycache" = mod ; then
23811 MFLAG=SLAPD_MOD_DYNAMIC
23812 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23814 MFLAG=SLAPD_MOD_STATIC
23816 cat >> confdefs.h <<EOF
23817 #define SLAPD_OVER_PROXYCACHE $MFLAG
23822 if test "$ol_with_rwm " != no ; then
23824 BUILD_RWM=$ol_with_rwm
23825 if test "$ol_with_rwm" = mod ; then
23826 MFLAG=SLAPD_MOD_DYNAMIC
23827 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23829 MFLAG=SLAPD_MOD_STATIC
23831 cat >> confdefs.h <<EOF
23832 #define SLAPD_OVER_RWM $MFLAG
23837 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23838 $BUILD_SLAPD = yes ; then
23842 if test "$ol_enable_rewrite" != no ; then
23843 cat >> confdefs.h <<\EOF
23844 #define ENABLE_REWRITE 1
23850 if test "$ol_enable_slapi" != no ; then
23851 cat >> confdefs.h <<\EOF
23852 #define ENABLE_SLAPI 1
23856 SLAPD_SLAPI_DEPEND=libslapi.a
23861 if test "$ac_cv_mingw32" = yes ; then
23863 SLAPD_MODULES_LDFLAGS=
23868 if test -z "$SLAPD_STATIC_BACKENDS"; then
23869 SLAPD_NO_STATIC='#'
23947 # Check whether --with-xxinstall or --without-xxinstall was given.
23948 if test "${with_xxinstall+set}" = set; then
23949 withval="$with_xxinstall"
23957 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23959 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23960 # Let make expand exec_prefix.
23961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23963 # Any assignment to VPATH causes Sun make to only execute
23964 # the first set of double-colon rules, so remove it if not needed.
23965 # If there is a colon in the path, we need to keep it.
23966 if test "x$srcdir" = x.; then
23967 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
23970 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
23972 DEFS=-DHAVE_CONFIG_H
23974 # Without the "./", some shells look in PATH for config.status.
23975 : ${CONFIG_STATUS=./config.status}
23977 echo creating $CONFIG_STATUS
23978 rm -f $CONFIG_STATUS
23979 cat > $CONFIG_STATUS <<EOF
23981 # Generated automatically by configure.
23982 # Run this file to recreate the current configuration.
23983 # This directory was configured as follows,
23984 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23986 # $0 $ac_configure_args
23988 # Compiler output produced by configure, useful for debugging
23989 # configure, is in ./config.log if it exists.
23991 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
23994 case "\$ac_option" in
23995 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23996 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
23997 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
23998 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
23999 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24001 -help | --help | --hel | --he | --h)
24002 echo "\$ac_cs_usage"; exit 0 ;;
24003 *) echo "\$ac_cs_usage"; exit 1 ;;
24007 ac_given_srcdir=$srcdir
24008 ac_given_INSTALL="$INSTALL"
24010 trap 'rm -fr `echo "\
24011 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24012 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24013 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24014 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24015 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24016 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24017 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24018 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24019 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24020 include/Makefile:build/top.mk:include/Makefile.in \
24021 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24022 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24023 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24024 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24025 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24026 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24027 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24028 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24029 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24030 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24031 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24032 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24033 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24034 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24035 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24036 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24037 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24038 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24039 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24040 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24041 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24042 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24043 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24044 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24045 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24046 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24048 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24049 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24051 cat >> $CONFIG_STATUS <<EOF
24053 # Protect against being on the right side of a sed subst in config.status.
24054 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24055 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24059 s%@CFLAGS@%$CFLAGS%g
24060 s%@CPPFLAGS@%$CPPFLAGS%g
24061 s%@CXXFLAGS@%$CXXFLAGS%g
24062 s%@FFLAGS@%$FFLAGS%g
24064 s%@LDFLAGS@%$LDFLAGS%g
24066 s%@exec_prefix@%$exec_prefix%g
24067 s%@prefix@%$prefix%g
24068 s%@program_transform_name@%$program_transform_name%g
24069 s%@bindir@%$bindir%g
24070 s%@sbindir@%$sbindir%g
24071 s%@libexecdir@%$libexecdir%g
24072 s%@datadir@%$datadir%g
24073 s%@sysconfdir@%$sysconfdir%g
24074 s%@sharedstatedir@%$sharedstatedir%g
24075 s%@localstatedir@%$localstatedir%g
24076 s%@libdir@%$libdir%g
24077 s%@includedir@%$includedir%g
24078 s%@oldincludedir@%$oldincludedir%g
24079 s%@infodir@%$infodir%g
24080 s%@mandir@%$mandir%g
24082 s%@host_alias@%$host_alias%g
24083 s%@host_cpu@%$host_cpu%g
24084 s%@host_vendor@%$host_vendor%g
24085 s%@host_os@%$host_os%g
24086 s%@target@%$target%g
24087 s%@target_alias@%$target_alias%g
24088 s%@target_cpu@%$target_cpu%g
24089 s%@target_vendor@%$target_vendor%g
24090 s%@target_os@%$target_os%g
24092 s%@build_alias@%$build_alias%g
24093 s%@build_cpu@%$build_cpu%g
24094 s%@build_vendor@%$build_vendor%g
24095 s%@build_os@%$build_os%g
24096 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24097 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24098 s%@INSTALL_DATA@%$INSTALL_DATA%g
24099 s%@PACKAGE@%$PACKAGE%g
24100 s%@VERSION@%$VERSION%g
24101 s%@ACLOCAL@%$ACLOCAL%g
24102 s%@AUTOCONF@%$AUTOCONF%g
24103 s%@AUTOMAKE@%$AUTOMAKE%g
24104 s%@AUTOHEADER@%$AUTOHEADER%g
24105 s%@MAKEINFO@%$MAKEINFO%g
24106 s%@install_sh@%$install_sh%g
24109 s%@AMTARFLAGS@%$AMTARFLAGS%g
24110 s%@SET_MAKE@%$SET_MAKE%g
24111 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24112 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24113 s%@top_builddir@%$top_builddir%g
24114 s%@ldap_subdir@%$ldap_subdir%g
24118 s%@OBJEXT@%$OBJEXT%g
24119 s%@EXEEXT@%$EXEEXT%g
24121 s%@RANLIB@%$RANLIB%g
24123 s%@DLLTOOL@%$DLLTOOL%g
24125 s%@OBJDUMP@%$OBJDUMP%g
24127 s%@LIBTOOL@%$LIBTOOL%g
24129 s%@PERLBIN@%$PERLBIN%g
24130 s%@OL_MKDEP@%$OL_MKDEP%g
24131 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24132 s%@LTSTATIC@%$LTSTATIC%g
24133 s%@LIBOBJS@%$LIBOBJS%g
24134 s%@LIBSRCS@%$LIBSRCS%g
24136 s%@WITH_TLS@%$WITH_TLS%g
24137 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24138 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24139 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24140 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24141 s%@BUILD_BDB@%$BUILD_BDB%g
24142 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24143 s%@BUILD_HDB@%$BUILD_HDB%g
24144 s%@BUILD_LDAP@%$BUILD_LDAP%g
24145 s%@BUILD_LDBM@%$BUILD_LDBM%g
24146 s%@BUILD_META@%$BUILD_META%g
24147 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24148 s%@BUILD_NULL@%$BUILD_NULL%g
24149 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24150 s%@BUILD_PERL@%$BUILD_PERL%g
24151 s%@BUILD_SHELL@%$BUILD_SHELL%g
24152 s%@BUILD_SQL@%$BUILD_SQL%g
24153 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24154 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24155 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24156 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24157 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24158 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24159 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24160 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24161 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24162 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24163 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24164 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24165 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24166 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24167 s%@BUILD_RWM@%$BUILD_RWM%g
24168 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24169 s%@LDAP_LIBS@%$LDAP_LIBS%g
24170 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24171 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24172 s%@LDBM_LIBS@%$LDBM_LIBS%g
24173 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24174 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24175 s%@WRAP_LIBS@%$WRAP_LIBS%g
24176 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24177 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24178 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24179 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24180 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24181 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24182 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24183 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24184 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24185 s%@KRB4_LIBS@%$KRB4_LIBS%g
24186 s%@KRB5_LIBS@%$KRB5_LIBS%g
24187 s%@SASL_LIBS@%$SASL_LIBS%g
24188 s%@TLS_LIBS@%$TLS_LIBS%g
24189 s%@MODULES_LIBS@%$MODULES_LIBS%g
24190 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24191 s%@LIBSLAPI@%$LIBSLAPI%g
24192 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24193 s%@AUTH_LIBS@%$AUTH_LIBS%g
24194 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24195 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24196 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24197 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24202 cat >> $CONFIG_STATUS <<\EOF
24204 # Split the substitutions into bite-sized pieces for seds with
24205 # small command number limits, like on Digital OSF/1 and HP-UX.
24206 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24207 ac_file=1 # Number of current file.
24208 ac_beg=1 # First line for current file.
24209 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24212 while $ac_more_lines; do
24213 if test $ac_beg -gt 1; then
24214 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24216 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24218 if test ! -s conftest.s$ac_file; then
24219 ac_more_lines=false
24220 rm -f conftest.s$ac_file
24222 if test -z "$ac_sed_cmds"; then
24223 ac_sed_cmds="sed -f conftest.s$ac_file"
24225 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24227 ac_file=`expr $ac_file + 1`
24229 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24232 if test -z "$ac_sed_cmds"; then
24237 cat >> $CONFIG_STATUS <<EOF
24239 CONFIG_FILES=\${CONFIG_FILES-"\
24240 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24241 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24242 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24243 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24244 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24245 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24246 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24247 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24248 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24249 include/Makefile:build/top.mk:include/Makefile.in \
24250 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24251 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24252 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24253 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24254 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24255 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24256 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24257 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24258 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24259 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24260 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24261 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24262 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24263 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24264 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24265 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24266 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24267 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24268 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24269 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24270 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24271 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24272 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24273 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24274 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24275 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24277 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24280 cat >> $CONFIG_STATUS <<\EOF
24281 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24282 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24284 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24285 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24286 *) ac_file_in="${ac_file}.in" ;;
24289 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24291 # Remove last slash and all that follows it. Not all systems have dirname.
24292 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24293 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24294 # The file is in a subdirectory.
24295 test ! -d "$ac_dir" && mkdir "$ac_dir"
24296 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24297 # A "../" for each directory in $ac_dir_suffix.
24298 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24300 ac_dir_suffix= ac_dots=
24303 case "$ac_given_srcdir" in
24305 if test -z "$ac_dots"; then top_srcdir=.
24306 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24307 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24308 *) # Relative path.
24309 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24310 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24313 case "$ac_given_INSTALL" in
24314 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24315 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24318 echo creating "$ac_file"
24320 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24322 *[Mm]akefile*) ac_comsub="1i\\
24323 # $configure_input" ;;
24327 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24329 s%@configure_input@%$configure_input%g
24330 s%@srcdir@%$srcdir%g
24331 s%@top_srcdir@%$top_srcdir%g
24332 s%@INSTALL@%$INSTALL%g
24333 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24337 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24338 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24340 # ac_d sets the value in "#define NAME VALUE" lines.
24341 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24342 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24345 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24346 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24347 ac_uB='\([ ]\)%\1#\2define\3'
24350 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24351 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24352 ac_eB='$%\1#\2define\3'
24356 if test "${CONFIG_HEADERS+set}" != set; then
24358 cat >> $CONFIG_STATUS <<EOF
24359 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24361 cat >> $CONFIG_STATUS <<\EOF
24363 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24364 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24366 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24367 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24368 *) ac_file_in="${ac_file}.in" ;;
24371 echo creating $ac_file
24373 rm -f conftest.frag conftest.in conftest.out
24374 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24375 cat $ac_file_inputs > conftest.in
24379 # Transform confdefs.h into a sed script conftest.vals that substitutes
24380 # the proper values into config.h.in to produce config.h. And first:
24381 # Protect against being on the right side of a sed subst in config.status.
24382 # Protect against being in an unquoted here document in config.status.
24383 rm -f conftest.vals
24384 cat > conftest.hdr <<\EOF
24387 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24391 sed -n -f conftest.hdr confdefs.h > conftest.vals
24394 # This sed command replaces #undef with comments. This is necessary, for
24395 # example, in the case of _POSIX_SOURCE, which is predefined and required
24396 # on some systems where configure will not decide to define it.
24397 cat >> conftest.vals <<\EOF
24398 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24401 # Break up conftest.vals because some shells have a limit on
24402 # the size of here documents, and old seds have small limits too.
24404 rm -f conftest.tail
24407 ac_lines=`grep -c . conftest.vals`
24408 # grep -c gives empty output for an empty file on some AIX systems.
24409 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24410 # Write a limited-size here document to conftest.frag.
24411 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24412 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24414 sed -f conftest.frag conftest.in > conftest.out
24416 mv conftest.out conftest.in
24417 ' >> $CONFIG_STATUS
24418 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24419 rm -f conftest.vals
24420 mv conftest.tail conftest.vals
24422 rm -f conftest.vals
24424 cat >> $CONFIG_STATUS <<\EOF
24425 rm -f conftest.frag conftest.h
24426 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24427 cat conftest.in >> conftest.h
24429 if cmp -s $ac_file conftest.h 2>/dev/null; then
24430 echo "$ac_file is unchanged"
24433 # Remove last slash and all that follows it. Not all systems have dirname.
24434 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24435 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24436 # The file is in a subdirectory.
24437 test ! -d "$ac_dir" && mkdir "$ac_dir"
24440 mv conftest.h $ac_file
24445 cat >> $CONFIG_STATUS <<EOF
24448 cat >> $CONFIG_STATUS <<\EOF
24452 echo Please run \"make depend\" to build dependencies
24456 chmod +x $CONFIG_STATUS
24457 rm -fr confdefs* $ac_clean_files
24458 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1