3 # from OpenLDAP: pkg/ldap/configure.in,v 1.509 2004/01/15 03:21:20 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 ol_enable_kpasswd=${ol_enable_kpasswd-no}
1742 # OpenLDAP --enable-lmpasswd
1743 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1744 if test "${enable_lmpasswd+set}" = set; then
1745 enableval="$enable_lmpasswd"
1748 for ol_val in auto yes no ; do
1749 if test "$enableval" = "$ol_val" ; then
1753 if test "$ol_arg" = "invalid" ; then
1754 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1756 ol_enable_lmpasswd="$ol_arg"
1759 ol_enable_lmpasswd="no"
1761 # end --enable-lmpasswd
1762 # OpenLDAP --enable-spasswd
1763 # Check whether --enable-spasswd or --disable-spasswd was given.
1764 if test "${enable_spasswd+set}" = set; then
1765 enableval="$enable_spasswd"
1768 for ol_val in auto yes no ; do
1769 if test "$enableval" = "$ol_val" ; then
1773 if test "$ol_arg" = "invalid" ; then
1774 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1776 ol_enable_spasswd="$ol_arg"
1779 ol_enable_spasswd="no"
1781 # end --enable-spasswd
1782 # OpenLDAP --enable-modules
1783 # Check whether --enable-modules or --disable-modules was given.
1784 if test "${enable_modules+set}" = set; then
1785 enableval="$enable_modules"
1788 for ol_val in auto yes no ; do
1789 if test "$enableval" = "$ol_val" ; then
1793 if test "$ol_arg" = "invalid" ; then
1794 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1796 ol_enable_modules="$ol_arg"
1799 ol_enable_modules="no"
1801 # end --enable-modules
1802 ol_enable_multimaster=${ol_enable_multimaster-no}
1803 # OpenLDAP --enable-rewrite
1804 # Check whether --enable-rewrite or --disable-rewrite was given.
1805 if test "${enable_rewrite+set}" = set; then
1806 enableval="$enable_rewrite"
1809 for ol_val in auto yes no ; do
1810 if test "$enableval" = "$ol_val" ; then
1814 if test "$ol_arg" = "invalid" ; then
1815 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1817 ol_enable_rewrite="$ol_arg"
1820 ol_enable_rewrite="no"
1822 # end --enable-rewrite
1823 # OpenLDAP --enable-rlookups
1824 # Check whether --enable-rlookups or --disable-rlookups was given.
1825 if test "${enable_rlookups+set}" = set; then
1826 enableval="$enable_rlookups"
1829 for ol_val in auto yes no ; do
1830 if test "$enableval" = "$ol_val" ; then
1834 if test "$ol_arg" = "invalid" ; then
1835 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1837 ol_enable_rlookups="$ol_arg"
1840 ol_enable_rlookups="no"
1842 # end --enable-rlookups
1843 # OpenLDAP --enable-slapi
1844 # Check whether --enable-slapi or --disable-slapi was given.
1845 if test "${enable_slapi+set}" = set; then
1846 enableval="$enable_slapi"
1849 for ol_val in auto yes no ; do
1850 if test "$enableval" = "$ol_val" ; then
1854 if test "$ol_arg" = "invalid" ; then
1855 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1857 ol_enable_slapi="$ol_arg"
1860 ol_enable_slapi="no"
1862 # end --enable-slapi
1863 # OpenLDAP --enable-slp
1864 # Check whether --enable-slp or --disable-slp was given.
1865 if test "${enable_slp+set}" = set; then
1866 enableval="$enable_slp"
1869 for ol_val in auto yes no ; do
1870 if test "$enableval" = "$ol_val" ; then
1874 if test "$ol_arg" = "invalid" ; then
1875 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1877 ol_enable_slp="$ol_arg"
1883 # OpenLDAP --enable-wrappers
1884 # Check whether --enable-wrappers or --disable-wrappers was given.
1885 if test "${enable_wrappers+set}" = set; then
1886 enableval="$enable_wrappers"
1889 for ol_val in auto yes no ; do
1890 if test "$enableval" = "$ol_val" ; then
1894 if test "$ol_arg" = "invalid" ; then
1895 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1897 ol_enable_wrappers="$ol_arg"
1900 ol_enable_wrappers="no"
1902 # end --enable-wrappers
1905 # OpenLDAP --enable-bdb
1906 # Check whether --enable-bdb or --disable-bdb was given.
1907 if test "${enable_bdb+set}" = set; then
1908 enableval="$enable_bdb"
1911 for ol_val in auto yes no ; do
1912 if test "$enableval" = "$ol_val" ; then
1916 if test "$ol_arg" = "invalid" ; then
1917 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1919 ol_enable_bdb="$ol_arg"
1925 # OpenLDAP --with-bdb_module
1926 # Check whether --with-bdb_module or --without-bdb_module was given.
1927 if test "${with_bdb_module+set}" = set; then
1928 withval="$with_bdb_module"
1931 for ol_val in static dynamic ; do
1932 if test "$withval" = "$ol_val" ; then
1936 if test "$ol_arg" = "invalid" ; then
1937 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1939 ol_with_bdb_module="$ol_arg"
1942 ol_with_bdb_module="static"
1944 # end --with-bdb_module
1946 # OpenLDAP --enable-dnssrv
1947 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1948 if test "${enable_dnssrv+set}" = set; then
1949 enableval="$enable_dnssrv"
1952 for ol_val in auto yes no ; do
1953 if test "$enableval" = "$ol_val" ; then
1957 if test "$ol_arg" = "invalid" ; then
1958 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1960 ol_enable_dnssrv="$ol_arg"
1963 ol_enable_dnssrv="no"
1965 # end --enable-dnssrv
1966 # OpenLDAP --with-dnssrv_module
1967 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1968 if test "${with_dnssrv_module+set}" = set; then
1969 withval="$with_dnssrv_module"
1972 for ol_val in static dynamic ; do
1973 if test "$withval" = "$ol_val" ; then
1977 if test "$ol_arg" = "invalid" ; then
1978 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1980 ol_with_dnssrv_module="$ol_arg"
1983 ol_with_dnssrv_module="static"
1985 # end --with-dnssrv_module
1987 # OpenLDAP --enable-hdb
1988 # Check whether --enable-hdb or --disable-hdb was given.
1989 if test "${enable_hdb+set}" = set; then
1990 enableval="$enable_hdb"
1993 for ol_val in auto yes no ; do
1994 if test "$enableval" = "$ol_val" ; then
1998 if test "$ol_arg" = "invalid" ; then
1999 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
2001 ol_enable_hdb="$ol_arg"
2007 # OpenLDAP --with-hdb_module
2008 # Check whether --with-hdb_module or --without-hdb_module was given.
2009 if test "${with_hdb_module+set}" = set; then
2010 withval="$with_hdb_module"
2013 for ol_val in static dynamic ; do
2014 if test "$withval" = "$ol_val" ; then
2018 if test "$ol_arg" = "invalid" ; then
2019 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2021 ol_with_hdb_module="$ol_arg"
2024 ol_with_hdb_module="static"
2026 # end --with-hdb_module
2028 # OpenLDAP --enable-ldap
2029 # Check whether --enable-ldap or --disable-ldap was given.
2030 if test "${enable_ldap+set}" = set; then
2031 enableval="$enable_ldap"
2034 for ol_val in auto yes no ; do
2035 if test "$enableval" = "$ol_val" ; then
2039 if test "$ol_arg" = "invalid" ; then
2040 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2042 ol_enable_ldap="$ol_arg"
2048 # OpenLDAP --with-ldap_module
2049 # Check whether --with-ldap_module or --without-ldap_module was given.
2050 if test "${with_ldap_module+set}" = set; then
2051 withval="$with_ldap_module"
2054 for ol_val in static dynamic ; do
2055 if test "$withval" = "$ol_val" ; then
2059 if test "$ol_arg" = "invalid" ; then
2060 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2062 ol_with_ldap_module="$ol_arg"
2065 ol_with_ldap_module="static"
2067 # end --with-ldap_module
2069 # OpenLDAP --enable-ldbm
2070 # Check whether --enable-ldbm or --disable-ldbm was given.
2071 if test "${enable_ldbm+set}" = set; then
2072 enableval="$enable_ldbm"
2075 for ol_val in auto yes no ; do
2076 if test "$enableval" = "$ol_val" ; then
2080 if test "$ol_arg" = "invalid" ; then
2081 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2083 ol_enable_ldbm="$ol_arg"
2089 # OpenLDAP --with-ldbm_api
2090 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2091 if test "${with_ldbm_api+set}" = set; then
2092 withval="$with_ldbm_api"
2095 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2096 if test "$withval" = "$ol_val" ; then
2100 if test "$ol_arg" = "invalid" ; then
2101 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2103 ol_with_ldbm_api="$ol_arg"
2106 ol_with_ldbm_api="auto"
2108 # end --with-ldbm_api
2110 # OpenLDAP --with-ldbm_module
2111 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2112 if test "${with_ldbm_module+set}" = set; then
2113 withval="$with_ldbm_module"
2116 for ol_val in static dynamic ; do
2117 if test "$withval" = "$ol_val" ; then
2121 if test "$ol_arg" = "invalid" ; then
2122 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2124 ol_with_ldbm_module="$ol_arg"
2127 ol_with_ldbm_module="static"
2129 # end --with-ldbm_module
2131 # OpenLDAP --with-ldbm_type
2132 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2133 if test "${with_ldbm_type+set}" = set; then
2134 withval="$with_ldbm_type"
2137 for ol_val in auto btree hash ; do
2138 if test "$withval" = "$ol_val" ; then
2142 if test "$ol_arg" = "invalid" ; then
2143 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2145 ol_with_ldbm_type="$ol_arg"
2148 ol_with_ldbm_type="auto"
2150 # end --with-ldbm_type
2152 # OpenLDAP --enable-meta
2153 # Check whether --enable-meta or --disable-meta was given.
2154 if test "${enable_meta+set}" = set; then
2155 enableval="$enable_meta"
2158 for ol_val in auto yes no ; do
2159 if test "$enableval" = "$ol_val" ; then
2163 if test "$ol_arg" = "invalid" ; then
2164 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2166 ol_enable_meta="$ol_arg"
2172 # OpenLDAP --with-meta_module
2173 # Check whether --with-meta_module or --without-meta_module was given.
2174 if test "${with_meta_module+set}" = set; then
2175 withval="$with_meta_module"
2178 for ol_val in static dynamic ; do
2179 if test "$withval" = "$ol_val" ; then
2183 if test "$ol_arg" = "invalid" ; then
2184 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2186 ol_with_meta_module="$ol_arg"
2189 ol_with_meta_module="static"
2191 # end --with-meta_module
2193 # OpenLDAP --enable-monitor
2194 # Check whether --enable-monitor or --disable-monitor was given.
2195 if test "${enable_monitor+set}" = set; then
2196 enableval="$enable_monitor"
2199 for ol_val in auto yes no ; do
2200 if test "$enableval" = "$ol_val" ; then
2204 if test "$ol_arg" = "invalid" ; then
2205 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2207 ol_enable_monitor="$ol_arg"
2210 ol_enable_monitor="yes"
2212 # end --enable-monitor
2213 # OpenLDAP --with-monitor_module
2214 # Check whether --with-monitor_module or --without-monitor_module was given.
2215 if test "${with_monitor_module+set}" = set; then
2216 withval="$with_monitor_module"
2219 for ol_val in static dynamic ; do
2220 if test "$withval" = "$ol_val" ; then
2224 if test "$ol_arg" = "invalid" ; then
2225 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2227 ol_with_monitor_module="$ol_arg"
2230 ol_with_monitor_module="static"
2232 # end --with-monitor_module
2234 # OpenLDAP --enable-null
2235 # Check whether --enable-null or --disable-null was given.
2236 if test "${enable_null+set}" = set; then
2237 enableval="$enable_null"
2240 for ol_val in auto yes no ; do
2241 if test "$enableval" = "$ol_val" ; then
2245 if test "$ol_arg" = "invalid" ; then
2246 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2248 ol_enable_null="$ol_arg"
2254 # OpenLDAP --with-null_module
2255 # Check whether --with-null_module or --without-null_module was given.
2256 if test "${with_null_module+set}" = set; then
2257 withval="$with_null_module"
2260 for ol_val in static dynamic ; do
2261 if test "$withval" = "$ol_val" ; then
2265 if test "$ol_arg" = "invalid" ; then
2266 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2268 ol_with_null_module="$ol_arg"
2271 ol_with_null_module="static"
2273 # end --with-null_module
2275 # OpenLDAP --enable-passwd
2276 # Check whether --enable-passwd or --disable-passwd was given.
2277 if test "${enable_passwd+set}" = set; then
2278 enableval="$enable_passwd"
2281 for ol_val in auto yes no ; do
2282 if test "$enableval" = "$ol_val" ; then
2286 if test "$ol_arg" = "invalid" ; then
2287 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2289 ol_enable_passwd="$ol_arg"
2292 ol_enable_passwd="no"
2294 # end --enable-passwd
2295 # OpenLDAP --with-passwd_module
2296 # Check whether --with-passwd_module or --without-passwd_module was given.
2297 if test "${with_passwd_module+set}" = set; then
2298 withval="$with_passwd_module"
2301 for ol_val in static dynamic ; do
2302 if test "$withval" = "$ol_val" ; then
2306 if test "$ol_arg" = "invalid" ; then
2307 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2309 ol_with_passwd_module="$ol_arg"
2312 ol_with_passwd_module="static"
2314 # end --with-passwd_module
2316 # OpenLDAP --enable-perl
2317 # Check whether --enable-perl or --disable-perl was given.
2318 if test "${enable_perl+set}" = set; then
2319 enableval="$enable_perl"
2322 for ol_val in auto yes no ; do
2323 if test "$enableval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2330 ol_enable_perl="$ol_arg"
2336 # OpenLDAP --with-perl_module
2337 # Check whether --with-perl_module or --without-perl_module was given.
2338 if test "${with_perl_module+set}" = set; then
2339 withval="$with_perl_module"
2342 for ol_val in static dynamic ; do
2343 if test "$withval" = "$ol_val" ; then
2347 if test "$ol_arg" = "invalid" ; then
2348 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2350 ol_with_perl_module="$ol_arg"
2353 ol_with_perl_module="static"
2355 # end --with-perl_module
2357 # OpenLDAP --enable-shell
2358 # Check whether --enable-shell or --disable-shell was given.
2359 if test "${enable_shell+set}" = set; then
2360 enableval="$enable_shell"
2363 for ol_val in auto yes no ; do
2364 if test "$enableval" = "$ol_val" ; then
2368 if test "$ol_arg" = "invalid" ; then
2369 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2371 ol_enable_shell="$ol_arg"
2374 ol_enable_shell="no"
2376 # end --enable-shell
2377 # OpenLDAP --with-shell_module
2378 # Check whether --with-shell_module or --without-shell_module was given.
2379 if test "${with_shell_module+set}" = set; then
2380 withval="$with_shell_module"
2383 for ol_val in static dynamic ; do
2384 if test "$withval" = "$ol_val" ; then
2388 if test "$ol_arg" = "invalid" ; then
2389 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2391 ol_with_shell_module="$ol_arg"
2394 ol_with_shell_module="static"
2396 # end --with-shell_module
2398 # OpenLDAP --enable-sql
2399 # Check whether --enable-sql or --disable-sql was given.
2400 if test "${enable_sql+set}" = set; then
2401 enableval="$enable_sql"
2404 for ol_val in auto yes no ; do
2405 if test "$enableval" = "$ol_val" ; then
2409 if test "$ol_arg" = "invalid" ; then
2410 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2412 ol_enable_sql="$ol_arg"
2418 # OpenLDAP --with-sql_module
2419 # Check whether --with-sql_module or --without-sql_module was given.
2420 if test "${with_sql_module+set}" = set; then
2421 withval="$with_sql_module"
2424 for ol_val in static dynamic ; do
2425 if test "$withval" = "$ol_val" ; then
2429 if test "$ol_arg" = "invalid" ; then
2430 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2432 ol_with_sql_module="$ol_arg"
2435 ol_with_sql_module="static"
2437 # end --with-sql_module
2440 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2441 if test "${with_xxslapoverlays+set}" = set; then
2442 withval="$with_xxslapoverlays"
2446 # OpenLDAP --with-dyngroup
2447 # Check whether --with-dyngroup or --without-dyngroup was given.
2448 if test "${with_dyngroup+set}" = set; then
2449 withval="$with_dyngroup"
2452 for ol_val in no yes mod ; do
2453 if test "$withval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $withval for --with-dyngroup" 1>&2; exit 1; }
2460 ol_with_dyngroup="$ol_arg"
2463 ol_with_dyngroup="no"
2465 # end --with-dyngroup
2467 # OpenLDAP --with-proxycache
2468 # Check whether --with-proxycache or --without-proxycache was given.
2469 if test "${with_proxycache+set}" = set; then
2470 withval="$with_proxycache"
2473 for ol_val in no yes mod ; do
2474 if test "$withval" = "$ol_val" ; then
2478 if test "$ol_arg" = "invalid" ; then
2479 { echo "configure: error: bad value $withval for --with-proxycache" 1>&2; exit 1; }
2481 ol_with_proxycache="$ol_arg"
2484 ol_with_proxycache="no"
2486 # end --with-proxycache
2488 # OpenLDAP --with-rwm
2489 # Check whether --with-rwm or --without-rwm was given.
2490 if test "${with_rwm+set}" = set; then
2494 for ol_val in no yes mod ; do
2495 if test "$withval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { echo "configure: error: bad value $withval for --with-rwm" 1>&2; exit 1; }
2502 ol_with_rwm="$ol_arg"
2510 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2511 if test "${with_xxslurpdoptions+set}" = set; then
2512 withval="$with_xxslurpdoptions"
2516 # OpenLDAP --enable-slurpd
2517 # Check whether --enable-slurpd or --disable-slurpd was given.
2518 if test "${enable_slurpd+set}" = set; then
2519 enableval="$enable_slurpd"
2522 for ol_val in auto yes no ; do
2523 if test "$enableval" = "$ol_val" ; then
2527 if test "$ol_arg" = "invalid" ; then
2528 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2530 ol_enable_slurpd="$ol_arg"
2533 ol_enable_slurpd="auto"
2535 # end --enable-slurpd
2537 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2538 if test "${with_xxliboptions+set}" = set; then
2539 withval="$with_xxliboptions"
2543 # Check whether --enable-static or --disable-static was given.
2544 if test "${enable_static+set}" = set; then
2545 enableval="$enable_static"
2546 p=${PACKAGE-default}
2548 yes) enable_static=yes ;;
2549 no) enable_static=no ;;
2552 # Look at the argument we got. We use all the common list separators.
2553 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2554 for pkg in $enableval; do
2555 if test "X$pkg" = "X$p"; then
2566 # Check whether --enable-shared or --disable-shared was given.
2567 if test "${enable_shared+set}" = set; then
2568 enableval="$enable_shared"
2569 p=${PACKAGE-default}
2571 yes) enable_shared=yes ;;
2572 no) enable_shared=no ;;
2575 # Look at the argument we got. We use all the common list separators.
2576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2577 for pkg in $enableval; do
2578 if test "X$pkg" = "X$p"; then
2592 if test $ol_enable_slapd = no ; then
2593 if test $ol_enable_slapi = yes ; then
2594 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2596 if test $ol_enable_bdb = yes ; then
2597 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2599 if test $ol_enable_dnssrv = yes ; then
2600 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2602 if test $ol_enable_hdb = yes ; then
2603 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2605 if test $ol_enable_ldap = yes ; then
2606 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2608 if test $ol_enable_ldbm = yes ; then
2609 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2611 if test $ol_enable_meta = yes ; then
2612 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2614 if test $ol_enable_monitor = yes ; then
2615 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2617 if test $ol_enable_null = yes ; then
2618 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2620 if test $ol_enable_passwd = yes ; then
2621 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2623 if test $ol_enable_perl = yes ; then
2624 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2626 if test $ol_enable_shell = yes ; then
2627 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2629 if test $ol_enable_sql = yes ; then
2630 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2632 if test $ol_enable_modules = yes ; then
2633 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2635 if test $ol_enable_multimaster = yes ; then
2636 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2638 if test $ol_enable_wrappers = yes ; then
2639 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2641 if test $ol_enable_rlookups = yes ; then
2642 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2644 if test $ol_enable_aci = yes ; then
2645 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2647 if test $ol_with_ldbm_api != auto ; then
2648 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2650 if test $ol_with_ldbm_type != auto ; then
2651 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2653 if test $ol_with_bdb_module != static ; then
2654 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2656 if test $ol_with_dnssrv_module != static ; then
2657 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2659 if test $ol_with_hdb_module != static ; then
2660 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2662 if test $ol_with_ldap_module != static ; then
2663 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2665 if test $ol_with_ldbm_module != static ; then
2666 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2668 if test $ol_with_meta_module != static ; then
2669 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2671 if test $ol_with_monitor_module != static ; then
2672 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2674 if test $ol_with_null_module != static ; then
2675 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2677 if test $ol_with_passwd_module != static ; then
2678 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2680 if test $ol_with_perl_module != static ; then
2681 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2683 if test $ol_with_shell_module != static ; then
2684 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2686 if test $ol_with_sql_module != static ; then
2687 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2689 if test $ol_enable_slurpd = yes ; then
2690 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2692 if test $ol_enable_rewrite = yes ; then
2693 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2695 if test $ol_with_dyngroup != no ; then
2696 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2698 if test $ol_with_proxycache != no ; then
2699 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2701 if test $ol_with_rwm != no ; then
2702 echo "configure: warning: slapd disabled, ignoring --with-rwm argument" 1>&2
2705 # force settings to no
2713 ol_enable_monitor=no
2720 ol_enable_modules=no
2721 ol_enable_multimaster=no
2722 ol_enable_rlookups=no
2724 ol_enable_wrappers=no
2727 ol_with_ldbm_type=no
2729 ol_with_bdb_module=static
2730 ol_with_dnssrv_module=static
2731 ol_with_hdb_module=static
2732 ol_with_ldap_module=static
2733 ol_with_ldbm_module=static
2734 ol_with_meta_module=static
2735 ol_with_monitor_module=static
2736 ol_with_null_module=static
2737 ol_with_passwd_module=static
2738 ol_with_perl_module=static
2739 ol_with_shell_module=static
2740 ol_with_sql_module=static
2744 ol_enable_rewrite=no
2747 ol_with_proxycache=no
2750 elif test $ol_enable_ldbm = no ; then
2752 if test $ol_with_ldbm_api != auto ; then
2753 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2756 if test $ol_with_ldbm_type != auto ; then
2757 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2760 if test $ol_with_ldbm_module != static ; then
2761 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2764 if test $ol_enable_modules != yes -a \
2765 $ol_enable_bdb = no -a \
2766 $ol_enable_dnssrv = no -a \
2767 $ol_enable_hdb = no -a \
2768 $ol_enable_ldap = no -a \
2769 $ol_enable_meta = no -a \
2770 $ol_enable_monitor = no -a \
2771 $ol_enable_null = no -a \
2772 $ol_enable_passwd = no -a \
2773 $ol_enable_perl = no -a \
2774 $ol_enable_shell = no -a \
2775 $ol_enable_sql = no ; then
2777 if test $ol_enable_slapd = yes ; then
2778 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2780 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2786 ol_with_ldbm_type=no
2787 ol_with_ldbm_module=static
2789 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2790 ol_with_ldbm_api=berkeley
2794 if test $ol_with_ldbm_api = gdbm -a \
2795 $ol_with_ldbm_type = btree ; then
2796 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2798 if test $ol_with_ldbm_api = mdbm -a \
2799 $ol_with_ldbm_type = btree ; then
2800 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2802 if test $ol_with_ldbm_api = ndbm -a \
2803 $ol_with_ldbm_type = btree ; then
2804 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2807 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2808 if test $ol_with_ldbm_api = auto ; then
2809 ol_with_ldbm_api=berkeley
2810 elif test $ol_with_ldbm_api != berkeley ; then
2811 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2814 elif test $ol_enable_bdb = auto ; then
2815 if test $ol_with_ldbm_api != berkeley \
2816 -o $ol_with_ldbm_api != auto ; then
2817 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2823 if test $ol_enable_slurpd = yes ; then
2824 if test $ol_with_threads = no ; then
2825 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2829 if test $ol_enable_lmpasswd = yes ; then
2830 if test $ol_with_tls = no ; then
2831 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2835 if test $ol_enable_kbind = yes -o $ol_enable_kpasswd = yes ; then
2836 if test $ol_with_kerberos = no ; then
2837 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2838 elif test $ol_with_kerberos = auto ; then
2839 ol_with_kerberos=yes
2842 elif test $ol_enable_kbind = no -o $ol_enable_kpasswd = no ; then
2843 if test $ol_with_kerberos = auto ; then
2845 elif test $ol_with_kerberos != no ; then
2846 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2851 if test $ol_enable_spasswd = yes ; then
2852 if test $ol_with_cyrus_sasl = no ; then
2853 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2855 ol_with_cyrus_sasl=yes
2858 echo "$ac_t""done" 1>&6
2889 BUILD_BDB_DYNAMIC=static
2890 BUILD_DNSSRV_DYNAMIC=static
2891 BUILD_HDB_DYNAMIC=static
2892 BUILD_LDAP_DYNAMIC=static
2893 BUILD_LDBM_DYNAMIC=static
2894 BUILD_META_DYNAMIC=static
2895 BUILD_MONITOR_DYNAMIC=static
2896 BUILD_NULL_DYNAMIC=static
2897 BUILD_PASSWD_DYNAMIC=static
2898 BUILD_PERL_DYNAMIC=static
2899 BUILD_SHELL_DYNAMIC=static
2900 BUILD_SQL_DYNAMIC=static
2906 SLAPD_DYNAMIC_OVERLAYS=
2908 SLAPD_MODULES_LDFLAGS=
2909 SLAPD_MODULES_CPPFLAGS=
2911 SLAPD_STATIC_BACKENDS=
2912 SLAPD_DYNAMIC_BACKENDS=
2935 # Find a good install program. We prefer a C program (faster),
2936 # so one script is as good as another. But avoid the broken or
2937 # incompatible versions:
2938 # SysV /etc/install, /usr/sbin/install
2939 # SunOS /usr/etc/install
2940 # IRIX /sbin/install
2942 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2943 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2944 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2945 # ./install, which can be erroneously created by make from ./install.sh.
2946 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
2947 echo "configure:2948: checking for a BSD compatible install" >&5
2948 if test -z "$INSTALL"; then
2949 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
2950 echo $ac_n "(cached) $ac_c" 1>&6
2952 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
2953 for ac_dir in $PATH; do
2954 # Account for people who put trailing slashes in PATH elements.
2956 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
2958 # OSF1 and SCO ODT 3.0 have their own names for install.
2959 # Don't use installbsd from OSF since it installs stuff as root
2961 for ac_prog in ginstall scoinst install; do
2962 if test -f $ac_dir/$ac_prog; then
2963 if test $ac_prog = install &&
2964 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
2965 # AIX install. It has an incompatible calling convention.
2967 elif test $ac_prog = install &&
2968 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
2969 # program-specific install script used by HP pwplus--don't use.
2972 ac_cv_path_install="$ac_dir/$ac_prog -c"
2983 if test "${ac_cv_path_install+set}" = set; then
2984 INSTALL="$ac_cv_path_install"
2986 # As a last resort, use the slow shell script. We don't cache a
2987 # path for INSTALL within a source directory, because that will
2988 # break other packages using the cache if that directory is
2989 # removed, or if the path is relative.
2990 INSTALL="$ac_install_sh"
2993 echo "$ac_t""$INSTALL" 1>&6
2995 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2996 # It thinks the first close brace ends the variable substitution.
2997 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2999 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3001 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3004 cat >> confdefs.h <<\EOF
3005 #define HAVE_MKVERSION 1
3013 *-*-aix*) if test -z "$CC" ; then
3014 case "$ol_with_threads" in
3015 auto | yes | posix) ol_aix_threads=yes ;;
3021 if test $ol_aix_threads = yes ; then
3022 if test -z "${CC}" ; then
3023 for ac_prog in cc_r xlc_r cc
3025 # Extract the first word of "$ac_prog", so it can be a program name with args.
3026 set dummy $ac_prog; ac_word=$2
3027 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_word" >&5
3029 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3037 for ac_dir in $ac_dummy; do
3038 test -z "$ac_dir" && ac_dir=.
3039 if test -f $ac_dir/$ac_word; then
3040 ac_cv_prog_CC="$ac_prog"
3048 if test -n "$CC"; then
3049 echo "$ac_t""$CC" 1>&6
3051 echo "$ac_t""no" 1>&6
3054 test -n "$CC" && break
3058 if test "$CC" = cc ; then
3059 if test $ol_with_threads != auto ; then
3060 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3062 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3068 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3069 ol_with_threads=posix
3070 ol_cv_pthread_create=yes
3074 if test -z "${CC}"; then
3075 for ac_prog in cc gcc
3077 # Extract the first word of "$ac_prog", so it can be a program name with args.
3078 set dummy $ac_prog; ac_word=$2
3079 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3080 echo "configure:3081: checking for $ac_word" >&5
3081 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 if test -n "$CC"; then
3085 ac_cv_prog_CC="$CC" # Let the user override the test.
3087 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3089 for ac_dir in $ac_dummy; do
3090 test -z "$ac_dir" && ac_dir=.
3091 if test -f $ac_dir/$ac_word; then
3092 ac_cv_prog_CC="$ac_prog"
3100 if test -n "$CC"; then
3101 echo "$ac_t""$CC" 1>&6
3103 echo "$ac_t""no" 1>&6
3106 test -n "$CC" && break
3108 test -n "$CC" || CC="missing"
3111 if test "${CC}" = "missing" ; then
3112 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3116 if test -z "${AR}"; then
3117 for ac_prog in ar gar
3119 # Extract the first word of "$ac_prog", so it can be a program name with args.
3120 set dummy $ac_prog; ac_word=$2
3121 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3122 echo "configure:3123: checking for $ac_word" >&5
3123 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 if test -n "$AR"; then
3127 ac_cv_prog_AR="$AR" # Let the user override the test.
3129 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3131 for ac_dir in $ac_dummy; do
3132 test -z "$ac_dir" && ac_dir=.
3133 if test -f $ac_dir/$ac_word; then
3134 ac_cv_prog_AR="$ac_prog"
3142 if test -n "$AR"; then
3143 echo "$ac_t""$AR" 1>&6
3145 echo "$ac_t""no" 1>&6
3148 test -n "$AR" && break
3150 test -n "$AR" || AR="missing"
3153 if test "${AR}" = "missing" ; then
3154 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3160 # Find the correct PATH separator. Usually this is `:', but
3161 # DJGPP uses `;' like DOS.
3162 if test "X${PATH_SEPARATOR+set}" != Xset; then
3163 UNAME=${UNAME-`uname 2>/dev/null`}
3165 *-DOS) lt_cv_sys_path_separator=';' ;;
3166 *) lt_cv_sys_path_separator=':' ;;
3168 PATH_SEPARATOR=$lt_cv_sys_path_separator
3171 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3172 echo "configure:3173: checking for Cygwin environment" >&5
3173 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3183 #define __CYGWIN__ __CYGWIN32__
3188 if { (eval echo configure:3189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3200 echo "$ac_t""$ac_cv_cygwin" 1>&6
3202 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3203 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3204 echo "configure:3205: checking for mingw32 environment" >&5
3205 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3208 cat > conftest.$ac_ext <<EOF
3209 #line 3210 "configure"
3210 #include "confdefs.h"
3216 if { (eval echo configure:3217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3228 echo "$ac_t""$ac_cv_mingw32" 1>&6
3230 test "$ac_cv_mingw32" = yes && MINGW32=yes
3231 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3232 echo "configure:3233: checking for EMX OS/2 environment" >&5
3233 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3244 if { (eval echo configure:3245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3248 echo "configure: failed program was:" >&5
3249 cat conftest.$ac_ext >&5
3256 echo "$ac_t""$ac_cv_emxos2" 1>&6
3258 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3259 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3260 echo "configure:3261: checking how to run the C preprocessor" >&5
3261 # On Suns, sometimes $CPP names a directory.
3262 if test -n "$CPP" && test -d "$CPP"; then
3265 if test -z "$CPP"; then
3266 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 # This must be in double quotes, not single quotes, because CPP may get
3270 # substituted into the Makefile and "${CC-cc}" will confuse make.
3272 # On the NeXT, cc -E runs the code through the compiler's parser,
3273 # not just through cpp.
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3281 { (eval echo configure:3282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3283 if test -z "$ac_err"; then
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3290 CPP="${CC-cc} -E -traditional-cpp"
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3298 { (eval echo configure:3299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3300 if test -z "$ac_err"; then
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3307 CPP="${CC-cc} -nologo -E"
3308 cat > conftest.$ac_ext <<EOF
3309 #line 3310 "configure"
3310 #include "confdefs.h"
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3331 ac_cv_prog_CPP="$CPP"
3333 CPP="$ac_cv_prog_CPP"
3335 ac_cv_prog_CPP="$CPP"
3337 echo "$ac_t""$CPP" 1>&6
3339 # Check whether --enable-fast-install or --disable-fast-install was given.
3340 if test "${enable_fast_install+set}" = set; then
3341 enableval="$enable_fast_install"
3342 p=${PACKAGE-default}
3344 yes) enable_fast_install=yes ;;
3345 no) enable_fast_install=no ;;
3347 enable_fast_install=no
3348 # Look at the argument we got. We use all the common list separators.
3349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3350 for pkg in $enableval; do
3351 if test "X$pkg" = "X$p"; then
3352 enable_fast_install=yes
3359 enable_fast_install=yes
3362 # Extract the first word of "gcc", so it can be a program name with args.
3363 set dummy gcc; ac_word=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3374 for ac_dir in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir=.
3376 if test -f $ac_dir/$ac_word; then
3385 if test -n "$CC"; then
3386 echo "$ac_t""$CC" 1>&6
3388 echo "$ac_t""no" 1>&6
3391 if test -z "$CC"; then
3392 # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3395 echo "configure:3396: checking for $ac_word" >&5
3396 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3397 echo $ac_n "(cached) $ac_c" 1>&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3405 for ac_dir in $ac_dummy; do
3406 test -z "$ac_dir" && ac_dir=.
3407 if test -f $ac_dir/$ac_word; then
3408 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3421 if test $# -gt 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 set dummy "$ac_dir/$ac_word" "$@"
3434 if test -n "$CC"; then
3435 echo "$ac_t""$CC" 1>&6
3437 echo "$ac_t""no" 1>&6
3440 if test -z "$CC"; then
3441 case "`uname -s`" in
3442 *win32* | *WIN32* | *CYGWIN*)
3443 # Extract the first word of "cl", so it can be a program name with args.
3444 set dummy cl; ac_word=$2
3445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3446 echo "configure:3447: checking for $ac_word" >&5
3447 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 if test -n "$CC"; then
3451 ac_cv_prog_CC="$CC" # Let the user override the test.
3453 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3455 for ac_dir in $ac_dummy; do
3456 test -z "$ac_dir" && ac_dir=.
3457 if test -f $ac_dir/$ac_word; then
3466 if test -n "$CC"; then
3467 echo "$ac_t""$CC" 1>&6
3469 echo "$ac_t""no" 1>&6
3474 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3477 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3478 echo "configure:3479: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3481 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3482 ac_cpp='$CPP $CPPFLAGS'
3483 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3484 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3485 cross_compiling=$ac_cv_prog_cc_cross
3487 cat > conftest.$ac_ext << EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 ac_cv_prog_cc_works=yes
3496 # If we can't run a trivial program, we are probably using a cross compiler.
3497 if (./conftest; exit) 2>/dev/null; then
3498 ac_cv_prog_cc_cross=no
3500 ac_cv_prog_cc_cross=yes
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 ac_cv_prog_cc_works=no
3509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3510 ac_cpp='$CPP $CPPFLAGS'
3511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3513 cross_compiling=$ac_cv_prog_cc_cross
3515 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3516 if test $ac_cv_prog_cc_works = no; then
3517 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3519 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3520 echo "configure:3521: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3521 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3522 cross_compiling=$ac_cv_prog_cc_cross
3524 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3525 echo "configure:3526: checking whether we are using GNU C" >&5
3526 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3527 echo $ac_n "(cached) $ac_c" 1>&6
3529 cat > conftest.c <<EOF
3534 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3535: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3541 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3543 if test $ac_cv_prog_gcc = yes; then
3549 ac_test_CFLAGS="${CFLAGS+set}"
3550 ac_save_CFLAGS="$CFLAGS"
3552 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3553 echo "configure:3554: checking whether ${CC-cc} accepts -g" >&5
3554 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3557 echo 'void f(){}' > conftest.c
3558 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3567 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3568 if test "$ac_test_CFLAGS" = set; then
3569 CFLAGS="$ac_save_CFLAGS"
3570 elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
3577 if test "$GCC" = yes; then
3584 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3585 if test "${with_gnu_ld+set}" = set; then
3586 withval="$with_gnu_ld"
3587 test "$withval" = no || with_gnu_ld=yes
3593 if test "$GCC" = yes; then
3594 # Check if gcc -print-prog-name=ld gives a path.
3595 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3596 echo "configure:3597: checking for ld used by GCC" >&5
3599 # gcc leaves a trailing carriage return which upsets mingw
3600 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3602 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3605 # Accept absolute paths.
3606 [\\/]* | [A-Za-z]:[\\/]*)
3607 re_direlt='/[^/][^/]*/\.\./'
3608 # Canonicalize the path of ld
3609 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3610 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3611 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3613 test -z "$LD" && LD="$ac_prog"
3616 # If it fails, then pretend we aren't using GCC.
3620 # If it is relative, then search for the first ld in PATH.
3624 elif test "$with_gnu_ld" = yes; then
3625 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3626 echo "configure:3627: checking for GNU ld" >&5
3628 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3629 echo "configure:3630: checking for non-GNU ld" >&5
3631 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 if test -z "$LD"; then
3635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3636 for ac_dir in $PATH; do
3637 test -z "$ac_dir" && ac_dir=.
3638 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3639 lt_cv_path_LD="$ac_dir/$ac_prog"
3640 # Check to see if the program is GNU ld. I'd rather use --version,
3641 # but apparently some GNU ld's only accept -v.
3642 # Break only if it was the GNU/non-GNU ld that we prefer.
3643 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3644 test "$with_gnu_ld" != no && break
3646 test "$with_gnu_ld" != yes && break
3652 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3657 if test -n "$LD"; then
3658 echo "$ac_t""$LD" 1>&6
3660 echo "$ac_t""no" 1>&6
3662 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3663 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3664 echo "configure:3665: checking if the linker ($LD) is GNU ld" >&5
3665 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3669 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3670 lt_cv_prog_gnu_ld=yes
3672 lt_cv_prog_gnu_ld=no
3676 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3677 with_gnu_ld=$lt_cv_prog_gnu_ld
3680 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3681 echo "configure:3682: checking for $LD option to reload object files" >&5
3682 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3685 lt_cv_ld_reload_flag='-r'
3688 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3689 reload_flag=$lt_cv_ld_reload_flag
3690 test -n "$reload_flag" && reload_flag=" $reload_flag"
3692 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3693 echo "configure:3694: checking for BSD-compatible nm" >&5
3694 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3695 echo $ac_n "(cached) $ac_c" 1>&6
3697 if test -n "$NM"; then
3698 # Let the user override the test.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3702 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3703 test -z "$ac_dir" && ac_dir=.
3704 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3705 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3706 # Check to see if the nm accepts a BSD-compat flag.
3707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3708 # nm: unknown option "B" ignored
3709 # Tru64's nm complains that /dev/null is an invalid object file
3710 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3711 lt_cv_path_NM="$tmp_nm -B"
3713 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3714 lt_cv_path_NM="$tmp_nm -p"
3717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3718 continue # so that we can try to find one that supports BSD flags
3723 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3728 echo "$ac_t""$NM" 1>&6
3730 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3731 echo "configure:3732: checking for a sed that does not truncate output" >&5
3732 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 # Loop through the user's path and test for sed and gsed.
3736 # Then use that list of sed's as ones to test for truncation.
3737 as_executable_p="test -f"
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_prog in sed gsed; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3746 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3752 # Create a temporary directory, and hook for its removal unless debugging.
3755 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3756 trap '{ (exit 1); exit 1; }' 1 2 13 15
3759 # Create a (secure) tmp directory for tmp files.
3762 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3763 test -n "$tmp" && test -d "$tmp"
3766 tmp=$TMPDIR/sed$$-$RANDOM
3767 (umask 077 && mkdir $tmp)
3770 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3771 { (exit 1); exit 1; }
3775 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3776 # along with /bin/sed that truncates output.
3777 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3778 test ! -f ${_sed} && break
3779 cat /dev/null > "$tmp/sed.in"
3781 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3782 # Check for GNU sed and select it if it is found.
3783 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3784 lt_cv_path_SED=${_sed}
3788 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3789 mv "$tmp/sed.tmp" "$tmp/sed.in"
3790 cp "$tmp/sed.in" "$tmp/sed.nl"
3791 echo >>"$tmp/sed.nl"
3792 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3793 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3794 # 40000 chars as input seems more than enough
3795 test $_count -gt 10 && break
3796 _count=`expr $_count + 1`
3797 if test $_count -gt $_max; then
3799 lt_cv_path_SED=$_sed
3807 if test "X$SED" != "X"; then
3812 echo "$ac_t""$SED" 1>&6
3814 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3815 echo "configure:3816: checking whether ln -s works" >&5
3816 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3820 if ln -s X conftestdata 2>/dev/null
3823 ac_cv_prog_LN_S="ln -s"
3828 LN_S="$ac_cv_prog_LN_S"
3829 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3830 echo "$ac_t""yes" 1>&6
3832 echo "$ac_t""no" 1>&6
3835 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3836 echo "configure:3837: checking how to recognise dependent libraries" >&5
3837 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 lt_cv_file_magic_cmd='$MAGIC_CMD'
3841 lt_cv_file_magic_test_file=
3842 lt_cv_deplibs_check_method='unknown'
3843 # Need to set the preceding variable on all platforms that support
3844 # interlibrary dependencies.
3845 # 'none' -- dependencies not supported.
3846 # `unknown' -- same as none, but documents that we really don't know.
3847 # 'pass_all' -- all dependencies passed with no checks.
3848 # 'test_compile' -- check by making test program.
3849 # 'file_magic [[regex]]' -- check by looking for files in library path
3850 # which responds to the $file_magic_cmd with a given egrep regex.
3851 # If you have `file' or equivalent on your system and you're not sure
3852 # whether `pass_all' will *always* work, you probably want this one.
3856 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_deplibs_check_method=pass_all
3864 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3865 lt_cv_file_magic_cmd='/usr/bin/file -L'
3866 lt_cv_file_magic_test_file=/shlib/libc.so
3869 cygwin* | mingw* | pw32*)
3870 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3871 lt_cv_file_magic_cmd='$OBJDUMP -f'
3874 darwin* | rhapsody*)
3875 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3876 lt_cv_file_magic_cmd='/usr/bin/file -L'
3878 rhapsody* | darwin1.[012])
3879 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3882 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3888 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3891 # Not sure whether the presence of OpenBSD here was a mistake.
3892 # Let's accept both of them until this is cleared up.
3893 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3894 lt_cv_file_magic_cmd=/usr/bin/file
3895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3899 lt_cv_deplibs_check_method=pass_all
3904 lt_cv_deplibs_check_method=pass_all
3908 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3909 lt_cv_file_magic_cmd=/usr/bin/file
3910 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3913 irix5* | irix6* | nonstopux*)
3915 irix5* | nonstopux*)
3916 # this will be overridden with pass_all, but let us keep it just in case
3917 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3921 *-32|*"-32 ") libmagic=32-bit;;
3922 *-n32|*"-n32 ") libmagic=N32;;
3923 *-64|*"-64 ") libmagic=64-bit;;
3924 *) libmagic=never-match;;
3926 # this will be overridden with pass_all, but let us keep it just in case
3927 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3930 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3931 lt_cv_deplibs_check_method=pass_all
3934 # This must be Linux ELF.
3937 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3938 lt_cv_deplibs_check_method=pass_all ;;
3940 # glibc up to 2.1.1 does not perform some relocations on ARM
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3943 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3948 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3950 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3956 lt_cv_file_magic_cmd=/usr/bin/file
3957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3961 lt_cv_file_magic_cmd=/usr/bin/file
3962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3964 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3966 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3970 osf3* | osf4* | osf5*)
3971 # this will be overridden with pass_all, but let us keep it just in case
3972 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3973 lt_cv_file_magic_test_file=/shlib/libc.so
3974 lt_cv_deplibs_check_method=pass_all
3978 lt_cv_deplibs_check_method=pass_all
3982 lt_cv_deplibs_check_method=pass_all
3983 lt_cv_file_magic_test_file=/lib/libc.so
3986 sysv5uw[78]* | sysv4*uw2*)
3987 lt_cv_deplibs_check_method=pass_all
3990 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3991 case $host_vendor in
3993 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]'
3994 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3997 lt_cv_deplibs_check_method=pass_all
4000 lt_cv_file_magic_cmd='/bin/file'
4001 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4004 lt_cv_file_magic_cmd='/bin/file'
4005 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4006 lt_cv_file_magic_test_file=/lib/libc.so
4009 lt_cv_deplibs_check_method=pass_all
4017 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4018 file_magic_cmd=$lt_cv_file_magic_cmd
4019 deplibs_check_method=$lt_cv_deplibs_check_method
4021 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4022 echo "configure:4023: checking for object suffix" >&5
4023 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4024 echo $ac_n "(cached) $ac_c" 1>&6
4027 echo 'int i = 1;' > conftest.$ac_ext
4028 if { (eval echo configure:4029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4029 for ac_file in conftest.*; do
4032 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4036 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4041 echo "$ac_t""$ac_cv_objext" 1>&6
4042 OBJEXT=$ac_cv_objext
4043 ac_objext=$ac_cv_objext
4048 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4049 echo "configure:4050: checking for executable suffix" >&5
4050 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4051 echo $ac_n "(cached) $ac_c" 1>&6
4053 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4057 echo 'int main () { return 0; }' > conftest.$ac_ext
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4060 for file in conftest.*; do
4062 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4063 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4067 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4070 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4075 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4076 echo "$ac_t""${ac_cv_exeext}" 1>&6
4079 if test $host != $build; then
4080 ac_tool_prefix=${host_alias}-
4088 # Check for command to grab the raw symbol name followed by C symbol from nm.
4089 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4090 echo "configure:4091: checking command to parse $NM output" >&5
4091 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4092 echo $ac_n "(cached) $ac_c" 1>&6
4095 # These are sane defaults that work on at least a few old systems.
4096 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4098 # Character class describing NM global symbol codes.
4099 symcode='[BCDEGRST]'
4101 # Regexp to match symbols that can be accessed directly from C.
4102 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4104 # Transform the above into a raw symbol and a C symbol.
4105 symxfrm='\1 \2\3 \3'
4107 # Transform an extracted symbol line into a proper C declaration
4108 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4110 # Transform an extracted symbol line into symbol name and symbol address
4111 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'"
4113 # Define system-specific variables.
4118 cygwin* | mingw* | pw32*)
4119 symcode='[ABCDGISTW]'
4121 hpux*) # Its linker distinguishes data from code symbols
4122 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4123 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'"
4126 symcode='[BCDEGRST]'
4129 symcode='[BCDEGQRST]'
4139 # Handle CRLF in mingw tool chain
4143 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4147 # If we're using GNU nm, then use its standard symbol codes.
4148 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4149 symcode='[ABCDGISTW]'
4152 # Try without a prefix undercore, then with it.
4153 for ac_symprfx in "" "_"; do
4155 # Write the raw and C identifiers.
4156 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4158 # Check to see that the pipe works correctly.
4161 cat > conftest.$ac_ext <<EOF
4166 void nm_test_func(){}
4170 int main(){nm_test_var='a';nm_test_func();return(0);}
4173 if { (eval echo configure:4174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4174 # Now try to grab the symbols.
4176 if { (eval echo configure:4177: \"$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
4177 # Try sorting and uniquifying the output.
4178 if sort "$nlist" | uniq > "$nlist"T; then
4179 mv -f "$nlist"T "$nlist"
4184 # Make sure that we snagged all the symbols we need.
4185 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4186 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4187 cat <<EOF > conftest.$ac_ext
4193 # Now generate the symbol file.
4194 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4196 cat <<EOF >> conftest.$ac_ext
4197 #if defined (__STDC__) && __STDC__
4198 # define lt_ptr void *
4200 # define lt_ptr char *
4204 /* The mapping between symbol names and symbols. */
4209 lt_preloaded_symbols[] =
4212 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4213 cat <<\EOF >> conftest.$ac_ext
4221 # Now try linking the two files.
4222 mv conftest.$ac_objext conftstm.$ac_objext
4224 save_CFLAGS="$CFLAGS"
4225 LIBS="conftstm.$ac_objext"
4226 CFLAGS="$CFLAGS$no_builtin_flag"
4227 if { (eval echo configure:4228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4231 CFLAGS="$save_CFLAGS"
4233 echo "cannot find nm_test_func in $nlist" >&5
4236 echo "cannot find nm_test_var in $nlist" >&5
4239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4242 echo "$progname: failed program was:" >&5
4243 cat conftest.$ac_ext >&5
4245 rm -f conftest* conftst*
4247 # Do not use the global_symbol_pipe unless it works.
4248 if test "$pipe_works" = yes; then
4251 lt_cv_sys_global_symbol_pipe=
4257 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4258 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4259 global_symbol_to_cdecl=
4260 global_symbol_to_c_name_address=
4262 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4263 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4265 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4267 echo "$ac_t""failed" 1>&6
4269 echo "$ac_t""ok" 1>&6
4272 for ac_hdr in dlfcn.h
4274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4276 echo "configure:4277: checking for $ac_hdr" >&5
4277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4278 echo $ac_n "(cached) $ac_c" 1>&6
4280 cat > conftest.$ac_ext <<EOF
4281 #line 4282 "configure"
4282 #include "confdefs.h"
4285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4286 { (eval echo configure:4287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4288 if test -z "$ac_err"; then
4290 eval "ac_cv_header_$ac_safe=yes"
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4296 eval "ac_cv_header_$ac_safe=no"
4300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4301 echo "$ac_t""yes" 1>&6
4302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4303 cat >> confdefs.h <<EOF
4304 #define $ac_tr_hdr 1
4308 echo "$ac_t""no" 1>&6
4317 # Only perform the check for file, if the check method requires it
4318 case $deplibs_check_method in
4320 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4321 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4322 echo "configure:4323: checking for ${ac_tool_prefix}file" >&5
4323 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4324 echo $ac_n "(cached) $ac_c" 1>&6
4328 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4331 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4334 ac_save_MAGIC_CMD="$MAGIC_CMD"
4335 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4336 ac_dummy="/usr/bin:$PATH"
4337 for ac_dir in $ac_dummy; do
4338 test -z "$ac_dir" && ac_dir=.
4339 if test -f $ac_dir/${ac_tool_prefix}file; then
4340 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4341 if test -n "$file_magic_test_file"; then
4342 case $deplibs_check_method in
4344 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4345 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4346 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4347 egrep "$file_magic_regex" > /dev/null; then
4352 *** Warning: the command libtool uses to detect shared libraries,
4353 *** $file_magic_cmd, produces output that libtool cannot recognize.
4354 *** The result is that libtool may fail to recognize shared libraries
4355 *** as such. This will affect the creation of libtool libraries that
4356 *** depend on shared libraries, but programs linked with such libtool
4357 *** libraries will work regardless of this problem. Nevertheless, you
4358 *** may want to report the problem to your system manager and/or to
4359 *** bug-libtool@gnu.org
4369 MAGIC_CMD="$ac_save_MAGIC_CMD"
4374 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4375 if test -n "$MAGIC_CMD"; then
4376 echo "$ac_t""$MAGIC_CMD" 1>&6
4378 echo "$ac_t""no" 1>&6
4381 if test -z "$lt_cv_path_MAGIC_CMD"; then
4382 if test -n "$ac_tool_prefix"; then
4383 echo $ac_n "checking for file""... $ac_c" 1>&6
4384 echo "configure:4385: checking for file" >&5
4385 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4390 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4393 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4396 ac_save_MAGIC_CMD="$MAGIC_CMD"
4397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4398 ac_dummy="/usr/bin:$PATH"
4399 for ac_dir in $ac_dummy; do
4400 test -z "$ac_dir" && ac_dir=.
4401 if test -f $ac_dir/file; then
4402 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4403 if test -n "$file_magic_test_file"; then
4404 case $deplibs_check_method in
4406 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4407 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4408 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4409 egrep "$file_magic_regex" > /dev/null; then
4414 *** Warning: the command libtool uses to detect shared libraries,
4415 *** $file_magic_cmd, produces output that libtool cannot recognize.
4416 *** The result is that libtool may fail to recognize shared libraries
4417 *** as such. This will affect the creation of libtool libraries that
4418 *** depend on shared libraries, but programs linked with such libtool
4419 *** libraries will work regardless of this problem. Nevertheless, you
4420 *** may want to report the problem to your system manager and/or to
4421 *** bug-libtool@gnu.org
4431 MAGIC_CMD="$ac_save_MAGIC_CMD"
4436 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4437 if test -n "$MAGIC_CMD"; then
4438 echo "$ac_t""$MAGIC_CMD" 1>&6
4440 echo "$ac_t""no" 1>&6
4452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4455 echo "configure:4456: checking for $ac_word" >&5
4456 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4457 echo $ac_n "(cached) $ac_c" 1>&6
4459 if test -n "$RANLIB"; then
4460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4464 for ac_dir in $ac_dummy; do
4465 test -z "$ac_dir" && ac_dir=.
4466 if test -f $ac_dir/$ac_word; then
4467 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474 RANLIB="$ac_cv_prog_RANLIB"
4475 if test -n "$RANLIB"; then
4476 echo "$ac_t""$RANLIB" 1>&6
4478 echo "$ac_t""no" 1>&6
4482 if test -z "$ac_cv_prog_RANLIB"; then
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "ranlib", so it can be a program name with args.
4485 set dummy ranlib; ac_word=$2
4486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_word" >&5
4488 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 if test -n "$RANLIB"; then
4492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4494 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4496 for ac_dir in $ac_dummy; do
4497 test -z "$ac_dir" && ac_dir=.
4498 if test -f $ac_dir/$ac_word; then
4499 ac_cv_prog_RANLIB="ranlib"
4504 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4507 RANLIB="$ac_cv_prog_RANLIB"
4508 if test -n "$RANLIB"; then
4509 echo "$ac_t""$RANLIB" 1>&6
4511 echo "$ac_t""no" 1>&6
4519 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}strip; ac_word=$2
4521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4522 echo "configure:4523: checking for $ac_word" >&5
4523 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4524 echo $ac_n "(cached) $ac_c" 1>&6
4526 if test -n "$STRIP"; then
4527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4531 for ac_dir in $ac_dummy; do
4532 test -z "$ac_dir" && ac_dir=.
4533 if test -f $ac_dir/$ac_word; then
4534 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4541 STRIP="$ac_cv_prog_STRIP"
4542 if test -n "$STRIP"; then
4543 echo "$ac_t""$STRIP" 1>&6
4545 echo "$ac_t""no" 1>&6
4549 if test -z "$ac_cv_prog_STRIP"; then
4550 if test -n "$ac_tool_prefix"; then
4551 # Extract the first word of "strip", so it can be a program name with args.
4552 set dummy strip; ac_word=$2
4553 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4554 echo "configure:4555: checking for $ac_word" >&5
4555 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4558 if test -n "$STRIP"; then
4559 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4561 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4563 for ac_dir in $ac_dummy; do
4564 test -z "$ac_dir" && ac_dir=.
4565 if test -f $ac_dir/$ac_word; then
4566 ac_cv_prog_STRIP="strip"
4571 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4574 STRIP="$ac_cv_prog_STRIP"
4575 if test -n "$STRIP"; then
4576 echo "$ac_t""$STRIP" 1>&6
4578 echo "$ac_t""no" 1>&6
4588 enable_win32_dll=yes
4590 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4591 if test "${enable_libtool_lock+set}" = set; then
4592 enableval="$enable_libtool_lock"
4596 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4598 # Some flags need to be propagated to the compiler or linker for good
4602 # Find out which ABI we are using.
4603 echo '#line 4604 "configure"' > conftest.$ac_ext
4604 if { (eval echo configure:4605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4605 case `/usr/bin/file conftest.$ac_objext` in
4621 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4622 SAVE_CFLAGS="$CFLAGS"
4623 CFLAGS="$CFLAGS -belf"
4624 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4625 echo "configure:4626: checking whether the C compiler needs -belf" >&5
4626 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4627 echo $ac_n "(cached) $ac_c" 1>&6
4631 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4634 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4635 cross_compiling=$ac_cv_prog_cc_cross
4637 cat > conftest.$ac_ext <<EOF
4638 #line 4639 "configure"
4639 #include "confdefs.h"
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4647 lt_cv_cc_needs_belf=yes
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4652 lt_cv_cc_needs_belf=no
4656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4657 ac_cpp='$CPP $CPPFLAGS'
4658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4660 cross_compiling=$ac_cv_prog_cc_cross
4664 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4665 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4666 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4667 CFLAGS="$SAVE_CFLAGS"
4671 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4672 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4673 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4675 echo "configure:4676: checking for $ac_word" >&5
4676 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4679 if test -n "$DLLTOOL"; then
4680 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4682 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4684 for ac_dir in $ac_dummy; do
4685 test -z "$ac_dir" && ac_dir=.
4686 if test -f $ac_dir/$ac_word; then
4687 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4694 DLLTOOL="$ac_cv_prog_DLLTOOL"
4695 if test -n "$DLLTOOL"; then
4696 echo "$ac_t""$DLLTOOL" 1>&6
4698 echo "$ac_t""no" 1>&6
4702 if test -z "$ac_cv_prog_DLLTOOL"; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "dlltool", so it can be a program name with args.
4705 set dummy dlltool; ac_word=$2
4706 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4707 echo "configure:4708: checking for $ac_word" >&5
4708 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4709 echo $ac_n "(cached) $ac_c" 1>&6
4711 if test -n "$DLLTOOL"; then
4712 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4716 for ac_dir in $ac_dummy; do
4717 test -z "$ac_dir" && ac_dir=.
4718 if test -f $ac_dir/$ac_word; then
4719 ac_cv_prog_DLLTOOL="dlltool"
4724 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4727 DLLTOOL="$ac_cv_prog_DLLTOOL"
4728 if test -n "$DLLTOOL"; then
4729 echo "$ac_t""$DLLTOOL" 1>&6
4731 echo "$ac_t""no" 1>&6
4739 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}as; ac_word=$2
4741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4742 echo "configure:4743: checking for $ac_word" >&5
4743 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 if test -n "$AS"; then
4747 ac_cv_prog_AS="$AS" # Let the user override the test.
4749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4751 for ac_dir in $ac_dummy; do
4752 test -z "$ac_dir" && ac_dir=.
4753 if test -f $ac_dir/$ac_word; then
4754 ac_cv_prog_AS="${ac_tool_prefix}as"
4762 if test -n "$AS"; then
4763 echo "$ac_t""$AS" 1>&6
4765 echo "$ac_t""no" 1>&6
4769 if test -z "$ac_cv_prog_AS"; then
4770 if test -n "$ac_tool_prefix"; then
4771 # Extract the first word of "as", so it can be a program name with args.
4772 set dummy as; ac_word=$2
4773 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4774 echo "configure:4775: checking for $ac_word" >&5
4775 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4776 echo $ac_n "(cached) $ac_c" 1>&6
4778 if test -n "$AS"; then
4779 ac_cv_prog_AS="$AS" # Let the user override the test.
4781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4783 for ac_dir in $ac_dummy; do
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f $ac_dir/$ac_word; then
4791 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4795 if test -n "$AS"; then
4796 echo "$ac_t""$AS" 1>&6
4798 echo "$ac_t""no" 1>&6
4806 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4807 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4808 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4809 echo "configure:4810: checking for $ac_word" >&5
4810 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4811 echo $ac_n "(cached) $ac_c" 1>&6
4813 if test -n "$OBJDUMP"; then
4814 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4818 for ac_dir in $ac_dummy; do
4819 test -z "$ac_dir" && ac_dir=.
4820 if test -f $ac_dir/$ac_word; then
4821 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4828 OBJDUMP="$ac_cv_prog_OBJDUMP"
4829 if test -n "$OBJDUMP"; then
4830 echo "$ac_t""$OBJDUMP" 1>&6
4832 echo "$ac_t""no" 1>&6
4836 if test -z "$ac_cv_prog_OBJDUMP"; then
4837 if test -n "$ac_tool_prefix"; then
4838 # Extract the first word of "objdump", so it can be a program name with args.
4839 set dummy objdump; ac_word=$2
4840 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4841 echo "configure:4842: checking for $ac_word" >&5
4842 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4845 if test -n "$OBJDUMP"; then
4846 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4850 for ac_dir in $ac_dummy; do
4851 test -z "$ac_dir" && ac_dir=.
4852 if test -f $ac_dir/$ac_word; then
4853 ac_cv_prog_OBJDUMP="objdump"
4858 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4861 OBJDUMP="$ac_cv_prog_OBJDUMP"
4862 if test -n "$OBJDUMP"; then
4863 echo "$ac_t""$OBJDUMP" 1>&6
4865 echo "$ac_t""no" 1>&6
4874 # recent cygwin and mingw systems supply a stub DllMain which the user
4875 # can override, but on older systems we have to supply one
4876 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4877 echo "configure:4878: checking if libtool should supply DllMain function" >&5
4878 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4879 echo $ac_n "(cached) $ac_c" 1>&6
4881 cat > conftest.$ac_ext <<EOF
4882 #line 4883 "configure"
4883 #include "confdefs.h"
4886 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4890 if { (eval echo configure:4891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4892 lt_cv_need_dllmain=no
4894 echo "configure: failed program was:" >&5
4895 cat conftest.$ac_ext >&5
4897 lt_cv_need_dllmain=yes
4902 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4905 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4906 # old mingw systems require "-dll" to link a DLL, while more recent ones
4908 SAVE_CFLAGS="$CFLAGS"
4909 CFLAGS="$CFLAGS -mdll"
4910 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4911 echo "configure:4912: checking how to link DLLs" >&5
4912 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 cat > conftest.$ac_ext <<EOF
4916 #line 4917 "configure"
4917 #include "confdefs.h"
4923 if { (eval echo configure:4924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4925 lt_cv_cc_dll_switch=-mdll
4927 echo "configure: failed program was:" >&5
4928 cat conftest.$ac_ext >&5
4930 lt_cv_cc_dll_switch=-dll
4935 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4936 CFLAGS="$SAVE_CFLAGS" ;;
4937 *-*-cygwin* | *-*-pw32*)
4938 # cygwin systems need to pass --dll to the linker, and not link
4939 # crt.o which will require a WinMain@16 definition.
4940 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4946 # Sed substitution that helps us do robust quoting. It backslashifies
4947 # metacharacters that are still active within double-quoted strings.
4948 Xsed='sed -e s/^X//'
4949 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4951 # Same as above, but do not quote variable references.
4952 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4954 # Sed substitution to delay expansion of an escaped shell variable in a
4955 # double_quote_subst'ed string.
4956 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4962 default_ofile=libtool
4963 can_build_shared=yes
4965 # All known linkers require a `.a' archive for static linking (except M$VC,
4966 # which needs '.lib').
4968 ltmain="$ac_aux_dir/ltmain.sh"
4969 ofile="$default_ofile"
4970 with_gnu_ld="$lt_cv_prog_gnu_ld"
4971 need_locks="$enable_libtool_lock"
4974 old_CFLAGS="$CFLAGS"
4976 # Set sane defaults for various variables
4977 test -z "$AR" && AR=ar
4978 test -z "$AR_FLAGS" && AR_FLAGS=cru
4979 test -z "$AS" && AS=as
4980 test -z "$CC" && CC=cc
4981 test -z "$DLLTOOL" && DLLTOOL=dlltool
4982 test -z "$LD" && LD=ld
4983 test -z "$LN_S" && LN_S="ln -s"
4984 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4985 test -z "$NM" && NM=nm
4986 test -z "$OBJDUMP" && OBJDUMP=objdump
4987 test -z "$RANLIB" && RANLIB=:
4988 test -z "$STRIP" && STRIP=:
4989 test -z "$ac_objext" && ac_objext=o
4991 if test x"$host" != x"$build"; then
4992 ac_tool_prefix=${host_alias}-
4997 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5000 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5005 # AIX sometimes has problems with the GCC collect2 program. For some
5006 # reason, if we set the COLLECT_NAMES environment variable, the problems
5007 # vanish in a puff of smoke.
5008 if test "X${COLLECT_NAMES+set}" != Xset; then
5010 export COLLECT_NAMES
5015 # Determine commands to create old-style static archives.
5016 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5017 old_postinstall_cmds='chmod 644 $oldlib'
5018 old_postuninstall_cmds=
5020 if test -n "$RANLIB"; then
5023 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5026 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5029 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5032 # Allow CC to be a program name with arguments.
5036 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5037 echo "configure:5038: checking for objdir" >&5
5038 rm -f .libs 2>/dev/null
5039 mkdir .libs 2>/dev/null
5040 if test -d .libs; then
5043 # MS-DOS does not allow filenames that begin with a dot.
5046 rmdir .libs 2>/dev/null
5047 echo "$ac_t""$objdir" 1>&6
5050 # Check whether --with-pic or --without-pic was given.
5051 if test "${with_pic+set}" = set; then
5058 test -z "$pic_mode" && pic_mode=default
5060 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5061 # in isolation, and that seeing it set (from the cache) indicates that
5062 # the associated values are set (in the cache) correctly too.
5063 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5064 echo "configure:5065: checking for $compiler option to produce PIC" >&5
5065 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5066 echo $ac_n "(cached) $ac_c" 1>&6
5069 lt_cv_prog_cc_shlib=
5071 lt_cv_prog_cc_static=
5072 lt_cv_prog_cc_no_builtin=
5073 lt_cv_prog_cc_can_build_shared=$can_build_shared
5075 if test "$GCC" = yes; then
5076 lt_cv_prog_cc_wl='-Wl,'
5077 lt_cv_prog_cc_static='-static'
5081 # Below there is a dirty hack to force normal static linking with -ldl
5082 # The problem is because libdl dynamically linked with both libc and
5083 # libC (AIX C++ library), which obviously doesn't included in libraries
5084 # list by gcc. This cause undefined symbols with -static flags.
5085 # This hack allows C programs to be linked with "-static -ldl", but
5086 # not sure about C++ programs.
5087 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5090 # FIXME: we need at least 68020 code to build shared libraries, but
5091 # adding the `-m68020' flag to GCC prevents building anything better,
5093 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5095 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5096 # PIC is the default for these OSes.
5098 darwin* | rhapsody*)
5099 # PIC is the default on this platform
5100 # Common symbols not allowed in MH_DYLIB files
5101 lt_cv_prog_cc_pic='-fno-common'
5103 cygwin* | mingw* | pw32* | os2*)
5104 # This hack is so that the source file can tell whether it is being
5105 # built for inclusion in a dll (and should export symbols for example).
5106 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5109 if test -d /usr/nec; then
5110 lt_cv_prog_cc_pic=-Kconform_pic
5114 lt_cv_prog_cc_pic='-fPIC'
5118 # PORTME Check for PIC flags for the system compiler.
5120 aix3* | aix4* | aix5*)
5121 lt_cv_prog_cc_wl='-Wl,'
5122 # All AIX code is PIC.
5123 if test "$host_cpu" = ia64; then
5124 # AIX 5 now supports IA64 processor
5125 lt_cv_prog_cc_static='-Bstatic'
5127 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5131 hpux9* | hpux10* | hpux11*)
5132 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5133 lt_cv_prog_cc_wl='-Wl,'
5134 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5135 lt_cv_prog_cc_pic='+Z'
5138 irix5* | irix6* | nonstopux*)
5139 lt_cv_prog_cc_wl='-Wl,'
5140 lt_cv_prog_cc_static='-non_shared'
5141 # PIC (with -KPIC) is the default.
5144 cygwin* | mingw* | pw32* | os2*)
5145 # This hack is so that the source file can tell whether it is being
5146 # built for inclusion in a dll (and should export symbols for example).
5147 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5151 lt_cv_prog_cc_pic='-KPIC'
5152 lt_cv_prog_cc_static='-Bstatic'
5155 osf3* | osf4* | osf5*)
5156 # All OSF/1 code is PIC.
5157 lt_cv_prog_cc_wl='-Wl,'
5158 lt_cv_prog_cc_static='-non_shared'
5162 lt_cv_prog_cc_pic='-Kpic'
5163 lt_cv_prog_cc_static='-dn'
5164 lt_cv_prog_cc_shlib='-belf'
5168 lt_cv_prog_cc_pic='-KPIC'
5169 lt_cv_prog_cc_static='-Bstatic'
5170 lt_cv_prog_cc_wl='-Wl,'
5174 lt_cv_prog_cc_pic='-PIC'
5175 lt_cv_prog_cc_static='-Bstatic'
5176 lt_cv_prog_cc_wl='-Qoption ld '
5179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5180 lt_cv_prog_cc_pic='-KPIC'
5181 lt_cv_prog_cc_static='-Bstatic'
5182 lt_cv_prog_cc_wl='-Wl,'
5186 lt_cv_prog_cc_pic='-pic'
5187 lt_cv_prog_cc_static='-Bstatic'
5191 if test -d /usr/nec ;then
5192 lt_cv_prog_cc_pic='-Kconform_pic'
5193 lt_cv_prog_cc_static='-Bstatic'
5198 lt_cv_prog_cc_can_build_shared=no
5205 if test -z "$lt_cv_prog_cc_pic"; then
5206 echo "$ac_t""none" 1>&6
5208 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5210 # Check to make sure the pic_flag actually works.
5211 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5212 echo "configure:5213: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5213 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5214 echo $ac_n "(cached) $ac_c" 1>&6
5216 save_CFLAGS="$CFLAGS"
5217 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5218 cat > conftest.$ac_ext <<EOF
5219 #line 5220 "configure"
5220 #include "confdefs.h"
5226 if { (eval echo configure:5227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5229 hpux9* | hpux10* | hpux11*)
5230 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5231 # they create non-PIC objects. So, if there were any warnings, we
5232 # assume that PIC is not supported.
5233 if test -s conftest.err; then
5234 lt_cv_prog_cc_pic_works=no
5236 lt_cv_prog_cc_pic_works=yes
5240 lt_cv_prog_cc_pic_works=yes
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5248 lt_cv_prog_cc_pic_works=no
5252 CFLAGS="$save_CFLAGS"
5257 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5259 lt_cv_prog_cc_can_build_shared=no
5261 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5264 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5267 # Check for any special shared library compilation flags.
5268 if test -n "$lt_cv_prog_cc_shlib"; then
5269 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5270 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5272 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5273 lt_cv_prog_cc_can_build_shared=no
5277 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5278 echo "configure:5279: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5279 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5280 echo $ac_n "(cached) $ac_c" 1>&6
5282 lt_cv_prog_cc_static_works=no
5283 save_LDFLAGS="$LDFLAGS"
5284 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5293 if { (eval echo configure:5294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5295 lt_cv_prog_cc_static_works=yes
5297 echo "configure: failed program was:" >&5
5298 cat conftest.$ac_ext >&5
5301 LDFLAGS="$save_LDFLAGS"
5306 # Belt *and* braces to stop my trousers falling down:
5307 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5308 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5310 pic_flag="$lt_cv_prog_cc_pic"
5311 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5312 wl="$lt_cv_prog_cc_wl"
5313 link_static_flag="$lt_cv_prog_cc_static"
5314 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5315 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5318 # Check to see if options -o and -c are simultaneously supported by compiler
5319 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5320 echo "configure:5321: checking if $compiler supports -c -o file.$ac_objext" >&5
5321 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5322 echo $ac_n "(cached) $ac_c" 1>&6
5325 $rm -r conftest 2>/dev/null
5328 echo "int some_variable = 0;" > conftest.$ac_ext
5330 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5331 # that will create temporary files in the current directory regardless of
5332 # the output directory. Thus, making CWD read-only will cause this test
5333 # to fail, enabling locking or at least warning the user not to do parallel
5336 save_CFLAGS="$CFLAGS"
5337 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5339 if { (eval echo configure:5340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5340 # The compiler can only warn and ignore the option if not recognized
5341 # So say no if there are warnings
5342 if test -s out/conftest.err; then
5343 lt_cv_compiler_c_o=no
5345 lt_cv_compiler_c_o=yes
5348 # Append any errors to the config.log.
5349 cat out/conftest.err 1>&5
5350 lt_cv_compiler_c_o=no
5352 CFLAGS="$save_CFLAGS"
5358 $rm -r conftest 2>/dev/null
5362 compiler_c_o=$lt_cv_compiler_c_o
5363 echo "$ac_t""$compiler_c_o" 1>&6
5365 if test x"$compiler_c_o" = x"yes"; then
5366 # Check to see if we can write to a .lo
5367 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5368 echo "configure:5369: checking if $compiler supports -c -o file.lo" >&5
5369 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5370 echo $ac_n "(cached) $ac_c" 1>&6
5373 lt_cv_compiler_o_lo=no
5374 save_CFLAGS="$CFLAGS"
5375 CFLAGS="$CFLAGS -c -o conftest.lo"
5376 save_objext="$ac_objext"
5378 cat > conftest.$ac_ext <<EOF
5379 #line 5380 "configure"
5380 #include "confdefs.h"
5383 int some_variable = 0;
5386 if { (eval echo configure:5387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5388 # The compiler can only warn and ignore the option if not recognized
5389 # So say no if there are warnings
5390 if test -s conftest.err; then
5391 lt_cv_compiler_o_lo=no
5393 lt_cv_compiler_o_lo=yes
5397 echo "configure: failed program was:" >&5
5398 cat conftest.$ac_ext >&5
5401 ac_objext="$save_objext"
5402 CFLAGS="$save_CFLAGS"
5406 compiler_o_lo=$lt_cv_compiler_o_lo
5407 echo "$ac_t""$compiler_o_lo" 1>&6
5412 # Check to see if we can do hard links to lock some files if needed
5413 hard_links="nottested"
5414 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5415 # do not overwrite the value of need_locks provided by the user
5416 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5417 echo "configure:5418: checking if we can lock with hard links" >&5
5420 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5422 ln conftest.a conftest.b 2>&5 || hard_links=no
5423 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5424 echo "$ac_t""$hard_links" 1>&6
5425 if test "$hard_links" = no; then
5426 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5433 if test "$GCC" = yes; then
5434 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5435 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5436 echo "configure:5437: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5437 echo "int some_variable = 0;" > conftest.$ac_ext
5438 save_CFLAGS="$CFLAGS"
5439 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5440 compiler_rtti_exceptions=no
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5446 int some_variable = 0;
5449 if { (eval echo configure:5450: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5451 # The compiler can only warn and ignore the option if not recognized
5452 # So say no if there are warnings
5453 if test -s conftest.err; then
5454 compiler_rtti_exceptions=no
5456 compiler_rtti_exceptions=yes
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5464 CFLAGS="$save_CFLAGS"
5465 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5467 if test "$compiler_rtti_exceptions" = "yes"; then
5468 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5470 no_builtin_flag=' -fno-builtin'
5474 # See if the linker supports building shared libraries.
5475 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5476 echo "configure:5477: checking whether the linker ($LD) supports shared libraries" >&5
5478 allow_undefined_flag=
5480 need_lib_prefix=unknown
5481 need_version=unknown
5482 # when you set need_version to no, make sure it does not cause -set_version
5483 # flags to be left without arguments
5485 archive_expsym_cmds=
5486 old_archive_from_new_cmds=
5487 old_archive_from_expsyms_cmds=
5488 export_dynamic_flag_spec=
5489 whole_archive_flag_spec=
5490 thread_safe_flag_spec=
5491 hardcode_into_libs=no
5492 hardcode_libdir_flag_spec=
5493 hardcode_libdir_separator=
5496 hardcode_shlibpath_var=unsupported
5498 link_all_deplibs=unknown
5499 always_export_symbols=no
5500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5501 # include_expsyms should be a list of space-separated symbols to be *always*
5502 # included in the symbol list
5504 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5505 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5507 # as well as any symbol that contains `d'.
5508 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5510 # platforms (ab)use it in PIC code, but their linkers get confused if
5511 # the symbol is explicitly referenced. Since portable code cannot
5512 # rely on this symbol name, it's probably fine to never include it in
5513 # preloaded symbol tables.
5514 extract_expsyms_cmds=
5517 cygwin* | mingw* | pw32*)
5518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5519 # When not using gcc, we currently assume that we are using
5520 # Microsoft Visual C++.
5521 if test "$GCC" != yes; then
5531 if test "$with_gnu_ld" = yes; then
5532 # If archive_cmds runs LD, not CC, wlarc should be empty
5535 # See if GNU ld supports shared libraries.
5537 aix3* | aix4* | aix5*)
5538 # On AIX, the GNU linker is very broken
5539 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5543 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5544 *** to be unable to reliably create shared libraries on AIX.
5545 *** Therefore, libtool is disabling shared libraries support. If you
5546 *** really care for shared libraries, you may want to modify your PATH
5547 *** so that a non-GNU linker is found, and then restart.
5553 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)'
5554 hardcode_libdir_flag_spec='-L$libdir'
5555 hardcode_minus_L=yes
5557 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5558 # that the semantics of dynamic libraries on AmigaOS, at least up
5559 # to version 4, is to share data among multiple programs linked
5560 # with the same dynamic library. Since this doesn't match the
5561 # behavior of shared libraries on other platforms, we can use
5567 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5568 allow_undefined_flag=unsupported
5569 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5570 # support --undefined. This deserves some investigation. FIXME
5571 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5577 cygwin* | mingw* | pw32*)
5578 # hardcode_libdir_flag_spec is actually meaningless, as there is
5579 # no search path for DLLs.
5580 hardcode_libdir_flag_spec='-L$libdir'
5581 allow_undefined_flag=unsupported
5582 always_export_symbols=yes
5584 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5585 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5586 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5587 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5588 else $CC -o impgen impgen.c ; fi)~
5589 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5591 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5593 # cygwin and mingw dlls have different entry points and sets of symbols
5595 # FIXME: what about values for MSVC?
5596 dll_entry=__cygwin_dll_entry@12
5597 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5601 dll_entry=_DllMainCRTStartup@12
5602 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5606 # mingw and cygwin differ, and it's simplest to just exclude the union
5607 # of the two symbol sets.
5608 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5610 # recent cygwin and mingw systems supply a stub DllMain which the user
5611 # can override, but on older systems we have to supply one (in ltdll.c)
5612 if test "x$lt_cv_need_dllmain" = "xyes"; then
5613 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5614 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~
5615 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5621 # Extract the symbol export list from an `--export-all' def file,
5622 # then regenerate the def file from the symbol export list, so that
5623 # the compiled dll only exports the symbol export list.
5624 # Be careful not to strip the DATA tag left be newer dlltools.
5625 export_symbols_cmds="$ltdll_cmds"'
5626 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5627 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5629 # If the export-symbols file already is a .def file (1st line
5630 # is EXPORTS), use it as is.
5631 # If DATA tags from a recent dlltool are present, honour them!
5632 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5633 cp $export_symbols $output_objdir/$soname-def;
5635 echo EXPORTS > $output_objdir/$soname-def;
5637 cat $export_symbols | while read symbol; do
5640 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5641 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5642 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5644 _lt_hint=`expr 1 + \$_lt_hint`;
5648 $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~
5649 $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~
5650 $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~
5651 $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~
5652 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5660 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5661 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5666 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5671 *** create shared libraries on Solaris systems. Therefore, libtool
5672 *** is disabling shared libraries support. We urge you to upgrade GNU
5673 *** binutils to release 2.9.1 or newer. Another option is to modify
5674 *** your PATH or compiler configuration so that the native linker is
5675 *** used, and then restart.
5678 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5687 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5690 hardcode_shlibpath_var=no
5694 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5696 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5703 if test "$ld_shlibs" = yes; then
5704 runpath_var=LD_RUN_PATH
5705 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5706 export_dynamic_flag_spec='${wl}--export-dynamic'
5708 cygwin* | mingw* | pw32*)
5709 # dlltool doesn't understand --whole-archive et. al.
5710 whole_archive_flag_spec=
5713 # ancient GNU ld didn't support --whole-archive et. al.
5714 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5715 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5717 whole_archive_flag_spec=
5723 # PORTME fill in a description of your system's linker (not GNU ld)
5726 allow_undefined_flag=unsupported
5727 always_export_symbols=yes
5728 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'
5729 # Note: this linker hardcodes the directories in LIBPATH if there
5730 # are no directories specified by -L.
5731 hardcode_minus_L=yes
5732 if test "$GCC" = yes && test -z "$link_static_flag"; then
5733 # Neither direct hardcoding nor static linking is supported with a
5735 hardcode_direct=unsupported
5740 if test "$host_cpu" = ia64; then
5741 # On IA64, the linker does run time linking by default, so we don't
5742 # have to do anything special.
5743 aix_use_runtimelinking=no
5744 exp_sym_flag='-Bexport'
5747 aix_use_runtimelinking=no
5749 # Test if we are trying to use run time linking or normal
5750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5751 # need to do runtime linking.
5752 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5753 for ld_flag in $LDFLAGS; do
5756 aix_use_runtimelinking=yes
5763 exp_sym_flag='-bexport'
5764 no_entry_flag='-bnoentry'
5767 # When large executables or shared objects are built, AIX ld can
5768 # have problems creating the table of contents. If linking a library
5769 # or program results in "error TOC overflow" add -mminimal-toc to
5770 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5771 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5775 hardcode_libdir_separator=':'
5776 if test "$GCC" = yes; then
5777 case $host_os in aix4.[012]|aix4.[012].*)
5778 collect2name=`${CC} -print-prog-name=collect2`
5779 if test -f "$collect2name" && \
5780 strings "$collect2name" | grep resolve_lib_name >/dev/null
5782 # We have reworked collect2
5785 # We have old collect2
5786 hardcode_direct=unsupported
5787 # It fails to find uninstalled libraries when the uninstalled
5788 # path is not listed in the libpath. Setting hardcode_minus_L
5789 # to unsupported forces relinking
5790 hardcode_minus_L=yes
5791 hardcode_libdir_flag_spec='-L$libdir'
5792 hardcode_libdir_separator=
5796 shared_flag='-shared'
5799 if test "$host_cpu" = ia64; then
5800 shared_flag='${wl}-G'
5802 if test "$aix_use_runtimelinking" = yes; then
5803 shared_flag='${wl}-G'
5805 shared_flag='${wl}-bM:SRE'
5810 # It seems that -bexpall can do strange things, so it is better to
5811 # generate a list of symbols to export.
5812 always_export_symbols=yes
5813 if test "$aix_use_runtimelinking" = yes; then
5814 # Warning - without using the other runtime loading flags (-brtl),
5815 # -berok will link without error, but may produce a broken library.
5816 allow_undefined_flag='-berok'
5817 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5818 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"
5820 if test "$host_cpu" = ia64; then
5821 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5822 allow_undefined_flag="-z nodefs"
5823 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"
5825 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5826 # Warning - without using the other run time loading flags,
5827 # -berok will link without error, but may produce a broken library.
5828 allow_undefined_flag='${wl}-berok'
5829 # This is a bit strange, but is similar to how AIX traditionally builds
5830 # it's shared libraries.
5831 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'
5837 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)'
5838 hardcode_libdir_flag_spec='-L$libdir'
5839 hardcode_minus_L=yes
5840 # see comment about different semantics on the GNU ld section
5844 cygwin* | mingw* | pw32*)
5845 # When not using gcc, we currently assume that we are using
5846 # Microsoft Visual C++.
5847 # hardcode_libdir_flag_spec is actually meaningless, as there is
5848 # no search path for DLLs.
5849 hardcode_libdir_flag_spec=' '
5850 allow_undefined_flag=unsupported
5851 # Tell ltmain to make .lib files, not .a files.
5853 # FIXME: Setting linknames here is a bad hack.
5854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5855 # The linker will automatically build a .lib file if we build a DLL.
5856 old_archive_from_new_cmds='true'
5857 # FIXME: Should let the user specify the lib program.
5858 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5859 fix_srcfile_path='`cygpath -w "$srcfile"`'
5862 darwin* | rhapsody*)
5864 rhapsody* | darwin1.[012])
5865 allow_undefined_flag='-undefined suppress'
5868 allow_undefined_flag='-flat_namespace -undefined suppress'
5871 # FIXME: Relying on posixy $() will cause problems for
5872 # cross-compilation, but unfortunately the echo tests do not
5873 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5874 # `"' quotes if we put them in here... so don't!
5875 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)'
5876 # We need to add '_' to the symbols in $export_symbols first
5877 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5879 hardcode_shlibpath_var=no
5880 whole_archive_flag_spec='-all_load $convenience'
5887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5888 # support. Future versions do this automatically, but an explicit c++rt0.o
5889 # does not break anything, and helps significantly (at the cost of a little
5892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5893 hardcode_libdir_flag_spec='-R$libdir'
5895 hardcode_shlibpath_var=no
5898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5902 hardcode_minus_L=yes
5903 hardcode_shlibpath_var=no
5906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5908 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5909 hardcode_libdir_flag_spec='-R$libdir'
5911 hardcode_shlibpath_var=no
5914 hpux9* | hpux10* | hpux11*)
5916 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' ;;
5917 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5920 hardcode_libdir_separator=:
5922 hardcode_minus_L=yes # Not in the search PATH, but as the default
5923 # location of the library.
5924 export_dynamic_flag_spec='${wl}-E'
5927 irix5* | irix6* | nonstopux*)
5928 if test "$GCC" = yes; then
5929 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'
5930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5932 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'
5933 hardcode_libdir_flag_spec='-rpath $libdir'
5935 hardcode_libdir_separator=:
5936 link_all_deplibs=yes
5940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5945 hardcode_libdir_flag_spec='-R$libdir'
5947 hardcode_shlibpath_var=no
5951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5954 hardcode_libdir_separator=:
5955 hardcode_shlibpath_var=no
5960 hardcode_shlibpath_var=no
5961 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5962 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5963 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5964 export_dynamic_flag_spec='${wl}-E'
5967 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5969 hardcode_libdir_flag_spec='-R$libdir'
5972 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5973 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5980 hardcode_libdir_flag_spec='-L$libdir'
5981 hardcode_minus_L=yes
5982 allow_undefined_flag=unsupported
5983 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'
5984 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5988 if test "$GCC" = yes; then
5989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5990 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'
5992 allow_undefined_flag=' -expect_unresolved \*'
5993 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'
5995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5996 hardcode_libdir_separator=:
5999 osf4* | osf5*) # as osf3* with the addition of -msym flag
6000 if test "$GCC" = yes; then
6001 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6002 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'
6003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6005 allow_undefined_flag=' -expect_unresolved \*'
6006 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'
6007 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6008 $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'
6010 #Both c and cxx compiler support -rpath directly
6011 hardcode_libdir_flag_spec='-rpath $libdir'
6013 hardcode_libdir_separator=:
6017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6018 hardcode_shlibpath_var=no
6019 runpath_var=LD_RUN_PATH
6020 hardcode_runpath_var=yes
6021 export_dynamic_flag_spec='${wl}-Bexport'
6025 # gcc --version < 3.0 without binutils cannot create self contained
6026 # shared libraries reliably, requiring libgcc.a to resolve some of
6027 # the object symbols generated in some cases. Libraries that use
6028 # assert need libgcc.a to resolve __eprintf, for example. Linking
6029 # a copy of libgcc.a into every shared library to guarantee resolving
6030 # such symbols causes other problems: According to Tim Van Holder
6031 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6032 # (to the application) exception stack for one thing.
6033 no_undefined_flag=' -z defs'
6034 if test "$GCC" = yes; then
6035 case `$CC --version 2>/dev/null` in
6039 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6040 *** create self contained shared libraries on Solaris systems, without
6041 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6042 *** -no-undefined support, which will at least allow you to build shared
6043 *** libraries. However, you may find that when you link such libraries
6044 *** into an application without using GCC, you have to manually add
6045 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6046 *** upgrade to a newer version of GCC. Another option is to rebuild your
6047 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6054 # $CC -shared without GNU ld will not create a library from C++
6055 # object files and a static libstdc++, better avoid it by now
6056 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6057 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6058 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6059 hardcode_libdir_flag_spec='-R$libdir'
6060 hardcode_shlibpath_var=no
6062 solaris2.[0-5] | solaris2.[0-5].*) ;;
6063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6064 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6066 link_all_deplibs=yes
6070 if test "x$host_vendor" = xsequent; then
6071 # Use $CC to link under sequent, because it throws in some extra .o
6072 # files that make .init and .fini sections work.
6073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6077 hardcode_libdir_flag_spec='-L$libdir'
6079 hardcode_minus_L=yes
6080 hardcode_shlibpath_var=no
6084 case $host_vendor in
6086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6087 hardcode_direct=yes # is this really true???
6090 ## LD is ld it makes a PLAMLIB
6091 ## CC just makes a GrossModule.
6092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6093 reload_cmds='$CC -r -o $output$reload_objs'
6097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6101 runpath_var='LD_RUN_PATH'
6102 hardcode_shlibpath_var=no
6106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6107 hardcode_shlibpath_var=no
6108 export_dynamic_flag_spec='-Bexport'
6112 no_undefined_flag=' -z text'
6113 # $CC -shared without GNU ld will not create a library from C++
6114 # object files and a static libstdc++, better avoid it by now
6115 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6116 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6118 hardcode_libdir_flag_spec=
6119 hardcode_shlibpath_var=no
6120 runpath_var='LD_RUN_PATH'
6124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6125 hardcode_libdir_flag_spec='-L$libdir'
6126 hardcode_shlibpath_var=no
6130 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6131 hardcode_libdir_flag_spec='-L$libdir'
6132 hardcode_shlibpath_var=no
6136 if test -d /usr/nec; then
6137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6138 hardcode_shlibpath_var=no
6139 runpath_var=LD_RUN_PATH
6140 hardcode_runpath_var=yes
6146 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6149 hardcode_shlibpath_var=no
6150 hardcode_runpath_var=yes
6151 runpath_var=LD_RUN_PATH
6154 sysv5uw7* | unixware7*)
6155 no_undefined_flag='${wl}-z ${wl}text'
6156 if test "$GCC" = yes; then
6157 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6159 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6161 runpath_var='LD_RUN_PATH'
6162 hardcode_shlibpath_var=no
6170 echo "$ac_t""$ld_shlibs" 1>&6
6171 test "$ld_shlibs" = no && can_build_shared=no
6173 # Check hardcoding attributes.
6174 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6175 echo "configure:6176: checking how to hardcode library paths into programs" >&5
6177 if test -n "$hardcode_libdir_flag_spec" || \
6178 test -n "$runpath_var"; then
6180 # We can hardcode non-existant directories.
6181 if test "$hardcode_direct" != no &&
6182 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6183 # have to relink, otherwise we might link with an installed library
6184 # when we should be linking with a yet-to-be-installed one
6185 ## test "$hardcode_shlibpath_var" != no &&
6186 test "$hardcode_minus_L" != no; then
6187 # Linking always hardcodes the temporary library directory.
6188 hardcode_action=relink
6190 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6191 hardcode_action=immediate
6194 # We cannot hardcode anything, or else we can only hardcode existing
6196 hardcode_action=unsupported
6198 echo "$ac_t""$hardcode_action" 1>&6
6202 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6203 echo "configure:6204: checking whether stripping libraries is possible" >&5
6204 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6205 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6206 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6207 echo "$ac_t""yes" 1>&6
6209 echo "$ac_t""no" 1>&6
6212 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6215 # PORTME Fill in your ld.so characteristics
6216 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6217 echo "configure:6218: checking dynamic linker characteristics" >&5
6219 libname_spec='lib$name'
6226 shlibpath_overrides_runpath=unknown
6228 dynamic_linker="$host_os ld.so"
6229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6230 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6235 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6236 shlibpath_var=LIBPATH
6238 # AIX has no versioning support, so we append a major version to the name.
6239 soname_spec='${libname}${release}.so$major'
6246 hardcode_into_libs=yes
6247 if test "$host_cpu" = ia64; then
6248 # AIX 5 supports IA64
6249 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6250 shlibpath_var=LD_LIBRARY_PATH
6252 # With GCC up to 2.95.x, collect2 would create an import file
6253 # for dependence libraries. The import file would start with
6254 # the line `#! .'. This would cause the generated library to
6255 # depend on `.', always an invalid library. This was fixed in
6256 # development snapshots of GCC prior to 3.0.
6258 aix4 | aix4.[01] | aix4.[01].*)
6259 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6261 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6268 # AIX (on Power*) has no versioning support, so currently we can
6269 # not hardcode correct soname into executable. Probably we can
6270 # add versioning support to collect2, so additional links can
6271 # be useful in future.
6272 if test "$aix_use_runtimelinking" = yes; then
6273 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6274 # instead of lib<name>.a to let people know that these are not
6275 # typical AIX shared libraries.
6276 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6278 # We preserve .a as extension for shared libraries through AIX4.2
6279 # and later when we are not doing run time linking.
6280 library_names_spec='${libname}${release}.a $libname.a'
6281 soname_spec='${libname}${release}.so$major'
6283 shlibpath_var=LIBPATH
6285 hardcode_into_libs=yes
6289 library_names_spec='$libname.ixlibrary $libname.a'
6290 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6291 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'
6295 library_names_spec='${libname}.so'
6296 dynamic_linker="$host_os ld.so"
6297 shlibpath_var=LIBRARY_PATH
6303 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6304 soname_spec='${libname}${release}.so$major'
6305 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6306 shlibpath_var=LD_LIBRARY_PATH
6307 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6308 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6309 export_dynamic_flag_spec=-rdynamic
6310 # the default ld.so.conf also contains /usr/contrib/lib and
6311 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6312 # libtool to hard-code these into programs
6315 cygwin* | mingw* | pw32*)
6316 version_type=windows
6319 case $GCC,$host_os in
6321 library_names_spec='$libname.dll.a'
6322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6323 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6324 dldir=$destdir/`dirname \$dlpath`~
6325 test -d \$dldir || mkdir -p \$dldir~
6326 $install_prog .libs/$dlname \$dldir/$dlname'
6327 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6328 dlpath=$dir/\$dldll~
6332 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6333 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6336 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6339 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6342 dynamic_linker='Win32 ld.exe'
6343 # FIXME: first we should search . and the directory the executable is in
6347 darwin* | rhapsody*)
6348 dynamic_linker="$host_os dyld"
6352 # FIXME: Relying on posixy $() will cause problems for
6353 # cross-compilation, but unfortunately the echo tests do not
6354 # yet detect zsh echo's removal of \ escapes.
6355 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)'
6356 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6357 shlibpath_overrides_runpath=yes
6358 shlibpath_var=DYLD_LIBRARY_PATH
6366 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6367 version_type=freebsd-$objformat
6368 case $version_type in
6370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6375 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6379 shlibpath_var=LD_LIBRARY_PATH
6382 shlibpath_overrides_runpath=yes
6385 shlibpath_overrides_runpath=no
6386 hardcode_into_libs=yes
6395 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6396 soname_spec='${libname}${release}.so$major'
6397 shlibpath_var=LD_LIBRARY_PATH
6398 hardcode_into_libs=yes
6401 hpux9* | hpux10* | hpux11*)
6402 # Give a soname corresponding to the major version so that dld.sl refuses to
6403 # link against other versions.
6404 dynamic_linker="$host_os dld.sl"
6408 shlibpath_var=SHLIB_PATH
6409 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6410 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6411 soname_spec='${libname}${release}.sl$major'
6412 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6413 postinstall_cmds='chmod 555 $lib'
6416 irix5* | irix6* | nonstopux*)
6418 nonstopux*) version_type=nonstopux ;;
6419 *) version_type=irix ;;
6423 soname_spec='${libname}${release}.so$major'
6424 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6426 irix5* | nonstopux*)
6430 case $LD in # libtool.m4 will add one of these switches to LD
6431 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6432 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6433 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6434 *) libsuff= shlibsuff= libmagic=never-match;;
6438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6439 shlibpath_overrides_runpath=no
6440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6444 # No shared lib support for Linux oldld, aout, or coff.
6445 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6449 # This must be Linux ELF.
6454 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6455 soname_spec='${libname}${release}.so$major'
6456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6457 shlibpath_var=LD_LIBRARY_PATH
6458 shlibpath_overrides_runpath=no
6459 # This implies no fast_install, which is unacceptable.
6460 # Some rework will be needed to allow for fast_install
6461 # before this can be enabled.
6462 hardcode_into_libs=yes
6464 # We used to test for /lib/ld.so.1 and disable shared libraries on
6465 # powerpc, because MkLinux only supported shared libraries with the
6466 # GNU dynamic linker. Since this was broken with cross compilers,
6467 # most powerpc-linux boxes support dynamic linking these days and
6468 # people can always --disable-shared, the test was removed, and we
6469 # assume the GNU/Linux dynamic linker is in use.
6470 dynamic_linker='GNU/Linux ld.so'
6477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6478 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6479 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6480 dynamic_linker='NetBSD (a.out) ld.so'
6482 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6483 soname_spec='${libname}${release}.so$major'
6484 dynamic_linker='NetBSD ld.elf_so'
6486 shlibpath_var=LD_LIBRARY_PATH
6487 shlibpath_overrides_runpath=yes
6488 hardcode_into_libs=yes
6493 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6494 shlibpath_var=LD_LIBRARY_PATH
6495 shlibpath_overrides_runpath=yes
6502 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6504 openbsd2.[89] | openbsd2.[89].*)
6505 shlibpath_overrides_runpath=no
6508 shlibpath_overrides_runpath=yes
6512 shlibpath_overrides_runpath=yes
6514 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6516 shlibpath_var=LD_LIBRARY_PATH
6520 libname_spec='$name'
6522 library_names_spec='$libname.dll $libname.a'
6523 dynamic_linker='OS/2 ld.exe'
6524 shlibpath_var=LIBPATH
6527 osf3* | osf4* | osf5*)
6530 soname_spec='${libname}${release}.so$major'
6531 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6532 shlibpath_var=LD_LIBRARY_PATH
6533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6535 hardcode_into_libs=yes
6540 soname_spec='${libname}${release}.so$major'
6541 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6542 shlibpath_var=LD_LIBRARY_PATH
6549 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6550 soname_spec='${libname}${release}.so$major'
6551 shlibpath_var=LD_LIBRARY_PATH
6552 shlibpath_overrides_runpath=yes
6553 hardcode_into_libs=yes
6554 # ldd complains unless libraries are executable
6555 postinstall_cmds='chmod +x $lib'
6560 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6561 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6562 shlibpath_var=LD_LIBRARY_PATH
6563 shlibpath_overrides_runpath=yes
6564 if test "$with_gnu_ld" = yes; then
6570 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6572 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6573 soname_spec='${libname}${release}.so$major'
6574 shlibpath_var=LD_LIBRARY_PATH
6575 case $host_vendor in
6577 shlibpath_overrides_runpath=no
6579 export_dynamic_flag_spec='${wl}-Blargedynsym'
6580 runpath_var=LD_RUN_PATH
6588 shlibpath_overrides_runpath=no
6589 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
6605 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6606 soname_spec='${libname}${release}.so$major'
6607 shlibpath_var=LD_LIBRARY_PATH
6611 if test -d /usr/nec ;then
6613 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6614 soname_spec='$libname.so.$major'
6615 shlibpath_var=LD_LIBRARY_PATH
6623 echo "$ac_t""$dynamic_linker" 1>&6
6624 test "$dynamic_linker" = no && can_build_shared=no
6626 # Report the final consequences.
6627 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6628 echo "configure:6629: checking if libtool supports shared libraries" >&5
6629 echo "$ac_t""$can_build_shared" 1>&6
6631 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6632 echo "configure:6633: checking whether to build shared libraries" >&5
6633 test "$can_build_shared" = "no" && enable_shared=no
6635 # On AIX, shared libraries and static libraries use the same namespace, and
6636 # are all built from PIC.
6639 test "$enable_shared" = yes && enable_static=no
6640 if test -n "$RANLIB"; then
6641 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6642 postinstall_cmds='$RANLIB $lib'
6647 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6648 test "$enable_shared" = yes && enable_static=no
6652 echo "$ac_t""$enable_shared" 1>&6
6654 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6655 echo "configure:6656: checking whether to build static libraries" >&5
6656 # Make sure either enable_shared or enable_static is yes.
6657 test "$enable_shared" = yes || enable_static=yes
6658 echo "$ac_t""$enable_static" 1>&6
6660 if test "$hardcode_action" = relink; then
6661 # Fast installation is not supported
6662 enable_fast_install=no
6663 elif test "$shlibpath_overrides_runpath" = yes ||
6664 test "$enable_shared" = no; then
6665 # Fast installation is not necessary
6666 enable_fast_install=needless
6669 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6670 if test "$GCC" = yes; then
6671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6674 if test "x$enable_dlopen" != xyes; then
6675 enable_dlopen=unknown
6676 enable_dlopen_self=unknown
6677 enable_dlopen_self_static=unknown
6684 lt_cv_dlopen="load_add_on"
6686 lt_cv_dlopen_self=yes
6689 cygwin* | mingw* | pw32*)
6690 lt_cv_dlopen="LoadLibrary"
6695 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6696 echo "configure:6697: checking for shl_load" >&5
6697 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6698 echo $ac_n "(cached) $ac_c" 1>&6
6700 cat > conftest.$ac_ext <<EOF
6701 #line 6702 "configure"
6702 #include "confdefs.h"
6703 /* System header to define __stub macros and hopefully few prototypes,
6704 which can conflict with char shl_load(); below. */
6706 /* Override any gcc2 internal prototype to avoid an error. */
6707 /* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
6714 /* The GNU C library defines this for functions which it implements
6715 to always fail with ENOSYS. Some functions are actually named
6716 something starting with __ and the normal name is an alias. */
6717 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6725 if { (eval echo configure:6726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6727 eval "ac_cv_func_shl_load=yes"
6729 echo "configure: failed program was:" >&5
6730 cat conftest.$ac_ext >&5
6732 eval "ac_cv_func_shl_load=no"
6737 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6738 echo "$ac_t""yes" 1>&6
6739 lt_cv_dlopen="shl_load"
6741 echo "$ac_t""no" 1>&6
6742 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6743 echo "configure:6744: checking for shl_load in -ldld" >&5
6744 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6745 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6746 echo $ac_n "(cached) $ac_c" 1>&6
6748 ac_save_LIBS="$LIBS"
6750 cat > conftest.$ac_ext <<EOF
6751 #line 6752 "configure"
6752 #include "confdefs.h"
6753 /* Override any gcc2 internal prototype to avoid an error. */
6754 /* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
6762 if { (eval echo configure:6763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6764 eval "ac_cv_lib_$ac_lib_var=yes"
6766 echo "configure: failed program was:" >&5
6767 cat conftest.$ac_ext >&5
6769 eval "ac_cv_lib_$ac_lib_var=no"
6772 LIBS="$ac_save_LIBS"
6775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6776 echo "$ac_t""yes" 1>&6
6777 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6779 echo "$ac_t""no" 1>&6
6780 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6781 echo "configure:6782: checking for dlopen" >&5
6782 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6783 echo $ac_n "(cached) $ac_c" 1>&6
6785 cat > conftest.$ac_ext <<EOF
6786 #line 6787 "configure"
6787 #include "confdefs.h"
6788 /* System header to define __stub macros and hopefully few prototypes,
6789 which can conflict with char dlopen(); below. */
6791 /* Override any gcc2 internal prototype to avoid an error. */
6792 /* We use char because int might match the return type of a gcc2
6793 builtin and then its argument prototype would still apply. */
6799 /* The GNU C library defines this for functions which it implements
6800 to always fail with ENOSYS. Some functions are actually named
6801 something starting with __ and the normal name is an alias. */
6802 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6810 if { (eval echo configure:6811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6812 eval "ac_cv_func_dlopen=yes"
6814 echo "configure: failed program was:" >&5
6815 cat conftest.$ac_ext >&5
6817 eval "ac_cv_func_dlopen=no"
6822 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6823 echo "$ac_t""yes" 1>&6
6824 lt_cv_dlopen="dlopen"
6826 echo "$ac_t""no" 1>&6
6827 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6828 echo "configure:6829: checking for dlopen in -ldl" >&5
6829 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6831 echo $ac_n "(cached) $ac_c" 1>&6
6833 ac_save_LIBS="$LIBS"
6835 cat > conftest.$ac_ext <<EOF
6836 #line 6837 "configure"
6837 #include "confdefs.h"
6838 /* Override any gcc2 internal prototype to avoid an error. */
6839 /* We use char because int might match the return type of a gcc2
6840 builtin and then its argument prototype would still apply. */
6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6849 eval "ac_cv_lib_$ac_lib_var=yes"
6851 echo "configure: failed program was:" >&5
6852 cat conftest.$ac_ext >&5
6854 eval "ac_cv_lib_$ac_lib_var=no"
6857 LIBS="$ac_save_LIBS"
6860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6861 echo "$ac_t""yes" 1>&6
6862 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6864 echo "$ac_t""no" 1>&6
6865 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6866 echo "configure:6867: checking for dlopen in -lsvld" >&5
6867 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6869 echo $ac_n "(cached) $ac_c" 1>&6
6871 ac_save_LIBS="$LIBS"
6873 cat > conftest.$ac_ext <<EOF
6874 #line 6875 "configure"
6875 #include "confdefs.h"
6876 /* Override any gcc2 internal prototype to avoid an error. */
6877 /* We use char because int might match the return type of a gcc2
6878 builtin and then its argument prototype would still apply. */
6885 if { (eval echo configure:6886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6887 eval "ac_cv_lib_$ac_lib_var=yes"
6889 echo "configure: failed program was:" >&5
6890 cat conftest.$ac_ext >&5
6892 eval "ac_cv_lib_$ac_lib_var=no"
6895 LIBS="$ac_save_LIBS"
6898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6899 echo "$ac_t""yes" 1>&6
6900 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6902 echo "$ac_t""no" 1>&6
6903 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6904 echo "configure:6905: checking for dld_link in -ldld" >&5
6905 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6906 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 ac_save_LIBS="$LIBS"
6911 cat > conftest.$ac_ext <<EOF
6912 #line 6913 "configure"
6913 #include "confdefs.h"
6914 /* Override any gcc2 internal prototype to avoid an error. */
6915 /* We use char because int might match the return type of a gcc2
6916 builtin and then its argument prototype would still apply. */
6923 if { (eval echo configure:6924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6925 eval "ac_cv_lib_$ac_lib_var=yes"
6927 echo "configure: failed program was:" >&5
6928 cat conftest.$ac_ext >&5
6930 eval "ac_cv_lib_$ac_lib_var=no"
6933 LIBS="$ac_save_LIBS"
6936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6938 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6940 echo "$ac_t""no" 1>&6
6961 if test "x$lt_cv_dlopen" != xno; then
6967 case $lt_cv_dlopen in
6969 save_CPPFLAGS="$CPPFLAGS"
6970 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6972 save_LDFLAGS="$LDFLAGS"
6973 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6976 LIBS="$lt_cv_dlopen_libs $LIBS"
6978 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6979 echo "configure:6980: checking whether a program can dlopen itself" >&5
6980 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6981 echo $ac_n "(cached) $ac_c" 1>&6
6983 if test "$cross_compiling" = yes; then :
6984 lt_cv_dlopen_self=cross
6986 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6987 lt_status=$lt_dlunknown
6988 cat > conftest.$ac_ext <<EOF
6989 #line 6990 "configure"
6990 #include "confdefs.h"
6999 # define LT_DLGLOBAL RTLD_GLOBAL
7002 # define LT_DLGLOBAL DL_GLOBAL
7004 # define LT_DLGLOBAL 0
7008 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7009 find out it does not work in some platform. */
7010 #ifndef LT_DLLAZY_OR_NOW
7012 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7015 # define LT_DLLAZY_OR_NOW DL_LAZY
7018 # define LT_DLLAZY_OR_NOW RTLD_NOW
7021 # define LT_DLLAZY_OR_NOW DL_NOW
7023 # define LT_DLLAZY_OR_NOW 0
7031 extern "C" void exit (int);
7034 void fnord() { int i=42;}
7037 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7038 int status = $lt_dlunknown;
7042 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7043 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7044 /* dlclose (self); */
7050 if { (eval echo configure:7051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7051 (./conftest; exit; ) 2>/dev/null
7054 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7055 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7056 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7059 # compilation failed
7060 lt_cv_dlopen_self=no
7068 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7070 if test "x$lt_cv_dlopen_self" = xyes; then
7071 LDFLAGS="$LDFLAGS $link_static_flag"
7072 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7073 echo "configure:7074: checking whether a statically linked program can dlopen itself" >&5
7074 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7075 echo $ac_n "(cached) $ac_c" 1>&6
7077 if test "$cross_compiling" = yes; then :
7078 lt_cv_dlopen_self_static=cross
7080 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7081 lt_status=$lt_dlunknown
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7093 # define LT_DLGLOBAL RTLD_GLOBAL
7096 # define LT_DLGLOBAL DL_GLOBAL
7098 # define LT_DLGLOBAL 0
7102 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7103 find out it does not work in some platform. */
7104 #ifndef LT_DLLAZY_OR_NOW
7106 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7109 # define LT_DLLAZY_OR_NOW DL_LAZY
7112 # define LT_DLLAZY_OR_NOW RTLD_NOW
7115 # define LT_DLLAZY_OR_NOW DL_NOW
7117 # define LT_DLLAZY_OR_NOW 0
7125 extern "C" void exit (int);
7128 void fnord() { int i=42;}
7131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7132 int status = $lt_dlunknown;
7136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7138 /* dlclose (self); */
7144 if { (eval echo configure:7145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7145 (./conftest; exit; ) 2>/dev/null
7148 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7149 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7150 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7153 # compilation failed
7154 lt_cv_dlopen_self_static=no
7162 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7165 CPPFLAGS="$save_CPPFLAGS"
7166 LDFLAGS="$save_LDFLAGS"
7171 case $lt_cv_dlopen_self in
7172 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7173 *) enable_dlopen_self=unknown ;;
7176 case $lt_cv_dlopen_self_static in
7177 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7178 *) enable_dlopen_self_static=unknown ;;
7183 if test "$enable_shared" = yes && test "$GCC" = yes; then
7184 case $archive_cmds in
7186 # FIXME: we may have to deal with multi-command sequences.
7189 # Test whether the compiler implicitly links with -lc since on some
7190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7191 # to ld, don't add -lc before -lgcc.
7192 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7193 echo "configure:7194: checking whether -lc should be explicitly linked in" >&5
7194 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7195 echo $ac_n "(cached) $ac_c" 1>&6
7198 echo 'static int dummy;' > conftest.$ac_ext
7200 if { (eval echo configure:7201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7203 libobjs=conftest.$ac_objext
7205 wl=$lt_cv_prog_cc_wl
7211 save_allow_undefined_flag=$allow_undefined_flag
7212 allow_undefined_flag=
7213 if { (eval echo configure:7214: \"$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; }
7215 lt_cv_archive_cmds_need_lc=no
7217 lt_cv_archive_cmds_need_lc=yes
7219 allow_undefined_flag=$save_allow_undefined_flag
7221 cat conftest.err 1>&5
7225 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7229 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7231 # The second clause should only fire when bootstrapping the
7232 # libtool distribution, otherwise you forgot to ship ltmain.sh
7233 # with your package, and you will get complaints that there are
7234 # no rules to generate ltmain.sh.
7235 if test -f "$ltmain"; then
7238 # If there is no Makefile yet, we rely on a make rule to execute
7239 # `config.status --recheck' to rerun these tests and create the
7240 # libtool script then.
7241 test -f Makefile && make "$ltmain"
7244 if test -f "$ltmain"; then
7245 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7248 echo creating $ofile
7250 # Now quote all the things that may contain metacharacters while being
7251 # careful not to overquote the AC_SUBSTed values. We take copies of the
7252 # variables and quote the copies for generation of the libtool script.
7253 for var in echo old_CC old_CFLAGS SED \
7254 AR AR_FLAGS CC LD LN_S NM SHELL \
7255 reload_flag reload_cmds wl \
7256 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7257 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7258 library_names_spec soname_spec \
7259 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7260 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7261 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7262 old_striplib striplib file_magic_cmd export_symbols_cmds \
7263 deplibs_check_method allow_undefined_flag no_undefined_flag \
7264 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7265 global_symbol_to_c_name_address \
7266 hardcode_libdir_flag_spec hardcode_libdir_separator \
7267 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7268 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7271 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7272 old_postinstall_cmds | old_postuninstall_cmds | \
7273 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7274 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7275 postinstall_cmds | postuninstall_cmds | \
7276 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7277 # Double-quote double-evaled strings.
7278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7286 cat <<__EOF__ > "${ofile}T"
7289 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7290 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7291 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7293 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7294 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7296 # This program is free software; you can redistribute it and/or modify
7297 # it under the terms of the GNU General Public License as published by
7298 # the Free Software Foundation; either version 2 of the License, or
7299 # (at your option) any later version.
7301 # This program is distributed in the hope that it will be useful, but
7302 # WITHOUT ANY WARRANTY; without even the implied warranty of
7303 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7304 # General Public License for more details.
7306 # You should have received a copy of the GNU General Public License
7307 # along with this program; if not, write to the Free Software
7308 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7310 # As a special exception to the GNU General Public License, if you
7311 # distribute this file as part of a program that contains a
7312 # configuration script generated by Autoconf, you may include it under
7313 # the same distribution terms that you use for the rest of that program.
7315 # A sed that does not truncate output.
7318 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7319 Xsed="${SED} -e s/^X//"
7321 # The HP-UX ksh and POSIX shell print the target directory to stdout
7323 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7325 # ### BEGIN LIBTOOL CONFIG
7327 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7329 # Shell to use when invoking shell scripts.
7332 # Whether or not to build shared libraries.
7333 build_libtool_libs=$enable_shared
7335 # Whether or not to build static libraries.
7336 build_old_libs=$enable_static
7338 # Whether or not to add -lc for building shared libraries.
7339 build_libtool_need_lc=$need_lc
7341 # Whether or not to optimize for fast installation.
7342 fast_install=$enable_fast_install
7345 host_alias=$host_alias
7348 # An echo program that does not interpret backslashes.
7353 AR_FLAGS=$lt_AR_FLAGS
7355 # The default C compiler.
7358 # Is the compiler the GNU C compiler?
7361 # The linker used to build libraries.
7364 # Whether we need hard or soft links.
7367 # A BSD-compatible nm program.
7370 # A symbol stripping program
7373 # Used to examine libraries when file_magic_cmd begins "file"
7374 MAGIC_CMD=$MAGIC_CMD
7376 # Used on cygwin: DLL creation program.
7379 # Used on cygwin: object dumper.
7382 # Used on cygwin: assembler.
7385 # The name of the directory that contains temporary libtool files.
7388 # How to create reloadable object files.
7389 reload_flag=$lt_reload_flag
7390 reload_cmds=$lt_reload_cmds
7392 # How to pass a linker flag through the compiler.
7395 # Object file suffix (normally "o").
7398 # Old archive suffix (normally "a").
7401 # Executable file suffix (normally "").
7404 # Additional compiler flags for building library objects.
7405 pic_flag=$lt_pic_flag
7408 # Does compiler simultaneously support -c and -o options?
7409 compiler_c_o=$lt_compiler_c_o
7411 # Can we write directly to a .lo ?
7412 compiler_o_lo=$lt_compiler_o_lo
7414 # Must we lock files when doing compilation ?
7415 need_locks=$lt_need_locks
7417 # Do we need the lib prefix for modules?
7418 need_lib_prefix=$need_lib_prefix
7420 # Do we need a version for libraries?
7421 need_version=$need_version
7423 # Whether dlopen is supported.
7424 dlopen_support=$enable_dlopen
7426 # Whether dlopen of programs is supported.
7427 dlopen_self=$enable_dlopen_self
7429 # Whether dlopen of statically linked programs is supported.
7430 dlopen_self_static=$enable_dlopen_self_static
7432 # Compiler flag to prevent dynamic linking.
7433 link_static_flag=$lt_link_static_flag
7435 # Compiler flag to turn off builtin functions.
7436 no_builtin_flag=$lt_no_builtin_flag
7438 # Compiler flag to allow reflexive dlopens.
7439 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7441 # Compiler flag to generate shared objects directly from archives.
7442 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7444 # Compiler flag to generate thread-safe objects.
7445 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7447 # Library versioning type.
7448 version_type=$version_type
7450 # Format of library name prefix.
7451 libname_spec=$lt_libname_spec
7453 # List of archive names. First name is the real one, the rest are links.
7454 # The last name is the one that the linker finds with -lNAME.
7455 library_names_spec=$lt_library_names_spec
7457 # The coded name of the library, if different from the real name.
7458 soname_spec=$lt_soname_spec
7460 # Commands used to build and install an old-style archive.
7462 old_archive_cmds=$lt_old_archive_cmds
7463 old_postinstall_cmds=$lt_old_postinstall_cmds
7464 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7466 # Create an old-style archive from a shared archive.
7467 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7469 # Create a temporary old-style archive to link instead of a shared archive.
7470 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7472 # Commands used to build and install a shared archive.
7473 archive_cmds=$lt_archive_cmds
7474 archive_expsym_cmds=$lt_archive_expsym_cmds
7475 postinstall_cmds=$lt_postinstall_cmds
7476 postuninstall_cmds=$lt_postuninstall_cmds
7478 # Commands to strip libraries.
7479 old_striplib=$lt_old_striplib
7480 striplib=$lt_striplib
7482 # Method to check whether dependent libraries are shared objects.
7483 deplibs_check_method=$lt_deplibs_check_method
7485 # Command to use when deplibs_check_method == file_magic.
7486 file_magic_cmd=$lt_file_magic_cmd
7488 # Flag that allows shared libraries with undefined symbols to be built.
7489 allow_undefined_flag=$lt_allow_undefined_flag
7491 # Flag that forces no undefined symbols.
7492 no_undefined_flag=$lt_no_undefined_flag
7494 # Commands used to finish a libtool library installation in a directory.
7495 finish_cmds=$lt_finish_cmds
7497 # Same as above, but a single script fragment to be evaled but not shown.
7498 finish_eval=$lt_finish_eval
7500 # Take the output of nm and produce a listing of raw symbols and C names.
7501 global_symbol_pipe=$lt_global_symbol_pipe
7503 # Transform the output of nm in a proper C declaration
7504 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7506 # Transform the output of nm in a C name address pair
7507 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7509 # This is the shared library runtime path variable.
7510 runpath_var=$runpath_var
7512 # This is the shared library path variable.
7513 shlibpath_var=$shlibpath_var
7515 # Is shlibpath searched before the hard-coded library search path?
7516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7518 # How to hardcode a shared library path into an executable.
7519 hardcode_action=$hardcode_action
7521 # Whether we should hardcode library paths into libraries.
7522 hardcode_into_libs=$hardcode_into_libs
7524 # Flag to hardcode \$libdir into a binary during linking.
7525 # This must work even if \$libdir does not exist.
7526 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7528 # Whether we need a single -rpath flag with a separated argument.
7529 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7531 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7533 hardcode_direct=$hardcode_direct
7535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7537 hardcode_minus_L=$hardcode_minus_L
7539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7540 # the resulting binary.
7541 hardcode_shlibpath_var=$hardcode_shlibpath_var
7543 # Variables whose values should be saved in libtool wrapper scripts and
7544 # restored at relink time.
7545 variables_saved_for_relink="$variables_saved_for_relink"
7547 # Whether libtool must link a program against all its dependency libraries.
7548 link_all_deplibs=$link_all_deplibs
7550 # Compile-time system search path for libraries
7551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7553 # Run-time system search path for libraries
7554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7556 # Fix the shell variable \$srcfile for the compiler.
7557 fix_srcfile_path="$fix_srcfile_path"
7559 # Set to yes if exported symbols are required.
7560 always_export_symbols=$always_export_symbols
7562 # The commands to list exported symbols.
7563 export_symbols_cmds=$lt_export_symbols_cmds
7565 # The commands to extract the exported symbol list from a shared archive.
7566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7568 # Symbols that should not be listed in the preloaded symbols.
7569 exclude_expsyms=$lt_exclude_expsyms
7571 # Symbols that must always be exported.
7572 include_expsyms=$lt_include_expsyms
7574 # ### END LIBTOOL CONFIG
7580 cat <<\EOF >> "${ofile}T"
7582 # AIX sometimes has problems with the GCC collect2 program. For some
7583 # reason, if we set the COLLECT_NAMES environment variable, the problems
7584 # vanish in a puff of smoke.
7585 if test "X${COLLECT_NAMES+set}" != Xset; then
7587 export COLLECT_NAMES
7594 cygwin* | mingw* | pw32* | os2*)
7595 cat <<'EOF' >> "${ofile}T"
7596 # This is a source program that is used to create dlls on Windows
7597 # Don't remove nor modify the starting and closing comments
7598 # /* ltdll.c starts here */
7599 # #define WIN32_LEAN_AND_MEAN
7600 # #include <windows.h>
7601 # #undef WIN32_LEAN_AND_MEAN
7602 # #include <stdio.h>
7604 # #ifndef __CYGWIN__
7605 # # ifdef __CYGWIN32__
7606 # # define __CYGWIN__ __CYGWIN32__
7610 # #ifdef __cplusplus
7613 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7614 # #ifdef __cplusplus
7619 # #include <cygwin/cygwin_dll.h>
7620 # DECLARE_CYGWIN_DLL( DllMain );
7622 # HINSTANCE __hDllInstance_base;
7625 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7627 # __hDllInstance_base = hInst;
7630 # /* ltdll.c ends here */
7631 # This is a source program that is used to create import libraries
7632 # on Windows for dlls which lack them. Don't remove nor modify the
7633 # starting and closing comments
7634 # /* impgen.c starts here */
7635 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7637 # This file is part of GNU libtool.
7639 # This program is free software; you can redistribute it and/or modify
7640 # it under the terms of the GNU General Public License as published by
7641 # the Free Software Foundation; either version 2 of the License, or
7642 # (at your option) any later version.
7644 # This program is distributed in the hope that it will be useful,
7645 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7646 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7647 # GNU General Public License for more details.
7649 # You should have received a copy of the GNU General Public License
7650 # along with this program; if not, write to the Free Software
7651 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7654 # #include <stdio.h> /* for printf() */
7655 # #include <unistd.h> /* for open(), lseek(), read() */
7656 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7657 # #include <string.h> /* for strdup() */
7659 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7661 # #define O_BINARY 0
7664 # static unsigned int
7665 # pe_get16 (fd, offset)
7669 # unsigned char b[2];
7670 # lseek (fd, offset, SEEK_SET);
7672 # return b[0] + (b[1]<<8);
7675 # static unsigned int
7676 # pe_get32 (fd, offset)
7680 # unsigned char b[4];
7681 # lseek (fd, offset, SEEK_SET);
7683 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7686 # static unsigned int
7690 # unsigned char *b = ptr;
7691 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7700 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7701 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7702 # unsigned long name_rvas, nexp;
7703 # unsigned char *expdata, *erva;
7704 # char *filename, *dll_name;
7706 # filename = argv[1];
7708 # dll = open(filename, O_RDONLY|O_BINARY);
7712 # dll_name = filename;
7714 # for (i=0; filename[i]; i++)
7715 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7716 # dll_name = filename + i +1;
7718 # pe_header_offset = pe_get32 (dll, 0x3c);
7719 # opthdr_ofs = pe_header_offset + 4 + 20;
7720 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7722 # if (num_entries < 1) /* no exports */
7725 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7726 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7727 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7728 # secptr = (pe_header_offset + 4 + 20 +
7729 # pe_get16 (dll, pe_header_offset + 4 + 16));
7732 # for (i = 0; i < nsections; i++)
7735 # unsigned long secptr1 = secptr + 40 * i;
7736 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7737 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7738 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7739 # lseek(dll, secptr1, SEEK_SET);
7740 # read(dll, sname, 8);
7741 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7743 # expptr = fptr + (export_rva - vaddr);
7744 # if (export_rva + export_size > vaddr + vsize)
7745 # export_size = vsize - (export_rva - vaddr);
7750 # expdata = (unsigned char*)malloc(export_size);
7751 # lseek (dll, expptr, SEEK_SET);
7752 # read (dll, expdata, export_size);
7753 # erva = expdata - export_rva;
7755 # nexp = pe_as32 (expdata+24);
7756 # name_rvas = pe_as32 (expdata+32);
7758 # printf ("EXPORTS\n");
7759 # for (i = 0; i<nexp; i++)
7761 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7762 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7767 # /* impgen.c ends here */
7773 # We use sed instead of cat because bash on DJGPP gets confused if
7774 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7775 # text mode, it properly converts lines to CR/LF. This bash problem
7776 # is reportedly fixed, but why not run on old versions too?
7777 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7779 mv -f "${ofile}T" "$ofile" || \
7780 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7788 # This can be used to rebuild libtool when needed
7789 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7791 # Always use our own libtool.
7792 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7794 # Prevent multiple expansion
7798 # test for ln hardlink support
7799 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
7800 echo "configure:7801: checking whether ln works" >&5
7801 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
7802 echo $ac_n "(cached) $ac_c" 1>&6
7804 rm -f conftest.src conftest.dst
7805 echo "conftest" > conftest.src
7806 if ln conftest.src conftest.dst 2>/dev/null
7808 ol_cv_prog_LN_H="ln"
7810 ol_cv_prog_LN_H="cp"
7812 rm -f conftest.src conftest.dst
7815 LN_H="$ol_cv_prog_LN_H"
7816 if test "$ol_cv_prog_LN_H" = "ln"; then
7817 echo "$ac_t""yes" 1>&6
7819 echo "$ac_t""no" 1>&6
7822 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
7823 echo "configure:7824: checking whether ln -s works" >&5
7824 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
7825 echo $ac_n "(cached) $ac_c" 1>&6
7828 if ln -s X conftestdata 2>/dev/null
7831 ac_cv_prog_LN_S="ln -s"
7836 LN_S="$ac_cv_prog_LN_S"
7837 if test "$ac_cv_prog_LN_S" = "ln -s"; then
7838 echo "$ac_t""yes" 1>&6
7840 echo "$ac_t""no" 1>&6
7845 if test $ol_enable_perl != no ; then
7846 # Extract the first word of "perl", so it can be a program name with args.
7847 set dummy perl; ac_word=$2
7848 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7849 echo "configure:7850: checking for $ac_word" >&5
7850 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7855 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7858 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7863 for ac_dir in $ac_dummy; do
7864 test -z "$ac_dir" && ac_dir=.
7865 if test -f $ac_dir/$ac_word; then
7866 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7871 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7875 PERLBIN="$ac_cv_path_PERLBIN"
7876 if test -n "$PERLBIN"; then
7877 echo "$ac_t""$PERLBIN" 1>&6
7879 echo "$ac_t""no" 1>&6
7883 if test "no$PERLBIN" = "no" ; then
7884 if test $ol_enable_perl = yes ; then
7885 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7889 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7890 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7892 if test x"$ol_with_perl_module" = "xstatic" ; then
7893 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7895 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7901 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7902 echo "configure:7903: checking how to run the C preprocessor" >&5
7903 # On Suns, sometimes $CPP names a directory.
7904 if test -n "$CPP" && test -d "$CPP"; then
7907 if test -z "$CPP"; then
7908 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7909 echo $ac_n "(cached) $ac_c" 1>&6
7911 # This must be in double quotes, not single quotes, because CPP may get
7912 # substituted into the Makefile and "${CC-cc}" will confuse make.
7914 # On the NeXT, cc -E runs the code through the compiler's parser,
7915 # not just through cpp.
7916 cat > conftest.$ac_ext <<EOF
7917 #line 7918 "configure"
7918 #include "confdefs.h"
7922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7923 { (eval echo configure:7924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7925 if test -z "$ac_err"; then
7929 echo "configure: failed program was:" >&5
7930 cat conftest.$ac_ext >&5
7932 CPP="${CC-cc} -E -traditional-cpp"
7933 cat > conftest.$ac_ext <<EOF
7934 #line 7935 "configure"
7935 #include "confdefs.h"
7939 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7940 { (eval echo configure:7941: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7941 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7942 if test -z "$ac_err"; then
7946 echo "configure: failed program was:" >&5
7947 cat conftest.$ac_ext >&5
7949 CPP="${CC-cc} -nologo -E"
7950 cat > conftest.$ac_ext <<EOF
7951 #line 7952 "configure"
7952 #include "confdefs.h"
7956 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7957 { (eval echo configure:7958: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7958 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7959 if test -z "$ac_err"; then
7963 echo "configure: failed program was:" >&5
7964 cat conftest.$ac_ext >&5
7973 ac_cv_prog_CPP="$CPP"
7975 CPP="$ac_cv_prog_CPP"
7977 ac_cv_prog_CPP="$CPP"
7979 echo "$ac_t""$CPP" 1>&6
7982 if test $cross_compiling = yes -a $ol_enable_x_compile = yes; then
7983 echo "configure: warning: cross compiling.... some functionality will be removed." 1>&2
7985 elif test $cross_compiling = no -a $ol_enable_x_compile = yes; then
7986 echo "configure: warning: programs compiled here do run here..." 1>&2
7987 { echo "configure: error: if not cross compiling, use --disable-x-compile." 1>&2; exit 1; }
7989 elif test $cross_compiling = yes -a $ol_enable_x_compile = no; then
7990 echo "configure: warning: programs compiled here do not run here..." 1>&2
7991 { echo "configure: error: if cross compiling, add --enable-x-compile." 1>&2; exit 1; }
7995 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7996 echo "configure:7997: checking for Cygwin environment" >&5
7997 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7998 echo $ac_n "(cached) $ac_c" 1>&6
8000 cat > conftest.$ac_ext <<EOF
8001 #line 8002 "configure"
8002 #include "confdefs.h"
8007 #define __CYGWIN__ __CYGWIN32__
8012 if { (eval echo configure:8013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8024 echo "$ac_t""$ac_cv_cygwin" 1>&6
8026 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8027 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8028 echo "configure:8029: checking for mingw32 environment" >&5
8029 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8032 cat > conftest.$ac_ext <<EOF
8033 #line 8034 "configure"
8034 #include "confdefs.h"
8040 if { (eval echo configure:8041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8044 echo "configure: failed program was:" >&5
8045 cat conftest.$ac_ext >&5
8052 echo "$ac_t""$ac_cv_mingw32" 1>&6
8054 test "$ac_cv_mingw32" = yes && MINGW32=yes
8058 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8059 echo "configure:8060: checking for executable suffix" >&5
8060 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8067 echo 'int main () { return 0; }' > conftest.$ac_ext
8069 if { (eval echo configure:8070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8070 for file in conftest.*; do
8072 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8073 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8077 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8080 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8085 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8086 echo "$ac_t""${ac_cv_exeext}" 1>&6
8089 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8090 echo "configure:8091: checking for object suffix" >&5
8091 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8092 echo $ac_n "(cached) $ac_c" 1>&6
8095 echo 'int i = 1;' > conftest.$ac_ext
8096 if { (eval echo configure:8097: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8097 for ac_file in conftest.*; do
8100 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8104 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8109 echo "$ac_t""$ac_cv_objext" 1>&6
8110 OBJEXT=$ac_cv_objext
8111 ac_objext=$ac_cv_objext
8114 cat >> confdefs.h <<EOF
8115 #define EXEEXT "${EXEEXT}"
8119 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8120 echo "configure:8121: checking for be_app in -lbe" >&5
8121 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8122 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8125 ac_save_LIBS="$LIBS"
8126 LIBS="-lbe -lroot -lnet $LIBS"
8127 cat > conftest.$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8139 if { (eval echo configure:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8141 eval "ac_cv_lib_$ac_lib_var=yes"
8143 echo "configure: failed program was:" >&5
8144 cat conftest.$ac_ext >&5
8146 eval "ac_cv_lib_$ac_lib_var=no"
8149 LIBS="$ac_save_LIBS"
8152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 LIBS="$LIBS -lbe -lroot -lnet"
8156 echo "$ac_t""no" 1>&6
8164 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8165 echo "configure:8166: checking for ${CC-cc} option to accept ANSI C" >&5
8166 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8167 echo $ac_n "(cached) $ac_c" 1>&6
8169 am_cv_prog_cc_stdc=no
8171 # Don't try gcc -ansi; that turns off useful extensions and
8172 # breaks some systems' header files.
8173 # AIX -qlanglvl=ansi
8174 # Ultrix and OSF/1 -std1
8175 # HP-UX 10.20 and later -Ae
8176 # HP-UX older versions -Aa -D_HPUX_SOURCE
8177 # SVR4 -Xc -D__EXTENSIONS__
8178 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8180 CC="$ac_save_CC $ac_arg"
8181 cat > conftest.$ac_ext <<EOF
8182 #line 8183 "configure"
8183 #include "confdefs.h"
8186 #include <sys/types.h>
8187 #include <sys/stat.h>
8188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8189 struct buf { int x; };
8190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8191 static char *e (p, i)
8197 static char *f (char * (*g) (char **, int), char **p, ...)
8202 s = g (p, va_arg (v,int));
8206 int test (int i, double x);
8207 struct s1 {int (*f) (int a);};
8208 struct s2 {int (*f) (double a);};
8209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8219 if { (eval echo configure:8220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8221 am_cv_prog_cc_stdc="$ac_arg"; break
8223 echo "configure: failed program was:" >&5
8224 cat conftest.$ac_ext >&5
8232 if test -z "$am_cv_prog_cc_stdc"; then
8233 echo "$ac_t""none needed" 1>&6
8235 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8237 case "x$am_cv_prog_cc_stdc" in
8239 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8242 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8243 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8246 # test for make depend flag
8249 if test -z "${MKDEP}"; then
8251 if test -z "${MKDEP_FLAGS}"; then
8252 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8253 echo "configure:8254: checking for ${OL_MKDEP} depend flag" >&5
8254 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8255 echo $ac_n "(cached) $ac_c" 1>&6
8259 for flag in "-M" "-xM"; do
8260 cat > conftest.c <<EOF
8263 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8264 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8266 if test ! -f conftest."${ac_object}" ; then
8268 OL_MKDEP_FLAGS="$flag"
8277 echo "$ac_t""$ol_cv_mkdep" 1>&6
8280 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8285 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8290 if test "${ol_cv_mkdep}" = no ; then
8291 # this will soon become an error
8292 echo "configure: warning: do not know how to generate dependencies" 1>&2
8295 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8296 echo "configure:8297: checking for afopen in -ls" >&5
8297 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8298 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8301 ac_save_LIBS="$LIBS"
8303 cat > conftest.$ac_ext <<EOF
8304 #line 8305 "configure"
8305 #include "confdefs.h"
8306 /* Override any gcc2 internal prototype to avoid an error. */
8307 /* We use char because int might match the return type of a gcc2
8308 builtin and then its argument prototype would still apply. */
8315 if { (eval echo configure:8316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8317 eval "ac_cv_lib_$ac_lib_var=yes"
8319 echo "configure: failed program was:" >&5
8320 cat conftest.$ac_ext >&5
8322 eval "ac_cv_lib_$ac_lib_var=no"
8325 LIBS="$ac_save_LIBS"
8328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8329 echo "$ac_t""yes" 1>&6
8332 cat >> confdefs.h <<\EOF
8333 #define HAVE_AIX_SECURITY 1
8338 echo "$ac_t""no" 1>&6
8344 ac_cv_func_getopt=no
8345 cat >> confdefs.h <<\EOF
8346 #define BOTH_STRINGS_H 1
8353 if test $ol_enable_modules != no ; then
8354 for ac_hdr in ltdl.h
8356 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8357 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8358 echo "configure:8359: checking for $ac_hdr" >&5
8359 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8362 cat > conftest.$ac_ext <<EOF
8363 #line 8364 "configure"
8364 #include "confdefs.h"
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then
8372 eval "ac_cv_header_$ac_safe=yes"
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 eval "ac_cv_header_$ac_safe=no"
8382 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8383 echo "$ac_t""yes" 1>&6
8384 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8385 cat >> confdefs.h <<EOF
8386 #define $ac_tr_hdr 1
8390 echo "$ac_t""no" 1>&6
8395 if test $ac_cv_header_ltdl_h = no ; then
8396 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8399 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8400 echo "configure:8401: checking for lt_dlinit in -lltdl" >&5
8401 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8402 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8403 echo $ac_n "(cached) $ac_c" 1>&6
8405 ac_save_LIBS="$LIBS"
8407 cat > conftest.$ac_ext <<EOF
8408 #line 8409 "configure"
8409 #include "confdefs.h"
8410 /* Override any gcc2 internal prototype to avoid an error. */
8411 /* We use char because int might match the return type of a gcc2
8412 builtin and then its argument prototype would still apply. */
8419 if { (eval echo configure:8420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8421 eval "ac_cv_lib_$ac_lib_var=yes"
8423 echo "configure: failed program was:" >&5
8424 cat conftest.$ac_ext >&5
8426 eval "ac_cv_lib_$ac_lib_var=no"
8429 LIBS="$ac_save_LIBS"
8432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8433 echo "$ac_t""yes" 1>&6
8436 cat >> confdefs.h <<\EOF
8437 #define HAVE_LIBLTDL 1
8442 echo "$ac_t""no" 1>&6
8446 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8447 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8451 ol_with_bdb_module=static
8452 ol_with_dnssrv_module=static
8453 ol_with_hdb_module=static
8454 ol_with_ldap_module=static
8455 ol_with_ldbm_module=static
8456 ol_with_meta_module=static
8457 ol_with_monitor_module=static
8458 ol_with_null_module=static
8459 ol_with_passwd_module=static
8460 ol_with_perl_module=static
8461 ol_with_shell_module=static
8462 ol_with_sql_module=static
8463 if test $ol_with_dyngroup = mod ; then
8464 echo "configure: warning: building static dyngroup overlay" 1>&2
8465 ol_with_dyngroup = yes
8467 if test $ol_with_proxycache = mod ; then
8468 echo "configure: warning: building static proxycache overlay" 1>&2
8469 ol_with_proxycache = yes
8471 if test $ol_with_rwm = mod ; then
8472 echo "configure: warning: building static rwm overlay" 1>&2
8478 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8479 echo "configure:8480: checking for EBCDIC" >&5
8480 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8481 echo $ac_n "(cached) $ac_c" 1>&6
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8489 #include <__ASCII__/generate_error.h>
8493 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8494 { (eval echo configure:8495: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8495 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8496 if test -z "$ac_err"; then
8498 ol_cv_cpp_ebcdic=yes
8501 echo "configure: failed program was:" >&5
8502 cat conftest.$ac_ext >&5
8509 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8510 if test $ol_cv_cpp_ebcdic = yes ; then
8511 cat >> confdefs.h <<\EOF
8512 #define HAVE_EBCDIC 1
8517 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8518 echo "configure:8519: checking for ANSI C header files" >&5
8519 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8520 echo $ac_n "(cached) $ac_c" 1>&6
8522 cat > conftest.$ac_ext <<EOF
8523 #line 8524 "configure"
8524 #include "confdefs.h"
8530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8531 { (eval echo configure:8532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8533 if test -z "$ac_err"; then
8535 ol_cv_header_stdc=yes
8538 echo "configure: failed program was:" >&5
8539 cat conftest.$ac_ext >&5
8541 ol_cv_header_stdc=no
8545 if test $ol_cv_header_stdc = yes; then
8546 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8547 cat > conftest.$ac_ext <<EOF
8548 #line 8549 "configure"
8549 #include "confdefs.h"
8552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8553 egrep "memchr" >/dev/null 2>&1; then
8557 ol_cv_header_stdc=no
8563 if test $ol_cv_header_stdc = yes; then
8564 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8565 cat > conftest.$ac_ext <<EOF
8566 #line 8567 "configure"
8567 #include "confdefs.h"
8570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8571 egrep "free" >/dev/null 2>&1; then
8575 ol_cv_header_stdc=no
8581 if test $ol_cv_header_stdc = yes; then
8582 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8583 if test "$cross_compiling" = yes; then
8586 cat > conftest.$ac_ext <<EOF
8587 #line 8588 "configure"
8588 #include "confdefs.h"
8591 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8592 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8594 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8595 || ('j' <= (c) && (c) <= 'r') \
8596 || ('s' <= (c) && (c) <= 'z'))
8597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8600 int main () { int i; for (i = 0; i < 256; i++)
8601 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8605 if { (eval echo configure:8606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8609 echo "configure: failed program was:" >&5
8610 cat conftest.$ac_ext >&5
8612 ol_cv_header_stdc=no
8620 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8621 if test $ol_cv_header_stdc = yes; then
8622 cat >> confdefs.h <<\EOF
8623 #define STDC_HEADERS 1
8627 ac_cv_header_stdc=disable
8630 if test $ol_cv_header_stdc != yes; then
8631 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8635 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8638 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8639 echo "configure:8640: checking for $ac_hdr that defines DIR" >&5
8640 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8643 cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 #include <sys/types.h>
8652 if { (eval echo configure:8653: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8654 eval "ac_cv_header_dirent_$ac_safe=yes"
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 eval "ac_cv_header_dirent_$ac_safe=no"
8663 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8664 echo "$ac_t""yes" 1>&6
8665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8666 cat >> confdefs.h <<EOF
8667 #define $ac_tr_hdr 1
8669 ac_header_dirent=$ac_hdr; break
8671 echo "$ac_t""no" 1>&6
8674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8675 if test $ac_header_dirent = dirent.h; then
8676 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8677 echo "configure:8678: checking for opendir in -ldir" >&5
8678 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8679 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8682 ac_save_LIBS="$LIBS"
8684 cat > conftest.$ac_ext <<EOF
8685 #line 8686 "configure"
8686 #include "confdefs.h"
8687 /* Override any gcc2 internal prototype to avoid an error. */
8688 /* We use char because int might match the return type of a gcc2
8689 builtin and then its argument prototype would still apply. */
8696 if { (eval echo configure:8697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8698 eval "ac_cv_lib_$ac_lib_var=yes"
8700 echo "configure: failed program was:" >&5
8701 cat conftest.$ac_ext >&5
8703 eval "ac_cv_lib_$ac_lib_var=no"
8706 LIBS="$ac_save_LIBS"
8709 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8710 echo "$ac_t""yes" 1>&6
8713 echo "$ac_t""no" 1>&6
8717 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8718 echo "configure:8719: checking for opendir in -lx" >&5
8719 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8720 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8723 ac_save_LIBS="$LIBS"
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8739 eval "ac_cv_lib_$ac_lib_var=yes"
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8744 eval "ac_cv_lib_$ac_lib_var=no"
8747 LIBS="$ac_save_LIBS"
8750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8751 echo "$ac_t""yes" 1>&6
8754 echo "$ac_t""no" 1>&6
8759 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8760 echo "configure:8761: checking for sys/wait.h that is POSIX.1 compatible" >&5
8761 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8762 echo $ac_n "(cached) $ac_c" 1>&6
8764 cat > conftest.$ac_ext <<EOF
8765 #line 8766 "configure"
8766 #include "confdefs.h"
8767 #include <sys/types.h>
8768 #include <sys/wait.h>
8770 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8773 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8778 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8781 if { (eval echo configure:8782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8783 ac_cv_header_sys_wait_h=yes
8785 echo "configure: failed program was:" >&5
8786 cat conftest.$ac_ext >&5
8788 ac_cv_header_sys_wait_h=no
8793 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8794 if test $ac_cv_header_sys_wait_h = yes; then
8795 cat >> confdefs.h <<\EOF
8796 #define HAVE_SYS_WAIT_H 1
8801 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8802 echo "configure:8803: checking POSIX termios" >&5
8803 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <sys/types.h>
8811 #include <termios.h>
8813 /* SunOS 4.0.3 has termios.h but not the library calls. */
8817 if { (eval echo configure:8818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8819 am_cv_sys_posix_termios=yes
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8824 am_cv_sys_posix_termios=no
8829 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8832 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8833 echo "configure:8834: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8834 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8835 echo $ac_n "(cached) $ac_c" 1>&6
8837 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8839 gwinsz_in_termios_h=no
8840 if test $am_cv_sys_posix_termios = yes; then
8841 cat > conftest.$ac_ext <<EOF
8842 #line 8843 "configure"
8843 #include "confdefs.h"
8844 #include <sys/types.h>
8845 # include <termios.h>
8851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8852 egrep "yes" >/dev/null 2>&1; then
8854 gwinsz_in_termios_h=yes
8860 if test $gwinsz_in_termios_h = no; then
8861 cat > conftest.$ac_ext <<EOF
8862 #line 8863 "configure"
8863 #include "confdefs.h"
8864 #include <sys/types.h>
8865 # include <sys/ioctl.h>
8871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8872 egrep "yes" >/dev/null 2>&1; then
8874 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8882 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8883 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8884 cat >> confdefs.h <<\EOF
8885 #define GWINSZ_IN_SYS_IOCTL 1
8890 if test $am_cv_sys_posix_termios = yes ; then
8891 cat >> confdefs.h <<\EOF
8892 #define HAVE_POSIX_TERMIOS 1
8948 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8949 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8950 echo "configure:8951: checking for $ac_hdr" >&5
8951 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8952 echo $ac_n "(cached) $ac_c" 1>&6
8954 cat > conftest.$ac_ext <<EOF
8955 #line 8956 "configure"
8956 #include "confdefs.h"
8959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8960 { (eval echo configure:8961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8962 if test -z "$ac_err"; then
8964 eval "ac_cv_header_$ac_safe=yes"
8967 echo "configure: failed program was:" >&5
8968 cat conftest.$ac_ext >&5
8970 eval "ac_cv_header_$ac_safe=no"
8974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8975 echo "$ac_t""yes" 1>&6
8976 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8977 cat >> confdefs.h <<EOF
8978 #define $ac_tr_hdr 1
8982 echo "$ac_t""no" 1>&6
8989 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
8990 echo "configure:8991: checking for dlopen" >&5
8991 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
8992 echo $ac_n "(cached) $ac_c" 1>&6
8994 cat > conftest.$ac_ext <<EOF
8995 #line 8996 "configure"
8996 #include "confdefs.h"
8997 /* System header to define __stub macros and hopefully few prototypes,
8998 which can conflict with char dlopen(); below. */
9000 /* Override any gcc2 internal prototype to avoid an error. */
9001 /* We use char because int might match the return type of a gcc2
9002 builtin and then its argument prototype would still apply. */
9008 /* The GNU C library defines this for functions which it implements
9009 to always fail with ENOSYS. Some functions are actually named
9010 something starting with __ and the normal name is an alias. */
9011 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9019 if { (eval echo configure:9020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9021 eval "ac_cv_func_dlopen=yes"
9023 echo "configure: failed program was:" >&5
9024 cat conftest.$ac_ext >&5
9026 eval "ac_cv_func_dlopen=no"
9031 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9035 echo "$ac_t""no" 1>&6
9036 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9037 echo "configure:9038: checking for dlopen in -ldl" >&5
9038 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
9039 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9042 ac_save_LIBS="$LIBS"
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* Override any gcc2 internal prototype to avoid an error. */
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9056 if { (eval echo configure:9057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9058 eval "ac_cv_lib_$ac_lib_var=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.$ac_ext >&5
9063 eval "ac_cv_lib_$ac_lib_var=no"
9066 LIBS="$ac_save_LIBS"
9069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9070 echo "$ac_t""yes" 1>&6
9071 ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9072 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9073 cat >> confdefs.h <<EOF
9074 #define $ac_tr_lib 1
9080 echo "$ac_t""no" 1>&6
9086 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9087 echo "configure:9088: checking for sigset in -lV3" >&5
9088 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9089 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9092 ac_save_LIBS="$LIBS"
9094 cat > conftest.$ac_ext <<EOF
9095 #line 9096 "configure"
9096 #include "confdefs.h"
9097 /* Override any gcc2 internal prototype to avoid an error. */
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9106 if { (eval echo configure:9107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9108 eval "ac_cv_lib_$ac_lib_var=yes"
9110 echo "configure: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9113 eval "ac_cv_lib_$ac_lib_var=no"
9116 LIBS="$ac_save_LIBS"
9119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9120 echo "$ac_t""yes" 1>&6
9121 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9123 cat >> confdefs.h <<EOF
9124 #define $ac_tr_lib 1
9130 echo "$ac_t""no" 1>&6
9134 if test "$ac_cv_header_winsock_h" = yes; then
9135 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9136 echo "configure:9137: checking for winsock" >&5
9137 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9138 echo $ac_n "(cached) $ac_c" 1>&6
9141 for curlib in ws2_32 wsock32; do
9142 LIBS="$LIBS -l$curlib"
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9146 #include <winsock.h>
9151 select(0,NULL,NULL,NULL,NULL);
9153 gethostname(NULL,0);
9157 if { (eval echo configure:9158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9161 echo "configure: failed program was:" >&5
9162 cat conftest.$ac_ext >&5
9168 if test $ol_cv_winsock = yes; then
9169 cat >> confdefs.h <<\EOF
9170 #define HAVE_WINSOCK 1
9173 ac_cv_func_socket=yes
9174 ac_cv_func_select=yes
9175 ac_cv_func_closesocket=yes
9176 ac_cv_func_gethostname=yes
9177 if test $curlib = ws2_32; then
9178 ol_cv_winsock=winsock2
9179 cat >> confdefs.h <<\EOF
9180 #define HAVE_WINSOCK2 1
9190 echo "$ac_t""$ol_cv_winsock" 1>&6
9194 echo $ac_n "checking for socket""... $ac_c" 1>&6
9195 echo "configure:9196: checking for socket" >&5
9196 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9199 cat > conftest.$ac_ext <<EOF
9200 #line 9201 "configure"
9201 #include "confdefs.h"
9202 /* System header to define __stub macros and hopefully few prototypes,
9203 which can conflict with char socket(); below. */
9205 /* Override any gcc2 internal prototype to avoid an error. */
9206 /* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9213 /* The GNU C library defines this for functions which it implements
9214 to always fail with ENOSYS. Some functions are actually named
9215 something starting with __ and the normal name is an alias. */
9216 #if defined (__stub_socket) || defined (__stub___socket)
9224 if { (eval echo configure:9225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9226 eval "ac_cv_func_socket=yes"
9228 echo "configure: failed program was:" >&5
9229 cat conftest.$ac_ext >&5
9231 eval "ac_cv_func_socket=no"
9236 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9237 echo "$ac_t""yes" 1>&6
9240 echo "$ac_t""no" 1>&6
9242 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9243 echo "configure:9244: checking for main in -lsocket" >&5
9244 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9246 echo $ac_n "(cached) $ac_c" 1>&6
9248 ac_save_LIBS="$LIBS"
9249 LIBS="-lsocket $LIBS"
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9258 if { (eval echo configure:9259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9260 eval "ac_cv_lib_$ac_lib_var=yes"
9262 echo "configure: failed program was:" >&5
9263 cat conftest.$ac_ext >&5
9265 eval "ac_cv_lib_$ac_lib_var=no"
9268 LIBS="$ac_save_LIBS"
9271 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9272 echo "$ac_t""yes" 1>&6
9273 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9274 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9275 cat >> confdefs.h <<EOF
9276 #define $ac_tr_lib 1
9279 LIBS="-lsocket $LIBS"
9282 echo "$ac_t""no" 1>&6
9285 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9286 echo "configure:9287: checking for main in -lnet" >&5
9287 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9288 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9289 echo $ac_n "(cached) $ac_c" 1>&6
9291 ac_save_LIBS="$LIBS"
9293 cat > conftest.$ac_ext <<EOF
9294 #line 9295 "configure"
9295 #include "confdefs.h"
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9303 eval "ac_cv_lib_$ac_lib_var=yes"
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9308 eval "ac_cv_lib_$ac_lib_var=no"
9311 LIBS="$ac_save_LIBS"
9314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9316 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9317 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9318 cat >> confdefs.h <<EOF
9319 #define $ac_tr_lib 1
9325 echo "$ac_t""no" 1>&6
9328 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9329 echo "configure:9330: checking for main in -lnsl_s" >&5
9330 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9331 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9332 echo $ac_n "(cached) $ac_c" 1>&6
9334 ac_save_LIBS="$LIBS"
9335 LIBS="-lnsl_s $LIBS"
9336 cat > conftest.$ac_ext <<EOF
9337 #line 9338 "configure"
9338 #include "confdefs.h"
9344 if { (eval echo configure:9345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9346 eval "ac_cv_lib_$ac_lib_var=yes"
9348 echo "configure: failed program was:" >&5
9349 cat conftest.$ac_ext >&5
9351 eval "ac_cv_lib_$ac_lib_var=no"
9354 LIBS="$ac_save_LIBS"
9357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9358 echo "$ac_t""yes" 1>&6
9359 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9361 cat >> confdefs.h <<EOF
9362 #define $ac_tr_lib 1
9365 LIBS="-lnsl_s $LIBS"
9368 echo "$ac_t""no" 1>&6
9371 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9372 echo "configure:9373: checking for main in -lnsl" >&5
9373 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9375 echo $ac_n "(cached) $ac_c" 1>&6
9377 ac_save_LIBS="$LIBS"
9379 cat > conftest.$ac_ext <<EOF
9380 #line 9381 "configure"
9381 #include "confdefs.h"
9387 if { (eval echo configure:9388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9389 eval "ac_cv_lib_$ac_lib_var=yes"
9391 echo "configure: failed program was:" >&5
9392 cat conftest.$ac_ext >&5
9394 eval "ac_cv_lib_$ac_lib_var=no"
9397 LIBS="$ac_save_LIBS"
9400 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9401 echo "$ac_t""yes" 1>&6
9402 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9403 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9404 cat >> confdefs.h <<EOF
9405 #define $ac_tr_lib 1
9411 echo "$ac_t""no" 1>&6
9414 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9415 echo "configure:9416: checking for socket in -linet" >&5
9416 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9417 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9418 echo $ac_n "(cached) $ac_c" 1>&6
9420 ac_save_LIBS="$LIBS"
9422 cat > conftest.$ac_ext <<EOF
9423 #line 9424 "configure"
9424 #include "confdefs.h"
9425 /* Override any gcc2 internal prototype to avoid an error. */
9426 /* We use char because int might match the return type of a gcc2
9427 builtin and then its argument prototype would still apply. */
9434 if { (eval echo configure:9435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9436 eval "ac_cv_lib_$ac_lib_var=yes"
9438 echo "configure: failed program was:" >&5
9439 cat conftest.$ac_ext >&5
9441 eval "ac_cv_lib_$ac_lib_var=no"
9444 LIBS="$ac_save_LIBS"
9447 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9448 echo "$ac_t""yes" 1>&6
9449 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9450 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9451 cat >> confdefs.h <<EOF
9452 #define $ac_tr_lib 1
9458 echo "$ac_t""no" 1>&6
9461 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9462 echo "configure:9463: checking for main in -lgen" >&5
9463 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9464 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9465 echo $ac_n "(cached) $ac_c" 1>&6
9467 ac_save_LIBS="$LIBS"
9469 cat > conftest.$ac_ext <<EOF
9470 #line 9471 "configure"
9471 #include "confdefs.h"
9477 if { (eval echo configure:9478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9479 eval "ac_cv_lib_$ac_lib_var=yes"
9481 echo "configure: failed program was:" >&5
9482 cat conftest.$ac_ext >&5
9484 eval "ac_cv_lib_$ac_lib_var=no"
9487 LIBS="$ac_save_LIBS"
9490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9491 echo "$ac_t""yes" 1>&6
9492 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9493 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9494 cat >> confdefs.h <<EOF
9495 #define $ac_tr_lib 1
9501 echo "$ac_t""no" 1>&6
9508 echo $ac_n "checking for select""... $ac_c" 1>&6
9509 echo "configure:9510: checking for select" >&5
9510 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9511 echo $ac_n "(cached) $ac_c" 1>&6
9513 cat > conftest.$ac_ext <<EOF
9514 #line 9515 "configure"
9515 #include "confdefs.h"
9516 /* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char select(); below. */
9519 /* Override any gcc2 internal prototype to avoid an error. */
9520 /* We use char because int might match the return type of a gcc2
9521 builtin and then its argument prototype would still apply. */
9527 /* The GNU C library defines this for functions which it implements
9528 to always fail with ENOSYS. Some functions are actually named
9529 something starting with __ and the normal name is an alias. */
9530 #if defined (__stub_select) || defined (__stub___select)
9538 if { (eval echo configure:9539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9540 eval "ac_cv_func_select=yes"
9542 echo "configure: failed program was:" >&5
9543 cat conftest.$ac_ext >&5
9545 eval "ac_cv_func_select=no"
9550 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9551 echo "$ac_t""yes" 1>&6
9554 echo "$ac_t""no" 1>&6
9555 { echo "configure: error: select() required." 1>&2; exit 1; }
9559 if test "${ac_cv_header_winsock_h}" != yes; then
9560 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9561 echo "configure:9562: checking types of arguments for select()" >&5
9562 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9563 echo $ac_n "(cached) $ac_c" 1>&6
9565 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9566 echo $ac_n "(cached) $ac_c" 1>&6
9568 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9569 echo $ac_n "(cached) $ac_c" 1>&6
9571 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9572 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9573 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9577 #ifdef HAVE_SYS_TYPES_H
9578 #include <sys/types.h>
9580 #ifdef HAVE_SYS_TIME_H
9581 #include <sys/time.h>
9583 #ifdef HAVE_SYS_SELECT_H
9584 #include <sys/select.h>
9586 #ifdef HAVE_SYS_SOCKET_H
9587 #include <sys/socket.h>
9589 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);
9594 if { (eval echo configure:9595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9596 ac_not_found=no ; break 3
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9613 if test "$ac_not_found" = yes; then
9614 ac_cv_func_select_arg1=int
9615 ac_cv_func_select_arg234='int *'
9616 ac_cv_func_select_arg5='struct timeval *'
9618 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9619 cat >> confdefs.h <<EOF
9620 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9623 cat >> confdefs.h <<EOF
9624 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9627 cat >> confdefs.h <<EOF
9628 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9635 for ac_hdr in regex.h
9637 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9638 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9639 echo "configure:9640: checking for $ac_hdr" >&5
9640 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9641 echo $ac_n "(cached) $ac_c" 1>&6
9643 cat > conftest.$ac_ext <<EOF
9644 #line 9645 "configure"
9645 #include "confdefs.h"
9648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9649 { (eval echo configure:9650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9651 if test -z "$ac_err"; then
9653 eval "ac_cv_header_$ac_safe=yes"
9656 echo "configure: failed program was:" >&5
9657 cat conftest.$ac_ext >&5
9659 eval "ac_cv_header_$ac_safe=no"
9663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9664 echo "$ac_t""yes" 1>&6
9665 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9666 cat >> confdefs.h <<EOF
9667 #define $ac_tr_hdr 1
9671 echo "$ac_t""no" 1>&6
9675 if test "$ac_cv_header_regex_h" != yes ; then
9676 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9679 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9680 echo "configure:9681: checking for library containing regfree" >&5
9681 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9682 echo $ac_n "(cached) $ac_c" 1>&6
9684 ac_func_search_save_LIBS="$LIBS"
9685 ac_cv_search_regfree="no"
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9689 /* Override any gcc2 internal prototype to avoid an error. */
9690 /* We use char because int might match the return type of a gcc2
9691 builtin and then its argument prototype would still apply. */
9698 if { (eval echo configure:9699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9700 ac_cv_search_regfree="none required"
9702 echo "configure: failed program was:" >&5
9703 cat conftest.$ac_ext >&5
9706 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9708 cat > conftest.$ac_ext <<EOF
9709 #line 9710 "configure"
9710 #include "confdefs.h"
9711 /* Override any gcc2 internal prototype to avoid an error. */
9712 /* We use char because int might match the return type of a gcc2
9713 builtin and then its argument prototype would still apply. */
9720 if { (eval echo configure:9721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9722 ac_cv_search_regfree="-l$ac_lib"
9725 echo "configure: failed program was:" >&5
9726 cat conftest.$ac_ext >&5
9730 LIBS="$ac_func_search_save_LIBS"
9733 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9734 if test "$ac_cv_search_regfree" != "no"; then
9735 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9738 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9742 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9743 echo "configure:9744: checking for compatible POSIX regex" >&5
9744 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9745 echo $ac_n "(cached) $ac_c" 1>&6
9748 if test "$cross_compiling" = yes; then
9749 ol_cv_c_posix_regex=cross
9751 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9755 #include <sys/types.h>
9757 static char *pattern, *string;
9765 if(regcomp(&re, pattern, 0)) {
9769 string = "ALL MATCH";
9771 rc = regexec(&re, string, 0, (void*)0, 0);
9778 if { (eval echo configure:9779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9780 ol_cv_c_posix_regex=yes
9782 echo "configure: failed program was:" >&5
9783 cat conftest.$ac_ext >&5
9785 ol_cv_c_posix_regex=no
9792 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9794 if test "$ol_cv_c_posix_regex" = no ; then
9795 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9800 for ac_hdr in sys/uuid.h
9802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9804 echo "configure:9805: checking for $ac_hdr" >&5
9805 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9806 echo $ac_n "(cached) $ac_c" 1>&6
9808 cat > conftest.$ac_ext <<EOF
9809 #line 9810 "configure"
9810 #include "confdefs.h"
9813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9814 { (eval echo configure:9815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9816 if test -z "$ac_err"; then
9818 eval "ac_cv_header_$ac_safe=yes"
9821 echo "configure: failed program was:" >&5
9822 cat conftest.$ac_ext >&5
9824 eval "ac_cv_header_$ac_safe=no"
9828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9829 echo "$ac_t""yes" 1>&6
9830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9831 cat >> confdefs.h <<EOF
9832 #define $ac_tr_hdr 1
9836 echo "$ac_t""no" 1>&6
9840 if test $ac_cv_header_sys_uuid_h = yes ; then
9843 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9844 echo "configure:9845: checking for library containing uuid_to_str" >&5
9845 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9846 echo $ac_n "(cached) $ac_c" 1>&6
9848 ac_func_search_save_LIBS="$LIBS"
9849 ac_cv_search_uuid_to_str="no"
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 /* Override any gcc2 internal prototype to avoid an error. */
9854 /* We use char because int might match the return type of a gcc2
9855 builtin and then its argument prototype would still apply. */
9862 if { (eval echo configure:9863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9864 ac_cv_search_uuid_to_str="none required"
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9870 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9871 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9872 cat > conftest.$ac_ext <<EOF
9873 #line 9874 "configure"
9874 #include "confdefs.h"
9875 /* Override any gcc2 internal prototype to avoid an error. */
9876 /* We use char because int might match the return type of a gcc2
9877 builtin and then its argument prototype would still apply. */
9884 if { (eval echo configure:9885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9886 ac_cv_search_uuid_to_str="-l$ac_lib"
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9894 LIBS="$ac_func_search_save_LIBS"
9897 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
9898 if test "$ac_cv_search_uuid_to_str" != "no"; then
9899 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
9906 if test have_uuid = yes ; then
9907 cat >> confdefs.h <<\EOF
9908 #define HAVE_UUID_TO_STR 1
9912 test "$ac_cv_search_uuid_to_str" = "none required" || \
9913 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
9917 if test $have_uuid = no ; then
9918 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
9919 echo "configure:9920: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
9921 LIBS="$LIBS -lrpcrt4"
9922 cat > conftest.$ac_ext <<EOF
9923 #line 9924 "configure"
9924 #include "confdefs.h"
9926 int __stdcall UuidCreate(void *);
9927 int __stdcall UuidToStringA(void *,void **);
9936 if { (eval echo configure:9937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 echo "configure: failed program was:" >&5
9941 cat conftest.$ac_ext >&5
9946 if test $need_rpcrt = yes; then
9947 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
9950 echo "$ac_t""$need_rpcrt" 1>&6
9954 echo $ac_n "checking for res_query""... $ac_c" 1>&6
9955 echo "configure:9956: checking for res_query" >&5
9956 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
9957 echo $ac_n "(cached) $ac_c" 1>&6
9959 cat > conftest.$ac_ext <<EOF
9960 #line 9961 "configure"
9961 #include "confdefs.h"
9962 /* System header to define __stub macros and hopefully few prototypes,
9963 which can conflict with char res_query(); below. */
9965 /* Override any gcc2 internal prototype to avoid an error. */
9966 /* We use char because int might match the return type of a gcc2
9967 builtin and then its argument prototype would still apply. */
9973 /* The GNU C library defines this for functions which it implements
9974 to always fail with ENOSYS. Some functions are actually named
9975 something starting with __ and the normal name is an alias. */
9976 #if defined (__stub_res_query) || defined (__stub___res_query)
9984 if { (eval echo configure:9985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9986 eval "ac_cv_func_res_query=yes"
9988 echo "configure: failed program was:" >&5
9989 cat conftest.$ac_ext >&5
9991 eval "ac_cv_func_res_query=no"
9996 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
9997 echo "$ac_t""yes" 1>&6
10000 echo "$ac_t""no" 1>&6
10003 if test $ac_cv_func_res_query = no ; then
10004 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10005 echo "configure:10006: checking for __res_query" >&5
10006 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10007 echo $ac_n "(cached) $ac_c" 1>&6
10009 cat > conftest.$ac_ext <<EOF
10010 #line 10011 "configure"
10011 #include "confdefs.h"
10012 /* System header to define __stub macros and hopefully few prototypes,
10013 which can conflict with char __res_query(); below. */
10014 #include <assert.h>
10015 /* Override any gcc2 internal prototype to avoid an error. */
10016 /* We use char because int might match the return type of a gcc2
10017 builtin and then its argument prototype would still apply. */
10018 char __res_query();
10023 /* The GNU C library defines this for functions which it implements
10024 to always fail with ENOSYS. Some functions are actually named
10025 something starting with __ and the normal name is an alias. */
10026 #if defined (__stub___res_query) || defined (__stub_____res_query)
10034 if { (eval echo configure:10035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10036 eval "ac_cv_func___res_query=yes"
10038 echo "configure: failed program was:" >&5
10039 cat conftest.$ac_ext >&5
10041 eval "ac_cv_func___res_query=no"
10046 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10047 echo "$ac_t""yes" 1>&6
10050 echo "$ac_t""no" 1>&6
10053 ac_cv_func_res_query=$ac_cv_func___res_query
10056 if test $ac_cv_func_res_query = no ; then
10057 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10058 echo "configure:10059: checking for res_query in -lbind" >&5
10059 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10060 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10061 echo $ac_n "(cached) $ac_c" 1>&6
10063 ac_save_LIBS="$LIBS"
10064 LIBS="-lbind $LIBS"
10065 cat > conftest.$ac_ext <<EOF
10066 #line 10067 "configure"
10067 #include "confdefs.h"
10068 /* Override any gcc2 internal prototype to avoid an error. */
10069 /* We use char because int might match the return type of a gcc2
10070 builtin and then its argument prototype would still apply. */
10077 if { (eval echo configure:10078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10079 eval "ac_cv_lib_$ac_lib_var=yes"
10081 echo "configure: failed program was:" >&5
10082 cat conftest.$ac_ext >&5
10084 eval "ac_cv_lib_$ac_lib_var=no"
10087 LIBS="$ac_save_LIBS"
10090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10091 echo "$ac_t""yes" 1>&6
10092 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10093 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10094 cat >> confdefs.h <<EOF
10095 #define $ac_tr_lib 1
10098 LIBS="-lbind $LIBS"
10101 echo "$ac_t""no" 1>&6
10104 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10107 if test $ac_cv_func_res_query = no ; then
10108 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10109 echo "configure:10110: checking for __res_query in -lbind" >&5
10110 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10114 ac_save_LIBS="$LIBS"
10115 LIBS="-lbind $LIBS"
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char __res_query();
10128 if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10130 eval "ac_cv_lib_$ac_lib_var=yes"
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10135 eval "ac_cv_lib_$ac_lib_var=no"
10138 LIBS="$ac_save_LIBS"
10141 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10142 echo "$ac_t""yes" 1>&6
10143 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10144 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10145 cat >> confdefs.h <<EOF
10146 #define $ac_tr_lib 1
10149 LIBS="-lbind $LIBS"
10152 echo "$ac_t""no" 1>&6
10155 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10158 if test $ac_cv_func_res_query = no ; then
10159 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10160 echo "configure:10161: checking for res_query in -lresolv" >&5
10161 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10162 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10163 echo $ac_n "(cached) $ac_c" 1>&6
10165 ac_save_LIBS="$LIBS"
10166 LIBS="-lresolv $LIBS"
10167 cat > conftest.$ac_ext <<EOF
10168 #line 10169 "configure"
10169 #include "confdefs.h"
10170 /* Override any gcc2 internal prototype to avoid an error. */
10171 /* We use char because int might match the return type of a gcc2
10172 builtin and then its argument prototype would still apply. */
10179 if { (eval echo configure:10180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10181 eval "ac_cv_lib_$ac_lib_var=yes"
10183 echo "configure: failed program was:" >&5
10184 cat conftest.$ac_ext >&5
10186 eval "ac_cv_lib_$ac_lib_var=no"
10189 LIBS="$ac_save_LIBS"
10192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10196 cat >> confdefs.h <<EOF
10197 #define $ac_tr_lib 1
10200 LIBS="-lresolv $LIBS"
10203 echo "$ac_t""no" 1>&6
10206 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10209 if test $ac_cv_func_res_query = no ; then
10210 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10211 echo "configure:10212: checking for __res_query in -lresolv" >&5
10212 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10214 echo $ac_n "(cached) $ac_c" 1>&6
10216 ac_save_LIBS="$LIBS"
10217 LIBS="-lresolv $LIBS"
10218 cat > conftest.$ac_ext <<EOF
10219 #line 10220 "configure"
10220 #include "confdefs.h"
10221 /* Override any gcc2 internal prototype to avoid an error. */
10222 /* We use char because int might match the return type of a gcc2
10223 builtin and then its argument prototype would still apply. */
10224 char __res_query();
10230 if { (eval echo configure:10231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10232 eval "ac_cv_lib_$ac_lib_var=yes"
10234 echo "configure: failed program was:" >&5
10235 cat conftest.$ac_ext >&5
10237 eval "ac_cv_lib_$ac_lib_var=no"
10240 LIBS="$ac_save_LIBS"
10243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10244 echo "$ac_t""yes" 1>&6
10245 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10247 cat >> confdefs.h <<EOF
10248 #define $ac_tr_lib 1
10251 LIBS="-lresolv $LIBS"
10254 echo "$ac_t""no" 1>&6
10257 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10260 if test "$ac_cv_func_res_query" = yes ; then
10261 cat >> confdefs.h <<\EOF
10262 #define HAVE_RES_QUERY 1
10266 if test $ol_enable_dnssrv != no ; then
10271 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10272 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10275 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10277 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10278 echo "configure:10279: checking for $ac_func" >&5
10279 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10280 echo $ac_n "(cached) $ac_c" 1>&6
10282 cat > conftest.$ac_ext <<EOF
10283 #line 10284 "configure"
10284 #include "confdefs.h"
10285 /* System header to define __stub macros and hopefully few prototypes,
10286 which can conflict with char $ac_func(); below. */
10287 #include <assert.h>
10288 /* Override any gcc2 internal prototype to avoid an error. */
10289 /* We use char because int might match the return type of a gcc2
10290 builtin and then its argument prototype would still apply. */
10296 /* The GNU C library defines this for functions which it implements
10297 to always fail with ENOSYS. Some functions are actually named
10298 something starting with __ and the normal name is an alias. */
10299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10307 if { (eval echo configure:10308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10309 eval "ac_cv_func_$ac_func=yes"
10311 echo "configure: failed program was:" >&5
10312 cat conftest.$ac_ext >&5
10314 eval "ac_cv_func_$ac_func=no"
10319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10320 echo "$ac_t""yes" 1>&6
10321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10322 cat >> confdefs.h <<EOF
10323 #define $ac_tr_func 1
10327 echo "$ac_t""no" 1>&6
10333 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10334 if test $ol_enable_ipv6 = yes ; then
10335 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10337 elif test $ol_enable_ipv6 != no ; then
10338 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10339 echo "configure:10340: checking INET6_ADDRSTRLEN" >&5
10340 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10341 echo $ac_n "(cached) $ac_c" 1>&6
10344 cat > conftest.$ac_ext <<EOF
10345 #line 10346 "configure"
10346 #include "confdefs.h"
10348 # include <netinet/in.h>
10349 # ifdef INET6_ADDRSTRLEN
10350 __has_inet6_addrstrlen__;
10354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10355 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10357 ol_cv_inet6_addrstrlen=yes
10360 ol_cv_inet6_addrstrlen=no
10366 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10369 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10370 echo "configure:10371: checking struct sockaddr_storage" >&5
10371 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10372 echo $ac_n "(cached) $ac_c" 1>&6
10375 cat > conftest.$ac_ext <<EOF
10376 #line 10377 "configure"
10377 #include "confdefs.h"
10379 #include <sys/types.h>
10380 #include <sys/socket.h>
10384 struct sockaddr_storage ss;
10388 if { (eval echo configure:10389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10390 ol_cv_struct_sockaddr_storage=yes
10392 echo "configure: failed program was:" >&5
10393 cat conftest.$ac_ext >&5
10395 ol_cv_struct_sockaddr_storage=no
10400 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10402 if test $ol_cv_inet6_addrstrlen = yes \
10403 -a $ol_cv_struct_sockaddr_storage = yes ; then
10405 elif test $ol_enable_ipv6 = yes \
10406 -a $ol_cv_inet6_addrstrlen = no ; then
10407 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10408 elif test $ol_enable_ipv6 = yes \
10409 -a $ol_cv_struct_sockaddr_storage = no ; then
10410 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10414 if test $ol_enable_local != no ; then
10415 for ac_hdr in sys/un.h
10417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10419 echo "configure:10420: checking for $ac_hdr" >&5
10420 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10421 echo $ac_n "(cached) $ac_c" 1>&6
10423 cat > conftest.$ac_ext <<EOF
10424 #line 10425 "configure"
10425 #include "confdefs.h"
10428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10429 { (eval echo configure:10430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10431 if test -z "$ac_err"; then
10433 eval "ac_cv_header_$ac_safe=yes"
10436 echo "configure: failed program was:" >&5
10437 cat conftest.$ac_ext >&5
10439 eval "ac_cv_header_$ac_safe=no"
10443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10444 echo "$ac_t""yes" 1>&6
10445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10446 cat >> confdefs.h <<EOF
10447 #define $ac_tr_hdr 1
10451 echo "$ac_t""no" 1>&6
10456 if test $ol_enable_local = auto ; then
10457 ol_enable_local=$ac_cv_header_sys_un_h
10458 elif test $ac_cv_header_sys_un_h = no ; then
10459 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10468 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10469 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10470 -o $ol_with_kerberos = k425 ; then
10472 for ac_hdr in krb5.h
10474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10476 echo "configure:10477: checking for $ac_hdr" >&5
10477 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10478 echo $ac_n "(cached) $ac_c" 1>&6
10480 cat > conftest.$ac_ext <<EOF
10481 #line 10482 "configure"
10482 #include "confdefs.h"
10485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10486 { (eval echo configure:10487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10488 if test -z "$ac_err"; then
10490 eval "ac_cv_header_$ac_safe=yes"
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10496 eval "ac_cv_header_$ac_safe=no"
10500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10501 echo "$ac_t""yes" 1>&6
10502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10503 cat >> confdefs.h <<EOF
10504 #define $ac_tr_hdr 1
10508 echo "$ac_t""no" 1>&6
10513 if test $ac_cv_header_krb5_h = yes ; then
10514 for ac_hdr in heim_err.h
10516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10518 echo "configure:10519: checking for $ac_hdr" >&5
10519 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10520 echo $ac_n "(cached) $ac_c" 1>&6
10522 cat > conftest.$ac_ext <<EOF
10523 #line 10524 "configure"
10524 #include "confdefs.h"
10527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10528 { (eval echo configure:10529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10530 if test -z "$ac_err"; then
10532 eval "ac_cv_header_$ac_safe=yes"
10535 echo "configure: failed program was:" >&5
10536 cat conftest.$ac_ext >&5
10538 eval "ac_cv_header_$ac_safe=no"
10542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10543 echo "$ac_t""yes" 1>&6
10544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10545 cat >> confdefs.h <<EOF
10546 #define $ac_tr_hdr 1
10550 echo "$ac_t""no" 1>&6
10554 if test $ac_cv_header_heim_err_h = yes ; then
10560 if test $krb5_impl = mit; then
10561 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10562 echo "configure:10563: checking for main in -lk5crypto" >&5
10563 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10564 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10565 echo $ac_n "(cached) $ac_c" 1>&6
10567 ac_save_LIBS="$LIBS"
10568 LIBS="-lk5crypto $LIBS"
10569 cat > conftest.$ac_ext <<EOF
10570 #line 10571 "configure"
10571 #include "confdefs.h"
10577 if { (eval echo configure:10578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10579 eval "ac_cv_lib_$ac_lib_var=yes"
10581 echo "configure: failed program was:" >&5
10582 cat conftest.$ac_ext >&5
10584 eval "ac_cv_lib_$ac_lib_var=no"
10587 LIBS="$ac_save_LIBS"
10590 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 krb5crypto=k5crypto
10594 echo "$ac_t""no" 1>&6
10599 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10600 echo "configure:10601: checking for main in -lkrb5" >&5
10601 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10602 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10603 echo $ac_n "(cached) $ac_c" 1>&6
10605 ac_save_LIBS="$LIBS"
10606 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10607 cat > conftest.$ac_ext <<EOF
10608 #line 10609 "configure"
10609 #include "confdefs.h"
10615 if { (eval echo configure:10616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10617 eval "ac_cv_lib_$ac_lib_var=yes"
10619 echo "configure: failed program was:" >&5
10620 cat conftest.$ac_ext >&5
10622 eval "ac_cv_lib_$ac_lib_var=no"
10625 LIBS="$ac_save_LIBS"
10628 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10629 echo "$ac_t""yes" 1>&6
10631 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10633 echo "$ac_t""no" 1>&6
10638 elif test $krb5_impl = heimdal; then
10639 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10640 echo "configure:10641: checking for main in -ldes" >&5
10641 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10642 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10645 ac_save_LIBS="$LIBS"
10647 cat > conftest.$ac_ext <<EOF
10648 #line 10649 "configure"
10649 #include "confdefs.h"
10655 if { (eval echo configure:10656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10657 eval "ac_cv_lib_$ac_lib_var=yes"
10659 echo "configure: failed program was:" >&5
10660 cat conftest.$ac_ext >&5
10662 eval "ac_cv_lib_$ac_lib_var=no"
10665 LIBS="$ac_save_LIBS"
10668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10669 echo "$ac_t""yes" 1>&6
10672 echo "$ac_t""no" 1>&6
10677 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10678 echo "configure:10679: checking for main in -lkrb5" >&5
10679 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10680 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10681 echo $ac_n "(cached) $ac_c" 1>&6
10683 ac_save_LIBS="$LIBS"
10684 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10685 cat > conftest.$ac_ext <<EOF
10686 #line 10687 "configure"
10687 #include "confdefs.h"
10693 if { (eval echo configure:10694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10695 eval "ac_cv_lib_$ac_lib_var=yes"
10697 echo "configure: failed program was:" >&5
10698 cat conftest.$ac_ext >&5
10700 eval "ac_cv_lib_$ac_lib_var=no"
10703 LIBS="$ac_save_LIBS"
10706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10707 echo "$ac_t""yes" 1>&6
10709 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10711 echo "$ac_t""no" 1>&6
10716 cat >> confdefs.h <<\EOF
10717 #define HAVE_HEIMDAL_KERBEROS 1
10723 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10726 if test $have_krb5 = yes ; then
10729 cat >> confdefs.h <<\EOF
10730 #define HAVE_KRB5 1
10734 if test $ol_enable_kpasswd != no ; then
10735 ol_link_kpasswd=yes;
10738 if test $ol_with_kerberos = k5only ; then
10739 ol_with_kerberos=found
10742 elif test $ol_with_kerberos != auto ; then
10743 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10749 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10750 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10752 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10754 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10755 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10756 echo "configure:10757: checking for $ac_hdr" >&5
10757 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10758 echo $ac_n "(cached) $ac_c" 1>&6
10760 cat > conftest.$ac_ext <<EOF
10761 #line 10762 "configure"
10762 #include "confdefs.h"
10765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10766 { (eval echo configure:10767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10768 if test -z "$ac_err"; then
10770 eval "ac_cv_header_$ac_safe=yes"
10773 echo "configure: failed program was:" >&5
10774 cat conftest.$ac_ext >&5
10776 eval "ac_cv_header_$ac_safe=no"
10780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10781 echo "$ac_t""yes" 1>&6
10782 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10783 cat >> confdefs.h <<EOF
10784 #define $ac_tr_hdr 1
10788 echo "$ac_t""no" 1>&6
10793 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10794 if test $krb5_impl = mit; then
10795 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10796 echo "configure:10797: checking for main in -lkrb4" >&5
10797 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10798 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10799 echo $ac_n "(cached) $ac_c" 1>&6
10801 ac_save_LIBS="$LIBS"
10802 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10803 cat > conftest.$ac_ext <<EOF
10804 #line 10805 "configure"
10805 #include "confdefs.h"
10811 if { (eval echo configure:10812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10813 eval "ac_cv_lib_$ac_lib_var=yes"
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10818 eval "ac_cv_lib_$ac_lib_var=no"
10821 LIBS="$ac_save_LIBS"
10824 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10825 echo "$ac_t""yes" 1>&6
10827 KRB4_LIBS="-lkrb4 -ldes425"
10829 echo "$ac_t""no" 1>&6
10834 elif test $krb5_impl = heimdal; then
10835 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10836 echo "configure:10837: checking for main in -lkrb4" >&5
10837 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10838 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10841 ac_save_LIBS="$LIBS"
10842 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10843 cat > conftest.$ac_ext <<EOF
10844 #line 10845 "configure"
10845 #include "confdefs.h"
10851 if { (eval echo configure:10852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10853 eval "ac_cv_lib_$ac_lib_var=yes"
10855 echo "configure: failed program was:" >&5
10856 cat conftest.$ac_ext >&5
10858 eval "ac_cv_lib_$ac_lib_var=no"
10861 LIBS="$ac_save_LIBS"
10864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10865 echo "$ac_t""yes" 1>&6
10869 echo "$ac_t""no" 1>&6
10876 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10879 if test $have_k425 = yes ; then
10880 ol_with_kerberos=found
10883 cat >> confdefs.h <<\EOF
10884 #define HAVE_KRB425 1
10887 cat >> confdefs.h <<\EOF
10888 #define HAVE_KRB4 1
10892 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10893 echo "configure:10894: checking for des_debug in Kerberos libraries" >&5
10894 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10895 echo $ac_n "(cached) $ac_c" 1>&6
10899 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
10900 cat > conftest.$ac_ext <<EOF
10901 #line 10902 "configure"
10902 #include "confdefs.h"
10904 #include <kerberosIV/krb.h>
10905 #include <kerberosIV/des.h>
10906 extern int des_debug;
10914 if { (eval echo configure:10915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10916 ol_cv_var_des_debug=yes
10918 echo "configure: failed program was:" >&5
10919 cat conftest.$ac_ext >&5
10921 ol_cv_var_des_debug=no
10928 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
10930 if test $ol_cv_var_des_debug = yes ; then
10931 cat >> confdefs.h <<\EOF
10932 #define HAVE_DES_DEBUG 1
10942 if test $ol_link_krb5 = yes ; then
10943 ol_with_kerberos=found
10946 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10947 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
10949 for ac_hdr in krb.h des.h krb-archaeology.h
10951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10953 echo "configure:10954: checking for $ac_hdr" >&5
10954 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10955 echo $ac_n "(cached) $ac_c" 1>&6
10957 cat > conftest.$ac_ext <<EOF
10958 #line 10959 "configure"
10959 #include "confdefs.h"
10962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10963 { (eval echo configure:10964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10965 if test -z "$ac_err"; then
10967 eval "ac_cv_header_$ac_safe=yes"
10970 echo "configure: failed program was:" >&5
10971 cat conftest.$ac_ext >&5
10973 eval "ac_cv_header_$ac_safe=no"
10977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10978 echo "$ac_t""yes" 1>&6
10979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10980 cat >> confdefs.h <<EOF
10981 #define $ac_tr_hdr 1
10985 echo "$ac_t""no" 1>&6
10990 if test $ac_cv_header_krb_h = yes ; then
10991 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
10992 echo "configure:10993: checking for main in -lkrb" >&5
10993 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
10994 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10995 echo $ac_n "(cached) $ac_c" 1>&6
10997 ac_save_LIBS="$LIBS"
10998 LIBS="-lkrb -ldes $LIBS"
10999 cat > conftest.$ac_ext <<EOF
11000 #line 11001 "configure"
11001 #include "confdefs.h"
11007 if { (eval echo configure:11008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11009 eval "ac_cv_lib_$ac_lib_var=yes"
11011 echo "configure: failed program was:" >&5
11012 cat conftest.$ac_ext >&5
11014 eval "ac_cv_lib_$ac_lib_var=no"
11017 LIBS="$ac_save_LIBS"
11020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11021 echo "$ac_t""yes" 1>&6
11024 echo "$ac_t""no" 1>&6
11029 if test $have_k4 = yes ; then
11030 ol_with_kerberos=found
11033 cat >> confdefs.h <<\EOF
11034 #define HAVE_KRB4 1
11038 KRB4_LIBS="-lkrb -ldes"
11040 if test $ac_cv_header_krb_archaeology_h = yes ; then
11041 cat >> confdefs.h <<\EOF
11042 #define HAVE_KTH_KERBEROS 1
11050 if test $ol_link_krb4 = yes -a $ol_enable_kpasswd != no ; then
11051 ol_link_kpasswd=yes
11054 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11057 elif test $ol_enable_kbind = yes ; then
11058 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11061 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11062 cat >> confdefs.h <<\EOF
11063 #define HAVE_KERBEROS 1
11067 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11068 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11072 if test $ol_with_tls != no ; then
11073 for ac_hdr in openssl/ssl.h ssl.h
11075 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11076 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11077 echo "configure:11078: checking for $ac_hdr" >&5
11078 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11079 echo $ac_n "(cached) $ac_c" 1>&6
11081 cat > conftest.$ac_ext <<EOF
11082 #line 11083 "configure"
11083 #include "confdefs.h"
11086 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11087 { (eval echo configure:11088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11088 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11089 if test -z "$ac_err"; then
11091 eval "ac_cv_header_$ac_safe=yes"
11094 echo "configure: failed program was:" >&5
11095 cat conftest.$ac_ext >&5
11097 eval "ac_cv_header_$ac_safe=no"
11101 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11102 echo "$ac_t""yes" 1>&6
11103 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11104 cat >> confdefs.h <<EOF
11105 #define $ac_tr_hdr 1
11109 echo "$ac_t""no" 1>&6
11114 if test $ac_cv_header_openssl_ssl_h = yes \
11115 -o $ac_cv_header_ssl_h = yes ; then
11116 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11117 echo "configure:11118: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11118 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11119 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11120 echo $ac_n "(cached) $ac_c" 1>&6
11122 ac_save_LIBS="$LIBS"
11123 LIBS="-lssl -lcrypto $LIBS"
11124 cat > conftest.$ac_ext <<EOF
11125 #line 11126 "configure"
11126 #include "confdefs.h"
11127 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11130 char SSLeay_add_ssl_algorithms();
11133 SSLeay_add_ssl_algorithms()
11136 if { (eval echo configure:11137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11138 eval "ac_cv_lib_$ac_lib_var=yes"
11140 echo "configure: failed program was:" >&5
11141 cat conftest.$ac_ext >&5
11143 eval "ac_cv_lib_$ac_lib_var=no"
11146 LIBS="$ac_save_LIBS"
11149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11150 echo "$ac_t""yes" 1>&6
11154 echo "$ac_t""no" 1>&6
11159 if test $have_ssleay = no ; then
11160 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11161 echo "configure:11162: checking for SSL_library_init in -lssl" >&5
11162 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11163 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11164 echo $ac_n "(cached) $ac_c" 1>&6
11166 ac_save_LIBS="$LIBS"
11167 LIBS="-lssl -lcrypto $LIBS"
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11170 "configure"
11170 #include "confdefs.h"
11171 /* Override any gcc2 internal prototype to avoid an error. */
11172 /* We use char because int might match the return type of a gcc2
11173 builtin and then its argument prototype would still apply. */
11174 char SSL_library_init();
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11182 eval "ac_cv_lib_$ac_lib_var=yes"
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 eval "ac_cv_lib_$ac_lib_var=no"
11190 LIBS="$ac_save_LIBS"
11193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11194 echo "$ac_t""yes" 1>&6
11198 echo "$ac_t""no" 1>&6
11204 if test $have_ssleay = no ; then
11205 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11206 echo "configure:11207: checking for ssl3_accept in -lssl" >&5
11207 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11208 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11209 echo $ac_n "(cached) $ac_c" 1>&6
11211 ac_save_LIBS="$LIBS"
11212 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11216 /* Override any gcc2 internal prototype to avoid an error. */
11217 /* We use char because int might match the return type of a gcc2
11218 builtin and then its argument prototype would still apply. */
11219 char ssl3_accept();
11225 if { (eval echo configure:11226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11227 eval "ac_cv_lib_$ac_lib_var=yes"
11229 echo "configure: failed program was:" >&5
11230 cat conftest.$ac_ext >&5
11232 eval "ac_cv_lib_$ac_lib_var=no"
11235 LIBS="$ac_save_LIBS"
11238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11239 echo "$ac_t""yes" 1>&6
11243 echo "$ac_t""no" 1>&6
11249 if test $have_ssleay = yes ; then
11253 cat >> confdefs.h <<\EOF
11254 #define HAVE_SSLEAY 1
11258 if test $need_rsaref = yes; then
11259 cat >> confdefs.h <<\EOF
11260 #define HAVE_RSAREF 1
11264 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11266 TLS_LIBS="-lssl -lcrypto"
11272 echo "configure: warning: TLS data protection not supported!" 1>&2
11276 if test $ol_link_tls = yes ; then
11277 cat >> confdefs.h <<\EOF
11283 elif test $ol_with_tls = auto ; then
11284 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11285 echo "configure: warning: TLS data protection not supported!" 1>&2
11287 elif test $ol_with_tls != no ; then
11288 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11291 if test $ol_enable_lmpasswd != no; then
11292 if test $ol_link_tls != yes ; then
11293 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11296 cat >> confdefs.h <<\EOF
11297 #define SLAPD_LMHASH 1
11304 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11305 -o $ol_with_threads = nt ; then
11308 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11309 echo "configure:11310: checking for _beginthread" >&5
11310 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11311 echo $ac_n "(cached) $ac_c" 1>&6
11313 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure"
11315 #include "confdefs.h"
11316 /* System header to define __stub macros and hopefully few prototypes,
11317 which can conflict with char _beginthread(); below. */
11318 #include <assert.h>
11319 /* Override any gcc2 internal prototype to avoid an error. */
11320 /* We use char because int might match the return type of a gcc2
11321 builtin and then its argument prototype would still apply. */
11322 char _beginthread();
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11338 if { (eval echo configure:11339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11340 eval "ac_cv_func__beginthread=yes"
11342 echo "configure: failed program was:" >&5
11343 cat conftest.$ac_ext >&5
11345 eval "ac_cv_func__beginthread=no"
11350 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11351 echo "$ac_t""yes" 1>&6
11354 echo "$ac_t""no" 1>&6
11358 if test $ac_cv_func__beginthread = yes ; then
11359 cat >> confdefs.h <<\EOF
11360 #define HAVE_NT_THREADS 1
11363 ol_cv_nt_threads=yes
11367 if test "$ol_cv_nt_threads" = yes ; then
11369 ol_with_threads=found
11370 ol_with_yielding_select=yes
11372 cat >> confdefs.h <<\EOF
11373 #define HAVE_NT_SERVICE_MANAGER 1
11376 cat >> confdefs.h <<\EOF
11377 #define HAVE_NT_EVENT_LOG 1
11382 if test $ol_with_threads = nt ; then
11383 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11387 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11388 -o $ol_with_threads = posix ; then
11390 for ac_hdr in pthread.h
11392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11394 echo "configure:11395: checking for $ac_hdr" >&5
11395 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11396 echo $ac_n "(cached) $ac_c" 1>&6
11398 cat > conftest.$ac_ext <<EOF
11399 #line 11400 "configure"
11400 #include "confdefs.h"
11403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11404 { (eval echo configure:11405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11406 if test -z "$ac_err"; then
11408 eval "ac_cv_header_$ac_safe=yes"
11411 echo "configure: failed program was:" >&5
11412 cat conftest.$ac_ext >&5
11414 eval "ac_cv_header_$ac_safe=no"
11418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11419 echo "$ac_t""yes" 1>&6
11420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11421 cat >> confdefs.h <<EOF
11422 #define $ac_tr_hdr 1
11426 echo "$ac_t""no" 1>&6
11431 if test $ac_cv_header_pthread_h = yes ; then
11432 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11433 echo "configure:11434: checking POSIX thread version" >&5
11434 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11435 echo $ac_n "(cached) $ac_c" 1>&6
11438 cat > conftest.$ac_ext <<EOF
11439 #line 11440 "configure"
11440 #include "confdefs.h"
11442 # include <pthread.h>
11446 int i = PTHREAD_CREATE_JOINABLE;
11450 if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include <pthread.h>
11458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11459 egrep "pthread_detach" >/dev/null 2>&1; then
11461 ol_cv_pthread_version=10
11464 ol_cv_pthread_version=8
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11473 cat > conftest.$ac_ext <<EOF
11474 #line 11475 "configure"
11475 #include "confdefs.h"
11477 # include <pthread.h>
11478 # ifdef PTHREAD_CREATE_UNDETACHED
11483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11484 egrep "draft7" >/dev/null 2>&1; then
11486 ol_cv_pthread_version=7
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 #include <pthread.h>
11495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11496 egrep "pthread_attr_init" >/dev/null 2>&1; then
11498 ol_cv_pthread_version=6
11502 cat > conftest.$ac_ext <<EOF
11503 #line 11504 "configure"
11504 #include "confdefs.h"
11506 # include <pthread.h>
11507 #ifdef PTHREAD_MUTEX_INITIALIZER
11512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11513 egrep "draft5" >/dev/null 2>&1; then
11515 ol_cv_pthread_version=5
11518 ol_cv_pthread_version=4
11533 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11536 if test $ol_cv_pthread_version != 0 ; then
11537 cat >> confdefs.h <<EOF
11538 #define HAVE_PTHREADS $ol_cv_pthread_version
11542 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11545 # consider threads found
11546 ol_with_threads=found
11549 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11550 echo "configure:11551: checking for LinuxThreads pthread.h" >&5
11551 if eval "test \"\${ol_cv_header_linux_threads+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>
11559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11560 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11562 ol_cv_header_linux_threads=yes
11565 ol_cv_header_linux_threads=no
11572 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11573 if test $ol_cv_header_linux_threads = yes; then
11574 cat >> confdefs.h <<\EOF
11575 #define HAVE_LINUX_THREADS 1
11581 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11582 echo "configure:11583: checking for GNU Pth pthread.h" >&5
11583 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11586 cat > conftest.$ac_ext <<EOF
11587 #line 11588 "configure"
11588 #include "confdefs.h"
11589 #include <pthread.h>
11590 #ifdef _POSIX_THREAD_IS_GNU_PTH
11595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11596 egrep "__gnu_pth__" >/dev/null 2>&1; then
11598 ol_cv_header_gnu_pth_pthread_h=yes
11601 ol_cv_header_gnu_pth_pthread_h=no
11608 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11611 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11612 for ac_hdr in sched.h
11614 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11615 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11616 echo "configure:11617: checking for $ac_hdr" >&5
11617 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11625 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11626 { (eval echo configure:11627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11627 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11628 if test -z "$ac_err"; then
11630 eval "ac_cv_header_$ac_safe=yes"
11633 echo "configure: failed program was:" >&5
11634 cat conftest.$ac_ext >&5
11636 eval "ac_cv_header_$ac_safe=no"
11640 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11641 echo "$ac_t""yes" 1>&6
11642 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11643 cat >> confdefs.h <<EOF
11644 #define $ac_tr_hdr 1
11648 echo "$ac_t""no" 1>&6
11655 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11656 echo "configure:11657: checking for pthread_create in default libraries" >&5
11657 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11661 if test "$cross_compiling" = yes; then
11662 cat > conftest.$ac_ext <<EOF
11663 #line 11664 "configure"
11664 #include "confdefs.h"
11665 /* pthread test headers */
11666 #include <pthread.h>
11667 #if HAVE_PTHREADS < 7
11671 #define NULL (void*)0
11674 static void *task(p)
11677 return (void *) (p == NULL);
11682 /* pthread test function */
11683 #ifndef PTHREAD_CREATE_DETACHED
11684 #define PTHREAD_CREATE_DETACHED 1
11688 int detach = PTHREAD_CREATE_DETACHED;
11690 #if HAVE_PTHREADS > 4
11691 /* Final pthreads */
11692 pthread_attr_t attr;
11694 status = pthread_attr_init(&attr);
11695 if( status ) return status;
11697 #if HAVE_PTHREADS < 7
11698 status = pthread_attr_setdetachstate(&attr, &detach);
11699 if( status < 0 ) status = errno;
11701 status = pthread_attr_setdetachstate(&attr, detach);
11703 if( status ) return status;
11704 status = pthread_create( &t, &attr, task, NULL );
11705 #if HAVE_PTHREADS < 7
11706 if( status < 0 ) status = errno;
11708 if( status ) return status;
11710 /* Draft 4 pthreads */
11711 status = pthread_create( &t, pthread_attr_default, task, NULL );
11712 if( status ) return errno;
11714 /* give thread a chance to complete */
11715 /* it should remain joinable and hence detachable */
11718 status = pthread_detach( &t );
11719 if( status ) return errno;
11722 #ifdef HAVE_LINUX_THREADS
11723 pthread_kill_other_threads_np();
11730 if { (eval echo configure:11731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11732 ol_cv_pthread_create=yes
11734 echo "configure: failed program was:" >&5
11735 cat conftest.$ac_ext >&5
11737 ol_cv_pthread_create=no
11741 cat > conftest.$ac_ext <<EOF
11742 #line 11743 "configure"
11743 #include "confdefs.h"
11744 /* pthread test headers */
11745 #include <pthread.h>
11746 #if HAVE_PTHREADS < 7
11750 #define NULL (void*)0
11753 static void *task(p)
11756 return (void *) (p == NULL);
11760 int main(argc, argv)
11765 /* pthread test function */
11766 #ifndef PTHREAD_CREATE_DETACHED
11767 #define PTHREAD_CREATE_DETACHED 1
11771 int detach = PTHREAD_CREATE_DETACHED;
11773 #if HAVE_PTHREADS > 4
11774 /* Final pthreads */
11775 pthread_attr_t attr;
11777 status = pthread_attr_init(&attr);
11778 if( status ) return status;
11780 #if HAVE_PTHREADS < 7
11781 status = pthread_attr_setdetachstate(&attr, &detach);
11782 if( status < 0 ) status = errno;
11784 status = pthread_attr_setdetachstate(&attr, detach);
11786 if( status ) return status;
11787 status = pthread_create( &t, &attr, task, NULL );
11788 #if HAVE_PTHREADS < 7
11789 if( status < 0 ) status = errno;
11791 if( status ) return status;
11793 /* Draft 4 pthreads */
11794 status = pthread_create( &t, pthread_attr_default, task, NULL );
11795 if( status ) return errno;
11797 /* give thread a chance to complete */
11798 /* it should remain joinable and hence detachable */
11801 status = pthread_detach( &t );
11802 if( status ) return errno;
11805 #ifdef HAVE_LINUX_THREADS
11806 pthread_kill_other_threads_np();
11814 if { (eval echo configure:11815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11816 ol_cv_pthread_create=yes
11818 echo "configure: failed program was:" >&5
11819 cat conftest.$ac_ext >&5
11821 ol_cv_pthread_create=no
11828 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11830 if test $ol_cv_pthread_create != no ; then
11831 ol_link_threads=posix
11832 ol_link_pthreads=""
11835 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11836 if test "$ol_link_threads" = no ; then
11838 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11839 echo "configure:11840: checking for pthread link with -kthread" >&5
11840 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11841 echo $ac_n "(cached) $ac_c" 1>&6
11846 LIBS="-kthread $LIBS"
11848 if test "$cross_compiling" = yes; then
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852 /* pthread test headers */
11853 #include <pthread.h>
11854 #if HAVE_PTHREADS < 7
11858 #define NULL (void*)0
11861 static void *task(p)
11864 return (void *) (p == NULL);
11869 /* pthread test function */
11870 #ifndef PTHREAD_CREATE_DETACHED
11871 #define PTHREAD_CREATE_DETACHED 1
11875 int detach = PTHREAD_CREATE_DETACHED;
11877 #if HAVE_PTHREADS > 4
11878 /* Final pthreads */
11879 pthread_attr_t attr;
11881 status = pthread_attr_init(&attr);
11882 if( status ) return status;
11884 #if HAVE_PTHREADS < 7
11885 status = pthread_attr_setdetachstate(&attr, &detach);
11886 if( status < 0 ) status = errno;
11888 status = pthread_attr_setdetachstate(&attr, detach);
11890 if( status ) return status;
11891 status = pthread_create( &t, &attr, task, NULL );
11892 #if HAVE_PTHREADS < 7
11893 if( status < 0 ) status = errno;
11895 if( status ) return status;
11897 /* Draft 4 pthreads */
11898 status = pthread_create( &t, pthread_attr_default, task, NULL );
11899 if( status ) return errno;
11901 /* give thread a chance to complete */
11902 /* it should remain joinable and hence detachable */
11905 status = pthread_detach( &t );
11906 if( status ) return errno;
11909 #ifdef HAVE_LINUX_THREADS
11910 pthread_kill_other_threads_np();
11917 if { (eval echo configure:11918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11919 ol_cv_pthread_kthread=yes
11921 echo "configure: failed program was:" >&5
11922 cat conftest.$ac_ext >&5
11924 ol_cv_pthread_kthread=no
11928 cat > conftest.$ac_ext <<EOF
11929 #line 11930 "configure"
11930 #include "confdefs.h"
11931 /* pthread test headers */
11932 #include <pthread.h>
11933 #if HAVE_PTHREADS < 7
11937 #define NULL (void*)0
11940 static void *task(p)
11943 return (void *) (p == NULL);
11947 int main(argc, argv)
11952 /* pthread test function */
11953 #ifndef PTHREAD_CREATE_DETACHED
11954 #define PTHREAD_CREATE_DETACHED 1
11958 int detach = PTHREAD_CREATE_DETACHED;
11960 #if HAVE_PTHREADS > 4
11961 /* Final pthreads */
11962 pthread_attr_t attr;
11964 status = pthread_attr_init(&attr);
11965 if( status ) return status;
11967 #if HAVE_PTHREADS < 7
11968 status = pthread_attr_setdetachstate(&attr, &detach);
11969 if( status < 0 ) status = errno;
11971 status = pthread_attr_setdetachstate(&attr, detach);
11973 if( status ) return status;
11974 status = pthread_create( &t, &attr, task, NULL );
11975 #if HAVE_PTHREADS < 7
11976 if( status < 0 ) status = errno;
11978 if( status ) return status;
11980 /* Draft 4 pthreads */
11981 status = pthread_create( &t, pthread_attr_default, task, NULL );
11982 if( status ) return errno;
11984 /* give thread a chance to complete */
11985 /* it should remain joinable and hence detachable */
11988 status = pthread_detach( &t );
11989 if( status ) return errno;
11992 #ifdef HAVE_LINUX_THREADS
11993 pthread_kill_other_threads_np();
12001 if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12003 ol_cv_pthread_kthread=yes
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12008 ol_cv_pthread_kthread=no
12019 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12021 if test $ol_cv_pthread_kthread = yes ; then
12022 ol_link_pthreads="-kthread"
12023 ol_link_threads=posix
12027 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12028 if test "$ol_link_threads" = no ; then
12030 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12031 echo "configure:12032: checking for pthread link with -pthread" >&5
12032 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12033 echo $ac_n "(cached) $ac_c" 1>&6
12038 LIBS="-pthread $LIBS"
12040 if test "$cross_compiling" = yes; then
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 /* pthread test headers */
12045 #include <pthread.h>
12046 #if HAVE_PTHREADS < 7
12050 #define NULL (void*)0
12053 static void *task(p)
12056 return (void *) (p == NULL);
12061 /* pthread test function */
12062 #ifndef PTHREAD_CREATE_DETACHED
12063 #define PTHREAD_CREATE_DETACHED 1
12067 int detach = PTHREAD_CREATE_DETACHED;
12069 #if HAVE_PTHREADS > 4
12070 /* Final pthreads */
12071 pthread_attr_t attr;
12073 status = pthread_attr_init(&attr);
12074 if( status ) return status;
12076 #if HAVE_PTHREADS < 7
12077 status = pthread_attr_setdetachstate(&attr, &detach);
12078 if( status < 0 ) status = errno;
12080 status = pthread_attr_setdetachstate(&attr, detach);
12082 if( status ) return status;
12083 status = pthread_create( &t, &attr, task, NULL );
12084 #if HAVE_PTHREADS < 7
12085 if( status < 0 ) status = errno;
12087 if( status ) return status;
12089 /* Draft 4 pthreads */
12090 status = pthread_create( &t, pthread_attr_default, task, NULL );
12091 if( status ) return errno;
12093 /* give thread a chance to complete */
12094 /* it should remain joinable and hence detachable */
12097 status = pthread_detach( &t );
12098 if( status ) return errno;
12101 #ifdef HAVE_LINUX_THREADS
12102 pthread_kill_other_threads_np();
12109 if { (eval echo configure:12110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12111 ol_cv_pthread_pthread=yes
12113 echo "configure: failed program was:" >&5
12114 cat conftest.$ac_ext >&5
12116 ol_cv_pthread_pthread=no
12120 cat > conftest.$ac_ext <<EOF
12121 #line 12122 "configure"
12122 #include "confdefs.h"
12123 /* pthread test headers */
12124 #include <pthread.h>
12125 #if HAVE_PTHREADS < 7
12129 #define NULL (void*)0
12132 static void *task(p)
12135 return (void *) (p == NULL);
12139 int main(argc, argv)
12144 /* pthread test function */
12145 #ifndef PTHREAD_CREATE_DETACHED
12146 #define PTHREAD_CREATE_DETACHED 1
12150 int detach = PTHREAD_CREATE_DETACHED;
12152 #if HAVE_PTHREADS > 4
12153 /* Final pthreads */
12154 pthread_attr_t attr;
12156 status = pthread_attr_init(&attr);
12157 if( status ) return status;
12159 #if HAVE_PTHREADS < 7
12160 status = pthread_attr_setdetachstate(&attr, &detach);
12161 if( status < 0 ) status = errno;
12163 status = pthread_attr_setdetachstate(&attr, detach);
12165 if( status ) return status;
12166 status = pthread_create( &t, &attr, task, NULL );
12167 #if HAVE_PTHREADS < 7
12168 if( status < 0 ) status = errno;
12170 if( status ) return status;
12172 /* Draft 4 pthreads */
12173 status = pthread_create( &t, pthread_attr_default, task, NULL );
12174 if( status ) return errno;
12176 /* give thread a chance to complete */
12177 /* it should remain joinable and hence detachable */
12180 status = pthread_detach( &t );
12181 if( status ) return errno;
12184 #ifdef HAVE_LINUX_THREADS
12185 pthread_kill_other_threads_np();
12193 if { (eval echo configure:12194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12195 ol_cv_pthread_pthread=yes
12197 echo "configure: failed program was:" >&5
12198 cat conftest.$ac_ext >&5
12200 ol_cv_pthread_pthread=no
12211 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12213 if test $ol_cv_pthread_pthread = yes ; then
12214 ol_link_pthreads="-pthread"
12215 ol_link_threads=posix
12219 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12220 if test "$ol_link_threads" = no ; then
12222 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12223 echo "configure:12224: checking for pthread link with -pthreads" >&5
12224 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12225 echo $ac_n "(cached) $ac_c" 1>&6
12230 LIBS="-pthreads $LIBS"
12232 if test "$cross_compiling" = yes; then
12233 cat > conftest.$ac_ext <<EOF
12234 #line 12235 "configure"
12235 #include "confdefs.h"
12236 /* pthread test headers */
12237 #include <pthread.h>
12238 #if HAVE_PTHREADS < 7
12242 #define NULL (void*)0
12245 static void *task(p)
12248 return (void *) (p == NULL);
12253 /* pthread test function */
12254 #ifndef PTHREAD_CREATE_DETACHED
12255 #define PTHREAD_CREATE_DETACHED 1
12259 int detach = PTHREAD_CREATE_DETACHED;
12261 #if HAVE_PTHREADS > 4
12262 /* Final pthreads */
12263 pthread_attr_t attr;
12265 status = pthread_attr_init(&attr);
12266 if( status ) return status;
12268 #if HAVE_PTHREADS < 7
12269 status = pthread_attr_setdetachstate(&attr, &detach);
12270 if( status < 0 ) status = errno;
12272 status = pthread_attr_setdetachstate(&attr, detach);
12274 if( status ) return status;
12275 status = pthread_create( &t, &attr, task, NULL );
12276 #if HAVE_PTHREADS < 7
12277 if( status < 0 ) status = errno;
12279 if( status ) return status;
12281 /* Draft 4 pthreads */
12282 status = pthread_create( &t, pthread_attr_default, task, NULL );
12283 if( status ) return errno;
12285 /* give thread a chance to complete */
12286 /* it should remain joinable and hence detachable */
12289 status = pthread_detach( &t );
12290 if( status ) return errno;
12293 #ifdef HAVE_LINUX_THREADS
12294 pthread_kill_other_threads_np();
12301 if { (eval echo configure:12302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12303 ol_cv_pthread_pthreads=yes
12305 echo "configure: failed program was:" >&5
12306 cat conftest.$ac_ext >&5
12308 ol_cv_pthread_pthreads=no
12312 cat > conftest.$ac_ext <<EOF
12313 #line 12314 "configure"
12314 #include "confdefs.h"
12315 /* pthread test headers */
12316 #include <pthread.h>
12317 #if HAVE_PTHREADS < 7
12321 #define NULL (void*)0
12324 static void *task(p)
12327 return (void *) (p == NULL);
12331 int main(argc, argv)
12336 /* pthread test function */
12337 #ifndef PTHREAD_CREATE_DETACHED
12338 #define PTHREAD_CREATE_DETACHED 1
12342 int detach = PTHREAD_CREATE_DETACHED;
12344 #if HAVE_PTHREADS > 4
12345 /* Final pthreads */
12346 pthread_attr_t attr;
12348 status = pthread_attr_init(&attr);
12349 if( status ) return status;
12351 #if HAVE_PTHREADS < 7
12352 status = pthread_attr_setdetachstate(&attr, &detach);
12353 if( status < 0 ) status = errno;
12355 status = pthread_attr_setdetachstate(&attr, detach);
12357 if( status ) return status;
12358 status = pthread_create( &t, &attr, task, NULL );
12359 #if HAVE_PTHREADS < 7
12360 if( status < 0 ) status = errno;
12362 if( status ) return status;
12364 /* Draft 4 pthreads */
12365 status = pthread_create( &t, pthread_attr_default, task, NULL );
12366 if( status ) return errno;
12368 /* give thread a chance to complete */
12369 /* it should remain joinable and hence detachable */
12372 status = pthread_detach( &t );
12373 if( status ) return errno;
12376 #ifdef HAVE_LINUX_THREADS
12377 pthread_kill_other_threads_np();
12385 if { (eval echo configure:12386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12387 ol_cv_pthread_pthreads=yes
12389 echo "configure: failed program was:" >&5
12390 cat conftest.$ac_ext >&5
12392 ol_cv_pthread_pthreads=no
12403 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12405 if test $ol_cv_pthread_pthreads = yes ; then
12406 ol_link_pthreads="-pthreads"
12407 ol_link_threads=posix
12411 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12412 if test "$ol_link_threads" = no ; then
12414 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12415 echo "configure:12416: checking for pthread link with -mthreads" >&5
12416 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12422 LIBS="-mthreads $LIBS"
12424 if test "$cross_compiling" = yes; then
12425 cat > conftest.$ac_ext <<EOF
12426 #line 12427 "configure"
12427 #include "confdefs.h"
12428 /* pthread test headers */
12429 #include <pthread.h>
12430 #if HAVE_PTHREADS < 7
12434 #define NULL (void*)0
12437 static void *task(p)
12440 return (void *) (p == NULL);
12445 /* pthread test function */
12446 #ifndef PTHREAD_CREATE_DETACHED
12447 #define PTHREAD_CREATE_DETACHED 1
12451 int detach = PTHREAD_CREATE_DETACHED;
12453 #if HAVE_PTHREADS > 4
12454 /* Final pthreads */
12455 pthread_attr_t attr;
12457 status = pthread_attr_init(&attr);
12458 if( status ) return status;
12460 #if HAVE_PTHREADS < 7
12461 status = pthread_attr_setdetachstate(&attr, &detach);
12462 if( status < 0 ) status = errno;
12464 status = pthread_attr_setdetachstate(&attr, detach);
12466 if( status ) return status;
12467 status = pthread_create( &t, &attr, task, NULL );
12468 #if HAVE_PTHREADS < 7
12469 if( status < 0 ) status = errno;
12471 if( status ) return status;
12473 /* Draft 4 pthreads */
12474 status = pthread_create( &t, pthread_attr_default, task, NULL );
12475 if( status ) return errno;
12477 /* give thread a chance to complete */
12478 /* it should remain joinable and hence detachable */
12481 status = pthread_detach( &t );
12482 if( status ) return errno;
12485 #ifdef HAVE_LINUX_THREADS
12486 pthread_kill_other_threads_np();
12493 if { (eval echo configure:12494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12495 ol_cv_pthread_mthreads=yes
12497 echo "configure: failed program was:" >&5
12498 cat conftest.$ac_ext >&5
12500 ol_cv_pthread_mthreads=no
12504 cat > conftest.$ac_ext <<EOF
12505 #line 12506 "configure"
12506 #include "confdefs.h"
12507 /* pthread test headers */
12508 #include <pthread.h>
12509 #if HAVE_PTHREADS < 7
12513 #define NULL (void*)0
12516 static void *task(p)
12519 return (void *) (p == NULL);
12523 int main(argc, argv)
12528 /* pthread test function */
12529 #ifndef PTHREAD_CREATE_DETACHED
12530 #define PTHREAD_CREATE_DETACHED 1
12534 int detach = PTHREAD_CREATE_DETACHED;
12536 #if HAVE_PTHREADS > 4
12537 /* Final pthreads */
12538 pthread_attr_t attr;
12540 status = pthread_attr_init(&attr);
12541 if( status ) return status;
12543 #if HAVE_PTHREADS < 7
12544 status = pthread_attr_setdetachstate(&attr, &detach);
12545 if( status < 0 ) status = errno;
12547 status = pthread_attr_setdetachstate(&attr, detach);
12549 if( status ) return status;
12550 status = pthread_create( &t, &attr, task, NULL );
12551 #if HAVE_PTHREADS < 7
12552 if( status < 0 ) status = errno;
12554 if( status ) return status;
12556 /* Draft 4 pthreads */
12557 status = pthread_create( &t, pthread_attr_default, task, NULL );
12558 if( status ) return errno;
12560 /* give thread a chance to complete */
12561 /* it should remain joinable and hence detachable */
12564 status = pthread_detach( &t );
12565 if( status ) return errno;
12568 #ifdef HAVE_LINUX_THREADS
12569 pthread_kill_other_threads_np();
12577 if { (eval echo configure:12578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12579 ol_cv_pthread_mthreads=yes
12581 echo "configure: failed program was:" >&5
12582 cat conftest.$ac_ext >&5
12584 ol_cv_pthread_mthreads=no
12595 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12597 if test $ol_cv_pthread_mthreads = yes ; then
12598 ol_link_pthreads="-mthreads"
12599 ol_link_threads=posix
12603 # Pthread try link: -thread (ol_cv_pthread_thread)
12604 if test "$ol_link_threads" = no ; then
12606 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12607 echo "configure:12608: checking for pthread link with -thread" >&5
12608 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12609 echo $ac_n "(cached) $ac_c" 1>&6
12614 LIBS="-thread $LIBS"
12616 if test "$cross_compiling" = yes; then
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 /* pthread test headers */
12621 #include <pthread.h>
12622 #if HAVE_PTHREADS < 7
12626 #define NULL (void*)0
12629 static void *task(p)
12632 return (void *) (p == NULL);
12637 /* pthread test function */
12638 #ifndef PTHREAD_CREATE_DETACHED
12639 #define PTHREAD_CREATE_DETACHED 1
12643 int detach = PTHREAD_CREATE_DETACHED;
12645 #if HAVE_PTHREADS > 4
12646 /* Final pthreads */
12647 pthread_attr_t attr;
12649 status = pthread_attr_init(&attr);
12650 if( status ) return status;
12652 #if HAVE_PTHREADS < 7
12653 status = pthread_attr_setdetachstate(&attr, &detach);
12654 if( status < 0 ) status = errno;
12656 status = pthread_attr_setdetachstate(&attr, detach);
12658 if( status ) return status;
12659 status = pthread_create( &t, &attr, task, NULL );
12660 #if HAVE_PTHREADS < 7
12661 if( status < 0 ) status = errno;
12663 if( status ) return status;
12665 /* Draft 4 pthreads */
12666 status = pthread_create( &t, pthread_attr_default, task, NULL );
12667 if( status ) return errno;
12669 /* give thread a chance to complete */
12670 /* it should remain joinable and hence detachable */
12673 status = pthread_detach( &t );
12674 if( status ) return errno;
12677 #ifdef HAVE_LINUX_THREADS
12678 pthread_kill_other_threads_np();
12685 if { (eval echo configure:12686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12687 ol_cv_pthread_thread=yes
12689 echo "configure: failed program was:" >&5
12690 cat conftest.$ac_ext >&5
12692 ol_cv_pthread_thread=no
12696 cat > conftest.$ac_ext <<EOF
12697 #line 12698 "configure"
12698 #include "confdefs.h"
12699 /* pthread test headers */
12700 #include <pthread.h>
12701 #if HAVE_PTHREADS < 7
12705 #define NULL (void*)0
12708 static void *task(p)
12711 return (void *) (p == NULL);
12715 int main(argc, argv)
12720 /* pthread test function */
12721 #ifndef PTHREAD_CREATE_DETACHED
12722 #define PTHREAD_CREATE_DETACHED 1
12726 int detach = PTHREAD_CREATE_DETACHED;
12728 #if HAVE_PTHREADS > 4
12729 /* Final pthreads */
12730 pthread_attr_t attr;
12732 status = pthread_attr_init(&attr);
12733 if( status ) return status;
12735 #if HAVE_PTHREADS < 7
12736 status = pthread_attr_setdetachstate(&attr, &detach);
12737 if( status < 0 ) status = errno;
12739 status = pthread_attr_setdetachstate(&attr, detach);
12741 if( status ) return status;
12742 status = pthread_create( &t, &attr, task, NULL );
12743 #if HAVE_PTHREADS < 7
12744 if( status < 0 ) status = errno;
12746 if( status ) return status;
12748 /* Draft 4 pthreads */
12749 status = pthread_create( &t, pthread_attr_default, task, NULL );
12750 if( status ) return errno;
12752 /* give thread a chance to complete */
12753 /* it should remain joinable and hence detachable */
12756 status = pthread_detach( &t );
12757 if( status ) return errno;
12760 #ifdef HAVE_LINUX_THREADS
12761 pthread_kill_other_threads_np();
12769 if { (eval echo configure:12770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12771 ol_cv_pthread_thread=yes
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12776 ol_cv_pthread_thread=no
12787 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12789 if test $ol_cv_pthread_thread = yes ; then
12790 ol_link_pthreads="-thread"
12791 ol_link_threads=posix
12796 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12797 if test "$ol_link_threads" = no ; then
12798 # try -lpthread -lmach -lexc -lc_r
12799 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12800 echo "configure:12801: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12801 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12802 echo $ac_n "(cached) $ac_c" 1>&6
12807 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12809 if test "$cross_compiling" = yes; then
12810 cat > conftest.$ac_ext <<EOF
12811 #line 12812 "configure"
12812 #include "confdefs.h"
12813 /* pthread test headers */
12814 #include <pthread.h>
12815 #if HAVE_PTHREADS < 7
12819 #define NULL (void*)0
12822 static void *task(p)
12825 return (void *) (p == NULL);
12830 /* pthread test function */
12831 #ifndef PTHREAD_CREATE_DETACHED
12832 #define PTHREAD_CREATE_DETACHED 1
12836 int detach = PTHREAD_CREATE_DETACHED;
12838 #if HAVE_PTHREADS > 4
12839 /* Final pthreads */
12840 pthread_attr_t attr;
12842 status = pthread_attr_init(&attr);
12843 if( status ) return status;
12845 #if HAVE_PTHREADS < 7
12846 status = pthread_attr_setdetachstate(&attr, &detach);
12847 if( status < 0 ) status = errno;
12849 status = pthread_attr_setdetachstate(&attr, detach);
12851 if( status ) return status;
12852 status = pthread_create( &t, &attr, task, NULL );
12853 #if HAVE_PTHREADS < 7
12854 if( status < 0 ) status = errno;
12856 if( status ) return status;
12858 /* Draft 4 pthreads */
12859 status = pthread_create( &t, pthread_attr_default, task, NULL );
12860 if( status ) return errno;
12862 /* give thread a chance to complete */
12863 /* it should remain joinable and hence detachable */
12866 status = pthread_detach( &t );
12867 if( status ) return errno;
12870 #ifdef HAVE_LINUX_THREADS
12871 pthread_kill_other_threads_np();
12878 if { (eval echo configure:12879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12880 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12882 echo "configure: failed program was:" >&5
12883 cat conftest.$ac_ext >&5
12885 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12889 cat > conftest.$ac_ext <<EOF
12890 #line 12891 "configure"
12891 #include "confdefs.h"
12892 /* pthread test headers */
12893 #include <pthread.h>
12894 #if HAVE_PTHREADS < 7
12898 #define NULL (void*)0
12901 static void *task(p)
12904 return (void *) (p == NULL);
12908 int main(argc, argv)
12913 /* pthread test function */
12914 #ifndef PTHREAD_CREATE_DETACHED
12915 #define PTHREAD_CREATE_DETACHED 1
12919 int detach = PTHREAD_CREATE_DETACHED;
12921 #if HAVE_PTHREADS > 4
12922 /* Final pthreads */
12923 pthread_attr_t attr;
12925 status = pthread_attr_init(&attr);
12926 if( status ) return status;
12928 #if HAVE_PTHREADS < 7
12929 status = pthread_attr_setdetachstate(&attr, &detach);
12930 if( status < 0 ) status = errno;
12932 status = pthread_attr_setdetachstate(&attr, detach);
12934 if( status ) return status;
12935 status = pthread_create( &t, &attr, task, NULL );
12936 #if HAVE_PTHREADS < 7
12937 if( status < 0 ) status = errno;
12939 if( status ) return status;
12941 /* Draft 4 pthreads */
12942 status = pthread_create( &t, pthread_attr_default, task, NULL );
12943 if( status ) return errno;
12945 /* give thread a chance to complete */
12946 /* it should remain joinable and hence detachable */
12949 status = pthread_detach( &t );
12950 if( status ) return errno;
12953 #ifdef HAVE_LINUX_THREADS
12954 pthread_kill_other_threads_np();
12962 if { (eval echo configure:12963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12964 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12966 echo "configure: failed program was:" >&5
12967 cat conftest.$ac_ext >&5
12969 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12980 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
12982 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
12983 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
12984 ol_link_threads=posix
12988 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
12989 if test "$ol_link_threads" = no ; then
12990 # try -lpthread -lmach -lexc
12991 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
12992 echo "configure:12993: checking for pthread link with -lpthread -lmach -lexc" >&5
12993 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
12994 echo $ac_n "(cached) $ac_c" 1>&6
12999 LIBS="-lpthread -lmach -lexc $LIBS"
13001 if test "$cross_compiling" = yes; then
13002 cat > conftest.$ac_ext <<EOF
13003 #line 13004 "configure"
13004 #include "confdefs.h"
13005 /* pthread test headers */
13006 #include <pthread.h>
13007 #if HAVE_PTHREADS < 7
13011 #define NULL (void*)0
13014 static void *task(p)
13017 return (void *) (p == NULL);
13022 /* pthread test function */
13023 #ifndef PTHREAD_CREATE_DETACHED
13024 #define PTHREAD_CREATE_DETACHED 1
13028 int detach = PTHREAD_CREATE_DETACHED;
13030 #if HAVE_PTHREADS > 4
13031 /* Final pthreads */
13032 pthread_attr_t attr;
13034 status = pthread_attr_init(&attr);
13035 if( status ) return status;
13037 #if HAVE_PTHREADS < 7
13038 status = pthread_attr_setdetachstate(&attr, &detach);
13039 if( status < 0 ) status = errno;
13041 status = pthread_attr_setdetachstate(&attr, detach);
13043 if( status ) return status;
13044 status = pthread_create( &t, &attr, task, NULL );
13045 #if HAVE_PTHREADS < 7
13046 if( status < 0 ) status = errno;
13048 if( status ) return status;
13050 /* Draft 4 pthreads */
13051 status = pthread_create( &t, pthread_attr_default, task, NULL );
13052 if( status ) return errno;
13054 /* give thread a chance to complete */
13055 /* it should remain joinable and hence detachable */
13058 status = pthread_detach( &t );
13059 if( status ) return errno;
13062 #ifdef HAVE_LINUX_THREADS
13063 pthread_kill_other_threads_np();
13070 if { (eval echo configure:13071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13072 ol_cv_pthread_lpthread_lmach_lexc=yes
13074 echo "configure: failed program was:" >&5
13075 cat conftest.$ac_ext >&5
13077 ol_cv_pthread_lpthread_lmach_lexc=no
13081 cat > conftest.$ac_ext <<EOF
13082 #line 13083 "configure"
13083 #include "confdefs.h"
13084 /* pthread test headers */
13085 #include <pthread.h>
13086 #if HAVE_PTHREADS < 7
13090 #define NULL (void*)0
13093 static void *task(p)
13096 return (void *) (p == NULL);
13100 int main(argc, argv)
13105 /* pthread test function */
13106 #ifndef PTHREAD_CREATE_DETACHED
13107 #define PTHREAD_CREATE_DETACHED 1
13111 int detach = PTHREAD_CREATE_DETACHED;
13113 #if HAVE_PTHREADS > 4
13114 /* Final pthreads */
13115 pthread_attr_t attr;
13117 status = pthread_attr_init(&attr);
13118 if( status ) return status;
13120 #if HAVE_PTHREADS < 7
13121 status = pthread_attr_setdetachstate(&attr, &detach);
13122 if( status < 0 ) status = errno;
13124 status = pthread_attr_setdetachstate(&attr, detach);
13126 if( status ) return status;
13127 status = pthread_create( &t, &attr, task, NULL );
13128 #if HAVE_PTHREADS < 7
13129 if( status < 0 ) status = errno;
13131 if( status ) return status;
13133 /* Draft 4 pthreads */
13134 status = pthread_create( &t, pthread_attr_default, task, NULL );
13135 if( status ) return errno;
13137 /* give thread a chance to complete */
13138 /* it should remain joinable and hence detachable */
13141 status = pthread_detach( &t );
13142 if( status ) return errno;
13145 #ifdef HAVE_LINUX_THREADS
13146 pthread_kill_other_threads_np();
13154 if { (eval echo configure:13155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13156 ol_cv_pthread_lpthread_lmach_lexc=yes
13158 echo "configure: failed program was:" >&5
13159 cat conftest.$ac_ext >&5
13161 ol_cv_pthread_lpthread_lmach_lexc=no
13172 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13174 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13175 ol_link_pthreads="-lpthread -lmach -lexc"
13176 ol_link_threads=posix
13181 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13182 if test "$ol_link_threads" = no ; then
13183 # try -lpthread -Wl,-woff,85
13184 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13185 echo "configure:13186: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13186 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13187 echo $ac_n "(cached) $ac_c" 1>&6
13192 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13194 if test "$cross_compiling" = yes; then
13195 cat > conftest.$ac_ext <<EOF
13196 #line 13197 "configure"
13197 #include "confdefs.h"
13198 /* pthread test headers */
13199 #include <pthread.h>
13200 #if HAVE_PTHREADS < 7
13204 #define NULL (void*)0
13207 static void *task(p)
13210 return (void *) (p == NULL);
13215 /* pthread test function */
13216 #ifndef PTHREAD_CREATE_DETACHED
13217 #define PTHREAD_CREATE_DETACHED 1
13221 int detach = PTHREAD_CREATE_DETACHED;
13223 #if HAVE_PTHREADS > 4
13224 /* Final pthreads */
13225 pthread_attr_t attr;
13227 status = pthread_attr_init(&attr);
13228 if( status ) return status;
13230 #if HAVE_PTHREADS < 7
13231 status = pthread_attr_setdetachstate(&attr, &detach);
13232 if( status < 0 ) status = errno;
13234 status = pthread_attr_setdetachstate(&attr, detach);
13236 if( status ) return status;
13237 status = pthread_create( &t, &attr, task, NULL );
13238 #if HAVE_PTHREADS < 7
13239 if( status < 0 ) status = errno;
13241 if( status ) return status;
13243 /* Draft 4 pthreads */
13244 status = pthread_create( &t, pthread_attr_default, task, NULL );
13245 if( status ) return errno;
13247 /* give thread a chance to complete */
13248 /* it should remain joinable and hence detachable */
13251 status = pthread_detach( &t );
13252 if( status ) return errno;
13255 #ifdef HAVE_LINUX_THREADS
13256 pthread_kill_other_threads_np();
13263 if { (eval echo configure:13264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13265 ol_cv_pthread_lib_lpthread_woff=yes
13267 echo "configure: failed program was:" >&5
13268 cat conftest.$ac_ext >&5
13270 ol_cv_pthread_lib_lpthread_woff=no
13274 cat > conftest.$ac_ext <<EOF
13275 #line 13276 "configure"
13276 #include "confdefs.h"
13277 /* pthread test headers */
13278 #include <pthread.h>
13279 #if HAVE_PTHREADS < 7
13283 #define NULL (void*)0
13286 static void *task(p)
13289 return (void *) (p == NULL);
13293 int main(argc, argv)
13298 /* pthread test function */
13299 #ifndef PTHREAD_CREATE_DETACHED
13300 #define PTHREAD_CREATE_DETACHED 1
13304 int detach = PTHREAD_CREATE_DETACHED;
13306 #if HAVE_PTHREADS > 4
13307 /* Final pthreads */
13308 pthread_attr_t attr;
13310 status = pthread_attr_init(&attr);
13311 if( status ) return status;
13313 #if HAVE_PTHREADS < 7
13314 status = pthread_attr_setdetachstate(&attr, &detach);
13315 if( status < 0 ) status = errno;
13317 status = pthread_attr_setdetachstate(&attr, detach);
13319 if( status ) return status;
13320 status = pthread_create( &t, &attr, task, NULL );
13321 #if HAVE_PTHREADS < 7
13322 if( status < 0 ) status = errno;
13324 if( status ) return status;
13326 /* Draft 4 pthreads */
13327 status = pthread_create( &t, pthread_attr_default, task, NULL );
13328 if( status ) return errno;
13330 /* give thread a chance to complete */
13331 /* it should remain joinable and hence detachable */
13334 status = pthread_detach( &t );
13335 if( status ) return errno;
13338 #ifdef HAVE_LINUX_THREADS
13339 pthread_kill_other_threads_np();
13347 if { (eval echo configure:13348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13349 ol_cv_pthread_lib_lpthread_woff=yes
13351 echo "configure: failed program was:" >&5
13352 cat conftest.$ac_ext >&5
13354 ol_cv_pthread_lib_lpthread_woff=no
13365 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13367 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13368 ol_link_pthreads="-lpthread -Wl,-woff,85"
13369 ol_link_threads=posix
13374 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13375 if test "$ol_link_threads" = no ; then
13377 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13378 echo "configure:13379: checking for pthread link with -lpthread" >&5
13379 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13380 echo $ac_n "(cached) $ac_c" 1>&6
13385 LIBS="-lpthread $LIBS"
13387 if test "$cross_compiling" = yes; then
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13391 /* pthread test headers */
13392 #include <pthread.h>
13393 #if HAVE_PTHREADS < 7
13397 #define NULL (void*)0
13400 static void *task(p)
13403 return (void *) (p == NULL);
13408 /* pthread test function */
13409 #ifndef PTHREAD_CREATE_DETACHED
13410 #define PTHREAD_CREATE_DETACHED 1
13414 int detach = PTHREAD_CREATE_DETACHED;
13416 #if HAVE_PTHREADS > 4
13417 /* Final pthreads */
13418 pthread_attr_t attr;
13420 status = pthread_attr_init(&attr);
13421 if( status ) return status;
13423 #if HAVE_PTHREADS < 7
13424 status = pthread_attr_setdetachstate(&attr, &detach);
13425 if( status < 0 ) status = errno;
13427 status = pthread_attr_setdetachstate(&attr, detach);
13429 if( status ) return status;
13430 status = pthread_create( &t, &attr, task, NULL );
13431 #if HAVE_PTHREADS < 7
13432 if( status < 0 ) status = errno;
13434 if( status ) return status;
13436 /* Draft 4 pthreads */
13437 status = pthread_create( &t, pthread_attr_default, task, NULL );
13438 if( status ) return errno;
13440 /* give thread a chance to complete */
13441 /* it should remain joinable and hence detachable */
13444 status = pthread_detach( &t );
13445 if( status ) return errno;
13448 #ifdef HAVE_LINUX_THREADS
13449 pthread_kill_other_threads_np();
13456 if { (eval echo configure:13457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13458 ol_cv_pthread_lpthread=yes
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13463 ol_cv_pthread_lpthread=no
13467 cat > conftest.$ac_ext <<EOF
13468 #line 13469 "configure"
13469 #include "confdefs.h"
13470 /* pthread test headers */
13471 #include <pthread.h>
13472 #if HAVE_PTHREADS < 7
13476 #define NULL (void*)0
13479 static void *task(p)
13482 return (void *) (p == NULL);
13486 int main(argc, argv)
13491 /* pthread test function */
13492 #ifndef PTHREAD_CREATE_DETACHED
13493 #define PTHREAD_CREATE_DETACHED 1
13497 int detach = PTHREAD_CREATE_DETACHED;
13499 #if HAVE_PTHREADS > 4
13500 /* Final pthreads */
13501 pthread_attr_t attr;
13503 status = pthread_attr_init(&attr);
13504 if( status ) return status;
13506 #if HAVE_PTHREADS < 7
13507 status = pthread_attr_setdetachstate(&attr, &detach);
13508 if( status < 0 ) status = errno;
13510 status = pthread_attr_setdetachstate(&attr, detach);
13512 if( status ) return status;
13513 status = pthread_create( &t, &attr, task, NULL );
13514 #if HAVE_PTHREADS < 7
13515 if( status < 0 ) status = errno;
13517 if( status ) return status;
13519 /* Draft 4 pthreads */
13520 status = pthread_create( &t, pthread_attr_default, task, NULL );
13521 if( status ) return errno;
13523 /* give thread a chance to complete */
13524 /* it should remain joinable and hence detachable */
13527 status = pthread_detach( &t );
13528 if( status ) return errno;
13531 #ifdef HAVE_LINUX_THREADS
13532 pthread_kill_other_threads_np();
13540 if { (eval echo configure:13541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13542 ol_cv_pthread_lpthread=yes
13544 echo "configure: failed program was:" >&5
13545 cat conftest.$ac_ext >&5
13547 ol_cv_pthread_lpthread=no
13558 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13560 if test $ol_cv_pthread_lpthread = yes ; then
13561 ol_link_pthreads="-lpthread"
13562 ol_link_threads=posix
13566 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13567 if test "$ol_link_threads" = no ; then
13569 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13570 echo "configure:13571: checking for pthread link with -lc_r" >&5
13571 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13572 echo $ac_n "(cached) $ac_c" 1>&6
13579 if test "$cross_compiling" = yes; then
13580 cat > conftest.$ac_ext <<EOF
13581 #line 13582 "configure"
13582 #include "confdefs.h"
13583 /* pthread test headers */
13584 #include <pthread.h>
13585 #if HAVE_PTHREADS < 7
13589 #define NULL (void*)0
13592 static void *task(p)
13595 return (void *) (p == NULL);
13600 /* pthread test function */
13601 #ifndef PTHREAD_CREATE_DETACHED
13602 #define PTHREAD_CREATE_DETACHED 1
13606 int detach = PTHREAD_CREATE_DETACHED;
13608 #if HAVE_PTHREADS > 4
13609 /* Final pthreads */
13610 pthread_attr_t attr;
13612 status = pthread_attr_init(&attr);
13613 if( status ) return status;
13615 #if HAVE_PTHREADS < 7
13616 status = pthread_attr_setdetachstate(&attr, &detach);
13617 if( status < 0 ) status = errno;
13619 status = pthread_attr_setdetachstate(&attr, detach);
13621 if( status ) return status;
13622 status = pthread_create( &t, &attr, task, NULL );
13623 #if HAVE_PTHREADS < 7
13624 if( status < 0 ) status = errno;
13626 if( status ) return status;
13628 /* Draft 4 pthreads */
13629 status = pthread_create( &t, pthread_attr_default, task, NULL );
13630 if( status ) return errno;
13632 /* give thread a chance to complete */
13633 /* it should remain joinable and hence detachable */
13636 status = pthread_detach( &t );
13637 if( status ) return errno;
13640 #ifdef HAVE_LINUX_THREADS
13641 pthread_kill_other_threads_np();
13648 if { (eval echo configure:13649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13650 ol_cv_pthread_lc_r=yes
13652 echo "configure: failed program was:" >&5
13653 cat conftest.$ac_ext >&5
13655 ol_cv_pthread_lc_r=no
13659 cat > conftest.$ac_ext <<EOF
13660 #line 13661 "configure"
13661 #include "confdefs.h"
13662 /* pthread test headers */
13663 #include <pthread.h>
13664 #if HAVE_PTHREADS < 7
13668 #define NULL (void*)0
13671 static void *task(p)
13674 return (void *) (p == NULL);
13678 int main(argc, argv)
13683 /* pthread test function */
13684 #ifndef PTHREAD_CREATE_DETACHED
13685 #define PTHREAD_CREATE_DETACHED 1
13689 int detach = PTHREAD_CREATE_DETACHED;
13691 #if HAVE_PTHREADS > 4
13692 /* Final pthreads */
13693 pthread_attr_t attr;
13695 status = pthread_attr_init(&attr);
13696 if( status ) return status;
13698 #if HAVE_PTHREADS < 7
13699 status = pthread_attr_setdetachstate(&attr, &detach);
13700 if( status < 0 ) status = errno;
13702 status = pthread_attr_setdetachstate(&attr, detach);
13704 if( status ) return status;
13705 status = pthread_create( &t, &attr, task, NULL );
13706 #if HAVE_PTHREADS < 7
13707 if( status < 0 ) status = errno;
13709 if( status ) return status;
13711 /* Draft 4 pthreads */
13712 status = pthread_create( &t, pthread_attr_default, task, NULL );
13713 if( status ) return errno;
13715 /* give thread a chance to complete */
13716 /* it should remain joinable and hence detachable */
13719 status = pthread_detach( &t );
13720 if( status ) return errno;
13723 #ifdef HAVE_LINUX_THREADS
13724 pthread_kill_other_threads_np();
13732 if { (eval echo configure:13733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13734 ol_cv_pthread_lc_r=yes
13736 echo "configure: failed program was:" >&5
13737 cat conftest.$ac_ext >&5
13739 ol_cv_pthread_lc_r=no
13750 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13752 if test $ol_cv_pthread_lc_r = yes ; then
13753 ol_link_pthreads="-lc_r"
13754 ol_link_threads=posix
13759 # Pthread try link: -threads (ol_cv_pthread_threads)
13760 if test "$ol_link_threads" = no ; then
13762 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13763 echo "configure:13764: checking for pthread link with -threads" >&5
13764 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13765 echo $ac_n "(cached) $ac_c" 1>&6
13770 LIBS="-threads $LIBS"
13772 if test "$cross_compiling" = yes; then
13773 cat > conftest.$ac_ext <<EOF
13774 #line 13775 "configure"
13775 #include "confdefs.h"
13776 /* pthread test headers */
13777 #include <pthread.h>
13778 #if HAVE_PTHREADS < 7
13782 #define NULL (void*)0
13785 static void *task(p)
13788 return (void *) (p == NULL);
13793 /* pthread test function */
13794 #ifndef PTHREAD_CREATE_DETACHED
13795 #define PTHREAD_CREATE_DETACHED 1
13799 int detach = PTHREAD_CREATE_DETACHED;
13801 #if HAVE_PTHREADS > 4
13802 /* Final pthreads */
13803 pthread_attr_t attr;
13805 status = pthread_attr_init(&attr);
13806 if( status ) return status;
13808 #if HAVE_PTHREADS < 7
13809 status = pthread_attr_setdetachstate(&attr, &detach);
13810 if( status < 0 ) status = errno;
13812 status = pthread_attr_setdetachstate(&attr, detach);
13814 if( status ) return status;
13815 status = pthread_create( &t, &attr, task, NULL );
13816 #if HAVE_PTHREADS < 7
13817 if( status < 0 ) status = errno;
13819 if( status ) return status;
13821 /* Draft 4 pthreads */
13822 status = pthread_create( &t, pthread_attr_default, task, NULL );
13823 if( status ) return errno;
13825 /* give thread a chance to complete */
13826 /* it should remain joinable and hence detachable */
13829 status = pthread_detach( &t );
13830 if( status ) return errno;
13833 #ifdef HAVE_LINUX_THREADS
13834 pthread_kill_other_threads_np();
13841 if { (eval echo configure:13842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13843 ol_cv_pthread_threads=yes
13845 echo "configure: failed program was:" >&5
13846 cat conftest.$ac_ext >&5
13848 ol_cv_pthread_threads=no
13852 cat > conftest.$ac_ext <<EOF
13853 #line 13854 "configure"
13854 #include "confdefs.h"
13855 /* pthread test headers */
13856 #include <pthread.h>
13857 #if HAVE_PTHREADS < 7
13861 #define NULL (void*)0
13864 static void *task(p)
13867 return (void *) (p == NULL);
13871 int main(argc, argv)
13876 /* pthread test function */
13877 #ifndef PTHREAD_CREATE_DETACHED
13878 #define PTHREAD_CREATE_DETACHED 1
13882 int detach = PTHREAD_CREATE_DETACHED;
13884 #if HAVE_PTHREADS > 4
13885 /* Final pthreads */
13886 pthread_attr_t attr;
13888 status = pthread_attr_init(&attr);
13889 if( status ) return status;
13891 #if HAVE_PTHREADS < 7
13892 status = pthread_attr_setdetachstate(&attr, &detach);
13893 if( status < 0 ) status = errno;
13895 status = pthread_attr_setdetachstate(&attr, detach);
13897 if( status ) return status;
13898 status = pthread_create( &t, &attr, task, NULL );
13899 #if HAVE_PTHREADS < 7
13900 if( status < 0 ) status = errno;
13902 if( status ) return status;
13904 /* Draft 4 pthreads */
13905 status = pthread_create( &t, pthread_attr_default, task, NULL );
13906 if( status ) return errno;
13908 /* give thread a chance to complete */
13909 /* it should remain joinable and hence detachable */
13912 status = pthread_detach( &t );
13913 if( status ) return errno;
13916 #ifdef HAVE_LINUX_THREADS
13917 pthread_kill_other_threads_np();
13925 if { (eval echo configure:13926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13927 ol_cv_pthread_threads=yes
13929 echo "configure: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13932 ol_cv_pthread_threads=no
13943 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
13945 if test $ol_cv_pthread_threads = yes ; then
13946 ol_link_pthreads="-threads"
13947 ol_link_threads=posix
13952 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
13953 if test "$ol_link_threads" = no ; then
13954 # try -lpthreads -lmach -lexc -lc_r
13955 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
13956 echo "configure:13957: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
13957 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
13958 echo $ac_n "(cached) $ac_c" 1>&6
13963 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
13965 if test "$cross_compiling" = yes; then
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 /* pthread test headers */
13970 #include <pthread.h>
13971 #if HAVE_PTHREADS < 7
13975 #define NULL (void*)0
13978 static void *task(p)
13981 return (void *) (p == NULL);
13986 /* pthread test function */
13987 #ifndef PTHREAD_CREATE_DETACHED
13988 #define PTHREAD_CREATE_DETACHED 1
13992 int detach = PTHREAD_CREATE_DETACHED;
13994 #if HAVE_PTHREADS > 4
13995 /* Final pthreads */
13996 pthread_attr_t attr;
13998 status = pthread_attr_init(&attr);
13999 if( status ) return status;
14001 #if HAVE_PTHREADS < 7
14002 status = pthread_attr_setdetachstate(&attr, &detach);
14003 if( status < 0 ) status = errno;
14005 status = pthread_attr_setdetachstate(&attr, detach);
14007 if( status ) return status;
14008 status = pthread_create( &t, &attr, task, NULL );
14009 #if HAVE_PTHREADS < 7
14010 if( status < 0 ) status = errno;
14012 if( status ) return status;
14014 /* Draft 4 pthreads */
14015 status = pthread_create( &t, pthread_attr_default, task, NULL );
14016 if( status ) return errno;
14018 /* give thread a chance to complete */
14019 /* it should remain joinable and hence detachable */
14022 status = pthread_detach( &t );
14023 if( status ) return errno;
14026 #ifdef HAVE_LINUX_THREADS
14027 pthread_kill_other_threads_np();
14034 if { (eval echo configure:14035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14036 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14038 echo "configure: failed program was:" >&5
14039 cat conftest.$ac_ext >&5
14041 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14045 cat > conftest.$ac_ext <<EOF
14046 #line 14047 "configure"
14047 #include "confdefs.h"
14048 /* pthread test headers */
14049 #include <pthread.h>
14050 #if HAVE_PTHREADS < 7
14054 #define NULL (void*)0
14057 static void *task(p)
14060 return (void *) (p == NULL);
14064 int main(argc, argv)
14069 /* pthread test function */
14070 #ifndef PTHREAD_CREATE_DETACHED
14071 #define PTHREAD_CREATE_DETACHED 1
14075 int detach = PTHREAD_CREATE_DETACHED;
14077 #if HAVE_PTHREADS > 4
14078 /* Final pthreads */
14079 pthread_attr_t attr;
14081 status = pthread_attr_init(&attr);
14082 if( status ) return status;
14084 #if HAVE_PTHREADS < 7
14085 status = pthread_attr_setdetachstate(&attr, &detach);
14086 if( status < 0 ) status = errno;
14088 status = pthread_attr_setdetachstate(&attr, detach);
14090 if( status ) return status;
14091 status = pthread_create( &t, &attr, task, NULL );
14092 #if HAVE_PTHREADS < 7
14093 if( status < 0 ) status = errno;
14095 if( status ) return status;
14097 /* Draft 4 pthreads */
14098 status = pthread_create( &t, pthread_attr_default, task, NULL );
14099 if( status ) return errno;
14101 /* give thread a chance to complete */
14102 /* it should remain joinable and hence detachable */
14105 status = pthread_detach( &t );
14106 if( status ) return errno;
14109 #ifdef HAVE_LINUX_THREADS
14110 pthread_kill_other_threads_np();
14118 if { (eval echo configure:14119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14120 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14122 echo "configure: failed program was:" >&5
14123 cat conftest.$ac_ext >&5
14125 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14136 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14138 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14139 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14140 ol_link_threads=posix
14144 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14145 if test "$ol_link_threads" = no ; then
14146 # try -lpthreads -lmach -lexc
14147 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14148 echo "configure:14149: checking for pthread link with -lpthreads -lmach -lexc" >&5
14149 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14150 echo $ac_n "(cached) $ac_c" 1>&6
14155 LIBS="-lpthreads -lmach -lexc $LIBS"
14157 if test "$cross_compiling" = yes; then
14158 cat > conftest.$ac_ext <<EOF
14159 #line 14160 "configure"
14160 #include "confdefs.h"
14161 /* pthread test headers */
14162 #include <pthread.h>
14163 #if HAVE_PTHREADS < 7
14167 #define NULL (void*)0
14170 static void *task(p)
14173 return (void *) (p == NULL);
14178 /* pthread test function */
14179 #ifndef PTHREAD_CREATE_DETACHED
14180 #define PTHREAD_CREATE_DETACHED 1
14184 int detach = PTHREAD_CREATE_DETACHED;
14186 #if HAVE_PTHREADS > 4
14187 /* Final pthreads */
14188 pthread_attr_t attr;
14190 status = pthread_attr_init(&attr);
14191 if( status ) return status;
14193 #if HAVE_PTHREADS < 7
14194 status = pthread_attr_setdetachstate(&attr, &detach);
14195 if( status < 0 ) status = errno;
14197 status = pthread_attr_setdetachstate(&attr, detach);
14199 if( status ) return status;
14200 status = pthread_create( &t, &attr, task, NULL );
14201 #if HAVE_PTHREADS < 7
14202 if( status < 0 ) status = errno;
14204 if( status ) return status;
14206 /* Draft 4 pthreads */
14207 status = pthread_create( &t, pthread_attr_default, task, NULL );
14208 if( status ) return errno;
14210 /* give thread a chance to complete */
14211 /* it should remain joinable and hence detachable */
14214 status = pthread_detach( &t );
14215 if( status ) return errno;
14218 #ifdef HAVE_LINUX_THREADS
14219 pthread_kill_other_threads_np();
14226 if { (eval echo configure:14227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14228 ol_cv_pthread_lpthreads_lmach_lexc=yes
14230 echo "configure: failed program was:" >&5
14231 cat conftest.$ac_ext >&5
14233 ol_cv_pthread_lpthreads_lmach_lexc=no
14237 cat > conftest.$ac_ext <<EOF
14238 #line 14239 "configure"
14239 #include "confdefs.h"
14240 /* pthread test headers */
14241 #include <pthread.h>
14242 #if HAVE_PTHREADS < 7
14246 #define NULL (void*)0
14249 static void *task(p)
14252 return (void *) (p == NULL);
14256 int main(argc, argv)
14261 /* pthread test function */
14262 #ifndef PTHREAD_CREATE_DETACHED
14263 #define PTHREAD_CREATE_DETACHED 1
14267 int detach = PTHREAD_CREATE_DETACHED;
14269 #if HAVE_PTHREADS > 4
14270 /* Final pthreads */
14271 pthread_attr_t attr;
14273 status = pthread_attr_init(&attr);
14274 if( status ) return status;
14276 #if HAVE_PTHREADS < 7
14277 status = pthread_attr_setdetachstate(&attr, &detach);
14278 if( status < 0 ) status = errno;
14280 status = pthread_attr_setdetachstate(&attr, detach);
14282 if( status ) return status;
14283 status = pthread_create( &t, &attr, task, NULL );
14284 #if HAVE_PTHREADS < 7
14285 if( status < 0 ) status = errno;
14287 if( status ) return status;
14289 /* Draft 4 pthreads */
14290 status = pthread_create( &t, pthread_attr_default, task, NULL );
14291 if( status ) return errno;
14293 /* give thread a chance to complete */
14294 /* it should remain joinable and hence detachable */
14297 status = pthread_detach( &t );
14298 if( status ) return errno;
14301 #ifdef HAVE_LINUX_THREADS
14302 pthread_kill_other_threads_np();
14310 if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14312 ol_cv_pthread_lpthreads_lmach_lexc=yes
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14317 ol_cv_pthread_lpthreads_lmach_lexc=no
14328 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14330 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14331 ol_link_pthreads="-lpthreads -lmach -lexc"
14332 ol_link_threads=posix
14336 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14337 if test "$ol_link_threads" = no ; then
14338 # try -lpthreads -lexc
14339 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14340 echo "configure:14341: checking for pthread link with -lpthreads -lexc" >&5
14341 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14342 echo $ac_n "(cached) $ac_c" 1>&6
14347 LIBS="-lpthreads -lexc $LIBS"
14349 if test "$cross_compiling" = yes; then
14350 cat > conftest.$ac_ext <<EOF
14351 #line 14352 "configure"
14352 #include "confdefs.h"
14353 /* pthread test headers */
14354 #include <pthread.h>
14355 #if HAVE_PTHREADS < 7
14359 #define NULL (void*)0
14362 static void *task(p)
14365 return (void *) (p == NULL);
14370 /* pthread test function */
14371 #ifndef PTHREAD_CREATE_DETACHED
14372 #define PTHREAD_CREATE_DETACHED 1
14376 int detach = PTHREAD_CREATE_DETACHED;
14378 #if HAVE_PTHREADS > 4
14379 /* Final pthreads */
14380 pthread_attr_t attr;
14382 status = pthread_attr_init(&attr);
14383 if( status ) return status;
14385 #if HAVE_PTHREADS < 7
14386 status = pthread_attr_setdetachstate(&attr, &detach);
14387 if( status < 0 ) status = errno;
14389 status = pthread_attr_setdetachstate(&attr, detach);
14391 if( status ) return status;
14392 status = pthread_create( &t, &attr, task, NULL );
14393 #if HAVE_PTHREADS < 7
14394 if( status < 0 ) status = errno;
14396 if( status ) return status;
14398 /* Draft 4 pthreads */
14399 status = pthread_create( &t, pthread_attr_default, task, NULL );
14400 if( status ) return errno;
14402 /* give thread a chance to complete */
14403 /* it should remain joinable and hence detachable */
14406 status = pthread_detach( &t );
14407 if( status ) return errno;
14410 #ifdef HAVE_LINUX_THREADS
14411 pthread_kill_other_threads_np();
14418 if { (eval echo configure:14419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14420 ol_cv_pthread_lpthreads_lexc=yes
14422 echo "configure: failed program was:" >&5
14423 cat conftest.$ac_ext >&5
14425 ol_cv_pthread_lpthreads_lexc=no
14429 cat > conftest.$ac_ext <<EOF
14430 #line 14431 "configure"
14431 #include "confdefs.h"
14432 /* pthread test headers */
14433 #include <pthread.h>
14434 #if HAVE_PTHREADS < 7
14438 #define NULL (void*)0
14441 static void *task(p)
14444 return (void *) (p == NULL);
14448 int main(argc, argv)
14453 /* pthread test function */
14454 #ifndef PTHREAD_CREATE_DETACHED
14455 #define PTHREAD_CREATE_DETACHED 1
14459 int detach = PTHREAD_CREATE_DETACHED;
14461 #if HAVE_PTHREADS > 4
14462 /* Final pthreads */
14463 pthread_attr_t attr;
14465 status = pthread_attr_init(&attr);
14466 if( status ) return status;
14468 #if HAVE_PTHREADS < 7
14469 status = pthread_attr_setdetachstate(&attr, &detach);
14470 if( status < 0 ) status = errno;
14472 status = pthread_attr_setdetachstate(&attr, detach);
14474 if( status ) return status;
14475 status = pthread_create( &t, &attr, task, NULL );
14476 #if HAVE_PTHREADS < 7
14477 if( status < 0 ) status = errno;
14479 if( status ) return status;
14481 /* Draft 4 pthreads */
14482 status = pthread_create( &t, pthread_attr_default, task, NULL );
14483 if( status ) return errno;
14485 /* give thread a chance to complete */
14486 /* it should remain joinable and hence detachable */
14489 status = pthread_detach( &t );
14490 if( status ) return errno;
14493 #ifdef HAVE_LINUX_THREADS
14494 pthread_kill_other_threads_np();
14502 if { (eval echo configure:14503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14504 ol_cv_pthread_lpthreads_lexc=yes
14506 echo "configure: failed program was:" >&5
14507 cat conftest.$ac_ext >&5
14509 ol_cv_pthread_lpthreads_lexc=no
14520 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14522 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14523 ol_link_pthreads="-lpthreads -lexc"
14524 ol_link_threads=posix
14529 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14530 if test "$ol_link_threads" = no ; then
14532 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14533 echo "configure:14534: checking for pthread link with -lpthreads" >&5
14534 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14535 echo $ac_n "(cached) $ac_c" 1>&6
14540 LIBS="-lpthreads $LIBS"
14542 if test "$cross_compiling" = yes; then
14543 cat > conftest.$ac_ext <<EOF
14544 #line 14545 "configure"
14545 #include "confdefs.h"
14546 /* pthread test headers */
14547 #include <pthread.h>
14548 #if HAVE_PTHREADS < 7
14552 #define NULL (void*)0
14555 static void *task(p)
14558 return (void *) (p == NULL);
14563 /* pthread test function */
14564 #ifndef PTHREAD_CREATE_DETACHED
14565 #define PTHREAD_CREATE_DETACHED 1
14569 int detach = PTHREAD_CREATE_DETACHED;
14571 #if HAVE_PTHREADS > 4
14572 /* Final pthreads */
14573 pthread_attr_t attr;
14575 status = pthread_attr_init(&attr);
14576 if( status ) return status;
14578 #if HAVE_PTHREADS < 7
14579 status = pthread_attr_setdetachstate(&attr, &detach);
14580 if( status < 0 ) status = errno;
14582 status = pthread_attr_setdetachstate(&attr, detach);
14584 if( status ) return status;
14585 status = pthread_create( &t, &attr, task, NULL );
14586 #if HAVE_PTHREADS < 7
14587 if( status < 0 ) status = errno;
14589 if( status ) return status;
14591 /* Draft 4 pthreads */
14592 status = pthread_create( &t, pthread_attr_default, task, NULL );
14593 if( status ) return errno;
14595 /* give thread a chance to complete */
14596 /* it should remain joinable and hence detachable */
14599 status = pthread_detach( &t );
14600 if( status ) return errno;
14603 #ifdef HAVE_LINUX_THREADS
14604 pthread_kill_other_threads_np();
14611 if { (eval echo configure:14612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14613 ol_cv_pthread_lib_lpthreads=yes
14615 echo "configure: failed program was:" >&5
14616 cat conftest.$ac_ext >&5
14618 ol_cv_pthread_lib_lpthreads=no
14622 cat > conftest.$ac_ext <<EOF
14623 #line 14624 "configure"
14624 #include "confdefs.h"
14625 /* pthread test headers */
14626 #include <pthread.h>
14627 #if HAVE_PTHREADS < 7
14631 #define NULL (void*)0
14634 static void *task(p)
14637 return (void *) (p == NULL);
14641 int main(argc, argv)
14646 /* pthread test function */
14647 #ifndef PTHREAD_CREATE_DETACHED
14648 #define PTHREAD_CREATE_DETACHED 1
14652 int detach = PTHREAD_CREATE_DETACHED;
14654 #if HAVE_PTHREADS > 4
14655 /* Final pthreads */
14656 pthread_attr_t attr;
14658 status = pthread_attr_init(&attr);
14659 if( status ) return status;
14661 #if HAVE_PTHREADS < 7
14662 status = pthread_attr_setdetachstate(&attr, &detach);
14663 if( status < 0 ) status = errno;
14665 status = pthread_attr_setdetachstate(&attr, detach);
14667 if( status ) return status;
14668 status = pthread_create( &t, &attr, task, NULL );
14669 #if HAVE_PTHREADS < 7
14670 if( status < 0 ) status = errno;
14672 if( status ) return status;
14674 /* Draft 4 pthreads */
14675 status = pthread_create( &t, pthread_attr_default, task, NULL );
14676 if( status ) return errno;
14678 /* give thread a chance to complete */
14679 /* it should remain joinable and hence detachable */
14682 status = pthread_detach( &t );
14683 if( status ) return errno;
14686 #ifdef HAVE_LINUX_THREADS
14687 pthread_kill_other_threads_np();
14695 if { (eval echo configure:14696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14697 ol_cv_pthread_lib_lpthreads=yes
14699 echo "configure: failed program was:" >&5
14700 cat conftest.$ac_ext >&5
14702 ol_cv_pthread_lib_lpthreads=no
14713 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14715 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14716 ol_link_pthreads="-lpthreads"
14717 ol_link_threads=posix
14722 if test $ol_link_threads != no ; then
14723 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14725 save_CPPFLAGS="$CPPFLAGS"
14727 LIBS="$LTHREAD_LIBS $LIBS"
14729 for ac_func in sched_yield pthread_yield thr_yield
14731 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14732 echo "configure:14733: checking for $ac_func" >&5
14733 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14734 echo $ac_n "(cached) $ac_c" 1>&6
14736 cat > conftest.$ac_ext <<EOF
14737 #line 14738 "configure"
14738 #include "confdefs.h"
14739 /* System header to define __stub macros and hopefully few prototypes,
14740 which can conflict with char $ac_func(); below. */
14741 #include <assert.h>
14742 /* Override any gcc2 internal prototype to avoid an error. */
14743 /* We use char because int might match the return type of a gcc2
14744 builtin and then its argument prototype would still apply. */
14750 /* The GNU C library defines this for functions which it implements
14751 to always fail with ENOSYS. Some functions are actually named
14752 something starting with __ and the normal name is an alias. */
14753 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14761 if { (eval echo configure:14762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14763 eval "ac_cv_func_$ac_func=yes"
14765 echo "configure: failed program was:" >&5
14766 cat conftest.$ac_ext >&5
14768 eval "ac_cv_func_$ac_func=no"
14773 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14774 echo "$ac_t""yes" 1>&6
14775 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14776 cat >> confdefs.h <<EOF
14777 #define $ac_tr_func 1
14781 echo "$ac_t""no" 1>&6
14786 if test $ac_cv_func_sched_yield = no -a \
14787 $ac_cv_func_pthread_yield = no -a \
14788 $ac_cv_func_thr_yield = no ; then
14789 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14790 echo "configure:14791: checking for sched_yield in -lrt" >&5
14791 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14792 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14793 echo $ac_n "(cached) $ac_c" 1>&6
14795 ac_save_LIBS="$LIBS"
14797 cat > conftest.$ac_ext <<EOF
14798 #line 14799 "configure"
14799 #include "confdefs.h"
14800 /* Override any gcc2 internal prototype to avoid an error. */
14801 /* We use char because int might match the return type of a gcc2
14802 builtin and then its argument prototype would still apply. */
14803 char sched_yield();
14809 if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14811 eval "ac_cv_lib_$ac_lib_var=yes"
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14816 eval "ac_cv_lib_$ac_lib_var=no"
14819 LIBS="$ac_save_LIBS"
14822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14823 echo "$ac_t""yes" 1>&6
14824 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14825 cat >> confdefs.h <<\EOF
14826 #define HAVE_SCHED_YIELD 1
14829 ac_cv_func_sched_yield=yes
14831 echo "$ac_t""no" 1>&6
14832 ac_cv_func_sched_yield=no
14836 if test $ac_cv_func_sched_yield = no -a \
14837 $ac_cv_func_pthread_yield = no -a \
14838 "$ac_cv_func_thr_yield" = no ; then
14839 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14842 for ac_func in pthread_kill pthread_rwlock_destroy
14844 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14845 echo "configure:14846: checking for $ac_func" >&5
14846 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14847 echo $ac_n "(cached) $ac_c" 1>&6
14849 cat > conftest.$ac_ext <<EOF
14850 #line 14851 "configure"
14851 #include "confdefs.h"
14852 /* System header to define __stub macros and hopefully few prototypes,
14853 which can conflict with char $ac_func(); below. */
14854 #include <assert.h>
14855 /* Override any gcc2 internal prototype to avoid an error. */
14856 /* We use char because int might match the return type of a gcc2
14857 builtin and then its argument prototype would still apply. */
14863 /* The GNU C library defines this for functions which it implements
14864 to always fail with ENOSYS. Some functions are actually named
14865 something starting with __ and the normal name is an alias. */
14866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14874 if { (eval echo configure:14875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 eval "ac_cv_func_$ac_func=yes"
14878 echo "configure: failed program was:" >&5
14879 cat conftest.$ac_ext >&5
14881 eval "ac_cv_func_$ac_func=no"
14886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14887 echo "$ac_t""yes" 1>&6
14888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14889 cat >> confdefs.h <<EOF
14890 #define $ac_tr_func 1
14894 echo "$ac_t""no" 1>&6
14899 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14900 echo "configure:14901: checking for pthread_detach with <pthread.h>" >&5
14901 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
14902 echo $ac_n "(cached) $ac_c" 1>&6
14905 cat > conftest.$ac_ext <<EOF
14906 #line 14907 "configure"
14907 #include "confdefs.h"
14909 #include <pthread.h>
14911 #define NULL (void*)0
14915 pthread_detach(NULL);
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14920 ol_cv_func_pthread_detach=yes
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14925 ol_cv_func_pthread_detach=no
14931 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
14933 if test $ol_cv_func_pthread_detach = no ; then
14934 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
14937 cat >> confdefs.h <<\EOF
14938 #define HAVE_PTHREAD_DETACH 1
14943 pthread_setconcurrency \
14944 pthread_getconcurrency \
14945 thr_setconcurrency \
14946 thr_getconcurrency \
14949 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14950 echo "configure:14951: checking for $ac_func" >&5
14951 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14952 echo $ac_n "(cached) $ac_c" 1>&6
14954 cat > conftest.$ac_ext <<EOF
14955 #line 14956 "configure"
14956 #include "confdefs.h"
14957 /* System header to define __stub macros and hopefully few prototypes,
14958 which can conflict with char $ac_func(); below. */
14959 #include <assert.h>
14960 /* Override any gcc2 internal prototype to avoid an error. */
14961 /* We use char because int might match the return type of a gcc2
14962 builtin and then its argument prototype would still apply. */
14968 /* The GNU C library defines this for functions which it implements
14969 to always fail with ENOSYS. Some functions are actually named
14970 something starting with __ and the normal name is an alias. */
14971 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14981 eval "ac_cv_func_$ac_func=yes"
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14986 eval "ac_cv_func_$ac_func=no"
14991 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14992 echo "$ac_t""yes" 1>&6
14993 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14994 cat >> confdefs.h <<EOF
14995 #define $ac_tr_func 1
14999 echo "$ac_t""no" 1>&6
15005 for ac_func in pthread_kill_other_threads_np
15007 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15008 echo "configure:15009: checking for $ac_func" >&5
15009 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15010 echo $ac_n "(cached) $ac_c" 1>&6
15012 cat > conftest.$ac_ext <<EOF
15013 #line 15014 "configure"
15014 #include "confdefs.h"
15015 /* System header to define __stub macros and hopefully few prototypes,
15016 which can conflict with char $ac_func(); below. */
15017 #include <assert.h>
15018 /* Override any gcc2 internal prototype to avoid an error. */
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15026 /* The GNU C library defines this for functions which it implements
15027 to always fail with ENOSYS. Some functions are actually named
15028 something starting with __ and the normal name is an alias. */
15029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15037 if { (eval echo configure:15038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15039 eval "ac_cv_func_$ac_func=yes"
15041 echo "configure: failed program was:" >&5
15042 cat conftest.$ac_ext >&5
15044 eval "ac_cv_func_$ac_func=no"
15049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15050 echo "$ac_t""yes" 1>&6
15051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15052 cat >> confdefs.h <<EOF
15053 #define $ac_tr_func 1
15057 echo "$ac_t""no" 1>&6
15061 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15062 echo "configure:15063: checking for LinuxThreads implementation" >&5
15063 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15064 echo $ac_n "(cached) $ac_c" 1>&6
15066 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15069 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15074 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15075 echo "configure:15076: checking for LinuxThreads consistency" >&5
15076 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15077 echo $ac_n "(cached) $ac_c" 1>&6
15080 if test $ol_cv_header_linux_threads = yes -a \
15081 $ol_cv_sys_linux_threads = yes; then
15082 ol_cv_linux_threads=yes
15083 elif test $ol_cv_header_linux_threads = no -a \
15084 $ol_cv_sys_linux_threads = no; then
15085 ol_cv_linux_threads=no
15087 ol_cv_linux_threads=error
15092 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15095 if test $ol_cv_linux_threads = error; then
15096 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15099 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15100 echo "configure:15101: checking if pthread_create() works" >&5
15101 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15102 echo $ac_n "(cached) $ac_c" 1>&6
15105 if test "$cross_compiling" = yes; then
15106 ol_cv_pthread_create_works=yes
15108 cat > conftest.$ac_ext <<EOF
15109 #line 15110 "configure"
15110 #include "confdefs.h"
15111 /* pthread test headers */
15112 #include <pthread.h>
15113 #if HAVE_PTHREADS < 7
15117 #define NULL (void*)0
15120 static void *task(p)
15123 return (void *) (p == NULL);
15127 int main(argc, argv)
15132 /* pthread test function */
15133 #ifndef PTHREAD_CREATE_DETACHED
15134 #define PTHREAD_CREATE_DETACHED 1
15138 int detach = PTHREAD_CREATE_DETACHED;
15140 #if HAVE_PTHREADS > 4
15141 /* Final pthreads */
15142 pthread_attr_t attr;
15144 status = pthread_attr_init(&attr);
15145 if( status ) return status;
15147 #if HAVE_PTHREADS < 7
15148 status = pthread_attr_setdetachstate(&attr, &detach);
15149 if( status < 0 ) status = errno;
15151 status = pthread_attr_setdetachstate(&attr, detach);
15153 if( status ) return status;
15154 status = pthread_create( &t, &attr, task, NULL );
15155 #if HAVE_PTHREADS < 7
15156 if( status < 0 ) status = errno;
15158 if( status ) return status;
15160 /* Draft 4 pthreads */
15161 status = pthread_create( &t, pthread_attr_default, task, NULL );
15162 if( status ) return errno;
15164 /* give thread a chance to complete */
15165 /* it should remain joinable and hence detachable */
15168 status = pthread_detach( &t );
15169 if( status ) return errno;
15172 #ifdef HAVE_LINUX_THREADS
15173 pthread_kill_other_threads_np();
15181 if { (eval echo configure:15182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15183 ol_cv_pthread_create_works=yes
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15188 ol_cv_pthread_create_works=no
15195 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15197 if test $ol_cv_pthread_create_works = no ; then
15198 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15201 if test $ol_with_yielding_select = auto ; then
15202 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15203 echo "configure:15204: checking if select yields when using pthreads" >&5
15204 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15205 echo $ac_n "(cached) $ac_c" 1>&6
15208 if test "$cross_compiling" = yes; then
15209 ol_cv_pthread_select_yields=cross
15211 cat > conftest.$ac_ext <<EOF
15212 #line 15213 "configure"
15213 #include "confdefs.h"
15215 #include <sys/types.h>
15216 #include <sys/time.h>
15217 #include <unistd.h>
15218 #include <pthread.h>
15220 #define NULL (void*) 0
15223 static int fildes[2];
15225 static void *task(p)
15237 FD_SET(fildes[0], &rfds);
15239 /* we're not interested in any fds */
15240 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15247 exit(0); /* if we exit here, the select blocked the whole process */
15250 int main(argc, argv)
15256 /* create a pipe to select */
15257 if(pipe(&fildes[0])) {
15262 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15263 (void) pthread_setconcurrency(2);
15265 #ifdef HAVE_THR_SETCONCURRENCY
15266 /* Set Solaris LWP concurrency to 2 */
15267 thr_setconcurrency(2);
15271 #if HAVE_PTHREADS < 6
15272 pthread_create(&t, pthread_attr_default, task, NULL);
15274 pthread_create(&t, NULL, task, NULL);
15277 /* make sure task runs first */
15280 #elif defined( HAVE_SCHED_YIELD )
15282 #elif defined( HAVE_PTHREAD_YIELD )
15289 if { (eval echo configure:15290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15291 ol_cv_pthread_select_yields=no
15293 echo "configure: failed program was:" >&5
15294 cat conftest.$ac_ext >&5
15296 ol_cv_pthread_select_yields=yes
15303 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15305 if test $ol_cv_pthread_select_yields = cross ; then
15306 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15309 if test $ol_cv_pthread_select_yields = yes ; then
15310 ol_with_yielding_select=yes
15314 CPPFLAGS="$save_CPPFLAGS"
15317 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15321 if test $ol_with_threads = posix ; then
15322 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15326 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15327 -o $ol_with_threads = mach ; then
15329 for ac_hdr in mach/cthreads.h cthreads.h
15331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15333 echo "configure:15334: checking for $ac_hdr" >&5
15334 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15335 echo $ac_n "(cached) $ac_c" 1>&6
15337 cat > conftest.$ac_ext <<EOF
15338 #line 15339 "configure"
15339 #include "confdefs.h"
15342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15343 { (eval echo configure:15344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15345 if test -z "$ac_err"; then
15347 eval "ac_cv_header_$ac_safe=yes"
15350 echo "configure: failed program was:" >&5
15351 cat conftest.$ac_ext >&5
15353 eval "ac_cv_header_$ac_safe=no"
15357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15358 echo "$ac_t""yes" 1>&6
15359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15360 cat >> confdefs.h <<EOF
15361 #define $ac_tr_hdr 1
15365 echo "$ac_t""no" 1>&6
15369 if test $ac_cv_header_mach_cthreads_h = yes ; then
15370 ol_with_threads=found
15372 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15373 echo "configure:15374: checking for cthread_fork" >&5
15374 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15375 echo $ac_n "(cached) $ac_c" 1>&6
15377 cat > conftest.$ac_ext <<EOF
15378 #line 15379 "configure"
15379 #include "confdefs.h"
15380 /* System header to define __stub macros and hopefully few prototypes,
15381 which can conflict with char cthread_fork(); below. */
15382 #include <assert.h>
15383 /* Override any gcc2 internal prototype to avoid an error. */
15384 /* We use char because int might match the return type of a gcc2
15385 builtin and then its argument prototype would still apply. */
15386 char cthread_fork();
15391 /* The GNU C library defines this for functions which it implements
15392 to always fail with ENOSYS. Some functions are actually named
15393 something starting with __ and the normal name is an alias. */
15394 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15402 if { (eval echo configure:15403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15404 eval "ac_cv_func_cthread_fork=yes"
15406 echo "configure: failed program was:" >&5
15407 cat conftest.$ac_ext >&5
15409 eval "ac_cv_func_cthread_fork=no"
15414 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15415 echo "$ac_t""yes" 1>&6
15416 ol_link_threads=yes
15418 echo "$ac_t""no" 1>&6
15422 if test $ol_link_threads = no ; then
15423 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15424 echo "configure:15425: checking for cthread_fork with -all_load" >&5
15425 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15426 echo $ac_n "(cached) $ac_c" 1>&6
15430 LIBS="-all_load $LIBS"
15431 cat > conftest.$ac_ext <<EOF
15432 #line 15433 "configure"
15433 #include "confdefs.h"
15434 #include <mach/cthreads.h>
15437 cthread_fork((void *)0, (void *)0);
15441 if { (eval echo configure:15442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15443 ol_cv_cthread_all_load=yes
15445 echo "configure: failed program was:" >&5
15446 cat conftest.$ac_ext >&5
15448 ol_cv_cthread_all_load=no
15455 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15457 if test $ol_cv_cthread_all_load = yes ; then
15458 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15459 ol_link_threads=mach
15460 ol_with_threads=found
15464 elif test $ac_cv_header_cthreads_h = yes ; then
15466 ol_with_threads=found
15469 LIBS="$LIBS -lthreads"
15470 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15471 echo "configure:15472: checking for cthread_fork" >&5
15472 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15473 echo $ac_n "(cached) $ac_c" 1>&6
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15478 /* System header to define __stub macros and hopefully few prototypes,
15479 which can conflict with char cthread_fork(); below. */
15480 #include <assert.h>
15481 /* Override any gcc2 internal prototype to avoid an error. */
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15484 char cthread_fork();
15489 /* The GNU C library defines this for functions which it implements
15490 to always fail with ENOSYS. Some functions are actually named
15491 something starting with __ and the normal name is an alias. */
15492 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15500 if { (eval echo configure:15501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15502 eval "ac_cv_func_cthread_fork=yes"
15504 echo "configure: failed program was:" >&5
15505 cat conftest.$ac_ext >&5
15507 eval "ac_cv_func_cthread_fork=no"
15512 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15513 echo "$ac_t""yes" 1>&6
15514 ol_link_threads=yes
15516 echo "$ac_t""no" 1>&6
15521 if test $ol_link_threads = yes ; then
15522 LTHREAD_LIBS="-lthreads"
15523 ol_link_threads=mach
15524 ol_with_threads=found
15526 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15529 elif test $ol_with_threads = mach ; then
15530 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15533 if test $ol_link_threads = mach ; then
15534 cat >> confdefs.h <<\EOF
15535 #define HAVE_MACH_CTHREADS 1
15538 elif test $ol_with_threads = found ; then
15539 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15543 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15544 -o $ol_with_threads = pth ; then
15546 for ac_hdr in pth.h
15548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15550 echo "configure:15551: checking for $ac_hdr" >&5
15551 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15552 echo $ac_n "(cached) $ac_c" 1>&6
15554 cat > conftest.$ac_ext <<EOF
15555 #line 15556 "configure"
15556 #include "confdefs.h"
15559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15560 { (eval echo configure:15561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15562 if test -z "$ac_err"; then
15564 eval "ac_cv_header_$ac_safe=yes"
15567 echo "configure: failed program was:" >&5
15568 cat conftest.$ac_ext >&5
15570 eval "ac_cv_header_$ac_safe=no"
15574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15575 echo "$ac_t""yes" 1>&6
15576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15577 cat >> confdefs.h <<EOF
15578 #define $ac_tr_hdr 1
15582 echo "$ac_t""no" 1>&6
15587 if test $ac_cv_header_pth_h = yes ; then
15588 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15589 echo "configure:15590: checking for pth_version in -lpth" >&5
15590 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15591 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15592 echo $ac_n "(cached) $ac_c" 1>&6
15594 ac_save_LIBS="$LIBS"
15596 cat > conftest.$ac_ext <<EOF
15597 #line 15598 "configure"
15598 #include "confdefs.h"
15599 /* Override any gcc2 internal prototype to avoid an error. */
15600 /* We use char because int might match the return type of a gcc2
15601 builtin and then its argument prototype would still apply. */
15602 char pth_version();
15608 if { (eval echo configure:15609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15610 eval "ac_cv_lib_$ac_lib_var=yes"
15612 echo "configure: failed program was:" >&5
15613 cat conftest.$ac_ext >&5
15615 eval "ac_cv_lib_$ac_lib_var=no"
15618 LIBS="$ac_save_LIBS"
15621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15622 echo "$ac_t""yes" 1>&6
15625 echo "$ac_t""no" 1>&6
15630 if test $have_pth = yes ; then
15631 cat >> confdefs.h <<\EOF
15632 #define HAVE_GNU_PTH 1
15635 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15636 ol_link_threads=pth
15637 ol_with_threads=found
15639 if test $ol_with_yielding_select = auto ; then
15640 ol_with_yielding_select=yes
15646 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15647 -o $ol_with_threads = lwp ; then
15649 for ac_hdr in thread.h synch.h
15651 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15652 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15653 echo "configure:15654: checking for $ac_hdr" >&5
15654 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15655 echo $ac_n "(cached) $ac_c" 1>&6
15657 cat > conftest.$ac_ext <<EOF
15658 #line 15659 "configure"
15659 #include "confdefs.h"
15662 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15663 { (eval echo configure:15664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15664 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15665 if test -z "$ac_err"; then
15667 eval "ac_cv_header_$ac_safe=yes"
15670 echo "configure: failed program was:" >&5
15671 cat conftest.$ac_ext >&5
15673 eval "ac_cv_header_$ac_safe=no"
15677 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15678 echo "$ac_t""yes" 1>&6
15679 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15680 cat >> confdefs.h <<EOF
15681 #define $ac_tr_hdr 1
15685 echo "$ac_t""no" 1>&6
15689 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15690 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15691 echo "configure:15692: checking for thr_create in -lthread" >&5
15692 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15693 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15694 echo $ac_n "(cached) $ac_c" 1>&6
15696 ac_save_LIBS="$LIBS"
15697 LIBS="-lthread $LIBS"
15698 cat > conftest.$ac_ext <<EOF
15699 #line 15700 "configure"
15700 #include "confdefs.h"
15701 /* Override any gcc2 internal prototype to avoid an error. */
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15710 if { (eval echo configure:15711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15712 eval "ac_cv_lib_$ac_lib_var=yes"
15714 echo "configure: failed program was:" >&5
15715 cat conftest.$ac_ext >&5
15717 eval "ac_cv_lib_$ac_lib_var=no"
15720 LIBS="$ac_save_LIBS"
15723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15724 echo "$ac_t""yes" 1>&6
15727 echo "$ac_t""no" 1>&6
15732 if test $have_thr = yes ; then
15733 cat >> confdefs.h <<\EOF
15737 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15738 ol_link_threads=thr
15740 if test $ol_with_yielding_select = auto ; then
15741 ol_with_yielding_select=yes
15745 thr_setconcurrency \
15746 thr_getconcurrency \
15749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15750 echo "configure:15751: checking for $ac_func" >&5
15751 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15752 echo $ac_n "(cached) $ac_c" 1>&6
15754 cat > conftest.$ac_ext <<EOF
15755 #line 15756 "configure"
15756 #include "confdefs.h"
15757 /* System header to define __stub macros and hopefully few prototypes,
15758 which can conflict with char $ac_func(); below. */
15759 #include <assert.h>
15760 /* Override any gcc2 internal prototype to avoid an error. */
15761 /* We use char because int might match the return type of a gcc2
15762 builtin and then its argument prototype would still apply. */
15768 /* The GNU C library defines this for functions which it implements
15769 to always fail with ENOSYS. Some functions are actually named
15770 something starting with __ and the normal name is an alias. */
15771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15779 if { (eval echo configure:15780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15781 eval "ac_cv_func_$ac_func=yes"
15783 echo "configure: failed program was:" >&5
15784 cat conftest.$ac_ext >&5
15786 eval "ac_cv_func_$ac_func=no"
15791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15792 echo "$ac_t""yes" 1>&6
15793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15794 cat >> confdefs.h <<EOF
15795 #define $ac_tr_func 1
15799 echo "$ac_t""no" 1>&6
15806 for ac_hdr in lwp/lwp.h
15808 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15809 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15810 echo "configure:15811: checking for $ac_hdr" >&5
15811 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15812 echo $ac_n "(cached) $ac_c" 1>&6
15814 cat > conftest.$ac_ext <<EOF
15815 #line 15816 "configure"
15816 #include "confdefs.h"
15819 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15820 { (eval echo configure:15821: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15821 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15822 if test -z "$ac_err"; then
15824 eval "ac_cv_header_$ac_safe=yes"
15827 echo "configure: failed program was:" >&5
15828 cat conftest.$ac_ext >&5
15830 eval "ac_cv_header_$ac_safe=no"
15834 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15835 echo "$ac_t""yes" 1>&6
15836 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15837 cat >> confdefs.h <<EOF
15838 #define $ac_tr_hdr 1
15842 echo "$ac_t""no" 1>&6
15846 if test $ac_cv_header_lwp_lwp_h = yes ; then
15847 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15848 echo "configure:15849: checking for lwp_create in -llwp" >&5
15849 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15850 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15851 echo $ac_n "(cached) $ac_c" 1>&6
15853 ac_save_LIBS="$LIBS"
15855 cat > conftest.$ac_ext <<EOF
15856 #line 15857 "configure"
15857 #include "confdefs.h"
15858 /* Override any gcc2 internal prototype to avoid an error. */
15859 /* We use char because int might match the return type of a gcc2
15860 builtin and then its argument prototype would still apply. */
15867 if { (eval echo configure:15868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15869 eval "ac_cv_lib_$ac_lib_var=yes"
15871 echo "configure: failed program was:" >&5
15872 cat conftest.$ac_ext >&5
15874 eval "ac_cv_lib_$ac_lib_var=no"
15877 LIBS="$ac_save_LIBS"
15880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15881 echo "$ac_t""yes" 1>&6
15884 echo "$ac_t""no" 1>&6
15889 if test $have_lwp = yes ; then
15890 cat >> confdefs.h <<\EOF
15894 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15895 ol_link_threads=lwp
15897 if test $ol_with_yielding_select = auto ; then
15898 ol_with_yielding_select=no
15904 if test $ol_with_yielding_select = yes ; then
15905 cat >> confdefs.h <<\EOF
15906 #define HAVE_YIELDING_SELECT 1
15911 if test $ol_with_threads = manual ; then
15912 ol_link_threads=yes
15914 echo "configure: warning: thread defines and link options must be set manually" 1>&2
15916 for ac_hdr in pthread.h sched.h
15918 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15919 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15920 echo "configure:15921: checking for $ac_hdr" >&5
15921 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15922 echo $ac_n "(cached) $ac_c" 1>&6
15924 cat > conftest.$ac_ext <<EOF
15925 #line 15926 "configure"
15926 #include "confdefs.h"
15929 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15930 { (eval echo configure:15931: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15931 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15932 if test -z "$ac_err"; then
15934 eval "ac_cv_header_$ac_safe=yes"
15937 echo "configure: failed program was:" >&5
15938 cat conftest.$ac_ext >&5
15940 eval "ac_cv_header_$ac_safe=no"
15944 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15945 echo "$ac_t""yes" 1>&6
15946 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15947 cat >> confdefs.h <<EOF
15948 #define $ac_tr_hdr 1
15952 echo "$ac_t""no" 1>&6
15956 for ac_func in sched_yield pthread_yield
15958 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15959 echo "configure:15960: checking for $ac_func" >&5
15960 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15961 echo $ac_n "(cached) $ac_c" 1>&6
15963 cat > conftest.$ac_ext <<EOF
15964 #line 15965 "configure"
15965 #include "confdefs.h"
15966 /* System header to define __stub macros and hopefully few prototypes,
15967 which can conflict with char $ac_func(); below. */
15968 #include <assert.h>
15969 /* Override any gcc2 internal prototype to avoid an error. */
15970 /* We use char because int might match the return type of a gcc2
15971 builtin and then its argument prototype would still apply. */
15977 /* The GNU C library defines this for functions which it implements
15978 to always fail with ENOSYS. Some functions are actually named
15979 something starting with __ and the normal name is an alias. */
15980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15988 if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15990 eval "ac_cv_func_$ac_func=yes"
15992 echo "configure: failed program was:" >&5
15993 cat conftest.$ac_ext >&5
15995 eval "ac_cv_func_$ac_func=no"
16000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16001 echo "$ac_t""yes" 1>&6
16002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16003 cat >> confdefs.h <<EOF
16004 #define $ac_tr_func 1
16008 echo "$ac_t""no" 1>&6
16013 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16014 echo "configure:16015: checking for LinuxThreads pthread.h" >&5
16015 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16016 echo $ac_n "(cached) $ac_c" 1>&6
16018 cat > conftest.$ac_ext <<EOF
16019 #line 16020 "configure"
16020 #include "confdefs.h"
16021 #include <pthread.h>
16023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16024 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16026 ol_cv_header_linux_threads=yes
16029 ol_cv_header_linux_threads=no
16036 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16037 if test $ol_cv_header_linux_threads = yes; then
16038 cat >> confdefs.h <<\EOF
16039 #define HAVE_LINUX_THREADS 1
16045 for ac_hdr in mach/cthreads.h
16047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16049 echo "configure:16050: checking for $ac_hdr" >&5
16050 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16051 echo $ac_n "(cached) $ac_c" 1>&6
16053 cat > conftest.$ac_ext <<EOF
16054 #line 16055 "configure"
16055 #include "confdefs.h"
16058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16059 { (eval echo configure:16060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16061 if test -z "$ac_err"; then
16063 eval "ac_cv_header_$ac_safe=yes"
16066 echo "configure: failed program was:" >&5
16067 cat conftest.$ac_ext >&5
16069 eval "ac_cv_header_$ac_safe=no"
16073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16074 echo "$ac_t""yes" 1>&6
16075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16076 cat >> confdefs.h <<EOF
16077 #define $ac_tr_hdr 1
16081 echo "$ac_t""no" 1>&6
16085 for ac_hdr in lwp/lwp.h
16087 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16088 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16089 echo "configure:16090: checking for $ac_hdr" >&5
16090 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16091 echo $ac_n "(cached) $ac_c" 1>&6
16093 cat > conftest.$ac_ext <<EOF
16094 #line 16095 "configure"
16095 #include "confdefs.h"
16098 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16099 { (eval echo configure:16100: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16100 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16101 if test -z "$ac_err"; then
16103 eval "ac_cv_header_$ac_safe=yes"
16106 echo "configure: failed program was:" >&5
16107 cat conftest.$ac_ext >&5
16109 eval "ac_cv_header_$ac_safe=no"
16113 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16114 echo "$ac_t""yes" 1>&6
16115 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16116 cat >> confdefs.h <<EOF
16117 #define $ac_tr_hdr 1
16121 echo "$ac_t""no" 1>&6
16125 for ac_hdr in thread.h synch.h
16127 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16128 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16129 echo "configure:16130: checking for $ac_hdr" >&5
16130 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16131 echo $ac_n "(cached) $ac_c" 1>&6
16133 cat > conftest.$ac_ext <<EOF
16134 #line 16135 "configure"
16135 #include "confdefs.h"
16138 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16139 { (eval echo configure:16140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16140 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16141 if test -z "$ac_err"; then
16143 eval "ac_cv_header_$ac_safe=yes"
16146 echo "configure: failed program was:" >&5
16147 cat conftest.$ac_ext >&5
16149 eval "ac_cv_header_$ac_safe=no"
16153 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16154 echo "$ac_t""yes" 1>&6
16155 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16156 cat >> confdefs.h <<EOF
16157 #define $ac_tr_hdr 1
16161 echo "$ac_t""no" 1>&6
16167 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16168 cat >> confdefs.h <<\EOF
16169 #define REENTRANT 1
16172 cat >> confdefs.h <<\EOF
16173 #define _REENTRANT 1
16176 cat >> confdefs.h <<\EOF
16177 #define THREAD_SAFE 1
16180 cat >> confdefs.h <<\EOF
16181 #define _THREAD_SAFE 1
16184 cat >> confdefs.h <<\EOF
16185 #define THREADSAFE 1
16188 cat >> confdefs.h <<\EOF
16189 #define _THREADSAFE 1
16192 cat >> confdefs.h <<\EOF
16193 #define _SGI_MP_SOURCE 1
16197 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16198 echo "configure:16199: checking for thread specific errno" >&5
16199 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16200 echo $ac_n "(cached) $ac_c" 1>&6
16203 cat > conftest.$ac_ext <<EOF
16204 #line 16205 "configure"
16205 #include "confdefs.h"
16211 if { (eval echo configure:16212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16213 ol_cv_errno_thread_specific=yes
16215 echo "configure: failed program was:" >&5
16216 cat conftest.$ac_ext >&5
16218 ol_cv_errno_thread_specific=no
16224 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16226 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16227 echo "configure:16228: checking for thread specific h_errno" >&5
16228 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16229 echo $ac_n "(cached) $ac_c" 1>&6
16232 cat > conftest.$ac_ext <<EOF
16233 #line 16234 "configure"
16234 #include "confdefs.h"
16240 if { (eval echo configure:16241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16242 ol_cv_h_errno_thread_specific=yes
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16247 ol_cv_h_errno_thread_specific=no
16253 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16255 if test $ol_cv_errno_thread_specific != yes \
16256 -o $ol_cv_h_errno_thread_specific != yes ; then
16257 LIBS="$LTHREAD_LIBS $LIBS"
16263 if test $ol_link_threads = no ; then
16264 if test $ol_with_threads = yes ; then
16265 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16268 if test $ol_with_threads = auto ; then
16269 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16273 cat >> confdefs.h <<\EOF
16274 #define NO_THREADS 1
16280 if test $ol_link_threads != no ; then
16281 cat >> confdefs.h <<\EOF
16282 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16289 gethostbyname_r gethostbyaddr_r \
16292 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16293 echo "configure:16294: checking for $ac_func" >&5
16294 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16295 echo $ac_n "(cached) $ac_c" 1>&6
16297 cat > conftest.$ac_ext <<EOF
16298 #line 16299 "configure"
16299 #include "confdefs.h"
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char $ac_func(); below. */
16302 #include <assert.h>
16303 /* Override any gcc2 internal prototype to avoid an error. */
16304 /* We use char because int might match the return type of a gcc2
16305 builtin and then its argument prototype would still apply. */
16311 /* The GNU C library defines this for functions which it implements
16312 to always fail with ENOSYS. Some functions are actually named
16313 something starting with __ and the normal name is an alias. */
16314 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16322 if { (eval echo configure:16323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16324 eval "ac_cv_func_$ac_func=yes"
16326 echo "configure: failed program was:" >&5
16327 cat conftest.$ac_ext >&5
16329 eval "ac_cv_func_$ac_func=no"
16334 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16335 echo "$ac_t""yes" 1>&6
16336 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16337 cat >> confdefs.h <<EOF
16338 #define $ac_tr_func 1
16342 echo "$ac_t""no" 1>&6
16347 if test "$ac_cv_func_ctime_r" = no ; then
16348 ol_cv_func_ctime_r_nargs=0
16350 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16351 echo "configure:16352: checking number of arguments of ctime_r" >&5
16352 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16353 echo $ac_n "(cached) $ac_c" 1>&6
16355 cat > conftest.$ac_ext <<EOF
16356 #line 16357 "configure"
16357 #include "confdefs.h"
16360 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16363 if { (eval echo configure:16364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16365 ol_cv_func_ctime_r_nargs3=yes
16367 echo "configure: failed program was:" >&5
16368 cat conftest.$ac_ext >&5
16370 ol_cv_func_ctime_r_nargs3=no
16374 cat > conftest.$ac_ext <<EOF
16375 #line 16376 "configure"
16376 #include "confdefs.h"
16379 time_t ti; char *buffer; ctime_r(&ti,buffer);
16382 if { (eval echo configure:16383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16384 ol_cv_func_ctime_r_nargs2=yes
16386 echo "configure: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16389 ol_cv_func_ctime_r_nargs2=no
16393 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16394 $ol_cv_func_ctime_r_nargs2 = no ; then
16396 ol_cv_func_ctime_r_nargs=3
16398 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16399 $ol_cv_func_ctime_r_nargs2 = yes ; then
16401 ol_cv_func_ctime_r_nargs=2
16404 ol_cv_func_ctime_r_nargs=0
16409 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16411 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16412 cat >> confdefs.h <<EOF
16413 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16420 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16421 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16422 echo "configure:16423: checking number of arguments of gethostbyname_r" >&5
16423 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16424 echo $ac_n "(cached) $ac_c" 1>&6
16426 cat > conftest.$ac_ext <<EOF
16427 #line 16428 "configure"
16428 #include "confdefs.h"
16429 #include <sys/types.h>
16430 #include <sys/socket.h>
16431 #include <netinet/in.h>
16433 #define BUFSIZE (sizeof(struct hostent)+10)
16435 struct hostent hent; char buffer[BUFSIZE];
16436 int bufsize=BUFSIZE;int h_errno;
16437 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16438 buffer, bufsize, &h_errno);
16441 if { (eval echo configure:16442: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16443 ol_cv_func_gethostbyname_r_nargs5=yes
16445 echo "configure: failed program was:" >&5
16446 cat conftest.$ac_ext >&5
16448 ol_cv_func_gethostbyname_r_nargs5=no
16452 cat > conftest.$ac_ext <<EOF
16453 #line 16454 "configure"
16454 #include "confdefs.h"
16455 #include <sys/types.h>
16456 #include <sys/socket.h>
16457 #include <netinet/in.h>
16459 #define BUFSIZE (sizeof(struct hostent)+10)
16461 struct hostent hent;struct hostent *rhent;
16462 char buffer[BUFSIZE];
16463 int bufsize=BUFSIZE;int h_errno;
16464 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16468 if { (eval echo configure:16469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16470 ol_cv_func_gethostbyname_r_nargs6=yes
16472 echo "configure: failed program was:" >&5
16473 cat conftest.$ac_ext >&5
16475 ol_cv_func_gethostbyname_r_nargs6=no
16479 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16480 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16482 ol_cv_func_gethostbyname_r_nargs=5
16484 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16485 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16487 ol_cv_func_gethostbyname_r_nargs=6
16490 ol_cv_func_gethostbyname_r_nargs=0
16495 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16496 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16497 cat >> confdefs.h <<EOF
16498 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16504 ol_cv_func_gethostbyname_r_nargs=0
16507 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16508 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16509 echo "configure:16510: checking number of arguments of gethostbyaddr_r" >&5
16510 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16511 echo $ac_n "(cached) $ac_c" 1>&6
16513 cat > conftest.$ac_ext <<EOF
16514 #line 16515 "configure"
16515 #include "confdefs.h"
16516 #include <sys/types.h>
16517 #include <sys/socket.h>
16518 #include <netinet/in.h>
16520 #define BUFSIZE (sizeof(struct hostent)+10)
16522 struct hostent hent; char buffer[BUFSIZE];
16523 struct in_addr add;
16524 size_t alen=sizeof(struct in_addr);
16525 int bufsize=BUFSIZE;int h_errno;
16526 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16527 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16530 if { (eval echo configure:16531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16532 ol_cv_func_gethostbyaddr_r_nargs7=yes
16534 echo "configure: failed program was:" >&5
16535 cat conftest.$ac_ext >&5
16537 ol_cv_func_gethostbyaddr_r_nargs7=no
16541 cat > conftest.$ac_ext <<EOF
16542 #line 16543 "configure"
16543 #include "confdefs.h"
16544 #include <sys/types.h>
16545 #include <sys/socket.h>
16546 #include <netinet/in.h>
16548 #define BUFSIZE (sizeof(struct hostent)+10)
16550 struct hostent hent;
16551 struct hostent *rhent; char buffer[BUFSIZE];
16552 struct in_addr add;
16553 size_t alen=sizeof(struct in_addr);
16554 int bufsize=BUFSIZE;int h_errno;
16555 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16556 alen, AF_INET, &hent, buffer, bufsize,
16560 if { (eval echo configure:16561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16562 ol_cv_func_gethostbyaddr_r_nargs8=yes
16564 echo "configure: failed program was:" >&5
16565 cat conftest.$ac_ext >&5
16567 ol_cv_func_gethostbyaddr_r_nargs8=no
16571 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16572 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16574 ol_cv_func_gethostbyaddr_r_nargs=7
16576 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16577 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16579 ol_cv_func_gethostbyaddr_r_nargs=8
16582 ol_cv_func_gethostbyaddr_r_nargs=0
16587 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16588 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16589 cat >> confdefs.h <<EOF
16590 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16596 ol_cv_func_gethostbyaddr_r_nargs=0
16601 if test $ol_with_ldbm_api = auto \
16602 -o $ol_with_ldbm_api = berkeley \
16603 -o $ol_with_ldbm_api = bcompat ; then
16605 if test $ol_with_ldbm_api = bcompat; then \
16606 for ac_hdr in db_185.h db.h
16608 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16609 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16610 echo "configure:16611: checking for $ac_hdr" >&5
16611 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16612 echo $ac_n "(cached) $ac_c" 1>&6
16614 cat > conftest.$ac_ext <<EOF
16615 #line 16616 "configure"
16616 #include "confdefs.h"
16619 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16620 { (eval echo configure:16621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16621 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16622 if test -z "$ac_err"; then
16624 eval "ac_cv_header_$ac_safe=yes"
16627 echo "configure: failed program was:" >&5
16628 cat conftest.$ac_ext >&5
16630 eval "ac_cv_header_$ac_safe=no"
16634 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16635 echo "$ac_t""yes" 1>&6
16636 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16637 cat >> confdefs.h <<EOF
16638 #define $ac_tr_hdr 1
16642 echo "$ac_t""no" 1>&6
16646 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16647 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16648 echo "configure:16649: checking if Berkeley DB header compatibility" >&5
16649 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16650 echo $ac_n "(cached) $ac_c" 1>&6
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16658 # include <db_185.h>
16663 /* this check could be improved */
16664 #ifndef DB_VERSION_MAJOR
16665 # define DB_VERSION_MAJOR 1
16668 #if DB_VERSION_MAJOR == 1
16673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16674 egrep "__db_version_1" >/dev/null 2>&1; then
16676 ol_cv_header_db1=yes
16679 ol_cv_header_db1=no
16685 echo "$ac_t""$ol_cv_header_db1" 1>&6
16687 if test $ol_cv_header_db1 = yes ; then
16689 if test $ol_cv_lib_db = no ; then
16690 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16691 echo "configure:16692: checking for Berkeley DB link (default)" >&5
16692 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
16698 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16700 cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16704 #ifdef HAVE_DB_185_H
16705 # include <db_185.h>
16710 #ifndef DB_VERSION_MAJOR
16711 # define DB_VERSION_MAJOR 1
16715 #define NULL ((void*)0)
16720 #if DB_VERSION_MAJOR > 1
16723 int major, minor, patch;
16725 version = db_version( &major, &minor, &patch );
16727 if( major != DB_VERSION_MAJOR ||
16728 minor < DB_VERSION_MINOR )
16730 printf("Berkeley DB version mismatch\n"
16731 "\texpected: %s\n\tgot: %s\n",
16732 DB_VERSION_STRING, version);
16738 #if DB_VERSION_MAJOR > 2
16739 db_env_create( NULL, 0 );
16740 #elif DB_VERSION_MAJOR > 1
16741 db_appexit( NULL );
16743 (void) dbopen( NULL, 0, 0, 0, NULL);
16748 if { (eval echo configure:16749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16752 echo "configure: failed program was:" >&5
16753 cat conftest.$ac_ext >&5
16763 echo "$ac_t""$ol_cv_db_none" 1>&6
16765 if test $ol_cv_db_none = yes ; then
16770 if test $ol_cv_lib_db = no ; then
16771 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16772 echo "configure:16773: checking for Berkeley DB link (-ldb42)" >&5
16773 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16774 echo $ac_n "(cached) $ac_c" 1>&6
16779 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16781 cat > conftest.$ac_ext <<EOF
16782 #line 16783 "configure"
16783 #include "confdefs.h"
16785 #ifdef HAVE_DB_185_H
16786 # include <db_185.h>
16791 #ifndef DB_VERSION_MAJOR
16792 # define DB_VERSION_MAJOR 1
16796 #define NULL ((void*)0)
16801 #if DB_VERSION_MAJOR > 1
16804 int major, minor, patch;
16806 version = db_version( &major, &minor, &patch );
16808 if( major != DB_VERSION_MAJOR ||
16809 minor < DB_VERSION_MINOR )
16811 printf("Berkeley DB version mismatch\n"
16812 "\texpected: %s\n\tgot: %s\n",
16813 DB_VERSION_STRING, version);
16819 #if DB_VERSION_MAJOR > 2
16820 db_env_create( NULL, 0 );
16821 #elif DB_VERSION_MAJOR > 1
16822 db_appexit( NULL );
16824 (void) dbopen( NULL, 0, 0, 0, NULL);
16829 if { (eval echo configure:16830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16833 echo "configure: failed program was:" >&5
16834 cat conftest.$ac_ext >&5
16844 echo "$ac_t""$ol_cv_db_db42" 1>&6
16846 if test $ol_cv_db_db42 = yes ; then
16847 ol_cv_lib_db=-ldb42
16851 if test $ol_cv_lib_db = no ; then
16852 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16853 echo "configure:16854: checking for Berkeley DB link (-ldb-42)" >&5
16854 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16855 echo $ac_n "(cached) $ac_c" 1>&6
16860 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16862 cat > conftest.$ac_ext <<EOF
16863 #line 16864 "configure"
16864 #include "confdefs.h"
16866 #ifdef HAVE_DB_185_H
16867 # include <db_185.h>
16872 #ifndef DB_VERSION_MAJOR
16873 # define DB_VERSION_MAJOR 1
16877 #define NULL ((void*)0)
16882 #if DB_VERSION_MAJOR > 1
16885 int major, minor, patch;
16887 version = db_version( &major, &minor, &patch );
16889 if( major != DB_VERSION_MAJOR ||
16890 minor < DB_VERSION_MINOR )
16892 printf("Berkeley DB version mismatch\n"
16893 "\texpected: %s\n\tgot: %s\n",
16894 DB_VERSION_STRING, version);
16900 #if DB_VERSION_MAJOR > 2
16901 db_env_create( NULL, 0 );
16902 #elif DB_VERSION_MAJOR > 1
16903 db_appexit( NULL );
16905 (void) dbopen( NULL, 0, 0, 0, NULL);
16910 if { (eval echo configure:16911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16914 echo "configure: failed program was:" >&5
16915 cat conftest.$ac_ext >&5
16925 echo "$ac_t""$ol_cv_db_db_42" 1>&6
16927 if test $ol_cv_db_db_42 = yes ; then
16928 ol_cv_lib_db=-ldb-42
16932 if test $ol_cv_lib_db = no ; then
16933 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
16934 echo "configure:16935: checking for Berkeley DB link (-ldb-4.2)" >&5
16935 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
16936 echo $ac_n "(cached) $ac_c" 1>&6
16941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16943 cat > conftest.$ac_ext <<EOF
16944 #line 16945 "configure"
16945 #include "confdefs.h"
16947 #ifdef HAVE_DB_185_H
16948 # include <db_185.h>
16953 #ifndef DB_VERSION_MAJOR
16954 # define DB_VERSION_MAJOR 1
16958 #define NULL ((void*)0)
16963 #if DB_VERSION_MAJOR > 1
16966 int major, minor, patch;
16968 version = db_version( &major, &minor, &patch );
16970 if( major != DB_VERSION_MAJOR ||
16971 minor < DB_VERSION_MINOR )
16973 printf("Berkeley DB version mismatch\n"
16974 "\texpected: %s\n\tgot: %s\n",
16975 DB_VERSION_STRING, version);
16981 #if DB_VERSION_MAJOR > 2
16982 db_env_create( NULL, 0 );
16983 #elif DB_VERSION_MAJOR > 1
16984 db_appexit( NULL );
16986 (void) dbopen( NULL, 0, 0, 0, NULL);
16991 if { (eval echo configure:16992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16993 ol_cv_db_db_4_dot_2=yes
16995 echo "configure: failed program was:" >&5
16996 cat conftest.$ac_ext >&5
16998 ol_cv_db_db_4_dot_2=no
17006 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17008 if test $ol_cv_db_db_4_dot_2 = yes ; then
17009 ol_cv_lib_db=-ldb-4.2
17013 if test $ol_cv_lib_db = no ; then
17014 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17015 echo "configure:17016: checking for Berkeley DB link (-ldb-4-2)" >&5
17016 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17017 echo $ac_n "(cached) $ac_c" 1>&6
17022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17024 cat > conftest.$ac_ext <<EOF
17025 #line 17026 "configure"
17026 #include "confdefs.h"
17028 #ifdef HAVE_DB_185_H
17029 # include <db_185.h>
17034 #ifndef DB_VERSION_MAJOR
17035 # define DB_VERSION_MAJOR 1
17039 #define NULL ((void*)0)
17044 #if DB_VERSION_MAJOR > 1
17047 int major, minor, patch;
17049 version = db_version( &major, &minor, &patch );
17051 if( major != DB_VERSION_MAJOR ||
17052 minor < DB_VERSION_MINOR )
17054 printf("Berkeley DB version mismatch\n"
17055 "\texpected: %s\n\tgot: %s\n",
17056 DB_VERSION_STRING, version);
17062 #if DB_VERSION_MAJOR > 2
17063 db_env_create( NULL, 0 );
17064 #elif DB_VERSION_MAJOR > 1
17065 db_appexit( NULL );
17067 (void) dbopen( NULL, 0, 0, 0, NULL);
17072 if { (eval echo configure:17073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17074 ol_cv_db_db_4_2=yes
17076 echo "configure: failed program was:" >&5
17077 cat conftest.$ac_ext >&5
17087 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17089 if test $ol_cv_db_db_4_2 = yes ; then
17090 ol_cv_lib_db=-ldb-4-2
17094 if test $ol_cv_lib_db = no ; then
17095 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17096 echo "configure:17097: checking for Berkeley DB link (-ldb-4)" >&5
17097 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17098 echo $ac_n "(cached) $ac_c" 1>&6
17103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17105 cat > conftest.$ac_ext <<EOF
17106 #line 17107 "configure"
17107 #include "confdefs.h"
17109 #ifdef HAVE_DB_185_H
17110 # include <db_185.h>
17115 #ifndef DB_VERSION_MAJOR
17116 # define DB_VERSION_MAJOR 1
17120 #define NULL ((void*)0)
17125 #if DB_VERSION_MAJOR > 1
17128 int major, minor, patch;
17130 version = db_version( &major, &minor, &patch );
17132 if( major != DB_VERSION_MAJOR ||
17133 minor < DB_VERSION_MINOR )
17135 printf("Berkeley DB version mismatch\n"
17136 "\texpected: %s\n\tgot: %s\n",
17137 DB_VERSION_STRING, version);
17143 #if DB_VERSION_MAJOR > 2
17144 db_env_create( NULL, 0 );
17145 #elif DB_VERSION_MAJOR > 1
17146 db_appexit( NULL );
17148 (void) dbopen( NULL, 0, 0, 0, NULL);
17153 if { (eval echo configure:17154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17157 echo "configure: failed program was:" >&5
17158 cat conftest.$ac_ext >&5
17168 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17170 if test $ol_cv_db_db_4 = yes ; then
17171 ol_cv_lib_db=-ldb-4
17175 if test $ol_cv_lib_db = no ; then
17176 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17177 echo "configure:17178: checking for Berkeley DB link (-ldb4)" >&5
17178 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17179 echo $ac_n "(cached) $ac_c" 1>&6
17184 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17186 cat > conftest.$ac_ext <<EOF
17187 #line 17188 "configure"
17188 #include "confdefs.h"
17190 #ifdef HAVE_DB_185_H
17191 # include <db_185.h>
17196 #ifndef DB_VERSION_MAJOR
17197 # define DB_VERSION_MAJOR 1
17201 #define NULL ((void*)0)
17206 #if DB_VERSION_MAJOR > 1
17209 int major, minor, patch;
17211 version = db_version( &major, &minor, &patch );
17213 if( major != DB_VERSION_MAJOR ||
17214 minor < DB_VERSION_MINOR )
17216 printf("Berkeley DB version mismatch\n"
17217 "\texpected: %s\n\tgot: %s\n",
17218 DB_VERSION_STRING, version);
17224 #if DB_VERSION_MAJOR > 2
17225 db_env_create( NULL, 0 );
17226 #elif DB_VERSION_MAJOR > 1
17227 db_appexit( NULL );
17229 (void) dbopen( NULL, 0, 0, 0, NULL);
17234 if { (eval echo configure:17235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17238 echo "configure: failed program was:" >&5
17239 cat conftest.$ac_ext >&5
17249 echo "$ac_t""$ol_cv_db_db4" 1>&6
17251 if test $ol_cv_db_db4 = yes ; then
17256 if test $ol_cv_lib_db = no ; then
17257 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17258 echo "configure:17259: checking for Berkeley DB link (-ldb)" >&5
17259 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17260 echo $ac_n "(cached) $ac_c" 1>&6
17265 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17267 cat > conftest.$ac_ext <<EOF
17268 #line 17269 "configure"
17269 #include "confdefs.h"
17271 #ifdef HAVE_DB_185_H
17272 # include <db_185.h>
17277 #ifndef DB_VERSION_MAJOR
17278 # define DB_VERSION_MAJOR 1
17282 #define NULL ((void*)0)
17287 #if DB_VERSION_MAJOR > 1
17290 int major, minor, patch;
17292 version = db_version( &major, &minor, &patch );
17294 if( major != DB_VERSION_MAJOR ||
17295 minor < DB_VERSION_MINOR )
17297 printf("Berkeley DB version mismatch\n"
17298 "\texpected: %s\n\tgot: %s\n",
17299 DB_VERSION_STRING, version);
17305 #if DB_VERSION_MAJOR > 2
17306 db_env_create( NULL, 0 );
17307 #elif DB_VERSION_MAJOR > 1
17308 db_appexit( NULL );
17310 (void) dbopen( NULL, 0, 0, 0, NULL);
17315 if { (eval echo configure:17316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17319 echo "configure: failed program was:" >&5
17320 cat conftest.$ac_ext >&5
17330 echo "$ac_t""$ol_cv_db_db" 1>&6
17332 if test $ol_cv_db_db = yes ; then
17337 if test $ol_cv_lib_db = no ; then
17338 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17339 echo "configure:17340: checking for Berkeley DB link (-ldb41)" >&5
17340 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17341 echo $ac_n "(cached) $ac_c" 1>&6
17346 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17348 cat > conftest.$ac_ext <<EOF
17349 #line 17350 "configure"
17350 #include "confdefs.h"
17352 #ifdef HAVE_DB_185_H
17353 # include <db_185.h>
17358 #ifndef DB_VERSION_MAJOR
17359 # define DB_VERSION_MAJOR 1
17363 #define NULL ((void*)0)
17368 #if DB_VERSION_MAJOR > 1
17371 int major, minor, patch;
17373 version = db_version( &major, &minor, &patch );
17375 if( major != DB_VERSION_MAJOR ||
17376 minor < DB_VERSION_MINOR )
17378 printf("Berkeley DB version mismatch\n"
17379 "\texpected: %s\n\tgot: %s\n",
17380 DB_VERSION_STRING, version);
17386 #if DB_VERSION_MAJOR > 2
17387 db_env_create( NULL, 0 );
17388 #elif DB_VERSION_MAJOR > 1
17389 db_appexit( NULL );
17391 (void) dbopen( NULL, 0, 0, 0, NULL);
17396 if { (eval echo configure:17397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17400 echo "configure: failed program was:" >&5
17401 cat conftest.$ac_ext >&5
17411 echo "$ac_t""$ol_cv_db_db41" 1>&6
17413 if test $ol_cv_db_db41 = yes ; then
17414 ol_cv_lib_db=-ldb41
17418 if test $ol_cv_lib_db = no ; then
17419 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17420 echo "configure:17421: checking for Berkeley DB link (-ldb-41)" >&5
17421 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17422 echo $ac_n "(cached) $ac_c" 1>&6
17427 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17429 cat > conftest.$ac_ext <<EOF
17430 #line 17431 "configure"
17431 #include "confdefs.h"
17433 #ifdef HAVE_DB_185_H
17434 # include <db_185.h>
17439 #ifndef DB_VERSION_MAJOR
17440 # define DB_VERSION_MAJOR 1
17444 #define NULL ((void*)0)
17449 #if DB_VERSION_MAJOR > 1
17452 int major, minor, patch;
17454 version = db_version( &major, &minor, &patch );
17456 if( major != DB_VERSION_MAJOR ||
17457 minor < DB_VERSION_MINOR )
17459 printf("Berkeley DB version mismatch\n"
17460 "\texpected: %s\n\tgot: %s\n",
17461 DB_VERSION_STRING, version);
17467 #if DB_VERSION_MAJOR > 2
17468 db_env_create( NULL, 0 );
17469 #elif DB_VERSION_MAJOR > 1
17470 db_appexit( NULL );
17472 (void) dbopen( NULL, 0, 0, 0, NULL);
17477 if { (eval echo configure:17478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17481 echo "configure: failed program was:" >&5
17482 cat conftest.$ac_ext >&5
17492 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17494 if test $ol_cv_db_db_41 = yes ; then
17495 ol_cv_lib_db=-ldb-41
17499 if test $ol_cv_lib_db = no ; then
17500 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17501 echo "configure:17502: checking for Berkeley DB link (-ldb-4.1)" >&5
17502 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17503 echo $ac_n "(cached) $ac_c" 1>&6
17508 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17510 cat > conftest.$ac_ext <<EOF
17511 #line 17512 "configure"
17512 #include "confdefs.h"
17514 #ifdef HAVE_DB_185_H
17515 # include <db_185.h>
17520 #ifndef DB_VERSION_MAJOR
17521 # define DB_VERSION_MAJOR 1
17525 #define NULL ((void*)0)
17530 #if DB_VERSION_MAJOR > 1
17533 int major, minor, patch;
17535 version = db_version( &major, &minor, &patch );
17537 if( major != DB_VERSION_MAJOR ||
17538 minor < DB_VERSION_MINOR )
17540 printf("Berkeley DB version mismatch\n"
17541 "\texpected: %s\n\tgot: %s\n",
17542 DB_VERSION_STRING, version);
17548 #if DB_VERSION_MAJOR > 2
17549 db_env_create( NULL, 0 );
17550 #elif DB_VERSION_MAJOR > 1
17551 db_appexit( NULL );
17553 (void) dbopen( NULL, 0, 0, 0, NULL);
17558 if { (eval echo configure:17559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17560 ol_cv_db_db_4_dot_1=yes
17562 echo "configure: failed program was:" >&5
17563 cat conftest.$ac_ext >&5
17565 ol_cv_db_db_4_dot_1=no
17573 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17575 if test $ol_cv_db_db_4_dot_1 = yes ; then
17576 ol_cv_lib_db=-ldb-4.1
17580 if test $ol_cv_lib_db = no ; then
17581 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17582 echo "configure:17583: checking for Berkeley DB link (-ldb-4-1)" >&5
17583 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17584 echo $ac_n "(cached) $ac_c" 1>&6
17589 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17591 cat > conftest.$ac_ext <<EOF
17592 #line 17593 "configure"
17593 #include "confdefs.h"
17595 #ifdef HAVE_DB_185_H
17596 # include <db_185.h>
17601 #ifndef DB_VERSION_MAJOR
17602 # define DB_VERSION_MAJOR 1
17606 #define NULL ((void*)0)
17611 #if DB_VERSION_MAJOR > 1
17614 int major, minor, patch;
17616 version = db_version( &major, &minor, &patch );
17618 if( major != DB_VERSION_MAJOR ||
17619 minor < DB_VERSION_MINOR )
17621 printf("Berkeley DB version mismatch\n"
17622 "\texpected: %s\n\tgot: %s\n",
17623 DB_VERSION_STRING, version);
17629 #if DB_VERSION_MAJOR > 2
17630 db_env_create( NULL, 0 );
17631 #elif DB_VERSION_MAJOR > 1
17632 db_appexit( NULL );
17634 (void) dbopen( NULL, 0, 0, 0, NULL);
17639 if { (eval echo configure:17640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17641 ol_cv_db_db_4_1=yes
17643 echo "configure: failed program was:" >&5
17644 cat conftest.$ac_ext >&5
17654 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17656 if test $ol_cv_db_db_4_1 = yes ; then
17657 ol_cv_lib_db=-ldb-4-1
17661 if test $ol_cv_lib_db = no ; then
17662 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17663 echo "configure:17664: checking for Berkeley DB link (-ldb3)" >&5
17664 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17665 echo $ac_n "(cached) $ac_c" 1>&6
17670 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17672 cat > conftest.$ac_ext <<EOF
17673 #line 17674 "configure"
17674 #include "confdefs.h"
17676 #ifdef HAVE_DB_185_H
17677 # include <db_185.h>
17682 #ifndef DB_VERSION_MAJOR
17683 # define DB_VERSION_MAJOR 1
17687 #define NULL ((void*)0)
17692 #if DB_VERSION_MAJOR > 1
17695 int major, minor, patch;
17697 version = db_version( &major, &minor, &patch );
17699 if( major != DB_VERSION_MAJOR ||
17700 minor < DB_VERSION_MINOR )
17702 printf("Berkeley DB version mismatch\n"
17703 "\texpected: %s\n\tgot: %s\n",
17704 DB_VERSION_STRING, version);
17710 #if DB_VERSION_MAJOR > 2
17711 db_env_create( NULL, 0 );
17712 #elif DB_VERSION_MAJOR > 1
17713 db_appexit( NULL );
17715 (void) dbopen( NULL, 0, 0, 0, NULL);
17720 if { (eval echo configure:17721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17724 echo "configure: failed program was:" >&5
17725 cat conftest.$ac_ext >&5
17735 echo "$ac_t""$ol_cv_db_db3" 1>&6
17737 if test $ol_cv_db_db3 = yes ; then
17742 if test $ol_cv_lib_db = no ; then
17743 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17744 echo "configure:17745: checking for Berkeley DB link (-ldb-3)" >&5
17745 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17746 echo $ac_n "(cached) $ac_c" 1>&6
17751 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17753 cat > conftest.$ac_ext <<EOF
17754 #line 17755 "configure"
17755 #include "confdefs.h"
17757 #ifdef HAVE_DB_185_H
17758 # include <db_185.h>
17763 #ifndef DB_VERSION_MAJOR
17764 # define DB_VERSION_MAJOR 1
17768 #define NULL ((void*)0)
17773 #if DB_VERSION_MAJOR > 1
17776 int major, minor, patch;
17778 version = db_version( &major, &minor, &patch );
17780 if( major != DB_VERSION_MAJOR ||
17781 minor < DB_VERSION_MINOR )
17783 printf("Berkeley DB version mismatch\n"
17784 "\texpected: %s\n\tgot: %s\n",
17785 DB_VERSION_STRING, version);
17791 #if DB_VERSION_MAJOR > 2
17792 db_env_create( NULL, 0 );
17793 #elif DB_VERSION_MAJOR > 1
17794 db_appexit( NULL );
17796 (void) dbopen( NULL, 0, 0, 0, NULL);
17801 if { (eval echo configure:17802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17805 echo "configure: failed program was:" >&5
17806 cat conftest.$ac_ext >&5
17816 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17818 if test $ol_cv_db_db_3 = yes ; then
17819 ol_cv_lib_db=-ldb-3
17823 if test $ol_cv_lib_db = no ; then
17824 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17825 echo "configure:17826: checking for Berkeley DB link (-ldb2)" >&5
17826 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17827 echo $ac_n "(cached) $ac_c" 1>&6
17832 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17834 cat > conftest.$ac_ext <<EOF
17835 #line 17836 "configure"
17836 #include "confdefs.h"
17838 #ifdef HAVE_DB_185_H
17839 # include <db_185.h>
17844 #ifndef DB_VERSION_MAJOR
17845 # define DB_VERSION_MAJOR 1
17849 #define NULL ((void*)0)
17854 #if DB_VERSION_MAJOR > 1
17857 int major, minor, patch;
17859 version = db_version( &major, &minor, &patch );
17861 if( major != DB_VERSION_MAJOR ||
17862 minor < DB_VERSION_MINOR )
17864 printf("Berkeley DB version mismatch\n"
17865 "\texpected: %s\n\tgot: %s\n",
17866 DB_VERSION_STRING, version);
17872 #if DB_VERSION_MAJOR > 2
17873 db_env_create( NULL, 0 );
17874 #elif DB_VERSION_MAJOR > 1
17875 db_appexit( NULL );
17877 (void) dbopen( NULL, 0, 0, 0, NULL);
17882 if { (eval echo configure:17883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17886 echo "configure: failed program was:" >&5
17887 cat conftest.$ac_ext >&5
17897 echo "$ac_t""$ol_cv_db_db2" 1>&6
17899 if test $ol_cv_db_db2 = yes ; then
17904 if test $ol_cv_lib_db = no ; then
17905 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
17906 echo "configure:17907: checking for Berkeley DB link (-ldb-2)" >&5
17907 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
17908 echo $ac_n "(cached) $ac_c" 1>&6
17913 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17915 cat > conftest.$ac_ext <<EOF
17916 #line 17917 "configure"
17917 #include "confdefs.h"
17919 #ifdef HAVE_DB_185_H
17920 # include <db_185.h>
17925 #ifndef DB_VERSION_MAJOR
17926 # define DB_VERSION_MAJOR 1
17930 #define NULL ((void*)0)
17935 #if DB_VERSION_MAJOR > 1
17938 int major, minor, patch;
17940 version = db_version( &major, &minor, &patch );
17942 if( major != DB_VERSION_MAJOR ||
17943 minor < DB_VERSION_MINOR )
17945 printf("Berkeley DB version mismatch\n"
17946 "\texpected: %s\n\tgot: %s\n",
17947 DB_VERSION_STRING, version);
17953 #if DB_VERSION_MAJOR > 2
17954 db_env_create( NULL, 0 );
17955 #elif DB_VERSION_MAJOR > 1
17956 db_appexit( NULL );
17958 (void) dbopen( NULL, 0, 0, 0, NULL);
17963 if { (eval echo configure:17964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17967 echo "configure: failed program was:" >&5
17968 cat conftest.$ac_ext >&5
17978 echo "$ac_t""$ol_cv_db_db_2" 1>&6
17980 if test $ol_cv_db_db_2 = yes ; then
17981 ol_cv_lib_db=-ldb-2
17985 if test $ol_cv_lib_db = no ; then
17986 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
17987 echo "configure:17988: checking for Berkeley DB link (-ldb1)" >&5
17988 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
17989 echo $ac_n "(cached) $ac_c" 1>&6
17994 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17996 cat > conftest.$ac_ext <<EOF
17997 #line 17998 "configure"
17998 #include "confdefs.h"
18000 #ifdef HAVE_DB_185_H
18001 # include <db_185.h>
18006 #ifndef DB_VERSION_MAJOR
18007 # define DB_VERSION_MAJOR 1
18011 #define NULL ((void*)0)
18016 #if DB_VERSION_MAJOR > 1
18019 int major, minor, patch;
18021 version = db_version( &major, &minor, &patch );
18023 if( major != DB_VERSION_MAJOR ||
18024 minor < DB_VERSION_MINOR )
18026 printf("Berkeley DB version mismatch\n"
18027 "\texpected: %s\n\tgot: %s\n",
18028 DB_VERSION_STRING, version);
18034 #if DB_VERSION_MAJOR > 2
18035 db_env_create( NULL, 0 );
18036 #elif DB_VERSION_MAJOR > 1
18037 db_appexit( NULL );
18039 (void) dbopen( NULL, 0, 0, 0, NULL);
18044 if { (eval echo configure:18045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18048 echo "configure: failed program was:" >&5
18049 cat conftest.$ac_ext >&5
18059 echo "$ac_t""$ol_cv_db_db1" 1>&6
18061 if test $ol_cv_db_db1 = yes ; then
18066 if test $ol_cv_lib_db = no ; then
18067 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18068 echo "configure:18069: checking for Berkeley DB link (-ldb-1)" >&5
18069 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18070 echo $ac_n "(cached) $ac_c" 1>&6
18075 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18077 cat > conftest.$ac_ext <<EOF
18078 #line 18079 "configure"
18079 #include "confdefs.h"
18081 #ifdef HAVE_DB_185_H
18082 # include <db_185.h>
18087 #ifndef DB_VERSION_MAJOR
18088 # define DB_VERSION_MAJOR 1
18092 #define NULL ((void*)0)
18097 #if DB_VERSION_MAJOR > 1
18100 int major, minor, patch;
18102 version = db_version( &major, &minor, &patch );
18104 if( major != DB_VERSION_MAJOR ||
18105 minor < DB_VERSION_MINOR )
18107 printf("Berkeley DB version mismatch\n"
18108 "\texpected: %s\n\tgot: %s\n",
18109 DB_VERSION_STRING, version);
18115 #if DB_VERSION_MAJOR > 2
18116 db_env_create( NULL, 0 );
18117 #elif DB_VERSION_MAJOR > 1
18118 db_appexit( NULL );
18120 (void) dbopen( NULL, 0, 0, 0, NULL);
18125 if { (eval echo configure:18126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18129 echo "configure: failed program was:" >&5
18130 cat conftest.$ac_ext >&5
18140 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18142 if test $ol_cv_db_db_1 = yes ; then
18143 ol_cv_lib_db=-ldb-1
18148 if test "$ol_cv_lib_db" != no ; then
18149 ol_cv_berkeley_db=yes
18155 ol_cv_berkeley_db=no
18158 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18159 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18160 echo "configure:18161: checking for $ac_hdr" >&5
18161 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18162 echo $ac_n "(cached) $ac_c" 1>&6
18164 cat > conftest.$ac_ext <<EOF
18165 #line 18166 "configure"
18166 #include "confdefs.h"
18169 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18170 { (eval echo configure:18171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18171 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18172 if test -z "$ac_err"; then
18174 eval "ac_cv_header_$ac_safe=yes"
18177 echo "configure: failed program was:" >&5
18178 cat conftest.$ac_ext >&5
18180 eval "ac_cv_header_$ac_safe=no"
18184 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18185 echo "$ac_t""yes" 1>&6
18186 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18187 cat >> confdefs.h <<EOF
18188 #define $ac_tr_hdr 1
18192 echo "$ac_t""no" 1>&6
18196 if test $ac_cv_header_db_h = yes; then
18198 if test $ol_cv_lib_db = no ; then
18199 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18200 echo "configure:18201: checking for Berkeley DB link (default)" >&5
18201 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18202 echo $ac_n "(cached) $ac_c" 1>&6
18207 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18209 cat > conftest.$ac_ext <<EOF
18210 #line 18211 "configure"
18211 #include "confdefs.h"
18213 #ifdef HAVE_DB_185_H
18214 # include <db_185.h>
18219 #ifndef DB_VERSION_MAJOR
18220 # define DB_VERSION_MAJOR 1
18224 #define NULL ((void*)0)
18229 #if DB_VERSION_MAJOR > 1
18232 int major, minor, patch;
18234 version = db_version( &major, &minor, &patch );
18236 if( major != DB_VERSION_MAJOR ||
18237 minor < DB_VERSION_MINOR )
18239 printf("Berkeley DB version mismatch\n"
18240 "\texpected: %s\n\tgot: %s\n",
18241 DB_VERSION_STRING, version);
18247 #if DB_VERSION_MAJOR > 2
18248 db_env_create( NULL, 0 );
18249 #elif DB_VERSION_MAJOR > 1
18250 db_appexit( NULL );
18252 (void) dbopen( NULL, 0, 0, 0, NULL);
18257 if { (eval echo configure:18258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18261 echo "configure: failed program was:" >&5
18262 cat conftest.$ac_ext >&5
18272 echo "$ac_t""$ol_cv_db_none" 1>&6
18274 if test $ol_cv_db_none = yes ; then
18279 if test $ol_cv_lib_db = no ; then
18280 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18281 echo "configure:18282: checking for Berkeley DB link (-ldb42)" >&5
18282 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18283 echo $ac_n "(cached) $ac_c" 1>&6
18288 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18290 cat > conftest.$ac_ext <<EOF
18291 #line 18292 "configure"
18292 #include "confdefs.h"
18294 #ifdef HAVE_DB_185_H
18295 # include <db_185.h>
18300 #ifndef DB_VERSION_MAJOR
18301 # define DB_VERSION_MAJOR 1
18305 #define NULL ((void*)0)
18310 #if DB_VERSION_MAJOR > 1
18313 int major, minor, patch;
18315 version = db_version( &major, &minor, &patch );
18317 if( major != DB_VERSION_MAJOR ||
18318 minor < DB_VERSION_MINOR )
18320 printf("Berkeley DB version mismatch\n"
18321 "\texpected: %s\n\tgot: %s\n",
18322 DB_VERSION_STRING, version);
18328 #if DB_VERSION_MAJOR > 2
18329 db_env_create( NULL, 0 );
18330 #elif DB_VERSION_MAJOR > 1
18331 db_appexit( NULL );
18333 (void) dbopen( NULL, 0, 0, 0, NULL);
18338 if { (eval echo configure:18339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18342 echo "configure: failed program was:" >&5
18343 cat conftest.$ac_ext >&5
18353 echo "$ac_t""$ol_cv_db_db42" 1>&6
18355 if test $ol_cv_db_db42 = yes ; then
18356 ol_cv_lib_db=-ldb42
18360 if test $ol_cv_lib_db = no ; then
18361 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18362 echo "configure:18363: checking for Berkeley DB link (-ldb-42)" >&5
18363 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18364 echo $ac_n "(cached) $ac_c" 1>&6
18369 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18371 cat > conftest.$ac_ext <<EOF
18372 #line 18373 "configure"
18373 #include "confdefs.h"
18375 #ifdef HAVE_DB_185_H
18376 # include <db_185.h>
18381 #ifndef DB_VERSION_MAJOR
18382 # define DB_VERSION_MAJOR 1
18386 #define NULL ((void*)0)
18391 #if DB_VERSION_MAJOR > 1
18394 int major, minor, patch;
18396 version = db_version( &major, &minor, &patch );
18398 if( major != DB_VERSION_MAJOR ||
18399 minor < DB_VERSION_MINOR )
18401 printf("Berkeley DB version mismatch\n"
18402 "\texpected: %s\n\tgot: %s\n",
18403 DB_VERSION_STRING, version);
18409 #if DB_VERSION_MAJOR > 2
18410 db_env_create( NULL, 0 );
18411 #elif DB_VERSION_MAJOR > 1
18412 db_appexit( NULL );
18414 (void) dbopen( NULL, 0, 0, 0, NULL);
18419 if { (eval echo configure:18420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18423 echo "configure: failed program was:" >&5
18424 cat conftest.$ac_ext >&5
18434 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18436 if test $ol_cv_db_db_42 = yes ; then
18437 ol_cv_lib_db=-ldb-42
18441 if test $ol_cv_lib_db = no ; then
18442 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18443 echo "configure:18444: checking for Berkeley DB link (-ldb-4.2)" >&5
18444 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18445 echo $ac_n "(cached) $ac_c" 1>&6
18450 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18452 cat > conftest.$ac_ext <<EOF
18453 #line 18454 "configure"
18454 #include "confdefs.h"
18456 #ifdef HAVE_DB_185_H
18457 # include <db_185.h>
18462 #ifndef DB_VERSION_MAJOR
18463 # define DB_VERSION_MAJOR 1
18467 #define NULL ((void*)0)
18472 #if DB_VERSION_MAJOR > 1
18475 int major, minor, patch;
18477 version = db_version( &major, &minor, &patch );
18479 if( major != DB_VERSION_MAJOR ||
18480 minor < DB_VERSION_MINOR )
18482 printf("Berkeley DB version mismatch\n"
18483 "\texpected: %s\n\tgot: %s\n",
18484 DB_VERSION_STRING, version);
18490 #if DB_VERSION_MAJOR > 2
18491 db_env_create( NULL, 0 );
18492 #elif DB_VERSION_MAJOR > 1
18493 db_appexit( NULL );
18495 (void) dbopen( NULL, 0, 0, 0, NULL);
18500 if { (eval echo configure:18501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18502 ol_cv_db_db_4_dot_2=yes
18504 echo "configure: failed program was:" >&5
18505 cat conftest.$ac_ext >&5
18507 ol_cv_db_db_4_dot_2=no
18515 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18517 if test $ol_cv_db_db_4_dot_2 = yes ; then
18518 ol_cv_lib_db=-ldb-4.2
18522 if test $ol_cv_lib_db = no ; then
18523 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18524 echo "configure:18525: checking for Berkeley DB link (-ldb-4-2)" >&5
18525 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18526 echo $ac_n "(cached) $ac_c" 1>&6
18531 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18533 cat > conftest.$ac_ext <<EOF
18534 #line 18535 "configure"
18535 #include "confdefs.h"
18537 #ifdef HAVE_DB_185_H
18538 # include <db_185.h>
18543 #ifndef DB_VERSION_MAJOR
18544 # define DB_VERSION_MAJOR 1
18548 #define NULL ((void*)0)
18553 #if DB_VERSION_MAJOR > 1
18556 int major, minor, patch;
18558 version = db_version( &major, &minor, &patch );
18560 if( major != DB_VERSION_MAJOR ||
18561 minor < DB_VERSION_MINOR )
18563 printf("Berkeley DB version mismatch\n"
18564 "\texpected: %s\n\tgot: %s\n",
18565 DB_VERSION_STRING, version);
18571 #if DB_VERSION_MAJOR > 2
18572 db_env_create( NULL, 0 );
18573 #elif DB_VERSION_MAJOR > 1
18574 db_appexit( NULL );
18576 (void) dbopen( NULL, 0, 0, 0, NULL);
18581 if { (eval echo configure:18582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18583 ol_cv_db_db_4_2=yes
18585 echo "configure: failed program was:" >&5
18586 cat conftest.$ac_ext >&5
18596 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18598 if test $ol_cv_db_db_4_2 = yes ; then
18599 ol_cv_lib_db=-ldb-4-2
18603 if test $ol_cv_lib_db = no ; then
18604 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18605 echo "configure:18606: checking for Berkeley DB link (-ldb-4)" >&5
18606 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18607 echo $ac_n "(cached) $ac_c" 1>&6
18612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18614 cat > conftest.$ac_ext <<EOF
18615 #line 18616 "configure"
18616 #include "confdefs.h"
18618 #ifdef HAVE_DB_185_H
18619 # include <db_185.h>
18624 #ifndef DB_VERSION_MAJOR
18625 # define DB_VERSION_MAJOR 1
18629 #define NULL ((void*)0)
18634 #if DB_VERSION_MAJOR > 1
18637 int major, minor, patch;
18639 version = db_version( &major, &minor, &patch );
18641 if( major != DB_VERSION_MAJOR ||
18642 minor < DB_VERSION_MINOR )
18644 printf("Berkeley DB version mismatch\n"
18645 "\texpected: %s\n\tgot: %s\n",
18646 DB_VERSION_STRING, version);
18652 #if DB_VERSION_MAJOR > 2
18653 db_env_create( NULL, 0 );
18654 #elif DB_VERSION_MAJOR > 1
18655 db_appexit( NULL );
18657 (void) dbopen( NULL, 0, 0, 0, NULL);
18662 if { (eval echo configure:18663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18666 echo "configure: failed program was:" >&5
18667 cat conftest.$ac_ext >&5
18677 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18679 if test $ol_cv_db_db_4 = yes ; then
18680 ol_cv_lib_db=-ldb-4
18684 if test $ol_cv_lib_db = no ; then
18685 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18686 echo "configure:18687: checking for Berkeley DB link (-ldb4)" >&5
18687 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18688 echo $ac_n "(cached) $ac_c" 1>&6
18693 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18695 cat > conftest.$ac_ext <<EOF
18696 #line 18697 "configure"
18697 #include "confdefs.h"
18699 #ifdef HAVE_DB_185_H
18700 # include <db_185.h>
18705 #ifndef DB_VERSION_MAJOR
18706 # define DB_VERSION_MAJOR 1
18710 #define NULL ((void*)0)
18715 #if DB_VERSION_MAJOR > 1
18718 int major, minor, patch;
18720 version = db_version( &major, &minor, &patch );
18722 if( major != DB_VERSION_MAJOR ||
18723 minor < DB_VERSION_MINOR )
18725 printf("Berkeley DB version mismatch\n"
18726 "\texpected: %s\n\tgot: %s\n",
18727 DB_VERSION_STRING, version);
18733 #if DB_VERSION_MAJOR > 2
18734 db_env_create( NULL, 0 );
18735 #elif DB_VERSION_MAJOR > 1
18736 db_appexit( NULL );
18738 (void) dbopen( NULL, 0, 0, 0, NULL);
18743 if { (eval echo configure:18744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18747 echo "configure: failed program was:" >&5
18748 cat conftest.$ac_ext >&5
18758 echo "$ac_t""$ol_cv_db_db4" 1>&6
18760 if test $ol_cv_db_db4 = yes ; then
18765 if test $ol_cv_lib_db = no ; then
18766 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18767 echo "configure:18768: checking for Berkeley DB link (-ldb)" >&5
18768 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18769 echo $ac_n "(cached) $ac_c" 1>&6
18774 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18776 cat > conftest.$ac_ext <<EOF
18777 #line 18778 "configure"
18778 #include "confdefs.h"
18780 #ifdef HAVE_DB_185_H
18781 # include <db_185.h>
18786 #ifndef DB_VERSION_MAJOR
18787 # define DB_VERSION_MAJOR 1
18791 #define NULL ((void*)0)
18796 #if DB_VERSION_MAJOR > 1
18799 int major, minor, patch;
18801 version = db_version( &major, &minor, &patch );
18803 if( major != DB_VERSION_MAJOR ||
18804 minor < DB_VERSION_MINOR )
18806 printf("Berkeley DB version mismatch\n"
18807 "\texpected: %s\n\tgot: %s\n",
18808 DB_VERSION_STRING, version);
18814 #if DB_VERSION_MAJOR > 2
18815 db_env_create( NULL, 0 );
18816 #elif DB_VERSION_MAJOR > 1
18817 db_appexit( NULL );
18819 (void) dbopen( NULL, 0, 0, 0, NULL);
18824 if { (eval echo configure:18825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18828 echo "configure: failed program was:" >&5
18829 cat conftest.$ac_ext >&5
18839 echo "$ac_t""$ol_cv_db_db" 1>&6
18841 if test $ol_cv_db_db = yes ; then
18846 if test $ol_cv_lib_db = no ; then
18847 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18848 echo "configure:18849: checking for Berkeley DB link (-ldb41)" >&5
18849 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18850 echo $ac_n "(cached) $ac_c" 1>&6
18855 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18857 cat > conftest.$ac_ext <<EOF
18858 #line 18859 "configure"
18859 #include "confdefs.h"
18861 #ifdef HAVE_DB_185_H
18862 # include <db_185.h>
18867 #ifndef DB_VERSION_MAJOR
18868 # define DB_VERSION_MAJOR 1
18872 #define NULL ((void*)0)
18877 #if DB_VERSION_MAJOR > 1
18880 int major, minor, patch;
18882 version = db_version( &major, &minor, &patch );
18884 if( major != DB_VERSION_MAJOR ||
18885 minor < DB_VERSION_MINOR )
18887 printf("Berkeley DB version mismatch\n"
18888 "\texpected: %s\n\tgot: %s\n",
18889 DB_VERSION_STRING, version);
18895 #if DB_VERSION_MAJOR > 2
18896 db_env_create( NULL, 0 );
18897 #elif DB_VERSION_MAJOR > 1
18898 db_appexit( NULL );
18900 (void) dbopen( NULL, 0, 0, 0, NULL);
18905 if { (eval echo configure:18906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18909 echo "configure: failed program was:" >&5
18910 cat conftest.$ac_ext >&5
18920 echo "$ac_t""$ol_cv_db_db41" 1>&6
18922 if test $ol_cv_db_db41 = yes ; then
18923 ol_cv_lib_db=-ldb41
18927 if test $ol_cv_lib_db = no ; then
18928 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18929 echo "configure:18930: checking for Berkeley DB link (-ldb-41)" >&5
18930 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18931 echo $ac_n "(cached) $ac_c" 1>&6
18936 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18938 cat > conftest.$ac_ext <<EOF
18939 #line 18940 "configure"
18940 #include "confdefs.h"
18942 #ifdef HAVE_DB_185_H
18943 # include <db_185.h>
18948 #ifndef DB_VERSION_MAJOR
18949 # define DB_VERSION_MAJOR 1
18953 #define NULL ((void*)0)
18958 #if DB_VERSION_MAJOR > 1
18961 int major, minor, patch;
18963 version = db_version( &major, &minor, &patch );
18965 if( major != DB_VERSION_MAJOR ||
18966 minor < DB_VERSION_MINOR )
18968 printf("Berkeley DB version mismatch\n"
18969 "\texpected: %s\n\tgot: %s\n",
18970 DB_VERSION_STRING, version);
18976 #if DB_VERSION_MAJOR > 2
18977 db_env_create( NULL, 0 );
18978 #elif DB_VERSION_MAJOR > 1
18979 db_appexit( NULL );
18981 (void) dbopen( NULL, 0, 0, 0, NULL);
18986 if { (eval echo configure:18987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18990 echo "configure: failed program was:" >&5
18991 cat conftest.$ac_ext >&5
19001 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19003 if test $ol_cv_db_db_41 = yes ; then
19004 ol_cv_lib_db=-ldb-41
19008 if test $ol_cv_lib_db = no ; then
19009 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19010 echo "configure:19011: checking for Berkeley DB link (-ldb-4.1)" >&5
19011 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19012 echo $ac_n "(cached) $ac_c" 1>&6
19017 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19019 cat > conftest.$ac_ext <<EOF
19020 #line 19021 "configure"
19021 #include "confdefs.h"
19023 #ifdef HAVE_DB_185_H
19024 # include <db_185.h>
19029 #ifndef DB_VERSION_MAJOR
19030 # define DB_VERSION_MAJOR 1
19034 #define NULL ((void*)0)
19039 #if DB_VERSION_MAJOR > 1
19042 int major, minor, patch;
19044 version = db_version( &major, &minor, &patch );
19046 if( major != DB_VERSION_MAJOR ||
19047 minor < DB_VERSION_MINOR )
19049 printf("Berkeley DB version mismatch\n"
19050 "\texpected: %s\n\tgot: %s\n",
19051 DB_VERSION_STRING, version);
19057 #if DB_VERSION_MAJOR > 2
19058 db_env_create( NULL, 0 );
19059 #elif DB_VERSION_MAJOR > 1
19060 db_appexit( NULL );
19062 (void) dbopen( NULL, 0, 0, 0, NULL);
19067 if { (eval echo configure:19068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19069 ol_cv_db_db_4_dot_1=yes
19071 echo "configure: failed program was:" >&5
19072 cat conftest.$ac_ext >&5
19074 ol_cv_db_db_4_dot_1=no
19082 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19084 if test $ol_cv_db_db_4_dot_1 = yes ; then
19085 ol_cv_lib_db=-ldb-4.1
19089 if test $ol_cv_lib_db = no ; then
19090 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19091 echo "configure:19092: checking for Berkeley DB link (-ldb-4-1)" >&5
19092 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19093 echo $ac_n "(cached) $ac_c" 1>&6
19098 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19100 cat > conftest.$ac_ext <<EOF
19101 #line 19102 "configure"
19102 #include "confdefs.h"
19104 #ifdef HAVE_DB_185_H
19105 # include <db_185.h>
19110 #ifndef DB_VERSION_MAJOR
19111 # define DB_VERSION_MAJOR 1
19115 #define NULL ((void*)0)
19120 #if DB_VERSION_MAJOR > 1
19123 int major, minor, patch;
19125 version = db_version( &major, &minor, &patch );
19127 if( major != DB_VERSION_MAJOR ||
19128 minor < DB_VERSION_MINOR )
19130 printf("Berkeley DB version mismatch\n"
19131 "\texpected: %s\n\tgot: %s\n",
19132 DB_VERSION_STRING, version);
19138 #if DB_VERSION_MAJOR > 2
19139 db_env_create( NULL, 0 );
19140 #elif DB_VERSION_MAJOR > 1
19141 db_appexit( NULL );
19143 (void) dbopen( NULL, 0, 0, 0, NULL);
19148 if { (eval echo configure:19149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19150 ol_cv_db_db_4_1=yes
19152 echo "configure: failed program was:" >&5
19153 cat conftest.$ac_ext >&5
19163 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19165 if test $ol_cv_db_db_4_1 = yes ; then
19166 ol_cv_lib_db=-ldb-4-1
19170 if test $ol_cv_lib_db = no ; then
19171 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19172 echo "configure:19173: checking for Berkeley DB link (-ldb3)" >&5
19173 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19174 echo $ac_n "(cached) $ac_c" 1>&6
19179 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19181 cat > conftest.$ac_ext <<EOF
19182 #line 19183 "configure"
19183 #include "confdefs.h"
19185 #ifdef HAVE_DB_185_H
19186 # include <db_185.h>
19191 #ifndef DB_VERSION_MAJOR
19192 # define DB_VERSION_MAJOR 1
19196 #define NULL ((void*)0)
19201 #if DB_VERSION_MAJOR > 1
19204 int major, minor, patch;
19206 version = db_version( &major, &minor, &patch );
19208 if( major != DB_VERSION_MAJOR ||
19209 minor < DB_VERSION_MINOR )
19211 printf("Berkeley DB version mismatch\n"
19212 "\texpected: %s\n\tgot: %s\n",
19213 DB_VERSION_STRING, version);
19219 #if DB_VERSION_MAJOR > 2
19220 db_env_create( NULL, 0 );
19221 #elif DB_VERSION_MAJOR > 1
19222 db_appexit( NULL );
19224 (void) dbopen( NULL, 0, 0, 0, NULL);
19229 if { (eval echo configure:19230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19233 echo "configure: failed program was:" >&5
19234 cat conftest.$ac_ext >&5
19244 echo "$ac_t""$ol_cv_db_db3" 1>&6
19246 if test $ol_cv_db_db3 = yes ; then
19251 if test $ol_cv_lib_db = no ; then
19252 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19253 echo "configure:19254: checking for Berkeley DB link (-ldb-3)" >&5
19254 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19255 echo $ac_n "(cached) $ac_c" 1>&6
19260 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19262 cat > conftest.$ac_ext <<EOF
19263 #line 19264 "configure"
19264 #include "confdefs.h"
19266 #ifdef HAVE_DB_185_H
19267 # include <db_185.h>
19272 #ifndef DB_VERSION_MAJOR
19273 # define DB_VERSION_MAJOR 1
19277 #define NULL ((void*)0)
19282 #if DB_VERSION_MAJOR > 1
19285 int major, minor, patch;
19287 version = db_version( &major, &minor, &patch );
19289 if( major != DB_VERSION_MAJOR ||
19290 minor < DB_VERSION_MINOR )
19292 printf("Berkeley DB version mismatch\n"
19293 "\texpected: %s\n\tgot: %s\n",
19294 DB_VERSION_STRING, version);
19300 #if DB_VERSION_MAJOR > 2
19301 db_env_create( NULL, 0 );
19302 #elif DB_VERSION_MAJOR > 1
19303 db_appexit( NULL );
19305 (void) dbopen( NULL, 0, 0, 0, NULL);
19310 if { (eval echo configure:19311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19314 echo "configure: failed program was:" >&5
19315 cat conftest.$ac_ext >&5
19325 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19327 if test $ol_cv_db_db_3 = yes ; then
19328 ol_cv_lib_db=-ldb-3
19332 if test $ol_cv_lib_db = no ; then
19333 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19334 echo "configure:19335: checking for Berkeley DB link (-ldb2)" >&5
19335 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19336 echo $ac_n "(cached) $ac_c" 1>&6
19341 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19343 cat > conftest.$ac_ext <<EOF
19344 #line 19345 "configure"
19345 #include "confdefs.h"
19347 #ifdef HAVE_DB_185_H
19348 # include <db_185.h>
19353 #ifndef DB_VERSION_MAJOR
19354 # define DB_VERSION_MAJOR 1
19358 #define NULL ((void*)0)
19363 #if DB_VERSION_MAJOR > 1
19366 int major, minor, patch;
19368 version = db_version( &major, &minor, &patch );
19370 if( major != DB_VERSION_MAJOR ||
19371 minor < DB_VERSION_MINOR )
19373 printf("Berkeley DB version mismatch\n"
19374 "\texpected: %s\n\tgot: %s\n",
19375 DB_VERSION_STRING, version);
19381 #if DB_VERSION_MAJOR > 2
19382 db_env_create( NULL, 0 );
19383 #elif DB_VERSION_MAJOR > 1
19384 db_appexit( NULL );
19386 (void) dbopen( NULL, 0, 0, 0, NULL);
19391 if { (eval echo configure:19392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19395 echo "configure: failed program was:" >&5
19396 cat conftest.$ac_ext >&5
19406 echo "$ac_t""$ol_cv_db_db2" 1>&6
19408 if test $ol_cv_db_db2 = yes ; then
19413 if test $ol_cv_lib_db = no ; then
19414 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19415 echo "configure:19416: checking for Berkeley DB link (-ldb-2)" >&5
19416 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19417 echo $ac_n "(cached) $ac_c" 1>&6
19422 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19424 cat > conftest.$ac_ext <<EOF
19425 #line 19426 "configure"
19426 #include "confdefs.h"
19428 #ifdef HAVE_DB_185_H
19429 # include <db_185.h>
19434 #ifndef DB_VERSION_MAJOR
19435 # define DB_VERSION_MAJOR 1
19439 #define NULL ((void*)0)
19444 #if DB_VERSION_MAJOR > 1
19447 int major, minor, patch;
19449 version = db_version( &major, &minor, &patch );
19451 if( major != DB_VERSION_MAJOR ||
19452 minor < DB_VERSION_MINOR )
19454 printf("Berkeley DB version mismatch\n"
19455 "\texpected: %s\n\tgot: %s\n",
19456 DB_VERSION_STRING, version);
19462 #if DB_VERSION_MAJOR > 2
19463 db_env_create( NULL, 0 );
19464 #elif DB_VERSION_MAJOR > 1
19465 db_appexit( NULL );
19467 (void) dbopen( NULL, 0, 0, 0, NULL);
19472 if { (eval echo configure:19473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19476 echo "configure: failed program was:" >&5
19477 cat conftest.$ac_ext >&5
19487 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19489 if test $ol_cv_db_db_2 = yes ; then
19490 ol_cv_lib_db=-ldb-2
19494 if test $ol_cv_lib_db = no ; then
19495 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19496 echo "configure:19497: checking for Berkeley DB link (-ldb1)" >&5
19497 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19498 echo $ac_n "(cached) $ac_c" 1>&6
19503 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19505 cat > conftest.$ac_ext <<EOF
19506 #line 19507 "configure"
19507 #include "confdefs.h"
19509 #ifdef HAVE_DB_185_H
19510 # include <db_185.h>
19515 #ifndef DB_VERSION_MAJOR
19516 # define DB_VERSION_MAJOR 1
19520 #define NULL ((void*)0)
19525 #if DB_VERSION_MAJOR > 1
19528 int major, minor, patch;
19530 version = db_version( &major, &minor, &patch );
19532 if( major != DB_VERSION_MAJOR ||
19533 minor < DB_VERSION_MINOR )
19535 printf("Berkeley DB version mismatch\n"
19536 "\texpected: %s\n\tgot: %s\n",
19537 DB_VERSION_STRING, version);
19543 #if DB_VERSION_MAJOR > 2
19544 db_env_create( NULL, 0 );
19545 #elif DB_VERSION_MAJOR > 1
19546 db_appexit( NULL );
19548 (void) dbopen( NULL, 0, 0, 0, NULL);
19553 if { (eval echo configure:19554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19557 echo "configure: failed program was:" >&5
19558 cat conftest.$ac_ext >&5
19568 echo "$ac_t""$ol_cv_db_db1" 1>&6
19570 if test $ol_cv_db_db1 = yes ; then
19575 if test $ol_cv_lib_db = no ; then
19576 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19577 echo "configure:19578: checking for Berkeley DB link (-ldb-1)" >&5
19578 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19579 echo $ac_n "(cached) $ac_c" 1>&6
19584 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19586 cat > conftest.$ac_ext <<EOF
19587 #line 19588 "configure"
19588 #include "confdefs.h"
19590 #ifdef HAVE_DB_185_H
19591 # include <db_185.h>
19596 #ifndef DB_VERSION_MAJOR
19597 # define DB_VERSION_MAJOR 1
19601 #define NULL ((void*)0)
19606 #if DB_VERSION_MAJOR > 1
19609 int major, minor, patch;
19611 version = db_version( &major, &minor, &patch );
19613 if( major != DB_VERSION_MAJOR ||
19614 minor < DB_VERSION_MINOR )
19616 printf("Berkeley DB version mismatch\n"
19617 "\texpected: %s\n\tgot: %s\n",
19618 DB_VERSION_STRING, version);
19624 #if DB_VERSION_MAJOR > 2
19625 db_env_create( NULL, 0 );
19626 #elif DB_VERSION_MAJOR > 1
19627 db_appexit( NULL );
19629 (void) dbopen( NULL, 0, 0, 0, NULL);
19634 if { (eval echo configure:19635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19638 echo "configure: failed program was:" >&5
19639 cat conftest.$ac_ext >&5
19649 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19651 if test $ol_cv_db_db_1 = yes ; then
19652 ol_cv_lib_db=-ldb-1
19657 if test "$ol_cv_lib_db" != no ; then
19658 ol_cv_berkeley_db=yes
19659 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19660 echo "configure:19661: checking for Berkeley DB thread support" >&5
19661 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19662 echo $ac_n "(cached) $ac_c" 1>&6
19666 LIBS="$LTHREAD_LIBS $LIBS"
19667 if test $ol_cv_lib_db != yes ; then
19668 LIBS="$ol_cv_lib_db $LIBS"
19671 if test "$cross_compiling" = yes; then
19672 ol_cv_berkeley_db_thread=cross
19674 cat > conftest.$ac_ext <<EOF
19675 #line 19676 "configure"
19676 #include "confdefs.h"
19678 #ifdef HAVE_DB_185_H
19684 #define NULL ((void *)0)
19689 u_int32_t flags = DB_CREATE |
19695 #if DB_VERSION_MAJOR > 2
19696 DB_ENV *env = NULL;
19698 rc = db_env_create( &env, 0 );
19700 flags |= DB_INIT_MPOOL;
19701 #ifdef DB_MPOOL_PRIVATE
19702 flags |= DB_MPOOL_PRIVATE;
19706 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19710 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19711 rc = env->open( env, NULL, flags, 0 );
19713 rc = env->open( env, NULL, NULL, flags, 0 );
19717 rc = env->close( env, 0 );
19721 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19727 memset( &env, '\0', sizeof(env) );
19729 rc = db_appinit( NULL, NULL, &env, flags );
19732 db_appexit( &env );
19735 unlink("__db_mpool.share");
19736 unlink("__db_lock.share");
19742 if { (eval echo configure:19743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19744 ol_cv_berkeley_db_thread=yes
19746 echo "configure: failed program was:" >&5
19747 cat conftest.$ac_ext >&5
19749 ol_cv_berkeley_db_thread=no
19759 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19761 if test $ol_cv_berkeley_db_thread != no ; then
19762 cat >> confdefs.h <<\EOF
19763 #define HAVE_BERKELEY_DB_THREAD 1
19773 if test $ol_cv_berkeley_db != no ; then
19774 cat >> confdefs.h <<\EOF
19775 #define HAVE_BERKELEY_DB 1
19779 ol_link_ldbm=berkeley
19780 ol_with_ldbm_api=berkeley
19782 if test $ol_with_ldbm_type = hash ; then
19783 cat >> confdefs.h <<\EOF
19784 #define LDBM_USE_DBHASH 1
19788 cat >> confdefs.h <<\EOF
19789 #define LDBM_USE_DBBTREE 1
19794 if test $ol_cv_lib_db != yes ; then
19795 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19800 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19801 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19802 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19803 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19804 echo "configure:19805: checking Berkeley DB version for BDB backend" >&5
19805 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19806 echo $ac_n "(cached) $ac_c" 1>&6
19809 cat > conftest.$ac_ext <<EOF
19810 #line 19811 "configure"
19811 #include "confdefs.h"
19815 /* this check could be improved */
19816 #ifndef DB_VERSION_MAJOR
19817 # define DB_VERSION_MAJOR 1
19819 #ifndef DB_VERSION_MINOR
19820 # define DB_VERSION_MINOR 0
19823 /* require 4.2 or later */
19824 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19825 __db_version_compat
19829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19830 egrep "__db_version_compat" >/dev/null 2>&1; then
19832 ol_cv_bdb_compat=yes
19835 ol_cv_bdb_compat=no
19841 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19844 if test $ol_cv_bdb_compat = yes ; then
19846 elif test $ol_enable_bdb = yes ; then
19847 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19852 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19853 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19856 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19857 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19858 ol_with_ldbm_api=none
19861 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19862 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19863 echo "configure:19864: checking for MDBM library" >&5
19864 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19865 echo $ac_n "(cached) $ac_c" 1>&6
19868 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19869 echo "configure:19870: checking for mdbm_set_chain" >&5
19870 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19871 echo $ac_n "(cached) $ac_c" 1>&6
19873 cat > conftest.$ac_ext <<EOF
19874 #line 19875 "configure"
19875 #include "confdefs.h"
19876 /* System header to define __stub macros and hopefully few prototypes,
19877 which can conflict with char mdbm_set_chain(); below. */
19878 #include <assert.h>
19879 /* Override any gcc2 internal prototype to avoid an error. */
19880 /* We use char because int might match the return type of a gcc2
19881 builtin and then its argument prototype would still apply. */
19882 char mdbm_set_chain();
19887 /* The GNU C library defines this for functions which it implements
19888 to always fail with ENOSYS. Some functions are actually named
19889 something starting with __ and the normal name is an alias. */
19890 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19893 f = mdbm_set_chain;
19898 if { (eval echo configure:19899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19900 eval "ac_cv_func_mdbm_set_chain=yes"
19902 echo "configure: failed program was:" >&5
19903 cat conftest.$ac_ext >&5
19905 eval "ac_cv_func_mdbm_set_chain=no"
19910 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
19911 echo "$ac_t""yes" 1>&6
19914 echo "$ac_t""no" 1>&6
19916 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
19917 echo "configure:19918: checking for mdbm_set_chain in -lmdbm" >&5
19918 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
19919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
19920 echo $ac_n "(cached) $ac_c" 1>&6
19922 ac_save_LIBS="$LIBS"
19923 LIBS="-lmdbm $LIBS"
19924 cat > conftest.$ac_ext <<EOF
19925 #line 19926 "configure"
19926 #include "confdefs.h"
19927 /* Override any gcc2 internal prototype to avoid an error. */
19928 /* We use char because int might match the return type of a gcc2
19929 builtin and then its argument prototype would still apply. */
19930 char mdbm_set_chain();
19936 if { (eval echo configure:19937: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19938 eval "ac_cv_lib_$ac_lib_var=yes"
19940 echo "configure: failed program was:" >&5
19941 cat conftest.$ac_ext >&5
19943 eval "ac_cv_lib_$ac_lib_var=no"
19946 LIBS="$ac_save_LIBS"
19949 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19950 echo "$ac_t""yes" 1>&6
19951 ol_cv_lib_mdbm=-lmdbm
19953 echo "$ac_t""no" 1>&6
19964 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
19967 for ac_hdr in mdbm.h
19969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19971 echo "configure:19972: checking for $ac_hdr" >&5
19972 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
19973 echo $ac_n "(cached) $ac_c" 1>&6
19975 cat > conftest.$ac_ext <<EOF
19976 #line 19977 "configure"
19977 #include "confdefs.h"
19980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19981 { (eval echo configure:19982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19983 if test -z "$ac_err"; then
19985 eval "ac_cv_header_$ac_safe=yes"
19988 echo "configure: failed program was:" >&5
19989 cat conftest.$ac_ext >&5
19991 eval "ac_cv_header_$ac_safe=no"
19995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19996 echo "$ac_t""yes" 1>&6
19997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19998 cat >> confdefs.h <<EOF
19999 #define $ac_tr_hdr 1
20003 echo "$ac_t""no" 1>&6
20007 echo $ac_n "checking for db""... $ac_c" 1>&6
20008 echo "configure:20009: checking for db" >&5
20009 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20010 echo $ac_n "(cached) $ac_c" 1>&6
20013 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20021 echo "$ac_t""$ol_cv_mdbm" 1>&6
20022 if test $ol_cv_mdbm = yes ; then
20023 cat >> confdefs.h <<\EOF
20024 #define HAVE_MDBM 1
20030 if test $ol_cv_mdbm = yes ; then
20032 ol_with_ldbm_api=mdbm
20033 if test $ol_cv_lib_mdbm != yes ; then
20034 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20039 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20040 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20041 echo "configure:20042: checking for GDBM library" >&5
20042 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20043 echo $ac_n "(cached) $ac_c" 1>&6
20046 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20047 echo "configure:20048: checking for gdbm_open" >&5
20048 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20049 echo $ac_n "(cached) $ac_c" 1>&6
20051 cat > conftest.$ac_ext <<EOF
20052 #line 20053 "configure"
20053 #include "confdefs.h"
20054 /* System header to define __stub macros and hopefully few prototypes,
20055 which can conflict with char gdbm_open(); below. */
20056 #include <assert.h>
20057 /* Override any gcc2 internal prototype to avoid an error. */
20058 /* We use char because int might match the return type of a gcc2
20059 builtin and then its argument prototype would still apply. */
20065 /* The GNU C library defines this for functions which it implements
20066 to always fail with ENOSYS. Some functions are actually named
20067 something starting with __ and the normal name is an alias. */
20068 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20076 if { (eval echo configure:20077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20078 eval "ac_cv_func_gdbm_open=yes"
20080 echo "configure: failed program was:" >&5
20081 cat conftest.$ac_ext >&5
20083 eval "ac_cv_func_gdbm_open=no"
20088 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20089 echo "$ac_t""yes" 1>&6
20092 echo "$ac_t""no" 1>&6
20094 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20095 echo "configure:20096: checking for gdbm_open in -lgdbm" >&5
20096 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20098 echo $ac_n "(cached) $ac_c" 1>&6
20100 ac_save_LIBS="$LIBS"
20101 LIBS="-lgdbm $LIBS"
20102 cat > conftest.$ac_ext <<EOF
20103 #line 20104 "configure"
20104 #include "confdefs.h"
20105 /* Override any gcc2 internal prototype to avoid an error. */
20106 /* We use char because int might match the return type of a gcc2
20107 builtin and then its argument prototype would still apply. */
20114 if { (eval echo configure:20115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20116 eval "ac_cv_lib_$ac_lib_var=yes"
20118 echo "configure: failed program was:" >&5
20119 cat conftest.$ac_ext >&5
20121 eval "ac_cv_lib_$ac_lib_var=no"
20124 LIBS="$ac_save_LIBS"
20127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20128 echo "$ac_t""yes" 1>&6
20129 ol_cv_lib_gdbm=-lgdbm
20131 echo "$ac_t""no" 1>&6
20142 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20145 for ac_hdr in gdbm.h
20147 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20149 echo "configure:20150: checking for $ac_hdr" >&5
20150 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20151 echo $ac_n "(cached) $ac_c" 1>&6
20153 cat > conftest.$ac_ext <<EOF
20154 #line 20155 "configure"
20155 #include "confdefs.h"
20158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20159 { (eval echo configure:20160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20161 if test -z "$ac_err"; then
20163 eval "ac_cv_header_$ac_safe=yes"
20166 echo "configure: failed program was:" >&5
20167 cat conftest.$ac_ext >&5
20169 eval "ac_cv_header_$ac_safe=no"
20173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20174 echo "$ac_t""yes" 1>&6
20175 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20176 cat >> confdefs.h <<EOF
20177 #define $ac_tr_hdr 1
20181 echo "$ac_t""no" 1>&6
20185 echo $ac_n "checking for db""... $ac_c" 1>&6
20186 echo "configure:20187: checking for db" >&5
20187 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20188 echo $ac_n "(cached) $ac_c" 1>&6
20191 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20199 echo "$ac_t""$ol_cv_gdbm" 1>&6
20200 if test $ol_cv_gdbm = yes ; then
20201 cat >> confdefs.h <<\EOF
20202 #define HAVE_GDBM 1
20208 if test $ol_cv_gdbm = yes ; then
20210 ol_with_ldbm_api=gdbm
20212 if test $ol_cv_lib_gdbm != yes ; then
20213 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20218 if test $ol_with_ldbm_api = ndbm ; then
20219 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20220 echo "configure:20221: checking for NDBM library" >&5
20221 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20222 echo $ac_n "(cached) $ac_c" 1>&6
20225 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20226 echo "configure:20227: checking for dbm_open" >&5
20227 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20228 echo $ac_n "(cached) $ac_c" 1>&6
20230 cat > conftest.$ac_ext <<EOF
20231 #line 20232 "configure"
20232 #include "confdefs.h"
20233 /* System header to define __stub macros and hopefully few prototypes,
20234 which can conflict with char dbm_open(); below. */
20235 #include <assert.h>
20236 /* Override any gcc2 internal prototype to avoid an error. */
20237 /* We use char because int might match the return type of a gcc2
20238 builtin and then its argument prototype would still apply. */
20244 /* The GNU C library defines this for functions which it implements
20245 to always fail with ENOSYS. Some functions are actually named
20246 something starting with __ and the normal name is an alias. */
20247 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20255 if { (eval echo configure:20256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20257 eval "ac_cv_func_dbm_open=yes"
20259 echo "configure: failed program was:" >&5
20260 cat conftest.$ac_ext >&5
20262 eval "ac_cv_func_dbm_open=no"
20267 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20268 echo "$ac_t""yes" 1>&6
20271 echo "$ac_t""no" 1>&6
20273 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20274 echo "configure:20275: checking for dbm_open in -lndbm" >&5
20275 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20276 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20277 echo $ac_n "(cached) $ac_c" 1>&6
20279 ac_save_LIBS="$LIBS"
20280 LIBS="-lndbm $LIBS"
20281 cat > conftest.$ac_ext <<EOF
20282 #line 20283 "configure"
20283 #include "confdefs.h"
20284 /* Override any gcc2 internal prototype to avoid an error. */
20285 /* We use char because int might match the return type of a gcc2
20286 builtin and then its argument prototype would still apply. */
20293 if { (eval echo configure:20294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20295 eval "ac_cv_lib_$ac_lib_var=yes"
20297 echo "configure: failed program was:" >&5
20298 cat conftest.$ac_ext >&5
20300 eval "ac_cv_lib_$ac_lib_var=no"
20303 LIBS="$ac_save_LIBS"
20306 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20307 echo "$ac_t""yes" 1>&6
20308 ol_cv_lib_ndbm=-lndbm
20310 echo "$ac_t""no" 1>&6
20312 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20313 echo "configure:20314: checking for dbm_open in -ldbm" >&5
20314 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20315 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20316 echo $ac_n "(cached) $ac_c" 1>&6
20318 ac_save_LIBS="$LIBS"
20320 cat > conftest.$ac_ext <<EOF
20321 #line 20322 "configure"
20322 #include "confdefs.h"
20323 /* Override any gcc2 internal prototype to avoid an error. */
20324 /* We use char because int might match the return type of a gcc2
20325 builtin and then its argument prototype would still apply. */
20332 if { (eval echo configure:20333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20334 eval "ac_cv_lib_$ac_lib_var=yes"
20336 echo "configure: failed program was:" >&5
20337 cat conftest.$ac_ext >&5
20339 eval "ac_cv_lib_$ac_lib_var=no"
20342 LIBS="$ac_save_LIBS"
20345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20346 echo "$ac_t""yes" 1>&6
20347 ol_cv_lib_ndbm=-ldbm
20349 echo "$ac_t""no" 1>&6
20362 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20365 for ac_hdr in ndbm.h
20367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20369 echo "configure:20370: checking for $ac_hdr" >&5
20370 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20371 echo $ac_n "(cached) $ac_c" 1>&6
20373 cat > conftest.$ac_ext <<EOF
20374 #line 20375 "configure"
20375 #include "confdefs.h"
20378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20379 { (eval echo configure:20380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20381 if test -z "$ac_err"; then
20383 eval "ac_cv_header_$ac_safe=yes"
20386 echo "configure: failed program was:" >&5
20387 cat conftest.$ac_ext >&5
20389 eval "ac_cv_header_$ac_safe=no"
20393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20394 echo "$ac_t""yes" 1>&6
20395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20396 cat >> confdefs.h <<EOF
20397 #define $ac_tr_hdr 1
20401 echo "$ac_t""no" 1>&6
20405 echo $ac_n "checking for db""... $ac_c" 1>&6
20406 echo "configure:20407: checking for db" >&5
20407 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20408 echo $ac_n "(cached) $ac_c" 1>&6
20411 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20419 echo "$ac_t""$ol_cv_ndbm" 1>&6
20420 if test $ol_cv_ndbm = yes ; then
20421 cat >> confdefs.h <<\EOF
20422 #define HAVE_NDBM 1
20428 if test $ol_cv_ndbm = yes ; then
20430 ol_with_ldbm_api=ndbm
20432 if test $ol_cv_lib_ndbm != yes ; then
20433 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20438 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20439 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20440 if test $ol_enable_ldbm = yes ; then
20441 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20444 echo "configure: warning: disabling LDBM" 1>&2
20449 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20450 BUILD_LIBS_DYNAMIC=shared
20451 cat >> confdefs.h <<\EOF
20452 #define LDAP_LIBS_DYNAMIC 1
20457 BUILD_LIBS_DYNAMIC=static
20461 if test $ol_enable_wrappers != no ; then
20462 for ac_hdr in tcpd.h
20464 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20465 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20466 echo "configure:20467: checking for $ac_hdr" >&5
20467 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20468 echo $ac_n "(cached) $ac_c" 1>&6
20470 cat > conftest.$ac_ext <<EOF
20471 #line 20472 "configure"
20472 #include "confdefs.h"
20475 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20476 { (eval echo configure:20477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20477 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20478 if test -z "$ac_err"; then
20480 eval "ac_cv_header_$ac_safe=yes"
20483 echo "configure: failed program was:" >&5
20484 cat conftest.$ac_ext >&5
20486 eval "ac_cv_header_$ac_safe=no"
20490 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20491 echo "$ac_t""yes" 1>&6
20492 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20493 cat >> confdefs.h <<EOF
20494 #define $ac_tr_hdr 1
20497 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20498 echo "configure:20499: checking for TCP wrappers library" >&5
20500 LIBS="$LIBS -lwrap"
20501 cat > conftest.$ac_ext <<EOF
20502 #line 20503 "configure"
20503 #include "confdefs.h"
20506 int allow_severity = 0;
20507 int deny_severity = 0;
20509 struct request_info *req;
20517 if { (eval echo configure:20518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20519 echo "$ac_t""-lwrap" 1>&6
20523 echo "configure: failed program was:" >&5
20524 cat conftest.$ac_ext >&5
20528 cat > conftest.$ac_ext <<EOF
20529 #line 20530 "configure"
20530 #include "confdefs.h"
20533 int allow_severity = 0;
20534 int deny_severity = 0;
20536 struct request_info *req;
20544 if { (eval echo configure:20545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20546 echo "$ac_t""-lwrap -lnsl" 1>&6
20548 LIBS="$save_LIBS -lnsl"
20550 echo "configure: failed program was:" >&5
20551 cat conftest.$ac_ext >&5
20554 echo "$ac_t""no" 1>&6
20562 echo "$ac_t""no" 1>&6
20568 if test $have_wrappers = yes ; then
20569 cat >> confdefs.h <<\EOF
20570 #define HAVE_TCPD 1
20574 elif test $ol_enable_wrappers = yes ; then
20575 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20577 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20582 if test $ol_enable_syslog != no ; then
20583 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20584 echo "configure:20585: checking for openlog" >&5
20585 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20586 echo $ac_n "(cached) $ac_c" 1>&6
20588 cat > conftest.$ac_ext <<EOF
20589 #line 20590 "configure"
20590 #include "confdefs.h"
20591 /* System header to define __stub macros and hopefully few prototypes,
20592 which can conflict with char openlog(); below. */
20593 #include <assert.h>
20594 /* Override any gcc2 internal prototype to avoid an error. */
20595 /* We use char because int might match the return type of a gcc2
20596 builtin and then its argument prototype would still apply. */
20602 /* The GNU C library defines this for functions which it implements
20603 to always fail with ENOSYS. Some functions are actually named
20604 something starting with __ and the normal name is an alias. */
20605 #if defined (__stub_openlog) || defined (__stub___openlog)
20613 if { (eval echo configure:20614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20615 eval "ac_cv_func_openlog=yes"
20617 echo "configure: failed program was:" >&5
20618 cat conftest.$ac_ext >&5
20620 eval "ac_cv_func_openlog=no"
20625 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20626 echo "$ac_t""yes" 1>&6
20629 echo "$ac_t""no" 1>&6
20632 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20633 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20635 ol_enable_syslog=$ac_cv_func_openlog
20640 if test $ol_enable_sql != no ; then
20641 for ac_hdr in sql.h sqlext.h
20643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20645 echo "configure:20646: checking for $ac_hdr" >&5
20646 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20647 echo $ac_n "(cached) $ac_c" 1>&6
20649 cat > conftest.$ac_ext <<EOF
20650 #line 20651 "configure"
20651 #include "confdefs.h"
20654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20655 { (eval echo configure:20656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20657 if test -z "$ac_err"; then
20659 eval "ac_cv_header_$ac_safe=yes"
20662 echo "configure: failed program was:" >&5
20663 cat conftest.$ac_ext >&5
20665 eval "ac_cv_header_$ac_safe=no"
20669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20670 echo "$ac_t""yes" 1>&6
20671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20672 cat >> confdefs.h <<EOF
20673 #define $ac_tr_hdr 1
20677 echo "$ac_t""no" 1>&6
20678 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20684 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20685 echo "configure:20686: checking for SQLDriverConnect in -liodbc" >&5
20686 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20687 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20688 echo $ac_n "(cached) $ac_c" 1>&6
20690 ac_save_LIBS="$LIBS"
20691 LIBS="-liodbc $LIBS"
20692 cat > conftest.$ac_ext <<EOF
20693 #line 20694 "configure"
20694 #include "confdefs.h"
20695 /* Override any gcc2 internal prototype to avoid an error. */
20696 /* We use char because int might match the return type of a gcc2
20697 builtin and then its argument prototype would still apply. */
20698 char SQLDriverConnect();
20704 if { (eval echo configure:20705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20706 eval "ac_cv_lib_$ac_lib_var=yes"
20708 echo "configure: failed program was:" >&5
20709 cat conftest.$ac_ext >&5
20711 eval "ac_cv_lib_$ac_lib_var=no"
20714 LIBS="$ac_save_LIBS"
20717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20718 echo "$ac_t""yes" 1>&6
20721 echo "$ac_t""no" 1>&6
20725 if test $have_iodbc = yes ; then
20726 ol_link_sql="-liodbc"
20728 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20729 echo "configure:20730: checking for SQLDriverConnect in -lodbc" >&5
20730 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20731 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20732 echo $ac_n "(cached) $ac_c" 1>&6
20734 ac_save_LIBS="$LIBS"
20735 LIBS="-lodbc $LIBS"
20736 cat > conftest.$ac_ext <<EOF
20737 #line 20738 "configure"
20738 #include "confdefs.h"
20739 /* Override any gcc2 internal prototype to avoid an error. */
20740 /* We use char because int might match the return type of a gcc2
20741 builtin and then its argument prototype would still apply. */
20742 char SQLDriverConnect();
20748 if { (eval echo configure:20749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20750 eval "ac_cv_lib_$ac_lib_var=yes"
20752 echo "configure: failed program was:" >&5
20753 cat conftest.$ac_ext >&5
20755 eval "ac_cv_lib_$ac_lib_var=no"
20758 LIBS="$ac_save_LIBS"
20761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20762 echo "$ac_t""yes" 1>&6
20765 echo "$ac_t""no" 1>&6
20769 if test $have_odbc = yes ; then
20770 ol_link_sql="-lodbc"
20774 if test $ol_link_sql != no ; then
20775 SLAPD_SQL_LIBS="$ol_link_sql"
20777 elif test $ol_enable_sql != auto ; then
20778 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20784 if test $ol_with_cyrus_sasl != no ; then
20785 for ac_hdr in sasl/sasl.h sasl.h
20787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20789 echo "configure:20790: checking for $ac_hdr" >&5
20790 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20791 echo $ac_n "(cached) $ac_c" 1>&6
20793 cat > conftest.$ac_ext <<EOF
20794 #line 20795 "configure"
20795 #include "confdefs.h"
20798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20799 { (eval echo configure:20800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20801 if test -z "$ac_err"; then
20803 eval "ac_cv_header_$ac_safe=yes"
20806 echo "configure: failed program was:" >&5
20807 cat conftest.$ac_ext >&5
20809 eval "ac_cv_header_$ac_safe=no"
20813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20814 echo "$ac_t""yes" 1>&6
20815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20816 cat >> confdefs.h <<EOF
20817 #define $ac_tr_hdr 1
20821 echo "$ac_t""no" 1>&6
20826 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20827 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20828 echo "configure:20829: checking for sasl_client_init in -lsasl2" >&5
20829 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20830 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20831 echo $ac_n "(cached) $ac_c" 1>&6
20833 ac_save_LIBS="$LIBS"
20834 LIBS="-lsasl2 $LIBS"
20835 cat > conftest.$ac_ext <<EOF
20836 #line 20837 "configure"
20837 #include "confdefs.h"
20838 /* Override any gcc2 internal prototype to avoid an error. */
20839 /* We use char because int might match the return type of a gcc2
20840 builtin and then its argument prototype would still apply. */
20841 char sasl_client_init();
20847 if { (eval echo configure:20848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20849 eval "ac_cv_lib_$ac_lib_var=yes"
20851 echo "configure: failed program was:" >&5
20852 cat conftest.$ac_ext >&5
20854 eval "ac_cv_lib_$ac_lib_var=no"
20857 LIBS="$ac_save_LIBS"
20860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20861 echo "$ac_t""yes" 1>&6
20862 ol_link_sasl="-lsasl2"
20864 echo "$ac_t""no" 1>&6
20865 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20866 echo "configure:20867: checking for sasl_client_init in -lsasl" >&5
20867 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20868 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20869 echo $ac_n "(cached) $ac_c" 1>&6
20871 ac_save_LIBS="$LIBS"
20872 LIBS="-lsasl $LIBS"
20873 cat > conftest.$ac_ext <<EOF
20874 #line 20875 "configure"
20875 #include "confdefs.h"
20876 /* Override any gcc2 internal prototype to avoid an error. */
20877 /* We use char because int might match the return type of a gcc2
20878 builtin and then its argument prototype would still apply. */
20879 char sasl_client_init();
20885 if { (eval echo configure:20886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20887 eval "ac_cv_lib_$ac_lib_var=yes"
20889 echo "configure: failed program was:" >&5
20890 cat conftest.$ac_ext >&5
20892 eval "ac_cv_lib_$ac_lib_var=no"
20895 LIBS="$ac_save_LIBS"
20898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20899 echo "$ac_t""yes" 1>&6
20900 ol_link_sasl="-lsasl"
20902 echo "$ac_t""no" 1>&6
20909 if test $ol_link_sasl = no ; then
20910 if test $ol_with_cyrus_sasl != auto ; then
20911 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
20913 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
20914 echo "configure: warning: SASL authentication not supported!" 1>&2
20915 if test $ol_link_tls = no ; then
20916 echo "configure: warning: Strong authentication not supported!" 1>&2
20920 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
20921 echo "configure:20922: checking Cyrus SASL library version" >&5
20922 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
20923 echo $ac_n "(cached) $ac_c" 1>&6
20926 cat > conftest.$ac_ext <<EOF
20927 #line 20928 "configure"
20928 #include "confdefs.h"
20930 #ifdef HAVE_SASL_SASL_H
20931 #include <sasl/sasl.h>
20936 /* Require 2.1.15+ */
20937 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
20938 char *__sasl_compat = "2.2+ or better okay (we guess)";
20939 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
20940 && SASL_VERSION_STEP >=15
20941 char *__sasl_compat = "2.1.15+ or better okay";
20945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20946 egrep "__sasl_compat" >/dev/null 2>&1; then
20948 ol_cv_sasl_compat=yes
20951 ol_cv_sasl_compat=no
20957 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
20959 if test $ol_cv_sasl_compat = no ; then
20961 { echo "configure: error: Cyrus SASL library located but incompatible" 1>&2; exit 1; }
20964 cat >> confdefs.h <<\EOF
20965 #define HAVE_CYRUS_SASL 1
20968 SASL_LIBS="$ol_link_sasl"
20969 if test $ol_enable_spasswd != no ; then
20970 ol_link_spasswd=yes
20973 ac_save_LIBS="$LIBS"
20974 LIBS="$LIBS $ol_link_sasl"
20975 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
20976 echo "configure:20977: checking for sasl_version" >&5
20977 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
20978 echo $ac_n "(cached) $ac_c" 1>&6
20980 cat > conftest.$ac_ext <<EOF
20981 #line 20982 "configure"
20982 #include "confdefs.h"
20983 /* System header to define __stub macros and hopefully few prototypes,
20984 which can conflict with char sasl_version(); below. */
20985 #include <assert.h>
20986 /* Override any gcc2 internal prototype to avoid an error. */
20987 /* We use char because int might match the return type of a gcc2
20988 builtin and then its argument prototype would still apply. */
20989 char sasl_version();
20994 /* The GNU C library defines this for functions which it implements
20995 to always fail with ENOSYS. Some functions are actually named
20996 something starting with __ and the normal name is an alias. */
20997 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21005 if { (eval echo configure:21006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21007 eval "ac_cv_func_sasl_version=yes"
21009 echo "configure: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21012 eval "ac_cv_func_sasl_version=no"
21017 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21018 echo "$ac_t""yes" 1>&6
21019 cat >> confdefs.h <<\EOF
21020 #define HAVE_SASL_VERSION 1
21024 echo "$ac_t""no" 1>&6
21027 LIBS="$ac_save_LIBS"
21031 echo "configure: warning: SASL authentication not supported!" 1>&2
21032 if test $ol_link_tls = no ; then
21033 echo "configure: warning: Strong authentication not supported!" 1>&2
21037 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21039 if test -r /dev/urandom ; then
21040 dev="/dev/urandom";
21041 elif test -r /idev/urandom ; then
21042 dev="/idev/urandom";
21043 elif test -r /dev/srandom ; then
21044 dev="/dev/srandom";
21045 elif test -r /dev/random ; then
21047 elif test -r /idev/random ; then
21048 dev="/idev/random";
21051 if test $dev != no ; then
21052 cat >> confdefs.h <<EOF
21053 #define URANDOM_DEVICE "$dev"
21060 if test $ol_with_fetch != no ; then
21062 LIBS="-lfetch -lcom_err $LIBS"
21063 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21064 echo "configure:21065: checking fetch(3) library" >&5
21065 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21066 echo $ac_n "(cached) $ac_c" 1>&6
21069 cat > conftest.$ac_ext <<EOF
21070 #line 21071 "configure"
21071 #include "confdefs.h"
21073 #include <sys/param.h>
21077 struct url *u = fetchParseURL("file:///");
21080 if { (eval echo configure:21081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21082 ol_cv_lib_fetch=yes
21084 echo "configure: failed program was:" >&5
21085 cat conftest.$ac_ext >&5
21092 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21094 if test $ol_cv_lib_fetch != no ; then
21095 ol_link_fetch="-lfetch -lcom_err"
21096 cat >> confdefs.h <<\EOF
21097 #define HAVE_FETCH 1
21103 if test $ol_cv_lib_fetch != no ; then
21104 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21105 ol_link_fetch=freebsd
21107 elif test $ol_with_fetch != auto ; then
21108 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21112 if test $ol_enable_crypt != no ; then
21114 LIBS="$TLS_LIBS $LIBS"
21116 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21117 echo "configure:21118: checking for crypt" >&5
21118 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21119 echo $ac_n "(cached) $ac_c" 1>&6
21121 cat > conftest.$ac_ext <<EOF
21122 #line 21123 "configure"
21123 #include "confdefs.h"
21124 /* System header to define __stub macros and hopefully few prototypes,
21125 which can conflict with char crypt(); below. */
21126 #include <assert.h>
21127 /* Override any gcc2 internal prototype to avoid an error. */
21128 /* We use char because int might match the return type of a gcc2
21129 builtin and then its argument prototype would still apply. */
21135 /* The GNU C library defines this for functions which it implements
21136 to always fail with ENOSYS. Some functions are actually named
21137 something starting with __ and the normal name is an alias. */
21138 #if defined (__stub_crypt) || defined (__stub___crypt)
21146 if { (eval echo configure:21147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21148 eval "ac_cv_func_crypt=yes"
21150 echo "configure: failed program was:" >&5
21151 cat conftest.$ac_ext >&5
21153 eval "ac_cv_func_crypt=no"
21158 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21159 echo "$ac_t""yes" 1>&6
21162 echo "$ac_t""no" 1>&6
21165 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21166 echo "configure:21167: checking for crypt in -lcrypt" >&5
21167 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21168 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21169 echo $ac_n "(cached) $ac_c" 1>&6
21171 ac_save_LIBS="$LIBS"
21172 LIBS="-lcrypt $LIBS"
21173 cat > conftest.$ac_ext <<EOF
21174 #line 21175 "configure"
21175 #include "confdefs.h"
21176 /* Override any gcc2 internal prototype to avoid an error. */
21177 /* We use char because int might match the return type of a gcc2
21178 builtin and then its argument prototype would still apply. */
21185 if { (eval echo configure:21186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21187 eval "ac_cv_lib_$ac_lib_var=yes"
21189 echo "configure: failed program was:" >&5
21190 cat conftest.$ac_ext >&5
21192 eval "ac_cv_lib_$ac_lib_var=no"
21195 LIBS="$ac_save_LIBS"
21198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21199 echo "$ac_t""yes" 1>&6
21200 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21203 echo "$ac_t""no" 1>&6
21212 if test $have_crypt = yes ; then
21213 cat >> confdefs.h <<\EOF
21214 #define HAVE_CRYPT 1
21218 echo "configure: warning: could not find crypt" 1>&2
21219 if test $ol_enable_crypt = yes ; then
21220 { echo "configure: error: could not find crypt" 1>&2; exit 1; }
21223 echo "configure: warning: disabling crypt support" 1>&2
21228 if test $ol_enable_proctitle != no ; then
21229 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21230 echo "configure:21231: checking for setproctitle" >&5
21231 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21232 echo $ac_n "(cached) $ac_c" 1>&6
21234 cat > conftest.$ac_ext <<EOF
21235 #line 21236 "configure"
21236 #include "confdefs.h"
21237 /* System header to define __stub macros and hopefully few prototypes,
21238 which can conflict with char setproctitle(); below. */
21239 #include <assert.h>
21240 /* Override any gcc2 internal prototype to avoid an error. */
21241 /* We use char because int might match the return type of a gcc2
21242 builtin and then its argument prototype would still apply. */
21243 char setproctitle();
21248 /* The GNU C library defines this for functions which it implements
21249 to always fail with ENOSYS. Some functions are actually named
21250 something starting with __ and the normal name is an alias. */
21251 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21259 if { (eval echo configure:21260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21261 eval "ac_cv_func_setproctitle=yes"
21263 echo "configure: failed program was:" >&5
21264 cat conftest.$ac_ext >&5
21266 eval "ac_cv_func_setproctitle=no"
21271 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21272 echo "$ac_t""yes" 1>&6
21273 have_setproctitle=yes
21275 echo "$ac_t""no" 1>&6
21277 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21278 echo "configure:21279: checking for setproctitle in -lutil" >&5
21279 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21280 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21281 echo $ac_n "(cached) $ac_c" 1>&6
21283 ac_save_LIBS="$LIBS"
21284 LIBS="-lutil $LIBS"
21285 cat > conftest.$ac_ext <<EOF
21286 #line 21287 "configure"
21287 #include "confdefs.h"
21288 /* Override any gcc2 internal prototype to avoid an error. */
21289 /* We use char because int might match the return type of a gcc2
21290 builtin and then its argument prototype would still apply. */
21291 char setproctitle();
21297 if { (eval echo configure:21298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21299 eval "ac_cv_lib_$ac_lib_var=yes"
21301 echo "configure: failed program was:" >&5
21302 cat conftest.$ac_ext >&5
21304 eval "ac_cv_lib_$ac_lib_var=no"
21307 LIBS="$ac_save_LIBS"
21310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21311 echo "$ac_t""yes" 1>&6
21312 have_setproctitle=yes
21313 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21315 echo "$ac_t""no" 1>&6
21316 have_setproctitle=no
21317 LIBOBJS="$LIBOBJS setproctitle.o"
21318 LIBSRCS="$LIBSRCS setproctitle.c"
21324 if test $have_setproctitle = yes ; then
21325 cat >> confdefs.h <<\EOF
21326 #define HAVE_SETPROCTITLE 1
21332 if test $ol_enable_slp != no ; then
21333 for ac_hdr in slp.h
21335 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21336 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21337 echo "configure:21338: checking for $ac_hdr" >&5
21338 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21339 echo $ac_n "(cached) $ac_c" 1>&6
21341 cat > conftest.$ac_ext <<EOF
21342 #line 21343 "configure"
21343 #include "confdefs.h"
21346 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21347 { (eval echo configure:21348: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21348 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21349 if test -z "$ac_err"; then
21351 eval "ac_cv_header_$ac_safe=yes"
21354 echo "configure: failed program was:" >&5
21355 cat conftest.$ac_ext >&5
21357 eval "ac_cv_header_$ac_safe=no"
21361 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21362 echo "$ac_t""yes" 1>&6
21363 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21364 cat >> confdefs.h <<EOF
21365 #define $ac_tr_hdr 1
21369 echo "$ac_t""no" 1>&6
21374 if test $ac_cv_header_slp_h = yes ; then
21375 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21376 echo "configure:21377: checking for SLPOpen in -lslp" >&5
21377 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21378 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21379 echo $ac_n "(cached) $ac_c" 1>&6
21381 ac_save_LIBS="$LIBS"
21383 cat > conftest.$ac_ext <<EOF
21384 #line 21385 "configure"
21385 #include "confdefs.h"
21386 /* Override any gcc2 internal prototype to avoid an error. */
21387 /* We use char because int might match the return type of a gcc2
21388 builtin and then its argument prototype would still apply. */
21395 if { (eval echo configure:21396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21397 eval "ac_cv_lib_$ac_lib_var=yes"
21399 echo "configure: failed program was:" >&5
21400 cat conftest.$ac_ext >&5
21402 eval "ac_cv_lib_$ac_lib_var=no"
21405 LIBS="$ac_save_LIBS"
21408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21409 echo "$ac_t""yes" 1>&6
21412 echo "$ac_t""no" 1>&6
21416 if test $have_slp = yes ; then
21417 cat >> confdefs.h <<\EOF
21421 SLAPD_SLP_LIBS=-lslp
21424 elif test $ol_enable_slp = yes ; then
21425 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21430 echo $ac_n "checking long long""... $ac_c" 1>&6
21431 echo "configure:21432: checking long long" >&5
21432 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21433 echo $ac_n "(cached) $ac_c" 1>&6
21436 cat > conftest.$ac_ext <<EOF
21437 #line 21438 "configure"
21438 #include "confdefs.h"
21444 if { (eval echo configure:21445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21446 ol_cv_type_long_long=yes
21448 echo "configure: failed program was:" >&5
21449 cat conftest.$ac_ext >&5
21451 ol_cv_type_long_long=no
21456 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21457 if test $ol_cv_type_long_long = yes; then
21458 cat >> confdefs.h <<\EOF
21459 #define HAVE_LONG_LONG 1
21464 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21465 echo "configure:21466: checking for ANSI C header files" >&5
21466 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21467 echo $ac_n "(cached) $ac_c" 1>&6
21469 cat > conftest.$ac_ext <<EOF
21470 #line 21471 "configure"
21471 #include "confdefs.h"
21472 #include <stdlib.h>
21473 #include <stdarg.h>
21474 #include <string.h>
21477 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21478 { (eval echo configure:21479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21479 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21480 if test -z "$ac_err"; then
21482 ac_cv_header_stdc=yes
21485 echo "configure: failed program was:" >&5
21486 cat conftest.$ac_ext >&5
21488 ac_cv_header_stdc=no
21492 if test $ac_cv_header_stdc = yes; then
21493 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21494 cat > conftest.$ac_ext <<EOF
21495 #line 21496 "configure"
21496 #include "confdefs.h"
21497 #include <string.h>
21499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21500 egrep "memchr" >/dev/null 2>&1; then
21504 ac_cv_header_stdc=no
21510 if test $ac_cv_header_stdc = yes; then
21511 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21512 cat > conftest.$ac_ext <<EOF
21513 #line 21514 "configure"
21514 #include "confdefs.h"
21515 #include <stdlib.h>
21517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21518 egrep "free" >/dev/null 2>&1; then
21522 ac_cv_header_stdc=no
21528 if test $ac_cv_header_stdc = yes; then
21529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21530 if test "$cross_compiling" = yes; then
21533 cat > conftest.$ac_ext <<EOF
21534 #line 21535 "configure"
21535 #include "confdefs.h"
21537 #if ((' ' & 0x0FF) == 0x020)
21538 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21539 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21541 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21542 || ('j' <= (c) && (c) <= 'r') \
21543 || ('s' <= (c) && (c) <= 'z'))
21544 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21546 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21547 int main () { int i; for (i = 0; i < 256; i++)
21548 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21552 if { (eval echo configure:21553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21556 echo "configure: failed program was:" >&5
21557 cat conftest.$ac_ext >&5
21559 ac_cv_header_stdc=no
21567 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21568 if test $ac_cv_header_stdc = yes; then
21569 cat >> confdefs.h <<\EOF
21570 #define STDC_HEADERS 1
21575 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21576 echo "configure:21577: checking for mode_t" >&5
21577 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21578 echo $ac_n "(cached) $ac_c" 1>&6
21580 cat > conftest.$ac_ext <<EOF
21581 #line 21582 "configure"
21582 #include "confdefs.h"
21583 #include <sys/types.h>
21585 #include <stdlib.h>
21586 #include <stddef.h>
21590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21591 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21593 eval "ac_cv_type_mode_t=yes"
21596 eval "ac_cv_type_mode_t=no"
21601 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21602 echo "$ac_t""yes" 1>&6
21604 echo "$ac_t""no" 1>&6
21605 cat >> confdefs.h <<EOF
21611 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21612 echo "configure:21613: checking for off_t" >&5
21613 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21614 echo $ac_n "(cached) $ac_c" 1>&6
21616 cat > conftest.$ac_ext <<EOF
21617 #line 21618 "configure"
21618 #include "confdefs.h"
21619 #include <sys/types.h>
21621 #include <stdlib.h>
21622 #include <stddef.h>
21626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21627 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21629 eval "ac_cv_type_off_t=yes"
21632 eval "ac_cv_type_off_t=no"
21637 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21638 echo "$ac_t""yes" 1>&6
21640 echo "$ac_t""no" 1>&6
21641 cat >> confdefs.h <<EOF
21647 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21648 echo "configure:21649: checking for pid_t" >&5
21649 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21650 echo $ac_n "(cached) $ac_c" 1>&6
21652 cat > conftest.$ac_ext <<EOF
21653 #line 21654 "configure"
21654 #include "confdefs.h"
21655 #include <sys/types.h>
21657 #include <stdlib.h>
21658 #include <stddef.h>
21662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21663 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21665 eval "ac_cv_type_pid_t=yes"
21668 eval "ac_cv_type_pid_t=no"
21673 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21674 echo "$ac_t""yes" 1>&6
21676 echo "$ac_t""no" 1>&6
21677 cat >> confdefs.h <<EOF
21683 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21684 echo "configure:21685: checking for ptrdiff_t" >&5
21685 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21686 echo $ac_n "(cached) $ac_c" 1>&6
21688 cat > conftest.$ac_ext <<EOF
21689 #line 21690 "configure"
21690 #include "confdefs.h"
21691 #include <stddef.h>
21696 if { (eval echo configure:21697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21698 am_cv_type_ptrdiff_t=yes
21700 echo "configure: failed program was:" >&5
21701 cat conftest.$ac_ext >&5
21703 am_cv_type_ptrdiff_t=no
21708 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21709 if test $am_cv_type_ptrdiff_t = yes; then
21710 cat >> confdefs.h <<\EOF
21711 #define HAVE_PTRDIFF_T 1
21716 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21717 echo "configure:21718: checking return type of signal handlers" >&5
21718 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21719 echo $ac_n "(cached) $ac_c" 1>&6
21721 cat > conftest.$ac_ext <<EOF
21722 #line 21723 "configure"
21723 #include "confdefs.h"
21724 #include <sys/types.h>
21725 #include <signal.h>
21730 extern "C" void (*signal (int, void (*)(int)))(int);
21732 void (*signal ()) ();
21739 if { (eval echo configure:21740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21741 ac_cv_type_signal=void
21743 echo "configure: failed program was:" >&5
21744 cat conftest.$ac_ext >&5
21746 ac_cv_type_signal=int
21751 echo "$ac_t""$ac_cv_type_signal" 1>&6
21752 cat >> confdefs.h <<EOF
21753 #define RETSIGTYPE $ac_cv_type_signal
21757 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21758 echo "configure:21759: checking for size_t" >&5
21759 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21760 echo $ac_n "(cached) $ac_c" 1>&6
21762 cat > conftest.$ac_ext <<EOF
21763 #line 21764 "configure"
21764 #include "confdefs.h"
21765 #include <sys/types.h>
21767 #include <stdlib.h>
21768 #include <stddef.h>
21772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21773 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21775 eval "ac_cv_type_size_t=yes"
21778 eval "ac_cv_type_size_t=no"
21783 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21784 echo "$ac_t""yes" 1>&6
21786 echo "$ac_t""no" 1>&6
21787 cat >> confdefs.h <<EOF
21788 #define size_t unsigned
21794 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21795 echo "configure:21796: checking for ssize_t" >&5
21796 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21797 echo $ac_n "(cached) $ac_c" 1>&6
21799 cat > conftest.$ac_ext <<EOF
21800 #line 21801 "configure"
21801 #include "confdefs.h"
21802 #include <sys/types.h>
21804 #include <stdlib.h>
21805 #include <stddef.h>
21809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21810 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21812 eval "ac_cv_type_ssize_t=yes"
21815 eval "ac_cv_type_ssize_t=no"
21820 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21821 echo "$ac_t""yes" 1>&6
21823 echo "$ac_t""no" 1>&6
21824 cat >> confdefs.h <<EOF
21825 #define ssize_t signed int
21830 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21831 echo "configure:21832: checking for caddr_t" >&5
21832 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21833 echo $ac_n "(cached) $ac_c" 1>&6
21835 cat > conftest.$ac_ext <<EOF
21836 #line 21837 "configure"
21837 #include "confdefs.h"
21838 #include <sys/types.h>
21840 #include <stdlib.h>
21841 #include <stddef.h>
21845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21846 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21848 eval "ac_cv_type_caddr_t=yes"
21851 eval "ac_cv_type_caddr_t=no"
21856 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21857 echo "$ac_t""yes" 1>&6
21859 echo "$ac_t""no" 1>&6
21860 cat >> confdefs.h <<EOF
21861 #define caddr_t char *
21867 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21868 echo "configure:21869: checking for socklen_t" >&5
21869 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21870 echo $ac_n "(cached) $ac_c" 1>&6
21872 cat > conftest.$ac_ext <<EOF
21873 #line 21874 "configure"
21874 #include "confdefs.h"
21876 #ifdef HAVE_SYS_TYPES_H
21877 #include <sys/types.h>
21879 #ifdef HAVE_SYS_SOCKET_H
21880 #include <sys/socket.h>
21887 if { (eval echo configure:21888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21889 ol_cv_type_socklen_t=yes
21891 echo "configure: failed program was:" >&5
21892 cat conftest.$ac_ext >&5
21894 ol_cv_type_socklen_t=no
21899 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21900 if test $ol_cv_type_socklen_t = no; then
21901 cat >> confdefs.h <<\EOF
21902 #define socklen_t int
21907 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
21908 echo "configure:21909: checking for member st_blksize in aggregate type struct stat" >&5
21909 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
21910 echo $ac_n "(cached) $ac_c" 1>&6
21912 cat > conftest.$ac_ext <<EOF
21913 #line 21914 "configure"
21914 #include "confdefs.h"
21915 #include <sys/types.h>
21916 #include <sys/stat.h>
21918 struct stat foo; foo.st_blksize;
21921 if { (eval echo configure:21922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21923 ac_cv_c_struct_member_st_blksize=yes
21925 echo "configure: failed program was:" >&5
21926 cat conftest.$ac_ext >&5
21928 ac_cv_c_struct_member_st_blksize=no
21933 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
21934 st_blksize="$ac_cv_c_struct_member_st_blksize"
21935 if test $ac_cv_c_struct_member_st_blksize = yes; then
21936 cat >> confdefs.h <<\EOF
21937 #define HAVE_ST_BLKSIZE 1
21942 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
21943 echo "configure:21944: checking whether time.h and sys/time.h may both be included" >&5
21944 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
21945 echo $ac_n "(cached) $ac_c" 1>&6
21947 cat > conftest.$ac_ext <<EOF
21948 #line 21949 "configure"
21949 #include "confdefs.h"
21950 #include <sys/types.h>
21951 #include <sys/time.h>
21957 if { (eval echo configure:21958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21959 ac_cv_header_time=yes
21961 echo "configure: failed program was:" >&5
21962 cat conftest.$ac_ext >&5
21964 ac_cv_header_time=no
21969 echo "$ac_t""$ac_cv_header_time" 1>&6
21970 if test $ac_cv_header_time = yes; then
21971 cat >> confdefs.h <<\EOF
21972 #define TIME_WITH_SYS_TIME 1
21977 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
21978 echo "configure:21979: checking whether struct tm is in sys/time.h or time.h" >&5
21979 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
21980 echo $ac_n "(cached) $ac_c" 1>&6
21982 cat > conftest.$ac_ext <<EOF
21983 #line 21984 "configure"
21984 #include "confdefs.h"
21985 #include <sys/types.h>
21988 struct tm *tp; tp->tm_sec;
21991 if { (eval echo configure:21992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21993 ac_cv_struct_tm=time.h
21995 echo "configure: failed program was:" >&5
21996 cat conftest.$ac_ext >&5
21998 ac_cv_struct_tm=sys/time.h
22003 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22004 if test $ac_cv_struct_tm = sys/time.h; then
22005 cat >> confdefs.h <<\EOF
22006 #define TM_IN_SYS_TIME 1
22011 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22012 echo "configure:22013: checking for uid_t in sys/types.h" >&5
22013 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22014 echo $ac_n "(cached) $ac_c" 1>&6
22016 cat > conftest.$ac_ext <<EOF
22017 #line 22018 "configure"
22018 #include "confdefs.h"
22019 #include <sys/types.h>
22021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22022 egrep "uid_t" >/dev/null 2>&1; then
22024 ac_cv_type_uid_t=yes
22027 ac_cv_type_uid_t=no
22033 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22034 if test $ac_cv_type_uid_t = no; then
22035 cat >> confdefs.h <<\EOF
22039 cat >> confdefs.h <<\EOF
22045 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22046 echo "configure:22047: checking for sig_atomic_t" >&5
22047 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22048 echo $ac_n "(cached) $ac_c" 1>&6
22050 cat > conftest.$ac_ext <<EOF
22051 #line 22052 "configure"
22052 #include "confdefs.h"
22053 #include <signal.h>
22055 sig_atomic_t atomic;
22058 if { (eval echo configure:22059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22060 ol_cv_type_sig_atomic_t=yes
22062 echo "configure: failed program was:" >&5
22063 cat conftest.$ac_ext >&5
22065 ol_cv_type_sig_atomic_t=no
22070 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22071 if test $ol_cv_type_sig_atomic_t = no; then
22072 cat >> confdefs.h <<\EOF
22073 #define sig_atomic_t int
22080 # test for pw_gecos in struct passwd
22081 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22082 echo "configure:22083: checking struct passwd for pw_gecos" >&5
22083 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22084 echo $ac_n "(cached) $ac_c" 1>&6
22087 cat > conftest.$ac_ext <<EOF
22088 #line 22089 "configure"
22089 #include "confdefs.h"
22094 pwd.pw_gecos = pwd.pw_name;
22098 if { (eval echo configure:22099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22100 ol_cv_struct_passwd_pw_gecos=yes
22102 echo "configure: failed program was:" >&5
22103 cat conftest.$ac_ext >&5
22105 ol_cv_struct_passwd_pw_gecos=no
22110 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22111 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22112 cat >> confdefs.h <<\EOF
22113 #define HAVE_PW_GECOS 1
22118 # test for pw_passwd in struct passwd
22119 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22120 echo "configure:22121: checking struct passwd for pw_passwd" >&5
22121 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22122 echo $ac_n "(cached) $ac_c" 1>&6
22125 cat > conftest.$ac_ext <<EOF
22126 #line 22127 "configure"
22127 #include "confdefs.h"
22132 pwd.pw_passwd = pwd.pw_name;
22136 if { (eval echo configure:22137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22138 ol_cv_struct_passwd_pw_passwd=yes
22140 echo "configure: failed program was:" >&5
22141 cat conftest.$ac_ext >&5
22143 ol_cv_struct_passwd_pw_passwd=no
22148 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22149 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22150 cat >> confdefs.h <<\EOF
22151 #define HAVE_PW_PASSWD 1
22157 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22158 echo "configure:22159: checking if toupper() requires islower()" >&5
22159 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22160 echo $ac_n "(cached) $ac_c" 1>&6
22163 if test "$cross_compiling" = yes; then
22164 ol_cv_c_upper_lower=safe
22166 cat > conftest.$ac_ext <<EOF
22167 #line 22168 "configure"
22168 #include "confdefs.h"
22173 if ('C' == toupper('C'))
22179 if { (eval echo configure:22180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22181 ol_cv_c_upper_lower=no
22183 echo "configure: failed program was:" >&5
22184 cat conftest.$ac_ext >&5
22186 ol_cv_c_upper_lower=yes
22193 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22194 if test $ol_cv_c_upper_lower != no ; then
22195 cat >> confdefs.h <<\EOF
22196 #define C_UPPER_LOWER 1
22201 echo $ac_n "checking for working const""... $ac_c" 1>&6
22202 echo "configure:22203: checking for working const" >&5
22203 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22204 echo $ac_n "(cached) $ac_c" 1>&6
22206 cat > conftest.$ac_ext <<EOF
22207 #line 22208 "configure"
22208 #include "confdefs.h"
22212 /* Ultrix mips cc rejects this. */
22213 typedef int charset[2]; const charset x;
22214 /* SunOS 4.1.1 cc rejects this. */
22215 char const *const *ccp;
22217 /* NEC SVR4.0.2 mips cc rejects this. */
22218 struct point {int x, y;};
22219 static struct point const zero = {0,0};
22220 /* AIX XL C 1.02.0.0 rejects this.
22221 It does not let you subtract one const X* pointer from another in an arm
22222 of an if-expression whose if-part is not a constant expression */
22223 const char *g = "string";
22224 ccp = &g + (g ? g-g : 0);
22225 /* HPUX 7.0 cc rejects these. */
22228 ccp = (char const *const *) p;
22229 { /* SCO 3.2v4 cc rejects this. */
22231 char const *s = 0 ? (char *) 0 : (char const *) 0;
22235 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22236 int x[] = {25, 17};
22237 const int *foo = &x[0];
22240 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22241 typedef const int *iptr;
22245 { /* AIX XL C 1.02.0.0 rejects this saying
22246 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22247 struct s { int j; const int *ap[3]; };
22248 struct s *b; b->j = 5;
22250 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22251 const int foo = 10;
22256 if { (eval echo configure:22257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22260 echo "configure: failed program was:" >&5
22261 cat conftest.$ac_ext >&5
22268 echo "$ac_t""$ac_cv_c_const" 1>&6
22269 if test $ac_cv_c_const = no; then
22270 cat >> confdefs.h <<\EOF
22276 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22277 echo "configure:22278: checking if compiler understands volatile" >&5
22278 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22279 echo $ac_n "(cached) $ac_c" 1>&6
22281 cat > conftest.$ac_ext <<EOF
22282 #line 22283 "configure"
22283 #include "confdefs.h"
22286 volatile int a; int * volatile b = x ? &y : &z;
22287 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22291 if { (eval echo configure:22292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22293 ol_cv_c_volatile=yes
22295 echo "configure: failed program was:" >&5
22296 cat conftest.$ac_ext >&5
22298 ol_cv_c_volatile=no
22303 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22304 if test $ol_cv_c_volatile = yes; then
22307 cat >> confdefs.h <<\EOF
22314 if test $cross_compiling = yes ; then
22315 cat >> confdefs.h <<\EOF
22316 #define CROSS_COMPILING 1
22320 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22321 echo "configure:22322: checking whether byte ordering is bigendian" >&5
22322 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22323 echo $ac_n "(cached) $ac_c" 1>&6
22325 ac_cv_c_bigendian=unknown
22326 # See if sys/param.h defines the BYTE_ORDER macro.
22327 cat > conftest.$ac_ext <<EOF
22328 #line 22329 "configure"
22329 #include "confdefs.h"
22330 #include <sys/types.h>
22331 #include <sys/param.h>
22334 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22335 bogus endian macros
22339 if { (eval echo configure:22340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22341 # It does; now see whether it defined to BIG_ENDIAN or not.
22342 cat > conftest.$ac_ext <<EOF
22343 #line 22344 "configure"
22344 #include "confdefs.h"
22345 #include <sys/types.h>
22346 #include <sys/param.h>
22349 #if BYTE_ORDER != BIG_ENDIAN
22354 if { (eval echo configure:22355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22356 ac_cv_c_bigendian=yes
22358 echo "configure: failed program was:" >&5
22359 cat conftest.$ac_ext >&5
22361 ac_cv_c_bigendian=no
22365 echo "configure: failed program was:" >&5
22366 cat conftest.$ac_ext >&5
22369 if test $ac_cv_c_bigendian = unknown; then
22370 if test "$cross_compiling" = yes; then
22371 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22373 cat > conftest.$ac_ext <<EOF
22374 #line 22375 "configure"
22375 #include "confdefs.h"
22377 /* Are we little or big endian? From Harbison&Steele. */
22381 char c[sizeof (long)];
22384 exit (u.c[sizeof (long) - 1] == 1);
22387 if { (eval echo configure:22388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22389 ac_cv_c_bigendian=no
22391 echo "configure: failed program was:" >&5
22392 cat conftest.$ac_ext >&5
22394 ac_cv_c_bigendian=yes
22402 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22403 if test $ac_cv_c_bigendian = yes; then
22404 cat >> confdefs.h <<\EOF
22405 #define WORDS_BIGENDIAN 1
22412 echo $ac_n "checking size of short""... $ac_c" 1>&6
22413 echo "configure:22414: checking size of short" >&5
22414 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22415 echo $ac_n "(cached) $ac_c" 1>&6
22417 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22418 cat > conftest.$ac_ext <<EOF
22419 #line 22420 "configure"
22420 #include "confdefs.h"
22421 #include "confdefs.h"
22422 #include <sys/types.h>
22426 switch (0) case 0: case (sizeof (short) == $ac_size):;
22429 if { (eval echo configure:22430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22431 ac_cv_sizeof_short=$ac_size
22433 echo "configure: failed program was:" >&5
22434 cat conftest.$ac_ext >&5
22437 if test x$ac_cv_sizeof_short != x ; then break; fi
22442 if test x$ac_cv_sizeof_short = x ; then
22443 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22445 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22446 cat >> confdefs.h <<EOF
22447 #define SIZEOF_SHORT $ac_cv_sizeof_short
22451 echo $ac_n "checking size of int""... $ac_c" 1>&6
22452 echo "configure:22453: checking size of int" >&5
22453 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22454 echo $ac_n "(cached) $ac_c" 1>&6
22456 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22457 cat > conftest.$ac_ext <<EOF
22458 #line 22459 "configure"
22459 #include "confdefs.h"
22460 #include "confdefs.h"
22461 #include <sys/types.h>
22465 switch (0) case 0: case (sizeof (int) == $ac_size):;
22468 if { (eval echo configure:22469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22470 ac_cv_sizeof_int=$ac_size
22472 echo "configure: failed program was:" >&5
22473 cat conftest.$ac_ext >&5
22476 if test x$ac_cv_sizeof_int != x ; then break; fi
22481 if test x$ac_cv_sizeof_int = x ; then
22482 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22484 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22485 cat >> confdefs.h <<EOF
22486 #define SIZEOF_INT $ac_cv_sizeof_int
22490 echo $ac_n "checking size of long""... $ac_c" 1>&6
22491 echo "configure:22492: checking size of long" >&5
22492 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22493 echo $ac_n "(cached) $ac_c" 1>&6
22495 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22496 cat > conftest.$ac_ext <<EOF
22497 #line 22498 "configure"
22498 #include "confdefs.h"
22499 #include "confdefs.h"
22500 #include <sys/types.h>
22504 switch (0) case 0: case (sizeof (long) == $ac_size):;
22507 if { (eval echo configure:22508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22509 ac_cv_sizeof_long=$ac_size
22511 echo "configure: failed program was:" >&5
22512 cat conftest.$ac_ext >&5
22515 if test x$ac_cv_sizeof_long != x ; then break; fi
22520 if test x$ac_cv_sizeof_long = x ; then
22521 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22523 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22524 cat >> confdefs.h <<EOF
22525 #define SIZEOF_LONG $ac_cv_sizeof_long
22530 if test "$ac_cv_sizeof_int" -lt 4 ; then
22531 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22533 cat >> confdefs.h <<\EOF
22534 #define LBER_INT_T long
22538 cat >> confdefs.h <<\EOF
22539 #define LBER_INT_T int
22544 cat >> confdefs.h <<\EOF
22545 #define LBER_LEN_T long
22548 cat >> confdefs.h <<\EOF
22549 #define LBER_SOCKET_T int
22552 cat >> confdefs.h <<\EOF
22553 #define LBER_TAG_T long
22557 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22558 echo "configure:22559: checking for 8-bit clean memcmp" >&5
22559 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22560 echo $ac_n "(cached) $ac_c" 1>&6
22562 if test "$cross_compiling" = yes; then
22563 ac_cv_func_memcmp_clean=no
22565 cat > conftest.$ac_ext <<EOF
22566 #line 22567 "configure"
22567 #include "confdefs.h"
22571 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22572 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22576 if { (eval echo configure:22577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22578 ac_cv_func_memcmp_clean=yes
22580 echo "configure: failed program was:" >&5
22581 cat conftest.$ac_ext >&5
22583 ac_cv_func_memcmp_clean=no
22590 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22591 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22593 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22594 echo "configure:22595: checking for strftime" >&5
22595 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22596 echo $ac_n "(cached) $ac_c" 1>&6
22598 cat > conftest.$ac_ext <<EOF
22599 #line 22600 "configure"
22600 #include "confdefs.h"
22601 /* System header to define __stub macros and hopefully few prototypes,
22602 which can conflict with char strftime(); below. */
22603 #include <assert.h>
22604 /* Override any gcc2 internal prototype to avoid an error. */
22605 /* We use char because int might match the return type of a gcc2
22606 builtin and then its argument prototype would still apply. */
22612 /* The GNU C library defines this for functions which it implements
22613 to always fail with ENOSYS. Some functions are actually named
22614 something starting with __ and the normal name is an alias. */
22615 #if defined (__stub_strftime) || defined (__stub___strftime)
22623 if { (eval echo configure:22624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22625 eval "ac_cv_func_strftime=yes"
22627 echo "configure: failed program was:" >&5
22628 cat conftest.$ac_ext >&5
22630 eval "ac_cv_func_strftime=no"
22635 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22636 echo "$ac_t""yes" 1>&6
22637 cat >> confdefs.h <<\EOF
22638 #define HAVE_STRFTIME 1
22642 echo "$ac_t""no" 1>&6
22643 # strftime is in -lintl on SCO UNIX.
22644 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22645 echo "configure:22646: checking for strftime in -lintl" >&5
22646 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22647 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22648 echo $ac_n "(cached) $ac_c" 1>&6
22650 ac_save_LIBS="$LIBS"
22651 LIBS="-lintl $LIBS"
22652 cat > conftest.$ac_ext <<EOF
22653 #line 22654 "configure"
22654 #include "confdefs.h"
22655 /* Override any gcc2 internal prototype to avoid an error. */
22656 /* We use char because int might match the return type of a gcc2
22657 builtin and then its argument prototype would still apply. */
22664 if { (eval echo configure:22665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22666 eval "ac_cv_lib_$ac_lib_var=yes"
22668 echo "configure: failed program was:" >&5
22669 cat conftest.$ac_ext >&5
22671 eval "ac_cv_lib_$ac_lib_var=no"
22674 LIBS="$ac_save_LIBS"
22677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22678 echo "$ac_t""yes" 1>&6
22679 cat >> confdefs.h <<\EOF
22680 #define HAVE_STRFTIME 1
22683 LIBS="-lintl $LIBS"
22685 echo "$ac_t""no" 1>&6
22691 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22692 echo "configure:22693: checking for inet_aton()" >&5
22693 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22694 echo $ac_n "(cached) $ac_c" 1>&6
22696 cat > conftest.$ac_ext <<EOF
22697 #line 22698 "configure"
22698 #include "confdefs.h"
22700 #ifdef HAVE_SYS_TYPES_H
22701 # include <sys/types.h>
22703 #ifdef HAVE_SYS_SOCKET_H
22704 # include <sys/socket.h>
22705 # ifdef HAVE_SYS_SELECT_H
22706 # include <sys/select.h>
22708 # include <netinet/in.h>
22709 # ifdef HAVE_ARPA_INET_H
22710 # include <arpa/inet.h>
22716 int rc = inet_aton( "255.255.255.255", &in );
22719 if { (eval echo configure:22720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22721 ol_cv_func_inet_aton=yes
22723 echo "configure: failed program was:" >&5
22724 cat conftest.$ac_ext >&5
22726 ol_cv_func_inet_aton=no
22731 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22732 if test $ol_cv_func_inet_aton != no; then
22733 cat >> confdefs.h <<\EOF
22734 #define HAVE_INET_ATON 1
22740 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22741 echo "configure:22742: checking for _spawnlp" >&5
22742 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22743 echo $ac_n "(cached) $ac_c" 1>&6
22745 cat > conftest.$ac_ext <<EOF
22746 #line 22747 "configure"
22747 #include "confdefs.h"
22748 /* System header to define __stub macros and hopefully few prototypes,
22749 which can conflict with char _spawnlp(); below. */
22750 #include <assert.h>
22751 /* Override any gcc2 internal prototype to avoid an error. */
22752 /* We use char because int might match the return type of a gcc2
22753 builtin and then its argument prototype would still apply. */
22759 /* The GNU C library defines this for functions which it implements
22760 to always fail with ENOSYS. Some functions are actually named
22761 something starting with __ and the normal name is an alias. */
22762 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22770 if { (eval echo configure:22771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22772 eval "ac_cv_func__spawnlp=yes"
22774 echo "configure: failed program was:" >&5
22775 cat conftest.$ac_ext >&5
22777 eval "ac_cv_func__spawnlp=no"
22782 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22783 echo "$ac_t""yes" 1>&6
22784 cat >> confdefs.h <<\EOF
22785 #define HAVE_SPAWNLP 1
22789 echo "$ac_t""no" 1>&6
22793 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22794 echo "configure:22795: checking for _snprintf" >&5
22795 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22796 echo $ac_n "(cached) $ac_c" 1>&6
22798 cat > conftest.$ac_ext <<EOF
22799 #line 22800 "configure"
22800 #include "confdefs.h"
22801 /* System header to define __stub macros and hopefully few prototypes,
22802 which can conflict with char _snprintf(); below. */
22803 #include <assert.h>
22804 /* Override any gcc2 internal prototype to avoid an error. */
22805 /* We use char because int might match the return type of a gcc2
22806 builtin and then its argument prototype would still apply. */
22812 /* The GNU C library defines this for functions which it implements
22813 to always fail with ENOSYS. Some functions are actually named
22814 something starting with __ and the normal name is an alias. */
22815 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22823 if { (eval echo configure:22824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22825 eval "ac_cv_func__snprintf=yes"
22827 echo "configure: failed program was:" >&5
22828 cat conftest.$ac_ext >&5
22830 eval "ac_cv_func__snprintf=no"
22835 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22836 echo "$ac_t""yes" 1>&6
22837 ac_cv_func_snprintf=yes
22838 cat >> confdefs.h <<\EOF
22839 #define snprintf _snprintf
22844 echo "$ac_t""no" 1>&6
22848 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22849 echo "configure:22850: checking for _vsnprintf" >&5
22850 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22851 echo $ac_n "(cached) $ac_c" 1>&6
22853 cat > conftest.$ac_ext <<EOF
22854 #line 22855 "configure"
22855 #include "confdefs.h"
22856 /* System header to define __stub macros and hopefully few prototypes,
22857 which can conflict with char _vsnprintf(); below. */
22858 #include <assert.h>
22859 /* Override any gcc2 internal prototype to avoid an error. */
22860 /* We use char because int might match the return type of a gcc2
22861 builtin and then its argument prototype would still apply. */
22867 /* The GNU C library defines this for functions which it implements
22868 to always fail with ENOSYS. Some functions are actually named
22869 something starting with __ and the normal name is an alias. */
22870 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22878 if { (eval echo configure:22879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22880 eval "ac_cv_func__vsnprintf=yes"
22882 echo "configure: failed program was:" >&5
22883 cat conftest.$ac_ext >&5
22885 eval "ac_cv_func__vsnprintf=no"
22890 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22891 echo "$ac_t""yes" 1>&6
22892 ac_cv_func_vsnprintf=yes
22893 cat >> confdefs.h <<\EOF
22894 #define vsnprintf _vsnprintf
22899 echo "$ac_t""no" 1>&6
22903 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
22904 echo "configure:22905: checking for vprintf" >&5
22905 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
22906 echo $ac_n "(cached) $ac_c" 1>&6
22908 cat > conftest.$ac_ext <<EOF
22909 #line 22910 "configure"
22910 #include "confdefs.h"
22911 /* System header to define __stub macros and hopefully few prototypes,
22912 which can conflict with char vprintf(); below. */
22913 #include <assert.h>
22914 /* Override any gcc2 internal prototype to avoid an error. */
22915 /* We use char because int might match the return type of a gcc2
22916 builtin and then its argument prototype would still apply. */
22922 /* The GNU C library defines this for functions which it implements
22923 to always fail with ENOSYS. Some functions are actually named
22924 something starting with __ and the normal name is an alias. */
22925 #if defined (__stub_vprintf) || defined (__stub___vprintf)
22933 if { (eval echo configure:22934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22935 eval "ac_cv_func_vprintf=yes"
22937 echo "configure: failed program was:" >&5
22938 cat conftest.$ac_ext >&5
22940 eval "ac_cv_func_vprintf=no"
22945 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
22946 echo "$ac_t""yes" 1>&6
22947 cat >> confdefs.h <<\EOF
22948 #define HAVE_VPRINTF 1
22952 echo "$ac_t""no" 1>&6
22955 if test "$ac_cv_func_vprintf" != yes; then
22956 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
22957 echo "configure:22958: checking for _doprnt" >&5
22958 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
22959 echo $ac_n "(cached) $ac_c" 1>&6
22961 cat > conftest.$ac_ext <<EOF
22962 #line 22963 "configure"
22963 #include "confdefs.h"
22964 /* System header to define __stub macros and hopefully few prototypes,
22965 which can conflict with char _doprnt(); below. */
22966 #include <assert.h>
22967 /* Override any gcc2 internal prototype to avoid an error. */
22968 /* We use char because int might match the return type of a gcc2
22969 builtin and then its argument prototype would still apply. */
22975 /* The GNU C library defines this for functions which it implements
22976 to always fail with ENOSYS. Some functions are actually named
22977 something starting with __ and the normal name is an alias. */
22978 #if defined (__stub__doprnt) || defined (__stub____doprnt)
22986 if { (eval echo configure:22987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22988 eval "ac_cv_func__doprnt=yes"
22990 echo "configure: failed program was:" >&5
22991 cat conftest.$ac_ext >&5
22993 eval "ac_cv_func__doprnt=no"
22998 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
22999 echo "$ac_t""yes" 1>&6
23000 cat >> confdefs.h <<\EOF
23001 #define HAVE_DOPRNT 1
23005 echo "$ac_t""no" 1>&6
23011 if test $ac_cv_func_vprintf = yes ; then
23012 for ac_func in snprintf vsnprintf
23014 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23015 echo "configure:23016: checking for $ac_func" >&5
23016 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23017 echo $ac_n "(cached) $ac_c" 1>&6
23019 cat > conftest.$ac_ext <<EOF
23020 #line 23021 "configure"
23021 #include "confdefs.h"
23022 /* System header to define __stub macros and hopefully few prototypes,
23023 which can conflict with char $ac_func(); below. */
23024 #include <assert.h>
23025 /* Override any gcc2 internal prototype to avoid an error. */
23026 /* We use char because int might match the return type of a gcc2
23027 builtin and then its argument prototype would still apply. */
23033 /* The GNU C library defines this for functions which it implements
23034 to always fail with ENOSYS. Some functions are actually named
23035 something starting with __ and the normal name is an alias. */
23036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23044 if { (eval echo configure:23045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23046 eval "ac_cv_func_$ac_func=yes"
23048 echo "configure: failed program was:" >&5
23049 cat conftest.$ac_ext >&5
23051 eval "ac_cv_func_$ac_func=no"
23056 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23057 echo "$ac_t""yes" 1>&6
23058 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23059 cat >> confdefs.h <<EOF
23060 #define $ac_tr_func 1
23064 echo "$ac_t""no" 1>&6
23129 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23130 echo "configure:23131: checking for $ac_func" >&5
23131 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23132 echo $ac_n "(cached) $ac_c" 1>&6
23134 cat > conftest.$ac_ext <<EOF
23135 #line 23136 "configure"
23136 #include "confdefs.h"
23137 /* System header to define __stub macros and hopefully few prototypes,
23138 which can conflict with char $ac_func(); below. */
23139 #include <assert.h>
23140 /* Override any gcc2 internal prototype to avoid an error. */
23141 /* We use char because int might match the return type of a gcc2
23142 builtin and then its argument prototype would still apply. */
23148 /* The GNU C library defines this for functions which it implements
23149 to always fail with ENOSYS. Some functions are actually named
23150 something starting with __ and the normal name is an alias. */
23151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23159 if { (eval echo configure:23160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23161 eval "ac_cv_func_$ac_func=yes"
23163 echo "configure: failed program was:" >&5
23164 cat conftest.$ac_ext >&5
23166 eval "ac_cv_func_$ac_func=no"
23171 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23172 echo "$ac_t""yes" 1>&6
23173 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23174 cat >> confdefs.h <<EOF
23175 #define $ac_tr_func 1
23179 echo "$ac_t""no" 1>&6
23184 for ac_func in getopt getpeereid
23186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23187 echo "configure:23188: checking for $ac_func" >&5
23188 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23189 echo $ac_n "(cached) $ac_c" 1>&6
23191 cat > conftest.$ac_ext <<EOF
23192 #line 23193 "configure"
23193 #include "confdefs.h"
23194 /* System header to define __stub macros and hopefully few prototypes,
23195 which can conflict with char $ac_func(); below. */
23196 #include <assert.h>
23197 /* Override any gcc2 internal prototype to avoid an error. */
23198 /* We use char because int might match the return type of a gcc2
23199 builtin and then its argument prototype would still apply. */
23205 /* The GNU C library defines this for functions which it implements
23206 to always fail with ENOSYS. Some functions are actually named
23207 something starting with __ and the normal name is an alias. */
23208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23216 if { (eval echo configure:23217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23218 eval "ac_cv_func_$ac_func=yes"
23220 echo "configure: failed program was:" >&5
23221 cat conftest.$ac_ext >&5
23223 eval "ac_cv_func_$ac_func=no"
23228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23229 echo "$ac_t""yes" 1>&6
23230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23231 cat >> confdefs.h <<EOF
23232 #define $ac_tr_func 1
23236 echo "$ac_t""no" 1>&6
23237 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23243 if test "$ac_cv_func_getopt" != yes; then
23244 LIBSRCS="$LIBSRCS getopt.c"
23246 if test "$ac_cv_func_getpeereid" != yes; then
23247 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23248 echo "configure:23249: checking for msg_accrights in msghdr" >&5
23249 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23250 echo $ac_n "(cached) $ac_c" 1>&6
23252 cat > conftest.$ac_ext <<EOF
23253 #line 23254 "configure"
23254 #include "confdefs.h"
23255 #include <sys/socket.h>
23257 struct msghdr m; m.msg_accrightslen=0
23260 if { (eval echo configure:23261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23262 ol_cv_msghdr_msg_accrights=yes
23264 echo "configure: failed program was:" >&5
23265 cat conftest.$ac_ext >&5
23267 ol_cv_msghdr_msg_accrights=no
23273 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23274 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23275 cat >> confdefs.h <<\EOF
23276 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23281 LIBSRCS="$LIBSRCS getpeereid.c"
23283 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23284 if test "$ac_cv_func_snprintf" != yes; then
23285 cat >> confdefs.h <<\EOF
23286 #define snprintf ber_pvt_snprintf
23290 if test "$ac_cv_func_vsnprintf" != yes; then
23291 cat >> confdefs.h <<\EOF
23292 #define vsnprintf ber_pvt_vsnprintf
23298 # Check Configuration
23299 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23300 echo "configure:23301: checking declaration of sys_errlist" >&5
23301 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23302 echo $ac_n "(cached) $ac_c" 1>&6
23305 cat > conftest.$ac_ext <<EOF
23306 #line 23307 "configure"
23307 #include "confdefs.h"
23310 #include <sys/types.h>
23313 #include <stdlib.h>
23316 char *c = (char *) *sys_errlist
23319 if { (eval echo configure:23320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23321 ol_cv_dcl_sys_errlist=yes
23322 ol_cv_have_sys_errlist=yes
23324 echo "configure: failed program was:" >&5
23325 cat conftest.$ac_ext >&5
23327 ol_cv_dcl_sys_errlist=no
23332 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23334 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23335 if test $ol_cv_dcl_sys_errlist = no ; then
23336 cat >> confdefs.h <<\EOF
23337 #define DECL_SYS_ERRLIST 1
23341 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23342 echo "configure:23343: checking existence of sys_errlist" >&5
23343 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23344 echo $ac_n "(cached) $ac_c" 1>&6
23347 cat > conftest.$ac_ext <<EOF
23348 #line 23349 "configure"
23349 #include "confdefs.h"
23352 char *c = (char *) *sys_errlist
23355 if { (eval echo configure:23356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23357 ol_cv_have_sys_errlist=yes
23359 echo "configure: failed program was:" >&5
23360 cat conftest.$ac_ext >&5
23362 ol_cv_have_sys_errlist=no
23367 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23369 if test $ol_cv_have_sys_errlist = yes ; then
23370 cat >> confdefs.h <<\EOF
23371 #define HAVE_SYS_ERRLIST 1
23378 if test "$ol_enable_slapi" != no ; then
23379 for ac_hdr in ltdl.h
23381 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23382 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23383 echo "configure:23384: checking for $ac_hdr" >&5
23384 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23385 echo $ac_n "(cached) $ac_c" 1>&6
23387 cat > conftest.$ac_ext <<EOF
23388 #line 23389 "configure"
23389 #include "confdefs.h"
23392 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23393 { (eval echo configure:23394: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23394 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23395 if test -z "$ac_err"; then
23397 eval "ac_cv_header_$ac_safe=yes"
23400 echo "configure: failed program was:" >&5
23401 cat conftest.$ac_ext >&5
23403 eval "ac_cv_header_$ac_safe=no"
23407 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23408 echo "$ac_t""yes" 1>&6
23409 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23410 cat >> confdefs.h <<EOF
23411 #define $ac_tr_hdr 1
23415 echo "$ac_t""no" 1>&6
23420 if test $ac_cv_header_ltdl_h != yes ; then
23421 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23423 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23424 echo "configure:23425: checking for lt_dlinit in -lltdl" >&5
23425 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23426 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23427 echo $ac_n "(cached) $ac_c" 1>&6
23429 ac_save_LIBS="$LIBS"
23430 LIBS="-lltdl $LIBS"
23431 cat > conftest.$ac_ext <<EOF
23432 #line 23433 "configure"
23433 #include "confdefs.h"
23434 /* Override any gcc2 internal prototype to avoid an error. */
23435 /* We use char because int might match the return type of a gcc2
23436 builtin and then its argument prototype would still apply. */
23443 if { (eval echo configure:23444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23445 eval "ac_cv_lib_$ac_lib_var=yes"
23447 echo "configure: failed program was:" >&5
23448 cat conftest.$ac_ext >&5
23450 eval "ac_cv_lib_$ac_lib_var=no"
23453 LIBS="$ac_save_LIBS"
23456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23457 echo "$ac_t""yes" 1>&6
23460 LIBSLAPI=libslapi.a
23461 LIBSLAPITOOLS=../libslapi.a
23462 cat >> confdefs.h <<\EOF
23463 #define HAVE_LIBLTDL 1
23468 echo "$ac_t""no" 1>&6
23469 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23473 cat >> confdefs.h <<\EOF
23474 #define LDAP_SLAPI 1
23479 if test "$ol_enable_debug" != no ; then
23480 cat >> confdefs.h <<\EOF
23481 #define LDAP_DEBUG 1
23485 if test "$ol_enable_syslog" = yes ; then
23486 cat >> confdefs.h <<\EOF
23487 #define LDAP_SYSLOG 1
23491 if test "$ol_link_kbind" != no ; then
23492 cat >> confdefs.h <<\EOF
23493 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23497 if test "$ol_enable_proctitle" != no ; then
23498 cat >> confdefs.h <<\EOF
23499 #define LDAP_PROCTITLE 1
23503 if test "$ol_enable_referrals" != no ; then
23504 cat >> confdefs.h <<\EOF
23505 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23509 if test "$ol_enable_local" != no; then
23510 cat >> confdefs.h <<\EOF
23511 #define LDAP_PF_LOCAL 1
23515 if test "$ol_link_ipv6" != no; then
23516 cat >> confdefs.h <<\EOF
23517 #define LDAP_PF_INET6 1
23521 if test "$ol_enable_cleartext" != no ; then
23522 cat >> confdefs.h <<\EOF
23523 #define SLAPD_CLEARTEXT 1
23527 if test "$ol_enable_crypt" != no ; then
23528 cat >> confdefs.h <<\EOF
23529 #define SLAPD_CRYPT 1
23533 if test "$ol_link_kpasswd" != no ; then
23534 cat >> confdefs.h <<\EOF
23535 #define SLAPD_KPASSWD 1
23539 if test "$ol_link_spasswd" != no ; then
23540 cat >> confdefs.h <<\EOF
23541 #define SLAPD_SPASSWD 1
23545 if test "$ol_enable_multimaster" != no ; then
23546 cat >> confdefs.h <<\EOF
23547 #define SLAPD_MULTIMASTER 1
23551 if test "$ol_enable_rlookups" != no ; then
23552 cat >> confdefs.h <<\EOF
23553 #define SLAPD_RLOOKUPS 1
23557 if test "$ol_enable_aci" != no ; then
23558 cat >> confdefs.h <<\EOF
23559 #define SLAPD_ACI_ENABLED 1
23564 if test "$ol_link_modules" != no ; then
23565 cat >> confdefs.h <<\EOF
23566 #define SLAPD_MODULES 1
23570 SLAPD_MODULES_LDFLAGS="-dlopen self"
23573 cat >> confdefs.h <<\EOF
23574 #define SLAPD_MOD_STATIC 1
23577 cat >> confdefs.h <<\EOF
23578 #define SLAPD_MOD_DYNAMIC 2
23582 if test "$ol_enable_bdb" != no ; then
23583 cat >> confdefs.h <<\EOF
23584 #define SLAPD_BDB 1
23589 if test "$ol_with_bdb_module" != static ; then
23590 cat >> confdefs.h <<\EOF
23591 #define SLAPD_BDB_DYNAMIC 1
23595 BUILD_BDB_DYNAMIC=shared
23596 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23598 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23602 if test "$ol_link_dnssrv" != no ; then
23603 cat >> confdefs.h <<\EOF
23604 #define SLAPD_DNSSRV 1
23609 if test "$ol_with_dnssrv_module" != static ; then
23610 cat >> confdefs.h <<\EOF
23611 #define SLAPD_DNSSRV_DYNAMIC 1
23615 BUILD_DNSSRV_DYNAMIC=shared
23616 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23618 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23622 if test "$ol_enable_hdb" != no ; then
23623 cat >> confdefs.h <<\EOF
23624 #define SLAPD_HDB 1
23629 if test "$ol_with_hdb_module" != static ; then
23630 cat >> confdefs.h <<\EOF
23631 #define SLAPD_HDB_DYNAMIC 1
23635 BUILD_HDB_DYNAMIC=shared
23636 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23638 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23642 if test "$ol_enable_ldap" != no ; then
23643 cat >> confdefs.h <<\EOF
23644 #define SLAPD_LDAP 1
23649 if test "$ol_with_ldap_module" != static ; then
23650 cat >> confdefs.h <<\EOF
23651 #define SLAPD_LDAP_DYNAMIC 1
23655 BUILD_LDAP_DYNAMIC=shared
23656 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23658 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23662 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23663 cat >> confdefs.h <<\EOF
23664 #define SLAPD_LDBM 1
23669 if test "$ol_with_ldbm_module" != static ; then
23670 cat >> confdefs.h <<\EOF
23671 #define SLAPD_LDBM_DYNAMIC 1
23675 BUILD_LDBM_DYNAMIC=shared
23676 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23678 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23682 if test "$ol_enable_meta" != no ; then
23683 if test "$ol_enable_ldap" = no ; then
23684 { echo "configure: error: need --enable-ldap to use --enable-meta" 1>&2; exit 1; }
23686 if test "$ol_enable_rewrite" = no ; then
23687 { echo "configure: error: need --enable-rewrite to use --enable-meta" 1>&2; exit 1; }
23689 cat >> confdefs.h <<\EOF
23690 #define SLAPD_META 1
23696 if test "$ol_with_meta_module" != static ; then
23697 cat >> confdefs.h <<\EOF
23698 #define SLAPD_META_DYNAMIC 1
23702 BUILD_META_DYNAMIC=shared
23703 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23705 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23709 if test "$ol_enable_monitor" != no ; then
23710 cat >> confdefs.h <<\EOF
23711 #define SLAPD_MONITOR 1
23716 if test "$ol_with_monitor_module" != static ; then
23717 cat >> confdefs.h <<\EOF
23718 #define SLAPD_MONITOR_DYNAMIC 1
23722 BUILD_MONITOR_DYNAMIC=shared
23723 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23725 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23729 if test "$ol_enable_null" != no ; then
23730 cat >> confdefs.h <<\EOF
23731 #define SLAPD_NULL 1
23736 if test "$ol_with_null_module" != static ; then
23737 cat >> confdefs.h <<\EOF
23738 #define SLAPD_NULL_DYNAMIC 1
23742 BUILD_NULL_DYNAMIC=shared
23743 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23745 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23749 if test "$ol_enable_passwd" != no ; then
23750 cat >> confdefs.h <<\EOF
23751 #define SLAPD_PASSWD 1
23756 if test "$ol_with_passwd_module" != static ; then
23757 cat >> confdefs.h <<\EOF
23758 #define SLAPD_PASSWD_DYNAMIC 1
23762 BUILD_PASSWD_DYNAMIC=shared
23763 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23765 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23769 if test "$ol_link_perl" != no ; then
23770 cat >> confdefs.h <<\EOF
23771 #define SLAPD_PERL 1
23776 if test "$ol_with_perl_module" != static ; then
23777 cat >> confdefs.h <<\EOF
23778 #define SLAPD_PERL_DYNAMIC 1
23782 BUILD_PERL_DYNAMIC=shared
23783 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23785 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23789 if test "$ol_enable_shell" != no ; then
23790 if test "$ol_link_thread" != no ; then
23791 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23793 cat >> confdefs.h <<\EOF
23794 #define SLAPD_SHELL 1
23799 if test "$ol_with_shell_module" != static ; then
23800 cat >> confdefs.h <<\EOF
23801 #define SLAPD_SHELL_DYNAMIC 1
23805 BUILD_SHELL_DYNAMIC=shared
23806 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23808 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23812 if test "$ol_link_sql" != no ; then
23813 cat >> confdefs.h <<\EOF
23814 #define SLAPD_SQL 1
23819 if test "$ol_with_sql_module" != static; then
23820 cat >> confdefs.h <<\EOF
23821 #define SLAPD_SQL_DYNAMIC 1
23825 BUILD_SQL_DYNAMIC=shared
23826 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23828 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23832 if test "$ol_with_dyngroup" != no ; then
23833 BUILD_DYNGROUP=$ol_with_dyngroup
23834 if test "$ol_with_dyngroup" = mod ; then
23835 MFLAG=SLAPD_MOD_DYNAMIC
23836 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23838 MFLAG=SLAPD_MOD_STATIC
23840 cat >> confdefs.h <<EOF
23841 #define SLAPD_OVER_DYNGROUP $MFLAG
23846 if test "$ol_with_proxycache" != no ; then
23847 BUILD_PROXYCACHE=$ol_with_proxycache
23848 if test "$ol_with_proxycache" = mod ; then
23849 MFLAG=SLAPD_MOD_DYNAMIC
23850 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
23852 MFLAG=SLAPD_MOD_STATIC
23854 cat >> confdefs.h <<EOF
23855 #define SLAPD_OVER_PROXYCACHE $MFLAG
23860 if test "$ol_with_rwm " != no ; then
23862 BUILD_RWM=$ol_with_rwm
23863 if test "$ol_with_rwm" = mod ; then
23864 MFLAG=SLAPD_MOD_DYNAMIC
23865 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
23867 MFLAG=SLAPD_MOD_STATIC
23869 cat >> confdefs.h <<EOF
23870 #define SLAPD_OVER_RWM $MFLAG
23875 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
23876 $BUILD_SLAPD = yes ; then
23880 if test "$ol_enable_rewrite" != no ; then
23881 cat >> confdefs.h <<\EOF
23882 #define ENABLE_REWRITE 1
23888 if test "$ol_enable_slapi" != no ; then
23889 cat >> confdefs.h <<\EOF
23890 #define ENABLE_SLAPI 1
23894 SLAPD_SLAPI_DEPEND=libslapi.a
23899 if test "$ac_cv_mingw32" = yes ; then
23901 SLAPD_MODULES_LDFLAGS=
23906 if test -z "$SLAPD_STATIC_BACKENDS"; then
23907 SLAPD_NO_STATIC='#'
23985 # Check whether --with-xxinstall or --without-xxinstall was given.
23986 if test "${with_xxinstall+set}" = set; then
23987 withval="$with_xxinstall"
23995 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
23997 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23998 # Let make expand exec_prefix.
23999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24001 # Any assignment to VPATH causes Sun make to only execute
24002 # the first set of double-colon rules, so remove it if not needed.
24003 # If there is a colon in the path, we need to keep it.
24004 if test "x$srcdir" = x.; then
24005 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24008 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24010 DEFS=-DHAVE_CONFIG_H
24012 # Without the "./", some shells look in PATH for config.status.
24013 : ${CONFIG_STATUS=./config.status}
24015 echo creating $CONFIG_STATUS
24016 rm -f $CONFIG_STATUS
24017 cat > $CONFIG_STATUS <<EOF
24019 # Generated automatically by configure.
24020 # Run this file to recreate the current configuration.
24021 # This directory was configured as follows,
24022 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24024 # $0 $ac_configure_args
24026 # Compiler output produced by configure, useful for debugging
24027 # configure, is in ./config.log if it exists.
24029 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24032 case "\$ac_option" in
24033 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24034 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24035 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24036 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24037 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24039 -help | --help | --hel | --he | --h)
24040 echo "\$ac_cs_usage"; exit 0 ;;
24041 *) echo "\$ac_cs_usage"; exit 1 ;;
24045 ac_given_srcdir=$srcdir
24046 ac_given_INSTALL="$INSTALL"
24048 trap 'rm -fr `echo "\
24049 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24050 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24051 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24052 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24053 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24054 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24055 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24056 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24057 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24058 include/Makefile:build/top.mk:include/Makefile.in \
24059 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24060 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24061 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24062 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24063 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24064 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24065 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24066 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24067 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24068 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24069 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24070 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24071 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24072 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24073 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24074 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24075 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24076 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24077 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24078 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24079 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24080 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24081 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24082 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24083 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24084 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24085 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24087 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24088 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24090 cat >> $CONFIG_STATUS <<EOF
24092 # Protect against being on the right side of a sed subst in config.status.
24093 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24094 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24098 s%@CFLAGS@%$CFLAGS%g
24099 s%@CPPFLAGS@%$CPPFLAGS%g
24100 s%@CXXFLAGS@%$CXXFLAGS%g
24101 s%@FFLAGS@%$FFLAGS%g
24103 s%@LDFLAGS@%$LDFLAGS%g
24105 s%@exec_prefix@%$exec_prefix%g
24106 s%@prefix@%$prefix%g
24107 s%@program_transform_name@%$program_transform_name%g
24108 s%@bindir@%$bindir%g
24109 s%@sbindir@%$sbindir%g
24110 s%@libexecdir@%$libexecdir%g
24111 s%@datadir@%$datadir%g
24112 s%@sysconfdir@%$sysconfdir%g
24113 s%@sharedstatedir@%$sharedstatedir%g
24114 s%@localstatedir@%$localstatedir%g
24115 s%@libdir@%$libdir%g
24116 s%@includedir@%$includedir%g
24117 s%@oldincludedir@%$oldincludedir%g
24118 s%@infodir@%$infodir%g
24119 s%@mandir@%$mandir%g
24121 s%@host_alias@%$host_alias%g
24122 s%@host_cpu@%$host_cpu%g
24123 s%@host_vendor@%$host_vendor%g
24124 s%@host_os@%$host_os%g
24125 s%@target@%$target%g
24126 s%@target_alias@%$target_alias%g
24127 s%@target_cpu@%$target_cpu%g
24128 s%@target_vendor@%$target_vendor%g
24129 s%@target_os@%$target_os%g
24131 s%@build_alias@%$build_alias%g
24132 s%@build_cpu@%$build_cpu%g
24133 s%@build_vendor@%$build_vendor%g
24134 s%@build_os@%$build_os%g
24135 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24136 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24137 s%@INSTALL_DATA@%$INSTALL_DATA%g
24138 s%@PACKAGE@%$PACKAGE%g
24139 s%@VERSION@%$VERSION%g
24140 s%@ACLOCAL@%$ACLOCAL%g
24141 s%@AUTOCONF@%$AUTOCONF%g
24142 s%@AUTOMAKE@%$AUTOMAKE%g
24143 s%@AUTOHEADER@%$AUTOHEADER%g
24144 s%@MAKEINFO@%$MAKEINFO%g
24145 s%@install_sh@%$install_sh%g
24148 s%@AMTARFLAGS@%$AMTARFLAGS%g
24149 s%@SET_MAKE@%$SET_MAKE%g
24150 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24151 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24152 s%@top_builddir@%$top_builddir%g
24153 s%@ldap_subdir@%$ldap_subdir%g
24157 s%@OBJEXT@%$OBJEXT%g
24158 s%@EXEEXT@%$EXEEXT%g
24160 s%@RANLIB@%$RANLIB%g
24162 s%@DLLTOOL@%$DLLTOOL%g
24164 s%@OBJDUMP@%$OBJDUMP%g
24166 s%@LIBTOOL@%$LIBTOOL%g
24168 s%@PERLBIN@%$PERLBIN%g
24169 s%@OL_MKDEP@%$OL_MKDEP%g
24170 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24171 s%@LTSTATIC@%$LTSTATIC%g
24172 s%@LIBOBJS@%$LIBOBJS%g
24173 s%@LIBSRCS@%$LIBSRCS%g
24175 s%@WITH_TLS@%$WITH_TLS%g
24176 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24177 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24178 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24179 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24180 s%@BUILD_BDB@%$BUILD_BDB%g
24181 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24182 s%@BUILD_HDB@%$BUILD_HDB%g
24183 s%@BUILD_LDAP@%$BUILD_LDAP%g
24184 s%@BUILD_LDBM@%$BUILD_LDBM%g
24185 s%@BUILD_META@%$BUILD_META%g
24186 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24187 s%@BUILD_NULL@%$BUILD_NULL%g
24188 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24189 s%@BUILD_PERL@%$BUILD_PERL%g
24190 s%@BUILD_SHELL@%$BUILD_SHELL%g
24191 s%@BUILD_SQL@%$BUILD_SQL%g
24192 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24193 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24194 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24195 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24196 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24197 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24198 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24199 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24200 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24201 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24202 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24203 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24204 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24205 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24206 s%@BUILD_RWM@%$BUILD_RWM%g
24207 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24208 s%@LDAP_LIBS@%$LDAP_LIBS%g
24209 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24210 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24211 s%@LDBM_LIBS@%$LDBM_LIBS%g
24212 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24213 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24214 s%@WRAP_LIBS@%$WRAP_LIBS%g
24215 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24216 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24217 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24218 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24219 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24220 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24221 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24222 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24223 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24224 s%@KRB4_LIBS@%$KRB4_LIBS%g
24225 s%@KRB5_LIBS@%$KRB5_LIBS%g
24226 s%@SASL_LIBS@%$SASL_LIBS%g
24227 s%@TLS_LIBS@%$TLS_LIBS%g
24228 s%@MODULES_LIBS@%$MODULES_LIBS%g
24229 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24230 s%@LIBSLAPI@%$LIBSLAPI%g
24231 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24232 s%@AUTH_LIBS@%$AUTH_LIBS%g
24233 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24234 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24235 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24236 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24241 cat >> $CONFIG_STATUS <<\EOF
24243 # Split the substitutions into bite-sized pieces for seds with
24244 # small command number limits, like on Digital OSF/1 and HP-UX.
24245 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24246 ac_file=1 # Number of current file.
24247 ac_beg=1 # First line for current file.
24248 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24251 while $ac_more_lines; do
24252 if test $ac_beg -gt 1; then
24253 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24255 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24257 if test ! -s conftest.s$ac_file; then
24258 ac_more_lines=false
24259 rm -f conftest.s$ac_file
24261 if test -z "$ac_sed_cmds"; then
24262 ac_sed_cmds="sed -f conftest.s$ac_file"
24264 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24266 ac_file=`expr $ac_file + 1`
24268 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24271 if test -z "$ac_sed_cmds"; then
24276 cat >> $CONFIG_STATUS <<EOF
24278 CONFIG_FILES=\${CONFIG_FILES-"\
24279 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24280 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24281 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24282 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24283 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24284 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24285 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24286 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24287 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24288 include/Makefile:build/top.mk:include/Makefile.in \
24289 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24290 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24291 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24292 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24293 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24294 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24295 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24296 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24297 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24298 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24299 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24300 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24301 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24302 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24303 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24304 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24305 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24306 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24307 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24308 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24309 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24310 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24311 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24312 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24313 servers/slapd/tools/Makefile:build/top.mk:servers/slapd/tools/Makefile.in \
24314 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24315 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24317 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24320 cat >> $CONFIG_STATUS <<\EOF
24321 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24322 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24324 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24325 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24326 *) ac_file_in="${ac_file}.in" ;;
24329 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24331 # Remove last slash and all that follows it. Not all systems have dirname.
24332 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24333 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24334 # The file is in a subdirectory.
24335 test ! -d "$ac_dir" && mkdir "$ac_dir"
24336 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24337 # A "../" for each directory in $ac_dir_suffix.
24338 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24340 ac_dir_suffix= ac_dots=
24343 case "$ac_given_srcdir" in
24345 if test -z "$ac_dots"; then top_srcdir=.
24346 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24347 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24348 *) # Relative path.
24349 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24350 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24353 case "$ac_given_INSTALL" in
24354 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24355 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24358 echo creating "$ac_file"
24360 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24362 *[Mm]akefile*) ac_comsub="1i\\
24363 # $configure_input" ;;
24367 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24369 s%@configure_input@%$configure_input%g
24370 s%@srcdir@%$srcdir%g
24371 s%@top_srcdir@%$top_srcdir%g
24372 s%@INSTALL@%$INSTALL%g
24373 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24377 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24378 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24380 # ac_d sets the value in "#define NAME VALUE" lines.
24381 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24382 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24385 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24386 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24387 ac_uB='\([ ]\)%\1#\2define\3'
24390 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24391 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24392 ac_eB='$%\1#\2define\3'
24396 if test "${CONFIG_HEADERS+set}" != set; then
24398 cat >> $CONFIG_STATUS <<EOF
24399 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24401 cat >> $CONFIG_STATUS <<\EOF
24403 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24404 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24406 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24407 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24408 *) ac_file_in="${ac_file}.in" ;;
24411 echo creating $ac_file
24413 rm -f conftest.frag conftest.in conftest.out
24414 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24415 cat $ac_file_inputs > conftest.in
24419 # Transform confdefs.h into a sed script conftest.vals that substitutes
24420 # the proper values into config.h.in to produce config.h. And first:
24421 # Protect against being on the right side of a sed subst in config.status.
24422 # Protect against being in an unquoted here document in config.status.
24423 rm -f conftest.vals
24424 cat > conftest.hdr <<\EOF
24427 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24431 sed -n -f conftest.hdr confdefs.h > conftest.vals
24434 # This sed command replaces #undef with comments. This is necessary, for
24435 # example, in the case of _POSIX_SOURCE, which is predefined and required
24436 # on some systems where configure will not decide to define it.
24437 cat >> conftest.vals <<\EOF
24438 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24441 # Break up conftest.vals because some shells have a limit on
24442 # the size of here documents, and old seds have small limits too.
24444 rm -f conftest.tail
24447 ac_lines=`grep -c . conftest.vals`
24448 # grep -c gives empty output for an empty file on some AIX systems.
24449 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24450 # Write a limited-size here document to conftest.frag.
24451 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24452 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24454 sed -f conftest.frag conftest.in > conftest.out
24456 mv conftest.out conftest.in
24457 ' >> $CONFIG_STATUS
24458 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24459 rm -f conftest.vals
24460 mv conftest.tail conftest.vals
24462 rm -f conftest.vals
24464 cat >> $CONFIG_STATUS <<\EOF
24465 rm -f conftest.frag conftest.h
24466 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24467 cat conftest.in >> conftest.h
24469 if cmp -s $ac_file conftest.h 2>/dev/null; then
24470 echo "$ac_file is unchanged"
24473 # Remove last slash and all that follows it. Not all systems have dirname.
24474 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24475 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24476 # The file is in a subdirectory.
24477 test ! -d "$ac_dir" && mkdir "$ac_dir"
24480 mv conftest.h $ac_file
24485 cat >> $CONFIG_STATUS <<EOF
24488 cat >> $CONFIG_STATUS <<\EOF
24492 echo Please run \"make depend\" to build dependencies
24496 chmod +x $CONFIG_STATUS
24497 rm -fr confdefs* $ac_clean_files
24498 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1